Consultar venta (v2)
curl --request GET \
--url https://api.filexpress.app/api/external/v2/sales/{id} \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.filexpress.app/api/external/v2/sales/{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/v2/sales/{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/v2/sales/{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;
}{
"status": true,
"data": {
"sale_id": "9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11",
"generation_code": "6F1E2D3C-8A4B-4C5D-9E6F-0A1B2C3D4E5F",
"control_number": "DTE-03-M001P001-000000000000045",
"document_type": "ccf",
"status": "PROCESADO",
"issue_time": "2026-10-21 10:00:00",
"stamp": "2026A1B2C3D4E5F6",
"payment_status": "payed",
"is_credit": false,
"customer": {
"id": "3b8e2f10-7c4d-4a9e-b1f2-5d6c7e8f9a01",
"legal_name": "Grupo Alfa, S.A. de C.V.",
"customer_name": "Grupo Alfa"
},
"totals": {
"sale_total": 110.48,
"sale_to_payment": 110.48
},
"products": [
{
"name": "Servicio de transporte",
"quantity": 5,
"individual_price": 12.8,
"subtotal": 64
}
],
"currency_code": "GTQ",
"exchange_rate": "0.12800000",
"foreign_total": "863.13",
"base_currency_code": "USD"
}
}{
"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": "Sale not found"
}{
"status": false,
"message": "Rate limit exceeded. Please try again later.",
"rate_limit": 100
}Consultar venta (v2)
Igual que v1 más la referencia de moneda. Los montos de totals y products están en moneda base.
Permiso requerido: sales
GET
/
v2
/
sales
/
{id}
Consultar venta (v2)
curl --request GET \
--url https://api.filexpress.app/api/external/v2/sales/{id} \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.filexpress.app/api/external/v2/sales/{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/v2/sales/{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/v2/sales/{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;
}{
"status": true,
"data": {
"sale_id": "9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11",
"generation_code": "6F1E2D3C-8A4B-4C5D-9E6F-0A1B2C3D4E5F",
"control_number": "DTE-03-M001P001-000000000000045",
"document_type": "ccf",
"status": "PROCESADO",
"issue_time": "2026-10-21 10:00:00",
"stamp": "2026A1B2C3D4E5F6",
"payment_status": "payed",
"is_credit": false,
"customer": {
"id": "3b8e2f10-7c4d-4a9e-b1f2-5d6c7e8f9a01",
"legal_name": "Grupo Alfa, S.A. de C.V.",
"customer_name": "Grupo Alfa"
},
"totals": {
"sale_total": 110.48,
"sale_to_payment": 110.48
},
"products": [
{
"name": "Servicio de transporte",
"quantity": 5,
"individual_price": 12.8,
"subtotal": 64
}
],
"currency_code": "GTQ",
"exchange_rate": "0.12800000",
"foreign_total": "863.13",
"base_currency_code": "USD"
}
}{
"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": "Sale not found"
}{
"status": false,
"message": "Rate limit exceeded. Please try again later.",
"rate_limit": 100
}