tanqoryExtPosOrder
- Query
- Orders and payments
One point of sale order the caller may act on at a register (as tanqoryExtPosOrders), or null.
Arguments
| Argument | Type | Required | Default |
|---|---|---|---|
id | ID! | Required |
Returns
TanqoryExtPosOrder A point of sale order as a register shows it: enough to reprint its receipt and take items back.
| Field | Type | Description |
|---|---|---|
cancelledAt | DateTime | |
customer | TanqoryExtPosCustomer | |
displayFinancialStatus | OrderDisplayFinancialStatus! | |
email | String | |
id | ID! | The order (gid://tanqory/Order/…). |
lineItems | [TanqoryExtPosOrderLine!]! | |
name | String! | The order's name, e.g. #1001. |
payments | [TanqoryExtPosOrderPayment!]! | |
processedAt | DateTime! | |
retailLocation | Location | Where it was sold. |
staffMemberName | String | Who sold it: the staff member's name. |
subtotal | MoneyV2! | |
taxesIncluded | Boolean! | |
total | MoneyV2! | |
totalDiscounts | MoneyV2! | |
totalRefunded | MoneyV2! | |
totalTax | MoneyV2! |
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":"query TanqoryExtPosOrder($id: ID!) {\n tanqoryExtPosOrder(id: $id) {\n cancelledAt\n customer { id }\n displayFinancialStatus\n email\n id\n lineItems { id }\n name\n payments { id }\n processedAt\n retailLocation { id }\n }\n}","variables":{"id":"gid://tanqory/Type/id"}}'Node.js
// Node.js 18 or later (fetch is built in). Save as request.mjs and run: node request.mjs
const query = `query TanqoryExtPosOrder(\$id: ID!) {
tanqoryExtPosOrder(id: \$id) {
cancelledAt
customer { id }
displayFinancialStatus
email
id
lineItems { id }
name
payments { id }
processedAt
retailLocation { id }
}
}`;
const variables = {
"id": "gid://tanqory/Type/id"
};
const res = await fetch(`https://api.tanqory.com/admin/2026-10/stores/${process.env.STORE_ID}/graphql`, {
method: 'POST',
headers: {
'Authorization': 'Bearer ' + process.env.TANQORY_ACCESS_TOKEN,
'Content-Type': 'application/json',
},
body: JSON.stringify({ query, variables }),
});
console.log(res.status, JSON.stringify(await res.json(), null, 2));Python
# Python 3, standard library only. Save as request.py and run: python3 request.py
import json, os, urllib.request
query = """query TanqoryExtPosOrder($id: ID!) {
tanqoryExtPosOrder(id: $id) {
cancelledAt
customer { id }
displayFinancialStatus
email
id
lineItems { id }
name
payments { id }
processedAt
retailLocation { id }
}
}"""
variables = json.loads("""{
"id": "gid://tanqory/Type/id"
}""")
req = urllib.request.Request(
"https://api.tanqory.com/admin/2026-10/stores/" + os.environ["STORE_ID"] + "/graphql",
data=json.dumps({"query": query, "variables": variables}).encode(),
headers={
"Authorization": "Bearer " + os.environ["TANQORY_ACCESS_TOKEN"],
"Content-Type": "application/json",
},
)
with urllib.request.urlopen(req) as res:
print(res.status, json.dumps(json.load(res), indent=2))