Adds a new Consignment to Checkout.
Perform the following two steps to define the fulfillment of the items in the cart.
Add a new Consignment to Checkout.
Send a POST request to /consignments with each shipping address, line item IDs, and quantities. Each address can have its own line item IDs.
Provide a full valid customer address before placing the order. If provided, the order placement will succeed.
As part of the request URL make sure to add include=consignments.availableShippingOptions to return the available shipping options based on the items, the address, and the shipping location. This will return availableShippingOptions in the response.
Required Fields:
shipping_address (deprecated) or addresslineItemsUpdate the Consignment with Shipping Options using the REST Storefront API, the REST Management API or the GraphQL Storefront API.
Create a new consignment object.
POST request to /consignments with line item IDs and quantities.pickupMethodId. This is the id of the Pickup Method provided in the response body of the Storefront Pickup Options API.pickupOptionlineItemsTo learn more about creating a Checkout Consignment, see the Carts and Checkouts Tutorial.
Notes
- 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