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

Get Return Commission Policy

Returns the return commission policy stored for a retailer with an app (overrides) and the policy that actually applies (effective, with a source of MERCHANT, APP or DEFAULT). Callable by Violet admins and the channel that owns the app.

Get a Retailer's Return Commission Policy

get

Returns the return commission policy stored for a retailer with an app, and the policy that will actually apply, so that a channel can see what a sale made now would be treated as before one exists.

  • overrides is what is stored for this retailer. A null value means there is no override.
  • effective is the policy that applies, and source says where it came from: MERCHANT (the retailer's override), APP (the app's own default, set on its payment configuration) or DEFAULT (the platform default, REVERSE). An app with no configuration has no default, so DEFAULT applies.

The policy decides what happens to the commission on a returned sale: REVERSE reverses it (SAR contracts), RETAIN keeps it (SBR and SBR Net Receipts contracts). Nothing configured means REVERSE. The transaction fee is not part of the policy: an applied fee is never reversed.

Only Violet admins and the channel that owns the app, with the retailer enabled on it, can read this. The retailer cannot.

Path parameters
merchant_idinteger · int32Required

The retailer whose policy is read.

Example: 10000
app_idinteger · int32Required

The app the retailer's policy is 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 return commission policy with this app.

application/json

A retailer's return commission policy with one app: what happens to the commission when a sale is returned. 'overrides' is what is stored for this retailer; 'effective' is what applies to sales made from now on, and where it came from. A change applies to new sales only: a sale that already exists keeps the policy it was made under.

merchant_idinteger · int32Required

The retailer the policy is for.

Example: 10000
app_idinteger · int32Required

The app the retailer's policy is with.

Example: 10001
get/merchants/{merchant_id}/app_relationships/{app_id}/return_commission_policy
GET /v1/merchants/{merchant_id}/app_relationships/{app_id}/return_commission_policy 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": {
    "return_commission_policy": "RETAIN"
  },
  "effective": {
    "return_commission_policy": {
      "value": "RETAIN",
      "source": "MERCHANT"
    }
  }
}

Last updated

Was this helpful?