younifyd
Menu

Import Products

Import Products

POST/pcm/products/import

Use it in a workflow

  1. Add a step and choose the Elastic Path connector.
  2. Pick the Import Products action (under PIM).
  3. Fill in the fields below, then reference the result from later steps as {{importProducts.response.data}}.

Request

Query parameters

localestring

Specifies the locale to assist in parsing flow entry date values. - If a supported locale is provided, the system attempts to interpret dates using that locale's conventions. The import job fails if a date does not match one of the supported locale's formats. - If this parameter is omitted, or if the value provided is not on the supported list, the system proceeds using its default parsing logic. An unsupported locale is ignored and does not cause a failure. **Supported Locales and Date Formats:** **`en-US`** - `1/2/2006 15:04:05` - `01/02/2006 15:04:05` - `1/2/06 15:04` **`en-GB`** - `2/1/2006 15:04:05` - `02/01/2006 15:04:05` - `2/1/06 15:04` **`en-CA`** - `2/1/2006 15:04:05` - `02/01/2006 15:04:05` - `2/1/06 15:04` Additional locales and date formats can be added upon request.

One ofen-USen-GBen-CA

Request body

Enter the body as JSON in the step's Body field.

filestring (binary)

The file you want to upload. Ensure that the file format is Comma Separated Values (CSV).

json
{
  "file": "UploadFile"
}

Response

Returns 201 with an object. Read it in later steps with {{importProducts.response.data.<field>}}.

dataobject
idstringrequired

A unique identifier generated when a job is created.

typestringrequired

This represents the type of resource object being returned. Always `pim-job`.

One ofpim-job

attributesobjectrequired6 fields
metaobjectrequired5 fields
json
{
  "data": {
    "id": "string",
    "type": "pim-job",
    "attributes": {
      "started_at": "2020-09-22T09:00:00.000Z",
      "completed_at": "2020-09-22T09:00:00.000Z",
      "created_at": "2020-09-22T09:00:00.000Z",
      "updated_at": "2020-09-22T09:00:00.000Z",
      "type": "child-products",
      "status": "pending"
    },
    "meta": {
      "x_request_id": "string",
      "copied_from": "string",
      "hierarchy_id": "string",
      "file_locations": [
        "string"
      ],
      "filter": "string"
    }
  }
}

Need more? See the Elastic Path guide for connection setup and behaviour shared by every action.