commerce
GET /v1/payment-options
The payment rails a purchase in this currency may be settled on.
Аутентификација
Пошаљите API кључ као bearer токен. Ова крајња тачка не наводи конкретну дозволу у спецификацији, па свом кључу доделите најмања неопходна овлашћења и проверите одговор уместо да претпостављате.
Где се уноси ID ваше организације
Ова крајња тачка прихвата org_id као параметар упита. Изоставите га и позив ће обухватити цело подстабло вашег закупа; пошаљите га да бисте сузили позив на једну организацију.
Идентификатор ваше организације се налази на екрану са API кључевима на вашој контролној табли, поред самог кључа. То је исти идентификатор у сваком позиву који упутите.
Испробајте
Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.
curl -X GET https://api.zinndigital.com/v1/payment-options?currency=<currency> \
-H "Authorization: Bearer zdk_live_…"Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у API конзоли
Детаљи
What the checkout screen offers before anything is bought, so a customer picks how to pay instead of discovering after the fact that only a card was tried. Filtered exactly as getOrderPaymentOptions is, by the same function: a rail the operator has switched off is absent; a rail that cannot present currency is absent (PayPal presents 24 currencies and Indonesian rupiah is not among them); and a reseller's client receives exactly one entry — their reseller's connected gateway — because that is the only merchant account their money may land in. A customer who is suspended or overdue is deliberately not filtered: paying us is how an account stops being suspended. checkoutCart refuses any gateway that is not in this list, so the picker and the charge path read one source.
Параметри
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
currency (query) | CurrencyCode | Да | ISO 4217 code the purchase is priced in. |
org_id (query) | Uuid | Не | The organization buying. Omit it and the engine uses the one organization where you hold billing.payment.manage, and refuses when you hold it in more than one — guessing which… |
Одговор
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
gateways | string[] | Да | Provider codes (stripe, paypal, nowpayments). Never empty — stripe is always present, because an unreadable provider registry must not be reported as "nothing is enabled". |
Грешке које ова крајња тачка може вратити
401 · 403 · 404 · 422 · 429