Changes the transfer status. The status determines whether the items are deducted from the source and added to the target storage location.
v1/transfers/update_status.php
Parameters
| Field |
Type |
Required |
Description |
| transfer_id |
int |
Yes |
Transfer ID |
| status |
int |
Yes |
New status: 0 — Plan, 1 — Sent, 2 — Received |
Example request
{
"transfer_id": 6967,
"status": 2
}
Example response
{
"success": true
}
Errors
| Error |
Reason |
| No transfer_id in input |
A required field is missing (instead of transfer_id, the field's name) |
| Invalid status value. Must be one of: 0, 1, 2 |
Invalid status code |
| Transfer not found or access denied |
Transfer not found or deleted |