Skip to Content
API ReferenceSupport reasons

Overview

Add your own reasons customers can choose when they open a ticket.

When customers open a ticket, they choose why they are writing. SellApp offers seven built-in reasons, such as not_received and refund_request. Support reasons are the ones your store adds, such as "Download link expired". The reason is saved on the ticket, so your team can filter tickets by it and automation rules can answer tickets with it.

This resource manages your own reasons. Read the built-in reasons, and the full list a customer sees, from support reason options.

Lifecycle

  • Create a reason with a label. SellApp makes its slug from the label, such as download-link-expired, and never changes it, even when you rename the reason. Tickets and rules refer to the reason by its slug.
  • Limit it to products with product_ids. An empty list offers the reason for every product. A reason limited to products is offered only once the customer has picked one of them.
  • Pause it with is_active: false to stop offering it. Tickets already filed under it keep it.
  • Delete it to remove it for good. Tickets keep their reason, but rules that match on it are not changed and do not block the delete.

An automation rule matches a reason with match_reason_source and match_reason_code: store and the slug for your reasons, platform and the code for built-in ones. A rule can be set to one of your reasons only while that reason is active and offered for every product; otherwise the rule change returns 422 on match_reason_code.

Permissions

Use an API key with the ticket ability. The key's user must be allowed to manage tickets in the store: the Resolution Center role, or owner or administrator. OAuth access tokens need support:read to read reasons and support:write to change them. Another store's reason returns 404.

Concurrency and retries

Send the updated_at you read as expected_updated_at with a change. If someone saved the reason since, the change returns 422 on expected_updated_at and nothing is saved. A change with nothing in it returns the reason as it is.

Creating a reason is not safe to repeat blindly: a repeat creates a second reason with another slug, so list the reasons before trying again after a lost response. Other changes give the same result when repeated with the same body, unless the first one made expected_updated_at stale. Deleting is permanent, and a repeated delete returns 404.

Lists return 15 reasons per page by default and at most 100 with limit; a larger limit returns 422. search treats % and _ as ordinary characters.

Endpoints

On this page