platform-transfers
POST /v1/platform-transfers/{transferId}/pay
Pay for a transfer and queue it for a specialist.
Xác thực
Gửi khóa API dưới dạng mã thông báo bearer. Khóa này phải có quyền billing.payment.manage; khóa không có quyền này sẽ bị từ chối với mã lỗi 403, không phải 404.
Endpoint này không nhận ID tổ chức. Khóa của bạn đã xác định tổ chức mà nó thuộc về và phản hồi được giới hạn trong phạm vi đó.
Dùng thử
Thay thế bất kỳ nội dung nào trong ngoعل (angle brackets) bằng giá trị của riêng bạn và trình giữ chỗ key bằng một key từ trang tổng quan của bạn.
curl -X POST https://api.zinndigital.com/v1/platform-transfers/{transferId}/pay \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ }'Đã đăng nhập? Bảng điều khiển API trong trang quản lý của bạn sẽ tự điền ID tổ chức thực tế và khóa của riêng bạn, sau đó chạy yêu cầu đối với API trực tiếp để bạn có thể xem phản hồi thực tế. Mở điểm cuối này trong bảng điều khiển API
Chi tiết
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).
Tham số
| Tên | Loại | Bắt buộc | Nội dung này là gì |
|---|---|---|---|
transferId (path) | string | Có | — |
Nội dung yêu cầu
| Tên | Loại | Bắt buộc | Nội dung này là gì |
|---|---|---|---|
currency | object | Không | 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. |
Phản hồi
| Tên | Loại | Bắt buộc | Nội dung này là gì |
|---|---|---|---|
id | Uuid | Có | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
source_platform | string | Có | — |
source_platform_name | string | Không | — |
target_platform | string | Có | — |
target_platform_name | string | Không | — |
source_url | string | Có | — |
target_site_id | object | Không | — |
tier_code | string | Có | — |
tier_name | string | Không | — |
entity_count_estimate | integer | Không | — |
status | PlatformTransferStatus | Có | — |
status_label | string | Không | — |
price_amount_minor | integer | Có | — |
price_currency | string | Có | — |
redirects_mapped | boolean | Không | — |
redirect_count | integer | Không | — |
canonicals_verified | boolean | Không | — |
sitemap_submitted | boolean | Không | — |
structured_data_preserved | boolean | Không | — |
seo_checks_complete | boolean | Không | — |
customer_note | string | Không | — |
sla_due_at | object | Không | — |
created_at | string | Có | — |
completed_at | object | Không | — |
events | PlatformTransferEvent[] | Không | The customer-visible trail only. Staff notes name vendors and what a job cost us, and never appear here. |
Các lỗi điểm cuối này có thể trả về
401 · 403 · 404 · 422 · 429