Skip to main content

Create Supplier

Endpoint: POST /suppliers

Authentication: X-API-Key: {{apiKey}}

Headers

NameTypeRequiredDescription
AuthorizationstringYesX-API-Key for authentication. Format: X-API-Key: {{apiKey}}
Content-TypestringYesMust be application/json

Request Body

The request body must be a JSON object with the following structure:

FieldTypeRequiredDescription
namestringYesName of the supplier (e.g., "Supplier B")
companyIdStringstringYesUUID of the company that this supplier belongs to

Example Request Body

{
"name": "Supplier B",
"companyIdString": "{{companyIdString}}"
}