This API describes how to get a shipment label detail.
Common Parameter
Test Endpoint: https://api-dev.gcparcelservice.com/openapi/shipment-label/detail
Production Endpoint: https://api.gcparcelservice.com/openapi/shipment-label/detail
Method: POST
Request Body
{
"reference_no": "123abc"
}
Request Body Explanation
Attribute Name | Type | Description |
---|---|---|
reference_no | String | Reference Number |
Response Body
{
"code": 200,
"data": [
{
"reference_no": "123abc",
"packages": [
{
"name": "Package 1",
"shipping_method": "STAND",
"tracking_number": "1ZGG47310324343941",
"label_pdf": "https://url-to-label.com/package1.pdf",
"tracking_url": "https://www.goforgps.com/tracking/?search=1ZGG47310324343941"
}
]
}
]
}
Response Body Explanation
Attribute Name | Type | Description |
---|---|---|
code | Integer | Response code: 200 successful, 400/500 failed |
reference_no | String | Reference Number |
packages | List | package shipping information |
name | String | package name |
shipping_method | String | Method of shipping |
tracking_number | String | Shipping tracking number |
label_pdf | String | Download link of shipping label's PDF file |
tracking_url | String | Link of tracking trace |
Code Example
Get Shipment Label Detail API Code Example