Shipping Integrator V5 - Online Help
Shipping Integrator V5
Questions / Feedback?

PayorDetail Type

Represents the payor details responsible for payment.

Remarks

This type contains data of the responsible party for payment of shipping charges, or duties and taxes. This is used in a ship request.

Example: Setting the fields

PayorDetail payor = new PayorDetail 
payor.Type = PT_RECIPIENT
payor.AccountNumber = "123456789"
payor.CountryCode = "US"

The fields contained by this type are listed below.

Fields

AccountNumber
String

The account number of the party responsible for payment (shipping charges, or duties and taxes).

This is required to be provided in the ship request, only if PayorType is set to 'RECIPIENT' or 'THIRDPARTY'. Otherwise, it defaults to AccountNumber.

Address1
String

Street name. In a ship request, this is required to be provided for both sender and recipient. In all other requests, it is required for a valid physical address. Combination of Address1 and Address2 should not exceed 35 characters.

Address2
String

A specific detail on the address (such as building, suite, apartment, floor number etc.). This is optional. Combination of Address1 and Address2 should not exceed 35 characters.

City
String

Name of city, town, etc.

CountryCode
String

The country code for the payor of the shipment, or duties and taxes.

When shipping via FedEx Express, the CountryCode is required to be provided in the ship request only if PayorType is set to 'RECIPIENT' or 'THIRDPARTY'. For FedEx Ground shipments, the CountryCode is required only if PayorType is set to 'THIRDPARTY'.

For UPS, this should be the same as it was entered in the UPS system when this account was set up. In domestic shipments, it will always default to US.

Name
String

Identifies the payor's name.

Name is required only if PayorType is set to 'THIRDPARTY'.

Note: This field is only applicable to UPSFreightRates and UPSFreightShip.

PayorType
TPayorTypes

Method of payment for shipment, or duties and taxes. This is required to be provided in a ship request. Valid payment types are:

ptSender (0)
ptRecipient (1)
ptThirdParty (2)
ptCollect (3)
ptConsignee (4)

The COLLECT payment type is only supported in FedEx Ground services. The CONSIGNEE type is only supported in UPS service.

For FedEx, when this field is set to a value other than 0 (ptSender), the AccountNumber and CountryCode are required to be provided in the request as well. Otherwise, those will default to AccountNumber and CountryCode.

For UPS, when set to ptSender, the AccountNumber is automatically set to AccountNumber. When ptRecipient is specified, AccountNumber and ZipCode are required to be provided in the request. For return international shipments, this option is invalid for transportation charges. And, when ptThirdParty has been specified, the AccountNumber, ZipCode and CountryCode are required to be provided in the request. When ptConsignee is specified, it indicates that UPS Consignee Billing option is selected, no other fields need to be set. ptConsignee only applies to US/PR and PR/US shipment origins and destination.

State
String

State or province code. This is the identifying abbreviation for US state, Canada province, etc. In a ship request, this is required to be provided for both sender and recipient (where applicable). Format and presence of this field will vary, depending on country.

ZipCode
String

Payor's postal code (if applicable).

This is only applicable to UPS and is the corresponding postal code of the UPS AccountNumber's pickup address. This should be the same as it was entered in the UPS system when this account was set up.

It can be provided in a ship request only if the PayorType is set to 1 (RECIPIENT) or 2 (THIRDPARTY).

Maximum length: 10.

Constructors

[VB.NET]
Public PayorDetail()

[C#]
public PayorDetail();



[VB.NET]
Public PayorDetail(ByVal PayorType As Integer, ByVal AccountNumber As String, ByVal CountryCode As String)

[C#]
public PayorDetail(int payorType, string accountNumber, string countryCode);



 
 
Copyright (c) 2017 /n software inc. - All rights reserved.
Build 5.0.6240.0