Intakes
How Grail Network takes in a parcel, and how you read the result.
An intake is the work of the warehouse on one parcel: the worker scans its slip code, takes in each card, notes each card that it cannot take in, and ends the intake. Grail Network lists an intake when it ends.
When an intake ends
You get the webhook intake.ended:
{ "type": "intake.ended", "data": { "intakeId": "019a8c30-...", "reference": "7K3M9QX21" } }reference is your reference, without your partner code. intakeId is the id of the intake in the list below. Then
read the intake and its cards.
Read the intake
GET /partner/intakes?reference=7K3M9QX21{
"data": [
{
"id": "019a8c30-0000-7000-8000-000000000001",
"reference": "7K3M9QX21",
"state": "ended",
"startedAt": "2026-11-25T09:00:00.000Z",
"endedAt": "2026-11-25T09:40:00.000Z",
"itemCount": 9,
"refusedCards": [
{ "id": "019a8c31-0000-7000-8000-000000000002", "note": "The slab is cracked." }
]
}
]
}- The list has every ended intake of the reference, the newest first. A reference can have more than one intake, for example a second parcel.
itemCountis the number of cards taken in.refusedCardslists each card that the worker did not take in, with its reason as a text innote. The answer has no picture of a refused card.- A reference with no ended intake gives
{ "data": [] }.referenceis required, and must have the form of a reference: 6 to 20 characters of the alphabet, else 400VALIDATION_FAILED. - A part of Grail Network that gives no answer gives 503
SERVICE_UNAVAILABLE, with the headerRetry-After. stateisendedtoday. Accept a value that you do not know.
Read the cards of the intake
GET /partner/items?reference=7K3M9QX21Every card of the intake is in this list when the webhook comes. See Items.
An example: a parcel of the slip GC:7K3M9QX21 holds 10 cards, and the worker refuses 1. You get one intake.ended.
The intake shows itemCount 9 and one refused card with its reason. The list of items of the reference has 9 cards.