Fedex 运输标签 API 必填字段
我在文档或在线的任何地方都找不到此信息。我想知道什么是必填字段以及在什么情况下需要这些字段。
现在我收到: RequestedShipment 发件人联系方式 - 电话号码 是 Fedex 的回复所必需的,我的问题是我的客户没有电话号码,或者在某些情况下没有格式因为电话号码是国际电话号码(这也失败了)。
打印联邦快递运输标签时,有什么方法可以不将电话号码作为必填字段吗?
I can't find this information anywhere in the documentation or online. I'm looking to know what are the required fields and in what circumstances they are required.
Right now I'm getting: RequestedShipment Shipper contact - phoneNumber is required as a response from Fedex and my problem is that I have customers that don't have a phone number or, in some cases, the formatting for the phone number is international (which also fails).
Is there any way to not make the phone number a required field when printing a fedex shipping label?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您没有电话号码,而这是必需的,有些人会输入自己的电话号码,以便交易顺利进行。如果是国内货件,电话号码必须为 10 位数字。对于国际,我认为它必须是 1-15 位数字。请务必删除所有非数字字符。
至于输入所需的号码,您需要在将交易发送到 FedEx 之前自行处理。
If you don't have a phone number and it's required, some will enter in their own phone number so that the transaction will go thru. If it's a domestic shipment, the phone number must be 10 digits. For International I believe it must be 1-15 digits. Be sure to strip any character that is not numeric.
As far as making the number required entry, you need to handle that on your side before you send the transaction to FedEx.
您可以阅读这份船舶服务文件:
https://www.fedex.com/templates/components/apps/wpor/secure/downloads/pdf/201707/FedEx_WebServices_ShipService_WSDLGuide_v2017.pdf
在第 22 页,您可以获取所有参数,必需的参数是其中提到,您必须发送创建运输标签并获取该运输服务的跟踪号码的请求。您只有在登录您的 FedEx 帐户后才能访问此 pdf 文件,并且只有您拥有以下凭据才能成功:测试帐号、密钥、密码、电表编号。
当您的整个请求准备就绪时,如果您处于测试模式,请尝试发送:
https://wsbeta.fedex.com:443/web-services/ship 或 https://wsbeta.fedex.com:443/web-services
如果您正在生产中,请从这些链接中删除测试版。
You can read out this ship service document:
https://www.fedex.com/templates/components/apps/wpor/secure/downloads/pdf/201707/FedEx_WebServices_ShipService_WSDLGuide_v2017.pdf
On page number 22 you can get all the parameters, required ones are mentioned in there you have to send in a request for creating a shipping label and getting a tracking number for that shipping service. This pdf may be accessible to you only after login in your FedEx account and you can get success only if you have credentials: test account number, key, password, meter number.
When your whole request is ready if you are in testing mode try sending on:
https://wsbeta.fedex.com:443/web-services/ship or https://wsbeta.fedex.com:443/web-services
and if you are in production remove beta from these links.