cURL
curl --request GET \ --url https://api.puppetvendors.com/v2/orders/{orderId} \ --header 'x-access-token: <api-key>'
Retrieve a single order with line items, timeline, and vendor payouts
{ "success": true, "data": { "order": { "_id": "507f1f77bcf86cd799439013", "orderId": 5123456789, "orderNumber": 1042, "orderName": "#1042", "orderSummary": { "totalPrice": 299.99, "subTotalPrice": 279.99, "totalTax": 20.00, "currency": "GBP" }, "customer": { "email": "customer@example.com", "firstName": "Jane", "lastName": "Doe" }, "shippingAddress": { "address1": "123 High Street", "city": "London", "province": "England", "country": "United Kingdom", "zip": "SW1A 1AA" }, "status": "fulfilled", "createdAt": "2024-06-15T10:30:00.000Z" }, "lineItems": [ { "_id": "507f1f77bcf86cd799439015", "lineItemName": "Widget Pro - Large / Blue", "quantity": 2, "unitPrice": 139.99, "vendorName": "Acme Supplies", "fulfillmentStatus": "fulfilled" } ], "timeline": [], "vendorPayouts": [ { "vendorId": "507f1f77bcf86cd799439011", "vendorName": "Acme Supplies", "sales": 279.99, "commission": 39.20, "payout": 240.79 } ] } }
{ "success": false, "error": { "message": "Order not found", "code": "NOT_FOUND" } }
curl -X GET "https://api.puppetvendors.com/v2/orders/507f1f77bcf86cd799439013" \ -H "x-access-token: YOUR_JWT_TOKEN"