Skip to content

List my orders​

GET
/orders

Returns a paginated list of the authenticated customer's own orders. Hard-scoped to the customer from the token; any client-supplied customer id is ignored.

A purchase from several vendors is listed as one order per vendor (each one is prepared, shipped and tracked on its own); no grouping order is returned on top of them, so the same purchase never appears twice.

status filters on an exact status value (pending, confirmed, processing, shipped, delivered, cancelled…); an unknown value returns an empty list.

Auth: Bearer JWT required; allowed realms: customer.

Authorizations​

bearerAuth

Jeton client obtenu par POST /auth/login (ou /auth/register), renouvelé par POST /auth/refresh.

Type
HTTP (bearer)

Parameters​

Query Parameters

page

min 1

Type
integer
Default
1
limit

1-50

Type
integer
Default
20
status

Exact order status (pending, confirmed, processing, shipped, delivered, cancelled, refunded). The terminal status of a completed order is delivered. An unknown value is not an error: it returns 200 with an empty list.

Type
string
customer_id

Ignored — orders are hard-scoped to the authenticated customer

Type
string

Responses​

Paginated order list

application/json
JSON
{
  
"ok": true,
  
"data": {
  
  
"items": [
  
  
  
{
  
  
  
  
"orderId": "string",
  
  
  
  
"orderNumber": "string",
  
  
  
  
"status": "string",
  
  
  
  
"currency": "string",
  
  
  
  
"total": 0,
  
  
  
  
"paymentMethod": "string",
  
  
  
  
"paymentStatus": "string",
  
  
  
  
"itemCount": 0,
  
  
  
  
"placedAt": "2024-01-01T00:00:00Z",
  
  
  
  
"fulfillmentMode": "full",
  
  
  
  
"deliveredBy": "marketplace",
  
  
  
  
"deliveredByName": "string",
  
  
  
  
"paymentCollectedBy": "marketplace",
  
  
  
  
"vendorParts": [
  
  
  
  
  
{
  
  
  
  
  
  
"vendorId": "string",
  
  
  
  
  
  
"vendorName": "string",
  
  
  
  
  
  
"fulfillmentMode": "full",
  
  
  
  
  
  
"deliveredBy": "marketplace",
  
  
  
  
  
  
"paymentCollectedBy": "marketplace"
  
  
  
  
  
}
  
  
  
  
]
  
  
  
}
  
  
],
  
  
"total": 0,
  
  
"page": 0,
  
  
"limit": 0
  
}
}

Playground​

Authorization
Variables
Key
Value

Samples​

Powered by VitePress OpenAPI

Tarifs : contactez-nous — contact@marketkit.ai