Cart GraphQL
Served by CartModule on commercetools, CartModule on medusa and CartModule on sfcc.
Each operation has its own page with its arguments, an example and the engines that serve it. The types link to their fields on the cart types page.
Operations
| Operation | Description | Served by |
|---|---|---|
addressValidateQuery | Validate a shipping or billing address for correctness and formatting | commercetoolsmedusasfcc |
cartQuery | Get the current user's shopping cart with all line items and totals | commercetoolsmedusasfcc |
cartBundleAddMutation | Add a main product and the extras chosen with it as a bundle, in one call. | commercetoolsmedusasfcc |
cartChangesAcknowledgeMutation | The buyer has seen the cart's changes; they are not listed again | commercetoolsmedusasfcc |
cartCreateMutation | Create an empty cart. | commercetoolsmedusasfcc |
cartDiscountCodeAddMutation | Apply a discount code to the cart | commercetoolsmedusasfcc |
cartDiscountCodeRemoveMutation | Remove a discount code from the cart | commercetoolsmedusasfcc |
cartLineItemsAddMutation | Add line items to cart or create a new cart | commercetoolsmedusasfcc |
cartLineItemsRemoveMutation | Remove line items from the cart | commercetoolsmedusasfcc |
cartLineItemsUpdateMutation | Update quantities of existing line items | commercetoolsmedusasfcc |
cartPaymentRemoveMutation | Remove a payment that has only reserved money from the cart, such as a gift card, and give the reservation back. | commercetoolsmedusasfcc |
cartSetDeliveryRemarksMutation | Record a note for whoever delivers the goods. | commercetoolsmedusasfcc |
cartSetPurchaseOrderNumberMutation | Record the buyer's own reference for this purchase, usually a purchase order number. | commercetoolsmedusasfcc |
cartSetVatNumberMutation | Record the VAT number of the company the buyer orders for, with its country prefix, such as DE123456789. | commercetoolsmedusasfcc |
cartUpdateMutation | Update cart with various actions | commercetoolsmedusasfcc |
Types
| Type | Description |
|---|---|
AddressSuggestionObject | |
AddressValidationResultObject | |
AppliedDiscountObject | A discount applied to a cart or one of its lines, by the name it is known by. |
CartObject | Shopping cart containing line items and checkout information |
CartAddOnInputInput object | An add-on to add with a line. |
CartChangesAcknowledgeErrorUnion | |
CartChangesAcknowledgeResponseObject | Response for acknowledging a cart's changes |
CartCreateErrorUnion | Error union for cart create |
CartCreateResponseObject | Response for creating a cart |
CartDiscountCodeObject | A CartDiscountCode represents a discount that is applied to the cart |
CartDiscountCodeAddErrorUnion | Error union for cart discount code add |
CartDiscountCodeAddResponseObject | Response for adding discount code to cart |
CartDiscountCodeRemoveErrorUnion | Error union for cart discount code remove |
CartDiscountCodeRemoveResponseObject | Response for removing discount code from cart |
CartFreeDeliveryObject | How far a cart is from free delivery |
CartLineChangeObject | One change to a line since the buyer last acknowledged the cart |
CartLineChangeTypeEnum | What happened to a line since the buyer last acknowledged the cart |
CartLineItemInterface | Interface for cart line items |
CartLineItemAddFailureTypeEnum | Why a requested line was not added. |
CartLineItemAddInputInput object | Input for creating a new line item |
CartLineItemAddResultObject | The outcome for one requested line. |
CartLineItemBackorderObject | The part of a cart line that cannot ship now. |
CartLineItemRoleTypeEnum | What a line is to another line in the cart. |
CartLineItemsAddErrorUnion | Error union for cart line items add |
CartLineItemsAddResponseObject | Response for adding line items to cart |
CartLineItemsRemoveErrorUnion | Error union for cart line items remove |
CartLineItemsRemoveResponseObject | Response for removing line items from cart |
CartLineItemsUpdateErrorUnion | Error union for cart line items update |
CartLineItemsUpdateResponseObject | Response for updating line items in cart |
CartLineItemUpdateFailureTypeEnum | Why a line's quantity was not changed. |
CartLineItemUpdateInputInput object | Input for updating an existing line item |
CartLineItemUpdateResultObject | The outcome for one requested quantity change. |
CartLineQuantityLimitTypeEnum | What limits the quantity of a line. |
CartLineQuantityRuleObject | How many of a line can be ordered. |
CartMinimumOrderObject | How far a business unit's cart is from the unit's minimum order value |
CartPaymentObject | A payment on a cart, as far as a buyer needs to see it. |
CartPaymentRemoveErrorUnion | |
CartPaymentRemoveResponseObject | Response for removing a payment from the cart |
CartPaymentStatusTypeEnum | How far a payment on a cart has got. |
CartSetBillingAddressInputInput object | Input for setting billing address on cart |
CartSetCustomerEmailInputInput object | Input for setting customer email on cart |
CartSetDeliveryRemarksErrorUnion | Error union for recording a delivery note |
CartSetDeliveryRemarksResponseObject | Response for recording a delivery note on a cart |
CartSetPaymentMethodInputInput object | Input for setting payment method on cart |
CartSetPurchaseOrderNumberErrorUnion | Error union for recording a purchase reference |
CartSetPurchaseOrderNumberResponseObject | Response for recording the buyer's purchase reference on a cart |
CartSetShippingAddressInputInput object | Input for setting shipping address on cart |
CartSetShippingMethodInputInput object | Input for setting shipping method on cart |
CartSetVatNumberErrorUnion | Error union for recording a VAT number |
CartSetVatNumberResponseObject | Response for recording a VAT number on a cart |
CartSingleLineItemObject | Individual line item in a cart |
CartUpdateActionInput object | Union of all cart update actions |
CartUpdateErrorUnion | Error union for cart update |
CartUpdateResponseObject | Response for cart update operations |
ShippingMethodObject | A way the cart can be shipped, at the price it would be charged. |
ShippingMethodInputInput object | Input for selecting a shipping method |

