nanoid
stored in reponse's request_id
- Make sure you store this id in your system, as it is a reference for the order which is pending processing. You should check map it for every successfully received order response on your webhook url.curl --location --request POST '/v2/orders-async' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {ACCESS_TOKEN}' \
--form 'quantity="1"' \
--form 'package_id="kallur-digital-7days-1gb"' \
--form 'type="sim"' \
--form 'description="1 sim kallur-digital-7days-1gb"' \
--form 'webhook_url="https://your-webhook.com"'
{
"data": {
"request_id": "3NhR3gKmqCWK7IWppurpDX3Cg",
"accepted_at": "2024-07-11 15:26:02"
},
"meta": {
"message": "success"
}
}