Developers
On this page

Conventions

The rules that hold for every endpoint. Read them once; the reference then needs few words.

JSON in, JSON out

Answers are JSON in UTF-8. A successful answer has a data member; a failed one has an error member with a fixed code (see Errors). Request bodies are JSON too and must be sent with Content-Type: application/json; a body may be at most 256 KB.

The message of an error is translated: send Accept-Language (en, tr, de, es, fr or it) to choose the language. Programs act on the code, never on the message.

Text is raw

Answers are JSON. Text values are not HTML-escaped: a program must escape them itself before it shows them on a web page.

A product name such as Tom & Jerry <XL> arrives exactly like that. Escape it for the place you put it (HTML, a spreadsheet formula, a shell command, an SQL statement) as you would any text typed by a stranger, because that is what a customer name or an address is.

Amounts and currency

Amounts are decimal text, for example "149.90", never floating point numbers, and every object that has amounts names its currency. Parse them with a decimal type. An order is in the currency the customer paid in; base_total and base_currency give the total in the store's own currency.

Dates and times

Instants are ISO 8601 in UTC with a trailing Z: 2026-12-01T10:00:00Z. Plain dates (the date of a document number) are YYYY-MM-DD. Instants you send, for example in updated_since, must carry a time zone. GET /v1/store returns the store's time_zone for display and its server_time so that you can spot a clock that runs wrong.

Paging

Lists come in pages: “limit” sets the page size, “cursor” takes the “next_cursor” value of the previous page. There is no total count.

curl
# first page
curl -sS "https://example.com/api/v1/products?limit=100" \
  -H "Authorization: Bearer $ORIGELA_API_KEY"
# -> { "data": [ ... 100 rows ... ], "next_cursor": "100" }

# next page: hand next_cursor back exactly as you received it
curl -sS "https://example.com/api/v1/products?limit=100&cursor=100" \
  -H "Authorization: Bearer $ORIGELA_API_KEY"
# -> { "data": [ ... ], "next_cursor": null }     null: this was the last page
  • limit is 1 to 100, 50 if you leave it out.
  • Rows come in a fixed order, oldest record first. Treat next_cursor as an opaque value; null means there is no further page.
  • There are no totals and no page numbers. To count, read all pages.
  • Keep the other parameters the same while you page.

Following changes

To follow changes, ask at regular intervals with “updated_since” and let each query overlap the previous one by a few minutes.

curl
# last successful poll started at 10:00:00Z; ask again from five minutes earlier
curl -sS "https://example.com/api/v1/orders?updated_since=2026-12-01T09:55:00Z&limit=100" \
  -H "Authorization: Bearer $ORIGELA_API_KEY"
  1. Note the time before you start a poll.
  2. Ask for everything with updated_since = the start of your previous poll minus a few minutes, and read all pages.
  3. Rows you already have will come again; match them by id and overwrite. Process every row so that seeing it twice does no harm.
  4. Only when all pages arrived, store the time from step 1 as the new starting point.

updated_since follows any change of a record, so a row may come back although the member you care about is the same. It never misses a change. There are no webhooks in version 1; a poll every few minutes costs one small request when nothing happened.

Nothing unknown is accepted

Unknown parameters and unknown fields are refused (422).

A misspelt parameter is an error, not a filter that silently does nothing. The answer names the offender in field, without repeating its value:

json
{
  "error": {
    "code": "invalid_parameter",
    "message": "A parameter is unknown or has an invalid value.",
    "request_id": "8c2e5a9d01b7f346",
    "field": "updated_since"
  }
}

In the other direction, be generous: later versions of the store software may add members to answers. Ignore members you do not know.

Limits

Limits per key: 120 requests a minute, 20 a minute for answers with personal data, 30 writes a minute. Over the limit the answer is 429 with a “Retry-After” header.

http
HTTP/1.1 429 Too Many Requests
Retry-After: 17

{ "error": { "code": "rate_limited", "message": "Too many requests. Please retry later.", "request_id": "b07d4e61c2a9f853" } }

Wait as many seconds as Retry-After says, then go on. A request on orders counts against the personal-data limit as soon as the key holds a permission that adds personal data to orders, so a reporting key without those permissions gets the higher limit. Every request that changes something counts against the write limit, whichever endpoint it goes to.

