partner
GET /v1/partner/events
Poll what happened to your customers' orders and domains.
Аутентификација
Пошаљите API кључ као bearer токен. Кључ мора имати дозволу partner.domains; кључ без ње се одбија уз 403, а не 404.
Ова крајња тачка не прихвата id организације. Ваш кључ већ идентификује организацију којој припада, а одговор је ограничен на њу.
Испробајте
Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.
curl -X GET https://api.zinndigital.com/v1/partner/events \
-H "Authorization: Bearer zdk_live_…"Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у API конзоли
Детаљи
Oldest first by the time each event was written, strictly after after (the next_cursor of your previous page; omit it to start from the beginning). Event ids are NOT time-ordered, so never compare them yourself: the cursor is the only position. An after that is not an event this feed served you is a 422. Only customers whose link is active are included; order events cover only orders you placed; domain events cover every domain in a linked organization. Events are released 30 seconds after they are written so a slow transaction cannot land behind your cursor — delivery is at least once, so de-duplicate on id. A page can be shorter than limit and still have has_more: true. Webhooks ARE offered — see /v1/partner/webhooks — and this feed remains the authoritative catch-up behind them. Requires partner.domains.
Параметри
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
after (query) | string | Не | — |
limit (query) | integer | Не | — |
Одговор
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
events | PartnerEvent[] | Да | — |
next_cursor | string | Да | Pass as after next time. Unchanged when the page is empty. |
has_more | boolean | Да | — |
Грешке које ова крајња тачка може вратити
401 · 403 · 422 · 429