Skip to contentBordex Shop

External Shop API

Quickstart

Connect your system to your own shop with a private product feed, product configuration pricing and an order API. These documents are public; integration requests require a shop credential.

Use your own HTTPS shop domain and a Shop Bearer token.

Product feed quickstart

  1. In your own shop admin, go to API → Product feed and turn on Feed export enabled. Save and generate a snapshot before the first download.
  2. In API → Credentials, create a named Bearer token with feed:read. Save the secret shown once in your server’s secret store.

Use the format configured by your shop: format=json for JSON or format=xml for typed XML. The format query parameter is required even when you send an Accept header. If the shop publishes a gzip archive, decompress it before parsing.

cURL
Example request (placeholder token)
curl --fail-with-body 'https://your-shop.example.test/feed?format=json' \
  -H 'Authorization: Bearer <secret>' \
  -H 'Accept: application/json'
JSON
200 OK — JSON response excerpt (synthetic, some fields omitted)
{
  "feed_version": "1.0",
  "snapshot_id": "01J8K4Q2M6P0R3T5V7X9Y1Z2A4",
  "products": [{"product": {"sku": "0062"}}]
}

Common feed errors

400
The format parameter is missing or invalid. Use lowercase json or xml.
401
The Bearer token is missing, invalid or revoked, or authentication is temporarily limited. Verify the shop HTTPS domain and token.
403
The token lacks feed:read or feed export is not authorized for this shop.
404
No current snapshot exists, or the host is not a shop domain. Check the host and ask your shop administrator to generate a snapshot.
406
The requested format is valid but is not the one configured for this shop.
429
The credential’s request limit has been reached. Back off before retrying.
503
The snapshot is stale or temporarily unavailable. Keep your last validated snapshot and retry later.
Feed contract, refresh and integration details

Private product feed: consumer integration guide

Contract: 1.0, JSON Schema draft 2020-12. Download and pin product-feed-1.0.schema.json. Read the document shape and price roles and refresh and recovery guide. These documents and the schema are available in each shop's feed administration.

  1. Obtain the shop's real HTTPS domain, expected shop slug/account and a private token from its administrator under API → Credentials. Select feed:read. Store credentials separately per shop; redact them from logs and URLs.
  2. Use the shop's selected GET /feed?format=json or format=xml URL with the Bearer header. Confirm whether the shop publishes a gzip archive. Do not forward credentials to redirects on another host. Basic, query tokens and storefront sessions are not feed credentials. Missing scope returns 403; invalid/revoked credentials return 401. The feed must also be enabled.
  3. Check HTTP status/content type before parsing. A 304 retains your previously validated snapshot; retry without validators if that snapshot was lost. Handle unavailable feeds by retaining the previous accepted catalog.
  4. Stage a complete successful snapshot, validate schema 1.0, expected own-shop identity/language/source, unique SKUs and totals. Reject truncated/invalid data. Atomically replace the catalog after validation; do not apply a partial feed or treat an error as an empty assortment.
  5. Build product detail from each entry's product, default selection from product.default_configuration, and the total for configuration from pricing.totals. Keep pricing.commercial.advice_price separately as the suggested selling schedule. Render supplied units, valid option combinations and print fields.
  6. For another configuration, use pricing.preview.path and method on the same shop host with the same private Bearer token. This requires the explicit purchase export grant. Keep this call on your backend; exposing the token in a browser exposes private purchase data. No local multilayer calculator or artwork/printed-order activation is promised by the feed.

Amounts and quantities are decimal strings, setup/mandatory contributions are already included, and unknown prices/advice/VAT are explicit. Source pricing revision and feed generation time are different facts. Revalidate before ordering. Feed GET/HEAD and product pricing share one 60-requests/minute budget per shop credential, including successful conditional checks. Failed credentials use separate limits (10 per presented identity and 30 per client address per shop per minute). Back off on 429 or temporary 503; neither promises Retry-After or an exact reset time. Token revocation and current export rights apply across feed retrieval and pricing. Order permissions remain independent and do not follow from feed:read.

Feed 1.0 is the initial public contract. No customer migration or alternate representations are required. Regeneration creates new snapshots; incompatible internal snapshots are never relabelled or served as 1.0.

Read configured prices, allocations and VAT

A ProductPricing result describes the whole selected quantity and options. It is not a unit selling price, an order total for charges not supplied here, or a fresh binding quote. For example, a synthetic selection of 5,000 pieces has 457.60 variable + 368.00 setup = 825.60 total in EUR, exclusive of tax. Sum the returned monetary fields exactly as decimal strings; do not infer amounts from rates, re-round them, or add setup, ABB, SUP or other returned charges again.

Field How to read it Synthetic example
state priced has lines and a complete configured total (such as a default print run). unavailable has no usable price (such as a missing export grant). configuration_required needs a supported choice (such as a required print option). Both unpriced states have lines: [] and totals: null, never zero totals. priced
reason Source/export reason, or null if none was supplied. price_export_not_authorized means no purchase export grant. The provider vocabulary is not closed. Do not mistake either value for the HTTP status or error response from a failed request. price_export_not_authorized, null
revision Opaque source pricing revision or null. Independent of snapshot_id and generated_at; do not parse as a hash or use it as an order-price guarantee. source-revision-42, null
commercial_configuration_source Origin identifier for the commercial configuration. standard is observed; other values and their semantics are not established. standard
ordering EffectiveOrdering for this selection or null. Priced responses supply it. Not an order authorization. unit=piece, minimum=5000
normalized_quantity Source-normalized quantity in configuration.unit, or null. When this can differ from the request is not established. Do not silently accept a different quantity for ordering or assume pieces or boxes. "5000.000000", null
allocation PackageAllocation entries supplied by the source. An empty list supplies no allocations; do not allocate packages yourself. []
lines PricingLine components for goods, options and returned surcharges. Their amounts are already included in totals. Goods line below
totals PricingAmounts for the entire selection in the context currency and tax basis, or null without a usable priced total. {"variable":"457.60","setup":"368.00","total":"825.60"}
includes_mandatory_surcharges Source flag for inclusion in priced amounts. False never authorizes adding local charges. An unpriced result can retain the flag as metadata. true
tax Source PricingTax breakdown, not a Shop calculation. Exclusive EUR example below
lead_time ConfigurationLeadTime for this selection, separate from stock lead times. No guaranteed delivery date without a start event and calendar. delivery: null
commercial CommercialPricing distinguishes this shop's purchase cost, original source role and independent optional advice. All monetary export requires the current purchase grant. price_role: "purchase"
preview ProductPriceCalculation describes the same-shop path for a fresh server calculation, not a local price model. Access is rechecked on each call. The JSON field is still preview. method: "POST"

A PackageAllocation such as {"package_code":"pallet","count":"2"} points to product.packaging.packages[].code. A count is a non-negative decimal string, not a base-unit quantity. Check the supplied partial_packages policy and preserve source fractions rather than rounding them. The exact fractional policy by mode is not established; no global integer rule is imposed.

PricingLine field How to read it Synthetic goods line
code Non-empty opaque component identifier. Source stability and uniqueness are not guaranteed; do not interpret layer numbering. layer_1679
label Source display label. Do not derive the component type from translated text. Product price
kind product for goods, option for a selected option, surcharge for another returned charge. All are already included. product
scope Source-reported application: line or package. Do not multiply returned amounts by package counts. line
package_code Associated package code or null. A universal non-null rule for package scope is not established. null
base_unit_quantity Quantity used for this component in product.base_unit; lines need not use the same quantity. "5000.000000"
qualifying_base_unit_quantity Quantity in that base unit used for tier qualification, not necessarily the charged quantity. Do not select tiers locally. "5000.000000"
applied_tier_from Source-selected lower tier threshold in its qualification context. "5000"
rate PricingRate.amount is in the context currency and tax basis, with up to six fractional digits. It applies per the strictly positive per_base_units, not automatically per piece or box. A zero rate may still have setup. {"amount":"69.320000","per_base_units":"1000"}
amounts PricingAmounts.variable is quantity-dependent; setup is already applied to this selection, not a general once-per-order policy; total sums both. Each has two decimal places, and each aggregate field sums its line fields exactly. {"variable":"346.60","setup":"0.00","total":"346.60"}

When PricingTax.state is available, rate_percentage: "21.000000" means 21 percent, not a multiplier of 21 or a ratio of 0.21. The complete selected configuration can have total_excluding_tax: "825.60", amount: "173.38" and total_including_tax: "998.98" in the context currency. The exclusive amount plus tax equals the inclusive amount exactly. The amount on the declared context.tax_treatment basis equals pricing.totals.total: 825.60 for this exclusive example. If the basis is unknown, do not guess it. Tax fields can carry up to six fractional digits in the feed; preserve them and do not calculate VAT from the percentage. When tax state is unavailable, all four values are null. This is not a tax exemption or 0% VAT.

