Onboard a vendor (OnboardVendor)
POST/vendors
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).
Request
Responses
- 200
- 201
- 400
- 409
- 422
- 500
The vendor account already existed; returned unchanged.
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 vendor account, ACTIVE.
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 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).
The request is malformed or breaks a validation rule. Problem types:
validation-failed (an unparsable body, an unknown or mistyped field, trailing data, a NUL character in the query or the body,
a missing or invalid vendorId, createdAfter that is not an RFC 3339 date-time, a failed field rule),
partial-acknowledgement (ErrPartialAcknowledgement) and
ack-window-out-of-range (ErrAckWindowOutOfRange).
An unexpected error. Problem type internal-error; the detail is always the opaque text an unexpected error occurred.