# Roerdink B2B API > REST API of Roerdink, a B2B footwear wholesaler in the Netherlands, for its wholesale customers and their agencies: catalogue and stock synchronisation, placing orders, order status and track & trace, and product/stock webhooks. JSON over HTTPS at https://api.roerdink.nl, all endpoints under /api/v1, HTTP Basic authentication. Rules to follow when writing code against this API (they describe how the server behaves today): - Authenticate every request with HTTP Basic: username = API id, password = API password, both GUIDs issued by Roerdink. Send the Authorization header pre-emptively; the server sends no WWW-Authenticate challenge (in .NET set HttpClient.DefaultRequestHeaders.Authorization, do not rely on HttpClientHandler.Credentials). Keep credentials server-side. - Send `Accept: application/json` (otherwise some clients get XML) and `Content-Type: application/json` with a body. - Rate limit: max. 50 requests per 60-second window per API account. A 429 has a plain-text body and no Retry-After header; wait, then continue. Never call in parallel bursts. - Most errors (validation, unknown or foreign ids, missing permission) are returned as HTTP 500 with JSON; the reason is in `ExceptionMessage`. Do not retry these. An unexpected server error reads `Internal error (reference ...)`; quote the reference to Roerdink. Never blindly retry POST /api/v1/orders (no idempotency key). - Responses omit properties whose value is null and may contain undocumented properties: parse defensively. - Products: one product = one size/colour variant. Match on `productcode` (preferred) or EAN (`barcode` in responses, `ean` or `barcode` on order lines), exact match only. `idproduct` is the warehouse id. The catalogue `model_id` is NOT a product id. - Orders: POST /api/v1/orders with `products: [{productcode, amount}]` and the full delivery address. Never send prices (ignored, Roerdink sets them) or `idcustomer`. Store `idorder` from the response; it is the only stable key. - After creation Roerdink processes the order automatically: it sets net prices, rounds amounts up to the pack size (`purchase_in_quantities_of`; it then e-mails the order's `emailaddress`, so order in multiples), overwrites `reference` (e.g. `Roerdink order (NC): 734512`) and moves your reference to `customer_remarks` as `Referentie klant: `. Never look orders up by `reference`. Do not call /process or /allocate and do not modify orders after creation. - A delivery address that is not registered for the customer (postcode + house number, last digit group of `deliveryaddress`), or a missing postcode, makes the order a dropshipment. Send `dropshipment: true` for consumer deliveries. - There is no sandbox: every order is real. - Stock: GET /api/v1/connectedstock?limit=1000&offset=N, repeat until a page has fewer than 1000 rows. `stock[0].freestock` is capped at 30 (30 means 30 or more), as is all stock in this API including /products and webhooks; only models released to the account are included. /api/v1/allstock needs extra permission. - Catalogue: GET /api/v1/catalogue?offset=N, fixed 1000 rows per page. Its `price` is the recommended retail price, not the purchase price. - Order follow-up: no order or shipment webhooks. Poll GET /api/v1/orders/{idorder} (status, picklists) and GET /api/v1/picklists/{idpicklist}/shipments (trackingcode, tracktraceurl). - Webhooks: only `products.changed` and `products.free_stock_changed` are delivered (other event names are accepted but never fire). Body is sent as `text/json`; header `X-Picqer-Signature` = lowercase hex HMAC-SHA256 of the body with the secret, but computed over the body with every non-ASCII character replaced by `?` - verify the raw body first, then that fallback. Return 2xx quickly; up to 15 retries; process idempotently. Events cover all products, not only the customer's. DELETE /api/v1/hooks/{idhook} currently does not stop deliveries. ## Docs - [Integration guide](https://api.roerdink.nl/integration-guide.md): step-by-step guide with the order flow, stock sync, product matching, error handling, webhooks, known limitations and curl/PHP/C# examples - [OpenAPI specification](https://api.roerdink.nl/openapi.json): OpenAPI 3.0 description of every endpoint with request/response schemas and examples ## Optional - [Interactive API reference](https://api.roerdink.nl/swagger/): Swagger UI rendering of the OpenAPI specification (read-only) - [Integration guide (HTML)](https://api.roerdink.nl/integration-guide.html): the same guide rendered for browsers