Enumeration ShopperOrdersMutations

Mutations available for Shopper Orders

Enumeration Members

CreateOrder: "createOrder"

Submits an order based on a prepared basket. The only considered value from the request body is basketId.

Returns

A TanStack Query mutation hook for interacting with the Shopper Orders createOrder endpoint.

CreatePaymentInstrumentForOrder: "createPaymentInstrumentForOrder"

Adds a payment instrument to an order.

Details:

The payment instrument is added with the provided details. The payment method must be applicable for the order see GET /baskets/{basketId}/payment-methods, if the payment method is 'CREDIT_CARD' a paymentCard must be specified in the request.

Returns

A TanStack Query mutation hook for interacting with the Shopper Orders createPaymentInstrumentForOrder endpoint.

RemovePaymentInstrumentFromOrder: "removePaymentInstrumentFromOrder"

Removes a payment instrument of an order.

Returns

A TanStack Query mutation hook for interacting with the Shopper Orders removePaymentInstrumentFromOrder endpoint.

UpdatePaymentInstrumentForOrder: "updatePaymentInstrumentForOrder"

Updates a payment instrument of an order.

Returns

A TanStack Query mutation hook for interacting with the Shopper Orders updatePaymentInstrumentForOrder endpoint.