Skip to main content

5. Get Order Status API

This API provides the current status of the order.

Overview

After an order is submitted to Giaohangtietkiem's system, customers can check the status of their orders using the order code.

Request

Endpoint

GET /services/shipment/v2/{TRACKING_ORDER}

Headers

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

Parameters

ParameterMandatoryDesc
TRACKING_ORDERYesGHTK's reference ID or the Partner's reference ID (submitted with the order.id field in the "Submit an Order" API).

Code

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

Response

Response description

ParameterDatatypeMandatory (Y/N)Description
label_idStringYGHTK’s reference ID
partner_idStringYPartner’s reference ID
statusIntegerYStatus code (refer to table "Order Status Details" below for list of status code)
status_textStringNStatus description (in Vietnamese)
createdStringYCreated date of the package order Format: YY-MM-DD hh:mm:ss
modifiedStringYLast modified date of the package order Format: YY-MM-DD hh:mm:ss
messageStringNNotes of the package order (in Vietnamese)
pick_dateStringNPicking-up date of order
deliver_dateStringNDelivery date of order
customer_fullnameStringYCustomer’s fullname
customer_telStringYCustomer’s phone number
addressStringYDetailed address to deliver the order
storage_dayIntegerNNumber of days to store the order at GHTK’s warehouse before returning
ship_moneyIntegerYShipping fee
insuranceIntegerNInsurance fee
valueIntegerNDeclared monetary value of the order package. The insurance fee will be calculated based on this value. (in VND)
weightIntegerYWeight of the package (in gram)
pick_moneyIntegerYCash amount needs to be collected at delivery (in VND)
is_freeshipIntegerNTo indicate if this is a free shipping order or not.

Successful request

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