Create Order

magento.create_order
ActionBusiness appsconnection required

Calls the Magento API with the connection's credentials.

Save a sales order from a fully built order entity. This is the raw repository write, so the entity must already carry its items, addresses and totals.

Connection

Required
Yes — the node will not save without one
Auth type
Bearer token
Providers
Magento
Secret shape
the integration access token, or {"access_token": "…"}
Config it needs
base_url, store_code
Resolved by
config.connection_id, else node.connection_id

Configuration

1 field, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
entity
The complete order entity to save, as Magento's OrderInterface describes it.
objectYes—≥ 1 characters—

Output

One shape.

result

FieldTypeExample
entity_id
The order's entity id, which every order route takes.
number—
increment_id
The human-readable order number shown to the customer.
string—
state
The order's state, for example 'new', 'processing' or 'complete'.
string—
status
The order's status label within that state.
string—
customer_email
The email address the order was placed with.
string—
customer_id
The account that placed the order, absent for a guest.
number—
grand_total
The order total in the order's currency.
number—
order_currency_code
The currency the order was placed in.
string—
created_at
When the order was placed.
string—
items
The order's line items.
array—
{
  "created_at": "",
  "customer_email": "",
  "customer_id": 0,
  "entity_id": 0,
  "grand_total": 0,
  "increment_id": "",
  "items": [],
  "order_currency_code": "",
  "state": "",
  "status": ""
}

See Create Order run in a workflow.

In a technical demo we add the Magento connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.