Skip to content

USPS Commercial Rates and Cubic #54

Answered by alexeybusygin
owi2000 asked this question in Q&A
Discussion options

You must be logged in to vote

Cubic rates should be enabled for your account on the USPS side. You can try to fetch them by passing the cubic method name to the USPS:

rateManager.AddProvider(new USPSProvider(uspsUserId, "PRIORITY MAIL CUBIC"));

And setting appropriate container type:

var packages = new List<Package>
{
    new Package(12, 12, 12, 35, 150, "CUBIC PARCELS")
}

But if rates are not enabled for your account, then you will get this error in the response:
The requested Mail Service is not available for the specified customer type.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by alexeybusygin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants