platform-transfers
POST /v1/platform-transfers/{transferId}/pay
Pay for a transfer and queue it for a specialist.
Аутентификация
API кілтін bearer токені ретінде жіберіңіз. Кілтте billing.payment.manage рұқсаты болуы тиіс; онсыз кілтке 404 емес, 403 қатесі қайтарылады.
Бұл соңғы нүкте ұйым идентификаторын қабылдамайды. Сіздің кілтіңіз оның қай ұйымға тиесілі екенін өзі анықтайды және жауап соған шектеледі.
Әрекет етіп көру
Бұрыштық жақшалардағы кез келген нәрсені өз мәндеріңізбен, ал кілт орналастырушысын басқару тақтасынан алынған кілтпен алмастырыңыз.
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).
Параметрлер
| Аты | Tүрі | Міндетті | Мазмұны |
|---|---|---|---|
transferId (path) | string | Иә | — |
Сұрау денесі
| Аты | Tүрі | Міндетті | Мазмұны |
|---|---|---|---|
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. |
Жауап
| Аты | Tүрі | Міндетті | Мазмұны |
|---|---|---|---|
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