โ03-13-2023 06:52 AM
I am having issues with the getrate API calls this hasn't been an issue until recently and it is exclusively for USPS. THe call I have been using for years is below.
{
"carrierCode": "stamps_com",
"serviceCode": "usps_priority_mail",
"packageCode": "package",
"fromPostalCode": "*****",
"toCountry": "US",
"toPostalCode": "*****-****"
"weight": {
"value": ***,
"units": "ounces"
},
"confirmation": "delivery",
"residential": true
}
It is returning the following:
{"Message":"An error has occurred.","ExceptionMessage":"No applicable services were available for the configured shipment","ExceptionType":"System.Exception","StackTrace":" at SS.Core.Utilities.Rates.RateUtility.GetRates(Nullable`1 carrierId, Nullable`1 providerId, Nullable`1 warehouseId, String fromZip, String country, String postalCode, String city, Nullable`1 weight, UnitOfMeasureWeight weightUnitOfMeasure, Nullable`1 package, Nullable`1 l, Nullable`1 w, Nullable`1 h, UnitOfMeasureDimension dimensionUnitOfMeasure, Confirmation confirmation, Int32 insuranceProvider, Nullable`1 insuredValue, Boolean allowSelection, Boolean residential, Nullable`1 nonMachinable, OrderPackage[] packages, CustomsItem[] customsItems, Nullable`1 billDutiesToSender, Nullable`1 saturdayDelivery, Nullable`1 alcohol, String shipState, OrderSetting[] settings, Order order, Warehouse warehouse, Boolean primaryProvidersOnly, Address destinationAddress, HashSet`1 shippingServiceIds, String fromCity, String fromState) in D:\\buildAgentFull\\work\\8e15a453e647e65a\\SS.Core\\Utilities\\Rates\\RateUtility.cs:line 0\r\n at SS.OpenApi.Controllers.ShipmentsController.GetRates(RateRequest request) in D:\\buildAgentFull\\work\\8e15a453e647e65a\\SS.OpenApi\\Controllers\\ShipmentsController.cs:line 499\r\n at lambda_method(Closure , Object , Object[] )\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)\r\n at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()"}
I can print labels using USPS no Problems and if I do the same call using fedex as the carrier I have no issues. It is just specifically the USPS getrates call.
โ07-05-2023 08:13 AM
hi Julie.
i have same issue. could you find a solution ?
โ09-23-2024 06:31 PM
Hi,
I have the same issue. Not sure if it is specific to carrier. Would you please share the solution if you have any?
Thank you.
โ10-01-2024 09:38 AM
Hello @JaySan!
Thank you for posting in the community! It looks like you reached out to the API team but were able to successfully resolve the issue on your own, which is fantastic. If you have a moment, feel free to share the steps you tookโthis could be really helpful for others facing similar challenges.
Happy Shipping!
-Cara