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 կարգավիճակով:
Այս վերջնակետը կազմակերպության 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 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