我正在将USPS RateV3 API升级到RateV4。我已经完成了文档中指定的所有内容。我有我的容器类型:
<Service>ONLINE</Service>
<Container>FLAT RATE ENVELOPE, FLAT RATE BOX, VARIABLE</Container>
同样适用于尺寸:
<Size>REGULAR, LARGE</Size>
这一切都在RateV3中完美运行,但在RateV4中无效。它只适用于容器类型为&#34; VARIABLE&#34;和大小是#34;常规&#34;。除此之外,我收到了这个错误:
FLAT RATE ENVELOPE is an invalid container type for a REGULAR package and ONLINE service.
此请求正常运行:
<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>
这不起作用并导致无效的容器类型错误:
<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>
有人能指出我正确的方向吗?
提前致谢。