public
POST /v1/pay/partner/{token}
Pay a partner's domain order on our checkout. Unauthenticated.
Аутентификација
Ова крајња тачка је јавна. Не захтева никакве акредитиве нити организацију — то је оно што читају наш сопствени маркетиншки сајт и машине за одговоре са вештачком интелигенцијом.
Ова крајња тачка не прихвата id организације. Ваш кључ већ идентификује организацију којој припада, а одговор је ограничен на њу.
Испробајте
Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.
curl -X POST https://api.zinndigital.com/v1/pay/partner/{token} \
-H "Content-Type: application/json" \
-d '{ }'Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у API конзоли
Детаљи
With an empty body or {"rail": …}: the chosen rail is opened. Card gives a card-setup client_token (status: setup_required, nothing charged); PayPal gives a paypal_order_id for the wallet overlay (status: paypal_approval_required, nothing charged); crypto gives a redirect_url to the vendor invoice. With setup_intent_id, after the card form is confirmed: the card is re-read from the gateway, refused unless it belongs to this order's organization, recorded, and charged. With paypal_order_id, after the buyer approved: PayPal is asked to capture — the browser is never believed. When the order is paid, return_url is the partner's URL to send the browser to. ⛔ Nothing here decides an order is paid — the capture and the gateway webhook do, as for every order. A refusal the payer can act on is a 409 carrying its sentence.
Параметри
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
token (path) | string | Да | — |
Тело захтева
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
rail | string | Не | The rail the payer chose, from the rails the GET offered. Omitted means the default. A rail this order cannot settle on is refused with a sentence — it is never silently… |
setup_intent_id | string | Не | — |
paypal_order_id | string | Не | — |
Одговор
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
status | string | Да | — |
settled | boolean | Да | — |
client_token | string | Да | A card-form client secret for the browser SDK, when one is needed. |
setup_intent_id | string | Да | — |
redirect_url | string | Да | Where to send the browser to approve the payment on a rail that finishes off-site — a crypto invoice today. Empty on the card and PayPal rails, both of which finish on this page. |
action_kind | string | Да | — |
paypal_order_id | string | Да | The PayPal order the browser's SDK attaches to, on the PayPal rail. Minted by us — an id a client invents is refused by the gateway, not honoured. |
rail | string | Да | Which rail this step belongs to (stripe, paypal, nowpayments). |
return_url | string | Да | The partner URL to send the browser to |
Грешке које ова крајња тачка може вратити
404 · 409 · 422 · 429