orders.get
GET/orders/{code}
One of the account's orders by its code, with status and, while it is pending, the transfer details. Another person's order answers 404. Needs a key.
Parameters
| Parameter | In | Description |
|---|---|---|
code | path | Required. Order code, also the transfer note, for example ME48213906. |
Request
curl "https://api.modernengineer.dev/orders/ME48213906" \
-H "Authorization: Bearer $SE_KEY"Response
{
"code": "ME48213906",
"sku": "plan-3m",
"kind": "subscription",
"label": "3 tháng",
"amountVnd": 242100,
"listAmountVnd": 269000,
"discountVnd": 26900,
"discountCode": "WELCOME10",
"periodMonths": 3,
"packSlug": null,
"status": "pending",
"expiresAt": "2026-11-02T03:15:00.000Z",
"paidAt": null,
"createdAt": "2026-11-01T03:15:00.000Z",
"payment": {
"accountName": "…",
"accountNumber": "…",
"bankCode": "…",
"qrUrl": "https://qr.sepay.vn/img?acc=…&bank=…&amount=242100&des=ME48213906"
},
"testMode": false
}Errors
| Status | Error | When |
|---|---|---|
| 401 | unauthenticated | The API key is missing or invalid. Comes with a WWW-Authenticate header. |
| 400 | invalid_input | A parameter is missing or invalid, for example a locale other than vi or en. |
| 404 | not_found | This account has no order with this code. |