Responses
The envelope of every answer, its headers, and how amounts are written.
Version v1.1, updated
Every successful answer is a JSON object with the result in data. Lists add meta, and every answer carries headers you can log and act on.
The envelope
One record comes in data. A list comes in data as an array, with meta for the next page.
{
"data": {
"created_at": "2026-09-01T07:30:00.000Z",
"description": "Flours for resale",
"external_ids": [],
"id": "00000000-0000-4000-8000-000000000021",
"name": "Flour",
"product_kind": "goods",
"updated_at": "2026-09-28T14:05:12.417Z"
}
}A create or an update answers with the record as its read operation returns it. You never need a second call to see the result.
Status codes
Headers
Amounts in responses
Amounts, prices and quantities are decimal strings, never JSON numbers. Money has two decimals, such as "64.50". Unit prices and invoice quantities have four, such as "3.2000", and stock quantities up to three.
Read them with a decimal type, never a floating point one. Decimal strings, dates and ids lists every rule.
Related
- requests
- pagination-and-filtering
- formats
- errors-overview