Skip to content

Integration API

Other systems, such as an ERP, read the catalog and write products through a JSON API at https://app.currentpim.se/api/v1. A write follows the same rules as a change made in the app or by an import: values are checked against their attributes, your on-save rules run, a version is recorded in the product’s history, and webhooks are told. Products are read in the shape that webhooks send, so one parser serves both.

This page covers accounts, tokens and conventions. Products and Assets describe the endpoints, and the API reference lists every parameter and response.

Calls run as an integration account: a member of the workspace that is not a person. An admin adds one under Settings › Permissions, on the Integrations tab, gives it roles (catalog manager fits most ERPs) and narrows it with permission scopes like anyone else. For example, attribute group * = view and pricing = publish lets the ERP own prices and only read marketing texts. Product history names the account (“ERP”).

On the same tab the admin creates tokens for the account. A token is shown once and only a hash of it is stored, so copy it straight into your system’s secret store. Give each system or environment its own token, so you can revoke one without touching the others. A token can expire, and it has abilities, which only narrow what the account may do:

Ability Allows
catalog:read GET channels, attributes, families, categories, suppliers
products:read GET products, products/{identifier} and a product’s versions
products:write PUT products/{identifier}, POST products/batch, DELETE products/{identifier} (the account must publish)
assets:read GET assets, assets/{code}
mcp The MCP server for AI assistants at /mcp, not the /api/v1 endpoints

Send the token as a bearer token:

Terminal window
curl https://app.currentpim.se/api/v1/me \
-H "Authorization: Bearer 7|vpim_…" \
-H "Accept: application/json"

GET /api/v1/me answers with the account, its workspace, its roles and the token’s abilities, which is a quick way to check a new token. Tokens of deactivated accounts and expired or revoked tokens get 401. A browser session doesn’t reach the API, and neither does the sign-in of a person who connected an AI assistant: that opens the MCP server only.

  • Codes, not ids. Products are named by their identifier (SKU). Families, attributes, options, channels, locales, currencies, categories and reference records are named by their code.
  • Errors. 401 without a valid token. 403 when the token lacks the ability or the account the permission. 404 for a product the account can’t see, exactly as for one that doesn’t exist. 422 for invalid input, with errors keyed by field, such as family, values.price._._ or items.0.identifier.
  • Limits. 300 requests a minute per token. Above that you get 429 with a Retry-After header. A batch carries up to 500 products.
  • Request ids. Send an X-Request-Id header to find a call when you ask us about it. Every answer carries one.
  • Permission scopes apply. The account sees only the products, values and files its roles and permission scopes allow. Values it may not view are left out of every answer, and no search or filter compares them.

These endpoints need the catalog:read ability and give you what product values refer to:

Endpoint Gives
GET /api/v1/channels Code, labels, the locales and currencies a channel publishes, its category tree
GET /api/v1/attributes, GET /api/v1/attributes/{code} Code, type, group, labels, whether it varies by locale (localizable) and channel (scopable), unique, its validation, the option codes of a select (with their swatches), a table’s columns, measurement units, the reference entity, help text and placeholder per locale, default_value, and locked_for (integration when only integrations and admins may change it)
GET /api/v1/families The family’s attribute codes, the attributes required per channel, its label and image attribute, its variant structures with their levels
GET /api/v1/categories Code, parent code and labels, parents before children
GET /api/v1/suppliers Code, name, whether it is active, and the brands the supplier delivers. Needs the suppliers permission

GET /api/v1/openapi.json describes every endpoint, parameter and response as OpenAPI 3.1, for client generators and API tools. It needs no token. The API reference on this site is rendered from the same document.

Renaming identifiers, writing catalog structure (attributes, options, families, categories, reference records), uploading files other than by URL, and asynchronous jobs for very large syncs: send batches of 500. Changes that a person should review first go through the MCP server, which saves them as drafts.