Skip to main content
POST
Spree Admin SDK

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
string
required

Which dataset to import, as its shorthand: products, customers, product_translations, price_list_prices, purchase_orders, or a type an extension registers.

Example:

"products"

attachment_signed_id
string
required

The signed_id of the uploaded CSV, from files.upload() with visibility: "private".

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 allowed origins.

Example:

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

price_list_id
string

For price_list_prices imports: the price list the rows are merged into. Must belong to the current store; other types ignore it.

Response

import created in mapping state