> For the complete documentation index, see [llms.txt](https://en-api.decisiontele.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://en-api.decisiontele.com/esim-api/usage/multiple-packages-on-one-esim.md).

# Multiple Packages on One eSIM

One eSIM may contain multiple `packageEsims` entries. Each entry is a separate package-to-eSIM assignment with its own ID, status, usage, and validity dates.

**Do not assume `packageEsims[0]` is always the only or current package.**

| Field                              | How to use it                                                                         |
| ---------------------------------- | ------------------------------------------------------------------------------------- |
| `packageEsims[].id`                | Identify the exact assignment and use it as `packageEsimId` for usage requests.       |
| `status`                           | Inspect the technical assignment status.                                              |
| `queuePosition`                    | Inspect the assignment’s position in the queue together with status and usage fields. |
| `usageStatus`                      | Inspect the reported usage state.                                                     |
| `usageStartAt` / `usageExpireAt`   | Determine the actual validity period for this assignment.                             |
| `usageValue` / `package.dataLimit` | Display used and remaining allowance for this assignment.                             |

### Recommended handling

1. Retrieve all pages of allocated eSIMs with package assignments.
2. Store each `packageEsims[].id` with the parent `esimId` and ICCID.
3. Evaluate `status`, `queuePosition`, usage status, and validity dates for each assignment.
4. Select the assignment relevant to the customer’s package, or display multiple relevant assignments separately.
5. Call `POST /api/v1/packages/usage` with that assignment’s `packageEsimId` when fresh usage is needed.

Do not infer assignment relevance from array order alone. Do not merge balances from different assignments unless your application explicitly presents such a total and handles units and validity correctly.

See **Top Up an eSIM** for assigning additional packages without replacing the installed eSIM profile.
