This endpoint allows you to create an esim voucher to the Airalo Partners API. Provide the required information, such as quantity and package idThe access token, obtained from the "Request Access Token" endpoint, should be included in the request.For more informations, best practices visit our FAQ page: https://airalopartners.zendesk.com/hc/en-us/sections/13207524820893-FAQBody Structure:
{"vouchers":[{"package_id":"replace with actual package slug","quantity":3,"booking_reference":"123"}]}
Request parameters:
vouchers (array, required):
An array of voucher objects to be created for eSIMs. Each voucher object contains the following fields:
package_id (string, required):
The unique identifier (slug) of the eSIM package for which the voucher is being issued.
Example: "package_id": "eu-europe-5gb-30days"
quantity (integer, required):
The number of vouchers you wish to purchase for the specified package.
Example: "quantity": 3
booking_reference (string, optional):
An optional field used to store the booking reference for this voucher, which can be used for tracking purposes in your own system.
Example: "booking_reference": "123"
If not provided, this field will be ignored.
Request
Header Params
Authorization
string
required
Example:
Bearer {{token}}
Content-Type
string
required
Example:
application/json
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST '/v2/voucher/esim' \
--header'Authorization: Bearer {{token}}' \
--header'Content-Type: application/json'