The Delete Return API allows for an existing return case to be deleted. It is a very simple call that only requires a valid Return ID. As with the other APIs, the base endpoint differs from the previous version of OMS and the x-vol-tenant key for authentication should be provided in the headers.
Production URL | https://{tenantId}-translation.mozu.com/api/v2/return/{returnID} |
Sandbox URL | https://{tenantId}-translation.sandbox.mozu.com/api/v2/return/{returnID} |
Supported Formats | JSON |
HTTP Method | DELETE |
Example
This example will delete a return with the ID 00000.
The Full Request
The Delete Return API call only requires an Return ID, and no other parameters or properties. This ID is provided in the URL endpoint of the call, and not the body. Thus, the request header would simply look like this:
https://{tenantId}-translation.mozu.com/api/v2/return/00000
The response should be a 204 No Content message, indicating that the return with that ID was deleted.