TanqoryDocs

tanqoryExtPosSaleComplete

  • Mutation
  • Orders and payments

Completes a register sale: the order, its payments on the device, the stock off the location's shelf, the items handed over. Needs an open shift on the device and @idempotent(key:); a retry with the same key answers the first result.

Arguments

ArgumentTypeRequiredDefault
inputTanqoryExtPosSaleInput!Required

Returns

TanqoryExtPosSalePayload

FieldTypeDescription
changeMoneyV2

Cash to hand back: what was given in cash minus the cash share of the total.

orderTanqoryExtPosOrder

The order the sale became (sourceName pos, retailLocation = the register's location).

userErrors[TanqoryExtPosUserError!]!

Example request

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

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

curl
curl -X POST "https://api.tanqory.com/admin/2026-10/stores/$STORE_ID/graphql" \
  -H "Authorization: Bearer $TANQORY_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{"query":"mutation TanqoryExtPosSaleComplete($input: TanqoryExtPosSaleInput!) {\n  tanqoryExtPosSaleComplete(input: $input) {\n    change {\n      amount\n      currencyCode\n    }\n    order { id }\n    userErrors {\n      code\n      field\n      message\n    }\n  }\n}","variables":{"input":{"cart":{"lineItems":[],"pointOfSaleDeviceId":"gid://tanqory/Type/id"},"payments":[]}}}'

Built from commit c0b3fb3fdef7 · API version 2026-10