Supplier
Questi contenuti non sono ancora disponibili nella tua lingua.
Manage suppliers, including registration, update, deletion, and advanced search.
Suppliers can be linked to projects and support metadata and filtering.
- Version
- 2.0.0
- OpenAPI version
- 3.0.0
Operations
Sezione intitolata “Operations” POST /v2/supplier/index
Returns a paginated and filterable list of suppliers.
Use POST to allow complex filters via JSON payload.
Request Body
Sezione intitolata “Request Body ”Parameters for searching suppliers
object
object
The unique identifier for the supplier.
The code associated with the supplier, if available.
The name of the supplier.
A description of the supplier, if available.
The street address of the supplier.
The postal code of the supplier’s address.
The region of the supplier’s address.
The locality of the supplier’s address.
The country of the supplier’s address.
The tax code associated with the supplier, if available.
The VAT number of the supplier, if available.
The unique identifier for the associated project.
The timestamp when the supplier was created.
The timestamp of the last update operation on the supplier.
The field of the model to sort the list for, use a minus to revert the sort. Es -name is to require the sort in reverse order
The field establishes whether to also include historized elements that are no longer active in the results. If you leave this parameter empty the response returns only actual entries.
Example
{ "filter": { "name": "Supplier 1", "country": "Italy" }, "per-page": 10, "page": 1, "sort": "name"}
Responses
Sezione intitolata “ Responses ”List of suppliers
object
The unique identifier for the supplier.
The code associated with the supplier, if available.
The name of the supplier.
A description of the supplier, if available.
The street address of the supplier.
The postal code of the supplier’s address.
The region of the supplier’s address.
The locality of the supplier’s address.
The country of the supplier’s address.
The tax code associated with the supplier, if available.
The VAT number of the supplier, if available.
The unique identifier for the associated project.
The timestamp when the supplier was created.
The timestamp of the last update operation on the supplier.
Example
{ "supplier_id": "sup-1", "name": "Supplier 1", "code": "SUP001", "country": "Italy", "project_id": "proj-1", "created_at": 1700000000, "updated_at": 1700000001}
Headers
Sezione intitolata “Headers ”Current page
Total number of pages
Number of items per page
Total number of items
POST /v2/supplier/create
Create a new supplier by providing the required details.
Request Body required
Sezione intitolata “Request Body required ”Supplier object to be created
object
The unique identifier for the supplier.
The code associated with the supplier, if available.
The name of the supplier.
A description of the supplier, if available.
The street address of the supplier.
The postal code of the supplier’s address.
The region of the supplier’s address.
The locality of the supplier’s address.
The country of the supplier’s address.
The tax code associated with the supplier, if available.
The VAT number of the supplier, if available.
The unique identifier for the associated project.
Example
{ "name": "Supplier 2", "code": "SUP002", "country": "France", "project_id": "proj-2"}
Responses
Sezione intitolata “ Responses ”Supplier created successfully
object
The unique identifier for the supplier.
The code associated with the supplier, if available.
The name of the supplier.
A description of the supplier, if available.
The street address of the supplier.
The postal code of the supplier’s address.
The region of the supplier’s address.
The locality of the supplier’s address.
The country of the supplier’s address.
The tax code associated with the supplier, if available.
The VAT number of the supplier, if available.
The unique identifier for the associated project.
Example
{ "supplier_id": "sup-2", "name": "Supplier 2", "code": "SUP002", "country": "France", "project_id": "proj-2"}
GET /v2/supplier/view/{id}
Retrieve a supplier by its unique ID.
Path Parameters
Sezione intitolata “Path Parameters ”ID of the supplier to retrieve
Responses
Sezione intitolata “ Responses ”Supplier found
object
The unique identifier for the supplier.
The code associated with the supplier, if available.
The name of the supplier.
A description of the supplier, if available.
The street address of the supplier.
The postal code of the supplier’s address.
The region of the supplier’s address.
The locality of the supplier’s address.
The country of the supplier’s address.
The tax code associated with the supplier, if available.
The VAT number of the supplier, if available.
The unique identifier for the associated project.
The timestamp when the supplier was created.
The timestamp of the last update operation on the supplier.
Example
{ "supplier_id": "sup-1", "name": "Supplier 1", "code": "SUP001", "country": "Italy", "project_id": "proj-1", "created_at": 1700000000, "updated_at": 1700000001}
Supplier not found
DELETE /v2/supplier/delete/{id}
Delete a supplier by its unique ID.
If force=true, all related entities will also be deleted.
Path Parameters
Sezione intitolata “Path Parameters ”ID of the supplier to delete
Query Parameters
Sezione intitolata “Query Parameters ”Force the deletion of the entity and all related entities
Responses
Sezione intitolata “ Responses ”Supplier deleted successfully
If force=false, the operation is interrupted and the list of connected entities that will be deleted in case of confirmation (force=true) is returned
PUT /v2/supplier/update/{id}
Update an existing supplier by its unique ID.
Path Parameters
Sezione intitolata “Path Parameters ”ID of the supplier to update
Request Body required
Sezione intitolata “Request Body required ”Supplier object with updated data
object
The unique identifier for the supplier.
The code associated with the supplier, if available.
The name of the supplier.
A description of the supplier, if available.
The street address of the supplier.
The postal code of the supplier’s address.
The region of the supplier’s address.
The locality of the supplier’s address.
The country of the supplier’s address.
The tax code associated with the supplier, if available.
The VAT number of the supplier, if available.
The unique identifier for the associated project.
Example
{ "name": "Updated Supplier", "country": "Germany"}
Responses
Sezione intitolata “ Responses ”Supplier updated successfully
object
The unique identifier for the supplier.
The code associated with the supplier, if available.
The name of the supplier.
A description of the supplier, if available.
The street address of the supplier.
The postal code of the supplier’s address.
The region of the supplier’s address.
The locality of the supplier’s address.
The country of the supplier’s address.
The tax code associated with the supplier, if available.
The VAT number of the supplier, if available.
The unique identifier for the associated project.
Example
{ "supplier_id": "sup-1", "name": "Updated Supplier", "country": "Germany"}
Supplier not found