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.
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.
AuthorizationBearer <API Key>Provide your SellApp API key as a bearer token.
X-STORE?stringStore 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.
application/json- body
automation_enabled?booleantrue 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.
0 <= value <= 999999999999expected_automation_enabled?booleanautomation_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.
0 <= valuecurrency?"USD"Read-only. Accepted only as USD.
"USD"active_rules_count?integerRead-only and ignored.
active_refund_rules_count?integerRead-only and ignored.
Successful response.
application/json- response
data*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 }}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.
AuthorizationBearer <API Key>Provide your SellApp API key as a bearer token.
X-STORE?stringStore 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.
application/json- body
automation_enabled?booleantrue 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.
0 <= value <= 999999999999expected_automation_enabled?booleanautomation_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.
0 <= valuecurrency?"USD"Read-only. Accepted only as USD.
"USD"active_rules_count?integerRead-only and ignored.
active_refund_rules_count?integerRead-only and ignored.
Successful response.
application/json- response
data*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 }}