The Clover REST API enables you to query relevant information about Clover merchants in your Web app. Relevant information, such as merchant inventory, orders, and payments is available to you using our REST API. Each type of merchant information is represented by an endpoint.
For your Android app, you can simply generate an API token and query web services using Clover Android SDK.
In this topic, we guide you to make a sample REST API call and retrieve your test merchant’s name.
To make a REST API call:
- Navigate to the API Reference.
- Under MERCHANTS > Get a single merchant, enter the Merchant Id value. This value is 13 characters in length and is found in the browser window URL of your test merchant dashboard.
- Select the Query Auth icon at the top-right next to the Try It button.
- Enter the access_token value. This value is the test API token that you generated in the sandbox Developer Dashboard.
- Click Try It. The output JSON of the API call is generated at the right of the screen. In the results, the value of the Name Key is your test merchant’s name.
For more information about the Clover REST API service, see Clover REST API. Use this sample inventory file to test more REST API calls for your test merchant. On the Merchant Dashboard, select the Inventory app, and then follow the instructions to upload the sample inventory file.
Updated 4 months ago