PUT
/
apps
/
{app_id}
/
merchants
/
{merchant_id}
/
commission_rate
curl --request PUT \
  --url https://sandbox-api.violet.io/v1/apps/{app_id}/merchants/{merchant_id}/commission_rate \
  --header 'Content-Type: application/json' \
  --data '{
  "commission_rate": 123,
  "commission_locked": true
}'
{
  "id": 123,
  "app_id": 123,
  "merchant_id": 123,
  "scope": "<string>",
  "status": "REQUESTED",
  "install_source": "DIRECT",
  "commission_rate": 123,
  "commission_locked": true,
  "date_created": "2023-11-07T05:31:56Z",
  "date_last_modified": "2023-11-07T05:31:56Z"
}

The maximum allowed commission rate that can be set by a channel is 50, while a merchant can set any value up to 100.

Headers

X-Violet-Token
string
X-Violet-App-Secret
string
X-Violet-App-Id
integer

Path Parameters

app_id
integer
required
merchant_id
integer
required

Body

application/json

Response

default - application/json
default response

Record of Application Install by a Merchant