Skip to main content
Version: v1.0.0(int)

E051: Update customer type

PATCH /api/customer-types/:id

Renames an existing customer type. Triggered from Settings, Customer types.

Authentication

Standard tenant route. Requires Authorization: Bearer <firebase-id-token> and X-Org-Id: <org-id>. Access: Admin.

Request

{ "name": "Distributor", "displayOrder": 1, "isActive": true }

Passing isActive archives (false) or reactivates (true) the customer type; all fields are optional.

Response — 200 OK

{ "id": "uuid", "name": "Distributor", "displayOrder": 1 }

Errors

HTTPcodeCondition
404not_foundNo such type.
422validation_failedDuplicate name.

Workflow

Calls W051 Update customer type.