Fedex Shipping Label API required fields
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 require开发者_Python百科d.
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?
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.
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.
精彩评论