checkoutDeliveryMethodUpdate Mutation
Updates the delivery method (shipping method or pick up point) of the checkout. Updates the checkout shipping_address for click and collect delivery for a warehouse address.
Triggers the following webhook events:
- SHIPPING_LIST_METHODS_FOR_CHECKOUT (sync): Triggered when updating the checkout delivery method with the external one.
- CHECKOUT_FILTER_SHIPPING_METHODS (sync): Optionally triggered when cached filtered shipping methods are invalid.
- CHECKOUT_UPDATED (async): A checkout was updated.
Applied directives
@webhookEventsInfo(asyncEvents: [CHECKOUT_UPDATED], syncEvents: [SHIPPING_LIST_METHODS_FOR_CHECKOUT, CHECKOUT_FILTER_SHIPPING_METHODS])
checkoutDeliveryMethodUpdate(deliveryMethodId: ID, id: ID, token: UUID): CheckoutDeliveryMethodUpdate
Returns
Show return type
type CheckoutDeliveryMethodUpdate {
checkout: Checkout
errors: [CheckoutError!]!
}Arguments
deliveryMethodId
deliveryMethodId · ID
Delivery Method ID (Warehouse ID or ShippingMethod ID or CheckoutDelivery ID).
DEPRECATED: Usage of ShippingMethod ID is deprecated. Use CheckoutDelivery ID instead.
id
id · ID
The checkout’s ID.
token
token · UUID
Checkout token.
Schema: Saleor 3.23.43. Download SDL.