List your statements
One statement for each closed UTC day from `from` to `to`, both included, the newest first, also the days with no line. A statement sums the lines recorded on its day. A day is closed at 00:01 UTC of the next day. With neither end: the last 30 closed days. With `from` only: from `from` to the last closed day. With `to` only: the 30 days that end on `to`. Errors: - 400 `VALIDATION_FAILED`: `from` is after `to`, or the range has more than 31 days. - 409 `PARTNER_STATEMENT_DAY_NOT_CLOSED`: a day of the range is not closed yet.
One statement for each closed UTC day from from to to, both included, the newest first, also the days with no line. A statement sums the lines recorded on its day. A day is closed at 00:01 UTC of the next day. With neither end: the last 30 closed days. With from only: from from to the last closed day. With to only: the 30 days that end on to.
Errors:
- 400
VALIDATION_FAILED:fromis afterto, or the range has more than 31 days. - 409
PARTNER_STATEMENT_DAY_NOT_CLOSED: a day of the range is not closed yet.
partnerApiKeyAuthorizationBearer <token>The partner's API key.
from?stringThe first day, such as "2026-11-01". Alone: from this day to the last closed day
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$dateto?stringThe last day, such as "2026-11-23". It must be closed. Alone: the 30 days that end on it
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$dateapplication/json- response
data*array<>curl -X GET 'https://api-stg.grailnetwork.com/partner/statements'{ "data": [ { "day": "2019-08-24", "lineCount": 0, "salesCount": 0, "salesTotal": { "amountAtomic": "string", "currency": "string" }, "poolSharesCount": 0, "poolSharesTotal": { "amountAtomic": "string", "currency": "string" }, "total": { "amountAtomic": "string", "currency": "string" } } ]}List your report lines GET
What you earned, line by line, sorted by the time when Grail Network recorded each line (`recordedAt`), the oldest first. A line never changes and is never deleted. Two kinds of line: - `sale`: a card of yours was sold. The line comes when the buyer keeps the card: when the Buyback offer ends (`buybackOfferEndsAt` of the card), or when the card leaves the warehouse to its buyer. `amount` is the price of the card when the buyer got it. - `pool_share`: a share of the daily pool for a card of yours that was on sale. The day's pool is made once, usually at 01:00 UTC of the next day; then the webhook `pool.created` names the day (`poolDay`). Only lines older than 60 seconds are listed, so a line never appears behind your cursor. Credit each line once by its `id`, and store `nextCursor` after you credited the whole page. How to read the list to its end: - Start with no `after`, or with `after=` an RFC 3339 time ("at or after this time"). - A full page (`limit` lines, 100 by default, 500 at most): read the next page at once with `after=<nextCursor>`. - A page with fewer lines than `limit`: you have every line to now. Read again later with the same `nextCursor`: at the next webhook, or at your own pace. An empty page gives back the cursor that you sent. - After an outage of any length, read from your last stored cursor: you get every line of that time, once. Nobody runs a command or types a date. The statements (`GET /partner/statements`) sum the same lines by the UTC day of `recordedAt`. Errors: - 400 `VALIDATION_FAILED`: `after` is neither a `nextCursor` nor an RFC 3339 time, or `limit` is not from 1 to 500.
Make a new webhook secret POST
Makes a new secret that signs your webhooks, and shows it in this answer once. The old secret stops at once: Grail Network signs the next try of every webhook with the new one. Errors: - 409 `PARTNER_WEBHOOK_NOT_SET`: you have no webhook address. Set one first: it makes a secret.