UPS条例草案第三方托运人? [英] UPS Bill to Third Party Shipper?

查看:178
本文介绍了UPS条例草案第三方托运人?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图找出如何使用API​​法案第三方UPS托运人帐号,当我尝试什么,我在下面列出这是行不通的!它说:一个单一的结算方式是每票货要求的错误消息。任何人有任何想法什么是错?

  $ ShipmentConfirmRequestXML->推('PaymentInformation');
                $ ShipmentConfirmRequestXML->推('prepaid');
                    $ ShipmentConfirmRequestXML->推('BillThirdParty');
                            $ ShipmentConfirmRequestXML->元素('账户号码','XXXXX');
                    $ ShipmentConfirmRequestXML->流行(); //结束BillShipper
                $ ShipmentConfirmRequestXML->流行(); //结束prepaid
            $ ShipmentConfirmRequestXML->流行(); //结束PaymentInformation


解决方案

第三方计费​​不是prepaid容器内。最终的结果应该XML看起来像这样的基础上,UPS API开发人员指南:

 < PaymentInformation>
    < BillThirdParty>
        < BillThirdPartyShipper>
            <&账户号码GT;&ABC123 LT; /账户号码>
            <&第三方GT;
                <地址>
                    <邮政code> 12345-6789< /邮政code>
                    <国家code>美国和LT; /国家code>
                < /地址>
            < /第三方>
        < / BillThirdPartyShipper>
    < / BillThirdParty>
< / PaymentInformation>

由于某些原因,UPS的API将始终失败,并在测试模式下的第三方计费​​,给人一种短暂120001错误,XML航运系统不可用,请稍后再试。关闭测试模式解决了这个问题 - 只是无效装运您确认code ++工程后

另外,如果你输入了不正确的帐户code第三方计费​​,同样的错误120001将返回。

I'm trying to figure out how to bill a third party UPS Shipper Account Number using the API, When I try what I have listed below it doesn't work! It says "A single billing option is required per shipment" in the error message. Anyone have any idea whats wrong?

$ShipmentConfirmRequestXML->push('PaymentInformation');
                $ShipmentConfirmRequestXML->push('Prepaid');
                    $ShipmentConfirmRequestXML->push('BillThirdParty');
                            $ShipmentConfirmRequestXML->element('AccountNumber', 'XXXXX');
                    $ShipmentConfirmRequestXML->pop(); // end BillShipper 
                $ShipmentConfirmRequestXML->pop(); // end Prepaid
            $ShipmentConfirmRequestXML->pop(); // end PaymentInformation

解决方案

Third party billing is not within the Prepaid container. The end result XML should look something like this, based on the UPS API developers guide:

<PaymentInformation>
    <BillThirdParty>
        <BillThirdPartyShipper>
            <AccountNumber>ABC123</AccountNumber>
            <ThirdParty>
                <Address>
                    <PostalCode>12345-6789</PostalCode>
                    <CountryCode>US</CountryCode>
                </Address>
            </ThirdParty>
        </BillThirdPartyShipper>
    </BillThirdParty>
</PaymentInformation>

For some reason, the UPS API will always fail with third party billing in test mode, giving a Transient 120001 error, "XML Shipping System is unavailable, please try again later". Switching off test mode fixes the problem - just void the shipment after you've confirmed your code works.

Also, if you ever enter an incorrect account code for third party billing, the same 120001 error will be returned.

这篇关于UPS条例草案第三方托运人?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