Products
Products are addressed by their identifier (SKU). Reading needs the products:read ability and
writing the products:write ability, on an account that may publish. See
Integration API for tokens and conventions.
Product values
Section titled “Product values”Values have one shape everywhere, in reads, writes and webhooks: attribute code → channel code or
"_" → locale code or "_" → value. "_" means “the same in every channel” or “the same in every
locale”. An attribute that varies by neither has its value at ["_"]["_"], one that varies by
locale at ["_"]["en_US"], and one that varies by both at ["ecommerce"]["en_US"].
GET /api/v1/attributes says which attribute varies by what.
{ "name": { "_": { "en_US": "Runner", "sv_SE": "Löpare" } }, "price": { "_": { "_": [{ "amount": "49.90", "currency": "EUR" }] } }, "weight": { "_": { "_": { "amount": 1.2, "unit": "KILOGRAM" } } }, "color": { "_": { "_": "red" } }}| Attribute type | Value |
|---|---|
| text, textarea, richtext | String; rich text is HTML, which is cleaned of scripts and unknown markup when saved |
| url | String, a full http:// or https:// address |
| supplier | A supplier’s code; its name is accepted and stored as the code |
| number | JSON number |
| boolean | true or false |
| date | "2026-10-30" |
| datetime | ISO 8601, stored in UTC |
| select, multiselect | An option code, or a list of option codes |
| price | A list of { "amount": "12.50", "currency": "EUR" }; amounts are decimal strings |
| measurement | { "amount": 1.2, "unit": "KILOGRAM" } |
| image, file | "media:<id>", an asset code from the library, or an https:// address that is downloaded into the library once |
| gallery, file_list | A list of those; galleries hold pictures, file lists any kind of file |
| reference_single, reference_multi | A record code, or a list of record codes |
| table | A list of rows, each mapping the attribute’s column codes to plain values |
Reading a product
Section titled “Reading a product”GET /api/v1/products/{identifier} returns the product as its latest version: identifier, family,
enabled, variant structure, parent, variant level, its own values (a variant’s inherited
values belong to its models), category codes and links per association type, plus id, version,
published_version and timestamps. is_bundle and availability are there when they are set.
Cells the account may not view are left out.
Availability says where and when the product is sold, per channel code:
{ "webshop": { "from": "2026-12-01", "until": "2027-01-31" }, "print": { "enabled": false }}A channel without an entry sells the product every day. enabled: false means the channel doesn’t
sell it at all, and from and until are the first and last day, inclusive, in UTC. Availability is
separate from enabled. Feeds leave out what their channel doesn’t sell on the day they run, and a
product.availability_changed webhook tells you the day a channel starts or stops selling a
product.
Bundles (is_bundle: true) are sold as a set of other products, listed in
associations.bundle_components, each with data.quantity:
[{ "target": "SKU-1", "target_id": "01k…", "data": { "quantity": 2 } }]A model among the components stands for one of its variants, which the customer picks. A bundle has its own price; working out stock from the components is up to your system.
Listing products and syncing changes
Section titled “Listing products and syncing changes”GET /api/v1/products lists products in a stable order, limit per page (100 unless given, at most
500), each in the shape of GET /api/v1/products/{identifier}. While there is a next page, the
answer carries meta.next_cursor and links.next; pass the cursor back as cursor.
| Parameter | Does |
|---|---|
search |
The product grid’s text search |
filters |
The grid’s filter conditions as a JSON list of {"field", "operator", "value"}, plus currency for prices and unit for measurements. Fields are identifier, family, categories, enabled, is_bundle, available (sold in channel today), workflow_state, completeness, quality, created_at, updated_at and values.<code> |
channel, locale |
Where values, completeness and quality are compared; the workspace’s defaults unless given |
updated_since |
Products changed at or after that time (ISO 8601), variants whose inherited values changed included |
include_deleted |
With 1 and updated_since, products deleted since then come as tombstones: {"id", "identifier", "deleted": true, "deleted_at"} |
view |
published: only products with a published version, as that version (version still names the current one). The default, current, gives the latest version |
variants |
all (the default: models and variants), variants (sellable products only) or models (one root model per variant tree, matching when any product of its tree matches) |
A filter the grid wouldn’t accept answers 422 with filters.<index>. For example:
filters=[{"field":"family","operator":"in","value":["shoes"]},{"field":"values.color","operator":"in","value":["red"]}]To keep another system in step, walk the list with updated_since set to the time your last
run started, with include_deleted=1:
curl "https://app.currentpim.se/api/v1/products?updated_since=2026-11-01T00:00:00Z&include_deleted=1&limit=200" \ -H "Authorization: Bearer 7|vpim_…" -H "Accept: application/json"Webhooks tell you sooner; the list is how you catch up after an outage or start from scratch.
Reading a product’s history
Section titled “Reading a product’s history”GET /api/v1/products/{identifier}/versions lists the product’s versions newest first, limit per
page (100 unless given). Pass meta.older_than as before for the next page. Each version carries
its number, reason (manual, import, api, rule, bulk, workflow, supplier, ai,
restore, translation, baseline), author, approver, supplier_user, the rules it applied
and the paths it changed.
GET /api/v1/products/{identifier}/versions/{number} adds changes ({path: {old, new}}, as
webhooks send them) and the version’s snapshot.
Identifiers may hold slashes, so products/SKU/versions reads the history of SKU. A product whose
identifier itself ends in /versions is read through the list with an identifier filter.
Writing products
Section titled “Writing products”PUT /api/v1/products/{identifier} creates or updates one product. POST /api/v1/products/batch
takes { "items": [ … ] } with up to 500. An item:
{ "identifier": "SKU-1", "family": "shoes", "enabled": true, "categories": ["running", "womens_shoes"], "values": { "price": { "_": { "_": [{ "amount": "49.90", "currency": "EUR" }] } } }}- Upsert by identifier. An unknown identifier creates the product, a known one updates it. Identifiers are never renamed through the API.
- Leave out what you don’t send. Fields an item leaves out stay as they are.
valuesis sparse: only the cells you send change, andnullclears a cell.categories, when sent, replaces the product’s categories.associationsreplaces the links of each type you send, such as{ "cross_sell": [{ "target": "SKU-2" }] }.availabilityreplaces the entry of each channel you send, andnullclears it. - Safe to retry. Sending the same item again changes nothing and records no version (status
unchanged), so retrying after a timeout is safe. - Variant trees. A root model takes
familyandvariant_structure. A variant takesparent(its model’s identifier) and its axis values. Models and variants may come in one batch, in any order. Values belong on the level that owns the attribute; sending an inherited attribute on a variant fails that item. - Bundles.
is_bundle: truemakes a simple product a bundle, andfalseremoves its components too. Send components asassociations.bundle_components:[{ "target": "SKU-1", "data": { "quantity": 2 } }, { "target": "SKU-2" }](quantity 1 unless given, at most 9999). A component is a simple product, a variant or a model, not another bundle. Components may come in the same batch. - Expect a version. An item may carry
version, the version it was made against (asGET products/{identifier}reports it). If the product has moved on since, the item fails alone witherrors.versionand nothing of it is written. Two systems writing the same product then never overwrite each other without knowing. Withoutversion, the item is applied on top of the current state. - Each item on its own. A batch answers 200 with one result per item, in order, and a summary:
{ "data": [ { "identifier": "SKU-1", "status": "created", "id": "01k…", "version": 1, "errors": {} }, { "identifier": "SKU-2", "status": "failed", "id": null, "version": null, "errors": { "values.color._._": ["Unknown option: green."] } } ], "summary": { "created": 1, "updated": 0, "unchanged": 0, "failed": 1 }}Links are written once every product of the batch exists. If they fail, the item reports failed
with the link errors, although its other changes (and version) are saved. PUT answers 201 with
the product when it was created, 200 when it was updated or unchanged, and 422 with errors
otherwise.
curl -X POST https://app.currentpim.se/api/v1/products/batch \ -H "Authorization: Bearer 7|vpim_…" \ -H "Content-Type: application/json" -H "Accept: application/json" \ -d '{"items":[{"identifier":"SKU-1","family":"shoes","values":{"ean":{"_":{"_":"4006381333931"}}}}]}'What the account may change
Section titled “What the account may change”The account needs publish on every cell and field an item changes. A cell outside its scopes fails
the item, for example values.name._.sv_SE. A cell it may view but not change may be sent along
unchanged. A cell it may not view fails the item whatever the product holds, so send only what the
account reads: reads leave such cells out, and a product that is read and sent back never names one.
Nor may an item move a product to a family that would show the account values that are hidden
where the product is now.
media:<id> names a file of the asset library or one of the product’s own files. Asset codes and
addresses work as usual.
What follows a write
Section titled “What follows a write”On-save rules run, completeness and quality are worked out again, and a version with the reason
API and the account as author is recorded. Webhooks receive product.created or
product.updated with author_id set to the account, so a system that also listens to webhooks
can skip its own changes. When the product is published, the new version is published too, as for
any direct change.
Deleting a product
Section titled “Deleting a product”DELETE /api/v1/products/{identifier} deletes the product (a model takes its variants along) and
answers {"data": {"id", "identifier", "deleted_at", "deleted_count"}}. It answers 404 for a product
the account can’t see and 403 for one it may see but not delete. A product that is a component of a
live bundle can’t be deleted, and the answer names the bundle. Deleted products keep their history,
can be restored from the trash in the app, and come as tombstones in the list’s changes. Their
identifiers may be used again.