Registrar ajuste
curl --request POST \
--url https://api.filexpress.app/api/external/inventory/adjustments \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"branch_id": "9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11",
"product_id": "9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11",
"type": "out",
"quantity": 2,
"reason": "Merma",
"notes": "Botellas dañadas"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
branch_id: '9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11',
product_id: '9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11',
type: 'out',
quantity: 2,
reason: 'Merma',
notes: 'Botellas dañadas'
})
};
fetch('https://api.filexpress.app/api/external/inventory/adjustments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.filexpress.app/api/external/inventory/adjustments"
payload = {
"branch_id": "9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11",
"product_id": "9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11",
"type": "out",
"quantity": 2,
"reason": "Merma",
"notes": "Botellas dañadas"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.filexpress.app/api/external/inventory/adjustments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'branch_id' => '9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11',
'product_id' => '9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11',
'type' => 'out',
'quantity' => 2,
'reason' => 'Merma',
'notes' => 'Botellas dañadas'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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": {
"adjustment": {
"id": "3b8e2f10-7c4d-4a9e-b1f2-5d6c7e8f9a01",
"branch_id": "9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11",
"product": {
"id": "9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11",
"sku": "BEB-001",
"name": "Refresco 350ml"
},
"type": "out",
"quantity": 2,
"unit_cost": 0.7,
"source": "adjustment",
"reason": "Merma",
"notes": "Botellas dañadas",
"branch_transfer_id": null,
"created_at": "2026-10-01T10:15:00-06:00"
},
"stock": {
"product_id": "9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11",
"branch_id": "9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11",
"sku": "BEB-001",
"barcode": "7401234567890",
"name": "Refresco 350ml",
"availability": 6,
"min_stock": 10,
"is_low_stock": true,
"unit_cost": 0.7
}
}
}Registrar ajuste
Entrada (in) o salida (out) manual de inventario; devuelve la existencia actualizada.
Permiso requerido: inventory.adjustments
POST
/
inventory
/
adjustments
Registrar ajuste
curl --request POST \
--url https://api.filexpress.app/api/external/inventory/adjustments \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"branch_id": "9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11",
"product_id": "9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11",
"type": "out",
"quantity": 2,
"reason": "Merma",
"notes": "Botellas dañadas"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
branch_id: '9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11',
product_id: '9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11',
type: 'out',
quantity: 2,
reason: 'Merma',
notes: 'Botellas dañadas'
})
};
fetch('https://api.filexpress.app/api/external/inventory/adjustments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.filexpress.app/api/external/inventory/adjustments"
payload = {
"branch_id": "9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11",
"product_id": "9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11",
"type": "out",
"quantity": 2,
"reason": "Merma",
"notes": "Botellas dañadas"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.filexpress.app/api/external/inventory/adjustments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'branch_id' => '9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11',
'product_id' => '9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11',
'type' => 'out',
'quantity' => 2,
'reason' => 'Merma',
'notes' => 'Botellas dañadas'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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": {
"adjustment": {
"id": "3b8e2f10-7c4d-4a9e-b1f2-5d6c7e8f9a01",
"branch_id": "9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11",
"product": {
"id": "9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11",
"sku": "BEB-001",
"name": "Refresco 350ml"
},
"type": "out",
"quantity": 2,
"unit_cost": 0.7,
"source": "adjustment",
"reason": "Merma",
"notes": "Botellas dañadas",
"branch_transfer_id": null,
"created_at": "2026-10-01T10:15:00-06:00"
},
"stock": {
"product_id": "9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11",
"branch_id": "9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11",
"sku": "BEB-001",
"barcode": "7401234567890",
"name": "Refresco 350ml",
"availability": 6,
"min_stock": 10,
"is_low_stock": true,
"unit_cost": 0.7
}
}
}Authorizations
API Key de la integración (Integraciones → Nueva Integración).
Headers
Opcional. Llave única por operación (máx. 100 caracteres, vale 24 h por integración). Un reintento con la misma llave y el mismo cuerpo devuelve la respuesta original (header Idempotent-Replayed: true) sin repetir la operación; con otro cuerpo, o mientras la primera sigue en proceso, responde 409.
Maximum string length:
100Body
application/json