Cancel transfer
curl --request POST \
--url https://api.filexpress.app/api/external/v1/inventory/transfers/{id}/cancel \
--header 'X-API-Key: <api-key>'const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.filexpress.app/api/external/v1/inventory/transfers/{id}/cancel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.filexpress.app/api/external/v1/inventory/transfers/{id}/cancel"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.filexpress.app/api/external/v1/inventory/transfers/{id}/cancel",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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": {
"id": "3b8e2f10-7c4d-4a9e-b1f2-5d6c7e8f9a01",
"reference_number": "TR-0042",
"status": "cancelled",
"origin_branch": {
"id": "9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11",
"name": "Casa Matriz"
},
"destination_branch": {
"id": "3b8e2f10-7c4d-4a9e-b1f2-5d6c7e8f9a01",
"name": "Sucursal Centro"
},
"notes": "Reabastecimiento semanal",
"items": [
{
"product_id": "9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11",
"sku": "BEB-001",
"name": "Refresco 350ml",
"quantity": 24,
"unit_cost": 0.7
}
],
"total_cost": 16.8,
"created_at": "2026-10-01T09:00:00-06:00",
"transferred_at": null
}
}Cancel transfer
Cancels a pending transfer (does not move inventory).
Required permission: inventory.transfers
POST
/
inventory
/
transfers
/
{id}
/
cancel
Cancel transfer
curl --request POST \
--url https://api.filexpress.app/api/external/v1/inventory/transfers/{id}/cancel \
--header 'X-API-Key: <api-key>'const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.filexpress.app/api/external/v1/inventory/transfers/{id}/cancel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.filexpress.app/api/external/v1/inventory/transfers/{id}/cancel"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.filexpress.app/api/external/v1/inventory/transfers/{id}/cancel",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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": {
"id": "3b8e2f10-7c4d-4a9e-b1f2-5d6c7e8f9a01",
"reference_number": "TR-0042",
"status": "cancelled",
"origin_branch": {
"id": "9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11",
"name": "Casa Matriz"
},
"destination_branch": {
"id": "3b8e2f10-7c4d-4a9e-b1f2-5d6c7e8f9a01",
"name": "Sucursal Centro"
},
"notes": "Reabastecimiento semanal",
"items": [
{
"product_id": "9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11",
"sku": "BEB-001",
"name": "Refresco 350ml",
"quantity": 24,
"unit_cost": 0.7
}
],
"total_cost": 16.8,
"created_at": "2026-10-01T09:00:00-06:00",
"transferred_at": null
}
}Authorizations
Integration API Key (Integrations → New Integration).
Headers
Optional. Unique key per operation (max. 100 characters, valid for 24 h per integration). A retry with the same key and the same body returns the original response (header Idempotent-Replayed: true) without repeating the operation; with a different body, or while the first is still in progress, it returns 409.
Maximum string length:
100Path Parameters
Transfer ID