Forum

The forum is a free service supported by community members. Please consider opening a support ticket if you need timely help.

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 23 May 2024 08:30 PM by  Lee Drake
UPS New Shipping API and Authentication
 8 Replies
Sort:
You are not authorized to post a reply.
Page 2 of 2 << < 12
Author Messages


New Member


Posts:25
New Member


--
23 May 2024 02:34 PM
I turned on debugging and I am seeing the following error:

Method:
Revindex.Business.Revindex.Revindex.Storefront.ShippingMethodController.EstimateShippingRates

Message:
Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type '<>f__AnonymousType13`2[System.String,System.String][]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.
To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.
Path 'RateResponse.Response.Alert.Code', line 1, position 101.

0


New Member


Posts:25
New Member


--
23 May 2024 03:00 PM
I used this Postman collection to verify our UPS App credentials are working correctly: https://www.postman.com/u...d-9357-e0fb74d9e456. After retrieving the Bearer Token, I made a ShipmentRequest and received pricing details.

It appears the problem is either with the new API code in Revindex Storefront, or with the configuration of my test site and environment. Since I am receiving an error in the DNN Admin Logs with Debugging on, it appears to be an issue with how the JSON returned from UPS is being parsed.
0


Veteran Member


Posts:2974
Veteran Member


--
23 May 2024 07:45 PM

It appears that some UPS accounts may use older versions of the API that behaves slightly different than the March 2024 version. The latest Storefront v20.1 now available for download has an added instruction to tell it to use the newer version.

 

0


New Member


Posts:25
New Member


--
23 May 2024 08:30 PM
I have tested and confirmed Storefront 20.01.00 is working with UPS Shipping. Thank you for your help!
0
You are not authorized to post a reply.
Page 2 of 2 << < 12