We're in the process of migrating our Clover integration to use the access_token and refresh_token, but we're encountering an issue. Let me break it down:
I can successfully retrieve the access_token and new refresh_token via the following API calls:
/oauth/v2/token
/oauth/v2/refresh
The tokens work for several endpoints like categories, items, modifier_groups, modifiers, order_types, tenders, discounts, and service_charge. However, when I attempt to push an order using the same access_token, I get the following error:
{ "message": "401 Unauthorized" }
I've double-checked the app settings, and all the necessary permissions are enabled. The strange part is that when I create an API token from the merchant settings, everything works fine.
I’m unsure where the issue lies. I've also gone through various community posts, but they haven't been helpful—most suggestions involve reinstalling the Android app, which doesn't seem relevant here.