Square appointment - Error INSUFFICIENT_SCOPES / APPOINTMENTS_READ

Hello everyone,

I have just subscribed to square appointment premium. I’m trying to set up an automation with the appointment booking as a trigger.

I created an application via Square developper, to insert my webhook link, in subscriptions I selected all possible events.

My webhook is functional for the appointment, I get all the information, but when I try to find the appointment via GET /v2/bookings/{booking_id} this error appears:

The operation failed with an error. Error INSUFFICIENT_SCOPES The merchant has not given your application sufficient permissions to do that. The merchant must authorize your application for the following scopes: APPOINTMENTS_READ

Do you have any idea why?

Thanks !

When you went through the OAuth process did you pass in the APPOINTMENTS_READ scope? To check the permissions of your access token you can call RetrieveTokenStatus to check the scopes. :slightly_smiling_face:

Hello & thank you for your help

I check the permission for APPOINTMENTS_READ, When I use RetrieveTokenStatus, the result contain APPOINTMENT_READ.

{
  "scopes": [
    "APPOINTMENTS_ALL_READ",
    "APPOINTMENTS_ALL_WRITE",
    "APPOINTMENTS_BUSINESS_SETTINGS_READ",
    "APPOINTMENTS_READ",
    "APPOINTMENTS_WRITE",
    "BANK_ACCOUNTS_READ",
    "CASH_DRAWER_READ",
    "CUSTOMERS_READ",
    "CUSTOMERS_WRITE",
    "DEVICE_CREDENTIAL_MANAGEMENT",
    "DISPUTES_READ",
    "DISPUTES_WRITE",
    "EMPLOYEES_READ",
    "EMPLOYEES_WRITE",
    "GIFTCARDS_READ",
    "GIFTCARDS_WRITE",
    "INVENTORY_READ",
    "INVENTORY_WRITE",
    "INVOICES_READ",
    "INVOICES_WRITE",
    "ITEMS_READ",
    "ITEMS_WRITE",
    "LOYALTY_READ",
    "LOYALTY_WRITE",
    "MERCHANT_PROFILE_READ",
    "MERCHANT_PROFILE_WRITE",
    "ONLINE_STORE_SITE_READ",
    "ONLINE_STORE_SNIPPETS_READ",
    "ONLINE_STORE_SNIPPETS_WRITE",
    "ORDERS_READ",
    "ORDERS_WRITE",
    "PAYMENTS_READ",
    "PAYMENTS_WRITE",
    "PAYMENTS_WRITE_ADDITIONAL_RECIPIENTS",
    "PAYMENTS_WRITE_IN_PERSON",
    "PAYMENTS_WRITE_SHARED_ONFILE",
    "PAYOUTS_READ",
    "RESERVATIONS_READ",
    "RESERVATIONS_WRITE",
    "SETTLEMENTS_READ",
    "SUBSCRIPTIONS_READ",
    "SUBSCRIPTIONS_WRITE",
    "TIMECARDS_READ",
    "TIMECARDS_SETTINGS_READ",
    "TIMECARDS_SETTINGS_WRITE",
    "TIMECARDS_WRITE",
    "VENDOR_READ",
    "VENDOR_WRITE"
  ],
  "client_id": "*****-*****-****************",
  "merchant_id": "*************"
}

But I subscripe for Square Appointment last week and I make the Oauth process few month ago, maybe the mistake is here ?

Thanks for your help

Are you on the free trial? :slightly_smiling_face: