Calculates the properties of a draft order. Useful for determining information such as total taxes or price without actually creating a draft order.
write_draft_orders access scope.
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
The fields for the draft order.
The discount that will be applied to the draft order. A draft order line item can have one discount. A draft order can also have one order-level discount.
The mailing address associated with the payment method.
Extra information added to the customer.
Customer associated with the draft order.
The customer's email address.
Product variant line item or custom line item associated to the draft order. Each draft order must include at least one line item.
The localization extensions attached to the draft order. For example, Tax IDs.
Metafields attached to the draft order.
The text of an optional note that a shop owner can attach to the draft order.
The fields used to create payment terms.
The private metafields attached to the draft order.
The mailing address to where the order will be shipped.