Rank: Member
Groups: Authorized User, Developers Joined: 11/12/2018(UTC) Posts: 25
Thanks: 1 times Was thanked: 4 time(s) in 3 post(s)
|
I'm trying to get FedEx with OAuth working on a our 9.0.9 development site. I got the test keys and account # and configured the plugin to use test mode and debug mode. I've run into the following issues. 1. While setting up a project on FedEx's developer site, the Track API can not be selected with any of the other APIs. It looks like an either/or choice (either only Tracking or any combination of other). I selected Address Validation API and Rates and Transit Times API. 2. On the AC configuration page, if I set Pickup Type to "Regular stop", the debug log shows the following response: Code:Receive: {"transactionId":"c286c7c1-f01c-4775-9a7d-0aec92255531","errors":[{"code":"INVALID.INPUT.EXCEPTION","message":"Invalid field value in the enum pickupType"}]}
Relevant line in sent data is: "pickupType": "REGULAR_STOP",) 3. If I choose a different Pickup Type, I get the following response: Code:Receive: {
"transactionId" : "APIF_SV_RATC_TxID607eddad-0918-4e6c-93c0-eef236e4568b",
"errors" : [ {
"code" : "REQUEST.MISMATCH",
"message" : "The response is unavailable for the request payload sent to this virtualized sandbox instance. Please use the exact request payload from API JSON Collection available for download through FedEx Developer Portal and try again."
} ]
}
An example of the sent date is (account number masked by me): Code:Send: {
"accountNumber": {
"value": "XXXXXXXXX"
},
"requestedShipment": {
"shipper": {
"contact": null,
"address": {
"city": "Chesterton",
"stateOrProvinceCode": "IN",
"postalCode": "46304",
"countryCode": "US",
"residential": false,
"streetLines": [
"1200 Cuting Edge Dr.",
""
]
}
},
"recipients": null,
"recipient": {
"contact": null,
"address": {
"city": "SACRAMENTO",
"stateOrProvinceCode": "CA",
"postalCode": "95828",
"countryCode": "US",
"residential": false,
"streetLines": [
"8425 CARBIDE COURT",
""
]
}
},
"shipDatestamp": null,
"pickupType": "USE_SCHEDULED_PICKUP",
"serviceType": null,
"packagingType": null,
"blockInsightVisibility": false,
"shippingChargesPayment": null,
"labelSpecification": null,
"requestedPackageLineItems": [
{
"weight": {
"units": "LB",
"value": 10.0
},
"dimensions": null,
"declaredValue": {
"amount": 30.0,
"currency": "USD"
},
"groupPackageCount": 0
}
],
"rateRequestType": [
"LIST"
],
"ShipmentSpecialServices": null
},
"carrierCodes": [
"FDXE",
"FDXG"
]
}
I tried several different combinations of the Rate Request Type, Enable Package Breakup, and Include Declared Value For Insurance settings, all get same response. Does anyone have FedEx with OAuth working? Any ideas for resolving the issue?
|