Cart
A user's cart containing items to be purchased
This page contains
Fields
| id: ID! | Unique identifier of the cart | 
| buyerUser: User! PREVIEW | User making the purchase | 
| buyerAccount: Account! PREVIEW | Account (company) associated with the purchasing user | 
| currency: Currency! | The currency in which the price is presented. | 
| status: CartStatus! | Current status of the cart (ACTIVE or FINISHED) | 
| locale: Locale! | Preferred locale for the response (e.g., en-US, de, en-AU) | 
| items: [CartItem!]! | List of items in the cart | 
| associations: [CartItemAssociation!]! | List of item associations in the cart | 
| customAttributes: CartCustomAttributes | Custom attributes associated with the cart | 
| pricingTotal: CartPricingTotal! | Pricing totals for all items in the cart | 
| createdOn: DateTime! | Timestamp when the cart was created | 
Mutations for Cart
| addItemsToCart | Creates a new cart or adds items to an existing active cart | 
| applyDiscountToCart | Applies a discount code to the cart | 
| removeDiscountFromCart | Removes a discount code from the cart | 
| removeItemsFromCart | Removes specified items from the cart | 
| updateCartCustomAttributes | Updates custom attributes of an existing cart | 
| updateCartItems | Updates items in an existing cart | 
Queries for Cart
| activeCart | Retrieves the active cart for the current user | 
| activeCartOfUser | Retrieves the active cart for a specific user |