Get TF Delivery Detail
Use this api to get delivery info detail.
Flow: When call the api, get delivery info in db. If already has a tracking_code, call delivery service to get status and shipping fee.
URL : /api/deliveries/tracking-delivery
Method : GET
Params : tf_request_id
Example : /api/deliveries/tracking-delivery?tf_request_id=TFRQ35406
Success Response
Code : 200 OK
Content example
{
"success": true,
"errors": null,
"errorCode": null,
"data": {
"id": 1,
"tf_request_id": "TFRQ35406",
"delivery_provider_code": "ahamove",
"delivery_provider_name": "Ahamove",
"delivery_time": null,
"time_call_3_party": null,
"service": "SGN-EXPRESS",
"tracking_code": null,
"expected_packed": 3,
"estimate_shipping_fee": 26000,
"expected_delivered": null,
"shipping_fee": null,
"status": null
}
}
Error Response
Code : 400 BAD REQUEST
Content :
{
"success": false,
"errors": "No query results for model [App\\Models\\TransferOrder].",
"errorCode": "INVALID_INPUT",
"data": null
}