Updates an existing consignment. An update is either one of the following:
For this type of update, the payload is the same as when creating a new consignment. Update each Consignment shippingOptionId (shipping address and line items) with the availableShippingOption > id from the POST /consignment response.
Note:
Updating a consignment could invalidate the value for selectedShippingOption and selectedPickupOption.
Before placing an order, each consignment must have a selectedShippingOption or a selectedPickupOption.
If the consignment already has a pick-up option selected and a shipping option is provided, the pick-up option will be deselected and the shipping option will be selected instead (and vice versa). The PUT request will fail if it contains a shipping option ID and a pickup option ID.
Required Fields:
shippingOptionId or pickupOptionIdlineItemsTo learn more about creating a Checkout Consignment see Checkout Consignment API.
Notes
- You cannot pass both an
addressand ashippingOptionIdbecause the shipping option may not be available for the new address- Substitute your storefront domain for
yourstore.example.com.- The Send a Test Request feature is not currently supported for this endpoint.
- Please note that this API endpoint is not concurrent safe, meaning multiple simultaneous requests could result in unexpected and inconsistent results.
- This endpoint requires using Stencil CLI, a local session, and a CSRF token to work.
The cart version that you expect to apply the updates. If the provided version doesn’t match the current cart version, you will receive a conflict error. This field is optional; if not provided, optimistic concurrency control will not apply.
A cart contains a collection of items, prices, discounts, etc. It does not contain customer-related data.
Shopperʼs message provided as details for the order to be created from this cart
Applied gift certificate (as a payment method).
true value indicates StoreCredit has been applied.
grandTotal subtract the store-credit amount
Subtotal of the checkout before applying item-level discounts. Tax inclusive based on the store settings.
The MIME type of the response body.
cart.lineItems.physicalItems.options - physical optionscart.lineItems.digitalItems.options - digital optionscart.lineItems.physicalItems.categoryNames - physical categoriescart.lineItems.digitalItems.categoryNames - digital categoriescart.lineItems.customItems.categoryNames - custom categoriescustomer - customercustomer.customerGroup - customer grouppayments - paymentspromotions - promotionsconsignments.availableShippingOptions - shipping optionsconsignments.availablePickupOptions - pickup options