Consultar producto
curl --request GET \
--url https://api.filexpress.app/api/external/products/{id} \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.filexpress.app/api/external/products/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.filexpress.app/api/external/products/{id}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.filexpress.app/api/external/products/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"success": true,
"data": {
"id": "9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11",
"name": "Refresco 350ml",
"sku": "BEB-001",
"price_before_taxes": 1.11,
"cost": 0.7,
"tax_method": "is_taxed",
"composition_type": "simple",
"product_type": "phisical",
"product_category_id": "9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11",
"product_measurement_id": "9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11",
"availability": 100,
"limit_availability": 10,
"taxes": [
{
"id": "9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11",
"name": "IVA",
"number_code": "20",
"tax_type": "percentage",
"percent": 0.13
}
]
},
"message": "Data retrieved successfully."
}{
"status": false,
"message": "Invalid API Key."
}{
"status": false,
"message": "This integration does not have the 'hr.employees' permission.",
"required_scope": "hr.employees"
}{
"status": false,
"message": "Not found."
}{
"status": false,
"message": "Rate limit exceeded. Please try again later.",
"rate_limit": 100
}Consultar producto
Detalle con porciones y componentes.
Permiso requerido: products
GET
/
products
/
{id}
Consultar producto
curl --request GET \
--url https://api.filexpress.app/api/external/products/{id} \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.filexpress.app/api/external/products/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.filexpress.app/api/external/products/{id}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.filexpress.app/api/external/products/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"success": true,
"data": {
"id": "9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11",
"name": "Refresco 350ml",
"sku": "BEB-001",
"price_before_taxes": 1.11,
"cost": 0.7,
"tax_method": "is_taxed",
"composition_type": "simple",
"product_type": "phisical",
"product_category_id": "9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11",
"product_measurement_id": "9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11",
"availability": 100,
"limit_availability": 10,
"taxes": [
{
"id": "9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11",
"name": "IVA",
"number_code": "20",
"tax_type": "percentage",
"percent": 0.13
}
]
},
"message": "Data retrieved successfully."
}{
"status": false,
"message": "Invalid API Key."
}{
"status": false,
"message": "This integration does not have the 'hr.employees' permission.",
"required_scope": "hr.employees"
}{
"status": false,
"message": "Not found."
}{
"status": false,
"message": "Rate limit exceeded. Please try again later.",
"rate_limit": 100
}