For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

Get a Retailer's Transaction Fee Settings

get

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.

  • overrides is what is stored for this retailer. A null value means there is no override.
  • effective is the value that applies, and source says where it came from: MERCHANT (the retailer's override), APP (the app's own payment configuration) or DEFAULT (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.

Path parameters
merchant_idinteger · int32Required

The retailer whose settings are read.

Example: 10000
app_idinteger · int32Required

The app the retailer's settings are with.

Example: 10001
Header parameters
X-Violet-TokenstringRequired

Token of the caller: a Violet admin, or a user of the channel that owns the app.

X-Violet-App-SecretstringRequired

Secret of the app the token was issued for.

X-Violet-App-Idinteger · int32Required

Id of the app the token was issued for. This is not necessarily the app in the path.

Example: 10001
Responses
200

The retailer's fee settings with this app.

application/json

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.

merchant_idinteger · int32Required

The retailer the settings are for.

Example: 10000
app_idinteger · int32Required

The app the retailer's settings are with.

Example: 10001
get/merchants/{merchant_id}/app_relationships/{app_id}/fee_settings
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?