Rating object

First available in 4.1.0.

For External SystemsLink for TMWSuite use only.

External methods

The Return Value for the following methods is Rating.ReturnObjectQuote.

Method Name Parameters Token.ReturnObject.ReturnCode Description

Name

Data type (in C#)

CreateQuote

tokenValue

string

0 = Successful

-100 = Rates were not found for the provided inquiry

-1 = An exception occurred

Creates a new Quote object using the provided RateInquiry

inquiry

RateInquiry

The Return Value for the following methods is Rating.ReturnObjectValid.

Method Name Parameters Token.ReturnObject.ReturnCode Description

Name

Data type (in C#)

IsValidCompany

tokenValue

string

0 = Successful

-1 = An exception occurred

Indicates if the provided ID belongs to a valid company

companyId

string

IsValidShipper

tokenValue

string

0 = Successful

-1 = An exception occurred

Indicates if the provided ID belongs to a valid shipper

companyId

string

IsValidConsignee

tokenValue

string

0 = Successful

-1 = An exception occurred

Indicates if the provided ID belongs to a valid consignee

companyId

string

IsValidLocation

tokenValue

string

0 = Successful

-1 = An exception occurred

Indicates if the provided location is valid

location

AdHocAddress

IsValidCommodity

tokenValue

string

-1 = An exception occurred

Indicates if the provided ID belongs to a valid commodity

commodityId

string

The Return Value for the following methods is Rating.ReturnObjectServices.

Method Name Parameters Token.ReturnObject.ReturnCode Description

Name

Data type (in C#)

GetPickupServices

tokenValue

string

0 = Successful

-1 = An exception occurred

Returns a list of pickup services

GetDeliveryServices

tokenValue

string

0 = Successful

-1 = An exception occurred

Returns a list of delivery services

Rating.ReturnObjectQuote

Property Name Data Type (in C#) Comments

1

ErrorMessages

List<string>

2

ErrorObjectIndexList

List<int>

3

Exceptions

List<Exception>

4

Quote

Quote

5

ReturnCode

int

6

TraceMessages

List<string>

7

WarningMessages

List<string>

Rating.ReturnObjectValid

Property Name Data Type (in C#) Comments

1

ErrorMessages

List<string>

2

ErrorObjectIndexList

List<int>

3

Exceptions

List<Exception>

4

ReturnCode

int

5

TraceMessages

List<string>

6

Valid

bool

7

WarningMessages

List<string>

Rating.ReturnObjectServices

Property Name Data Type (in C#) Comments

1

ErrorMessages

List<string>

2

ErrorObjectIndexList

List<int>

3

Exceptions

List<Exception>

4

ReturnCode

int

5

Services

List<ServiceDetail>

6

TraceMessages

List<string>

7

WarningMessages

List<string>