commercetools icon

commercetools

Interact with the commercetools API. Operations are auto-generated from the official Postman collection.

Actions671

Order → Create Order by Import

AI-generated

Summary

Create a new order by importing it into commercetools with specified order details including order number, total price, line items, and custom line items.

Inputs

  • Order Number (required) — Set the unique identifier for the imported order.
  • Total Price › Cent Amount — Specify the total price of the order as a cent amount.
  • Total Price › Currency Code — Define the currency code for the total price, e.g., 'USD'.
  • Line Items (required) — Provide a JSON array defining the standard line items of the order.
  • Custom Line Items (required) — Provide a JSON array specifying any custom line items included in the order.

Output shape

a single JSON object representing the created order as returned by the commercetools API

The operation returns the full details of the newly imported order in JSON format. Errors will throw node execution errors unless the workflow is set to continue on fail.

Examples

Example 1: Create a new order by import

Specify a unique order number, total price details (amount in cents and currency code), and lists for line items and custom line items in JSON format.

Links

Discussion