Order Import Endpoint
The endpoint offers a simplified way of importing orders into the shop, e.g. to transfer old orders from an ERP system.
The Endpoint isn't available yet and will be released with the version 0.9.5 of the B2BSellers Core Plugin
Useful Links
Integration of ERP orders to Shopware 6Changing default configuration options
To change any default configuration option, you have to make the change in the b2b_sellers_core.yaml file. You can place it in your Shopware installation under config/packages/.
The default_sales_channel_id isn't set out of the box and has to be provided in every order if not configured. The default_currency_id isn't set out of the box and the currency id of the Shopware defaults (Defaults::CURRENCY) is used when not provided. The default_language_id isn't set out of the box and the language id of the Shopware defaults (Defaults::LANGUAGE_SYSTEM) is used when not provided.
The default Ids can be overwritten by providing them in the order data
Importing orders
POST
https://app.com/api/_action/order-import
Simplified endpoint for importing orders to Shopware
Request Body
order*
array
Endpoint request body
Minimal example:
Request body explanation
Price
Taxes are calculated automatically. The overall order price is being calculated by the prices from line items and shipping costs.
Customer
The endpoint provides serveral options for the order customer data
The orderCustomer array can be generated by the endpoint when the customerId or the customerNumber are given in the "customer" field.
The orderCustomer can be provided normally and the customerId can't be fetched by providing the customerNumber inside of the orderCustomer array in the "customer" field.
Salutations
Salutations are accepted as Id or salutation key (e.g. mr,...)
States
States for order, delivery and transaction have to be the technical name of the state
Last updated