> ## 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/reDownOrderPDF — Re-download eSIM card info

> Retrieve eSIM card activation details or PDF URL for an existing order. Use backInfo to return just the order number, full card details, or PDF download links.

Use this endpoint to re-download eSIM card information or PDF links for an existing order. The `backInfo` parameter controls the response format.

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

## Request parameters

<ParamField query="token" type="string" required>Session token.</ParamField>
<ParamField query="orderNum" type="string" required>Order number.</ParamField>
<ParamField query="sign" type="string" required>Request signature.</ParamField>

<ParamField query="backInfo" type="string">
  Response format: `0` or empty = order number only; `1` = full order details; `2` = PDF URL info.
</ParamField>

## Response

Response structure matches [Get Order](/api-reference/get-order) when `backInfo=1`, or [Place Order](/api-reference/place-order) when `backInfo=2`. When `backInfo=0`, `data` is just the order number string.

## Example

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

  ```json Success (backInfo=1) theme={null}
  {
    "code": "0",
    "message": "success",
    "data": {
      "orderNum": "EP20240111000002",
      "display": "Global 125 countries",
      "count": 1,
      "price": "22.49",
      "status": 0,
      "cardApiDtoList": [
        {
          "data": "6GB",
          "validity": 15,
          "sm_dp_address": "rsp-eu.redteamobile.com",
          "activationCode": "5CB2378D93664F30B21A48008F80B64E",
          "iccid": "2330020025190",
          "code": "LPA:1$rsp-eu.redteamobile.com$5CB2378D93664F30B21A48008F80B64E"
        }
      ]
    }
  }
  ```
</CodeGroup>

## Error codes

| Code  | Meaning                    |
| ----- | -------------------------- |
| `-1`  | Token expired              |
| `-2`  | Required parameter missing |
| `-3`  | Re-download failed         |
| `3`   | Data not found             |
| `4`   | Order status abnormal      |
| `-30` | Signature wrong            |
