5.6.2 Update Shipment Weight (RESTful)
Print Shipment
Step 1: Sample source code to refresh token (AccessToken)
Method: POST
Sandbox/Testing URL: https://sandbox-apiv2.unixus.com.my/Token/Refresh
Production/Live URL: https://apiv2.unixus.com.my/Token/Refresh
Headers:
- Content-Type: application/json
{
"RefreshToken" : "88888888"
}
Step 2: Sample source code for Update Shipment Weights.
Method: POST
Sandbox/Testing URL: https://sandbox-apiv2.unixus.com.my/shipment/v2/UpdateWeight
Production/Live URL: https://apiv2.unixus.com.my/shipment/v2/UpdateWeight
Headers:
- Content-Type: application/json
- Authorization: Bearer $REPLACE_WITH_ACCESSTOKEN_FROM_STEP_1
{
"ShipmentsWeight" : [
{
"HawbNo" : "458040010395273",
"ActualWeight" : 3.0
},
{
"HawbNo" : "458040010400335",
"ActualWeight" : 7.0
}
]
}