- Submit your shipping order.
- URL: http://www.hub-ez.com/api/services/app/hawb/apiCreateHawb
- Request Type: post
- Content-Type: application/json
- Remark: please add {header =Authorization:“Bearer “+token} in your post header list
Parameter List
Parameters | Type | Required | Description |
---|---|---|---|
CustomerHawb | Char(100) | N | Customer reference number |
HawbNumber | Nvarchar(20) | N | HawbNumber |
SenderName | Char(100) | N | If no value, use customer default information |
SenderAddress | Char(500) | N | If no value, use customer default information |
SenderPhone | Char(40) | N | If no value, use customer default information |
ReceiverName | Char(100) | Y | |
ReceiverAddress1 | Char(500) | Y | |
ReceiverTown | Char(500) | N | |
ReceiverTel | Char(40) | Y | |
ReceiverContactPerson | Char(100) | N | ReceiverContactPerson |
ReceiverCountry | Char(20) | Y | JP/CN/US (ISO CountryCode) |
ReceiverProvince | Char(100) | N | Please ref the country and postcode <span “malgun=”” gothic=”” semilight”;color:black;mso-themecolor:text1;mso-font-kerning:=”” 0pt’=”” lang=”EN-US微软雅黑”,sans-serif;mso-bidi-font-family:”>for the specific service |
ReceiverCity | Char(100) | N | Please ref the country and postcode <span “malgun=”” gothic=”” semilight”;color:black;mso-themecolor:text1;mso-font-kerning:=”” 0pt’=”” lang=”EN-US微软雅黑”,sans-serif;mso-bidi-font-family:”>for the specific service |
ReceiverZip | Char(100) | Y | Please ref the country and postcode <span “malgun=”” gothic=”” semilight”;color:black;mso-themecolor:text1;mso-font-kerning:=”” 0pt’=”” lang=”EN-US微软雅黑”,sans-serif;mso-bidi-font-family:”>for the specific service |
Weight | decimal | Y | Weight(KG) When ReceiverCountry is “CN”The maximum weight can not be over than 10KG |
DeclareCurrency | Char(3) | Y | USD/CNY/HKD(ISO Currency code) |
DeclareValue | decimal | Y | |
ServiceCode | char | Y | Pls get service code from our sales manager |
DutyType | char | Y | DDP/DDU |
Content | Char(500) | Y | String*1 |
ReceiverEmail | char | N | |
ReceiverId | char | N | |
ImportBatchId | char | N | Import batch ID |
ShipmentType | Enum | N | 10 (Document ) 20 (NonDocument) 30 (Mixed) |
PaymentType | Char(100) | N | Acc/Prepaid COD Cash |
Pieces | int | N | total number of packages |
Height | decimal | N | Height |
Width | decimal | N | Width |
Length | decimal | N | Length |
Remark | Char(500) | N | Remark |
ReceiverVATNumber | Nvarchar(20) | N | Mandatory for “HOME” “BUSINESS” service |
ReceiverEORINumber | Nvarchar(20) | N | Mandatory for “HOME” “BUSINESS” service |
ShipperEoriNumber | Nvarchar(20) | N | |
shipperVATNumber | Nvarchar(20) | N | |
CIFCost | Decimal | N | |
CIFCostCurrency | Char(3) | N | |
FBA_ConsigneeName | Nvarchar(35) | N | |
FBA_ConsigneeStreet | Nvarchar(35) | N | |
FBA_ConsigneeCountry | Char(2) | N | |
FBA_ConsigneeTel | Nvarchar(30) | N | |
FBA_ConsigneeEmail | Nvarchar(100) | N | |
FBA_ConsigneeProprietyNum | Nvarchar(8) | N | |
FBA_ConsigneeVATNumber | Nvarchar(20) | N | |
FBA_ConsigneeEORINumber | Nvarchar(20) | N | |
InsuranceValue | decimal | N | |
ApiCreateHawbItem | |||
Content | Char(500) | Y | Declare item name |
Price | decimal | Y | Item price |
Pieces | int | Y | Item pieces |
Weight | decimal | Y | Item weight |
HsCode | Char(500) | N | When ReceiverCountry is “CN”and ShipmentType is “DDP” Please ref the CNHScodeList |
SKU | Nvarchar(255) | N | |
Website | Nvarchar(255) | N |
Request Parameter Example
{
"customerHawb": "MAY498563",
"senderName": null,
"senderAddress": null,
"senderPhone": null,
"hawbNumber": null,
"receiverName": "Draco Wu",
"receiverAddress1": "G/F 527 SHA KONG WAI",
"receiverTown": "HONG KONG",
"receiverTel": 12345875956,
"ReceiverContactPerson":null,
"receiverCountry": "HK",
"receiverProvince": "PING SHAN YUEN LONG",
"receiverCity": "PING SHAN",
"receiverZip": 999077,
"weight": 0.26,
"declareCurrency": "GBP",
"declareValue": 35.66,
"serviceCode": "ADC",
"dutyType": "DDU",
"content": "Disney Classic Core Dumbo 35cm*1",
"receiverEmail": "ee2222hk@gmail.com",
"receiverId": null,
"importBatchId": null,
"shipmentType": 20,
"PaymentType":null,
"Pieces":null,
"height": null,
"width": null,
"length": null, "InsuranceValue":0, "remark":null, "hawbItems":[{ "content":"Disney Classic Core Dumbo 35cm", "price": 35.66, "pieces": 1, "weight": 0.26, "hsCode": null }]}
Response of succeed Example
{
"result": {
"hawbNumber":"123456789" ,
"result": true,
"resultMsg": null
},
"targetUrl": null,
"success": true,
"error": null,
"unAuthorizedRequest": false,
"__abp": true
}
Response of failed Example
{
"result": {
"hawbNumber": null,
"result": false,
"resultMsg": "result msg"
},
"targetUrl": null,
"success": true,
"error": null,
"unAuthorizedRequest": false,
"__abp": true
}