Skip to Content
Grail Network

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.
  • itemCount is the number of cards taken in.
  • refusedCards lists each card that the worker did not take in, with its reason as a text in note. The answer has no picture of a refused card.
  • A reference with no ended intake gives { "data": [] }. reference is required, and must have the form of a reference: 6 to 20 characters of the alphabet, else 400 VALIDATION_FAILED.
  • A part of Grail Network that gives no answer gives 503 SERVICE_UNAVAILABLE, with the header Retry-After.
  • state is ended today. Accept a value that you do not know.

Read the cards of the intake

GET /partner/items?reference=7K3M9QX21

Every 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.

On this page