API reference
Base URL https://api.zahrex.com/v1
| Method | Path | Auth | Scope | Description |
|---|---|---|---|---|
POST | /oauth/token | client_credentials | Exchange a client id and secret for a one-hour access token. | |
POST | /events | token_or_key | depends on event type | Send one event, or {"events": [...]} as a batch; each event is {id, type, occurred_at?, data} and needs an id or an Idempotency-Key header. Answers per event in results[]: accepted, duplicate, or rejected with an error message. A rejected event does not fail the others. |
GET | /catalog/services | token_or_key | catalog:read | List the organization's active services. |
GET | /catalog/products | token_or_key | catalog:read | List the organization's products. |
GET | /customers | token_or_key | customers:read | Look up a customer by the phone or email query parameter. |
GET | /reference.json | none | This document. |