Vendors
Vendor onboarding, suspension and reinstatement, used by network partner managers (not part of the vendor-facing protocol).
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).
Get a vendor account (GetVendor)
Used by network partner managers.
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.
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).