Version: 1.0.0
Vendor Connectivity API
This is the Vendor API: the Open Host Service of the vendor-connectivity
bounded context. Its JSON schemas are the Published Language that every
vendor conforms to. The warehouse-systems fleet (vendor V-WS) reaches the
retail network only through this contract, from its network-fulfillment
context (Conformist + Anti-Corruption Layer). It is the only channel between
the two organizations.
Protocol rules (from the model's business_decisions and the Gap Register):
- Poll purchase orders with
GET /vendor/purchase-orders, paging withcursorandnextCursor. A purchase order may be delivered more than once (simulation knobPO_REDELIVERY_RATE); be idempotent onpoNumber. - Acknowledge once, in full, before
ackBy. Fill-or-kill: one decision covers every line.ackBy = min(issuedAt + vendor ackWindow, requiredShipBy - node handlingTime). - Every asynchronous vendor write returns
202with atransactionId. The write takes effect only whenGET /vendor/transactions/{transactionId}reportsSUCCESS. Processing waits at leastTX_PROCESSING_DELAY; a share of transactions fails on purpose (TX_FAILURE_RATE). The processedNODE_REGISTRATIONtransaction carries the newnodeId(G30). - A label is issued only for an
ACCEPTEDpurchase order. A shipment is confirmed only with a label for every package. The label request is the one synchronous write:200with the labels, never202(G31). - Vendor identity under no authentication (G32):
vendorIdis in every write body and a required query parameter on every read. Ownership is checked against it (ErrNodeNotOwnedByVendor); this is a consistency check, not security. A suspended vendor's writes are refused (ErrVendorSuspended,vendor-suspended). - Rate limits are part of the contract:
429withRetry-After(RATE_LIMIT_RPS). - Every state-changing
POST/PUTtakesIdempotency-Key; a repeat replays the first response when that response is final for the request (a success, or a refusal that does not depend on state that can change). A refusal that can pass on a retry is not stored and its key is released (see theIdempotency-Keyparameter). - Errors are RFC 9457
application/problem+json; the shared problem types arenot-found404,illegal-transition409,concurrent-update409 andvalidation-failed422, plus one slug per modelErr...name. - No ship-to PII anywhere. A label is
labelRef + trackingNumber + carrier, never an address. - No authentication (consistent with the fleet).
Contact vendor-connectivity maintainers:
License