Use this endpoint to read the current state of an order, for example before updating it or after a payment.
Request
Send a GET request with no body.
| Parameter | Type | Description |
|---|---|---|
accid (path) |
string | Your account ID. |
oid (path) |
string | Subiz order ID. |
The token’s agent needs permission to read orders.
Response
A successful request returns HTTP 200 with the order. Selected fields:
{
"id": "order_example",
"account_id": "account_example",
"number": "1001",
"source_id": "crm-1001",
"status": "closed",
"payment_status": "paid",
"currency": "VND",
"user": {
"id": "user_example"
},
"items": [
{
"id": "item_example",
"quantity": 2,
"product": {
"name": "Ceramic mug",
"sku": "MUG-01",
"price": 120000
},
"total": 240000
}
],
"total": 270000,
"payment_made": 270000,
"closed": 1763193600000,
"updated": 1763193600000
}
See Order format for every field. closed is set when the order becomes closed or canceled.
If no order has this ID, the request returns a not-found error. See Errors.
HTTP request
Replace YOUR_ACCID, YOUR_OID, and YOUR_ACCESS_TOKEN with your values.
GET https://api.subiz.com.vn/4.0/accounts/YOUR_ACCID/orders/YOUR_OID
Authorization: Bearer YOUR_ACCESS_TOKEN