Hi,
Our Square application is supposed to have the loyalty points permission and it works well for all other merchant clients. Only this merchant has the issue and we have tried several times to de-auth and re-auth it. Here are our permission details. Please help us with it.
This the the request.
{
"accumulate_points": {
"order_id": "FukYofq2OmfLNWwQ4eWeIIopTifZY"
},
"idempotency_key": "FukYofq2OmfLNWwQ4eWeIIopTifZY",
"location_id": "VRH568RGDHCEJ"
}
This is the response
{
"errors": [
{
"code": "FORBIDDEN",
"detail": "Application does not have permission to access the resource",
"category": "AUTHENTICATION_ERROR"
}
]
}
I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:
Additional Documentation
Redeem Loyalty Points for a Discount (Walkthrough 2)
Accumulate Loyalty Points for a Buyer (Walkthrough 1)
Merchants API Overview
If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.
Is the access token the correct token for the account?
I’m sure it’s correct and the same service served lot of merchants.
Are subsequent requests succeeding?
All the point accumulate requests failed while the order API calls worked as expected, I don’t think it’s a temporary issue.
The team is taking a look.
1 Like
Thank you! Please let us if there is any update. It affects the merchant operation and we want to solve it for them asap.
We just found that the account id doesn’t match the order, sorry about it.
Glad to hear you figured it out.