Перейти к основному содержанию
GET
Get checkout payment and delivery status
Останавливайте опрос, когда fulfillmentStatus переходит в FULFILLED, FAILED или NEEDS_CHECK, либо когда status становится failed, expired, cancelled или refunded. Для пополнений баланса orderId остаётся null, а balanceCents показывает обновлённый баланс после status: "completed".

Авторизации

Authorization
string
header
обязательно

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

Scopes

rest:orders:read

Access to orders:read REST operations

Параметры пути

id
string
обязательно

checkoutSessionId returned by POST /api/v1/checkouts or POST /api/v1/orders.

Minimum string length: 1

Ответ

Current payment and delivery status.

checkoutSessionId
string
обязательно
status
enum<string>
обязательно

Payment state. 'completed' means payment succeeded, not that proxies are delivered.

Доступные опции:
pending,
completed,
failed,
expired,
cancelled,
refunded
provisioningPending
boolean
обязательно

True while payment succeeded and order creation or delivery is still in progress.

orderId
string | null
обязательно

Created order ID once payment completes; null for wallet top-ups or unpaid checkouts.

fulfillmentStatus
enum<string> | null
обязательно

Delivery state: PENDING (in progress), FULFILLED (ready to use), FAILED, or NEEDS_CHECK. Null before an order exists.

Доступные опции:
PENDING,
FULFILLED,
FAILED,
NEEDS_CHECK
failureMessage
string | null
обязательно

Reason payment or delivery failed, when available.

balanceCents
integer | null
обязательно

Updated prepaid wallet balance in USD cents after a top-up or balance purchase; otherwise null.

detail
enum<string>

Extra crypto payment state: WAITING_CONFIRMATIONS or UNDERPAID.

Доступные опции:
WAITING_CONFIRMATIONS,
UNDERPAID
paymentProvider
string | null

Payment rail used (e.g. stripe, crypto, balance).