Where Do I Find the UPS Call Back URL?

I am trying to set up some shipping methods using the new Oauth version of UPS shipping that was introduced last November or so. However, when setting this up inside my UPS account, they are asking for a callback URL. This is their wording:
External site to which a consumer of this app is redirected to log in when using three-legged OAuth.
Can anyone help me with this? What URL should I enter? Does it matter?

I think I saw on another post that you can leave it empty or enter the url of your wesbite

Please check my answer here:

OK so for the callback URL I just entered the web address of my site.
On the “Test Rate Calculation Tab” I’m getting the following error:
Error Invalid Authentication Information. (Error code: 250002)
Anyone know what could be wrong?

OK I got rid of the error. In the UPS account you have to add the “product” called “Rating” to your app.

But even though that error is now gone and I can get test rates to work in the backend, UPS Ground is not showing up as a shipping option in the front end of the store. Anyone any clues here?

Please contact us via Help Desk for examination.

Not really interested in paying for “fixing” something that should just work.
Are other users able to get this working? I’d like to hear from other users of CS-Cart.

Thanks. I already had callback URL part figured out. I’m still not seeing the UPS rates showing up on the front end of my site. Are others having success with this?

I have just updated CS-cart for this new UPS module and am having trouble.

I didn’t immediately get rates and am not sure why. I’m wondering if one has to start with a new shipping method. The problem that I’m having now is that I can’t figure out how to get it to pull our negotiated rates. I have that checkbox selected, but the rates come back much higher than they do with the old module that uses the access key. Has anybody else experienced this?

I was also confused by the Call Back URL and got some help from UPS–who told me to leave it blank. CS-Cart would certainly be doing their users a service by providing some more documentation on all of this!

A callback URL is a crucial component in various authentication and authorization processes. Let me provide you with some information about it:

1.OAuth Workflow:
In the OAuth workflow, a callback URL is the address to which the user is redirected after successful authorization from the OAuth provider. For instance, when you click “Sign in with Google,” it takes you to a Google page, and upon authorization, it sends you back to the app where you initiated the sign-in process.
Similarly, when you set up an application within your UPS account, they ask for a callback URL. This URL serves as the external site where a consumer of your app is redirected to log in when using three-legged OAuth.

  1. Format and Usage:
    The format of a callback URL depends on the context:
    For iOS applications, the callback URL follows this structure: YOUR_BUNDLE_IDENTIFIER://YOUR_AUTH0_DOMAIN/ios/YOUR_BUNDLE_IDENTIFIER/callback. Replace YOUR_BUNDLE_IDENTIFIER with the actual Bundle Identifier of your app3.
    When calling an API, you can specify a callback URL. After the API completes its task, it redirects the user to the specified callback URL. This is especially useful for third-party authentication services.

  2. Practical Example:
    Suppose you’re using Postman to authenticate with OAuth 2.0. You can set the callback URL to return to Postman after completing authentication in your system’s default web browser. This way, your requests can use the token returned upon successful authentication5.
    In summary, the UPS callback URL is essential for handling authentication and authorization flows. When setting it up, consider the specific requirements of your application or API integration.

I realize you posted this last year, but THANK YOU for the info re: adding “Rating” product to the app. That had me stuck for a couple of hours.

Then I also got stuck on it not displaying on the storefront, but fortunately, I figured that out.

I have a zone for New York (this client is in NY and has to charge sales tax for that state) and a zone for the entire USA (for shipping). Previously, adding ONLY the USA zone worked fine for displaying the shipping rates. But in this current version, I also had to add the NY zone to each shipping method to get it to work for that state. Just thought I’d reply with that info in case it helps someone else.

One other note: If you get the UPS Error code 111211 during rate calculation testing, uncheck the “Use Delivery confirmation” option box on the configure tab.

Were you able to get yours working?

BTW: CS-Cart support:
You really need to note on the UPS setup documentation that the Callback URL box in the UPS app setup should be left blank. Most people will assume they need that (like me) and go searching for it.

1 Like

Yes, I was able to get it working. I’m glad you were able to also.

1 Like

Thank you for highlighting this. I have passed it on to the tech writer.

1 Like