curl --request POST \
--url https://app.proxy-layer.com/api/v1/orders \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"purchase": {
"productSlug": "isp",
"durationDays": 30,
"items": [
{
"countryCode": "US",
"quantity": 2
}
]
}
}
'{
"orderId": "order_01JQ8B",
"checkoutSessionId": "checkout_01JQ8D",
"balanceCents": 1500
}Buy Proxies
Pay from Balance
Creates a proxy order using prepaid wallet balance. Returns 201 on payment; delivery runs asynchronously. Returns 409 without charging if balance is insufficient.
POST
/
api
/
v1
/
orders
curl --request POST \
--url https://app.proxy-layer.com/api/v1/orders \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"purchase": {
"productSlug": "isp",
"durationDays": 30,
"items": [
{
"countryCode": "US",
"quantity": 2
}
]
}
}
'{
"orderId": "order_01JQ8B",
"checkoutSessionId": "checkout_01JQ8D",
"balanceCents": 1500
}Authorizations
bearerAuthoauth2
Headers
Body
application/json
Purchase payload and optional clientOperationId (required if Idempotency-Key header is omitted).
Response
Paid order ID, checkout session ID, and updated prepaid balance.