question

wjalong avatar image
wjalong asked Emily L answered

Rest Pay Display 401

1659474071225.png1659474212796.pngI sent a request to my device, but it's always 401, Another request can receive a response using the same authorization

REST APIPaymentsAPI TokenDeveloper Pay API
1659474071225.png (62.7 KiB)
1659474212796.png (90.9 KiB)
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Emily L avatar image
Emily L answered

If the same access token works for standard REST API requests and not REST Pay API requests, you may be using a merchant-generated token. Our REST Pay API only accepts OAuth-generated access tokens to authorize requests. We provide more information on using OAuth in our docs:

https://docs.clover.com/docs/configuring-oauth-20

Or, if you are already using an OAuth-generated token, we have more troubleshooting steps for 401 errors here:

https://docs.clover.com/docs/401-unauthorized

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community