Skip to main content

mobileCartBill

Requires a customer (portal or buyer app) session.

Returns the bill (subtotal + delivery + VAT + total) for the buyer's shared cart.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

query MobileCartBill {
mobileCartBill {
vatName
belowMov
cartId
customerTier
deliveryFee
deliveryOptionId
}
}

Response:

{
"data": {
"mobileCartBill": {
"vatName": "string",
"belowMov": true,
"cartId": "id",
"customerTier": "string",
"deliveryFee": 0,
"deliveryOptionId": "id"
}
}
}
mobileCartBill(
deliveryOptionId: ID
includePrintedInvoice: Boolean = false
): MobileCartBill!

Arguments​

mobileCartBill.deliveryOptionId ● ID scalar​

the chosen live delivery option (mobileDeliveryOptions). Without it a live-quote store returns deliveryFee null and deliverySelectionRequired true.

mobileCartBill.includePrintedInvoice ● Boolean scalar​

Ignored. The printed-invoice fee was removed; kept so existing app builds that send it keep working.

Type​

MobileCartBill object​

Itemised bill snapshot for the cart. v1 applies 5% Qatar VAT.