Apply an inventory feed for one node (ApplyInventoryFeed)
POST/inventory-feeds
In-org call from vendor-connectivity. The feed is applied in ONE transaction (at most 10000 lines per node; larger feeds are split by the vendor). Outcomes (Gap Register G23): APPLIED when every line names a listing of the node and no quantity is negative (a line whose asOf is not after the listing's current asOf is skipped and counted as stale, it does not fail the feed; one ListingAvailabilityChanged per applied line and one InventoryFeedApplied); SUPERSEDED when the feed's asOf is older than the last applied feed of that node (nothing applied, no event); FAILED when a line breaks an invariant (listing-not-on-node or negative-availability: nothing applied, no event, the feed row is kept and the request is answered 422). A full feed (fullUpdate true) sets availableQty 0, keeping the basis and stamping the feed's asOf, on every listing of the node it omits. A FAILED feedId may be sent again; an APPLIED or SUPERSEDED feedId is refused with feed-already-applied.
Request
Responses
- 201
- 400
- 409
- 413
- 422
- 500
The feed, APPLIED or SUPERSEDED.
Response Headers
"true" when the response replays the stored answer of the same Idempotency-Key (only a success, a final refusal or a recorded outcome is stored; see the Idempotency-Key parameter).
idempotency-key-required or idempotency-key-invalid (state-changing routes); invalid-limit, invalid-cursor or unknown-query-parameter (list reads); malformed-request-body (bad JSON, an unknown field, a wrong type, an empty body, trailing data or a NUL character) or malformed-request-query (a NUL character).
feed-already-applied (ErrFeedAlreadyApplied), concurrent-update (ErrConcurrentUpdate) after one automatic retry, or idempotency-key-reused.
request-body-too-large: the request body is over 64 KiB.
The feed is FAILED, instance /inventory-feeds/{feedId}: listing-not-on-node (ErrListingNotOnNode) or negative-availability (ErrNegativeAvailability). Or validation-failed for a malformed or request that breaks a value rule, such as more than 10000 lines (nothing is recorded). A body over 64 KiB is 413.
internal-error: an unmapped failure; the detail never leaks the internal message.