Orders

Order management and purchases

List user orders

get
Authorizations
X-API-KeystringRequired

API key for authentication. Get your key from the dashboard.

Query parameters
pageintegerOptionalDefault: 1
per_pageintegerOptionalDefault: 20
statusstring · enumOptionalPossible values:
Responses
chevron-right
200

List of orders

application/json
successbooleanOptionalExample: true
get
/orders

Create new order (purchase)

post

Purchase products using wallet balance. Stock is delivered immediately upon successful purchase.

Error Codes:

  • INSUFFICIENT_BALANCE - Not enough balance

  • INSUFFICIENT_STOCK - Not enough stock available

Authorizations
X-API-KeystringRequired

API key for authentication. Get your key from the dashboard.

Body
product_idintegerRequired
quantityinteger · min: 1Required
Responses
post
/orders

Get order details

get
Authorizations
X-API-KeystringRequired

API key for authentication. Get your key from the dashboard.

Path parameters
idintegerRequired
Responses
chevron-right
200

Order details with stock items

application/json
successbooleanOptionalExample: true
get
/orders/{id}

Cancel order

post

Only pending orders can be cancelled. Refund will be credited to wallet.

Authorizations
X-API-KeystringRequired

API key for authentication. Get your key from the dashboard.

Path parameters
idintegerRequired
Responses
chevron-right
200

Order cancelled

application/json
successbooleanOptionalExample: true
messagestringOptionalExample: Order cancelled successfully
post
/orders/{id}/cancel

Export order stock

get
Authorizations
X-API-KeystringRequired

API key for authentication. Get your key from the dashboard.

Path parameters
idintegerRequired
Query parameters
formatstring · enumOptionalDefault: txtPossible values:
Responses
chevron-right
200

Exported data

stringOptional
get
/orders/{id}/export

Last updated