get
https://app.fracttal.com/api/third_parties_services/
Through this API you can query the services of all third parties or of a specific one.
The parameter in the URL "code" is the code of the third party It can be obtained here. (Field code)
Input Parameters
The information can be filtered using the following query_params:
Parameter | Type | Required | Description |
|---|---|---|---|
code | Text | Optional | Third party code. It can be obtained here. (Field code) |
start | Integer | Optional | Record number where the query will start. Default 0. All queries are limited to 100 records, when there are more than that amount this parameter must be used for pagination. |
limit | Integer | Optional | Number of records that the request will show. The default value is 100. |
Output Parameters
| Parameter | Type | Description |
|---|---|---|
id | Integer | Third party service ID |
id_third_party | Integer | Third party ID |
third_parties_code | Text | Third party code |
third_parties_name | Text | Third party name |
service_types_description | Text | Service description |
details | Text | Service details |
cost | Integer | Service cost |
units_description | Text | Service unit |
service_units_description | Text | Service unit associated with third party |
description | Text | Service description |
third_parties_code | Text | Third party code associated with service |
visible_to_all | Boolean | Indicates if the service is active or not |
parent_description | Text | Located in or is part of |
Example:
Request: (GET)https://app.fracttal.com/api/third_parties_services/
{
"success": true,
"message": "200",
"data": [
{
"id": 13801,
"id_company": 1190,
"id_third_party": 21,
"third_parties_name": "COMERCIAL AGROTERRA",
"id_service_type": 4653,
"service_types_description": "RECOLECCIÓN DE RESIDUOS",
"cost": 80000,
"id_unity": 63,
"details": "",
"date_frequency": null,
"id_period_date": null,
"period_dates_description": null,
"unit_frequency": null,
"id_unit_service": 63,
"units_description": "TON",
"service_units_description": "TON",
"description": "COMERCIAL AGROTERRA",
"third_parties_code": "76029279",
"visible_to_all": false,
"parent_description": "// "
},
{
"id": 2,
"id_company": 1190,
"id_third_party": 21,
"third_parties_name": "COMERCIAL AGROTERRA",
"id_service_type": 12044,
"service_types_description": "MANTENIMIENTO DE ELEVADORES",
"cost": 23000,
"id_unity": 36,
"details": "SERVICIO INSERTADO POR API",
"date_frequency": 1,
"id_period_date": 4,
"period_dates_description": "YEARS",
"unit_frequency": 30,
"id_unit_service": 36,
"units_description": "Hora",
"service_units_description": "Hora",
"description": "COMERCIAL AGROTERRA",
"third_parties_code": "76029279",
"visible_to_all": false,
"parent_description": "// "
}
],
"total": 2
}