Delete Post Sale Order

🔒

Requires write_order access scope. More access scope

The Delete Post Sale Order API allows you to remove a specific post-sales order record (e.g., a return or exchange request) by its unique identifier.

This API is especially useful for:

  1. Canceling or discarding after-sales requests that are no longer needed.
  2. Maintaining a clean post-sales list by removing invalid or duplicate records.
  3. Automating after-sales order management in external applications.

Request Parameters

Public Request Parameters

📘

Public Request Parameters

Path Parameter

NameTypeRequiredDescExample
post_sale_idstringYesThe ID of the post-sales order to delete, for example: "fb07fad3-bf03-48b5-98a8-152d20c5181d"."fb07fad3-bf03-48b5-98a8-152d20c5181d"

Response Explanation

Public Response Parameters

📘

Public Response Parameters

Error Response

Error responses in the API can be represented using two different fields: errors and error. Both fields provide details about issues encountered during request processing. Below is an explanation of the fields with their respective examples and descriptions.

FieldTypeExampleDescription
errorString "store is not active"Indicates an error encountered during the process

Error Detail

Status CodeMessagePossible ReasonExample Response
400Bad RequestInvalid input format or request structure (e.g., missing required fields or incorrect data types).Bad Request
UnauthorizedThe request is missing valid authentication credentials or the credentials provided are invalid.Unauthorized
406Operation not allowed in current state"Operation not allowed in current state"

API Structure Overview

Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!