5.1.2 Create Shipments (RESTful)

Create 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 to create shipment
Method: POST
Sandbox/Testing URL: https://sandbox-apiv2.unixus.com.my/shipment/v2/Create
Production/Live URL: https://apiv2.unixus.com.my/shipment/v2/Create

Headers:
- Content-Type: application/json
- Authorization: Bearer $REPLACE_WITH_ACCESSTOKEN_FROM_STEP_1
{ "Shipments": [ { "Shipper": { "Name": "Unixus Solutions Sdn. Bhd.", "ContactPerson": "Mr Mehmet Abadi", "Address1": "46-02 JALAN TUN ABDUL RAZAK,", "Address2": "SUSUR 1,", "Address3": "", "Postcode": "80000", "City": "JOHOR BAHRU", "State": "JOHOR", "CountryCode": "MY", "Phone1": "+6072222668" }, "Consignee": { "ContactPerson": "Mr Nick Champ", "Address1": "Test Address 1", "Address2": "Test Address 2", "Postcode": "70000", "City": "SEREMBAN", "State": "NEGERI SEMBILAN", "CountryCode": "MY", "Phone1": "03-8888888" }, "Items": [ { "Description": "SHOES", "Quantity": 1, "UnitValue": 20.0, "HSCode": "64035990", "SKU": "BC008237", "Url": "http://shoes.com/?id=123" } ], "Packages": [ { "PackageReference": "PKG001", "Length": 10.0, "Width": 10.0, "Height": 30.0, "ActualWeight": 3.5 } ], "PackageType": "SPX", "WeightType": "KG", "ShipmentDate": "2019-01-01T00:00:00+08:00", "TOSMode": "MY-E-LWE", "CurrencyCode": "MYR" } ] }

Copyright © 2019 Unixus Solutions Sdn. Bhd. All rights reserved.