FEDEX Web 服务 - 有关所需数据的信息
我已经使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Shipaccount 和 billaccount 不匹配,这可能会导致该错误。您应该向托运人开具帐单。
shipaccount and billaccount don't match which could cause that error. you should be billing to the shipper.
但是,关税帐户可能为空,因为默认情况下收件人在货件交付时支付关税。如果您想定义谁支付关税或运输费用,您必须在请求中定义该信息:例如:
最重要的部分在哪里 -> '付款类型' => 'SENDER', // 有效值 RECIPIENT、SENDER 和 THIRD_PARTY
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:
where the most important part is -> 'PaymentType' => 'SENDER', // valid values RECIPIENT, SENDER and THIRD_PARTY