Skip to Content
API ReferenceSupport automation settings

Overview

Turn support automation on or off and cap the wallet refunds it can credit in a day.

These settings are the store-wide controls for automation rules, which answer new tickets without anyone on your team. There is one settings record per store: read it with GET and change it with PATCH or PUT.

  • automation_enabled is the switch for all rules. While it is false, no rule acts on any ticket. Turning it on lets every switched-on rule act on the next new matching ticket: reply to the customer, credit wallet refunds and close tickets. Check active_rules_count and active_refund_rules_count before you turn it on.
  • daily_refund_cap_cents is the most that rules may credit as automatic refunds in one day, in integer USD cents (5000 means $50.00). null means no cap is set; send 0 or null to remove it.

The daily refund cap

While support automation is on, a refunding rule can run only with a cap. SellApp refuses a change that would leave a switched-on refunding rule without one: turning automation on without a cap returns 422 on automation_enabled, and removing the cap returns 422 on daily_refund_cap_cents.

Before each automatic refund, SellApp adds up the automatic refunds credited since the start of the day, leaving out reversed ones. If the next refund would take that total over the cap, the rule does nothing for that ticket: no refund, no reply and no close. The refund is not reduced to fit. The ticket stays open for your team, and no other rule is tried for it. Refunds your team issues by hand do not count toward the cap.

Avoid overwriting someone else's change

Send expected_automation_enabled and expected_daily_refund_cap_cents together, with the values you read. If someone changed the settings since, the request returns 422 on both fields and changes nothing; read the settings again and decide. A read can be sent back unchanged: the counts and currency are accepted and ignored. enabled and expected_enabled are not accepted; use the names above.

Permissions and retries

Use an API key with the support.automation ability. The key's user needs the Support Automation role in the store; owners and administrators have it. OAuth access tokens need support:read to read the settings and support:write to change them.

Reading is always safe to repeat. A change gives the same result when repeated with the same body, unless it carries the expected pair, which no longer matches after the first change succeeds: read the settings again.

Endpoints

On this page