Material Suppliers
The API gives the ability to get all existing suppliers in the company.
The name of the company that supplies materials.
The supplier’s e-mail address.
The supplier’s phone number.
Tenant id (uuid v4)
Returned when the rate limit is exceeded
GET /api/v1/public/material-suppliers HTTP/1.1
Host: api-stage.hesh.tech
x-api-key: YOUR_API_KEY
Accept: */*
{
"meta": {
"total": 1,
"lastPage": 1,
"currentPage": 1,
"perPage": 1,
"prev": 1,
"next": 1
},
"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": "contact@abcmaterials.com",
"created_at": "2025-01-23T17:01:31.692Z",
"updated_at": "2025-01-24T10:30:45.123Z"
}
]
}The API gives the ability to create a new supplier.
Tenant id (uuid v4)
Company name of the material supplier
ABC Materials Co.Country where the supplier is located
United StatesFirst name of the supplier contact person
JohnLast name of the supplier contact person
SmithPhone number of the supplier
+1-555-123-4567Email address of the supplier
contact@abcmaterials.comUnique identifier of the material supplier
b86fa12a-76fc-46f5-8a3e-bf39e7be4c4eCompany name of the material supplier
ABC Materials Co.Country where the supplier is located
United StatesFirst name of the supplier contact person
JohnLast name of the supplier contact person
SmithPhone number of the supplier
+1-555-123-4567Email address of the supplier
contact@abcmaterials.comTimestamp when the supplier was created
2025-01-23T17:01:31.692ZTimestamp when the supplier was last updated
2025-01-24T10:30:45.123ZReturned when the rate limit is exceeded
POST /api/v1/public/material-suppliers HTTP/1.1
Host: api-stage.hesh.tech
x-api-key: YOUR_API_KEY
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": "contact@abcmaterials.com"
}{
"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": "contact@abcmaterials.com",
"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.
Tenant id (uuid v4)
Company name of the material supplier
XYZ Materials Inc.Country where the supplier is located
CanadaFirst name of the supplier contact person
JaneLast name of the supplier contact person
DoePhone number of the supplier
+1-555-987-6543Email address of the supplier
updated@xyzmaterials.comMessage returned from API confirming the operation
The operation was done successfullyReturned when the rate limit is exceeded
PATCH /api/v1/public/material-suppliers/{id} HTTP/1.1
Host: api-stage.hesh.tech
x-api-key: YOUR_API_KEY
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": "updated@xyzmaterials.com"
}{
"message": "The operation was done successfully"
}Last updated

