3.6 更新装运重量

描述

本节将展示如何更新单个或多个单号的总重量来更新装运重量.

开发/测试环境   : https://sandbox-apiv2.unixus.com.my/shipment/v2/UpdateWeight
生产/正式环境   : https://apiv2.unixus.com.my/shipment/v2/UpdateWeight
Method         : POST
Content-Type   : application/json
Accept-Language: en
Authorization  : Bearer {access_token}

请求

数据结构

UpdateShipmentWeight
字段 类型 必填 备注
ShipmentsWeight UpdateShipmentsWeightDetails[] Refer to UpdateShipmentsWeightDetails
UpdateShipmentsWeightDetails
字段 类型 必填 备注
HawbNo String
ActualWeight Numeric

样品:

POST /{api_version}/UpdateWeight
Content-Type: application/json
Accept-Language: en
Authorization: Bearer {access_token}
{ "ShipmentsWeight" : [ { "HawbNo" : "458040010395273", "ActualWeight" : 3.0 }, { "HawbNo" : "458040010400335", "ActualWeight" : 7.0 } ] }

响应

样品

{ "Summary": { "Total": 2, "Success": 2, "Failed": 0 }, "ShipmentsResponse": [ { "IsSuccess": true, "ShipmentWeightDetails": { "HawbNo": "458040010395273", "ActualWeight": 3.0 } }, { "IsSuccess": true, "ShipmentWeightDetails": { "HawbNo": "458040010400335", "ActualWeight": 7.0 } } ] }
Copyright © 2019 Unixus Solutions Sdn. Bhd. All rights reserved.