1. API v1 - 已弃用,请勿使用
ShipNitro CN
  • 身份验证
  • API v1 - 已弃用,请勿使用
    • 获取运输标签
      POST
    • 获取运费报价
      POST
    • 创建运输标签
      POST
    • 获取当前信用余额
      GET
  • API v2
    • 获取货件运费报价
      POST
    • 获取货件详情
      GET
    • 创建货件运输标签
      POST
    • 获取当前信用余额
      GET
    • 获取运单跟踪状态
      POST
    • 地址校验
      POST
  • 回调
    • v1 - 已弃用,请勿使用
      • 回调第 1 部分
    • v2
      • 客户创建运输标签回调
  • Schema
    • 运单号错误消息
  1. API v1 - 已弃用,请勿使用

获取运输标签

已棄用
预发布环境
https://staging.shipnitro.com/
预发布环境
https://staging.shipnitro.com/
POST
api/get/label
此接口可从 Shipnitro 获取运输标签。

請求

標頭參數

主體參數application/json

範例

回應

🟢200成功
application/json
主體application/json

請求請求範例
Shell
JavaScript
Java
Swift
curl --location 'https://staging.shipnitro.com/api/get/label' \
--header 'Authorization: Basic {{apiKey}}' \
--header 'Content-Type: application/json' \
--data '{
	"box_id": "api_666099e8f88ccf9a5d07b6f6",
    "label": {
        "format": "LINK"
    }
}'
回應回應範例
{
    "message": "Shipment is ready",
    "box_id": "api_66da7021fc8b9e02f10ff022",
    "status": "completed",
    "recipient": {
        "postal_code": "33436",
        "city": "Boynton Beach",
        "state_code": "FL",
        "address_line1": "11700 South Military Trail Unit",
        "country_code": "US",
        "person_name": "MR test",
        "company_name": "SHOES ON FIRST, INC",
        "phone_number": "0123456789",
        "residential": false
    },
    "reference_codes": {
        "ref_1": "test_reference_1",
        "ref_2": "DevTest",
        "ref_3": "test_reference_2"
    },
    "parcels": [
        {
            "weight": 16.65,
            "width": 46,
            "height": 32,
            "length": 59,
            "weight_unit": "KG",
            "dimension_unit": "CM",
            "count": 5
        }
    ],
    "master_tracking_number": "778410238340",
    "compiled_label": "https://www.shipnitro.com/download/66da7021fc8b9e02f10ff022?778410238340.pdf",
    "labels": [
        {
            "trackingNumber": "778410238340",
            "label": "https://www.shipnitro.com/download/api_66da7021fc8b9e02f10ff022/778410238340"
        },
        {
            "trackingNumber": "778410238350",
            "label": "https://www.shipnitro.com/download/api_66da7021fc8b9e02f10ff022/778410238350"
        },
        {
            "trackingNumber": "778410238361",
            "label": "https://www.shipnitro.com/download/api_66da7021fc8b9e02f10ff022/778410238361"
        },
        {
            "trackingNumber": "778410238372",
            "label": "https://www.shipnitro.com/download/api_66da7021fc8b9e02f10ff022/778410238372"
        },
        {
            "trackingNumber": "778410238383",
            "label": "https://www.shipnitro.com/download/api_66da7021fc8b9e02f10ff022/778410238383"
        }
    ]
}
修改時間 2026-09-04 21:54:55
上一頁
API v1 - 已弃用,请勿使用
下一頁
获取运费报价
Built with