4D Shipping SDK 2020 .NET Edition
4D Shipping SDK 2020 .NET Edition
Questions / Feedback?

USPSAccount Type

Represents the details of a USPS account.

Remarks

This type contains data describing the USPS server and login information.

Example: Setting the fields of an account

USPSAccount account = new USPSAccount
account.Server = "http://production.shippingapis.com";
account.Password = "my_password";
account.UserId = "my_username";

The fields contained by this type are listed below.

Fields

AccountNumber
String

The shipper's Endicia account number.

This field is only used when shipping with Endicia and will take a production account number. During testing please set EndiciaTestMode which will automatically use a sandbox account. During testing this property does not need to be set.

Password
String

Password to use for logging in to the USPS Server.

This password is provided to you by USPS when you register for service. The password is not to be shared with others outside your organization, nor is it to be packaged, distributed, or sold to any other person or entity.

Note, the Password property has been depreciated by USPS, and remains only for backwards compatibility.

When PostageProvider has been set to ppEndicia, this must be the pass phrase associated with your postage account that was supplied to you by Endicia upon registration.

Server
String

URL for the USPS server where the requests are sent.

When PostageProvider has been set to ppEndicia, the live production URL will be set automatically. For testing please set EndiciaTestMode.

When PostageProvider has been set to ppStamps, the live production URL will be set automatically. For testing please set StampsTestMode.

There are two different live and test URLs that have been provided by the US Postal service for use with the Webtools APIs (and these components). There is one plaintext URL and one SSL-secured URL for both live and testing. These URLs are listed below, along with the components that use them.

Live Servers:

ServerUsed by
http://production.shippingapis.com/ShippingAPI.dllUSPSAddress, USPSRates, and USPSTrack
https://secure.shippingapis.com/ShippingAPI.dllUSPSShip and USPSShipIntl

Test Servers:

ServerUsed by
http://testing.shippingapis.com/ShippingAPITest.dllUSPSAddress, USPSRates, and USPSTrack
https://secure.shippingapis.com/ShippingAPITest.dllUSPSShip and USPSShipIntl

These test servers return CANNED RESPONSES. They will only accept a specific set of data, and will only return one pre-formed response. Any transaction that does not contain the exact data they expect will cause an error to be generated. Because of these limitations we strongly recommend you test using a live account.

Note that the label components must use the live server for testing, but with the Certify configuration setting set to True. There is no need to set Certify with Endicia or Stamps.com. Set EndiciaTestMode or StampsTestMode instead.

UserId
String

User Id for logging in to the USPS WebTools or Stamps.com Server.

This User Id is provided to you by USPS or Stamps.com when you register for service. The UserId is not to be shared with others outside your organization, nor is it to be packaged, distributed, or sold to any other person or entity. During testing set StampsTestMode to use the built-in sandbox account. This field is not used by Endicia.

Constructors

[VB.NET]
Public USPSAccount()

[C#]
public USPSAccount();



 
 
Copyright (c) 2019 4D Payments Inc. - All rights reserved.
4D Shipping SDK 2020 .NET Edition - Version 20.0 [Build 7233]