Skip to main content
The import/ endpoint provides an interface for importing data into the system. The API can be used to start, pause, resume, cancel, and query the current progress of import processes.

Supported methods

List of all supported methods.

General

Supported services and formats

The import/ endpoint provides an interface for importing data into the system. The API can be used to start, pause, resume, cancel, and query the current progress of import processes. The import function is currently supported for the following services:
The zip format is only available for the order service. The ZIP file may only contain orders from WEBSALE 8 as individual .ord files, one file per order. Information on transferring orders from WEBSALE 8 can be found under Data migration.

Methods for data import

GET import/{service}/status

This endpoint returns the current status of a running or most recently executed import process for a given service (e.g. newsletterSubscriber). The response contains detailed information about the progress, processed and erroneous data records, and the start time. If available, the end time of the import is also shown. The status of an import process is represented by numeric values:
0 = READY
1 = STARTING
2 = RUNNING
3 = PAUSED
4 = CANCELED
5 = FINISHED
6 = ERROR
These status values provide information about the current progress or result of an import.
For the newsletterSubscriber service, the shop sends the double opt-in emails to new subscribers at the end of the import, provided the importSubscribeDoubleOptIn option in newsletter.newsletter is enabled. This process can take up to 10 minutes. If it fails, the import ends with status 6 = ERROR. lastError then contains the text Failed to send double opt-in emails, and an internal error is reported in globalError.
To access the services, you need the appropriate permissions or an administrator account with full access. For most services, you need write and create permissions. For voucher, voucherTemplate, voucherPreset, inquiry, and order, write permission is sufficient. For product, write and create permissions for product variants are additionally required. For adminUser, an administrator account with full access is required. The same permissions apply to starting, pausing, resuming, and canceling an import.

Example

Response

Error codes

POST import/{service}/start

This endpoint starts the import process for a given service. The data to be uploaded (e.g. as JSON or CSV) is passed in the request body. If an import process is already running for the service, it is automatically canceled before the new import is started. The response immediately returns the current status of the started import. It contains information about progress, the number of processed and erroneous data records, and start/end times. The status value is returned as a numeric code according to the import definition. The required permissions correspond to those of the status endpoint (see the section on GET import/{service}/status).

Query parameters

Example

Request body

Response

Error codes

POST import/{service}/pause

This endpoint pauses a running import process for a given service. The response contains the current status of the paused process, including processed data records, progress, and any errors. After a successful pause, the status value is set to PAUSED (3). The required permissions correspond to those of the status endpoint (see the section on GET import/{service}/status).

Example

Response

Error codes

POST import/{service}/resume

This endpoint resumes a paused import process for a given service. The response contains the current status of the resumed process, including processed data records, progress, and any errors. The required permissions correspond to those of the status endpoint (see the section on GET import/{service}/status).

Example

Response

Error codes

DELETE import/{service}/cancel

This endpoint cancels a running import process for a given service. The response contains the current status of the canceled process, including processed data records, progress, and any errors. After a successful cancel, the status value is set to CANCELED (4). The required permissions correspond to those of the status endpoint (see the section on GET import/{service}/status).

Example

Response

Error codes

Support

Bei technischen Fragen und Hilfestellungen ist unser Support-Team für Sie erreichbar: Zum Kundenportal Bitte senden Sie uns eine möglichst detaillierte Beschreibung sowie Screenshots, Requests/Antworten, damit wir Ihre Anfrage zeitnah und zielführend beantworten können.