Integrations: developer documentation
Integrations: developer documentation
Everything you need to connect your ERP, estimating or purchasing software to DHZ-Proshop: access, keys, the endpoints with examples, ordering on account, punch-out, price lists and webhooks. Version 0.55.
Contents
1. Who it is for and how to get access↑ Contents
The integration is available to business customers of DHZ-Proshop. We activate it per customer account; after that you manage your own keys. Retrieving the catalogue, net prices, availability and price list works with any activated account; to also order from your software you additionally need a credit account.
- Business customer account at DHZ-Proshop in your company's name (with VAT number).
- Activation by DHZ-Proshop: e-mail [email protected] with the e-mail address of your account and the software you use. We switch the integration on for your account and confirm by e-mail. Without that activation, My account › Integrations is not visible.
- Only to order: a credit account (ordering on invoice). Not needed for read-only use. Request one via Help & contact › Business customer.
Steps
- Request activation of the integration by e-mail; we confirm.
- Create a key on My account › Integrations and start.
- Want to order from your software too? Request a credit account; then you can create a key with the ordering right.
sandbox.dhz-proshop.be, same API) via [email protected]. Your customers then use their own DHZ-Proshop account and key.2. Creating an API key↑ Contents
On My account › Integrations you can create up to five active keys. For each key you choose:
- Channel: General API (REST) (also for Odoo, Teamleader, your own software), OCI punch-out (also for cXML; from your purchasing system) or Robaws (as soon as Robaws releases our integration).
- Rights: catalogue, prices, basket (read and clear) and reading your own orders are always on; ordering is a separate right you switch on or off per key, only with a credit account.
The key (dhz_…) is shown once; store it safely in your software, never in a URL or in log files. You can revoke a key on the same page at any time. There you also choose your default delivery option (delivery or pickup), switch on the nightly price list and set up a webhook.
3. Authentication and basic rules↑ Contents
Base URL: https://www.dhz-proshop.be/api/connect. Send your key as the header X-Api-Key: dhz_… (or Authorization: Bearer dhz_…). Everything is JSON, UTF-8, HTTPS. With Accept-Language: nl, fr, en or de you choose the language of names, lead-time texts, URLs and human-readable messages.
curl https://www.dhz-proshop.be/api/connect/ping -H "X-Api-Key: dhz_xxxxxxxxxxxxxxxxxxxxxxxx" -H "Accept-Language: nl"
- Quantities and prices are per package.
quantityPerPackagetells how many units one package contains;unitTypeispackagewhen the item is sold per package (quantityPerPackage > 1), otherwisepiece. - Prices are in euro, excluding VAT:
grossPrice= list price,netPrice= your personal net price (with volume pricing at the given quantity),vatRate= VAT percentage. - No stock quantities. You receive an availability status and the lead-time text of the web shop, never numbers.
- Every error has the same shape:
{ "error", "code", "correlationId", "lines", "warnings" }. Usecodein your software (stable);errorandmessageare human-readable texts without numbers. Quote thecorrelationId(when present) when you ask us a question. - Excluded items (shipping fees, internal items, gift cards, downloads, price on request, price 0) do not exist in the integration.
4. Catalogue↑ Contents
GET /catalog?page=1&pageSize=100 returns all items you can order through the integration, without prices. pageSize is at most 100; total is the total count.
curl "https://www.dhz-proshop.be/api/connect/catalog?page=1&pageSize=100" -H "X-Api-Key: dhz_xxx"
{ "page": 1, "pageSize": 100, "total": 41230,
"items": [ {
"id": 29775, "sku": "571-080-050-A2/100", "gtin": "4043377240079", "mpn": null,
"name": "Houtdraadbout Din 571 8x50 inox A2 (SW13)", "brand": "Dhz-proshop",
"brandId": 15, "categoryIds": [603],
"quantityPerPackage": 100, "unitType": "package",
"url": "https://www.dhz-proshop.be/houtdraadbout-din-571-8x50-inox-a2-sw13",
"photoUrl": "https://www.dhz-proshop.be/images/thumbs/....jpeg",
"updatedOnUtc": "2026-10-29T06:12:44Z", "published": true, "deleted": false
} ] }
Synchronising: with since=<date-time> you only get what changed since then, including items that are not (or no longer) available through the integration (a tombstone: only id, published: false, possibly deleted: true). A tombstone can also be an id you never saw before; ignore unknown ids. Store the start time of your last synchronisation and use it as since.
curl "https://www.dhz-proshop.be/api/connect/catalog?since=2026-11-01T00:00:00Z&page=1&pageSize=100" -H "X-Api-Key: dhz_xxx"
{ "id": 40262, "sku": null, "updatedOnUtc": "2026-11-01T09:00:00Z", "published": false, "deleted": false }
Only part of the range: with category=<id> and/or brand=<id> you only get the items in that category (subcategories included) and/or of that brand. Separate several ids with a comma (20 at most); if you pass both, an item must match both. Get the ids with GET /categories (with parentId, the full path in path and productCount) and GET /brands. productCount is the number of items the catalogue returns with that filter. Every catalogue item also has brandId and categoryIds, so you can group them yourself. An unknown id returns 400 unknown_category or unknown_brand.
curl "https://www.dhz-proshop.be/api/connect/categories" -H "X-Api-Key: dhz_xxx"
{ "total": 262, "items": [
{ "id": 20, "name": "Lijmen & chemie", "parentId": null, "path": "Lijmen & chemie", "productCount": 2140 },
{ "id": 37, "name": "Voegkitten", "parentId": 20, "path": "Lijmen & chemie > Voegkitten", "productCount": 467 } ] }
curl "https://www.dhz-proshop.be/api/connect/brands" -H "X-Api-Key: dhz_xxx"
{ "total": 167, "items": [ { "id": 1, "name": "Soudal", "productCount": 1184 } ] }
curl "https://www.dhz-proshop.be/api/connect/catalog?category=37&brand=1&page=1&pageSize=100" -H "X-Api-Key: dhz_xxx"
The filter also works together with since. An item that leaves the category or brand does not get a tombstone in that case, so run a full synchronisation of your selection now and then (e.g. weekly).
Searching by text: with q=<search term> you only get the items whose name, item number, EAN or manufacturer part number contains every word you give (2 to 80 characters, at most 5 words, not case-sensitive). For example GET /catalog?q=silirub+wit. The search runs on the Dutch product name, also when you request another language. q works together with category, brand and since; an invalid search term returns 400 invalid_query.
5. Prices↑ Contents
POST /prices with ids (product ids) and/or skus (item numbers), at most 200 in total. With quantities (number of packages per item) you get the volume price at that quantity (priceForPackages).
curl -X POST https://www.dhz-proshop.be/api/connect/prices -H "X-Api-Key: dhz_xxx" -H "Content-Type: application/json" -d '{ "ids": ["29775"], "skus": ["9021-008-A2/500"], "quantities": { "29775": 6 } }'
[ { "query": "29775", "found": true, "id": 29775, "sku": "571-080-050-A2/100", "gtin": "4043377240079",
"name": "Houtdraadbout Din 571 8x50 inox A2 (SW13)", "quantityPerPackage": 100, "unitType": "package",
"priceForPackages": 6, "grossPrice": 16.34, "netPrice": 13.51, "vatRate": 21.0,
"currency": "EUR", "pricesIncludeVat": false },
{ "query": "ONBEKEND-123", "found": false, "code": "unknown_product" } ]
An unknown or excluded item comes back with found: false and a code (unknown_product, ambiguous_sku, not_orderable). Prices apply to the customer account of the key.
6. Availability↑ Contents
POST /availability with a list [{ "id": "…" }] (at most 500). Per item: status = in_stock, on_order, unavailable or unknown, orderable and leadTime (the lead time as shown in the web shop; may be null).
curl -X POST https://www.dhz-proshop.be/api/connect/availability -H "X-Api-Key: dhz_xxx" -H "Content-Type: application/json" -d '[ { "id": "29775" }, { "id": "40304" }, { "id": "99999999" } ]'
[ { "id": "29775", "status": "in_stock", "orderable": true, "leadTime": "1 - 3 werkdagen", "code": null },
{ "id": "40304", "status": "on_order", "orderable": true, "leadTime": "3 - 6 werkdagen", "code": null },
{ "id": "99999999", "status": "unknown", "orderable": false, "leadTime": null, "code": "unknown_product" } ]7. Ordering on account↑ Contents
POST /orders places an order on your credit account, delivered to your known address or collected in Beerse. Requires a credit account and the ordering right on the key; without a credit account this call returns 403 orders_not_allowed, even with a key that was given the ordering right earlier.
ourReference(required, max. 100 characters, no|): your purchase order number. It appears as "Reference / PO number" on the order and the invoice. Idempotent: the same reference within 30 days returns the same order (duplicate: true,linesAdded: 0,url= the normal order page); no second order is placed, unless that earlier order has been cancelled in the meantime.orderLines(max. 500):productId(id or item number) andquantityin packages. WithproductUnit: "piece"(alsopcs,each,unit) you give units for packaged items; we convert to whole packages (rounded up). Lines for the same item are added together and then rounded once.preferredPrice(optional): the net price per package excl. VAT you expect (per unit withproductUnit: "piece"). If our price differs by more than 1 % you get the warningprice_differsand we add a note to the order; the order is placed at our current price.delivery:deliveryorpickup; orshippingMethodwith a name fromPOST /shipping-options(same lines, returns the options with rate andkinddelivery/pickup/parcelshop; carrier pickup points cannot be chosen through the API; if the delivery options cannot be calculated, e.g. without a delivery address, the response contains awarningwith codeno_shipping_option). Without it your preference from My account › Integrations applies. Our free "Interne levering" (own delivery) exists for the postcodes around Beerse.note(optional, max. 1000 characters).
curl -X POST https://www.dhz-proshop.be/api/connect/shipping-options -H "X-Api-Key: dhz_xxx" -H "Content-Type: application/json" -d '{ "orderLines": [ { "productId": "29775", "quantity": 6 } ] }'
{ "options": [ { "name": "Interne levering", "rate": 0, "kind": "delivery", "description": "...", "default": true },
{ "name": "Afhalen: Dhz-proshop Beerse", "rate": 0, "kind": "pickup", "description": "...", "default": false },
{ "name": "Thuis levering via DPD", "rate": 6.95, "kind": "delivery", "description": "...", "default": false } ],
"currency": "EUR", "hint": "..." }
curl -X POST https://www.dhz-proshop.be/api/connect/orders -H "X-Api-Key: dhz_xxx" -H "Content-Type: application/json" -d '{
"ourReference": "PO-2026-0457",
"delivery": "delivery",
"note": "Werf Luchtbal, leveren voor 10u",
"orderLines": [
{ "productId": "29775", "quantity": 6 },
{ "productId": "9021-008-A2/500", "quantity": 600, "productUnit": "piece", "preferredPrice": 0.0338 }
]
}'
{ "orderId": 99712, "orderNumber": "99712", "orderTotal": 123.45, "shippingMethod": "Interne levering",
"url": "https://www.dhz-proshop.be/connect/auto-login?token=...", "linesAdded": 2, "duplicate": false,
"warnings": [ { "code": "converted_pieces_to_packages", "line": 2, "productId": "9021-008-A2/500", "sku": "9021-008-A2/500",
"message": "Hoeveelheid in stuks omgezet naar verpakkingen (naar boven afgerond)" } ] }
All or nothing: if one line cannot be ordered you get 422 order_rejected with the line errors in lines and nothing is placed. Warnings in warnings (rounding to packages, price difference, delivery option replaced, post-processing notice) mean the order was placed. orderTotal is the order total including VAT and shipping; url is a one-time link to the order in your account, valid for 10 minutes.
{ "error": "Bestelling geweigerd", "code": "order_rejected", "correlationId": null, "warnings": null,
"lines": [ { "code": "min_quantity", "line": 1, "productId": "29775", "sku": "571-080-050-A2/100",
"message": "Onder de minimale bestelhoeveelheid van dit product" } ] }
Following up your orders
GET /orders returns the orders of your account, newest first, including orders placed in the web shop (pageSize at most 50). Filter with status (pending, processing, complete, cancelled), reference (your purchase order number, exact match) and since (placed from that date-time). GET /orders/{id} (id or order number) returns one order with its lines and shipments: per shipment the tracking number, a tracking link when the carrier offers one, the shipping and delivery date and the shipped lines. For pick-up, pickup is true and readyForPickupDateUtc is filled as soon as the order is ready. Every key for the REST API can do this; a credit account is not required. Prefer a notification on every change? Use the webhooks (chapter 10).
curl "https://www.dhz-proshop.be/api/connect/orders?page=1&pageSize=20&status=processing" -H "X-Api-Key: dhz_xxx"
{ "page": 1, "pageSize": 20, "total": 37, "items": [
{ "id": 99712, "number": "99712", "reference": "PO-2026-0457", "channel": "generic",
"createdOnUtc": "2026-11-02T14:05:11Z", "status": "Processing", "paymentStatus": "Pending",
"shippingStatus": "Shipped", "total": 122.62, "currency": "EUR" } ] }
curl "https://www.dhz-proshop.be/api/connect/orders/99712" -H "X-Api-Key: dhz_xxx"
{ "id": 99712, "number": "99712", "reference": "PO-2026-0457", "channel": "generic",
"createdOnUtc": "2026-11-02T14:05:11Z", "paidDateUtc": null,
"status": "Processing", "paymentStatus": "Pending", "shippingStatus": "Shipped",
"shippingMethod": "Thuis levering via bpost", "pickup": false,
"subtotalExclTax": 101.34, "shippingExclTax": 0, "tax": 21.28, "total": 122.62, "currency": "EUR",
"items": [ { "productId": 29775, "sku": "571-080-050-A2/100", "gtin": "4043377240079", "name": "Houtdraadbout Din 571 8x50 inox A2 (SW13)",
"quantity": 6, "unitType": "package", "quantityPerPackage": 100, "quantityPieces": 600, "unitPriceExclTax": 13.51, "priceExclTax": 81.06 } ],
"shipments": [ { "id": 81124, "trackingNumber": "323212345678901234567890",
"trackingUrl": "https://track.bpost.cloud/btr/web/#/search?itemCode=323212345678901234567890&lang=nl",
"shippedDateUtc": "2026-11-03T08:12:00Z", "readyForPickupDateUtc": null, "deliveryDateUtc": null,
"items": [ { "productId": 29775, "sku": "571-080-050-A2/100", "quantityPieces": 600 } ] } ] }
You can read or clear the web shop basket of your account (GET /basket, DELETE /basket); the REST order does not use it.
8. Punch-out: OCI and cXML↑ Contents
If your purchasing system works with punch-out (OCI or cXML), the user opens DHZ-Proshop from that system, fills the basket on our site and sends it back to the system. Create a key with channel OCI punch-out for this.
OCI
Post to https://www.dhz-proshop.be/oci/login with USERNAME (the e-mail address of the account), PASSWORD (the key), HOOK_URL (your return URL: https, absolute URL with a host name, max. 1000 characters) and optionally ~TARGET. Always POST: the key must never appear in a URL.
<form method="post" action="https://www.dhz-proshop.be/oci/login">
<input type="hidden" name="USERNAME" value="[email protected]">
<input type="hidden" name="PASSWORD" value="dhz_xxx">
<input type="hidden" name="HOOK_URL" value="https://erp.yourcompany.com/oci/return">
<button>Open DHZ-Proshop</button>
</form>
On "Transfer basket" we post to your HOOK_URL, per item n:
| Field | Content |
|---|---|
NEW_ITEM-DESCRIPTION[n] | description (max. 40 characters) |
NEW_ITEM-QUANTITY[n] | number of packages |
NEW_ITEM-UNIT[n] | PK / PCE |
NEW_ITEM-PRICE[n] | net price per package, excl. VAT |
NEW_ITEM-PRICEUNIT[n] | 1 |
NEW_ITEM-CURRENCY[n] | EUR |
NEW_ITEM-VENDORMAT[n] | our item number (sku) |
NEW_ITEM-EXT_PRODUCT_ID[n] | our product id |
NEW_ITEM-MANUFACTMAT[n] | manufacturer part number |
NEW_ITEM-VENDOR[n] | DHZ-Proshop |
NEW_ITEM-CUST_FIELD1[n] | EAN |
NEW_ITEM-CUST_FIELD2[n] | units per package |
NEW_ITEM-CUST_FIELD3[n] | web shop URL of the item |
NEW_ITEM-LONGTEXT_n:132[] | short description |
cXML
Send your PunchOutSetupRequest to https://www.dhz-proshop.be/cxml/setup with the key as SharedSecret (Header › Sender › Credential) and your https return URL as BrowserFormPost/URL (same rules as HOOK_URL). You receive a PunchOutSetupResponse with the StartPage/URL (one-time, valid for 10 minutes). The basket is returned as the form field cxml-urlencoded containing a PunchOutOrderMessage: per ItemIn the quantity in packages, UnitOfMeasure PK or EA, UnitPrice net per package, SupplierPartID = item number, SupplierPartAuxiliaryID = product id, plus Extrinsic EAN and QuantityPerPackage. Then process the order in your system or place it with us via POST /orders with your PO number as ourReference.
9. Price lists (CSV, Excel, Datanorm)↑ Contents
Does your software read a file rather than an API? Switch on the nightly price list on My account › Integrations. Every night (between 1 and 2:30 am Belgian time) we generate a file with your net prices (items with a net price only); the first file is ready the next morning, before that GET /pricelist returns 404 not_found. Download it with the buttons on that page or with GET /pricelist?format=csv|xlsx|datanorm.
dhz-prijslijst.csv: semicolon-separated, UTF-8, columns ARTNO_OR; ART_OM; WMG; FABR; C1; NET_P1; BRUTO_P; EAN; VERPAKKING; EENHEID; BTW; URL (Cafca layout).dhz-prijslijst.xlsx: not available above 25,000 rows.DATANORM.001: Datanorm version 4, Latin-1.
10. Webhooks↑ Contents
Want to know immediately when an order is created, paid, shipped, delivered or cancelled? Enter an https URL on My account › Integrations (port 443, publicly reachable host name); you receive a secret (whs_…). You receive notifications for all orders of your account, including orders placed in the web shop (then reference is empty).
- Events:
order.created,order.paid,order.shipped,order.delivered,order.cancelled;testvia the button "Send test message". A new secret is made with "New secret". - Headers:
X-DhzConnect-Event,X-DhzConnect-Event-Id(same id on every attempt: deduplicate),X-DhzConnect-Timestamp(Unix seconds),X-DhzConnect-Signature=sha256=+ HMAC-SHA256 with your secret overtimestamp + "." + body, lowercase hex. - We try twice (1.5 s pause); answer within 8 seconds with a 2xx status. No redirects.
POST https://erp.uwbedrijf.be/dhz-webhook
X-DhzConnect-Event: order.shipped
X-DhzConnect-Event-Id: 8f1c0c2e-...
X-DhzConnect-Timestamp: 1793612611
X-DhzConnect-Signature: sha256=3b7f... (= HMAC-SHA256(secret, timestamp + "." + body), hex)
Content-Type: application/json
User-Agent: DhzConnect-Webhook/1.0
{ "event": "order.shipped", "eventId": "8f1c0c2e-...", "sentAtUtc": "2026-11-03T08:12:00Z",
"order": { "id": 99712, "number": "99712", "reference": "PO-2026-0457", "channel": "generic",
"createdOnUtc": "2026-11-02T14:05:11Z", "status": "Processing", "paymentStatus": "Pending", "shippingStatus": "Shipped",
"shippingMethod": "Interne levering", "subtotalExclTax": 101.34, "shippingExclTax": 0, "tax": 21.28, "total": 122.62, "currency": "EUR",
"items": [ { "productId": 29775, "sku": "571-080-050-A2/100", "gtin": "4043377240079", "name": "Houtdraadbout Din 571 8x50 inox A2 (SW13)",
"quantity": 6, "unitType": "package", "quantityPerPackage": 100, "quantityPieces": 600, "unitPriceExclTax": 13.51, "priceExclTax": 81.06 } ] },
"shipment": { "id": 81124, "trackingNumber": "05438804888030", "shippedDateUtc": "2026-11-03T08:12:00Z", "deliveryDateUtc": null } }
shipment is null for order.created, order.paid and order.cancelled. Status values are the web shop statuses (Pending, Processing, Complete, Cancelled; Pending, Paid; NotYetShipped, Shipped, Delivered). The test message contains event, eventId, sentAtUtc, customerId and message.
11. Limits and error codes↑ Contents
| Limit | Value |
|---|---|
| Calls per minute (all keys of the account together) | 120; above that 429 rate_limited with Retry-After. Every block of 50 ids, lines or catalogue items (pageSize), or part of one, in a call counts as one call. |
| Concurrent calls per account | 2; a third waits up to 10 seconds and then gets 429 too_many_concurrent |
| Catalogue | pageSize ≤ 100 |
| Reading orders | pageSize ≤ 50 |
| Prices | ≤ 200 ids/item numbers per call |
| Availability | ≤ 500 ids per call |
| Order | ≤ 500 lines; reference ≤ 100 characters; note ≤ 1000 characters; max. 30 rejected orders per 24 hours |
| Keys | ≤ 5 active per account; a web shop session via a key expires after 8 hours |
| HTTP | code | Meaning |
|---|---|---|
| 400 | bad_request, invalid_json, too_many_ids, too_many_lines, invalid_reference, unknown_category, unknown_brand, invalid_query, invalid_status | error in your request |
| 401 | invalid_key, account_inactive | key missing, wrong or revoked; account not active |
| 403 | not_activated, wrong_channel, missing_scope, orders_not_allowed | integration not activated for this account, key of another channel, right missing (e.g. ordering without credit account) |
| 404 | not_found | price list not generated yet; order not found |
| 409 | busy | another call for this account is still running; retry with the same ourReference |
| 422 | order_rejected, missing_lines, missing_reference, reference_too_long, note_too_long, no_shipping_option, no_billing_address, payment_not_allowed, order_failed | order not placed; see lines |
| 429 | rate_limited, too_many_concurrent, too_many_failures, too_many_rejections | too fast, too many at once, too many wrong keys or rejected orders |
| 500 | internal_error | unexpected error; quote the correlationId |
| 503 | api_disabled | integration temporarily disabled |
Line errors in an order: unknown_product, ambiguous_sku, not_orderable, unavailable, invalid_quantity, min_quantity, max_quantity, quantity_step. Stock is only checked once all lines are otherwise valid; with several lines a stock shortage gives one general not_orderable without line number. Warnings: rounded_up_to_package, converted_pieces_to_packages, price_differs, shipping_option_unavailable, pickup_unavailable, lines_merged, order_postprocessing_warning.
12. Per software↑ Contents
Via the REST API above: synchronise catalogue and prices, show availability, order on account.
OCI or cXML: key with channel OCI punch-out, see chapter 8.
Nightly price list as CSV, Excel or Datanorm, see chapter 9.
Web shop integration following the Robaws protocol (import basket, price sync, ordering). Activated as soon as Robaws releases our integration.
We are in contact with these vendors. Do you use one of them? Let us know and we will give you priority.
13. Version, changes and contact↑ Contents
Current version: 0.55 (November 2026). The full machine-readable specification is at https://www.dhz-proshop.be/api/connect/openapi (OpenAPI 3.0, importable in Postman, Insomnia or your development environment). Changes that affect existing integrations are announced in advance by e-mail to customers with an active key.
Questions or a problem? E-mail [email protected] with the correlationId from the error and the time. We help you on working days between 9 am and 5 pm.