Pular para o conteúdo principal
POST
Envie um UUID em Idempotency-Key (ou clientOperationId) e reutilize-o em novas tentativas. Para compras de proxies, acompanhe o pagamento e entrega em Status do checkout com checkoutSessionId até fulfillmentStatus: "FULFILLED".
O playground envia requisições reais. Com paymentMethod: "balance", o saldo pré-pago é debitado imediatamente.

Recarregar o saldo

Envie purchase.productSlug: "balance-topup" e o valor em centavos de USD em purchase.amountCents (US5aUS 5 a US 5.000). Use stripe ou crypto com o escopo orders:write. Pague pelo paymentUrl e consulte o status do checkout com checkoutSessionId. Quando status for completed, balanceCents mostra o saldo atualizado e orderId é null.

Renovar proxies ISP e Datacenter

Obtenha os IDs ativos em Listar proxies e agrupe por país: um item por país com quantity igual a targetProxyIds.length (countryCode: null sem país atribuído). Envie esse purchase para POST /api/v1/quotes (auth obrigatória) e depois para checkout/pedido com um novo UUID:

Autorizações

Authorization
string
header
obrigatório

ProxyLayer API key. See the API Overview for key modes and scopes.

Scopes

rest:orders:write

Access to orders:write REST operations

Cabeçalhos

Idempotency-Key
string<uuid>

Optional UUID; must match clientOperationId if both are sent. UUID for this purchase.

Corpo

application/json

Purchase or top-up payload and paymentMethod (stripe, crypto, or balance).

purchase
object
obrigatório
paymentMethod
enum<string>
padrão:stripe

stripe: hosted checkout URL; crypto: deposit address + paymentUrl; balance: debits prepaid wallet immediately.

Opções disponíveis:
stripe,
crypto,
balance
cryptoCurrency
string

Coin for crypto payments (default: USDT).

Required string length: 1 - 24
Pattern: ^[A-Z0-9]+$
cryptoNetwork
string

Network for cryptoCurrency (default: TRON for USDT/USDC).

Required string length: 1 - 32
Pattern: ^[A-Z0-9_-]+$
clientOperationId
string<uuid>

Body alternative to Idempotency-Key. Reuse on retries; must match header if both are sent.

Resposta

Checkout session with paymentUrl (stripe/crypto) or completed orderId (balance).

checkoutSessionId
string
obrigatório

Session ID to poll with GET /api/v1/checkouts/{id}.

paymentMethod
enum<string>
obrigatório
Opções disponíveis:
stripe,
crypto,
balance
status
enum<string>
obrigatório
Opções disponíveis:
pending,
completed
currency
enum<string>
obrigatório
Opções disponíveis:
USD
amountCents
integer
obrigatório

Total checkout amount in integer USD cents.

Intervalo obrigatório: x > 0
paymentUrl
string | null

Hosted payment link for stripe or crypto checkouts; null for balance.

expiresAt
string<date-time> | null

ISO 8601 expiry time for pending checkouts.

orderId
string | null

Order ID, set immediately on balance purchases.

balanceCents
integer | null

Remaining prepaid balance in USD cents after a balance purchase.

Intervalo obrigatório: x >= 0
crypto
object

Crypto deposit details, present when paymentMethod is 'crypto'.