Imports
The import object and the allowed CRUD operations on the related resource endpoint
Imports let you asynchronously import SKUs, prices, stock items, and many other resources into your organization's environment. At the moment, two types of format are available when importing resources: JSON (default) and CSV.
Imports can be managed via API or using the related back-office app in the Apps section of the admin dashboard.
Each element of the inputs list contains the resource's attributes and relationships. If the resource type you're importing is associated with a parent resource (e.g. stock_items under a stock_location), set the parent_resource_id attribute to specify it.
After creating an import, you can poll the status attribute to check the import progress until it's completed. Then, you can download the imported data using the link exposed in the attachment_url attribute. Import errors and warnings (if any) are reported through the errors_count, errors_log, warnings_count, and warnings_log attributes. By default, an import is interrupted once errors exceed 10% of the total records — set the skip_errors attribute to true to disable this safeguard and keep processing all records regardless of the error rate.
Last updated