Zum Hauptinhalt springen
POST
Sende eine UUID in Idempotency-Key (oder clientOperationId) und verwende sie bei Wiederholungen erneut. Bei Proxy-Käufen prüfe Zahlung und Bereitstellung über Checkout-Status abrufen mit checkoutSessionId bis fulfillmentStatus: "FULFILLED".
Der Playground sendet echte Anfragen. Mit paymentMethod: "balance" wird dein Guthaben sofort belastet.

Guthaben aufladen

Sende purchase.productSlug: "balance-topup" und den Betrag in US-Cent als purchase.amountCents ($5–$5.000). Verwende stripe oder crypto mit dem Scope orders:write. Bezahle über paymentUrl und prüfe den Checkout-Status mit checkoutSessionId. Bei status: "completed" enthält balanceCents das neue Guthaben, und orderId ist null.

ISP- und Datacenter-Proxys verlängern

Hole aktive Proxy-IDs über Proxys auflisten und gruppiere sie nach Land — ein Eintrag pro Land mit quantity gleich targetProxyIds.length (countryCode: null, falls kein Land zugewiesen ist). Sende dieses purchase-Objekt an POST /api/v1/quotes (Auth erforderlich) und danach mit einer neuen UUID an Checkout/Bestellung:

Autorisierungen

Authorization
string
header
erforderlich

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

Scopes

rest:orders:write

Access to orders:write REST operations

Header

Idempotency-Key
string<uuid>

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

Body

application/json

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

purchase
object
erforderlich
paymentMethod
enum<string>
Standard:stripe

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

Verfügbare Optionen:
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.

Antwort

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

checkoutSessionId
string
erforderlich

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

paymentMethod
enum<string>
erforderlich
Verfügbare Optionen:
stripe,
crypto,
balance
status
enum<string>
erforderlich
Verfügbare Optionen:
pending,
completed
currency
enum<string>
erforderlich
Verfügbare Optionen:
USD
amountCents
integer
erforderlich

Total checkout amount in integer USD cents.

Erforderlicher Bereich: 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.

Erforderlicher Bereich: x >= 0
crypto
object

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