Skip to content

A product's versions, newest first

GET
/products/{identifier}/versions
curl --request GET \
--url https://app.currentpim.se/api/v1/products/example/versions \
--header 'Authorization: Bearer <token>'

Needs products:read and products.view.

identifier
required
string

The product’s identifier (SKU). It may hold slashes.

before
integer
>= 1

Only versions below this number (the previous page’s meta.older_than).

limit
integer
>= 1 <= 500

Versions per page: 100 unless given, at most 500.

A page of versions.

Media typeapplication/json
object
data
Array<object>
object
number
integer
reason
string
Allowed values: manual import rule bulk workflow api supplier ai restore translation automation baseline
author
One of:
object
id
integer
name
string
approver
One of:
object
id
integer
name
string
supplier_user
object
id
integer
name
string | null
supplier
string | null
automation

The automation that wrote the version or proposed the draft it merged; code and label are null once it is deleted.

object
id
integer
code
string | null
label
string | null
rules

Codes of the rules whose actions the version contains.

Array<string>
changed

The paths that changed: properties, values.<code>.<channel>.<locale>, categories, associations.<type>.

Array<string>
created_at
string format: date-time
changes

Single read only: path → {old, new}, as webhooks send in data.changes.

object
key
additional properties
object
old
new
snapshot

A product as its version’s snapshot (what webhooks send as data.product), plus id, version numbers and timestamps. Cells outside the account’s scopes are left out.

object
id
string
identifier
string
family
string | null
enabled
boolean
is_bundle

Left out unless true. Its components are in associations.bundle_components, each with data.quantity.

boolean
availability

Channel code => where and when the product is sold; left out when every channel sells it every day.

object
key
additional properties
object
enabled

False: the channel doesn’t sell the product.

boolean
from

First day it is sold.

string format: date
until

Last day it is sold.

string format: date
variant_structure
string | null
parent

A variant’s model, by identifier.

string | null
parent_id
string | null
variant_level

0 for products outside trees and root models.

integer
values

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
key
additional properties
object
key
additional properties
object
key
additional properties
categories
Array<string>
associations

Association type code → links in order.

object
key
additional properties
Array<object>
object
target
required

The linked product’s identifier.

string
target_id

The linked product’s id (reads only).

string
data

The type’s custom link fields.

object
key
additional properties
version
integer
published_version
integer | null
created_at
string | null format: date-time
updated_at
string | null format: date-time
meta
object
limit
integer
older_than

Pass as before for the next page; null on the last page.

integer | null

Example

{
"data": [
{
"reason": "manual"
}
]
}

No valid token (missing, revoked, expired, or the account is deactivated).

Media typeapplication/json
object
message
required
string
errors

Problems by field, e.g. values.price._._ or items.0.identifier (422 only).

object
key
additional properties
Array<string>

Example generated

{
"message": "example",
"errors": {
"additionalProperty": [
"example"
]
}
}

The token lacks the ability or the account the permission.

Media typeapplication/json
object
message
required
string
errors

Problems by field, e.g. values.price._._ or items.0.identifier (422 only).

object
key
additional properties
Array<string>

Example generated

{
"message": "example",
"errors": {
"additionalProperty": [
"example"
]
}
}

No product with this identifier the account may see.

Media typeapplication/json
object
message
required
string
errors

Problems by field, e.g. values.price._._ or items.0.identifier (422 only).

object
key
additional properties
Array<string>

Example generated

{
"message": "example",
"errors": {
"additionalProperty": [
"example"
]
}
}

More than the allowed requests a minute for this token; Retry-After says when to try again.

Media typeapplication/json
object
message
required
string
errors

Problems by field, e.g. values.price._._ or items.0.identifier (422 only).

object
key
additional properties
Array<string>

Example generated

{
"message": "example",
"errors": {
"additionalProperty": [
"example"
]
}
}