Reinstate a vendor (ReinstateVendor)
POST/vendors/:vendorId/reinstatements
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
Responses
- 200
- 400
- 404
- 409
- 500
The vendor account.
Response Headers
true when this response is a replay of the first response stored for the Idempotency-Key (a 2xx or a final refusal); absent otherwise. A refusal that can pass on a retry is never stored, so it is never replayed.
The Idempotency-Key header is missing (idempotency-key-required) or not 1 to 128
printable ASCII characters (idempotency-key-invalid).
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 write conflicts with the state of the purchase order, the vendor or the aggregate version. Problem types:
already-acknowledged (ErrAlreadyAcknowledged), ack-window-closed
(ErrAckWindowClosed), label-before-acceptance (ErrLabelBeforeAcceptance),
confirm-without-label (ErrConfirmWithoutLabel), vendor-suspended
(ErrVendorSuspended), illegal-transition (a write against a state the model
gives no Err... for) and concurrent-update (optimistic-concurrency
conflict; the caller re-reads and retries) and idempotency-key-reused (the Idempotency-Key was
already used with a different method, path or body).
An unexpected error. Problem type internal-error; the detail is always the opaque text an unexpected error occurred.