Friday, 15 July 2011

c# - USPS RateV4 - Invalid container type -



c# - USPS RateV4 - Invalid container type -

i in process of upgrading usps ratev3 api ratev4. have done specified in docs. have container types like:

<service>online</service> <container>flat rate envelope, flat rate box, variable</container>

similarly size:

<size>regular, large</size>

this working in ratev3 not working in ratev4. works when container type "variable" , size "regular". other getting error:

flat rate envelope invalid container type regular bundle , online service.

this request working correctly:

<ratev4request userid=""> <package id="0"> <service>online</service> <ziporigination>1234</ziporigination> <zipdestination>5678</zipdestination> <pounds>1</pounds> <ounces>0.0</ounces> <container>variable</container> <size>regular</size> <machinable>true</machinable> </package> </ratev4request>

this not working , results in invalid container type error:

<ratev4request userid=""> <package id="0"> <service>online</service> <ziporigination>1234</ziporigination> <zipdestination>5678</zipdestination> <pounds>1</pounds> <ounces>0.0</ounces> <container>flat rate envelope</container> <size>regular</size> <machinable>true</machinable> </package> </ratev4request>

can point me in right direction?

thanks in advance.

c# php asp.net api usps

No comments:

Post a Comment