跳转到主要内容
POST
在 Idempotency-Key(或 clientOperationId)中传入 UUID 并在重试时复用。购买代理时,使用 checkoutSessionId 轮询 查询结账状态 直至 fulfillmentStatus 为 FULFILLED。
在线调试工具会发送真实请求。选择 paymentMethod: "balance" 将立即扣除预付余额。

为余额充值

传入 purchase.productSlug: "balance-topup",并在 purchase.amountCents 中填写以美分计的金额(5 至 5,000 美元)。请选择 stripe 或 crypto,并使用具备 orders:write 权限的凭据。 通过 paymentUrl 付款,再用 checkoutSessionId 查询结账状态。当 status 为 completed 时,balanceCents 返回更新后的余额,orderId 为 null。

续费 ISP 和数据中心代理

先调用 列出代理 获取活跃代理 ID,按国家分组:每个国家一项,quantity 等于 targetProxyIds.length(未指定国家时 countryCode 填 null)。将该 purchase 发送至 POST /api/v1/quotes(需认证),再用新的 UUID 发起结账或下单:

授权

Authorization
string
header
必填

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

Scopes

rest:orders:write

Access to orders:write REST operations

请求头

Idempotency-Key
string<uuid>

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

请求体

application/json

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

purchase
object
必填
paymentMethod
enum<string>
默认值:stripe

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

可用选项:
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.

响应

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

checkoutSessionId
string
必填

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

paymentMethod
enum<string>
必填
可用选项:
stripe,
crypto,
balance
status
enum<string>
必填
可用选项:
pending,
completed
currency
enum<string>
必填
可用选项:
USD
amountCents
integer
必填

Total checkout amount in integer USD cents.

必填范围: 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.

必填范围: x >= 0
crypto
object

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