List the fulfilments waiting on this distributor
One call of the distributor API, read from the interface description Yutai publishes. Every sample answer on this page is simulated: no real holder's data stands behind it. The formats every value travels in are the identifiers page's.
The call
/v1/fulfilments
The key presents the claims.write scope.
What it answers
The calling distributor's own pending fulfilments, newest first: each names the claim it opens beside, the benefit it credits and the instant it was opened, with the waiting state the pending row carries. Nothing personal rides the answer.
fulfilmentsRequired. A list of objects with the fields below.
Each itemRequired. An object with the fields below.
fulfilmentIdThe fulfilment's own opaque id, the address its confirm answers at.
Required. A string.
claimIdThe claim this fulfilment opens beside, by its own opaque id.
Required. A string.
benefitIdThe benefit this fulfilment credits, by its own opaque id.
Required. A string.
benefitNameThe benefit's name as the programme carries it, so a fulfilment reads without a second lookup.
Required. A string. It carries at least 1 and at most 128 characters.
stateWhere the fulfilment stands in plain words: waiting on the venue until its confirm lands, then credited by the venue.
Required. A string that is one of the values below.
waiting on the venuecredited by the venue
createdAtThe instant the fulfilment was opened, the moment the credit began waiting on the venue.
Required. An instant in the ISO 8601 form.
venueReferenceThe venue's own reference for the credit, one to the stored maximum characters; present only once credited.
Optional. A string. It carries at least 1 and at most 256 characters.
confirmedAtThe instant the venue's confirm was recorded; present only once the row is credited by the venue.
Optional. An instant in the ISO 8601 form.
The errors
Every refused call answers one object with one field, message: the plain sentence that says what did not happen. The sentence carries 1 to 512 characters, so a refusal never carries an id, a code or an exception's text.
| Status | What it answers |
|---|---|
| 401 | The key is missing, malformed, unknown, revoked or expired. |
| 403 | The key does not carry the scope. The call is also refused with 403, nothing read, when the distributor is paused, suspended or closed, when the key is paused, or when the key presents from an origin it does not allow. |
| 429 | The key made too many calls this minute. The Retry-After header names the seconds until the next window opens. Nothing was read. |
| 500 | The read failed inside Yutai. Nothing was changed. |