Request
Use the result
amountNetCharge represents an amount on the Order rather than a completed payment.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
{
orders(status: { equals: [open, failed] }) {
id status createdOn closedOn amountNetCharge
student { fullName email }
offerSnapshot { name }
}
}
{
"data": {
"orders": [
{
"id": "55555555-5555-4555-8555-555555555555",
"status": "open",
"createdOn": 1788220800000,
"closedOn": null,
"amountNetCharge": 0,
"student": {
"fullName": "Jamie Smith",
"email": "student@example.com"
},
"offerSnapshot": {
"name": "Drawing Essentials"
}
}
]
}
}
Build a support list of purchases that have not succeeded.
{
orders(status: { equals: [open, failed] }) {
id status createdOn closedOn amountNetCharge
student { fullName email }
offerSnapshot { name }
}
}
{
"data": {
"orders": [
{
"id": "55555555-5555-4555-8555-555555555555",
"status": "open",
"createdOn": 1788220800000,
"closedOn": null,
"amountNetCharge": 0,
"student": {
"fullName": "Jamie Smith",
"email": "student@example.com"
},
"offerSnapshot": {
"name": "Drawing Essentials"
}
}
]
}
}
{
orders(status: { equals: [open, failed] }) {
id status createdOn closedOn amountNetCharge
student { fullName email }
offerSnapshot { name }
}
}
{
"data": {
"orders": [
{
"id": "55555555-5555-4555-8555-555555555555",
"status": "open",
"createdOn": 1788220800000,
"closedOn": null,
"amountNetCharge": 0,
"student": {
"fullName": "Jamie Smith",
"email": "student@example.com"
},
"offerSnapshot": {
"name": "Drawing Essentials"
}
}
]
}
}
const now = Date.now();
const rows = response.data.orders.map(order => ({
orderId: order.id, status: order.status, customer: order.student?.email ?? null,
offer: order.offerSnapshot.name,
hoursSinceCreated: Math.max(0, Math.floor((now - order.createdOn) / 3600000))
})).sort((a, b) => b.hoursSinceCreated - a.hoursSinceCreated);
amountNetCharge represents an amount on the Order rather than a completed payment.Was this page helpful?
