get
https://app.fracttal.com/api/items_equivalents/
With this API, you can query equivalent spare parts and supplies associated with an asset.
Input Parameters
You must send the asset code to be queried as a parameter:
| Parameter | Type | Required | Description |
|---|---|---|---|
code | Text | Required | Asset code. You can check it here. (field code) |
Output Parameters
You must send the asset code to be queried as a parameter:
| Parameter | Type | Description |
|---|---|---|
id | Integer | ID of the equivalence |
id_company | Integer | Company ID |
id_item | Integer | Asset ID |
id_item_brand | Integer | Equivalent asset ID |
item_code | Text | Asset code |
item_code_brand | Text | Equivalent asset code |
item_brand_description | Text | Equivalent asset description |
brand | Text | Equivalent asset brand |
barcode | Text | Equivalent asset barcode |
model | Text | Equivalent asset model |
Example
Request: (GET) https://app.fracttal.com/api/api/items_equivalents/?code=Repuesto
{
"success": true,
"message": "200",
"data": [
{
"barcode": "987253647898",
"brand": "Bosch",
"id": 5494,
"id_company": 1190,
"id_item": 37766639,
"model": "s2",
"id_item_brand": 37766640,
"item_brand_description": "{ R1 } Repuesto Equivalente 1",
"item_code_brand": "R1",
"item_code": "Repuesto"
},
{
"barcode": "987351324567",
"brand": "Gates",
"id": 5495,
"id_company": 1190,
"id_item": 37766639,
"model": "s1",
"id_item_brand": 37766641,
"item_brand_description": "{ R2 } Equivalente 2",
"item_code_brand": "R2",
"item_code": "Repuesto"
}
],
"total": 2
}