Make a sample REST API call
United States
Canada
Europe
Latin America
The Clover REST API lets you query relevant information about Clover merchants in your web app. Relevant information, such as merchant inventory, orders, and payments, is available using our REST API. An endpoint represents each type of merchant information.
Use the Android emulator or Developer Kits in the sandbox environment for building and testing your apps with test merchants. For your Android app, you can generate an API token and query web services using the Clover Android SDK.
Use the following procedure to make a sample API call using the Clover API Reference.
Use the API Reference
Prerequisites
To use the Clover platform API, you require the following:
- Sandbox developer account
- Test merchant account
- Test API token with permissions to make REST API requests and manage your test merchant's data.
Make a sample REST API call
To make a sample REST API call using the Clover API reference:
- From the Platform API left navigation, select MERCHANTS > Get a single merchant.
- Set the Authorization header as Bearer token type, and enter the test API token you generated in the sandbox Developer Dashboard.
- In the Path Params section, enter your test merchantId in the
mId
field. Your test merchant ID is a 13-alphanumeric identifier that displays in the browser link (URL) of the Merchant Dashboard for your test merchant. See Locate your test merchant ID. - Click Try It. In the JSON output response, the
name
value is your test merchant’s name.
Test Rest API calls with the sample inventory
- Use the 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. See Import inventory.
Related topics
Updated 2 months ago