Rows per request and daily allowances

The writes that take rows accept a fixed number per request, and three writes also have a daily allowance per key. Beyond the allowance the answer is 429 daily_limit until the next day; the store owner gets a notice when a key works at an unusual volume.

WritePer requestPer key and day
PATCH /v1/stockup to 100 stock codes per requestno daily allowance of its own
PATCH /v1/pricesup to 100 stock codes per request20,000 price rows a day
POST /v1/productsone product per request500 products a day
POST /v1/orders/{id}/shipmentone order per request500 shipments a day
PUT /v1/orders/{id}/referenceone document number per requestno daily allowance of its own

Over all writes together a key can send at most 5,000 write requests within 24 hours; the answer beyond that is the same 429 daily_limit.

The guard on price writes

A misplaced decimal point in a price list is the kind of mistake that empties a warehouse overnight, so price writes have a limit of their own that no parameter switches off. Neither the price a unit sells at (its sale price when it has one, otherwise its price) nor its list price may leave the range of one tenth to 10 times what it was before the first change the API made to that unit within the last 24 hours. A row that would go further is refused with the reason change_too_large, and the store owner is told. Sending the change in smaller steps does not help, because the range is measured from the price before the first step. A change of that size is made by a person in the store panel.

Licence

The API works only while the store's licence is active. While it is not, a valid key gets 403 license_inactive. Your program has done nothing wrong; slow down and tell the owner.

Maintenance

While the store software is being updated, every request gets 503 maintenance with a Retry-After header, usually for a few minutes. 503 unavailable means the store is busy at this moment. In both cases wait and repeat; nothing was changed.

Writes and the Idempotency-Key

Every write needs an “Idempotency-Key” header (16 to 64 characters). A request repeated with the same value changes nothing twice.

Networks fail in the middle of requests. When a write gets no answer you cannot know whether the store carried it out. The Idempotency-Key header makes repeating safe: it is your own name for this one change, 16 to 64 characters of A-Z a-z 0-9 _ -.

You sendThe store answers
A new valueCarries out the request and records the answer for 24 hours.
The same value, the same requestChanges nothing; returns the recorded answer with the header Idempotency-Replayed: true.
The same value, a different request409 idempotency_conflict.
The same value while the first request is still running or ended without a recorded result409 request_in_progress. Read the current state, then use a new value.

This holds for all five writes alike, the price and product writes included: a product is created once and a price row is applied once, however often the same request is repeated.

Build the value from what the change is (order number and tracking number, the id of your goods receipt, your invoice number, the number of your price list, the stock code of the new product) or create a random one and store it with the job before you send. Do not create a new value for a retry: that would be a second change.

A worked retry

curl
# 1. first attempt: the connection drops before the answer arrives
curl -sS -X POST "https://example.com/api/v1/orders/1042/shipment" \
  -H "Authorization: Bearer $ORIGELA_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: ship-1042-20261201-a7c3" \
  -d '{"carrier_code":"yurtici","tracking_number":"1234567890"}'
# curl: (56) connection reset        did the store ship the order or not? You cannot know.

# 2. repeat the SAME request with the SAME Idempotency-Key
curl -sS -i -X POST "https://example.com/api/v1/orders/1042/shipment" \
  -H "Authorization: Bearer $ORIGELA_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: ship-1042-20261201-a7c3" \
  -d '{"carrier_code":"yurtici","tracking_number":"1234567890"}'
# HTTP/1.1 200 OK
# Idempotency-Replayed: true         the first attempt had gone through; this is its recorded answer
#
# Without that header the answer is a fresh one: the first attempt never arrived and the order was shipped now.
# Either way the order is shipped exactly once and the customer gets one e-mail.

Rule of thumb: no answer, 500 or 503: repeat with the same value, with growing pauses. 4xx: the store understood and refused; repeating the same request will be refused again, so fix the cause first.

The request id

Every answer carries an X-Request-Id header (16 characters), and every error repeats it as request_id. Log it. When something fails that you cannot explain, the store owner can find the request under that id.

Origela Store API v1, store software 1.0.31. Last updated 2026-12-01. Origela is e-commerce software sold as a yearly licence.

openapi.json · llms.txt · origela.com