Skip navigation
REST › orders.get

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

ParameterInDescription
codepathRequired. Order code, also the transfer note, for example ME48213906.

Request

curl
curl "https://api.modernengineer.dev/orders/ME48213906" \
  -H "Authorization: Bearer $SE_KEY"

Response

200 OK · application/json
{
  "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

StatusErrorWhen
401unauthenticatedThe API key is missing or invalid. Comes with a WWW-Authenticate header.
400invalid_inputA parameter is missing or invalid, for example a locale other than vi or en.
404not_foundThis account has no order with this code.

In MCP