Skip to main content
Anchor to orderEditAddShippingLine

orderEditAddShippingLine

mutation

Requires write_order_edits access scope.

Adds a custom shipping line to an Order during an edit session. Specify the shipping title and price to create a new ShippingLine.

Returns a CalculatedOrder showing the order with edits applied but not yet saved. To save your changes, use the orderEditCommit mutation.

Learn more about editing existing orders.

•ID!
required

The ID of the calculated order to edit.

•OrderEditAddShippingLineInput!
required

The shipping line to be added.


Was this section helpful?

Anchor to OrderEditAddShippingLinePayload returnsOrderEditAddShippingLinePayload returns

•CalculatedOrder

The calculated order with the edits applied but not saved.

Anchor to calculatedShippingLinecalculatedShippingLine
•CalculatedShippingLine

The calculated shipping line that's added during this order edit.

•[OrderEditAddShippingLineUserError!]!
non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?