Hi,
We are trying to get Merchant information from webhook event APPLICATION_SUBSCRIPTION_START to register subscription in our server (for now simulating the event).
We call https://services-eu.poynt.net/businesses/XXXXXXXX?businessId=XXXXXXXXXXXXXXXX with test merchant businessId and with live version of app we have a correct result, but not with the dev variant of the app (requestId: 5bb31585df175).
We have as result UNAUTHORIZED_ACCESS, Unauthorized access attempt. This principal does not have access to this resource.
In live version we have authorized “Cloud Permissions” with the test merchant but not in dev variant because we expect to do the following steps:
- the merchant start subscription of the app from Poynt store
- if merchant is e new customer, in the first access of the app we ask him for cloud permissions redirecting him to https://eu.poynt.net/applications/authorize?client_id=XXXXX&redirect_uri=XXXXXXXX
- After merchant authorize, he can start using app with Poynt API.
It is correct?
How i should i do for continuing testing?
Thanks
Carlo