i get this error while list payment.

I get following response while list Payment,

 

"Provided merchant_id and merchant_id in authorization do not match up"

Tags (1)
3,434 Views
Message 1 of 5
Report
4 REPLIES 4
Square Champion

3,429 Views
Message 2 of 5
Report

I am getting the same issue!
Please help.

 

https://connect.squareup.com/v1/LOCATION_ID/items
{
"type": "unauthorized",
"message": "Provided merchant_id and merchant_id in authorization do not match up"
}

 

 

curl -H "Authorization: Bearer *****" https://connect.squareup.com/v2/locations
{"errors":[{"category":"AUTHENTICATION_ERROR","code":"FORBIDDEN","detail":"You have insufficient permissions to perform that action."}]}

 

3,414 Views
Message 3 of 5
Report
Alumni

Hey @happy and @namankhator, thanks for surfacing! I don't have the answer for you off the top of my head, but I'll check in with our engineering team for more insight.

 

In the meantime, feel free to check out Square Connect's Stack Overflow page. It's been a great resource for our developer community, and there's already a ton of questions that have been answered there.

 

Appreciate your patience, and we'll be in touch as soon as we have an update.

️ Tom | he/him
Square Community Program Manager | Square, Inc.
Find step-by-step help in our Support Center
3,398 Views
Message 4 of 5
Report
Square

Just heard back from our Developer Team, and it appears that y'all are using OAuth credentials for one merchant but attempting to retrieve data for another merchant. For example, if you have OAuth tokens for merchant A with location B but try to list payments for location token X that belongs to a different merchant Y, you will get this error.

 

@namankhator - In regards to "You have insufficient permissions to perform that action," the developer merchant account for the app (based on client ID) that you are using needs to be activated to take payments. This is a current limitation for using V2 APIs.

 

Hope this helps! 


Sean
he/him/his
Product Manager | Square, Inc.
3,374 Views
Message 5 of 5
Report