Orders
Orders
curl -X GET "https://example.com/api/v1/admin/orders"Empty
curl -X GET "https://example.com/api/v1/admin/orders/stats"Empty
Authorization
bearer_auth AuthorizationBearer <token>
In: header
Path Parameters
id*string
Order ID
Response Body
curl -X GET "https://example.com/api/v1/admin/orders/string"Empty
Authorization
bearer_auth AuthorizationBearer <token>
In: header
Path Parameters
id*string
Order ID
Response Body
curl -X POST "https://example.com/api/v1/admin/orders/string/cancel"Empty
Authorization
bearer_auth AuthorizationBearer <token>
In: header
Path Parameters
id*string
Order ID
Response Body
curl -X POST "https://example.com/api/v1/admin/orders/string/pay"Empty
Authorization
bearer_auth AuthorizationBearer <token>
In: header
Path Parameters
id*string
Order ID
Response Body
curl -X POST "https://example.com/api/v1/admin/orders/string/refund"Empty
Authorization
bearer_auth AuthorizationBearer <token>
In: header
Path Parameters
id*string
Order ID
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
admin_remark*string
Response Body
curl -X PUT "https://example.com/api/v1/admin/orders/string/remark" \ -H "Content-Type: application/json" \ -d '{ "admin_remark": "string" }'Empty
Authorization
bearer_auth AuthorizationBearer <token>
In: header
Path Parameters
id*string
Order ID
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X POST "https://example.com/api/v1/admin/orders/string/ship" \ -H "Content-Type: application/json" \ -d '{}'Empty
curl -X GET "https://example.com/api/v1/orders"Empty
Authorization
bearer_auth AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X POST "https://example.com/api/v1/orders" \ -H "Content-Type: application/json" \ -d '{ "items": [ { "product_id": "string", "quantity": 0 } ] }'Empty
Authorization
bearer_auth AuthorizationBearer <token>
In: header
Path Parameters
id*string
Order ID
Response Body
curl -X GET "https://example.com/api/v1/orders/string"Empty
Authorization
bearer_auth AuthorizationBearer <token>
In: header
Path Parameters
id*string
Order ID
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X PUT "https://example.com/api/v1/orders/string" \ -H "Content-Type: application/json" \ -d '{}'Empty
Authorization
bearer_auth AuthorizationBearer <token>
In: header
Path Parameters
id*string
Order ID
Response Body
curl -X POST "https://example.com/api/v1/orders/string/confirm"Empty
