platform-transfers

POST /v1/platform-transfers/{transferId}/pay

Pay for a transfer and queue it for a specialist.

Све platform-transfers крајње тачке

Сва документација за програмере →

Аутентификација

Пошаљите API кључ као bearer токен. Кључ мора имати дозволу billing.payment.manage; кључ без ње се одбија уз 403, а не 404.

Ова крајња тачка не прихвата id организације. Ваш кључ већ идентификује организацију којој припада, а одговор је ограничен на њу.

Испробајте

Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.

curl -X POST https://api.zinndigital.com/v1/platform-transfers/{transferId}/pay \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{  }'

Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у API конзоли

Детаљи

Charges the tier through the extras rails — wallet first, then the gateway — and moves the transfer to queued with its SLA set. Requires billing.payment.manage, because it moves money; creating the draft needs only billing.view. A decline returns 422 and leaves the transfer in payment_failed; nothing is charged and the same transfer can be paid again with another method. An organization with no chargeable payment method gets 422 PAYMENT_METHOD_REQUIRED instead — nothing was presented to a gateway, so it is not a decline: the remedy is to choose a payment method (getPaymentOptions lists the rails this account can use) rather than to fix a card (docs/491 §7).

Параметри

НазивТипОбавезноШта је ово
transferId (path)stringДа—

Тело захтева

НазивТипОбавезноШта је ово
currencyobjectНеThe currency the customer was quoted in. Refused if no gateway can charge it — silently substituting the base currency would bill a different number from the one on the screen.

Одговор

НазивТипОбавезноШта је ово
idUuidДаUUIDv7 identifier — sortable by creation time (docs/02 §8).
source_platformstringДа—
source_platform_namestringНе—
target_platformstringДа—
target_platform_namestringНе—
source_urlstringДа—
target_site_idobjectНе—
tier_codestringДа—
tier_namestringНе—
entity_count_estimateintegerНе—
statusPlatformTransferStatusДа—
status_labelstringНе—
price_amount_minorintegerДа—
price_currencystringДа—
redirects_mappedbooleanНе—
redirect_countintegerНе—
canonicals_verifiedbooleanНе—
sitemap_submittedbooleanНе—
structured_data_preservedbooleanНе—
seo_checks_completebooleanНе—
customer_notestringНе—
sla_due_atobjectНе—
created_atstringДа—
completed_atobjectНе—
eventsPlatformTransferEvent[]НеThe customer-visible trail only. Staff notes name vendors and what a job cost us, and never appear here.

Грешке које ова крајња тачка може вратити

401 · 403 · 404 · 422 · 429