Distinguish purchase cost from selling advice

CommercialPricing field Meaning Example
price_role The configured amounts are the connected shop's purchase cost, not its storefront selling price. "purchase"
source_price_role The original source role before export. A store-view quote can report "selling" while the export still describes purchase cost. "selling", "purchase", null
advice_price Independent suggested selling rates. Null means unavailable or withheld by the purchase export grant. Never fill missing advice with purchase cost. Schedule below or null
AdvicePrice field Meaning Example
currency The ISO 4217 currency code supplied for advice, not copied from the purchase context. "EUR"
vat_included Whether advice already includes VAT; independent of context.tax_treatment. It does not imply a VAT rate or rounding method. false
unit The source unit for rates and thresholds. With null, do not claim a per-unit price by guessing the unit. "piece", null
tiers Source rates with their starting quantities, not additional charges for the configured purchase price. Tier below
AdvicePriceTier field Meaning Example
from_quantity Starting quantity threshold in advice_price.unit, as a decimal string. "5000"
price Suggested rate before the separate surcharge, when supplied. Omitted or null means unknown, not zero. "0.200000"
surcharge Separately supplied component already included in the combined rate. Omitted or null means unknown, not zero. "0.010000"
price_incl_surcharges Supplied combined selling rate. Do not add surcharge again. Including surcharges does not mean including VAT. "0.210000"

For a synthetic EUR advice tier starting at 5,000 pieces, the published rate is 0.210000 per piece excluding VAT when vat_included is false. If advice had its own VAT-inclusive basis it would still be independent of any VAT-exclusive purchase total. Preserve the supplied decimal precision and optional breakdown. The feed does not impose additional rules for threshold order, uniqueness, tie-breaking or amount reconciliation. Do not derive a configuration quote from advice.

Read the server price descriptor

The displayed model is ProductPriceCalculation; the JSON key is pricing.preview. A synthetic supported example is {"mode":"server","requires_server_revalidation":true,"supported":true,"method":"POST","path":"/api/v1/products/0062/price"}.

Field Meaning
mode Always "server". The feed does not contain a local calculator.
requires_server_revalidation Always true. Revalidate server-side before any separately supported order flow; a preview or snapshot is not order acceptance.
supported Whether the document advertises calculation. This is not a promise of current provider availability.
method "POST" when supported; otherwise null.
path When supported, the relative price route with this product's percent-encoded SKU. Otherwise null.

Resolve the path only against the same exporting shop's HTTPS origin. Do not send a credential to a different origin, including via redirects. The server rechecks the credential and feed:read scope, the current purchase export grant, the shop's active connection and whether the provider can price the selection. Denied purchase export leaves advice null and the descriptor unsupported. This endpoint does not place orders or activate checkout.

Build a product price request

Use the product on the authorized shop as the source of valid choices. To build a ProductPriceRequest:

  1. Choose unit from product.units[].code and use its ordering rules to choose a positive quantity in that unit. Send a JSON string (for example "5000" or "1.5"), with at most nine integer and six fractional digits, no leading zeros except the zero before a fractional part, and no exponent or thousands separator. The provider determines the effective ordering for the selection.
  2. Choose packaging_mode from product.packaging.allocation_modes. Do not assume either piece or none is available.
  3. Send one {code, value} object per chosen option: code is the dimension's option_definitions[].code, and value is that dimension's values[].code. Labels may change with language and are not request values. Include every required: true dimension, never repeat a code (even with a different value), and send no more than 50 options. Send options: [] only when none are needed. Each option object accepts only code (1–100 characters) and value (1–255 characters). unit and packaging_mode are 1–100 characters in requests; these limits are not maxima for source identifiers in responses.
  4. For every constraint whose attributes are all selected, check that at least one map in combinations exactly matches those selected values. Each map contains exactly the attribute codes as keys and a value code from the corresponding dimension; member order does not matter. These dynamic keys are intentional, not arbitrary extra fields. Do not treat an empty combinations array as a wildcard; further source semantics are unconfirmed.

For example, on a synthetic product with two required options and an allowed tuple {"order_type":"new","print_colors":"2"} for attributes: ["order_type","print_colors"], send this complete request (only if the product also offers the illustrated unit and mode):

{
  "quantity": "10000",
  "unit": "piece",
  "packaging_mode": "none",
  "options": [
    {"code": "order_type", "value": "new"},
    {"code": "print_colors", "value": "2"}
  ]
}

The response's configuration describes the selection evaluated for pricing. For an explicit request, the example uses selection_source: "request"; feed defaults use "default". These are observed values, not a closed enum. product.default_configuration remains the source default, for example 5,000 pieces with one color, even when the response evaluates 10,000 pieces with two colors. The default has no selection_source. A response quantity is a positive string with up to twelve integer and six fractional digits; it may be too large for a new price request. For a returned ordering block, its unit matches the selected unit. A null configuration is not an invented selection; an unpriced, incomplete selection does not establish that all required options were chosen. Read value-level lead times as individual source facts, not a way to calculate pricing.lead_time.

Stock, backorders, relations and lead times

Stock is an observation, not a reservation or order promise. stock_status is in_stock, out_of_stock or unknown, independently of ordering and backorder permission. available_boxes counts boxes, even when the selected configuration uses pieces. Zero is a known zero; null is unknown. stock_as_of is the RFC 3339 stock observation timestamp, not generated_at; a missing observation stays null. lead_time_text is source-language descriptive text, not a machine-readable day count.

backorders.allowed affirms source permission only when true. False with reason=policy_unknown does not establish an explicit source prohibition. The accepted product fixture uses allowed; the complete provider reason vocabulary is not established, so reasons remain open strings.

Read these three kinds of lead time separately:

  • availability.lead_times.in_stock and .backorder are general scenario ranges, each nullable when not supplied. A backorder range grants no permission; a missing range is not a prohibition. Stock status does not guarantee a range.
  • option_definitions[].values[].lead_time describes an option value.
  • pricing.lead_time describes the selected configuration. source_option_codes are contributing dimension codes, not labels or chosen values. An empty list means no supplied provenance, not necessarily no influence.

General ranges have nonnegative min_days <= max_days, counted according to source day_type. Inspection of the accepted contract and maintained fixtures does not establish a complete day-type vocabulary, starting event or calendar rule; no closed enum is published. A synthetic 2..4 range illustrates bounds, not a verified working-day or calendar-day convention.

Option and configuration production, transit and delivery each contain a duration or null (unavailable, not zero days). A duration's starts_at is a source event code, not a timestamp. The maintained product fixture supplies unknown, nullable working_days_min and upper bounds 15/7. A null lower bound means none was supplied; known bounds are nonnegative and minimum <= maximum. These bounds are validated at the existing document/snapshot boundary, including option and selected-configuration durations.

The complete starting-event vocabulary, holiday calendar and meaning of delivery relative to production/transit remain unestablished. Do not infer a calendar from language, turn unknown into a date, or add production/transit/delivery locally. For example, {"starts_at":"unknown","working_days_min":null,"working_days_max":15} is not a promised delivery date.

Relations are filtered to the exporting shop's allowed assortment: cross_sell_skus are complementary products; upsell_skus are source upgrades or alternatives, without a locally inferred price/quality rank. Null means no source list, while [] means no retained matches. replacement_sku is retained only when supplied and allowed, otherwise null. Never fetch outside the assortment to fill missing relations. The price response has a single-SKU restriction: only relations to the requested SKU survive, even if other related products might occur in a complete feed. No uniqueness guarantee or complete source vocabulary is invented.

Public synthetic downloads

The public feed page uses this same maintained guide and contract. Download the complete JSON sample, typed XML sample and schema. All identities and values in these two-product snapshots are synthetic. They include a configured printed product and an unpriced product; VAT is unknown. They are examples, not a live offer or evidence of enabled shop access.

Snapshot identity, language and categories

The OpenAPI public roots are ProductFeed and ProductResponse. The latter references the same canonical product definition for feed entries and price responses, not a second product representation. FeedShop, FeedSource, FeedCategory and ProductContext are readable schema titles; internal $defs keys stay stable. The API document's info.version, the complete feed_version=1.0 contract and each product's schema_version=shop-product-1 describe three different versions.

Compare shop.slug, source.account_id, source.account_type and language with your expected integration identity and every product context. The provider identifier is bordex_shop. Slugs are not hostnames or credentials and are not promised permanent. Account identifiers are opaque, not necessarily ULIDs. Neither an account kind nor feed metadata grants price or order rights; only the request host resolves the shop. A standalone price response is also host-bound.

