4.1 Create Pickup
Description
This section will show you how to create pickup.
Sandbox/Testing URL: https://sandbox-apiv2.unixus.com.my/Shipment/Pickup/v1/Create
Production/Live URL: https://apiv2.unixus.com.my/Shipment/Pickup/v1/Create
Method : POST
Content-Type : application/json
Accept-Language : en
Authorization : Bearer {access_token}
Request
Data Structure
Create Pickup
Field | Type | Mandatory | Remarks |
---|---|---|---|
Pickup | CreatePickupDetails[] | Yes | Refer to CreatePickupDetails |
CreatePickupDetails
Field | Type | Mandatory | Remarks |
---|---|---|---|
Shipper | PersonInfo | Yes | Refer to PersonInfo |
Quantity | Integer | Yes | |
Weight | Numeric | Yes | |
PickupDateTime | DateTime | Yes | |
Remarks | String | No |
PersonInfo
Field | Type | Mandatory | Description |
---|---|---|---|
Name | String | No | |
ContactPerson | String | Yes | |
IdentityNo | String | No | |
Address1 | String | Yes | |
Address2 | String | No | |
Address3 | String | No | |
Postcode | String | Yes | |
City | String | Yes | |
State | String | Yes | |
CountryCode | String | Yes | |
StationCode | String | No | |
Phone1 | String | Yes | |
Phone2 | String | No | |
MobilePhone | String | No | |
Fax | String | No | |
String | No | ||
Url | String | No |
Sample:
{
"Pickup": [
{
"Shipper": {
"Name": "Unixus SDN BHD",
"ContactPerson": "Nicholas",
"Address1": "BLOCK A, GROUND FLOOR, GL06",
"Address2": "Kelana Square, No.17, Jalan SS7/26",
"Postcode": "47301",
"City": "Petaling Jaya",
"State": "Selangor",
"CountryCode": "MY",
"Phone1": "+60378038830",
"Phone2": "111",
"Mobile": ""
},
"Quantity" : 5,
"Weight": 10.0,
"PickupDateTime": "2019-01-09T00:00:00+08:00"
}
]
}
Response
Sample
{
"Summary": {
"Total": 1,
"Success": 1,
"Failed": 0
},
"Pickup": [
{
"IsSuccess": true,
"PickupDetails": {
"Shipper": {
"Name": "Unixus SDN BHD",
"ContactPerson": "Nicholas",
"Address1": "BLOCK A, GROUND FLOOR, GL06",
"Address2": "Kelana Square, No.17, Jalan SS7/26",
"Postcode": "47301",
"City": "Petaling Jaya",
"State": "Selangor",
"CountryCode": "MY",
"Phone1": "+60378038830",
"Phone2": "111"
},
"PickupNo": "PKR190103152306",
"Quantity": 5,
"Weight": 10,
"PickupDateTime": "2019-01-09T00:00:00+08:00"
}
}
]
}