- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Bug square connect v2 api
"errors": [
{
"category": "AUTHENTICATION_ERROR",
"code": "FORBIDDEN",
"detail": "You have insufficient permissions to perform that action."
}
]
}
Hello I have this error when I try to preform a checkout. Is there a way to have a workaround ?
Please this is very important for my buisiness.
This is the request that causes it :
POST /v2/locations/LOCATION_ID/checkouts
{ "idempotency_key": "86ae1696-b1e3-4328-af6d-f1e04d947ad6", "order": { "reference_id": "reference_id", "line_items": [ { "name": "Printed T Shirt", "quantity": "2", "base_price_money": { "amount": 1500, "currency": "USD" }, "discounts": [ { "name": "7% off previous season item", "percentage": "7" }, { "name": "$3 off Customer Discount", "amount_money": { "amount": 300, "currency": "USD" } } ] }, { "name": "Slim Jeans", "quantity": "1", "base_price_money": { "amount": 2500, "currency": "USD" } }, { "name": "Woven Sweater", "quantity": "3", "base_price_money": { "amount": 3500, "currency": "USD" }, "discounts": [ { "name": "$11 off Customer Discount", "amount_money": { "amount": 1100, "currency": "USD" } } ], "taxes": [ { "name": "Fair Trade Tax", "percentage": "5" } ] } ], "discounts": [ { "name": "Father's day 12% OFF", "percentage": "12" }, { "name": "Global Sales $55 OFF", "amount_money": { "amount": 5500, "currency": "USD" } } ], "taxes": [ { "name": "Sales Tax", "percentage": "8.5" } ] }, "ask_for_shipping_address": true, "merchant_support_email": "[email protected]", "pre_populate_buyer_email": "[email protected]", "pre_populate_shipping_address": { "address_line_1": "1455 Market St.", "address_line_2": "Suite 600", "locality": "San Francisco", "administrative_district_level_1": "CA", "postal_code": "94103", "country": "US", "first_name": "Jane", "last_name": "Doe" }, "redirect_url": "https://merchant.website.com/order-confirm" }
and in the sandbox token it works.
Is it because I am bases in France and this functionality is not available in France ?
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
It seems like the application is not authorized by your Square Account.
You cannot use the sandbox access token for your Square account.
Make sure you have all access tokens are correct in your code.
These would be in the header of your message:
https://docs.connect.squareup.com/api/connect/v2#requestandresponseheaders
- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
I'm having the same issue. Also is happening in the Transaction endpoint.
Check the full permissions token screen.Permissions OAuth.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report

- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Hey @gosugoon - Unfortunately, Square API is only available within the US at this time. If you are located outside of the country, it won't work.
Hope that helps clarify things for you!
Seller Community UX Designer
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report