snapshot_id is the opaque ULID of one published snapshot. Do not infer ordering or product changes from it. generated_at records generation start, not publication, product update or stock measurement. It is RFC 3339 with a timezone: current exports use UTC, for example 2026-11-17T10:30:00Z. Accepted values also include offsets and up to six fractional digits, for example 2026-11-17T11:30:00.123456+01:00. HTTP-date belongs to HTTP headers such as Last-Modified, not the JSON timestamp.

language is a two-letter ISO 639-1 content code; current shop languages are nl and en, without narrowing the schema's existing two-letter pattern. locale is null when no regional locale is supplied, as in current snapshots. Do not infer it from language.

categories is the complete source taxonomy, not the list of product assignments. An empty array means no taxonomy was supplied. Codes are exact, case-sensitive, non-empty strings of at most 255 characters and unique within the snapshot. Every non-null parent references an existing code; parent chains must have no cycles. Null identifies a root. label is non-empty, possibly localized display text, not a unique identifier. The keys remain label and parent. For example, this synthetic tree fragment has one root and one child:

[
  {"code":"food-packaging","label":"Food packaging","parent":null,"position":-1},
  {"code":"cups","label":"Bekers","parent":"food-packaging","position":0}
]

position retains the source integer without renumbering or a new minimum/range. A proposed presentation is ascending within each parent, preserving source order for ties. Confirm the source ordering agreement before relying on this proposal; exports retain source order. Do not infer parents from ordering. Validate tree relationships and unique product SKUs semantically; JSON Schema alone does not enforce cross-entry identity or hierarchy rules. The generator already checks parent existence/cycles and normalizes identical source category duplicates. A product assignment and the full taxonomy preserve their own supplied parent values.

products is the complete permitted assortment, not a page or delta. An empty array is a successful empty snapshot only, never a failure fallback. Each entry separates reusable product facts from configuration and pricing. Null configuration means no complete selection; a priced outcome needs a selection. Price responses may select something other than product.default_configuration. Unavailable prices are not zero, and a snapshot price is not a current quote. Context currency is ISO 4217 or null, never an assumed EUR default. Tax treatment is exclusive, inclusive or unknown (null); advice has its own vat_included.

No account ULID format, currency default or new permission is introduced here. The complete synthetic JSON/XML downloads above show both priced and unpriced products and preserve the same snapshot identity and content.

Media, PDF access and typed specifications

ProductMedia, ProductMediaUrls, ProductDocument, ProductPropertyGroup and ProductProperty title the shared standalone/OpenAPI definitions. Every field in these five objects is required, even nullable fields. Empty media, documents or property_groups arrays mean no exported entries, not a failed download. All examples below are synthetic fragments, not complete feed documents.

Image variants and document access

A medium's code identifies it within the product, not globally or forever. Its source-defined type is currently illustrated by image; modern media kinds have not been fully inventoried, so no closed enum is imposed. Position is a source ordering integer, not a unique rank: repeated positions are valid. Preserve serialized array order, including shop-image precedence, on ties. Negative positions have no newly verified source meaning; no minimum is added. Alt is supplied alternative text or null; do not invent accessible text from a filename.

Original is the original variant supplied by the export mapping; thumb is the thumbnail, medium and large are source-defined size variants, and zoom is a file intended for detail viewing, not an interactive API. No fixed dimensions or distinct files are promised. Several or all five URLs can repeat. All five fields contain absolute HTTPS URIs, not nullable optional variants.

A document has a product-local code and a human-readable download label. Language describes its contents, potentially different from product language. The source language vocabulary is not fully verified; do not guess missing languages or impose a new ISO regex. Only public PDF documents on the trusted CDN are exported. Use the supplied HTTPS URL without Shop credentials. URLs are not promised valid forever; handle a denied or missing asset without treating it as an empty file.

Specification identity, values and units

Group code is a machine identifier within the product; property code identifies a specification within its group. Preserve codes during translation. Labels are display text in the supplied content language, not stable keys. Non-empty media/document/group/property codes and labels and duplicate-property code checks are proposed semantic improvements, not newly imposed limits here.

Property values retain the source-defined type and scalar-or-null value. Its complete type vocabulary and conditional value semantics are not verified, so this schema does not close that enum, convert numeric values to strings or impose a scale. Existing string, number, boolean and null values remain supported. Consumers must preserve numeric precision with an appropriate JSON/decimal parser rather than silently round through binary floating point.

Null value means no value supplied; zero and false are real values. Unit is the source-supplied measurement unit, or null when none was provided; null does not explain why. Never default to mm or kg. Display_value is formatted human-readable text, possibly with a unit or source formatting: display it, but never parse it for arithmetic.

{
  "media": [
    {"code":"front","type":"image","position":0,"alt":null,"urls":{"original":"https://media-apex-legends.bordexgroup.com/cup.jpg","thumb":"https://media-apex-legends.bordexgroup.com/cup.jpg","medium":"https://media-apex-legends.bordexgroup.com/cup.jpg","large":"https://media-apex-legends.bordexgroup.com/cup.jpg","zoom":"https://media-apex-legends.bordexgroup.com/cup.jpg"}},
    {"code":"side","type":"image","position":0,"alt":"Cup, side view","urls":{"original":"https://media-apex-legends.bordexgroup.com/side.jpg","thumb":"https://media-apex-legends.bordexgroup.com/side.jpg","medium":"https://media-apex-legends.bordexgroup.com/side.jpg","large":"https://media-apex-legends.bordexgroup.com/side.jpg","zoom":"https://media-apex-legends.bordexgroup.com/side.jpg"}}
  ],
  "property_groups": [{"code":"dimensions","label":"Dimensions","properties":[
    {"code":"diameter","label":"Diameter","type":"decimal","value":"101.000","unit":"mm","display_value":"101 mm"},
    {"code":"reusable","label":"Reusable","type":"boolean","value":false,"unit":null,"display_value":"No"},
    {"code":"weight","label":"Weight","type":"decimal","value":null,"unit":null,"display_value":""}
  ]}]
}

Annotated product excerpt

This is a compact selection of fields, not a complete schema-valid product:

{
  "schema_version": "shop-product-1",
  "context": { "shop_slug": "sample-shop", "currency": "EUR", "tax_treatment": "exclusive" },
  "product": { "sku": "0062", "base_unit": "piece", "printed": true, "product_url": "https://sample.example.test/products/0062" },
  "configuration": { "quantity": "5000", "unit": "piece", "packaging_mode": "none" },
  "pricing": {
    "state": "priced",
    "totals": { "variable": "457.60", "setup": "368.00", "total": "825.60" },
    "tax": { "state": "unavailable", "amount": null }
  }
}

Context identifies whose purchase cost this is. Configuration identifies the selection behind the total; see the complete sample for all four selected options and returned charge lines. Units have rational base-unit conversions; obey minimum, increment, maximum and fixed quantities rather than assuming boxes equal pieces. Availability stock status and nullable counts are not a stock promise. Backorder permission is separate. Lead times distinguish production, transit and delivery, their starting event and working-day ranges; null means unknown, never immediate delivery. Required option definitions and constraints must be checked together, not treated as independent free-text print fields.

Backend download and conditional refresh

curl --fail-with-body --proto '=https' --max-time 120 \
  'https://your-shop.example.test/feed?format=json' \
  -H "Authorization: Bearer ${SHOP_FEED_TOKEN}" \
  -H 'Accept: application/json' \
  --dump-header feed.headers --output feed.candidate.json

Run on your backend with a secret-store environment value, never a literal real token in source. Do not enable shell tracing or log the Authorization header. Use the HTTPS origin supplied by the shop administrator, not a platform root. Send the Bearer token only to that origin. Lowercase ?format=json or ?format=xml is required; Accept does not select the format. On a known shop host a missing or invalid format returns 400 before credential checks. Use the format selected by the shop: JSON is the default and XML is optional. After authorization, a recognized but nonselected format returns 406 format_unavailable; it does not generate or convert a feed. This command only stages a candidate: check status, content type, full parse and contract/identity validation before replacing your accepted snapshot. A nonzero curl exit is not importable.

A successful GET returns plain JSON or typed XML (application/json or application/xml, with UTF-8) when gzip is off. With gzip on it returns an application/gzip attachment named product-feed.json.gz or product-feed.xml.gz, without a Content-Encoding header. The same URL and format parameter apply; check the response type and decompress the archive before validating the document. Use a direct HTTP client for archives rather than the plain-text API console. Content-Length counts the actual stored bytes, compressed when applicable, not products or characters. Cache-Control: no-store, private (directive order does not matter) prevents HTTP cache storage; an importer can retain a validated application snapshot. X-Content-Type-Options: nosniff tells clients not to reinterpret the declared media type.

