4.1 创建提货请求

描述

本节将向您展示如何创建提货请求.

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

请求

数据结构

CreatePickup
领域 类型 强制性 备注
Pickup CreatePickupDetails[] 参考 CreatePickupDetails
CreatePickupDetails
领域 类型 强制性 备注
Shipper PersonInfo 参考 PersonInfo
Quantity Integer
Weight Numeric
PickupDateTime DateTime
HawbNo String[]
ShipPointID Integer
Remarks String
PersonInfo
字段 类型 必填 备注
Name String
ContactPerson String
IdentityNo String
Address1 String
Address2 String
Address3 String
Postcode String
City String
State String
CountryCode String
StationCode String
Phone1 String
Phone2 String
MobilePhone String
Fax String
Email String
Url String

样品:

{ "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": "2018-06-25T00:00:00+08:00" } ] }

响应

样品

{ "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": "PKR180629141901", "Quantity": 5, "Weight": 10.0, "PickupDateTime": "0001-01-01T00:00:00+00:00" } } ] }
Copyright © 2019 Unixus Solutions Sdn. Bhd. All rights reserved.