platform-transfers

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

Pay for a transfer and queue it for a specialist.

Все эндпоинты platform-transfers

Аутентификация

Отправьте ключ API в качестве токена носителя (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Да

Тело запроса

ИмяТипОбязательноЧто это
currencyobjectНет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.

Ответ

ИмяТипОбязательноЧто это
idUuidДаUUIDv7 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