Material suppliers
The API gives the ability to get all existing suppliers in the company.
Authorizations
Query parameters
company_namestringOptional
The name of the company that supplies materials.
emailstringOptional
The supplier’s e-mail address.
phonestringOptional
The supplier’s phone number.
skipnumberOptional
takenumberOptional
Header parameters
x-tenant-idstring · uuidRequired
Tenant id (uuid v4)
Responses
200Success
application/json
Responseall of
and
get
/api/public/material-suppliersGET /api/public/material-suppliers HTTP/1.1
Host:
x-api-key: YOUR_API_KEY
x-tenant-id: 123e4567-e89b-12d3-a456-426614174000
Accept: */*
200Success
{
"data": [
{
"id": "b86fa12a-76fc-46f5-8a3e-bf39e7be4c4e",
"company_name": "ABC Materials Co.",
"country": "United States",
"first_name": "John",
"last_name": "Smith",
"phone": "+1-555-123-4567",
"email": "[email protected]",
"created_at": "2025-01-23T17:01:31.692Z",
"updated_at": "2025-01-24T10:30:45.123Z"
}
],
"meta": {
"total": 1,
"lastPage": 1,
"currentPage": 1,
"perPage": 1,
"prev": 1,
"next": 1
}
}The API gives the ability to create a new supplier.
Authorizations
Header parameters
x-tenant-idstring · uuidRequired
Tenant id (uuid v4)
Body
company_namestringRequiredExample:
Company name of the material supplier
ABC Materials Co.countrystringOptionalExample:
Country where the supplier is located
United Statesfirst_namestringOptionalExample:
First name of the supplier contact person
Johnlast_namestringOptionalExample:
Last name of the supplier contact person
SmithphonestringOptionalExample:
Phone number of the supplier
+1-555-123-4567Responses
201Success
application/json
post
/api/public/material-suppliersPOST /api/public/material-suppliers HTTP/1.1
Host:
x-api-key: YOUR_API_KEY
x-tenant-id: 123e4567-e89b-12d3-a456-426614174000
Content-Type: application/json
Accept: */*
Content-Length: 163
{
"company_name": "ABC Materials Co.",
"country": "United States",
"first_name": "John",
"last_name": "Smith",
"phone": "+1-555-123-4567",
"email": "[email protected]"
}201Success
{
"id": "b86fa12a-76fc-46f5-8a3e-bf39e7be4c4e",
"company_name": "ABC Materials Co.",
"country": "United States",
"first_name": "John",
"last_name": "Smith",
"phone": "+1-555-123-4567",
"email": "[email protected]",
"created_at": "2025-01-23T17:01:31.692Z",
"updated_at": "2025-01-24T10:30:45.123Z"
}The API gives the ability to update an existing supplier's information.
Authorizations
Path parameters
idstringRequired
Header parameters
x-tenant-idstring · uuidRequired
Tenant id (uuid v4)
Body
company_namestringOptionalExample:
Company name of the material supplier
XYZ Materials Inc.countrystringOptionalExample:
Country where the supplier is located
Canadafirst_namestringOptionalExample:
First name of the supplier contact person
Janelast_namestringOptionalExample:
Last name of the supplier contact person
DoephonestringOptionalExample:
Phone number of the supplier
+1-555-987-6543Responses
200Success
application/json
patch
/api/public/material-suppliers/{id}PATCH /api/public/material-suppliers/{id} HTTP/1.1
Host:
x-api-key: YOUR_API_KEY
x-tenant-id: 123e4567-e89b-12d3-a456-426614174000
Content-Type: application/json
Accept: */*
Content-Length: 155
{
"company_name": "XYZ Materials Inc.",
"country": "Canada",
"first_name": "Jane",
"last_name": "Doe",
"phone": "+1-555-987-6543",
"email": "[email protected]"
}200Success
{
"message": "The operation was done successfully"
}Last updated