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

获取货件详情

预发布环境
https://staging.shipnitro.com/
预发布环境
https://staging.shipnitro.com/
GET
api/v2/shipments/{box_id}
此接口用于获取货件详情

請求

路徑參數

標頭參數

回應

🟢200链接响应成功
application/json
主體application/json

🟠401未授权
🟠404未找到记录
🔴500服务器错误
🟢200已作废的运输标签
🟠424运输标签创建失败
請求請求範例
Shell
JavaScript
Java
Swift
curl --location 'https://staging.shipnitro.com/api/v2/shipments/api_67854dea770a888e3e0dd692' \
--header 'Authorization: Basic {{apiKey}}'
回應回應範例
200 - 成功
{
    "message": [
        "Shipment is ready"
    ],
    "boxId": "api_666099dss22qsaasda5d07b6f6",
    "status": "completed",
    "recipient": {
        "addressLine1": "12630 NW 115th AVE",
        "addressLine2": null,
        "city": "Medley",
        "stateCode": "FL",
        "postalCode": "33178",
        "countryCode": "US",
        "residential": false,
        "personName": "Test Company",
        "companyName": "Shipnitro",
        "email": null,
        "phoneNumber": "0123456789"
    },
    "referenceCodes": {
        "reference1": "testReference1",
        "reference2": "test",
        "reference3": "testReference2"
    },
    "parcels": [
        {
            "length": 42.75,
            "width": 27.55,
            "height": 54.15,
            "dimensionUnit": "CM",
            "weight": 10.51,
            "weightUnit": "KG",
            "count": 1
        }
    ],
    "masterTrackingNumber": "796745219924",
    "totalCost": 21.5,
    "compiledLabel": "https://www.staging.shipnitro.com/download/666099dss22qsaasda5d07b6f6?796745219924.pdf",
    "labels": [
        {
            "trackingNumber": "796745219924",
            "label": "https://www.staging.shipnitro.com/download/api_666099dss22qsaasda5d07b6f6/796745219924"
        }
    ]
}
修改時間 2026-09-04 21:54:55
上一頁
获取货件运费报价
下一頁
创建货件运输标签
Built with