Does listPayments work with token generated from Oauth?

Hi there when I try to show payments with listPayment using the token I get back from Oauth I get the following:

The `Authorization` http header of your request was incorrect or expired. The header value is expected to be of the format "Bearer TOKEN" (without quotation marks), where TOKEN is a valid access token (e.g. "Bearer ABC123def456GHI789jkl0"). For more information, see https://developer.squareup.com/docs/build-basics/using-rest-api#__set-the-headers__ .

I’m requesting these scopes:
"MERCHANT_PROFILE_READ", "CUSTOMERS_READ", "MERCHANT_PROFILE_READ", "BANK_ACCOUNTS_READ", "ITEMS_READ", "INVENTORY_READ", "PAYMENTS_WRITE", "PAYMENTS_READ", "PAYMENTS_WRITE_ADDITIONAL_RECIPIENTS", "PAYMENTS_WRITE_IN_PERSON", "INVOICES_READ", "INVOICES_WRITE", "PAYMENTS_WRITE_SHARED_ONFILE", "ORDERS_READ", "ORDERS_WRITE"

Given it says “PAYMENTS_READ” I assume it’s possible to do this but I’m unable able to pull payments using the api except from my own developer account.

Any direction on this error?

:wave: That error happens when the header of the request is malformed. Have you tried to list payment with a simple CURL request to validate that the token is working?

curl https://connect.squareup.com/v2/payments \
  -H 'Square-Version: 2022-02-16' \
  -H 'Authorization: Bearer ACCESS_TOKEN' \
  -H 'Content-Type: application/json'

:slightly_smiling_face: