| Name | Type | Required | Description |
|---|---|---|---|
items | array | required | List of eSIM packages to order. Must contain at least one item. |
items[].packageId | string | required | The ID of the eSIM package to order. Retrieve valid IDs from the Get eSIM Packages endpoint. |
items[].quantity | number | required | Number of eSIMs to order for this package. |
referenceId | string | optional | Your own reference ID for the order, useful for reconciliation with your internal systems. |
curl --location 'https://api-dev.getroamify.com/api/esim/order' \
--header 'Authorization: Bearer roamify_4ECge13m8ZqFvGshLVLfdnFzi5hGuXkCBg2keWxVVKi7b2BGWmoXiv7bgVtNxY5Ruif7QKEthrLNrEkvnBV3Z7D3Fyj547NbnDnsDU7HgkRX8ggKD285dkXZHdNFM8npxoyr12nSzfpzqRuLvJj2d9eXgucEQmD9Gg4aKnUWvNaRbz1mKv7fAwdJe' \
--header 'Content-Type: application/json' \
--data '{
"items": [
{
"packageId": "esim-cambodia-7days-1gb-all",
"quantity": 1
}
],
// "referenceId": "partner reference id(optional)"
}'application/json; charset=utf-8 content type is not supported in the response body