Vai al contenuto principale
POST
Invia un UUID in Idempotency-Key (o clientOperationId) e riutilizzalo nei tentativi successivi. Per gli acquisti di proxy, monitora pagamento e consegna tramite Stato del checkout con checkoutSessionId finché fulfillmentStatus è FULFILLED.
Il playground invia richieste reali. Con paymentMethod: "balance" il saldo prepagato viene addebitato subito.

Ricaricare il saldo

Invia purchase.productSlug: "balance-topup" e l’importo in centesimi di USD in purchase.amountCents (da 5 a 5.000 USD). Usa stripe o crypto con il permesso orders:write. Paga tramite paymentUrl e controlla lo stato del checkout con checkoutSessionId. Quando status è completed, balanceCents mostra il saldo aggiornato e orderId è null.

Rinnovare proxy ISP e Datacenter

Ottieni gli ID attivi con Elenca i proxy e raggruppali per paese: un elemento per paese con quantity uguale a targetProxyIds.length (countryCode: null se non assegnato). Invia quel purchase a POST /api/v1/quotes (auth richiesta) e poi al checkout/ordine con un nuovo UUID:

Autorizzazioni

Authorization
string
header
obbligatorio

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

Scopes

rest:orders:write

Access to orders:write REST operations

Intestazioni

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
obbligatorio
paymentMethod
enum<string>
predefinito:stripe

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

Opzioni disponibili:
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.

Risposta

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

checkoutSessionId
string
obbligatorio

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

paymentMethod
enum<string>
obbligatorio
Opzioni disponibili:
stripe,
crypto,
balance
status
enum<string>
obbligatorio
Opzioni disponibili:
pending,
completed
currency
enum<string>
obbligatorio
Opzioni disponibili:
USD
amountCents
integer
obbligatorio

Total checkout amount in integer USD cents.

Intervallo richiesto: 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.

Intervallo richiesto: x >= 0
crypto
object

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