Skip to content
Website API / Settings

Update attribution settings

PATCHhttps://<your Reveata origin>/api/v1/websites/{website}/attribution

Attribution model (first touch, last touch, last non-direct), window in days, whether browser identify is trusted for matching payments, renewals, refunds, shipping and MRR. reattribute: true re-attributes existing payments in the background. Needs the admin role.

Related: Get website settings in Settings.

Try in playground

Request

Path parameters

websitestringrequired

Website id or domain, e.g. example.com

1–253 characters

Headers

Authorizationstringrequired

Bearer followed by an account token with the settings:write scope.

Content-Typestringrequired

Send the body as JSON.

One of: application/json

Body fields

modelstringoptional

One of: first_touch, last_touch, last_non_direct

windowDaysintegeroptional

1 to 365

trustBrowserIdentifybooleanoptional
countRenewalsbooleanoptional
subtractRefundsbooleanoptional
shippingInRevenuebooleanoptional
showMrrbooleanoptional
checkoutReturnbooleanoptional
checkoutParamstring | "" | nulloptional
browserPaymentsbooleanoptional
reattributebooleanoptional

Default: false

Response

The settings.

{
  "status": "string",
  "data": {
    "model": "first_touch",
    "windowDays": 0,
    "trustBrowserIdentify": true,
    "countRenewals": true,
    "subtractRefunds": true,
    "shippingInRevenue": true,
    "showMrr": true,
    "checkoutReturn": true,
    "checkoutParam": "string",
    "browserPayments": true,
    "updatedAt": "2026-01-01T00:00:00.000Z",
    "reattributeJobId": "string"
  }
}

Response fields

FieldTypeDescription
status"ok"
dataobject
data.modelstring
data.windowDaysinteger
data.trustBrowserIdentifyboolean
data.countRenewalsboolean
data.subtractRefundsboolean
data.shippingInRevenueboolean
data.showMrrboolean
data.checkoutReturnboolean
data.checkoutParamstring | null | null
data.browserPaymentsboolean
data.updatedAtstring (date-time) | null | null
data.reattributeJobIdstring | null | null