Bulk data imports from CSV files and external systems.
List data imports
List all data imports from accessible editions. By default, excludes cancelled imports unless include_cancelled=true is specified. Optionally filter by edition_id to see imports from a specific edition.
query Parameters
created_aftercreated_beforeedition_idOptional: Filter by specific edition. If not provided, shows imports from all accessible editions.
include_cancelledInclude cancelled imports (default: false)
orderingOrdering
created- Created-created- Created (descending)modified- Modified-modified- Modified (descending)stage- Stage-stage- Stage (descending)
pageA page number within the paginated result set.
page_sizeNumber of results to return per page (default: 100).
servicestageuploaded- Uploadedneeds_column_mapping- Needs Column Mappingneeds_product_mapping- Needs Product Mappingimporting- Importingcompleted- Completedfailed- Failedcancelled- Cancelled
List data imports › Responses
countnextpreviousCreate data import
Upload file for import. Columns are extracted automatically and import transitions to needs_column_mapping stage.
Create data import › Request Body
edition_idEdition identifier where data will be imported
data_file_base64Base64 encoded file content (CSV or Excel)
data_file_nameOriginal filename (e.g., 'customers.csv')
nameName of the import (optional, auto-generated from filename if not provided)
default_country_codeDefault country code for phone normalization (e.g., '+45' for Denmark)
Create data import › Responses
idUnique identifier for the import
Light readonly serializer for embedding in other resources.
stageCurrent import stage. uploaded: File uploaded, column extraction in progress. needs_column_mapping: Columns detected, awaiting column mapping configuration. needs_product_mapping: File parsed with mappings, product assignments needed. importing: Import actively running in background. completed: Import finished successfully. failed: Import encountered an error. cancelled: Import was cancelled by user.
uploaded- Uploadedneeds_column_mapping- Needs Column Mappingneeds_product_mapping- Needs Product Mappingimporting- Importingcompleted- Completedfailed- Failedcancelled- Cancelled
data_file_urlURL to download the uploaded file
data_file_nameOriginal filename of the uploaded file
Import statistics including customer, product, and order counts (available in needs_product_mapping, importing, or completed stages)
product_mappings_completeWhether all product mappings have been assigned to products (available in needs_product_mapping, importing, or completed stages)
createdmodifiednameName of the import (auto-generated from filename if not provided)
default_country_codeDefault country code for phone number normalization (e.g., +45 for Denmark). If not set, uses edition's default country code.
Get data import details
ViewSet for data import operations
path Parameters
idA unique value identifying this Data Import.
Get data import details › Responses
idUnique identifier for the import
Light readonly serializer for embedding in other resources.
stageCurrent import stage. uploaded: File uploaded, column extraction in progress. needs_column_mapping: Columns detected, awaiting column mapping configuration. needs_product_mapping: File parsed with mappings, product assignments needed. importing: Import actively running in background. completed: Import finished successfully. failed: Import encountered an error. cancelled: Import was cancelled by user.
uploaded- Uploadedneeds_column_mapping- Needs Column Mappingneeds_product_mapping- Needs Product Mappingimporting- Importingcompleted- Completedfailed- Failedcancelled- Cancelled
data_file_urlURL to download the uploaded file
data_file_nameOriginal filename of the uploaded file
Import statistics including customer, product, and order counts (available in needs_product_mapping, importing, or completed stages)
product_mappings_completeWhether all product mappings have been assigned to products (available in needs_product_mapping, importing, or completed stages)
createdmodifiednameName of the import (auto-generated from filename if not provided)
default_country_codeDefault country code for phone number normalization (e.g., +45 for Denmark). If not set, uses edition's default country code.
Update data import
Update data import (PATCH only)
path Parameters
idA unique value identifying this Data Import.
Update data import › Request Body
nameName of the import for easier identification
default_country_codeDefault country code for phone number normalization (e.g., '+45' for Denmark)
Update data import › Responses
nameName of the import for easier identification
default_country_codeDefault country code for phone number normalization (e.g., '+45' for Denmark)
Cancel data import
Cancel import and transition to cancelled stage. Cannot cancel completed or failed imports.
path Parameters
idA unique value identifying this Data Import.
Cancel data import › Responses
idUnique identifier for the import
Light readonly serializer for embedding in other resources.
stageCurrent import stage. uploaded: File uploaded, column extraction in progress. needs_column_mapping: Columns detected, awaiting column mapping configuration. needs_product_mapping: File parsed with mappings, product assignments needed. importing: Import actively running in background. completed: Import finished successfully. failed: Import encountered an error. cancelled: Import was cancelled by user.
uploaded- Uploadedneeds_column_mapping- Needs Column Mappingneeds_product_mapping- Needs Product Mappingimporting- Importingcompleted- Completedfailed- Failedcancelled- Cancelled
data_file_urlURL to download the uploaded file
data_file_nameOriginal filename of the uploaded file
Import statistics including customer, product, and order counts (available in needs_product_mapping, importing, or completed stages)
product_mappings_completeWhether all product mappings have been assigned to products (available in needs_product_mapping, importing, or completed stages)
createdmodifiednameName of the import (auto-generated from filename if not provided)
default_country_codeDefault country code for phone number normalization (e.g., +45 for Denmark). If not set, uses edition's default country code.
List column mappings
Get list of column mappings for this data import
path Parameters
idA unique value identifying this Data Import.
query Parameters
created_aftercreated_beforeedition_idOptional: Filter by specific edition. If not provided, shows imports from all accessible editions.
include_cancelledInclude cancelled imports (default: false)
orderingOrdering
created- Created-created- Created (descending)modified- Modified-modified- Modified (descending)stage- Stage-stage- Stage (descending)
pageA page number within the paginated result set.
page_sizeNumber of results to return per page (default: 100).
servicestageuploaded- Uploadedneeds_column_mapping- Needs Column Mappingneeds_product_mapping- Needs Product Mappingimporting- Importingcompleted- Completedfailed- Failedcancelled- Cancelled
List column mappings › Responses
countnextpreviousUpdate column mappings
Bulk update column mappings. Must be in needs_column_mapping or needs_product_mapping stage. If updating in needs_product_mapping stage, parsed data and product mappings will be cleared and stage will revert to needs_column_mapping.
path Parameters
idA unique value identifying this Data Import.
query Parameters
created_aftercreated_beforeedition_idOptional: Filter by specific edition. If not provided, shows imports from all accessible editions.
include_cancelledInclude cancelled imports (default: false)
orderingOrdering
created- Created-created- Created (descending)modified- Modified-modified- Modified (descending)stage- Stage-stage- Stage (descending)
pageA page number within the paginated result set.
page_sizeNumber of results to return per page (default: 100).
servicestageuploaded- Uploadedneeds_column_mapping- Needs Column Mappingneeds_product_mapping- Needs Product Mappingimporting- Importingcompleted- Completedfailed- Failedcancelled- Cancelled
Update column mappings › Request Body
List of column mappings to update
Update column mappings › Responses
countnextpreviousPreview import orders
Get paginated preview of orders. Available in needs_product_mapping, importing, or completed stages. Max 1000 per request.
path Parameters
idA unique value identifying this Data Import.
query Parameters
limitNumber of orders to return (max 1000)
offsetStarting position in the result set
Preview import orders › Responses
totalTotal number of orders in the import
limitNumber of orders in this response
offsetStarting position in the full result set
List of orders
order_metadata_keysList of all order metadata keys found across all orders
purchase_metadata_keysList of all purchase metadata keys found across all products
Process column mappings
Parse file using column mappings and create product mappings. Transitions to needs_product_mapping stage. Must be in needs_column_mapping stage.
path Parameters
idA unique value identifying this Data Import.
Process column mappings › Responses
idUnique identifier for the import
Light readonly serializer for embedding in other resources.
stageCurrent import stage. uploaded: File uploaded, column extraction in progress. needs_column_mapping: Columns detected, awaiting column mapping configuration. needs_product_mapping: File parsed with mappings, product assignments needed. importing: Import actively running in background. completed: Import finished successfully. failed: Import encountered an error. cancelled: Import was cancelled by user.
uploaded- Uploadedneeds_column_mapping- Needs Column Mappingneeds_product_mapping- Needs Product Mappingimporting- Importingcompleted- Completedfailed- Failedcancelled- Cancelled
data_file_urlURL to download the uploaded file
data_file_nameOriginal filename of the uploaded file
Import statistics including customer, product, and order counts (available in needs_product_mapping, importing, or completed stages)
product_mappings_completeWhether all product mappings have been assigned to products (available in needs_product_mapping, importing, or completed stages)
createdmodifiednameName of the import (auto-generated from filename if not provided)
default_country_codeDefault country code for phone number normalization (e.g., +45 for Denmark). If not set, uses edition's default country code.
List product mappings
Get list of product mappings for this data import
path Parameters
idA unique value identifying this Data Import.
query Parameters
created_aftercreated_beforeedition_idOptional: Filter by specific edition. If not provided, shows imports from all accessible editions.
include_cancelledInclude cancelled imports (default: false)
orderingOrdering
created- Created-created- Created (descending)modified- Modified-modified- Modified (descending)stage- Stage-stage- Stage (descending)
pageA page number within the paginated result set.
page_sizeNumber of results to return per page (default: 100).
servicestageuploaded- Uploadedneeds_column_mapping- Needs Column Mappingneeds_product_mapping- Needs Product Mappingimporting- Importingcompleted- Completedfailed- Failedcancelled- Cancelled
List product mappings › Responses
countnextpreviousUpdate product mappings
Bulk update product mappings. Must be in needs_product_mapping or importing stage.
path Parameters
idA unique value identifying this Data Import.
query Parameters
created_aftercreated_beforeedition_idOptional: Filter by specific edition. If not provided, shows imports from all accessible editions.
include_cancelledInclude cancelled imports (default: false)
orderingOrdering
created- Created-created- Created (descending)modified- Modified-modified- Modified (descending)stage- Stage-stage- Stage (descending)
pageA page number within the paginated result set.
page_sizeNumber of results to return per page (default: 100).
servicestageuploaded- Uploadedneeds_column_mapping- Needs Column Mappingneeds_product_mapping- Needs Product Mappingimporting- Importingcompleted- Completedfailed- Failedcancelled- Cancelled
Update product mappings › Request Body
List of product mappings to update
Update product mappings › Responses
countnextpreviousStart import process
Begin data import. Validates product mappings are complete. Transitions to importing stage. Must be in needs_product_mapping stage. Set ignore_warnings to proceed even when some products are unmapped (they will be skipped).
path Parameters
idA unique value identifying this Data Import.
query Parameters
ignore_warningsProceed with import even when some products are unmapped (they will be skipped)
Start import process › Responses
idUnique identifier for the import
Light readonly serializer for embedding in other resources.
stageCurrent import stage. uploaded: File uploaded, column extraction in progress. needs_column_mapping: Columns detected, awaiting column mapping configuration. needs_product_mapping: File parsed with mappings, product assignments needed. importing: Import actively running in background. completed: Import finished successfully. failed: Import encountered an error. cancelled: Import was cancelled by user.
uploaded- Uploadedneeds_column_mapping- Needs Column Mappingneeds_product_mapping- Needs Product Mappingimporting- Importingcompleted- Completedfailed- Failedcancelled- Cancelled
data_file_urlURL to download the uploaded file
data_file_nameOriginal filename of the uploaded file
Import statistics including customer, product, and order counts (available in needs_product_mapping, importing, or completed stages)
product_mappings_completeWhether all product mappings have been assigned to products (available in needs_product_mapping, importing, or completed stages)
createdmodifiednameName of the import (auto-generated from filename if not provided)
default_country_codeDefault country code for phone number normalization (e.g., +45 for Denmark). If not set, uses edition's default country code.
Import external orders
Import orders from an external system. Orders are queued for asynchronous processing. An ORDER_COMPLETED webhook event will be sent when each order's processing completes. Orders are deduplicated by order_id - duplicates are silently skipped and reported in response. Requires manager or admin role on the target edition.
Import external orders › Request Body
edition_idEdition API ID (edt_xxx)
List of orders to import
Import external orders › Responses
statusImport status
queued- queued
queued_countNumber of orders queued for processing
skipped_countNumber of orders skipped (duplicates)
skipped_order_idsList of order_ids that were skipped as duplicates

