Skip to main content

Estimate TF Delivery

Use this api to estimate delivery info of TF order.

Flow: When call the api, call delivery service to get the estimate.

URL : /api/deliveries/estimate

Method : POST

Validate Rule

'tf_request_id' => ['required', 'exists:transfer_orders,tf_request_id'],
'shipping_carrier' => ['required'],
'expected_packed' => ['required', 'exists:expected_packed,value'],

Input

{
"tf_request_id": "TFRQ35406",
"shipping_carrier": "ahamove",
"expected_packed": "5"
}

Success Response

Code : 200 OK

Content example

{
"success": true,
"errors": null,
"errorCode": null,
"data": {
"serviceCode": "SGN-BIKE",
"minFee": 28000,
"estimateFeeData": [
{
"delivery_service": "SGN-EXPRESS",
"shipping_fee": 28770
},
{
"delivery_service": "SGN-BIKE",
"shipping_fee": 28000
}
]
}
}

Error Response

Code : 400 BAD REQUEST

Content :

{
"success": false,
"errors": {
"provider": "Provider not found!"
},
"errorCode": null,
"data": null
}