Skip to Content
API ReferenceTickets

Retrieve ticket context

Read a ticket's resolution, the customer's order history, the linked order, refund options and recent activity.

Use this before you answer or refund a ticket. One call returns the ticket's resolution, the customer's completed orders and lifetime spend in your store, the order the ticket is about, what can still be refunded to the customer's wallet, and the latest support activity.

The response contains customer data: the email on the ticket, how many completed orders that email has, and how much it spent. Only the ticket ability is needed to read it, so give that ability only to people and tools that may see this.

refund_options has the same items as List a ticket's wallet refund options. You can send an option's invoice_id and refundable_cents straight to Refund a ticket to the customer's wallet.

GET
/v2/tickets/{ticket}/context

Read what you need beside a ticket's conversation in one call: the resolution, the customer's order history in this store, the linked order, what can still be refunded to the customer's wallet, and the latest 20 support activity entries, newest first. refund_options has the same items as the ticket's wallet refund options. The customer figures count the store's completed orders whose customer or order email is the ticket's email. Requires the ticket API-key ability and the ticket permission in your team role. The response includes the customer's email, order count and lifetime spend, so give a key with this ability only to people and tools that may see them. Amounts are integer USD cents: 1999 means $19.99. 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.

Path Parameters

ticket*integer

The ticket ID in the selected store.

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.

Response Body

Successful response.

application/json
  1. response
data*
Example Request
curl -X GET 'https://sell.app/api/v2/tickets/312/context' \  -H 'X-STORE: launch-lab'
{  "data": {    "ticket_id": 312,    "resolution": {      "outcome": null,      "resolved_at": null,      "resolved_by_rule_id": null    },    "customer": {      "email": "maya.chen@example.com",      "completed_orders": 3,      "lifetime_spend_usd_cents": 5997,      "first_order_at": "2026-06-12T14:30:00.000000Z"    },    "linked_order": {      "id": 1042,      "product_title": "Design kit",      "created_at": "2026-09-01T16:45:00.000000Z"    },    "refund_options": [      {        "invoice_id": 5120,        "order_id": 1042,        "product_id": 120,        "product_title": "Design kit",        "currency": "USD",        "paid_cents": 1999,        "active_support_refunds_cents": 500,        "refundable_cents": 1499      }    ],    "activity": [      {        "id": 9001,        "event": "refund_issued",        "actor_type": "seller",        "rule": null,        "wallet_entry": {          "id": 7001,          "amount_usd_cents": 500,          "reversed": false        },        "created_at": "2026-09-04T09:30:00.000000Z"      }    ]  }}