Skip to main content

4. Order Status Retrieval API

This API is used to retrieve the current status of a GHTK order code.

Description

After the order has been sent to Giaohangtietkiem’s system, customers can check the order status using the order code.

Request

GET /services/shipment/v2/{TRACKING_ORDER}

Headers

Token: {API_TOKEN}
X-Client-Source: {PARTNER_CODE}

Parameters

ParameterRequiredDescription
TRACKING_ORDERyesThe GHTK order code or the Partner's order code is passed through the order.id field in the order creation API

Code

GET /services/shipment/v2/S1.A1.17373471 HTTP/1.1
Token: {API_TOKEN}
X-Client-Source: {PARTNER_CODE}

Response

Response

The system will return the result in JSON format. The returned data is described as follows:

ParameterDescription
label_idString - GHTK’s order label code
partner_idString - Partner's order code
statusString - Order status code. Refer the order status code table
status_textString - Order status
createdString - Order creation time, format: YY-MM-DD hh:mm:ss
modifiedString - Last modified time of the order, format: YY-MM-DD hh:mm:ss
messageString - Order notes
pick_dateString - Scheduled pickup date (if available); if the order has already been picked up, this is the actual pickup date
deliver_dateString - Scheduled delivery date (if available); if the order has already been delivered, this is the actual delivery date
customer_fullnameString - Recipient’s full name
customer_telString - Recipient’s phone number
addressString - Recipient’s address
storage_dayInteger - Number of days the order is stored at the GHTK warehouse before being returned
ship_moneyInteger - Shipping fee
insuranceInteger - Insurance fee
valueInteger - Insurance Value - the basis for compensation to the sender in case of loss or damage
weightInteger - Order weight in grams
pick_moneyInteger - COD amount
is_freeshipInteger - Freeship for the recipient
ext_feesArray Object - List of additional fees. See details in the table below

Details of each element in ext_fees:

ParameterDescription
typeString - Fee type. See the list of values in the table below
titleString - Display name of the fee
amountInteger - Fee amount

List of additional fee types:

typetitle
food_feeAdditional fee for produce/dry food orders
fragile_feeAdditional fee for fragile orders
reinforced_feeAdditional fee for reinforced packaging orders
fullbox_feeAdditional fee for full-box orders
try_on_feeTry-on fee
document_feeDocument/mail fee
short_exp_feeFuel surcharge
xfast_feeXfast fee
bbs_return_feeBBS return fee
bbs_loading_1_low_feeGround floor loading fee (leg 1)
bbs_loading_1_high_feeUpper floor loading fee (leg 1)
bbs_loading_2_low_feeGround floor loading fee (leg 2)
bbs_supporter_feeBBS loading support fee
bbs_waiting_feeWaiting fee per delivery point
deliver_to_door_feeDoor-to-door delivery fee
plant_feeAdditional fee for plant orders
otp_verification_feeOTP delivery confirmation fee
check_pickup_feePre-pickup inspection fee
co_check_feeTry-on/co-inspection fee
change_return_add_feeReturn address change fee
re_delivery_feeRe-delivery fee
change_address_feeDelivery address change fee
gam_solution_feeFee from the Gam Solution service

Success

{
"success": true,
"message": "",
"order": {
"label_id": "S1.A1.17373471",
"partner_id": "1234567",
"status": "1",
"status_text": "Chưa tiếp nhận",
"created": "2016-10-31 22:32:08",
"modified": "2016-10-31 22:32:08",
"message": "Không giao hàng 1 phần",
"pick_date": "2017-09-13",
"deliver_date": "2017-09-14",
"customer_fullname": "Vân Nguyễn",
"customer_tel": "0911222333",
"address": "123 nguyễn chí thanh Quận 1, TP Hồ Chí Minh",
"storage_day": "3",
"ship_money": "16500",
"insurance": "16500",
"value": "3000000",
"weight": "300",
"pick_money": 47000,
"is_freeship": "1",
"ext_fees": [
{
"type": "fragile_fee",
"title": "Phụ phí dễ vỡ",
"amount": 5000
}
]
}
}