ReferenceCustomers
List customers
`limit` defaults to 50. `q` matches against the customer name. Results are ordered newest first. Pass the previous response's `nextCursor` as `cursor` to page.
Authorization
apiKey AuthorizationBearer <token>
A Hashira API key.
In: header
Query Parameters
q?string
limit?integer
Range
1 <= value <= 100cursor?string
Format
uuidResponse Body
application/json
application/json
application/json
curl -X GET "https://example.com/v1/customers"{ "data": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "taxId": "string", "email": "string", "phone": "string", "createdAt": "2019-08-24T14:15:22Z" } ], "nextCursor": "53a4a333-2825-45a4-80d2-5f430d088f36"}Create a product POST
A product is a catalog entry with no price of its own. Prices are attached separately and are append-only, so repricing means adding a price and deactivating the old one.
Create a customer POST
Requires a name plus at least one of `taxId`, `email` or `phone` — a name alone identifies nobody to the payment gateway. That rule is enforced by the request schema and by a database constraint, and a violation reports under `taxId` in the `fields` object.