Get one of my orders
GET
/orders/{orderId}
Returns full detail (items and status event timeline) for one of the authenticated customer's orders. Returns 404 if the order does not belong to the customer. Requires the customer realm.
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
Path Parameters
orderId*
Type
Requiredstring
Responses
Order detail
application/json
JSON "ok": true, "data": { "orderId": "string", "orderNumber": "string", "status": "string", "currency": "string", "total": 0, "paymentMethod": "string", "paymentStatus": "string", "itemCount": 0, "placedAt": "2024-01-01T00:00:00Z", "subtotal": 0, "discountAmount": 0, "shippingAmount": 0, "customerNote": "string", "items": [ { "itemId": "string", "productId": "string", "vendorId": "string", "vendorName": "string", "vendorPhone": "string", "vendorWhatsapp": "string", "title": "string", "quantity": 0, "unitPrice": 0, "lineTotal": 0 } ], "vendors": [ { "vendorId": "string", "name": "string", "phone": "string", "email": "string", "whatsapp": "string", "whatsappSource": "vendor", "waLink": "string", "store": { "storeId": "string", "name": "string", "address": "string", "city": "string", "phone": "string" }, "address": "string" } ], "events": [ { "eventId": "string", "eventType": "string", "fromStatus": "string", "toStatus": "string", "note": "string", "occurredAt": "2024-01-01T00:00:00Z" } ], "fulfillmentMode": "full", "deliveredBy": "marketplace", "deliveredByName": "string", "paymentCollectedBy": "marketplace", "vendorParts": [ { "vendorId": "string", "vendorName": "string", "fulfillmentMode": "full", "deliveredBy": "marketplace", "paymentCollectedBy": "marketplace" } ] }
{
}