Before you start
You need:- The Custom data page, read once.
- The Custom Data API source added in Eyk under Sources.
- An API key, created on the Configure tab of that source with Create API key. The key is shown once.
- Your organization id, the UUID after
/org/in the URL of your Eyk environment.
Endpoints
Every request carries the header
X-API-Key and a JSON body: one object, or an array of up to 100 objects. Every object carries your organization_id. Timestamps are ISO 8601 with a timezone offset, for example 2026-03-14T10:15:00Z. Every field, with its type and meaning, is in the Data API reference.
1
Validate a first object
Send one product variant with
debug=true. Eyk validates the object and your key and stores nothing. A 200 means the object is accepted.2
Send variants and customers
Repeat without
debug=true for every variant your order lines refer to, in batches of up to 100. Then send your customers to /v1/customers. email is required on a customer.3
Send orders
Refer to the customer and the variants by id. Every amount excludes tax.
customer and product_variant also take the full object instead of the id. Then you can skip the separate customer and variant requests.4
Send refunds
Send each refund to
/v1/refunds with the order_id of the refunded order, the amount refunded for goods, and the refunded lines in items when you have them.5
Send changes as they happen
Send a record again, in full, with a later
updated_at whenever it changes. Per id the latest updated_at wins.6
Send cost corrections
Optional. When a second system, such as an ERP, knows the real shipping cost or cost of goods, send an order update. Only the fields you name change. Per field, the update with the highest
priority wins, then the latest occurred_at.Warning header that names it.
Check it worked
Open the Custom Data API source in Eyk under Sources. The Monitor tab lists orders, refunds, product variants and customers received per day. Data appears in reports the morning after Eyk’s night run.Troubleshooting
422 with a message about the timestamp
422 with a message about the timestamp
A timestamp has no timezone offset. Send
2026-03-14T10:15:00Z or 2026-03-14T12:15:00+02:00.403 Forbidden
403 Forbidden
The API key does not belong to this
organization_id. Check the id after /org/ in your Eyk URL, and the scope chosen when the key was created.422 batch size exceeds maximum
422 batch size exceeds maximum
The array holds more than 100 objects. Split it.
422 duplicate item IDs
422 duplicate item IDs
Two lines in one order share an
id. Line ids must be unique within the order.200 but the order is missing in reports
200 but the order is missing in reports
Reports update once a night. If the order is still missing the next morning, check the Monitor tab for the day you sent it. Then check that its
variant_id and customer_id values match records you sent.