List your cards that changed
Your cards, sorted by the time of their last change (`changedAt`), the oldest first: all of them, or those that changed after `changedAfter`, of one slip `reference` when you give it. After the webhook `intake.ended`, `GET /partner/items?reference=7K3M9QX2G` gives every card of that intake at once. How to read the list to its end: - The page has `limit` cards, and the `changedAt` of its last card is not later than the time in `nextCursor`: read the next page at once with `changedAfter=<nextCursor>`. - The page has `limit` cards, and its last card is newer than `nextCursor`: the page holds the newest changes, and the cursor waits 60 seconds behind now. Wait 60 seconds before the next read: a read before that gives the same page again. - The page has fewer than `limit` cards: you have every change to now. Read again with `nextCursor` at your own pace, or at the next webhook. You can see a card of the last 60 seconds again at your next read. Keep the answer with the newest `changedAt`: a repeat changes nothing. Errors: - 400 `VALIDATION_FAILED`: `changedAfter` is neither a `nextCursor` nor an RFC 3339 time, `reference` is not a slip reference, or `limit` is not from 1 to 500. - 503 `SERVICE_UNAVAILABLE` with the header `Retry-After: 5`: a system that this request needs gave no answer. Send the same request again after 5 seconds.
Your cards, sorted by the time of their last change (changedAt), the oldest first: all of them, or those that changed after changedAfter, of one slip reference when you give it. After the webhook intake.ended, GET /partner/items?reference=7K3M9QX2G gives every card of that intake at once.
How to read the list to its end:
- The page has
limitcards, and thechangedAtof its last card is not later than the time innextCursor: read the next page at once withchangedAfter=<nextCursor>. - The page has
limitcards, and its last card is newer thannextCursor: the page holds the newest changes, and the cursor waits 60 seconds behind now. Wait 60 seconds before the next read: a read before that gives the same page again. - The page has fewer than
limitcards: you have every change to now. Read again withnextCursorat your own pace, or at the next webhook.
You can see a card of the last 60 seconds again at your next read. Keep the answer with the newest changedAt: a repeat changes nothing.
Errors:
- 400
VALIDATION_FAILED:changedAfteris neither anextCursornor an RFC 3339 time,referenceis not a slip reference, orlimitis not from 1 to 500. - 503
SERVICE_UNAVAILABLEwith the headerRetry-After: 5: a system that this request needs gave no answer. Send the same request again after 5 seconds.
partnerApiKeyAuthorizationBearer <token>The partner's API key.
limit?integer1 <= value <= 500100changedAfter?stringThe nextCursor of your last page, or any RFC 3339 time such as 2026-11-20T00:00:00Z ("at or after this time"). Leave it out to read from the first item
reference?stringOnly the cards of this slip reference, such as 7K3M9QX2G
^[0-9A-HJKMNP-TV-Z]{6,20}$application/json- response
data*array<>meta*curl -X GET 'https://api-stg.grailnetwork.com/partner/items'{ "data": [ { "itemId": "f11b669d-7201-4c21-88af-d85092f0c005", "reference": "string", "receivedAt": "2019-08-24T14:15:22Z", "card": { "name": "string", "setName": "string", "categoryName": "string", "number": "string", "gradeName": "string" }, "frontPictureUrl": "string", "state": "available", "marketPrice": { "amountAtomic": "string", "currency": "string" }, "priceAdjustment": "string", "price": { "amountAtomic": "string", "currency": "string" }, "pulledAt": "2019-08-24T14:15:22Z", "priceAtPull": { "amountAtomic": "string", "currency": "string" }, "buybackOfferEndsAt": "2019-08-24T14:15:22Z", "soldAt": "2019-08-24T14:15:22Z", "takeBack": { "state": "requested", "requestedAt": "2019-08-24T14:15:22Z", "noticeEndsAt": "2019-08-24T14:15:22Z", "completedAt": "2019-08-24T14:15:22Z" }, "changedAt": "2019-08-24T14:15:22Z" } ], "meta": { "nextCursor": "string" }}List the intakes of a slip GET
The intakes of one of your slips that ended, the newest end first. A parcel comes with a slip, and the slip code is `<your code>:<reference>`, such as `PRT:7K3M9QX2G`. Send only the reference. Each intake gives how many cards the warehouse took in (`itemCount`), and each refused card with its reason as a text. A refused card comes with no picture, and its `id` is no card of yours. When to read it: at the webhook `intake.ended`, which names the intake and the reference. Then read the cards that the warehouse took in with `GET /partner/items?reference=`: they are there before the webhook goes. An empty list: no intake of this reference has ended yet, or the reference names no slip of yours. The last character of a reference is the check character of the whole slip code, so a typo, or another partner's reference, names no slip of yours and gives an empty list too. Errors: - 400 `VALIDATION_FAILED` at `reference`: not 6 to 20 characters of the digits 0 to 9 and the capital letters A to Z without I, L, O and U. - 503 `SERVICE_UNAVAILABLE` with the header `Retry-After: 5`: a system that this request needs gave no answer. Send the same request again after 5 seconds.
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.