Send HEAD for the same checks and 200 representation metadata without downloading the content:

curl --head --proto '=https' 'https://your-shop.example.test/feed?format=json' \
  -H "Authorization: Bearer ${SHOP_FEED_TOKEN}"

Keep validators with an accepted snapshot of the same shop and representation. An ETag is opaque, including quotes; do not share it across formats or between plain and gzip representations. Last-Modified expresses generation start as a GMT HTTP-date, not the RFC 3339 body value generated_at (e.g. 2026-11-17T10:30:00Z) or a separate publication time. For example:

GET /feed?format=json HTTP/1.1
Host: your-shop.example.test
Authorization: Bearer <shop-token>
If-None-Match: "01J8K4Q2M6P0R3T5V7X9Y1Z2A4-json"
If-Modified-Since: Tue, 17 Nov 2026 10:30:00 GMT

Use the received ETag with If-None-Match, or the received Last-Modified with If-Modified-Since when checking by date. If both are sent, If-None-Match takes precedence; a nonmatching ETag does not fall back to the date. A 304 is bodyless and omits representation headers such as Content-Length and Last-Modified. Keep the previously accepted snapshot and retry unconditionally if it was lost. On 200, validate the entire candidate again before replacing the accepted catalog.

Every feed error body is a safe application/json ApiError with code and message, private/no-store and nosniff. Use the HTTP status and code together. Feed 401 advertises only Bearer realm="product-feed". HEAD never returns a body. See the API error table for the individual feed codes and recovery steps, including stale snapshot, storage and unexpected failures.

Refresh is a full replacement, not a delta. An administrator can request regeneration. Every five minutes the scheduler checks enabled, authorized shops against their chosen 1–6 hour interval. Downloads stop once the maximum age (default and minimum: twice the refresh interval) is exceeded. A format or gzip change requires a compatible snapshot before downloads can resume. A failed refresh does not publish a partial snapshot. Downloads still enforce current rights and maximum snapshot age. With HTTP Apex, a missing or changed applied publication also returns 503 stale_snapshot, even with a saved ETag. The previous snapshot is never sent as a fallback. Keep your last validated import on 401/403/404/406/429/500/503, timeout, parse/schema failure or unsupported version, mark it stale locally and alert/retry appropriately; retaining it is not fresh success or a new permission to publish private data. Honor revocation and your own retention policy. Never infer freshness from a product pricing revision: generated_at and snapshot_id identify the export; pricing.revision identifies provider pricing. Pin the initial 1.0 schema and reject unknown versions rather than guessing aliases.

Neutral provenance and asset delivery

source.provider is always bordex_shop. The server rejects snapshots from older export layouts until regeneration completes. Quantities, prices, VAT and grants do not change.

The feed itself requires a feed:read Bearer token on the owning shop's HTTPS origin. JSON, XML and price responses preserve the provider's published image variants and public PDFs (including technical data sheets and drawings) unchanged. The only media origin is https://media-apex-legends.bordexgroup.com on acceptance and https://media.bordexgroup.com on production. An image is omitted if any of its variants is outside that origin. Private documents and credential-bearing links are not exported. CMS image overrides remain visible on the storefront but are never used as feed media. Product page links still point to the owning shop.

Download media anonymously. Never send the Bearer token to a CDN, another origin or a redirect target. Example URLs use the acceptance origin and synthetic paths; they do not point to actual products.

Snapshots generated with a previous export fingerprint cannot be downloaded as the current feed, even with a saved conditional request validator. After regeneration, download a fresh feed and use its current asset URLs. Direct CDN downloads do not count toward the Shop feed request limit.

Product identity and content fields

The snapshot uses the validated modern product response. Preserve null and empty lists independently. Render descriptions and other text fields as text, not HTML. The separate product price endpoint has its own response schema.

Product field Meaning and missing-value behavior Synthetic example
sku Exact product SKU within this assortment. Preserve leading zeros, case and all characters; percent-encode it in URL paths. SKUs must be unique per snapshot. "0062"
ean Source-supplied EAN barcode as a string, preserving leading zeros; null means no barcode was supplied. Exact length and checksum constraints require a source inventory. "8712345678906"
name Product display name in the document language; null means no name is available from the supported source mapping. No implicit SKU fallback. "Printed cup 180 ml"
printed Whether the source identifies a printed product; null means this classification was not supplied. True does not imply artwork or printed-checkout support. true
configurable Whether the source classifies the product as configurable; null means unknown. Not equivalent to printed; actual choices are in option_definitions and option_constraints. true
description Plain-text product description, with markup and executable content removed through the export sanitizer; null means unavailable. "Printed cup for cold drinks."
pros Product benefit statements in presentation order. Null means no benefit information was supplied; [] contains no statements. Treat items as text, not trusted HTML. ["Suitable for cold drinks"]
cons Product limitation statements in presentation order. Null means no limitation information was supplied; [] means no supplied statements, not that the product has no limitations. Treat items as text, not trusted HTML. ["Not suitable for hot drinks"]
categories ProductCategory assignments; match exact codes with the snapshot taxonomy when available. [] means no assignments. [{"code":"cups","parent_code":null,"name":"Cups"}]
media Exportable ProductMedia in source order with HTTPS variants. [] means no exported media; position is not necessarily unique. []
documents Public ProductDocument PDFs served directly by the CDN. Internal documents and credential-bearing links are not exported. []
property_groups ProductPropertyGroup specifications with machine values and human-readable display values. [] means no supplied specifications. []
availability ProductAvailability: source-reported stock and general lead time captured in this snapshot, not a reservation. Stock measurement differs from generated_at and configuration-specific lead time. See the complete example and referenced object.
backorders ProductBackorders: source-reported policy, separate from current stock and local shop ordering permissions. allowed does not grant ordering rights. See the complete example and referenced object.
relations ProductRelations: related SKUs restricted to this export's allowed assortment. Price responses restrict relations to the requested SKU only. Missing or excluded relations never authorize fetching another account. See the complete example and referenced object.
base_unit Base quantity unit for conversion ratios and pricing line quantities; null means unavailable from the source mapping. Interpret codes per product; never assume piece or box. "piece"
units ProductUnit quantity units with base-unit conversions and unit-specific ordering constraints. Consumers should validate unique unit codes. []
packaging ProductPackaging: available packages and source-defined allocation and partial-package policies. Do not hardcode a universal box/pallet structure. See the complete example and referenced object.
option_definitions ProductOption dimensions with allowed values, labels, required flags and lead-time effects. Validate unique option codes and valid value references semantically. []
option_constraints OptionConstraint combinations across listed dimensions. A selection must satisfy every applicable constraint; these are not price calculation rules. [{"attributes":["size","color"],"combinations":[{"size":"small","color":"white"},{"size":"large","color":"black"}]}]
default_configuration Source-defined default selection. Unchanged when a price response evaluates another selection; null means no complete default. Never invent a selection from the first option or tier. {"quantity":"5000","unit":"piece","packaging_mode":"none","options":[]}
product_group ProductGroup: source-defined commercial group, separate from category assignments and specification groups; null means no group was supplied. {"code":"CUPS","name":"Cups"}
updated_at Source-reported product update timestamp in RFC 3339 with timezone; null if unavailable. Not feed generation time or a guaranteed price-change timestamp; do not use as the sole delta/import cursor. "2026-11-16T15:45:00+01:00"
product_url Absolute HTTPS product page URL on the exporting shop when a suitable domain is available; null otherwise. Storefront access rules still apply; anonymous access is not promised. "https://shop.example.test/products/0062"

ProductCategory

Field Meaning Synthetic example
code Exact assigned category code; match a taxonomy node by code when available, preserving case. "cups"
parent_code Parent category code when supplied. A null parent is preserved as supplied. "food-packaging"
name Human-readable assigned category name from the export mapping, not a stable identifier. This key remains name; the full taxonomy uses label. "Cups"

ProductGroup

Field Meaning Synthetic example
code Machine code of the source commercial product group. Preserve the source value; a non-empty constraint remains a proposal pending source inventory. "CUPS"
name Human-readable source product group name, not a stable identifier. No language guarantee without a source agreement. "Cups"

For example, a two-dimension constraint can allow only these tuples:

{"attributes":["size","color"],"combinations":[{"size":"small","color":"white"},{"size":"large","color":"black"}]}

The corresponding option definitions must supply those dimensions and values. A small/black selection fails this constraint; each applicable constraint must pass. This fragment is not a price formula or a complete product. The complete synthetic JSON/XML examples retain all required product objects and nullable modern content fields. Unique unit/option codes and valid value references need semantic checks.

