FEDEX Web 服务 - 有关所需数据的信息

发布于 2024-12-25 11:39:18 字数 724 浏览 3 评论 0原文

我已经使用 FedEx 提供的 PHP 代码示例在 FedEx 上设置了一个开发人员测试帐户。我从 API 返回以下错误:

“所有指定的帐号必须匹配” - 代码 873

我找不到这是由什么引起的,我认为可能导致该问题的唯一原因是我有一个空的 $dutyaccount 变量,但我没有已提供任何税号,但没有任何说明说明该号是什么。

if($var == 'check') Return true;
//main variables needed to be passes
if($var == 'key') Return 'x8Qffhfhfhfuujj0gI6XW';
if($var == 'password') Return 'dGDJghghwi2BfKa2xdvgHU1245B';    

if($var == 'shipaccount') Return '519987020';
if($var == 'meter') Return '118551669';
if($var == 'billaccount') Return '519951408';
if($var == 'dutyaccount') Return ''; // what is this??

但是,如果我注释掉 dutyaccount,我仍然会收到相同的错误消息,因此也许根本不需要这样做。我找不到有关传递给 API 以恢复费率所需的变量的具体信息。有人可以帮忙吗?

I have set up a developer test account with FedEx using the PHP code examples provided by FedEx. I have the following error back from the API:

"All specified account numbers must match" - code 873

I cannot find what this is caused by, the only thing I think may be causing the issue is I have an empty vairable for $dutyaccount but I have not been supplied with any duty account number and have no instructions as to what this is.

if($var == 'check') Return true;
//main variables needed to be passes
if($var == 'key') Return 'x8Qffhfhfhfuujj0gI6XW';
if($var == 'password') Return 'dGDJghghwi2BfKa2xdvgHU1245B';    

if($var == 'shipaccount') Return '519987020';
if($var == 'meter') Return '118551669';
if($var == 'billaccount') Return '519951408';
if($var == 'dutyaccount') Return ''; // what is this??

However, if I comment out the dutyaccount I still get the same error message so perhaps this isnt even needed. I cannot find specific information on variables needed to be passed to the API to bring back rates. Can anyone help?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

浪菊怪哟 2025-01-01 11:39:18

Shipaccount 和 billaccount 不匹配,这可能会导致该错误。您应该向托运人开具帐单。

shipaccount and billaccount don't match which could cause that error. you should be billing to the shipper.

屋顶上的小猫咪 2025-01-01 11:39:18
if($var == 'shipaccount') Return 'XXX'; / your account
if($var == 'billaccount') Return 'XXX'; / who pays shipment charges
if($var == 'dutyaccount') Return 'XXX'; / who pays duties charges

但是,关税帐户可能为空,因为默认情况下收件人在货件交付时支付关税。如果您想定义谁支付关税或运输费用,您必须在请求中定义该信息:例如:

'DutiesPayment' => array(
    'PaymentType' => 'SENDER', // valid values RECIPIENT, SENDER and THIRD_PARTY
    'Payor' => array(
    'ResponsibleParty' => array(
        'AccountNumber' => getProperty('dutyaccount'),
        'Contact' => null,
        'Address' => array('CountryCode' => 'US')
        )
    )
),

最重要的部分在哪里 -> '付款类型' => 'SENDER', // 有效值 RECIPIENT、SENDER 和 THIRD_PARTY

if($var == 'shipaccount') Return 'XXX'; / your account
if($var == 'billaccount') Return 'XXX'; / who pays shipment charges
if($var == 'dutyaccount') Return 'XXX'; / who pays duties charges

but, dutyaccount could be empty because by default recipient pay duties when is delivered the shipment. if you want to define who pays the duties or transportation charges you must define that information in your request: ex:

'DutiesPayment' => array(
    'PaymentType' => 'SENDER', // valid values RECIPIENT, SENDER and THIRD_PARTY
    'Payor' => array(
    'ResponsibleParty' => array(
        'AccountNumber' => getProperty('dutyaccount'),
        'Contact' => null,
        'Address' => array('CountryCode' => 'US')
        )
    )
),

where the most important part is -> 'PaymentType' => 'SENDER', // valid values RECIPIENT, SENDER and THIRD_PARTY

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文