platform-transfers
POST /v1/platform-transfers/{transferId}/pay
Pay for a transfer and queue it for a specialist.
Баталгаажуулалт
API түлхүүрийг bearer token хэлбэрээр илгөэнэ үү. Түлхүүр нь billing.payment.manage эрхтэй байх ёстой бөгөөд үүнгүйгээр 404 биш, харин 403 алдаа буцааж татгалзах болно.
Энэ төгсгөл цэг нь ямар ч байгууллагын 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