Shipping Labels
Labels for the packages of an ACCEPTED purchase order.
Introduction
This is the **Vendor API**: the Open Host Service of the `vendor-connectivity`
Acknowledgements
Acknowledgements
Declare the node's operational profile (DeclareNodeProfile)
Asynchronous (`SubmissionKind` `NODE_PROFILE`). On processing, the profile is
Get one inbound shipment (GetInboundShipment)
One inbound shipment as the pallet-and-carton tree. A shipment that has not shipped
Get one of the vendor's nodes (GetNode)
Served from the local VendorNodeView, fed by node-topology events.
Get one purchase order (GetPurchaseOrder)
One purchase order of the calling vendor, with its acknowledgement (once its transaction succeeded), labels and shipment. A purchase order of another vendor is `node-not-owned-by-vendor`.
Get one return advice (GetReturnAdvice)
One return advice. Unlike the poll, this read also answers for a closed advice
Get the node's measured scorecard (GetScorecard)
Relayed synchronously from node-performance (`GET /scorecards/{nodeId}`). A node without observations has no scorecard: `404` `not-found`.
Get the outcome of an asynchronous write (GetTransaction)
The outcome of any asynchronous write of the calling vendor. A transaction of another vendor is `not-found`. A processed `NODE_REGISTRATION` transaction carries the new `nodeId`.
Get a vendor account (GetVendor)
Used by network partner managers.
Inbound Receipts
Inbound Receipts
Inbound Shipments
Inbound Shipments
Inventory
Inventory
List the vendor's nodes (ListVendorNodes)
Served from the local VendorNodeView, fed by node-topology events. Returns the nodes whose owner is `vendorId`, ordered by `nodeId` (G30).
Nodes
Nodes
Onboard a vendor (OnboardVendor)
Used by network partner managers. Publishes `VendorOnboarded`. Onboarding an existing `vendorId` with a new Idempotency-Key returns the existing account unchanged with `200` (assumption A8).
Poll inbound shipments (PollInboundShipments)
Returns the `SHIPPED` inbound shipments bound for the vendor's nodes after
Poll purchase orders (PollPurchaseOrders)
Returns purchase orders issued to the vendor's nodes after `createdAfter`,
Poll return advices (PollReturnAdvices)
Returns the `AUTHORIZED` return advices of the vendor's nodes after `readyAt`,
Purchase Orders
Purchase Orders
Register a vendor node (RegisterVendorNode)
Asynchronous (`SubmissionKind` `NODE_REGISTRATION`). On processing, the node
Reinstate a vendor (ReinstateVendor)
Used by network partner managers. Moves the account `SUSPENDED` to `ACTIVE` and publishes `VendorReinstated` (G30). A vendor already `ACTIVE` gets the account back unchanged with `200` and no event (assumption A8).
Request labels for an accepted purchase order (RequestLabel)
Synchronous (the documented exception to the `202` rule, G31): labels are issued by
Return Advices
Return Advices
Return Outcomes
Return Outcomes
Shipment Confirmations
Shipment Confirmations
Shipping Labels
Shipping Labels
Acknowledge a purchase order in full (SubmitAcknowledgement)
Accepts or rejects the whole purchase order with one decision. The request
Report an inbound receipt (SubmitInboundReceipt)
Asynchronous (`SubmissionKind` `INBOUND_RECEIPT`). The shipment must be known
Submit an inventory feed for one node (SubmitInventory)
Asynchronous (`SubmissionKind` `INVENTORY`). On processing, the feed is
Report a return outcome (SubmitReturnOutcome)
Asynchronous (`SubmissionKind` `RETURN_OUTCOME`). The authorization must be
Confirm that a purchase order shipped (SubmitShipmentConfirmation)
Asynchronous (`SubmissionKind` `SHIPMENT_CONFIRMATION`). Allowed only for an
Suspend a vendor (SuspendVendor)
Used by network partner managers. Moves the account `ACTIVE` to `SUSPENDED` and publishes `VendorSuspended` (G30). A vendor already `SUSPENDED` gets the account back unchanged with `200` and no event (assumption A8). While suspended, every write of the vendor is refused with `vendor-suspended`; reads and the polling of purchase orders continue.
Transactions
Transactions
Vendors
Vendors