commerce

POST /v1/orders/{orderId}/paypal

Open a PayPal order for the browser to complete.

Gbogbo àwọn commerce endpoints

Ìfàṣẹ́pọ̀

Fi bọ́kì kọ́kọ́ (bearer token) ránṣẹ́ gẹ́gẹ́ bí àmì ìdánimọ̀ API. Ibùdó yìí kò sọ àṣẹ pàtó kan nínú àlàyé rẹ̀, nítorí náà fún kọ́kọ́ rẹ̀ ní ohun tó kéré jù lọ tí ó nílò kí o sì ṣàyẹ̀wò ìdáhùn náà dípò kí o kàn rò ó.

Ojú abánisọ̀rọ̀ yìí kò gba id ajọ kankan. Kọ́kọ́rọ́ rẹ ti mọ ajọ ti o jẹ ti e, a o si fèsì nipa rẹ̀.

Gbiyanju rẹ

Rọ́pọ̀ èyíkéyìí nínú àwọn àmì ìtọ́ka < > pẹ̀lú iye tirẹ̀, àti àmì ìdánimọ̀ bọ́tìnnì náà pẹ̀lú bọ́tìnnì kan láti inú dásibọ̀ọ̀dù rẹ.

curl -X POST https://api.zinndigital.com/v1/orders/{orderId}/paypal \
  -H "Authorization: Bearer zdk_live_…"

Ṣé o ti wọlé? Iwọ̀n api ní nú ìgbékalẹ̀ rẹ kún id àjọ gidi rẹ ati bọtini tirẹ, o si nṣiṣẹ ibeere na lòdì si api gidi ki o le rii esi gidi na. Ṣí ojú abáná yìí sílẹ̀ nínú kọnsólù API

Àwọn kúlẹ̀kúlẹ̀

Returns the PayPal order id the JS SDK attaches to. The order carries no `payment_source`, so it is open to **either** rail — the PayPal wallet via Buttons, or a card entered into PayPal's hosted Advanced card fields — and the buyer's choice in the browser decides which. Idempotent per Zinn® order: reloading the checkout page returns the same PayPal order rather than opening a second one.

Àwọn ìpìlẹ̀

OrúkọIruTí a nílòKini o jẹ
orderId (path)UuidBẹẹniThe order's id.

Idahun

OrúkọIruTí a nílòKini o jẹ
paypal_order_idstringBẹẹniPayPal's order id, for `createOrder` in the JS SDK.

Awọn aṣiṣe ti ibudo ipari yii le da pada

401 · 403 · 404 · 422 · 429 · 503