Merchants
Get Merchants
With the Get Merchants API, you can retrieve a list of all merchants your application has access to. You can choose from this list what you would and wouldn't like to connect to.
GET /merchants
Get a list of merchants that your Violet application has access to.
Request
Curl
curl --request GET
--url https://sandbox-api.violet.io/v1/merchants
--header 'Accept: application/json'
--header 'X-Violet-Token': 'TOKEN',
--header 'X-Violet-App-Id': 'APPID',
--header 'X-Violet-App-Secret': 'APPSECRET'
Response:
JSON
{
"content": [
{
"id": 10000,
"name": "Besties",
"platform": "SHOPIFY",
"store_url": "violet-besties.myshopify.com",
"commission_rate": 15.0,
"distribution_type": "PUBLIC",
"category": "OTHER",
"connection_status": "NOT_CONNECTED"
},
{
"id": 10001,
"name": "Vio",
"platform": "ECWID",
"store_url": "",
"commission_rate": 0.0,
"distribution_type": "PUBLIC",
"category": "OTHER",
"connection_status": "NOT_CONNECTED"
},
{
"id": 10003,
"name": "Nordies Store",
"platform": "ECWID",
"store_url": "violetio.ecwid.com",
"default_country_code": "US",
"commission_rate": 10.0,
"distribution_type": "PUBLIC",
"referral_source": "VIOLET",
"category": "OTHER",
"connection_status": "NOT_CONNECTED"
}
],
"pageable": {
"sort": {
"sorted": true,
"unsorted": false,
"empty": false
},
"page_number": 0,
"page_size": 20,
"offset": 0,
"unpaged": false,
"paged": true
},
"total_pages": 1,
"last": true,
"total_elements": 3,
"sort": {
"sorted": true,
"unsorted": false,
"empty": false
},
"first": true,
"number_of_elements": 3,
"size": 20,
"number": 0,
"empty": false
}