Get Transaction Fee Settings
Returns the transaction fee settings stored for a retailer with an app (overrides) and the values that actually apply (effective, with a source of MERCHANT, APP or DEFAULT). Callable by Violet admins and the channel that owns the app.
Returns the transaction-fee settings stored for a retailer with an app, and the values that will actually apply, so that a channel can see what an order will be split with before one exists.
overridesis what is stored for this retailer. Anullvalue means there is no override.effectiveis the value that applies, andsourcesays where it came from:MERCHANT(the retailer's override),APP(the app's own payment configuration) orDEFAULT(the platform default).
Only Violet admins and the channel that owns the app, with the retailer enabled on it, can read these. The retailer cannot.
The retailer whose settings are read.
10000The app the retailer's settings are with.
10001Token of the caller: a Violet admin, or a user of the channel that owns the app.
Secret of the app the token was issued for.
Id of the app the token was issued for. This is not necessarily the app in the path.
10001The retailer's fee settings with this app.
A retailer's transaction-fee settings with one app. 'overrides' is what is stored for this retailer; 'effective' is what applies to payout splits generated from now on, and where each value came from. Splits that were already generated keep the settings stamped on them.
The retailer the settings are for.
10000The app the retailer's settings are with.
10001The caller is not a Violet admin or the channel that owns the app, or the retailer is not enabled on that app. Retailers cannot read their own settings, and a request with no credentials is refused.
The retailer is not connected to the app.
The database reported a concurrency failure while reading, for example that the read was chosen as a deadlock victim. This is rare, because reading takes no lock. Nothing was changed; retry the request.
An unexpected error occurred.
GET /v1/merchants/{merchant_id}/app_relationships/{app_id}/fee_settings HTTP/1.1
Host: sandbox-api.violet.io
X-Violet-Token: text
X-Violet-App-Secret: text
X-Violet-App-Id: 1
Accept: */*
{
"merchant_id": 10000,
"app_id": 10001,
"overrides": {
"fee_source_mode": "APP_PROVIDED",
"deduct_transaction_fees_before_commission": true,
"transaction_fee_remitter": "MERCHANT"
},
"effective": {
"fee_source_mode": {
"value": "APP_PROVIDED",
"source": "MERCHANT"
},
"deduct_transaction_fees_before_commission": {
"value": true,
"source": "MERCHANT"
},
"transaction_fee_remitter": {
"value": "MERCHANT",
"source": "MERCHANT"
}
}
}Last updated
Was this helpful?