eSIM voucher
POST
/v2/voucher/esim
{
"vouchers": [
{
"package_id": "replace with actual package slug",
"quantity": 3,
"booking_reference": "123"
}
]
}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/v2/voucher/esim' \
--header 'Authorization: Bearer {{token}}' \
--header 'Content-Type: application/json'
Response Response Example
200 - Esim voucher - Esim voucher
{
"data": [
{
"package_id": "jaco-mobile-7days-1gb",
"codes": [
"BIXLAAAA",
"BSXLAAAA"
],
"booking_reference": "123"
},
{
"package_id": "liberation-mobile-30days-3gb",
"codes": [
"1HKGDUMP"
],
"booking_reference": "123"
}
],
"meta": {
"message": "success"
}
}
Request
Header Params
Authorization
stringÂ
required
Example:
Bearer {{token}}
Content-Type
stringÂ
required
Example:
application/json
Responses
Modified at 2025-01-31 10:00:49