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

E024: Create vendor

POST /api/vendors

Creates a new vendor record. Triggered from the Vendors page, "New vendor".

Authentication

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

Request

{ "code": "V-001", "name": "..." }

Response — 201 Created

{ "id": "uuid", "code": "V-001", "name": "...", "isActive": true, "createdAt": "..." }

Errors

HTTPcodeCondition
422validation_failedDuplicate code, or shape invalid.

Workflow

Calls W024 Create vendor.