Submit top-up order
POST
/v2/orders/topups
1.
2.
1.
2.
3.
4.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/v2/orders/topups' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {{token}}' \
--form 'package_id="bonbon-mobile-30days-3gb-topup"' \
--form 'iccid="89340000000000872"' \
--form 'description="Example description to identify the order"'
Response Response Example
200 - Submit Top-up Order: 200 OK
{
"data": {
"package_id": "bonbon-mobile-30days-3gb-topup",
"quantity": "1",
"type": "topup",
"description": "Topup (89340000000000872)",
"esim_type": "Prepaid",
"validity": 30,
"package": "Bonbon Mobile 2-3 GB - 30 Days",
"data": "3 GB",
"price": 10,
"created_at": "2023-02-07 07:42:17",
"id": 174,
"code": "20230207-000174",
"currency": "USD",
"manual_installation": "",
"qrcode_installation": "",
"installation_guides": {
"en": "http://airalo.local:8080/installation-guide"
}
},
"meta": {
"message": "success"
}
}
Request
Header Params
Accept
stringÂ
required
Example:
application/json
Authorization
stringÂ
required
Example:
Bearer {{token}}
Body Params multipart/form-data
package_id
stringÂ
required
Example:
bonbon-mobile-30days-3gb-topup
iccid
stringÂ
required
Can be obtained by execuring GET to the "eSIMs List" endpoint
Example:
89340000000000872
description
stringÂ
required
Example:
Example description to identify the order
Responses
Modified at 2025-01-31 10:00:49