Skip to content
gist.link ↗

cart

Query Shop API — POST https://shop.api.gist.link/graphql

A cart by its opaque token. PUBLIC.

shop:query:cart

The calling IAM key must hold this permission (or a wildcard that covers it: shop:query:* or shop:*) and the access token must have been minted with audience=shop. See Permissions.

type Query {
cart(token: String!): Cart
}
Argument Type Required Description
token String! Yes —

Cart — see the Shop types reference.

Terminal window
curl https://shop.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "query Cart($token: String!) { cart(token: $token) { id uuid currency created_at updated_at } }",
"variables": {
"token": "example"
}
}
JSON