**Version: 202201**

# Order

Manage the full lifecycle of merchant orders, from creation to fulfillment.

An order represents a customer's purchase request — items selected, payment, shipping address, and current fulfillment progress. This API is the merchant-facing entry point for the entire order lifecycle.

Provided operations: create new orders; browse and search the order list; retrieve a single order by ID or order number; update editable fields; cancel orders; mark orders as paid; count orders matching filters; and inspect related post-sale (after-sales) and refund records.

- [Create Order](/api/202201/create-order) `POST /openapi/2022-01/orders`: Merchants can use this feature to create orders on behalf of their customers.

- [Order List](/api/202201/order-list) `GET /openapi/2022-01/orders`: Returns a paginated list of orders, with optional filters for status, date range, and other criteria.

- [Order Count](/api/202201/order-count) `GET /openapi/2022-01/orders/count`: Provides the total number of orders matching the specified query parameters.

- [Order Details](/api/202201/order-details) `GET /openapi/2022-01/orders/:id`: Retrieves detailed information about a specific order based on its unique ID.

- [Update Order](/api/202201/update-order) `PUT /openapi/2022-01/orders/:id`: Allows users to update the details of an existing order.

- [Delete Order](/api/202201/delete-order) `DELETE /openapi/2022-01/orders/:id`: Allows the deletion of a specific order by its unique ID.

- [Get Order Details By Number](/api/202201/get-order-details-by-number) `GET /openapi/2022-01/orders/number/:number`: Retrieves detailed information about a specific order using its unique order number.

- [Cancel Order](/api/202201/openapi-2022-01-ordersidcancel) `POST /openapi/2022-01/orders/:id/cancel`: Canceling an order by specifying its unique ID and an optional cancel reason.

- [Order Payment Success](/api/202201/order-payment-success) `POST /openapi/2022-01/orders/:id/payment/success`: Finalizes payment for an order and updates its status to indicate that payment has been completed.

[

## 📄️After Sales List

](/api/202201/after-sales-list)

- [Delete Post Sale Order](/api/202201/delete-post-sale-order) `DELETE /openapi/2022-01/orders/post_sales/:post_sale_id`: Allows you to remove a specific post-sales order record (e.g., a return or exchange request) by its unique identifier.
