Change vendor status with validation based on target status.
Changes a vendor's status. This is the only API for activating or deactivating a vendor; there are no separate <code>/activate</code> or <code>/deactivate</code> endpoints. Send a JSON body with a <code>status</code> of <code>Active</code>, <code>InActive</code>, or <code>OnboardingInProcess</code> (case-insensitive), for example <code>{"status": "InActive"}</code>. Changing to <code>Active</code> requires a complete vendor: name, vendor type, a valid address, at least one SKU mapping, and a receiver ID for EDI vendors. Changing to <code>InActive</code> or <code>OnboardingInProcess</code> has no validation requirements. Setting <code>InActive</code> disables login for all of the vendor's users; setting <code>Active</code> or <code>OnboardingInProcess</code> re-enables it. If the vendor already has the requested status, the vendor is returned unchanged. Requires the Vendor Update behavior. See <a href="/pages/manage-vendors">Manage Vendors</a> for the equivalent steps in Kibo Admin.
POST
Error
Body
application/json
Request containing new status
Error

