Перейти к основному содержанию
POST
Передайте UUID в Idempotency-Key (или clientOperationId) и используйте его повторно при сбоях. Для покупки прокси отслеживайте оплату и выдачу через Статус чекаута по checkoutSessionId до fulfillmentStatus: "FULFILLED".
Кнопка «Попробовать» отправляет реальный запрос. При paymentMethod: "balance" средства списываются сразу.

Пополнить баланс

Для пополнения через этот же endpoint передайте purchase.productSlug: "balance-topup" и сумму в purchase.amountCents в центах США ($5–$5 000). Выберите stripe или crypto. Ключу нужен scope orders:write.
Откройте paymentUrl для оплаты, затем проверяйте статус чекаута по checkoutSessionId. При status: "completed" поле balanceCents содержит обновлённый баланс, а orderId равно null.

Продление ISP- и Datacenter-прокси

Получите ID активных прокси через Список прокси и сгруппируйте их по странам — по одному элементу items на страну, где 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'.