Skip to main content

Export Products

POST 

https://euwest.api.elasticpath.com/pcm/products/export

The Export API is available to make bulk updates to products in Product Experience Manager. You might also export products for your personal requirements.

The Export API builds a CSV file containing the product entries. A CSV file can contain up to 50,000 product entries. If you have more than 50,000 product entries, then another CSV file is created and so on, until all your products are exported.

The Job endpoint response specifies the location where the CSV file is stored. See Characteristics of CSV Files.

Exporting Selected Columns

Product exports support the ability to select a subset of columns to be included in the generated .csv file. This allows you to export only the data you need, making it easier to work with smaller, more focused datasets.

To specify the columns you want to include in the export, use the columns.include parameter in the request body of this endpoint. This parameter accepts an array of strings, where each string represents the name of a product attribute or a flow field.

Specifying Flow Field Columns:

The format for specifying flow field columns depends on the useTemplateSlugs setting:

  • useTemplateSlugs: true: Specify flow field columns using the format: products(<flow_slug>):<field_name>. For example: products(my_flow):my_field.
  • useTemplateSlugs: false (default): Specify flow field columns using the format: template:<flow_id>:<field_name>. For example: template:82c10a02-1851-4992-8ecb-d44f2782d09b:my_field.

Mandatory Fields:

To ensure successful re-importing of product data, the following fields are always included in the export, regardless of the columns.include parameter:

  • id
  • name
  • sku
  • external_ref
  • commodity_type

If the columns.include parameter is not provided in the request, the system will export all available product fields.

Filtering

The following attributes and operators are supported.

OperatorAttributeDescriptionExample
eqid, sku, slug, upc_ean, manufacturer_part_num, name, templates, commodity_type, owner, product_types, parent_id, tags, status, has_nodes (false only), created_at, updated_at, external_ref, descriptionEquals. Checks if the values of two operands are equal. If they are, the condition is true. For product_types, you can only specify one product type. Note: has_nodes can only be filtered as false.?filter=eq(name,some-name)
likesku, slug, upc_ean, manufacturer_part_num, name, tags, description, external_refLike. Checks if the operand contains the specified string. Wildcards are supported.?filter=like(name,*some-name*)
inid, name, sku, slug, upc_ean, manufacturer_part_num, product_types, parent_id, tags, external_refChecks if the values are included in the specified list. If they are, the condition is true. For product_types, you can specify more than one product type.?filter=in(id,some-id)
gtid, created_at, updated_at, external_refGreater than. Checks if the value of the field is greater than the given value.?filter=gt(updated_at,2024-01-01T00:00:00Z)
geid, created_at, updated_at, external_refGreater than or equal to. Checks if the value of the field is greater than or equal to the given value.?filter=ge(created_at,2023-01-01T00:00:00Z)
ltid, created_at, updated_at, external_refLess than. Checks if the value of the field is less than the given value.?filter=lt(updated_at,2025-01-01T00:00:00Z)
leid, created_at, updated_at, external_refLess than or equal to. Checks if the value of the field is less than or equal to the given value.?filter=le(created_at,2022-01-01T00:00:00Z)
eq (extensions)extensions.book.isbnFilters using a nested extension field.?filter=eq(extensions.book.isbn,1765426)

Request

Responses

Export started

Authorization: http

name: bearerAuthtype: httpscheme: bearer

Request Collapse all
Base URL
https://euwest.api.elasticpath.com
Auth
Parameters
— query
— query
Body
{
  "data": {
    "attributes": {
      "columns": {
        "include": [
          "string"
        ]
      }
    },
    "type": "product-export"
  }
}
ResponseClear

Click the Send API Request button above and see the response here!

We use cookies to enhance your experience. By continuing to visit this site you agree to our use of cookies.