platform-transfers

POST /v1/platform-transfers/{transferId}/pay

Pay for a transfer and queue it for a specialist.

所有 platform-transfers 端点

身份验证

请将 API 密钥作为 bearer 令牌发送。该密钥必须具有 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

请求正文

名称类型必填内容简介
currencyobjectThe 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.

响应

名称类型必填内容简介
idUuidUUIDv7 identifier — sortable by creation time (docs/02 §8).
source_platformstring
source_platform_namestring
target_platformstring
target_platform_namestring
source_urlstring
target_site_idobject
tier_codestring
tier_namestring
entity_count_estimateinteger
statusPlatformTransferStatus
status_labelstring
price_amount_minorinteger
price_currencystring
redirects_mappedboolean
redirect_countinteger
canonicals_verifiedboolean
sitemap_submittedboolean
structured_data_preservedboolean
seo_checks_completeboolean
customer_notestring
sla_due_atobject
created_atstring
completed_atobject
eventsPlatformTransferEvent[]The customer-visible trail only. Staff notes name vendors and what a job cost us, and never appear here.

此端点可能返回的错误

401 · 403 · 404 · 422 · 429