platform-transfers
POST /v1/platform-transfers/{transferId}/pay
Pay for a transfer and queue it for a specialist.
การยืนยันตัวตน
ส่ง API key ในรูปแบบ 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