Create or update up to 500 products
const url = 'https://app.currentpim.se/api/v1/products/batch';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"items":[{"family":"example","variant_structure":"example","parent":"example","enabled":true,"is_bundle":true,"availability":{"additionalProperty":{"enabled":true,"from":"2026-04-15","until":"2026-04-15"}},"categories":["example"],"associations":{"additionalProperty":[{"target":"example","data":{"additionalProperty":"example"}}]},"values":{"additionalProperty":{"additionalProperty":{"additionalProperty":"example"}}},"version":1,"identifier":"example"}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://app.currentpim.se/api/v1/products/batch \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "items": [ { "family": "example", "variant_structure": "example", "parent": "example", "enabled": true, "is_bundle": true, "availability": { "additionalProperty": { "enabled": true, "from": "2026-04-15", "until": "2026-04-15" } }, "categories": [ "example" ], "associations": { "additionalProperty": [ { "target": "example", "data": { "additionalProperty": "example" } } ] }, "values": { "additionalProperty": { "additionalProperty": { "additionalProperty": "example" } } }, "version": 1, "identifier": "example" } ] }'Needs products:write and products.publish. Each item succeeds or fails on its own; models and their variants may come in one batch, in any order, and links may name products further down the batch.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
object
Makes a new product a root model of this structure.
Makes a new product a variant of this model.
Makes a simple product a bundle; false takes its components away too. Set components with associations.bundle_components: {target, data: {quantity}}, a whole number from 1 to 9999.
object
object
object
Attribute code → channel code or _ → locale code or _ → value, in the stored shape (see docs/api.md, Product values). On writes a value of null clears the cell.
object
object
object
The product version the item was made against. When the product is no longer at it, the item fails alone with a version error instead of writing on top of the newer state.
Example generated
{ "items": [ { "family": "example", "variant_structure": "example", "parent": "example", "enabled": true, "is_bundle": true, "availability": { "additionalProperty": { "enabled": true, "from": "2026-04-15", "until": "2026-04-15" } }, "categories": [ "example" ], "associations": { "additionalProperty": [ { "target": "example", "data": { "additionalProperty": "example" } } ] }, "values": { "additionalProperty": { "additionalProperty": { "additionalProperty": "example" } } }, "version": 1, "identifier": "example" } ]}Responses
Section titled “Responses”One result per item, in order, and a summary.
object
object
object
object
Example
{ "data": [ { "status": "created" } ]}No valid token (missing, revoked, expired, or the account is deactivated).
object
Problems by field, e.g. values.price._._ or items.0.identifier (422 only).
object
Example generated
{ "message": "example", "errors": { "additionalProperty": [ "example" ] }}The token lacks the ability or the account the permission.
object
Problems by field, e.g. values.price._._ or items.0.identifier (422 only).
object
Example generated
{ "message": "example", "errors": { "additionalProperty": [ "example" ] }}The request’s shape is invalid (items.<index>.<field>).
object
Problems by field, e.g. values.price._._ or items.0.identifier (422 only).
object
Example generated
{ "message": "example", "errors": { "additionalProperty": [ "example" ] }}More than the allowed requests a minute for this token; Retry-After says when to try again.
object
Problems by field, e.g. values.price._._ or items.0.identifier (422 only).
object
Example generated
{ "message": "example", "errors": { "additionalProperty": [ "example" ] }}