Skip to content

List products for syncing

GET
/products
curl --request GET \
--url 'https://app.currentpim.se/api/v1/products?view=current&variants=all' \
--header 'Authorization: Bearer <token>'

Pages in id order by cursor, within the account’s scopes. Needs products:read and products.view. Values and completeness in filters are compared in channel and locale (the workspace’s defaults unless given).

cursor
string

The meta.next_cursor of the previous page; leave out for the first page.

limit
integer
>= 1 <= 500

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

search
string

The grid’s text search, among the values the account may view.

filters
string

A JSON list of the grid’s conditions: {"field", "operator", "value"} plus currency for prices and unit for measurements. Fields: identifier, family, categories, enabled, is_bundle, workflow_state, completeness, quality, created_at, updated_at, values.<code>. No condition matches a value the account may not view, not even empty.

channel
string

Channel code for scoped values.

locale
string

Locale code for localized values.

updated_since
string format: date-time

Only products changed at or after this time (ISO 8601); variants whose inherited values changed included.

include_deleted
boolean

Also products deleted since updated_since, as tombstones.

view
string
Allowed values: current published

current (the latest version, the default) or published (only products with a published version, as that version).

variants
string
Allowed values: all variants models

all (models and variants, the default), variants (sellable products) or models (one root model per tree).

A page of products, tombstones among them when asked for.

Media typeapplication/json
object
data
required
Array
One of:

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
required
object
limit
required
integer
next_cursor
required

Pass back as cursor for the next page; null on the last page.

string | null
links
required
object
next
required

The URL of the next page, or null.

string | null

Example

{
"data": [
{
"deleted": true
}
]
}

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"
]
}
}

An invalid cursor, limit or filter condition (filters.<index>).

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"
]
}
}