Anchor to DraftOrderCalculatePayloadDraft
payloadDraft Order Calculate Payload
Return type for mutation.
Anchor to FieldsFields
- Anchor to calculatedDraftOrdercalculated•Calculated
Draft Order Draft Order The calculated properties for a draft order.
- Anchor to userErrorsuser•[User
Errors Error!]! non-null The list of errors that occurred from executing the mutation.
Was this section helpful?
Anchor to Mutations with this payloadMutations with this payload
- •mutation
Calculates the properties of a
without creating it. Returns pricing information includingtotals, shipping charges, applicable discounts, and tax calculations based on the providedCustomerandinformation.Use this mutation to preview total taxes and prices before creating a draft order. It's particularly useful when working with B2B
or when you need to determine costs without committing to a draft order. Learn more about calculating draft orders for B2B purchasing entities.- Anchor to inputinput•Draft
Order Input! required The fields for the draft order.
Arguments
Was this section helpful?