Skip to main content
POST
Create an import

Authorizations

x-spree-api-key
string
header
required

Secret API key for admin access

Authorization
string
header
required

JWT token for admin user authentication

Headers

x-spree-api-key
string
required
Authorization
string
required

Body

application/json
type
enum<string>
required
Available options:
products,
customers,
product_translations,
price_list_prices,
purchase_orders
Example:

"products"

attachment
string
required

ActiveStorage signed blob id from POST /api/v3/admin/direct_uploads.

Example:

"eyJfcmFpbHMiOnsiZGF0YSI6MX0=--signed"

price_list_id
string

For price_list_prices imports: the price list the rows are merged into. Must belong to the current store.

Example:

"pl_86Rf07xd4z"

preferred_delimiter
enum<string>

CSV column separator. Defaults to a comma.

Available options:
,,
;,
|,
Example:

","

results_url
string

Absolute URL of your admin imports view; the import-done email links back to it with ?import=<id> appended. Only honored when it matches one of the store's configured allowed origins.

Example:

"https://admin.example.com/store_abc/settings/imports"

Response

import created in mapping state