platform-transfers
POST /v1/platform-transfers/{transferId}/pay
Pay for a transfer and queue it for a specialist.
Автентифікація
Надішліть ключ API як маркер носія (bearer token). Ключ повинен мати дозвіл billing.payment.manage; ключ без нього відхиляється з кодом 403, а не 404.
Цей кінцевий пункт не потребує ідентифікатора організації. Ваш ключ уже ідентифікує організацію, якій він належить, і відповідь обмежується її межами.
Спробувати
Замініть усе в кутових дужках власними значеннями, а заповнювач ключа — ключем із вашої панелі керування.
curl -X POST https://api.zinndigital.com/v1/platform-transfers/{transferId}/pay \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ }'Увійшли в систему? Консоль API у вашій панелі керування автоматично підставляє ваш реальний ідентифікатор організації та ваш власний ключ, а також виконує запит до робочого 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 and the remedy is to add a card (`docs/491` §7).
Параметри
| Назва | Тип | Обов'язкове | Що це таке |
|---|---|---|---|
transferId (path) | string | Так | — |
Тіло запиту
| Назва | Тип | Обов'язкове | Що це таке |
|---|---|---|---|
currency | object | Ні | 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. |
Відповідь
| Назва | Тип | Обов'язкове | Що це таке |
|---|---|---|---|
id | Uuid | Так | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
source_platform | string | Так | — |
source_platform_name | string | Ні | — |
target_platform | string | Так | — |
target_platform_name | string | Ні | — |
source_url | string | Так | — |
target_site_id | object | Ні | — |
tier_code | string | Так | — |
tier_name | string | Ні | — |
entity_count_estimate | integer | Ні | — |
status | PlatformTransferStatus | Так | — |
status_label | string | Ні | — |
price_amount_minor | integer | Так | — |
price_currency | string | Так | — |
redirects_mapped | boolean | Ні | — |
redirect_count | integer | Ні | — |
canonicals_verified | boolean | Ні | — |
sitemap_submitted | boolean | Ні | — |
structured_data_preserved | boolean | Ні | — |
seo_checks_complete | boolean | Ні | — |
customer_note | string | Ні | — |
sla_due_at | object | Ні | — |
created_at | string | Так | — |
completed_at | object | Ні | — |
events | PlatformTransferEvent[] | Ні | The customer-visible trail only. Staff notes name vendors and what a job cost us, and never appear here. |
Помилки, які може повертати ця кінцева точка
401 · 403 · 404 · 422 · 429