Orders

Get order details

Retrieve detailed information about a specific order by its ID or order number. Returns the full order object including associated user, cart items, subscription (if applicable), and payment details. For subscription orders, also returns the current subscription status.

Authorization

Public key
x-fngs-public-key<token>

In: header

Path Parameters

orderIdOrNumber*|

Order identifier - either the order UUID or the order number as returned in 'number' (e.g., L8VQK3N2M7KpQ9nR). This endpoint also accepts the number with the leading '#' the dashboard shows; subscription endpoints do not, so prefer sending it without.

Response Body

application/json

application/json

GET
/v0/orders/{orderIdOrNumber}
curl -X GET "https://example.com/v0/orders/550e8400-e29b-41d4-a716-446655440000"
{  "status": "success",  "data": {    "order": {      "object": "order",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "number": "string",      "status": "PENDING",      "value": 0,      "tax": 0,      "fee": 0,      "totalItems": 0,      "country": null,      "currency": "AFN",      "currencyDecimals": null,      "createdAt": 0,      "userId": null,      "user": null,      "lastPaymentId": null,      "lastPaymentNumber": null,      "lastPayment": null,      "subscriptionId": null,      "subscription": null,      "checkoutId": null,      "orderNumber": "string"    },    "subscription": {      "object": "subscription",      "id": "string",      "status": "all",      "createdAt": 0,      "currentIntervalEnd": 0,      "currentIntervalStart": 0,      "cancelAtIntervalEnd": false,      "canceledAt": null,      "userId": null,      "user": null,      "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",      "orderNumber": "string",      "order": {        "object": "order",        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "number": "string",        "status": "PENDING"      },      "lastPaymentId": null,      "lastPaymentNumber": null,      "lastPayment": null    }  }}