The Suppliers API manages the vendor directory for your tenant. Each supplier record stores contact information and is linked to one or more purchase orders. Suppliers can be soft-deactivated via theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/juadariasmar/inventory_project/llms.txt
Use this file to discover all available pages before exploring further.
activo flag without losing historical order data. Attempting to delete a supplier that has associated purchase orders will return a 409 Conflict error to preserve data integrity.
Read access (GET) is available to any active tenant member. All write operations — creating, updating, and deleting suppliers — require the ADMIN role.
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /api/proveedores | List all suppliers for the tenant |
| POST | /api/proveedores | Create a new supplier |
| GET | /api/proveedores/[id] | Get a supplier by ID |
| PUT | /api/proveedores/[id] | Update a supplier |
| DELETE | /api/proveedores/[id] | Delete a supplier |
GET /api/proveedores
Returns all suppliers belonging to the authenticated user’s tenant, ordered alphabetically by name. The default limit is 200 records.Response fields
Returns an array ofProveedor objects.
Unique supplier ID.
Supplier name.
Tax identification number (NIT). Optional.
Primary contact person name. Optional.
Contact phone number. Optional.
Contact email address. Optional.
Physical address. Optional.
Whether the supplier is currently active. Defaults to
true on creation.ISO 8601 timestamp of when the supplier record was created.
POST /api/proveedores
Creates a new supplier record scoped to the authenticated user’s tenant. Requires ADMIN role. Returns the createdProveedor (HTTP 201).
Request body
Supplier name. Cannot be empty.
Tax identification number.
Primary contact person’s name.
Phone number.
Email address.
Physical address.
Response fields
Assigned supplier ID.
Supplier name.
Tax ID.
Contact person.
Phone number.
Email address.
Address.
Active flag, always
true on creation.Creation timestamp (ISO 8601).
GET /api/proveedores/[id]
Returns a single supplier by its numeric ID. The record is scoped to the tenant — requesting an ID from a different company returns404.
Path parameters
Numeric supplier ID.
Response fields
Supplier ID.
Supplier name.
Tax ID.
Contact person.
Phone number.
Email address.
Address.
Whether the supplier is active.
Creation timestamp (ISO 8601).
PUT /api/proveedores/[id]
Updates an existing supplier record. Only fields present in the request body are applied — omitted fields are left unchanged. Requires ADMIN role.Path parameters
Numeric supplier ID.
Request body
Updated supplier name. Cannot be set to an empty string.
Updated tax ID. Pass an empty string to clear the value.
Updated contact person name.
Updated phone number.
Updated email address.
Updated address.
Set to
false to deactivate the supplier without deleting the record.DELETE /api/proveedores/[id]
Permanently deletes a supplier. The operation is blocked with a409 Conflict response if the supplier has any associated purchase orders. Requires ADMIN role. Returns { "ok": true } on success.
Path parameters
Numeric supplier ID.