platform-transfers
POST /v1/platform-transfers/{transferId}/pay
Pay for a transfer and queue it for a specialist.
Pengesahan
Hantar kunci API sebagai token pembawa. Kunci tersebut mesti membawa kebenaran billing.payment.manage; kunci yang tidak mempunyainya akan ditolak dengan 403, bukan 404.
Titik akhir ini tidak memerlukan id organisasi. Kunci anda telah mengenal pasti organisasi kepunyaannya, dan respons dis skopkan kepadanya.
Cuba
Gantikan apa sahaja di dalam kurungan sudut dengan nilai anda sendiri, dan pemegang tempat kunci dengan kunci dari papan pemuka anda.
curl -X POST https://api.zinndigital.com/v1/platform-transfers/{transferId}/pay \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ }'Sudah log masuk? Konsol API dalam papan pemuka anda mengisi id organisasi sebenar dan kunci anda sendiri, serta menjalankan permintaan terhadap API langsung supaya anda boleh melihat respons sebenar. Buka penamat ini dalam konsol API
Butiran
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).
Parameter
| Nama | Jenis | Diperlukan | Apakah ia |
|---|---|---|---|
transferId (path) | string | Ya | — |
Badan permintaan
| Nama | Jenis | Diperlukan | Apakah ia |
|---|---|---|---|
currency | object | Tidak | 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. |
Respons
| Nama | Jenis | Diperlukan | Apakah ia |
|---|---|---|---|
id | Uuid | Ya | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
source_platform | string | Ya | — |
source_platform_name | string | Tidak | — |
target_platform | string | Ya | — |
target_platform_name | string | Tidak | — |
source_url | string | Ya | — |
target_site_id | object | Tidak | — |
tier_code | string | Ya | — |
tier_name | string | Tidak | — |
entity_count_estimate | integer | Tidak | — |
status | PlatformTransferStatus | Ya | — |
status_label | string | Tidak | — |
price_amount_minor | integer | Ya | — |
price_currency | string | Ya | — |
redirects_mapped | boolean | Tidak | — |
redirect_count | integer | Tidak | — |
canonicals_verified | boolean | Tidak | — |
sitemap_submitted | boolean | Tidak | — |
structured_data_preserved | boolean | Tidak | — |
seo_checks_complete | boolean | Tidak | — |
customer_note | string | Tidak | — |
sla_due_at | object | Tidak | — |
created_at | string | Ya | — |
completed_at | object | Tidak | — |
events | PlatformTransferEvent[] | Tidak | The customer-visible trail only. Staff notes name vendors and what a job cost us, and never appear here. |
Ralat yang boleh dikembalikan oleh titik akhir ini
401 · 403 · 404 · 422 · 429