Skip to content
gist.link ↗

discounts

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

Discount codes for the organization. ADMIN.

shop:query:discounts

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 {
discounts: [Discount!]!
}

This query takes no arguments.

[Discount!]! — 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 Discounts { discounts { id uuid type currency created_at updated_at } }",
"variables": {}
}
JSON