Update attribution settings
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.
Request
Path parameters
websitestringrequiredWebsite id or domain, e.g. example.com
1–253 characters
Headers
AuthorizationstringrequiredBearer followed by an account token with the settings:write scope.
Content-TypestringrequiredSend the body as JSON.
One of: application/json
Body fields
modelstringoptionalOne of: first_touch, last_touch, last_non_direct
windowDaysintegeroptional1 to 365
trustBrowserIdentifybooleanoptionalcountRenewalsbooleanoptionalsubtractRefundsbooleanoptionalshippingInRevenuebooleanoptionalshowMrrbooleanoptionalcheckoutReturnbooleanoptionalcheckoutParamstring | "" | nulloptionalbrowserPaymentsbooleanoptionalreattributebooleanoptionalDefault: 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
| Field | Type | Description |
|---|---|---|
| status | "ok" | |
| data | object | |
| data.model | string | |
| data.windowDays | integer | |
| data.trustBrowserIdentify | boolean | |
| data.countRenewals | boolean | |
| data.subtractRefunds | boolean | |
| data.shippingInRevenue | boolean | |
| data.showMrr | boolean | |
| data.checkoutReturn | boolean | |
| data.checkoutParam | string | null | null | |
| data.browserPayments | boolean | |
| data.updatedAt | string (date-time) | null | null | |
| data.reattributeJobId | string | null | null |