Skip to content

PIM Access

The pim access module allows connecting to a PIM (Product Information Management) system like Akeneo or other compatible systems. It supports read operations (GET) with automatic pagination following _links.next.href links, and write operations (POST, PUT, PATCH) to create or update resources. Authentication is done via OAuth2 (password grant_type) obtaining a Bearer token before each operation. It includes retries with exponential backoff for ECONNRESET errors. It is ideal for synchronizing product catalogs between the PIM and other systems.

ParameterTypeRequiredDescription
credentials_idcredentialsYesPIM access credentials
urltextYesEndpoint URL (supports {{variable}} variables)
pageInitnumberNoStarting page (default: 1)
pageSizenumberNoPage size (default: 100)
totalIterationsnumberNoIteration limit (0 = no limit)
delayMsnumberNoDelay between requests in ms (default: 500)
continu_next_linkbooleanNoContinue paginating automatically (default: true)
continueOnErrorbooleanNoContinue the workflow in case of error
methodtextNoHTTP method: GET (read) or POST/PUT/PATCH (write). Default: GET
datatextNoPayload for writing (supports {{data}} to send input data)

The credential must contain the fields:

  • username: PIM username
  • password: User password
  • client_id: OAuth2 client ID
  • client_secret: OAuth2 client secret
  • endpoint_auth: Authentication endpoint URL (e.g.: https://mypim.com/api/oauth/v1/token)

The module authenticates via OAuth2 password grant and obtains a Bearer token for subsequent requests.

{
"nextModule": "siguiente_modulo",
"data": {
"data": [
{ "identifier": "SKU001", "family": "camisetas" },
{ "identifier": "SKU002", "family": "pantalones" }
],
"links": { "next": { "href": "..." } }
}
}
{
"nextModule": "siguiente_modulo",
"data": {
"status": 201,
"data": {}
}
}
{
"credentials_id": "cred_pim_01",
"url": "https://mypim.com/api/rest/v1/products",
"method": "GET",
"continu_next_link": true,
"totalIterations": 0,
"delayMs": 500
}
{
"credentials_id": "cred_pim_01",
"url": "https://mypim.com/api/rest/v1/products/{{sku}}",
"method": "PATCH",
"data": "{{data}}"
}
  • Authentication: POST {endpoint_auth} with grant_type=password and Basic Auth (client_id:client_secret)
  • Products: PIM REST endpoints (compatible with Akeneo API)
  • Pagination follows the HAL format _links.next.href and items are extracted from _embedded.items
  • Supports dynamic variables {{variable}} in the URL and payload
  • The special value {{data}} in the data field sends the input data as payload (removing _meta_)
  • Includes automatic retries (up to 3) with exponential backoff for ECONNRESET errors
  • continueOnError: true allows the workflow to continue even if the operation fails
  • In read mode, data is accumulated from all pages into a single array
  • In write mode, gzip decompression is disabled and Accept-Encoding is omitted
  • A new token is obtained on each module execution
  • odooApi (API reading with similar pagination)
  • odoowrite (API writing with basic authentication)