> ## Documentation Index
> Fetch the complete documentation index at: https://developers.mioesim.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GET /api_esim/getOrderInfo — Get order details by number

> Retrieve full details of a SIM card order by order number. Returns activation codes, ICCID, SM-DP+ address, and plan status for each card in the order.

Look up a specific order using the order number returned when you placed it. The response includes the same card details as the order placement response — useful for retrieving activation codes after the fact.

```
GET https://bpm.mioesim.com/api_esim/getOrderInfo
```

<Note>
  After calling this endpoint, the order can no longer be unsubscribed.
</Note>

## Request parameters

<ParamField query="token" type="string" required>
  Session token from [Login](/api-reference/login).
</ParamField>

<ParamField query="orderNum" type="string" required>
  Order number (e.g. `EP20240124000013`).
</ParamField>

<ParamField query="sign" type="string" required>
  Request signature.
</ParamField>

## Response fields

<ResponseField name="data" type="object">
  <Expandable title="Order fields">
    <ResponseField name="orderNum" type="string">Order number.</ResponseField>
    <ResponseField name="display" type="string">Product name.</ResponseField>
    <ResponseField name="purchaseDate" type="string">Order time (GMT+8).</ResponseField>
    <ResponseField name="count" type="integer">Quantity.</ResponseField>
    <ResponseField name="price" type="string">Total price.</ResponseField>
    <ResponseField name="status" type="integer">Order status. See [Order Statuses](/reference/order-statuses).</ResponseField>
    <ResponseField name="renewal" type="boolean">Whether this is a renewal order.</ResponseField>
    <ResponseField name="mainOrderNum" type="string">Parent order number (if this is a renewal).</ResponseField>
    <ResponseField name="renew" type="integer">`0` = main order, `1` = renewal.</ResponseField>
    <ResponseField name="priceId" type="integer">Package price ID.</ResponseField>
    <ResponseField name="renewOrderNum" type="array">List of renewal order numbers for this order.</ResponseField>
    <ResponseField name="cardApiDtoList" type="array">eSIM card details. See [Place Order](/api-reference/place-order) for field descriptions.</ResponseField>
  </Expandable>
</ResponseField>

## Example

<CodeGroup>
  ```bash cURL theme={null}
  curl "https://bpm.mioesim.com/api_esim/getOrderInfo?token=YOUR_TOKEN&orderNum=EP20221104000005&sign=YOUR_SIGN"
  ```

  ```json Success theme={null}
  {
    "code": "0",
    "message": "success",
    "data": {
      "orderNum": "EP20221104000005",
      "display": "Japan",
      "purchaseDate": "2022-11-04(GMT+8)",
      "count": 1,
      "price": "4.49",
      "status": 0,
      "renewal": false,
      "renew": 0,
      "priceId": 9726,
      "renewOrderNum": [],
      "cardApiDtoList": [
        {
          "data": "2GB",
          "validity": 5,
          "sm_dp_address": "ais.prod.ondemandconnectivity.com",
          "activationCode": "SEW7JEBMFGPRVSPD",
          "mobileNumber": "0846108923",
          "iccid": "453438306768957400",
          "activateBefore": "2022-11-25",
          "code": "LPA:1$ais.prod.ondemandconnectivity.com$SEW7JEBMFGPRVSPD"
        }
      ]
    }
  }
  ```
</CodeGroup>
