Skip to main content

Cart

Shopping cart entity for managing customer purchases.

Represents a shopping session containing products, customer information, addresses, payment preferences, and all data needed for order processing. Carts can be associated with different customer types and support various business models.

type Cart implements ICart {
cartId: String!
channelId: Int
shopId: Int! @deprecated
userId: Int @deprecated
contactId: Int
customerId: Int
companyId: Int
notes: String
reference: String
extra3: String
extra4: String
orderStatus: String
actionCode: String
vouchers: [CartVoucher!]
paymentData: CartPaymentData
postageData: CartPostageData
total: CartTotal
items: [CartMainItem!]
bonusItems: [CartBaseItem!]
unOrderableItems: [CartUnOrderableItem!]
invoiceAddress: CartAddress!
deliveryAddress: CartAddress!
taxLevels: [CartTaxLevel!]
payMethods: [CartPaymethod!]
carriers: [CartCarrier!]
createdAt: DateTime
lastModifiedAt: DateTime
createdBy: Int
lastModifiedBy: Int
appliedIncentives: [CartIncentive!]
valuePoints: Int
shippingMethods: [CartShippingMethod!]
language: String
purchaseAuthorizationRequired: Boolean!
status: CartStatus
shared: CartSharedAccess
attributes: [AttributeBulkCreateType!]
user: IBaseUser @deprecated
contact: Contact
customer: Customer
company: Company
}

Fields​

Cart.cartId ● String! non-null scalar​

Unique identifier for the shopping cart.

This UUID serves as the primary key and is used to reference the cart across all operations and API calls.

Cart.channelId ● Int scalar​

Sales channel identifier where the cart was created.

References the specific channel (webshop, mobile app, marketplace) that initiated this cart session, used for channel-specific pricing and business rules.

Cart.contactId ● Int scalar​

Contact identifier for B2B cart association.

Used in combination with companyId to identify the specific contact within a company who owns this cart. Enables contact-specific pricing and permissions.

Cart.customerId ● Int scalar​

Customer identifier for B2C cart association.

Links the cart to an individual customer account for personalized pricing, order history, and customer-specific features. Used for direct consumer sales.

Cart.companyId ● Int scalar​

Company identifier for B2B cart association.

Used in combination with contactId to establish the company context for this cart. Enables company-specific pricing, terms, and business rules.

Cart.notes ● String scalar​

Customer notes and special instructions for the cart.

Free-form text where customers can add delivery instructions, special requests, or other notes that should be considered during order processing.

Cart.reference ● String scalar​

Customer reference number or identifier.

Allows customers to associate their own reference numbers, project codes, or purchase order numbers with the cart for their internal tracking.

Cart.extra3 ● String scalar​

Custom metadata field for cart extensions.

Open field for storing additional cart information that can be used in custom implementations, integrations, or frontend customizations.

Cart.extra4 ● String scalar​

Additional custom metadata field for cart extensions.

Second open field for storing supplementary cart information for custom business logic, integrations, or specialized cart features.

Cart.orderStatus ● String scalar​

Order processing status after cart conversion.

Indicates the status of the order created from this cart. 'UNFINISHED' means the cart is awaiting payment completion from the payment service provider.

Cart.actionCode ● String scalar​

Applied promotional action code.

Contains the action code (discount, promotion, or special offer) that has been successfully applied to this cart. Only populated when a valid action code is active.

Cart.vouchers ● [CartVoucher!] list object​

Applied voucher codes and their details.

Collection of voucher codes that have been successfully applied to this cart, including their discount values and validity information.

Cart.paymentData ● CartPaymentData object​

Payment data for this cart.

Cart.postageData ● CartPostageData object​

Postage data for this cart.

Cart.total ● CartTotal object​

Totals for this cart.

Cart.items ● [CartMainItem!] list object​

Cart's main items

Cart.bonusItems ● [CartBaseItem!] list object​

Bonus items that are added to this cart through incentives.

Cart.unOrderableItems ● [CartUnOrderableItem!] list object​

Items that are added to the Cart, but can't be ordered.

Cart.invoiceAddress ● CartAddress! non-null object​

Address the invoice for the order should be sent to.

Cart.deliveryAddress ● CartAddress! non-null object​

Address the order should be sent to.

Cart.taxLevels ● [CartTaxLevel!] list object​

Amount of tax that applies to this cart per tax code

Cart.payMethods ● [CartPaymethod!] list object​

List of selectable paymethods for this cart and applied user.

Cart.carriers ● [CartCarrier!] list object​

List of selectable carriers for this cart.

Cart.createdAt ● DateTime scalar​

Date this cart has been created.

Cart.lastModifiedAt ● DateTime scalar​

Date this cart has been last updated.

Cart.createdBy ● Int scalar​

User which created the cart.

Cart.lastModifiedBy ● Int scalar​

User which last updated the cart.

Cart.appliedIncentives ● [CartIncentive!] list object​

All incentives that apply to this cart.

Cart.valuePoints ● Int scalar​

Total amount of value-points that apply to this cart

Cart.shippingMethods ● [CartShippingMethod!] list object​

All shipping methods available for this cart.

Cart.language ● String scalar​

Language of the order that will be created from this cart. Order confirmation email will be sent in that language.

Cart.purchaseAuthorizationRequired ● Boolean! non-null scalar​

Indicates whether authorization is required to finalize the cart

Cart.status ● CartStatus enum​

Indicates cart status

Cart.shared ● CartSharedAccess enum​

Shared access level. Controls whether other contacts of the same company can access this cart, and what they may do with it.

Cart.attributes ● [AttributeBulkCreateType!] list object​

Custom attributes for the order, captured on the cart and forwarded to the order on processing.

Cart.contact ● Contact object​

Tender Contact

Cart.customer ● Customer object​

Tender Customer

Cart.company ● Company object​

Tender Company

Show deprecated

Interfaces​

ICart interface​

Returned By​

cart query ● cartAcceptPurchaseAuthorizationRequest mutation ● cartAddActionCode mutation ● cartAddBundle mutation ● cartAddItem mutation ● cartDeleteItem mutation ● cartRemoveActionCode mutation ● cartRequestPurchaseAuthorization mutation ● cartSetContact mutation ● cartSetCustomer mutation ● cartSetUser mutation ● cartStart mutation ● cartUpdate mutation ● cartUpdateAddress mutation ● cartUpdateItem mutation

Member Of​

CartProcessResponse object ● CartResponse object