Skip to content
gist.link ↗

inventoryReceipts

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

Stock receiving history (newest first). ADMIN.

shop:query:inventoryReceipts

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 {
inventoryReceipts(first: Int, after: String): InventoryReceiptConnection!
}
Argument Type Required Description
first Int No —
after String No —

InventoryReceiptConnection! — 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 InventoryReceipts($first: Int, $after: String) { inventoryReceipts(first: $first, after: $after) { totalCount edges { cursor node { uuid reference source note created_at } } } }",
"variables": {
"first": 10,
"after": "cursor"
}
}
JSON