Conventions How-to Open in shop →
Versions, paging, money, time, language, idempotency and the rate limit.
Path: Home › Footer: Developer / API
Versions
The major number is in the path: /api/v1/. A breaking change appears only in a new major number, never silently in the existing one. New fields and new addresses, on the other hand, may arrive at any time.
That implies one duty for your client: ignore unknown fields. A client that trips over a new field turns a permitted addition into an outage.
Paging
With a cursor, not a page number. A list with page=2 is wrong as soon as the data changes while you page through it: if something is deleted on page 1, a record slides forward from page 2 and you never see it. If something is created, you see one twice. A nightly catalogue synchronisation does not survive that, and it does not get noticed, because nothing crashes.
A cursor describes the position instead. This is how you page:
GET /api/v1/products?limit=50- The response carries
has_moreand, when true, the headerX-Ptz-Page-Info. GET /api/v1/products?limit=50&page_info=<value>
A cursor belongs to exactly one sort order. If you change sort, start again without page_info. A cursor that does not fit is an error, not a silent restart at page 1: otherwise your program would loop forever over the first fifty objects.
Money
Always an integer in cents, plus the currency. 9.90 euro is 990. Never a decimal number: a floating point value in JSON is rounded differently by different languages, and a price that becomes 9.899999 on your side is a bug nobody looks for, because it does not crash.
A decimal in a cents field is therefore rejected, not converted.
Time
Always ISO 8601 with a time zone, for example 2026-08-30T10:00:00+02:00. A timestamp without a zone forces every caller into an assumption, and half of them get it wrong twice a year.
Language
?lang=en wins over Accept-Language, the default is English. Language affects the plain text: product titles, descriptions, category names and the reasoning in an error message.
What never changes with the language: the field name, the code of an error and the HTTP status. Your program branches on code, not on detail.
Idempotency
Write calls that create something new require the Idempotency-Key header: your own reusable value per operation (8 to 190 characters, a UUID is a good choice).
- Same key, same body: you receive the stored response of the first call. Nothing is written a second time.
- Same key, different body:
409. This is not pedantry. Without that check you would believe your second, changed request had arrived, while in truth you are reading the answer to the first. - After 24 hours the key is forgotten and free again.
The key belongs to your access token. Two integrators may pick the same UUID without delivering each other foreign answers.
Rate limit
Every access token has a bucket of points. It holds a number of points and refills at a fixed rate per second.
| Call | Cost |
|---|---|
| Single fetch | 1 |
| List | 1 plus 0.1 per returned object |
| Write | 10 |
Every response names the state: X-Ptz-Rate-Limit: 38/40, X-Ptz-Rate-Restore: 2, X-Ptz-Request-Cost: 1. When the bucket is empty, 429 arrives with Retry-After in seconds.
Why a bucket and not a counter per minute: a per-minute counter punishes the steady user and rewards bursts. The bucket allows a short burst and then exactly the sustained rate.
Headers on every response
X-Ptz-Api-Versionthe serving version.X-Ptz-Request-Idthe id of this request. It also appears in the error body and in the log. Note it down when something goes wrong: it is the only bracket between your report and the line in the marketplace log.- The three rate limit values.
When writing is not possible right now
The interface never writes into the catalogue directly, but always through the product data processing of the marketplace. If that is switched off, write calls answer with 503 and the code service_unavailable, and the reason says so in plain words. Read calls continue to work unchanged.
That is not an outage but a promise: you get a statement instead of a server error, and you can check the state up front at any time with GET /api/v1/auth/whoami (field write_available).
This page did not answer your question? The Help Center has more articles, or open a support ticket directly.