Skip to main content

Import Products

POST 

/pcm/products/import

You can use the Product Import API to:

You cannot use product import to:

  • Delete existing products.
  • Import product bundles.

The Product Import API uses a Comma Separated Values (CSV) file to import products, main image files and custom extension data. Each row in a .csv file represents a product you want to create/update. See an example file.

Each file can have 50,000 rows, including the header. If a CSV file exceeds 50,000 rows, an error is displayed, and the products are not imported. A CSV file must not be larger than 50 megabytes. If a CSV file is larger than 50 megabytes, a 503 client read error is displayed.

If you want to create/update more than 50,000 products or your CSV file is larger than 50 megabytes, you must have a separate CSV file and import each CSV file one at a time.

See Characteristics of CSV Files.

Request

Body

    file binary

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

Responses

Import started

Schema
    data objectrequired
    id stringrequired

    A unique identifier generated when a job is created.

    type stringrequired

    Possible values: [pim-job]

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

    attributes objectrequired
    started_at date-timenullablerequired

    The date and time a job is started.

    completed_at date-timenullablerequired

    The date and time a job is completed.

    created_at date-timerequired

    The date and time a job is created.

    updated_at date-timerequired

    The date and time a job is updated.

    type stringrequired

    Possible values: [child-products, product-import, product-export, hierarchy-duplicate, price-import]

    The status of a job.

    • pending - Commerce has received the request but is currently busy processing other requests.
    • started - Commerce has started processing the job.
    • success - The job has successfully completed.
    • failed - The job has failed.
    status stringrequired

    Possible values: [pending, cancelled, started, success, failed]

    meta objectrequired
    x_request_id stringrequired

    Applies to all job types. A unique request ID is generated when a job is created.

    copied_from string

    Applies to hierarchy-duplicate job types. The ID of the original hierarchy that you duplicated.

    hierarchy_id string

    Applies to hierarchy-duplicate job types. The duplicated hierarchy ID.

    file_locations string[]nullable

    If the job type is product_export, a link to the file is created when running a job.

    filter string

    The entities included in the job. For example, if the job type is product-export, the PXM products included in the export.

Loading...