Returns a transfer with its lines.
v1/transfers/get_entry.php
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| transfer_id | int | Yes | Transfer ID |
Response
An object transfer with the transfer's fields:
| Field | Type | Description |
|---|---|---|
| id | int | Transfer ID |
| num | string | Number |
| date | string | Transfer date, YYYY-MM-DD |
| status | int | Status: 0 Plan, 1 Sent, 2 Received |
| source_storage_id | int | Source storage location |
| source_storage_name | string | Source storage location name |
| target_storage_id | int | Target storage location |
| target_storage_name | string | Target storage location name |
| cost | float | Cost of what was transferred |
| price | float | Value of the products at their sale price. 0 for a material transfer |
| amount | float | Total quantity. null if the items have different units |
| lines | int | Number of lines |
| notes | string | Notes |
And lines in two arrays: materials and products. Only the array of the type the transfer moves is filled; the other comes empty.
| Field | Type | Description |
|---|---|---|
| id | int | Material or product ID |
| sku | string | SKU |
| name | string | Name |
| amount | float | Quantity |
| unit | string | Unit of measure |
| cost | float | Line cost |
| position | int | Line number, from 0 |
The lines from the response can be sent to v1/transfers/edit unchanged.
Example request
{
"transfer_id": 6967
}
Example response
{
"success": true,
"transfer": {
"id": 6967,
"num": "31",
"date": "2026-10-06",
"status": 1,
"source_storage_id": 3998,
"source_storage_name": "Main",
"target_storage_id": 4001,
"target_storage_name": "Store",
"cost": 61500,
"price": 125000,
"amount": 25,
"lines": 2,
"notes": "To the Main St store",
"materials": [],
"products": [
{
"id": 512,
"sku": "P-TABLE-01",
"name": "Dining table",
"amount": 5,
"unit": "pcs",
"cost": 30500,
"position": 0
},
{
"id": 540,
"sku": "P-CHAIR-01",
"name": "Chair",
"amount": 20,
"unit": "pcs",
"cost": 31000,
"position": 1
}
]
}
}
Errors
| Error | Reason |
|---|---|
| No transfer_id in input | transfer_id is missing |
| Transfer not found or access denied | Transfer not found or deleted |