Poll purchase orders (PollPurchaseOrders)
GET/vendor/purchase-orders
Returns purchase orders issued to the vendor's nodes after createdAfter,
oldest first, in pages. Pass the returned nextCursor as cursor to fetch the next
page (repeat the filters); an absent nextCursor means the last page. A purchase order can be
returned again (PO_REDELIVERY_RATE): when it fires, the first item of a non-empty page is appended
a second time, so a page can hold limit + 1 items. The vendor deduplicates on poNumber. A nodeId
that is unknown or belongs to another vendor is 404; an unknown vendorId is 404 not-found.
Request
Responses
- 200
- 400
- 404
- 422
- 429
- 500
One page of purchase orders.
The paging query is refused. Problem types: invalid-limit (limit not an integer from 1 to 500, empty or repeated),
invalid-cursor (the cursor is not a token this operation issued for this vendor, or is repeated) and
unknown-query-parameter (a query parameter the operation does not declare).
The resource does not exist (not-found; this includes an unknown vendorId on a vendor read or write), or it belongs to another vendor
(ErrNodeNotOwnedByVendor, problem type node-not-owned-by-vendor, 404 so a vendor cannot probe another vendor's nodes).
The request is malformed or breaks a validation rule. Problem types:
validation-failed (an unparsable body, an unknown or mistyped field, trailing data, a NUL character in the query or the body,
a missing or invalid vendorId, createdAfter that is not an RFC 3339 date-time, a failed field rule),
partial-acknowledgement (ErrPartialAcknowledgement) and
ack-window-out-of-range (ErrAckWindowOutOfRange).
Rate limit exceeded (RATE_LIMIT_RPS). Problem type rate-limited.
Response Headers
Seconds to wait before the next call.
An unexpected error. Problem type internal-error; the detail is always the opaque text an unexpected error occurred.