question

markcana avatar image
markcana asked parquet76 commented

Customer List WORKS, Add Customer = 401 Unauthorized

Getting a 401 Unauthorized error when adding a customer.

UPDATE: I just tried adding details to the body like ID, email, phone, address, etc. But it's still showing the same 401 error.


Get a list of customers:
1701037179963.png


Create a customer:
1701037192611.png

API TokenCustomers
1701037179963.png (106.1 KiB)
1701037192611.png (90.2 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

·
bryanvargas avatar image
bryanvargas answered parquet76 commented

Please review our 401 troubleshooting and there is a note that the request body can't be null. Therefore you will have to add some details about the customer:

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

4 comments
10 |2000

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

markcana avatar image markcana commented ·

I tried adding details to the body of the "Create a Customer" like email, address, phone, etc. But it's still not working. Same error as before. I tried having an ID and without, but still same error.

Though "Getting a list of customers" is working fine.



0 Likes 0 ·
bryanvargas avatar image bryanvargas ♦♦ markcana commented ·
Make sure your accessToken has the correct permissions, if you changed your permissions after your merchant downloaded the app, they will need to uninstall/reinstall your app to get a new accessToken
0 Likes 0 ·
markcana avatar image markcana bryanvargas ♦♦ commented ·

I already set all the permissions (all checked) for multiple days and we have renewed the oAuth multiple times since then, as this was one of the first things we did before creating the forum post as it was advised in their documentation. 1701120749947.png

0 Likes 0 ·
1701120749947.png (55.7 KiB)
Show more comments

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