SIM Cards
Purchase eSIMs
Purchases and registers the specified amount of eSIMs to the current user's account.<br/><br/> If <code>sim_card_group_id</code> is provided, the eSIMs will be associated with that group. Otherwise, the default group for the current user will be used.<br/><br/>
post/actions/purchase/esims
Request body
Example request
{
"amount": 10,
"product": "whitelabel",
"sim_card_group_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"status": "standby",
"tags": [
"personal",
"customers",
"active-customers"
],
"whitelabel_name": "Custom SPN"
}Response
Successful response
Example response
{
"data": [
{
"actions_in_progress": true,
"authorized_imeis": [
"106516771852751",
"534051870479563",
"508821468377961"
],
"created_at": "2018-02-02T22:25:27.521Z",
"current_billing_period_consumed_data": {
"amount": "2049.0",
"unit": "MB"
},
"data_limit": {
"amount": "2048.0",
"unit": "MB"
},
"esim_installation_status": "released",
"iccid": "89310410106543789301",
"id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"imsi": "081932214823362973",
"msisdn": "+13109976224",
"record_type": "sim_card",
"resources_with_in_progress_actions": [],
"sim_card_group_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"status": {
"reason": "The SIM card is active, ready to connect to networks and consume data.",
"value": "enabled"
},
"tags": [
"personal",
"customers",
"active-customers"
],
"type": "physical",
"updated_at": "2018-02-02T22:25:27.521Z",
"version": "4.3"
}
]
}