Import Sales Order
JSON-REST endpoint for importing sales order data from the webshop.
Purpose
This endpoint imports webshop order data into the Business Central import container.
Endpoint
- Method:
POST - URL pattern:
http://<server>:<odata-port>/<service-tier>/api/BEterna/Import/v2.0/companies(<company-system-id>)/orders?$filter=webshopChannelCode eq '<webshop-channel-code>'
Required Parameters
webshopChannelCodefilter- JSON payload with order header and at least one
orderLinesentry
Payload Core Areas
- Order header: channel, order ID, date, totals, currency, customer and contact references
- Addresses: sell-to, bill-to, and ship-to
- Payment and shipping information
- Line data (
orderLines) including type, item, price, quantity, and optional metadata
Processing Note
- The API call primarily performs syntactic import into the container.
- Semantic validation and document creation run in downstream processing.
Result
- The order is available as an imported record for further BC processing.