Skip to main content
POST
https://api.pavewaygroup.com
/
v1
/
esim
/
orders
curl -X POST https://api.pavewaygroup.com/v1/esim/orders \
  -H "Authorization: Bearer sk_test_..." \
  -H "Content-Type: application/json" \
  -d '{
    "package_id": "pkg_world_5gb",
    "quantity": 1
  }'
{
  "order_id": "<string>",
  "amount": 123,
  "currency": "<string>"
}

Authentication

Include your Secret Key in the Authorization header as a Bearer token.
Authorization: Bearer sk_test_...

Request Body

package_id
string
required
The unique identifier of the eSIM package (from the inventory endpoint).
quantity
integer
default:"1"
Number of eSIMs to purchase (Max: 5).

Response

Returns the created order details.
order_id
string
Unique identifier for the eSIM order.
amount
number
The total amount to be paid for this order.
currency
string
The currency code for the payment.
curl -X POST https://api.pavewaygroup.com/v1/esim/orders \
  -H "Authorization: Bearer sk_test_..." \
  -H "Content-Type: application/json" \
  -d '{
    "package_id": "pkg_world_5gb",
    "quantity": 1
  }'