Skip to Content
API ReferenceTickets

List all tickets

List your store's support tickets, 15 per page by default.

List your store's support tickets, 15 per page by default.

GET
/v2/tickets

Authorization

headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

Query Parameters

limit?integer

Number of items to return per page.

Range1 <= value <= 100
Default15
page?integer

Page number to return.

Range1 <= value
Default1
waiting_on?string

store: the latest message is from the customer, so the ticket waits on you. customer: the latest message is yours. A ticket without messages matches neither.

Value in"store""customer"
reason?string

A ticket reason by its label (as tickets show it in reason), its key such as platform:refund_request, or its code; case does not matter. A reason the store does not have returns 422 on reason, listing the store's reasons.

Lengthlength <= 150
customer_email?string

Part of the customer's email, case-insensitive. % and _ match those characters literally.

Lengthlength <= 255

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*array<>
links*
meta*
Example Request
curl -X GET 'https://sell.app/api/v2/tickets?waiting_on=store&reason=Refund+request&customer_email=maya.chen%40' \  -H 'X-STORE: launch-lab'
{  "data": [    {      "id": 1,      "title": "Payment methods",      "status": "OPEN",      "customer": {        "id": 125,        "email": "jamie.chen@example.com"      },      "reference": {        "type": null,        "id": null      },      "created_at": "2022-12-12T12:12:12.000000Z",      "updated_at": "2022-12-12T12:12:12.000000Z",      "store_id": 1,      "archived": 0,      "read_status": {        "customer": false,        "store": true      },      "order_id": null,      "reason": null,      "message_count": 0    }  ],  "links": {    "first": "https://sell.app/api/v2/tickets?page=1",    "last": "https://sell.app/api/v2/tickets?page=1",    "prev": null,    "next": null  },  "meta": {    "current_page": 1,    "from": 1,    "last_page": 1,    "path": "https://sell.app/api/v2/tickets",    "per_page": 15,    "to": 1,    "total": 1,    "links": [      {        "url": null,        "label": "&laquo; Previous",        "active": false      },      {        "url": "https://sell.app/api/v2/tickets?page=1",        "label": "1",        "active": true      },      {        "url": null,        "label": "Next &raquo;",        "active": false      }    ]  }}