giveBack
query · in the family Billing and the wallet
What it does
Your Stripe give-back standing — the loyalty clock, the tier you have earned, and every month the program has given back, with the volume and rate on every row.
The caller group's Stripe revshare give-back standing. The report = the derived tenure clock + the earned tier + the next rung + the earned USD ledger (newest-first + bounded — the affiliateAccruals page shape). Self-group BY construction (no target arg). Requires authentication. Template class A16_BILLING (hand-derived v91).
Before you call
A bearer session from an API key (see Authentication and key hygiene) or a signed-in user.
Capability area: Billing and the wallet — Your platform bill, token purchases and the usage and cost reads.
Roles that may call it:
- Owner
- Manager
- Associate Manager
- An API key whose scope allows
api:giveBack
What happens
Reads only.
Arguments
Returns
GiveBackReport GiveBackReport! — The caller group's give-back standing (the program's merchant-visible transparency surface): the derived tenure clock, the earned tier, the next rung, and the earned ledger. Figures are as of computedThroughMonth — the last closed month the billing engine decided.
Example request
query ExampleGiveBack($limit: Int) {
giveBack(limit: $limit) {
convertedFrom
revokedAt
revokedReason
tenureMonths
effectiveTenureMonths
basis
tierBp
nextTierAtMonths
nextTierBp
computedThroughMonth
}
}Variables:
{
"limit": 1
}Example response
{
"data": {
"giveBack": {
"convertedFrom": "<converted from>",
"revokedAt": "2027-01-31T00:00:00.000Z",
"revokedReason": "<revoked reason>",
"tenureMonths": 1,
"effectiveTenureMonths": 1,
"basis": "<basis>",
"tierBp": 1,
"nextTierAtMonths": 1,
"nextTierBp": 1,
"computedThroughMonth": "<computed through month>"
}
},
"extensions": {
"at": {
"callId": "01EXAMPLE-CALL-ID",
"version": {
"requested": null,
"serviced": {
"name": "genesis",
"number": 0
}
}
}
}
}Errors this call can answer
VALIDATION/INVALID— Something in the request is not valid. Retry: no. (VALIDATION)AUTHN/REQUIRED— Sign in to do this. Retry: no. (AUTHN)AUTHZ/FORBIDDEN— Your role does not allow this action. Retry: no. (AUTHZ)RATE_LIMIT/THROTTLED— Too many requests in a short time. Retry: yes. (RATE_LIMIT)NOT_FOUND/*— That record could not be found. Retry: no. (NOT_FOUND)