Actions107
- Account Actions
- Container Actions
- Delivery Actions
- Notification Actions
- Order Actions
- Statistics Actions
- Voucher Actions
- WebHook Actions
Statistics → Create Draft Order ID
AI-generatedSummary
Builds an Orderly protobuf DraftOrderId object from a required ID string and an optional AccountId object, returning it as JSON for use by downstream Orderly actions.
Inputs
- ID (required) — UUID string for the draft order. The default expression checks the incoming item's
Id.Value,Id, oridfields, in that order. - Account ID JSON — Whole AccountId object to include with the draft order ID. Defaults from the incoming item's
AccountIdfield; leave empty to omit it.
Output shape
One n8n item per input item, with the built DraftOrderId JSON object in its json field.
The ID is trimmed and must be non-empty. An empty AccountId object is omitted. With Continue On Fail enabled, an item that errors is returned as
{ "error": "..." }; otherwise the node throws an item-scoped error.