TanqoryDocs

cart

  • Query
  • Storefront

Returns a cart by its id, including its lines, costs, buyer and delivery details, or null when the cart cannot be found.

Arguments

ArgumentTypeRequiredDefault
idID!Required

Returns

Cart A buyer's cart: its lines, costs, buyer identity, delivery details, discount and gift card codes, attributes and note, and the checkoutUrl to pay for it.

FieldTypeDescription
appliedGiftCards[AppliedGiftCard!]!
attributeAttribute
attributes[Attribute!]!
buyerIdentityCartBuyerIdentity!
checkoutUrlURL!
costCartCost!
createdAtDateTime!
deliveryCartDelivery!
deliveryGroupsCartDeliveryGroupConnection!
discountAllocations[CartDiscountAllocation!]!

Deprecated

discountApplications[BaseCartDiscountApplication!]!
discountCodes[CartDiscountCode!]!
estimatedCostCartEstimatedCost!

Deprecated

idID!
linesBaseCartLineConnection!
metafieldMetafield
metafields[Metafield]!
noteString
totalQuantityInt!
updatedAtDateTime!
tanqoryExtTipMoneyV2

The buyer's tip set with tanqoryExtCartTipUpdate, in the cart's currency; null when there is none. Needs the cart's key (null without it). Private token only.

tanqoryExtDutiesEstimateTanqoryExtDutiesEstimate

The duties and import taxes of the cart's destination, in the cart's currency; null when none applies (a domestic or intra-EU order, duties not turned on for the destination's market, no goods that ship, a value within the de minimis, or no figure from the merchant's rates or the provider yet). incoterm says what it is: DAP, an estimate due on delivery, never in cost.totalAmount, cost.checkoutChargeAmount or the payment amount; DDP, charged at checkout (collected: in the total, also as cost.totalDutyAmount). Needs the cart's key (null without it). Private token only.

tanqoryExtDutiesTermsTanqoryExtDutiesIncoterm

The terms the order is sold on when its destination's market is in "Collect in" (duties turned on, a destination across a customs border): DDP when checkout charges the duties and import taxes or the prices include them; DAP when the buyer may pay them on delivery (a DAP market, or a DDP market for which no amount could be calculated: that order is sold DAP). Null otherwise. Needs the cart's key (null without it). Private token only.

tanqoryExtTaxTanqoryExtCartTax

The checkout's tax for the selected delivery address, as the order will book it; null before an address is selected. Needs the cart's key (null without it). Private token only.

tanqoryExtAppliedStoreCreditTanqoryExtAppliedStoreCredit

What the checkout takes from the signed-in buyer's store credit now (after the gift cards, at most the amount asked for with tanqoryExtCheckoutStoreCreditApply, the balance and what is left to pay); null when none applies. Already deducted from cost.checkoutChargeAmount. Private token only.

Example request

A starting point: required arguments as variables and a few fields of the result. Replace the placeholders.

Set STORE_ID and TANQORY_STOREFRONT_TOKEN in your environment first (Make your first API call).

curl
curl -X POST "https://$STORE_HOST/api/v1/stores/$STORE_ID/2026-10/graphql" \
  -H "X-Tanqory-Storefront-Access-Token: $TANQORY_STOREFRONT_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{"query":"query Cart($id: ID!) {\n  cart(id: $id) {\n    appliedGiftCards { id }\n    checkoutUrl\n    createdAt\n    id\n    note\n    totalQuantity\n    updatedAt\n    tanqoryExtTip {\n      amount\n      currencyCode\n    }\n    tanqoryExtDutiesTerms\n  }\n}","variables":{"id":"gid://tanqory/Type/id"}}'

Built from commit c0b3fb3fdef7 · API version 2026-10