Read your webhook
Your webhook address and the time of its secret. The secret itself is always null here: it shows only in the answer of the call that made it.
Your webhook address and the time of its secret. The secret itself is always null here: it shows only in the answer of the call that made it.
partnerApiKeyAuthorizationBearer <token>The partner's API key.
application/json- response
data*curl -X GET 'https://api-stg.grailnetwork.com/partner/webhook'{ "data": { "url": "string", "secretMadeAt": "2019-08-24T14:15:22Z", "secret": "string" }}Read the statement of a day GET
The totals of your lines recorded on one closed UTC day, from 00:00 UTC, included, to 00:00 UTC of the next day. They equal the sum of the report lines of that day, at every read. Errors: - 400 `VALIDATION_FAILED` at `day`: not a day such as 2026-11-23. - 409 `PARTNER_STATEMENT_DAY_NOT_CLOSED`: the day is not closed yet.
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.