The complete public samples preserve SKU 0062 and a leading-zero EAN as strings, show the own-shop product link, and preserve the cups category's food-packaging parent. The second product demonstrates unavailable prices.

Units, exact ratios and packaging

All examples in this section are synthetic fragments. Quantity unit codes belong to each product, not a global box/piece list. Match configuration.unit and a priced selection's pricing.ordering.unit to product.units[].code. Labels are source-language display text (normally context.language), not stable matching keys; no automatic translation is promised.

For one unit, base_unit_ratio converts to product.base_unit exactly:

base_quantity = unit_quantity * numerator / denominator

Both ratio parts are positive integer strings within the existing provider 12-digit range. Zero (especially a zero denominator), signed values, leading zeros, fractional strings and numeric JSON values are invalid. The provider admission, feed document and snapshot boundaries reject them. Snapshot validation executes the schema pattern; these constraints are not just annotations. Keep decimal strings and rational arithmetic; do not convert to binary floats.

For example, base_unit=box with these definitions means 5000 pieces = 5 boxes; one piece is exactly 1/1000 box, not a rounded decimal approximation:

{
  "base_unit": "box",
  "units": [
    {"code":"box","label":"Boxes","base_unit_ratio":{"numerator":"1","denominator":"1"},"ordering":{"minimum":"5","increment":"1","maximum":null,"fixed_quantities":[]}},
    {"code":"piece","label":"Pieces","base_unit_ratio":{"numerator":"1","denominator":"1000"},"ordering":{"minimum":"5000","increment":"1000","maximum":"50000","fixed_quantities":[]}}
  ]
}

Each unit's ordering.minimum, increment, maximum and fixed_quantities is in that enclosing unit. They are general constraints. pricing.ordering is the effective rule set for the selected configuration, all in its explicit unit; it can have a different minimum or increment. Never blindly copy the general minimum into it. A null maximum means no maximum supplied, not a guarantee of unlimited orderability. An empty fixed_quantities supplies no fixed choices.

The product fixture has general minimum 1 and effective minimum 5000, increment 1, with fixed choices. That fixture does not establish the universal modern increment anchor or fixed choice exclusivity. Those meanings remain unconfirmed; no new modern modulus or fixed-choice calculator is imposed. Modern positive minimum/increment/choices, unique choices and maximum >= minimum remain proposed semantic checks. The provider remains the pricing authority; existing local ordering is unchanged.

Package contents describe ONE package, independently of the priced allocation:

{
  "packages":[{"code":"transport","label":"Pallet","kind":"pallet","contents":{"quantity":"40","unit":"box"}}],
  "allocation_modes":["none"],
  "partial_packages":"reject"
}

Here one transport package contains 40 boxes (40000 pieces at the ratio above). An allocation entry {"package_code":"transport","count":"2"} counts TWO packages, not two boxes; together their contents are 80 boxes. This illustrates units, not a local pricing/allocation algorithm. Modern contents.quantity remains a decimal string; fractional contents are not forced to integers.

packages=[] means no package definitions supplied. Package code is a product-local reference used by allocation and package-scoped price lines. Package kind is a separate source classification; code need not equal kind. Package labels are display text, never a source of identifiers.

Only supplied allocation modes are selectable; the complete provider vocabulary is open. partial_packages=allow permits incomplete packages, e.g. part of a 40-box pallet; reject disallows that incomplete package under the source policy. Neither implies a new local permission or an integer allocation-count enum. Other source policy strings remain open pending contract confirmation.

Non-empty unique unit/package/mode codes, positive contents and contents.unit references to unit definitions are proposed semantic constraints pending complete source coverage, not newly enforced global requirements.

Store View generation parity

For operator acceptance on develop, first verify the provider grant and capture a complete Apex export for the same account and language. Use the exact version from the pinned /catalog-export publication for managed accounts or the exact revision from /product-export for the designated unmanaged Store View. Save it as revision, along with account_id, language and the distinct SKU array (skus), to a private apex.json. Do not mix pages or use results from storefront search.

Capture a successful authenticated Shop JSON feed and the ETag and X-Apex-Export-Revision headers from that same response. If the selected format is gzip JSON, decompress the body before comparison. Supply the ETag including its double quotes and pass the revision header as received:

node scripts/verify-store-view-feed-parity.mjs apex.json feed.json ETAG REVISION_HEADER

A missing or different revision fails even if every SKU is identical. Success reports the Shop snapshot ID, SKU count, and SHA-256 of the sorted SKU array serialized as JSON. The verifier does not contact either service or decide pricing permissions. Check allowed and denied price content and stale-to-fresh recovery separately through the authorized operator flow. Never put the feed credential or captured catalog data into source control or Trello.

Private product feed 1.0

Stock, backorders, relations and lead times

Read the stock and lead-time integration rules and the per-field schema descriptions. Stock observations, backorder policy, general ranges and selected-configuration durations are independent. Unknown source events and calendars remain explicitly unestablished, not delivery promises.

Units, exact ratios and packaging

Read the quantity and packaging integration rules and the shared ProductUnit, BaseUnitRatio, UnitOrdering, EffectiveOrdering, ProductPackaging, ProductPackage and PackageContents schema descriptions. General unit rules are not a substitute for the priced selection's effective ordering. Positive integer ratio strings are checked before export and again when validating snapshots, from modern product responses.

Document shape

Feed 1.0 is the initial public product contract. Earlier version labels were internal development iterations, not public releases. No compatibility aliases or migration from those internal version labels are required. Pin the closed JSON Schema. JSON and XML represent the same schema, facts, scalar types, nulls and list order. Each shop publishes one selected representation per full snapshot (JSON by default), optionally as a gzip archive.

The envelope contains feed_version (1.0), snapshot_id, generated_at, shop (slug), source (provider, account_id, account_type), language, nullable locale, categories (complete taxonomy) and products. Each product has these roots:

Root Meaning
schema_version shop-product-1
context Owning shop slug, source account/type, language, currency and tax treatment
product Identity, content, media, public documents, specifications, availability, backorders, relations, units, packaging, print options, valid combinations, default configuration
configuration The selection actually priced: decimal quantity, unit, packaging mode, selected option code/value pairs, selection source
pricing Availability, reason, revision, effective ordering, allocation, line amounts, totals, VAT, lead times, commercial roles and server calculation descriptor

The shape follows the Shop product/configuration/pricing contract. Feed-owned changes are the schema identifier, shop context, own-domain product_url, plain-text content, explicit commercial roles and the private shop price API descriptor. It is not a raw provider DTO dump. Private documents, provider credentials, sort indices and foreign assortment relations are excluded. Modern option definitions, constraints, conversion ratios, package contents and effective ordering are copied from the validated provider response, preserving multidimensional products.

Envelope identity and taxonomy

The public schema roots are ProductFeed and ProductResponse; FeedShop, FeedSource, FeedCategory and ProductContext title their assigned objects. The feed and the separate price response share configuration and pricing fields, but the price endpoint has its own product response schema. The OpenAPI document version is separate from feed 1.0 and shop-product-1. See the identity, timestamps, language and category integration rules and each field's description and synthetic examples in the maintained schema.

Generation start is an RFC 3339 timestamp with a timezone, currently emitted in UTC with Z; accepted offsets and fractional seconds remain supported. It is not publication time, a product update or a stock observation. Snapshot identifiers are opaque in either format. Match each product's shop/account/type and language to the envelope; the host, never feed metadata, selects the tenant. The current product response supplies language but no regional locale; the snapshot therefore leaves locale null.

Taxonomy codes are unique exact source codes; non-null parents exist in the same tree, null marks roots and cycles are invalid. Labels need not be unique. Source integer positions are retained without a new range or renumbering. Ascending sibling display with stable source-order ties is a proposal requiring source agreement, not an export ordering guarantee. An empty products array means a successful complete snapshot, not an error or partial page.

Purchase and advice prices

See the configured price, allocation and VAT field guide for the full field glossary and synthetic examples. Keep the complete selected quantity, per-base-unit rate, and separate selling advice distinct.

The enabled feed's explicit purchase export grant controls all monetary data. A token alone does not grant prices. Without it, pricing.state is unavailable, reason is price_export_not_authorized, lines are empty, totals/advice are null and calculation is unsupported. Product/configuration facts remain available.

With the grant, pricing.commercial.price_role is purchase: the exporting shop's connected-account cost. source_price_role records the provider role; a store-view selling quote is this connected shop's purchase cost. pricing.commercial.advice_price independently contains the provider's suggested selling-price schedule, currency, VAT inclusion, unit and quantity tiers. Null means no advice price was supplied or authorized. Never substitute purchase for missing advice. Advice does not replace the configured total. See the commercial field guide for threshold and surcharge examples.

