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:
- GraphQL
- cURL
query MobileCartBill {
mobileCartBill {
vatName
belowMov
cartId
customerTier
deliveryFee
deliveryOptionId
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query MobileCartBill {\n mobileCartBill {\n vatName\n belowMov\n cartId\n customerTier\n deliveryFee\n deliveryOptionId\n }\n}"
}
EOF
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.