PXM Product Import API
The Import API in PXM is available to:
- Manage and upload PXM product data. See EP PXM Product Import.
- Make bulk updates to products in PXM. See EP PXM Bulk Product Update.
EP PXM Product Import uses a Comma Separated Values (CSV) file to import products, main image files and custom extension data.
POST
Import Products in PXM
https://api.moltin.com/pcm/products/import
Import catalog data to manage product data.
Path Parameters
Headers
Name | Required | Type | Description |
---|---|---|---|
Authorization | Required | string | The Bearer token required to get access to the API. |
Body
Name | Required | Type | Description |
---|---|---|---|
file | Required | string | The file you want to upload. Ensure that the file format is .csv . |
Request Example
curl -X POST https://api.moltin.com/pcm/products/import \
-H "Content-Type: multipart/form-data" \
-H "Authorization: Bearer XXXX" \
-F file=@path/to/file \
Response Example
204 No Content
Errors
Import fails when the file does not contain the required header names name
, sku
and commodity_type
.
For example:
{
"errors": [
{
"status": "422",
"title": "Failed Validation",
"detail": "missing required csv header: name"
}
]
}