Skip to main content

Get Transfer Order Detail

Use this api to get detail of transfer order.

Flow: When call the api, tf service will access db to read and return data.

URL : /api/get-tf/{tf_request_id}

Method : GET

Example : /api/get-tf/TFRQ35406

Success Response

Code : 200 OK

Content example

{
"success": true,
"errors": null,
"errorCode": null,
"data": {
"id": 52,
"order_number": "12312111",
"transfer_id": null,
"tf_request_id": "TFRQ35406",
"from_warehouse": "HLC",
"to_warehouse": "LVS",
"distance": "1.56",
"description": "abc",
"employee_name": "Hua Thanh Vinh",
"employee_id": "800756",
"receipt_date": null,
"ship_date": null,
"ops_note": null,
"source": "EMS",
"transfer_status": null,
"document_status": 0,
"sync_ax_status": 0,
"created_at": "2023-05-24T03:12:41.000000Z",
"items": [
{
"sku": "P00001",
"unit": "Hop",
"price": 5000,
"quantity": 2
},
{
"sku": "P00007",
"unit": "Hop",
"price": 12000,
"quantity": 1
}
],
"total": 22000
}
}

Error Response

Code : 400 BAD REQUEST

Content :

{
"success": false,
"errors": "No query results for model [App\\Models\\TransferOrder].",
"errorCode": 500,
"data": null
}