Products
GET /v1/products
Section titled “GET /v1/products”List products
Scope: products:read
| Query | |
|---|---|
sku | Exact SKU match |
limit | Page size, 1-200 (default 50) |
cursor | Opaque cursor from meta.nextCursor |
curl https://app.rieck.nu/api/v1/products \ -H "Authorization: Bearer $RIECK_API_KEY"const svar = await rieck.request("GET", "/v1/products");POST /v1/products
Section titled “POST /v1/products”Create product
Scope: products:write
curl -X POST https://app.rieck.nu/api/v1/products \ -H "Authorization: Bearer $RIECK_API_KEY" \ -H "Idempotency-Key: order-2041" \ -d '{ "sku": "…", "name": "Acme ApS", "unitPriceOere": 125000, "vatRateBps": 2500 }'const svar = await rieck.request("POST", "/v1/products", { body: { "sku": "…", "name": "Acme ApS", "unitPriceOere": 125000, "vatRateBps": 2500 },});Request body — fuldt JSON Schema
{ "type": "object", "properties": { "sku": { "type": "string", "minLength": 1, "maxLength": 60 }, "name": { "type": "string", "minLength": 1, "maxLength": 200 }, "unitPriceOere": { "type": "integer", "minimum": 0, "maximum": 100000000000 }, "vatRateBps": { "type": "integer", "minimum": 0, "maximum": 10000 }, "vatExemptionReason": { "anyOf": [ { "type": "string", "enum": [ "ML13", "OMVENDT", "EU_VARE", "EKSPORT" ] }, { "type": "null" } ] }, "account": { "anyOf": [ { "type": "integer", "minimum": 0, "maximum": 999999999 }, { "type": "null" } ] } }, "required": [ "sku", "name", "unitPriceOere", "vatRateBps" ], "additionalProperties": false}GET /v1/products/{productId}
Section titled “GET /v1/products/{productId}”Get product
Scope: products:read
curl https://app.rieck.nu/api/v1/products/9b2f1c1e-… \ -H "Authorization: Bearer $RIECK_API_KEY"const svar = await rieck.request("GET", "/v1/products/9b2f1c1e-…");PATCH /v1/products/{productId}
Section titled “PATCH /v1/products/{productId}”Update product
Scope: products:write
curl -X PATCH https://app.rieck.nu/api/v1/products/9b2f1c1e-… \ -H "Authorization: Bearer $RIECK_API_KEY" \ -H "Idempotency-Key: order-2041" \ -d '{ "name": "Acme ApS", "unitPriceOere": 125000, "vatRateBps": 2500 }'const svar = await rieck.request("PATCH", "/v1/products/9b2f1c1e-…", { body: { "name": "Acme ApS", "unitPriceOere": 125000, "vatRateBps": 2500 },});Request body — fuldt JSON Schema
{ "type": "object", "properties": { "sku": { "type": "string", "minLength": 1, "maxLength": 60 }, "name": { "type": "string", "minLength": 1, "maxLength": 200 }, "unitPriceOere": { "type": "integer", "minimum": 0, "maximum": 100000000000 }, "vatRateBps": { "type": "integer", "minimum": 0, "maximum": 10000 }, "vatExemptionReason": { "anyOf": [ { "type": "string", "enum": [ "ML13", "OMVENDT", "EU_VARE", "EKSPORT" ] }, { "type": "null" } ] }, "account": { "anyOf": [ { "type": "integer", "minimum": 0, "maximum": 999999999 }, { "type": "null" } ] }, "active": { "type": "boolean" } }, "additionalProperties": false}GET /v1/accounts
Section titled “GET /v1/accounts”List sales accounts
Scope: products:read
curl https://app.rieck.nu/api/v1/accounts \ -H "Authorization: Bearer $RIECK_API_KEY"const svar = await rieck.request("GET", "/v1/accounts");POST /v1/accounts
Section titled “POST /v1/accounts”Create sales account
Scope: products:write
curl -X POST https://app.rieck.nu/api/v1/accounts \ -H "Authorization: Bearer $RIECK_API_KEY" \ -H "Idempotency-Key: order-2041" \ -d '{ "accountNumber": "…", "name": "Acme ApS" }'const svar = await rieck.request("POST", "/v1/accounts", { body: { "accountNumber": "…", "name": "Acme ApS" },});Request body — fuldt JSON Schema
{ "type": "object", "properties": { "accountNumber": { "type": "string", "minLength": 1, "maxLength": 20 }, "name": { "type": "string", "minLength": 1, "maxLength": 200 } }, "required": [ "accountNumber", "name" ], "additionalProperties": false}