Overview
The endpoint presented in this article is used to delete a single serial number from an existing sales order.
To consume the endpoint, you must:
- Be an authenticated user.
For information on how you can authenticate, see Authentication.
Once you authenticate and receive a valid token, it needs to be passed on the call when deleting the serial.
Endpoint
An example of such an endpoint for XX server is:
https://xx.api.sellercloud.com/rest/api/Orders/Serials
For your server, the endpoint will be:
https://{your_server_id}.api.sellercloud.com/rest/api/Orders/Serials
Request
- Method Type: HttpDelete
- Authorization: Use Bearer Token + token received from token authentication
- Header info: Content-Type: application/json
Parameter | Data Type | Description | Required |
OrderID | int | The Sellercloud ID of an existing Sales Order. | Yes |
ProductID | string | The Sellercloud SKU of an order item. | Yes |
SerialNumber | string | The Serial Number to be deleted. | Yes |
Response
- If the user is authenticated and the request is successful, then the response will be Status Code 200 => OK
- If the user is not authenticated, then the response will be Status Code 401 => Not Valid Token
- In case of an error, the response will be Status Code 500 => Internal Server Error
- In case of an incorrect request, the response will be with status code 400 Bad Request