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:
Spree::Imports::Products,
Spree::Imports::Customers,
Spree::Imports::ProductTranslations
Example:

"Spree::Imports::Products"

attachment
string
required

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

Example:

"eyJfcmFpbHMiOnsiZGF0YSI6MX0=--signed"

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