Hi,
I am trying to connect to my Web API to GET inventory.
I am using java to write code on my local computer to connect to my API. I have a Merchant ID and Access Token generated by going into "Setup" -> API Tokens -> Generate Token and I also checked permissions for 'Inventory' and 'Orders' for 'Read' and 'Write'
The URL I'm using is hereI am using the one in the curl command api.clover.com https:// api. clover. com /v3 / merchants/ [Merchant ID]/items?access_token=[API Token] and putted my Merchant ID and access token.
But I'm getting the following response from server :
Exception: java.io.IOException: Server returned HTTP response code: 401 for URL: https://api.clover.com/v3/merchants/[...
Message: Server returned HTTP response code: 401 for URL: https://api.clover.com/v3/merchants/[...
I am simply trying to GET inventory data using JAVA
Will appreciate your help.