Skip to content

Create an Import

POST/v1/imports

Import a catalog file as PDPs.

Request

application/octet-stream
Authorization
header · required
Bearer <Extralt API key>
Idempotency-Key
header · string · required

Unique key for safely retrying this request

store_host
query · string · required

The Store every record belongs to, as a website or hostname, with country. The Import adds the Store when the organization has none, and is refused while it has an unfinished Run or Import. Records naming another host fail the Import.

body
application/octet-stream · required
file_name
query · string
country
query · string

An assigned ISO 3166-1 alpha-2 country code, in its canonical upper case.

pattern ^[A-Z]{2}$
language
query · string

An ISO 639-1 language code, in its canonical lower case.

pattern ^[a-z]{2}$

Response

202 Accepted · application/json

Import accepted

created_at
string
date-time
error_count
integer

Records that could not be read.

int64 · ≥ 0
finished
boolean

Whether the Import has reached a final status.

id
string
name
string
new_pdps
integer

Of those, the organization's first PDP of a product, charged as new.

int64 · ≥ 0
pdps
integer

PDPs published and billed.

int64 · ≥ 0
status
ImportStatus
one of pending · running · materializing · completed · validation_failed · failed
status_reason
string · nullable
store_id
string

The Store the Import reads into.

updated_at
string · nullable
date-time

Errors

ErrorResponse

Errors that read the same on every endpoint are in Error codes.

400

Invalid import

402

Active subscription required

409

The Store has an unfinished Run or Import, or the idempotency key was used for a different request

413

The request body exceeds the API limit

Request · cURL
curl -X POST 'https://api.extralt.com/v1/imports?store_host=www.example-store.com' \
  -H "Authorization: Bearer $EXTRALT_API_KEY" \
  -H 'Idempotency-Key: 0f8c6b2e-3d4a-4f9b-8c1e-5a7d9e2b4c61' \
  -H 'Content-Type: application/octet-stream' \
  --data-binary @file
Response · 202
{
  "created_at": "2026-09-28T08:14:03Z",
  "error_count": 3,
  "finished": true,
  "id": "kx79d3q8z2c4v1m6x5t0r9wbn2f7egtp",
  "name": "catalog.csv",
  "new_pdps": 310,
  "pdps": 1250,
  "status": "completed",
  "status_reason": null,
  "store_id": "example-store.com-US",
  "updated_at": "2026-09-28T08:14:03Z"
}