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

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"
}
}