Skip to main content

MobileCart

One shared cart per buyer (not per delivery address — the address is chosen at placeOrder). The same cart the customer portal reads and writes (one per branch in branch mode).

type MobileCart {
addressId: ID!
directions: String
id: ID!
itemCount: Float!
items: [MobileCartItem!]!
subtotal: Float!
updatedAt: DateTime!
}

Fields​

MobileCart.addressId ● ID! non-null scalar​

Deprecated: always an empty string. The cart is no longer address-scoped; kept only to avoid a breaking schema field removal.

MobileCart.directions ● String scalar​

Free-text delivery instructions, max 200 chars.

MobileCart.id ● ID! non-null scalar​

The unique ID of this record.

MobileCart.itemCount ● Float! non-null scalar​

Sum of the line quantities (fractional when a line is a fractional weight/volume pack).

MobileCart.items ● [MobileCartItem!]! non-null object​

The items in the cart.

MobileCart.subtotal ● Float! non-null scalar​

The cart amount before tax and delivery.

MobileCart.updatedAt ● DateTime! non-null scalar​

When the record was last changed.

Returned By​

mobileAddToCart mutation ● mobileApplyCartChanges mutation ● mobileCart query ● mobileClearCart mutation ● mobileRemoveCartItem mutation ● mobileUpdateCartItem mutation ● setCartDirections mutation

Member Of​

MobileAddListToCartResult object ● MobileReorderResult object