planId is the id of a plan from GET /api/wholesale/plans.customerEmail is optional. With it, the plan is assigned to that customer, who becomes a VeloeSIM user and receives a password for the VeloeSIM application. customerFullName is optional too.iosSetup for an iPhone or androidSetup for an Android phone. For manual installation use smdpAddress and matchingId.GET /api/wholesale/esims first, so the customer is not charged twice.Authorization: Apikey YOUR_API_KEY.curl --location 'https://api.veloesim.com:2053/api/wholesale/orders' \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"planId": 2604
}'{
"iosSetup": "https://esimsetup.apple.com/esim_qrcode_provisioning?carddata=LPA:1$address.test$X2-2XXXX7-LCIUXQ",
"androidSetup": "https://esimsetup.android.com/esim_qrcode_provisioning?carddata=LPA:1$address.test$X2-2XXXX7-LCIUXQ",
"iccid": "89372040161688888888",
"matchingId": "X2-2XXXX7-LCIUXQ",
"smdpAddress": "address.test",
"profileStatus": "RELEASED",
"installedAt": null,
"assignedPlans": [
{
"id": 96,
"planId": 2604,
"initialQuantityInBytes": 1000000000,
"remainingQuantityInBytes": 1000000000,
"startTime": null,
"endTime": null,
"isExpired": false,
"areas": [
{
"id": 49,
"name": "Greece",
"region": "Europe",
"iso": "GR"
}
]
}
]
}