Create Supplier
Endpoint: POST /suppliers
Authentication: Bearer Token (required)
Headers
| Name | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Yes | Bearer token for authentication. Format: Bearer <token> |
| Content-Type | string | Yes | Must be application/json |
Request Body
The request body must be a JSON object with the following structure:
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | Yes | Name of the supplier (e.g., "Supplier B") |
| companyIdString | string | Yes | UUID of the company that this supplier belongs to |
Example Request Body
{
"name": "Supplier B",
"companyIdString": "{{companyIdString}}"
}