USPS Commercial Rates and Cubic #54
-
I'm able to get rates back from the USPS api, however the rates are only the retail rates. Additionally, even though package dimensions are sent with the request, no cubic rates (i.e. Priority Mail cubic, or Ground Advantage Cubic) are returned. How can I get these rates? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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:
And setting appropriate container type:
But if rates are not enabled for your account, then you will get this error in the response: |
Beta Was this translation helpful? Give feedback.
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:
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.