Skip to Content
API ReferenceTickets

Overview

Read and answer support tickets, resolve them, and refund customers to their store wallet.

Tickets contain a support conversation with a visitor or customer. Messages are ordered within a ticket and identify their author. A ticket can reference a purchase, but support access does not grant access to unrelated store resources.

In v2, read_status.customer and read_status.store tell you whether each side has read the conversation. reference.type is product, order, or null; use reference.id to identify that resource. Responses do not include attachment storage paths.

To find the tickets that need an answer from you, list or search with waiting_on=store. You can also filter by reason and by part of the customer's email with customer_email.

Posting a reply can notify the customer, so check who is allowed to send it. If the response is lost, retrieve the message list before sending the text again. The operation schemas define ticket, customer, reference, and message fields.

Resolving tickets

Close a ticket with an outcome such as delivered or refunded to record why it was resolved, one at a time or up to 50 at once. Closing emails the customer, at most once an hour per ticket. A closed ticket keeps its outcome until it is reopened.

The ticket context returns the customer's email, completed orders and lifetime spend in your store to any key with the ticket ability. Treat it as customer data.

Wallet refunds

A wallet refund credits the customer's store wallet in USD for one item of the ticket's order and emails your note to the customer. It moves money, so it needs the support.refund ability as well as ticket, and the matching store permissions. Send expected_refundable_cents as you read it from the refund options, and an Idempotency-Key that you reuse only to retry the same request. A reversal takes the full amount back out of the wallet and is refused when the customer already spent part of it.

Endpoints

On this page