billing
POST /v1/accounting/xero/connect
Begin connecting this organization's Xero.
Аутентификација
Пошаљите API кључ као bearer токен. Кључ мора имати дозволу billing.invoice.manage; кључ без ње се одбија уз 403, а не 404.
Ова крајња тачка не прихвата id организације. Ваш кључ већ идентификује организацију којој припада, а одговор је ограничен на њу.
Испробајте
Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.
curl -X POST https://api.zinndigital.com/v1/accounting/xero/connect \
-H "Authorization: Bearer zdk_live_…"Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у API конзоли
Детаљи
Returns the Xero authorization URL to send the customer to. The URL carries a signed, short-lived state that names the organization and the actor — the callback has no other authority, because Xero redirects a browser to it with no credential of ours. 409 ACCOUNTING_CONNECTION_REFUSED means our Xero application has no free organization slot, not that the caller did anything wrong. 422 FEATURE_NOT_INCLUDED means the plan does not include accounting sync and it has not been bought as an add-on. Requires billing.invoice.manage.
Одговор
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
authorizeUrl | string | Да | Send the customer here. Carries a signed, short-lived state; do not modify it. |
Грешке које ова крајња тачка може вратити
401 · 403 · 409 · 422 · 429