In a feed snapshot, configuration identifies the default selection behind pricing.totals when a price is available. product.default_configuration records the source default without selection_source; it is not overwritten by the effective selection returned for an alternate price request. totals.variable + totals.setup = totals.total; totals sum the returned lines. Required contributions and setup are already included: never add them again. Amounts/rates/quantities are decimal strings. Amount totals have two decimals; unit rates preserve provider precision. Do not calculate money with binary floats.

For example, the multidimensional synthetic fixture's default is 5,000 pieces: variable 457.60, setup 368.00, total 825.60. It contains four selected print option dimensions and eight price lines. These are test values, not a live offer. VAT is copied only when known. An unavailable tax block carries null amounts; never infer a VAT rate. Currency and tax treatment are explicit in context. Availability reasons are distinct from snapshot freshness. An unpriced product is not a zero-price product. A feed snapshot is not a current binding quote.

Alternate configurations and printing

Use the complete ProductPriceRequest example and selection rules. ProductOption and ProductOptionValue describe product-specific dimension and value codes; SelectedOption links the two. OptionConstraint lists the dimensions and their allowed maps (AllowedOptionCombination). A complete selection includes all required options and respects every applicable constraint. No artwork/file-upload or printed checkout contract is added.

The ProductPriceCalculation descriptor keeps the JSON key pricing.preview. Unsupported means both method and path are null. When supported, POST JSON to its relative path on the same exporting shop HTTPS host, using Authorization: Bearer <secret> with feed:read. The current purchase grant and own active connection are rechecked for every request. The response is one shop-product-1 object with the same five roots as a feed product. Its configuration describes the evaluated selection; product.default_configuration remains the product default. The endpoint is /api/v1/products/{percent-encoded-sku}/price, method POST, JSON body with Content-Type: application/json. Errors use the shared ApiError contract, even without Accept. A successful response is private/no-store and carries X-Product-Feed-Version: 1.0. This is the feed contract version, not the document's schema_version (shop-product-1) or OpenAPI info.version. Provider credentials stay private, and no local calculation layers are exported. Always revalidate prices server-side before any separately supported order flow.

The endpoint returns 401 for invalid credentials/transport, 403 for missing scope or export grants, 422 validation_failed for malformed input or configuration_unsupported for unsupported selections, 429 for limits, 503 service_unavailable for unavailable/invalid upstream data, and 500 internal_error for unexpected faults. Errors never expose internal diagnostics. Never import a failed response as an empty/zero price. Feed downloads and price requests share one 60-requests/minute budget per shop credential. Authentication has separate failed-attempt budgets. Unknown hosts cannot select a shop through query parameters or cookies. Order scopes remain independent. See the HTTP download and conditional refresh guide for exact format, HEAD and validator examples.

XML mapping

The root is <product_feed type="object">. Field names use the JSON snake_case names. Every element has type: object, array, string, integer, number, boolean or null. Arrays contain ordered <item> elements, including products. <total type="string">825.60</total> preserves money precision; <advice_price type="null"/> is explicitly unknown, and an empty typed array is an empty list. Boolean text is true/false. Map keys that cannot be XML element names use <entry key="..." type="...">. Escape XML text normally; reject DTDs and external entities. Consumers must preserve types when converting to JSON.

Get a purchase price

Requires feed:read and the current purchase export grant. Use a SKU and configuration from your shop’s feed. The total covers the whole selection; it is purchase cost, not a selling price or a binding quote.

cURL
Example request (placeholder token)
curl --fail-with-body 'https://your-shop.example.test/api/v1/products/0062/price' \
  -H 'Authorization: Bearer <secret>' \
  -H 'Content-Type: application/json' \
  --data '{
    "quantity": "5000", "unit": "piece", "packaging_mode": "none",
    "options": [
      {"code": "print_colors", "value": "1"},
      {"code": "delivery", "value": "normal"},
      {"code": "order_type", "value": "new_design"},
      {"code": "design", "value": "own_design"}
    ]
  }'
JSON
200 OK — JSON response excerpt (synthetic, some fields omitted)
{
  "context": {"currency": "EUR", "tax_treatment": "exclusive"},
  "pricing": {
    "state": "priced",
    "totals": {"variable": "457.60", "setup": "368.00", "total": "825.60"},
    "commercial": {"price_role": "purchase"}
  }
}

Submit and track an order intent

Requires orders:create and local ordering permission. This example uses a simple EUR order with a whole quantity. Replace the sample SKU and buyer details, and reuse the same idempotency key for retries of the same intent.

cURL
Example request (placeholder token)
curl --fail-with-body -i 'https://your-shop.example.test/api/v1/orders' \
  -H 'Authorization: Bearer <secret>' \
  -H 'Idempotency-Key: example-erp-1042' \
  -H 'Content-Type: application/json' \
  --data '{
    "external_reference": "ERP-1042", "currency": "EUR",
    "customer": {"name": "Example Buyer", "email": "buyer@example.test"},
    "delivery_address": {
      "street": "Example Street", "house_number": "1",
      "postal_code": "1234 AB", "city": "Example City", "country": "NL"
    },
    "lines": [{"sku": "SKU-1", "quantity": 2}]
  }'
HTTP
Example response (synthetic)
HTTP/1.1 201 Created
Location: /api/v1/orders/123e4567-e89b-42d3-a456-426614174000

{"id": "123e4567-e89b-42d3-a456-426614174000", "status": "pending_confirmation"}

To track it, GET the Location path on the same shop with the same integration and orders:read. pending_confirmation records a local receipt, not provider confirmation, payment or fulfillment.

Authentication

The request host selects the shop. Use its actual HTTPS domain, not bordexshop.com, accept.bordexshop.com or a provider API URL. A shop ID in a request or a platform session does not select an API tenant.

Send Authorization: Bearer <secret> from your server. Do not put a secret in client-side code, URLs, logs or version control. Copy it once when issued; browser login sessions and retired Basic pairs are not API credentials.

Every own-shop user authorized for the API menu can issue, replace and revoke tokens with the offered scopes; no additional administrator role or active company is required. New credentials default to a shop-only system identity, without company or on-account rights.

feed:read, orders:read and orders:create are independent and can be combined on one token. Reading does not grant creation. Feed pricing still requires the current purchase export grant; order writes still follow local ordering and approval rules.

Only the current shop’s superadmin may optionally choose an existing own-shop company under Advanced. That binding is fixed at issuance; changing the active company cannot retarget it. Existing company-bound credentials remain bound and fail closed if the company is missing. This hub changes no authorization.

Replace a secret in API → Credentials to invalidate the old secret while preserving scopes and the integration’s order ownership. Update your server secret store. Revoke to deny requests immediately. A newly issued credential is a new integration and does not inherit old orders.

Removing the human creator’s account, role or membership does not revoke the integration. Revoke the credential explicitly when access must end.

Integration walkthrough: from feed to order status

Walkthrough: from feed import to order status

