Skip to Content
API ReferenceSupport automation settings

Update support automation settings

Turn support automation on or off and set the daily refund cap.

Turning automation on lets every switched-on rule act on new tickets at once, including wallet refunds. Read the settings first and check active_rules_count.

PATCH
/v2/support-automation-settings

Turn support automation on or off and set the daily refund cap; only the fields you send change, and PUT and PATCH behave the same. Turning automation on lets every switched-on rule act on new matching tickets at once: reply to the customer, credit wallet refunds and close tickets. daily_refund_cap_cents of 0 or null removes the cap. While a switched-on rule refunds, automation cannot run without a cap: turning it on without one returns 422 on automation_enabled, and removing the cap returns 422 on daily_refund_cap_cents. To refuse the change when someone changed the settings since you read them, send expected_automation_enabled and expected_daily_refund_cap_cents together, as you read them; a mismatch returns 422 on both and changes nothing. A read can be sent back unchanged. enabled and expected_enabled are refused with 422. Requires the support.automation API-key ability, and the key's user needs the Support Automation role in the store (owners and administrators have it). Repeating the same change is safe, except with the old expected pair, which no longer matches after the first change: read the settings again. OAuth callers use the admin grant and select a store with X-STORE. Current membership and role permissions apply to every request.

Authorization

headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

Header Parameters

X-STORE?string

Store slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.

Request Body

application/json
  1. body
automation_enabled?boolean

true lets switched-on rules act on new tickets; false stops all of them.

daily_refund_cap_cents?|

Most that rules may credit as automatic refunds in one day, in integer USD cents (5000 means $50.00). 0 or null removes the cap.

Range0 <= value <= 999999999999
expected_automation_enabled?boolean

automation_enabled as you read it. Send it together with expected_daily_refund_cap_cents.

expected_daily_refund_cap_cents?|

daily_refund_cap_cents as you read it (null or 0 for no cap). Send it together with expected_automation_enabled.

Range0 <= value
currency?"USD"

Read-only. Accepted only as USD.

Value in"USD"
active_rules_count?integer

Read-only and ignored.

active_refund_rules_count?integer

Read-only and ignored.

Response Body

Successful response.

application/json
  1. response
data*
Example Request
curl -X PATCH 'https://sell.app/api/v2/support-automation-settings' \  -H 'X-STORE: launch-lab' \  -H 'Content-Type: application/json' \  -d '{  "automation_enabled": true,  "daily_refund_cap_cents": 5000,  "expected_automation_enabled": false,  "expected_daily_refund_cap_cents": null}'
{  "data": {    "automation_enabled": true,    "daily_refund_cap_cents": 5000,    "currency": "USD",    "active_rules_count": 0,    "active_refund_rules_count": 0  }}
PUT
/v2/support-automation-settings

Turn support automation on or off and set the daily refund cap; only the fields you send change, and PUT and PATCH behave the same. Turning automation on lets every switched-on rule act on new matching tickets at once: reply to the customer, credit wallet refunds and close tickets. daily_refund_cap_cents of 0 or null removes the cap. While a switched-on rule refunds, automation cannot run without a cap: turning it on without one returns 422 on automation_enabled, and removing the cap returns 422 on daily_refund_cap_cents. To refuse the change when someone changed the settings since you read them, send expected_automation_enabled and expected_daily_refund_cap_cents together, as you read them; a mismatch returns 422 on both and changes nothing. A read can be sent back unchanged. enabled and expected_enabled are refused with 422. Requires the support.automation API-key ability, and the key's user needs the Support Automation role in the store (owners and administrators have it). Repeating the same change is safe, except with the old expected pair, which no longer matches after the first change: read the settings again. OAuth callers use the admin grant and select a store with X-STORE. Current membership and role permissions apply to every request.

Authorization

headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

Header Parameters

X-STORE?string

Store slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.

Request Body

application/json
  1. body
automation_enabled?boolean

true lets switched-on rules act on new tickets; false stops all of them.

daily_refund_cap_cents?|

Most that rules may credit as automatic refunds in one day, in integer USD cents (5000 means $50.00). 0 or null removes the cap.

Range0 <= value <= 999999999999
expected_automation_enabled?boolean

automation_enabled as you read it. Send it together with expected_daily_refund_cap_cents.

expected_daily_refund_cap_cents?|

daily_refund_cap_cents as you read it (null or 0 for no cap). Send it together with expected_automation_enabled.

Range0 <= value
currency?"USD"

Read-only. Accepted only as USD.

Value in"USD"
active_rules_count?integer

Read-only and ignored.

active_refund_rules_count?integer

Read-only and ignored.

Response Body

Successful response.

application/json
  1. response
data*
Example Request
curl -X PUT 'https://sell.app/api/v2/support-automation-settings' \  -H 'X-STORE: launch-lab' \  -H 'Content-Type: application/json' \  -d '{  "automation_enabled": true,  "daily_refund_cap_cents": 5000,  "expected_automation_enabled": false,  "expected_daily_refund_cap_cents": null}'
{  "data": {    "automation_enabled": true,    "daily_refund_cap_cents": 5000,    "currency": "USD",    "active_rules_count": 0,    "active_refund_rules_count": 0  }}