POST api/Pcb/GetFreightByOrder

Get shipping cost (Call before payment.)

Request Information

URI Parameters

None.

Body Parameters

Request Parameters

FreightOrderRequset
NameDescriptionTypeAdditional information
OrderNo

Order number (if multiple orders settle shipping charges at the same time, order numbers are separated by ',' such as 'W00001AS1' or 'W00001AS1, W00001AS2')

string

Required

AddGroupNo

Order package number (if need to add package, the package number must be passed)

string

None.

ShipType

Logistics Company (No need to pass when adding package, otherwise, it must be passed)

ShipType

None.

Country

Country (No need to pass when adding package, otherwise, it must be passed)

string

None.

CountryCode

Country Number (No need to pass when adding package, otherwise, it must be passed)

string

None.

State

State/Provence/Region (No need to pass when adding package)

string

None.

Postalcode

Postal Code (Multiple ones separated by ',' such as '123456' or '123456,123457')(No need to pass when adding package)

string

None.

City

City (No need to pass when adding package, otherwise, it must be passed)

string

None.

Request Formats

application/json, text/json

Sample:
{
  "OrderNo": "sample string 1",
  "AddGroupNo": "sample string 2",
  "ShipType": 1,
  "Country": "sample string 3",
  "CountryCode": "sample string 4",
  "State": "sample string 5",
  "Postalcode": "sample string 6",
  "City": "sample string 7"
}

Response Information

Resource Description

FreightResponse
NameDescriptionTypeAdditional information
Days

Shipping Days

string

None.

Price

Shipping Cost

decimal number

None.

IsRas

DHL Remote Areas

boolean

None.

Status

Request processing results ('ok' or 'error')

string

None.

ErrorText

Error Description ( Empty when request processing successfully )

string

None.

Code

状态码

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Days": "sample string 1",
  "Price": 2.0,
  "IsRas": true,
  "Status": "sample string 4",
  "ErrorText": "sample string 5",
  "Code": 6
}