This walkthrough ties together the existing integration agreements (cards #307, #309, #336, #360 and #394). Use it with the OpenAPI download and the feed consumer guide. All requests and responses below are synthetic and for offline practice, not a live catalog, an offer, or permission to place a real order.

1. Set up the connection and import the feed

Get the exact tenant HTTPS origin and expected shop/account from the shop administrator. On that shop, enable feed export, select JSON for this example, and under API → Credentials issue a server-side credential with feed:read, orders:create and orders:read for this walkthrough. These scopes are independent; grant only what each integration uses. Check the separate purchase export grant, usable provider connection and local ordering policy. Store the origin and expected shop/account with the integration record, and the secret in a secret store. Never forward the Bearer header to another origin, including a CDN or redirect.

GET /feed?format=json HTTP/1.1
Host: shop.example.test
Authorization: Bearer <secret>
Accept: application/json

The response below is an excerpt; validate the complete snapshot against the feed 1.0 schema (embedded in the OpenAPI download) before importing it.

HTTP/1.1 200 OK
Content-Type: application/json
ETag: "01J8K4Q2M6P0R3T5V7X9Y1Z2A4-json"

{
  "feed_version": "1.0",
  "snapshot_id": "01J8K4Q2M6P0R3T5V7X9Y1Z2A4",
  "shop": {"slug": "merkshop"},
  "products": [
    {"product": {"sku": "0033", "configurable": false}},
    {"product": {"sku": "1336", "configurable": true}}
  ]
}

Stage and check the expected tenant, account, language, unique SKUs and complete content before replacing the catalog atomically. Save the validated snapshot, its generation time and its validators per shop and representation. On the next download send the received ETag as If-None-Match; a 304 has no body and keeps the stored snapshot. If the snapshot was lost, fetch without validators. On a timeout, invalid snapshot or temporary 503, retain the last valid import, mark it stale and pause automated ordering from it. Never replace it with an empty catalog or use its prices as current. On denied or revoked access, stop using the export and resolve authorization instead of treating the cache as a grant.

2. Map units and options before calculating prices

Mapping Regular box product 0033 Configurable printed container 1336
Target SKU Store the exact string 0033, including leading zeros. Store 1336 plus the full selected configuration.
Quantity and packaging One box contains 100 piece; the example uses one box, not 100 boxes. Minimum and increment are both 1 box, and the example allocation mode is boxes_only. Use 5,000 piece with mode none. For this priced selection the effective minimum is 5,000, increment is 1, and the fixed list still applies: 5,001 is not valid merely because it fits the increment.
Options No options. Store the required dimension and value codes, e.g. print_colors=1. Use labels only for display. Check all applicable combination constraints; do not assume every cross-product of values is allowed.

Use product.units[].base_unit_ratio for declared unit relationships and product.packaging.packages[].contents for declared package contents. Pieces, boxes and pallets are not interchangeable: a pallet can be a package rather than an order unit. Only map it when the source declares the relationship and supports the intended selection. Do not round quantities or invent a pallet size. Use per-unit minimum, increment, maximum and fixed quantities, then check pricing.ordering for the selected combination; do not copy those effective rules to other combinations. Price requests can use decimal quantities but the order API cannot.

Persist each target product/variant mapping to shop, exact SKU, unit, packaging mode and option codes/values, with the source snapshot ID and the relevant quantity constraints. If the target cannot represent a unit, constraint, configuration or price basis, keep a display-only entry (only show permitted, clearly labelled pricing), or omit it if the target cannot disable ordering reliably. Never drop required options, force a conversion, or invent a price. Route the selection to manual review instead.

3. Calculate the selected purchase price

Call the same-host pricing.preview.path when supported, using a freshly selected quantity, unit, mode and option set. The path encodes the SKU as one segment. For the regular product:

POST /api/v1/products/0033/price HTTP/1.1
Host: shop.example.test
Authorization: Bearer <secret>
Accept: application/json
Content-Type: application/json

{"quantity":"1","unit":"box","packaging_mode":"boxes_only","options":[]}
HTTP/1.1 200 OK
Content-Type: application/json
X-Product-Feed-Version: 1.0

{
  "product": {"sku": "0033"},
  "context": {"currency": "EUR", "tax_treatment": "inclusive"},
  "configuration": {"selection_source":"request","quantity":"1","unit":"box","packaging_mode":"boxes_only","options":[]},
  "pricing": {
    "state": "priced",
    "totals": {"variable":"15.61","setup":"0.00","total":"15.61"},
    "tax": {"state":"available","rate_percentage":"21.00","total_excluding_tax":"12.90","amount":"2.71","total_including_tax":"15.61"},
    "commercial": {"price_role":"purchase","advice_price":null}
  }
}

For the configurable product, send all four selected choices:

POST /api/v1/products/1336/price HTTP/1.1
Host: shop.example.test
Authorization: Bearer <secret>
Accept: application/json
Content-Type: application/json

{
  "quantity": "5000",
  "unit": "piece",
  "packaging_mode": "none",
  "options": [
    {"code":"print_colors","value":"1"},
    {"code":"delivery","value":"normal"},
    {"code":"order_type","value":"nieuw_ontwerp"},
    {"code":"ontwerp","value":"own_design"}
  ]
}
HTTP/1.1 200 OK
Content-Type: application/json
X-Product-Feed-Version: 1.0

{
  "product": {"sku": "1336"},
  "context": {"currency": "EUR", "tax_treatment": "exclusive"},
  "configuration": {
    "selection_source": "request",
    "quantity": "5000",
    "unit": "piece",
    "packaging_mode": "none",
    "options": [
      {"code":"print_colors","value":"1"},
      {"code":"delivery","value":"normal"},
      {"code":"order_type","value":"nieuw_ontwerp"},
      {"code":"ontwerp","value":"own_design"}
    ]
  },
  "pricing": {
    "state": "priced",
    "totals": {"variable":"457.60","setup":"368.00","total":"825.60"},
    "tax": {"state":"unavailable","rate_percentage":null,"total_excluding_tax":null,"amount":null,"total_including_tax":null},
    "commercial": {
      "price_role": "purchase",
      "advice_price": {
        "currency": "EUR",
        "vat_included": false,
        "unit": "piece",
        "tiers": [{"from_quantity":"5000","price":"0.200000","surcharge":"0.010000","price_incl_surcharges":"0.210000"}]
      }
    }
  }
}

Both 200 bodies above are excerpts. Check the full response against the exact shop, SKU, requested selection and currency before using it. Read pricing.totals.total as the purchase cost for the whole selection. Setup and returned contributions are already included. Read purchase VAT from the reported tax basis and breakdown, separately from advice VAT. Unknown VAT is not 0%. Keep advice and its tiers separately: the suggested 0.210000 per piece from 5,000 pieces excludes VAT and already includes the advice surcharge. It is not the purchase cost or a binding selling price. Do not select purchase tiers locally or use advice to reconstruct a quote.

If you retain a price result, record the exact selection, calculation time, pricing revision when present, currency and tax basis alongside the amount, and keep it private. It is not an order total or reservation. A visible price alone does not make a product orderable: order permission, representable quantities and choices, and current catalog validation are required. On price 422 inspect the typed field errors, or refresh the product for configuration_unsupported; on 503 leave price unavailable and retry later.

4. Create the unpriced local order intent

This example combines the two priced selections in one intent. The printed line makes the order ineligible for v1 order pricing. Submit it only if you can follow up with the shop about the existing order. Before sending, persist your platform order ID, a stable external_reference, an Idempotency-Key and the exact request body together in a retry record for this shop and integration. Use EUR, whole JSON integer quantities, and distinct SKUs. The regular line omits unit so the confirmed catalog order unit applies (here one box); the configurable line uses explicit option codes and its priced unit. The order request has no packaging_mode override or prices. If pricing used a mode the order cannot represent, do not submit the intent.

POST /api/v1/orders HTTP/1.1
Host: shop.example.test
Authorization: Bearer <secret>
Accept: application/json
Content-Type: application/json
Idempotency-Key: platform-1043-v1

{
  "external_reference": "PLATFORM-1043",
  "currency": "EUR",
  "customer": {"name":"Example Buyer","email":"buyer@example.test"},
  "delivery_address": {"street":"Example Street","house_number":"1","postal_code":"1234 AB","city":"Example City","country":"NL"},
  "lines": [
    {"sku":"0033","quantity":1},
    {"sku":"1336","quantity":5000,"unit":"piece","options":[
      {"code":"print_colors","value":"1"},
      {"code":"delivery","value":"normal"},
      {"code":"order_type","value":"nieuw_ontwerp"},
      {"code":"ontwerp","value":"own_design"}
    ]}
  ]
}

If that POST times out, replay the saved request with the same integration, method, path, key and identical body, without re-pricing or rebuilding it:

POST /api/v1/orders HTTP/1.1
Host: shop.example.test
Authorization: Bearer <secret>
Accept: application/json
Content-Type: application/json
Idempotency-Key: platform-1043-v1

{
  "external_reference": "PLATFORM-1043",
  "currency": "EUR",
  "customer": {"name":"Example Buyer","email":"buyer@example.test"},
  "delivery_address": {"street":"Example Street","house_number":"1","postal_code":"1234 AB","city":"Example City","country":"NL"},
  "lines": [
    {"sku":"0033","quantity":1},
    {"sku":"1336","quantity":5000,"unit":"piece","options":[
      {"code":"print_colors","value":"1"},
      {"code":"delivery","value":"normal"},
      {"code":"order_type","value":"nieuw_ontwerp"},
      {"code":"ontwerp","value":"own_design"}
    ]}
  ]
}
HTTP/1.1 201 Created
Location: /api/v1/orders/123e4567-e89b-42d3-a456-426614174000
Cache-Control: no-store, private
Content-Type: application/json

{"id":"123e4567-e89b-42d3-a456-426614174000","status":"pending_confirmation"}

Persist the returned Shop order ID and relative Location against the platform order ID. A successful replay returns 201 with the same ID, not a second order. On 409 (idempotency_conflict), reconcile the original key, body and reference; do not blindly mint a new key. On a definitive order 422 (validation_failed), inspect errors[].field, refresh the catalog if necessary and correct the selection before resubmitting. Do not edit a payload with an unresolved outcome. Repeat a temporary 503 with the original key and body.

5. Read status using the returned ID

This example shows the same order after Apex acknowledges receipt.

GET /api/v1/orders/123e4567-e89b-42d3-a456-426614174000 HTTP/1.1
Host: shop.example.test
Authorization: Bearer <secret>
Accept: application/json
HTTP/1.1 200 OK
Cache-Control: no-store, private
Content-Type: application/json

{
  "id": "123e4567-e89b-42d3-a456-426614174000",
  "external_reference": "PLATFORM-1043",
  "afas_order_number": null,
  "customer": {"name":"Example Buyer","email":"buyer@example.test"},
  "delivery_address": {"street":"Example Street","house_number":"1","postal_code":"1234 AB","city":"Example City","country":"NL"},
  "billing_address": {"street":"Example Street","house_number":"1","postal_code":"1234 AB","city":"Example City","country":"NL"},
  "lines": [
    {"sku":"0033","name":"Synthetic box product","quantity":1,"unit":"box","options":[]},
    {"sku":"1336","name":"Synthetic printed container","quantity":5000,"unit":"piece","options":[
      {"name":"delivery","value":"normal"},
      {"name":"ontwerp","value":"own_design"},
      {"name":"order_type","value":"nieuw_ontwerp"},
      {"name":"print_colors","value":"1"}
    ]}
  ],
  "pricing": {"status":"unknown","currency":"EUR"},
  "price_step": {"reason":"configured_lines_unsupported","next_action":"contact_shop"},
  "created_at": "2026-11-07T12:00:00+00:00",
  "updated_at": "2026-11-07T12:05:00+00:00",
  "status": "pending_confirmation",
  "approval_status": "approved",
  "payment_status": "unpaid",
  "delivery": {"state":"received","error_code":null,"receipt_reference":null,"received_at":"2026-11-07T12:05:00+00:00","original_requested_on":null}
}

Record order, approval, payment and delivery separately. Here Apex acknowledged receipt, but no final price was accepted (no amount_minor) and Shop has no reported AFAS number. Neither status proves payment or fulfillment. The product price preview is not an order price. When price_step.next_action is contact_shop, share the existing Shop ID or external reference with the shop to ask about pricing and handling. Do not retry quote or confirm, resubmit the order, or remove options to make it priceable. You can still read the persisted status; this does not refresh the AFAS number or guarantee its assignment. The access probe GET /api/orders does not recover IDs or list orders.

Share a limiter across jobs: feed GET/HEAD (including 304) and product pricing share 60 requests/minute per shop credential; order creation, reads and price actions share a separate 60/minute budget. Leave headroom for POST and spread status requests across orders. On 429 honor Retry-After if present; otherwise back off exponentially with jitter, a cap and bounded attempts. Authentication failures also have separate limits (10 per presented identity and 30 per client address per shop/minute); check configuration instead of looping on invalid credentials. A polling deadline is not permission to send another order.

Read by customer reference or AFAS sales order number

Instead of the UUID lookup above, use GET /api/v1/orders with exactly one of the following query parameters. Both require the creating integration’s orders:read credential on its own shop host and return the same detail as the UUID route. Send each selector at most once. Matching is case-sensitive and exact; percent-encode the query value (for example, encode a literal + as %2B).

Customer reference — use the external_reference stored when the order was created. This works immediately, while afas_order_number is still null.

GET /api/v1/orders?external_reference=ERP-1042 HTTP/1.1
Host: shop.example.test
Authorization: Bearer <secret>
Accept: application/json
HTTP/1.1 200 OK
Cache-Control: no-store, private
Content-Type: application/json

{
  "id": "123e4567-e89b-42d3-a456-426614174000",
  "external_reference": "ERP-1042",
  "afas_order_number": null,
  "customer": {"name":"Example Buyer","email":"buyer@example.test"},
  "delivery_address": {"street":"Example Street","house_number":"1","postal_code":"1234 AB","city":"Example City","country":"NL"},
  "billing_address": {"street":"Example Street","house_number":"1","postal_code":"1234 AB","city":"Example City","country":"NL"},
  "lines": [{"sku":"SKU-1","name":"Canonical cups","quantity":2,"unit":"box","options":[]}],
  "pricing": {"status":"unknown","currency":"EUR"},
  "created_at": "2026-11-07T12:00:00+00:00",
  "updated_at": "2026-11-07T12:00:00+00:00",
  "status": "pending_confirmation",
  "approval_status": "approved",
  "payment_status": "unpaid",
  "delivery": {"state":"waiting","error_code":null,"receipt_reference":null,"received_at":null,"original_requested_on":null}
}

AFAS sales order number — use afas_order_number from an earlier Shop order read, or the same sales order number from AFAS. It becomes searchable only after Shop has persisted the number reported by Apex.

GET /api/v1/orders?afas_order_number=1O2600097157 HTTP/1.1
Host: shop.example.test
Authorization: Bearer <secret>
Accept: application/json
HTTP/1.1 200 OK
Cache-Control: no-store, private
Content-Type: application/json

{
  "id": "123e4567-e89b-42d3-a456-426614174000",
  "external_reference": "ERP-1042",
  "afas_order_number": "1O2600097157",
  "customer": {"name":"Example Buyer","email":"buyer@example.test"},
  "delivery_address": {"street":"Example Street","house_number":"1","postal_code":"1234 AB","city":"Example City","country":"NL"},
  "billing_address": {"street":"Example Street","house_number":"1","postal_code":"1234 AB","city":"Example City","country":"NL"},
  "lines": [{"sku":"SKU-1","name":"Canonical cups","quantity":2,"unit":"box","options":[]}],
  "pricing": {"status":"unknown","currency":"EUR"},
  "created_at": "2026-11-07T12:00:00+00:00",
  "updated_at": "2026-11-07T13:00:00+00:00",
  "status": "pending_confirmation",
  "approval_status": "approved",
  "payment_status": "unpaid",
  "delivery": {"state":"received","error_code":null,"receipt_reference":"1O2600097157","received_at":"2026-11-07T12:30:00+00:00","original_requested_on":null}
}

An absent, repeated, combined or malformed selector returns 422 validation_failed. A valid but unknown or not-yet-persisted value, or a value belonging to another shop or integration, returns 404 not_found. A number that does not identify exactly one owned order also returns 404. Missing or invalid credentials return 401; missing orders:read returns 403.

Shipment tracking

All three order selectors can return the optional shipments list. Only validated tracking for the creating integration's own order is included. Each entry has a tracking_code, a tracking_url (absolute HTTP(S)), or both; a missing value is null. The entire field is omitted if there is no publishable tracking, the order has no supported provider binding, or the provider lookup is unavailable. Omission does not prove that the order has not shipped.

Example field on a response with tracking:

{
  "shipments": [{"tracking_code":"EXAMPLE-123","tracking_url":"https://carrier.example/track/EXAMPLE-123"}]
}

Shop can request tracking for an acknowledged Store View order after checking local ownership and the order's saved provider destination. This read-only lookup does not assign an AFAS number in Shop, resubmit the order, or change its payment, approval, or delivery-to-Apex state.

What this integration supports

Supported Not supported by the current external contract
Download the configured private feed, conditionally refresh it, calculate a selected product's purchase price with current authorization. Payment initiation/confirmation or artwork upload.
Submit an unpriced local intent, with local approval where applicable. Read persisted status of an order created by this integration by public UUID, customer reference or persisted AFAS number, including available shipment tracking. Obtain and confirm an eligible acknowledged order's exact price. Order listing; webhooks; other provider fulfillment updates; cancellation or returns endpoints.

Swagger API reference

Execution is disabled. Sign in on the acceptance homepage with an identity in a shop that has a validated persisted acceptance domain.

Without signing in, you can browse Swagger, copy synthetic examples and download the OpenAPI contract and sample files. No request is sent from this page.

API errors

Read the general error code in the top-level code field of ApiError. General errors omit errors. For validation_failed, each item in errors[] is a ValidationError with field, code and message.

JSON
HTTP 409 · Idempotency conflict
{
  "code": "idempotency_conflict",
  "message": "The order reference or idempotency key was already used for a different request."
}
JSON
HTTP 422 · Validation failed
{
  "code": "validation_failed",
  "message": "The request contains invalid fields.",
  "errors": [
    {
      "field": "lines.0.quantity",
      "code": "greater_than_zero",
      "message": "Quantity must be greater than zero."
    }
  ]
}

Validation field paths

lines.0.quantity
The quantity on the first order line. Array indexes start at zero.
lines
A problem with the order line collection as a whole.
request
Unexpected fields at the top level of the request.

Validation codes

  • required
  • invalid_type
  • invalid_format
  • greater_than_zero
  • duplicate
  • unsupported_value

Open Responses for the relevant operation to see its supported HTTP statuses and general error codes.