Skip to Content
API ReferenceLegacy v1

Tickets

Request fields, responses, and examples for v1 tickets.

These v1 operations are active. Use an API key for SDK integrations. See authentication for credentials and store selection, or follow the first request guide.

List all tickets

GET
/v1/tickets

Authorization

bearerAuthstoreAuth
headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

headerX-STORE<token>

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.

Query Parameters

limit?integer

Number of items to return per page.

Range1 <= value <= 100
Default15
page?integer

Page number to return.

Range1 <= value
Default1

Response Body

Successful response.

application/json
  1. response
data*array<>
links*
meta*
Example Request
curl -X GET 'https://sell.app/api/v1/tickets'
{  "data": [    {      "id": 1,      "title": "Payment methods",      "status": "OPEN",      "customer": {        "id": 125,        "email": "jamie.chen@example.com"      },      "reference": [],      "created_at": "2022-12-12T12:12:12.000000Z",      "updated_at": "2022-12-12T12:12:12.000000Z",      "store_id": 1,      "read_by": 1,      "archived": 0    }  ],  "links": {    "first": "https://sell.app/api/v1/tickets?page=1",    "last": "https://sell.app/api/v1/tickets?page=1",    "prev": null,    "next": null  },  "meta": {    "current_page": 1,    "from": 1,    "last_page": 1,    "path": "https://sell.app/api/v1/tickets",    "per_page": 15,    "to": 1,    "total": 1,    "links": [      {        "url": null,        "label": "&laquo; Previous",        "active": false      },      {        "url": "https://sell.app/api/v1/tickets?page=1",        "label": "1",        "active": true      },      {        "url": null,        "label": "Next &raquo;",        "active": false      }    ]  }}

Retrieve specific ticket

GET
/v1/tickets/{ticket}

Authorization

bearerAuthstoreAuth
headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

headerX-STORE<token>

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.

Path Parameters

ticket*integer

The ticket path parameter.

Response Body

Successful response.

application/json
  1. response
data*
Example Request
curl -X GET 'https://sell.app/api/v1/tickets/1'
{  "data": {    "id": 1,    "title": "Payment methods",    "status": "OPEN",    "customer": {      "id": 125,      "email": "jamie.chen@example.com"    },    "reference": [],    "created_at": "2022-12-12T12:12:12.000000Z",    "updated_at": "2022-12-12T12:12:12.000000Z",    "store_id": 1,    "read_by": 1,    "archived": 0  }}

List all ticket messages

GET
/v1/tickets/{ticket}/messages

Authorization

bearerAuthstoreAuth
headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

headerX-STORE<token>

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.

Path Parameters

ticket*integer

The ticket path parameter.

Query Parameters

limit?integer

Number of items to return per page.

Range1 <= value <= 100
Default15
page?integer

Page number to return.

Range1 <= value
Default1

Response Body

Successful response.

application/json
  1. response
data*array<>
links*
meta*
Example Request
curl -X GET 'https://sell.app/api/v1/tickets/1/messages'
{  "data": [    {      "id": 1,      "author": "CUSTOMER",      "sender": "jamie.chen@example.com",      "content": "Hello, which payment methods can I use for this purchase?",      "created_at": "2022-12-12T12:12:12.000000Z",      "updated_at": "2022-12-12T12:12:12.000000Z",      "ticket_id": 1    }  ],  "links": {    "first": "https://sell.app/api/v1/tickets/1/messages?page=1",    "last": "https://sell.app/api/v1/tickets/1/messages?page=1",    "prev": null,    "next": null  },  "meta": {    "current_page": 1,    "from": 1,    "last_page": 1,    "path": "https://sell.app/api/v1/tickets/1/messages",    "per_page": 15,    "to": 1,    "total": 1,    "links": [      {        "url": null,        "label": "&laquo; Previous",        "active": false      },      {        "url": "https://sell.app/api/v1/tickets/1/messages?page=1",        "label": "1",        "active": true      },      {        "url": null,        "label": "Next &raquo;",        "active": false      }    ]  }}

Reply to ticket

POST
/v1/tickets/{ticket}/messages

Authorization

bearerAuthstoreAuth
headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

headerX-STORE<token>

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.

Path Parameters

ticket*integer

The ticket path parameter.

Request Body

application/json
  1. body
content*string

Response Body

Successful response.

application/json
  1. response
data*
Example Request
curl -X POST 'https://sell.app/api/v1/tickets/1/messages' \  -H 'Content-Type: application/json' \  -d '{  "content": "You can choose from the payment methods shown at checkout."}'
{  "data": {    "id": 2,    "author": "STORE",    "sender": null,    "content": "You can choose from the payment methods shown at checkout.",    "created_at": "2022-12-12T12:12:12.000000Z",    "updated_at": "2022-12-12T12:12:12.000000Z",    "ticket_id": 1  }}
GET
/v1/tickets/{ticket}/messages/{message}

Authorization

bearerAuthstoreAuth
headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

headerX-STORE<token>

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.

Path Parameters

ticket*integer

The ticket path parameter.

message*integer

The message path parameter.

Response Body

Successful response.

application/json
  1. response
data*
Example Request
curl -X GET 'https://sell.app/api/v1/tickets/1/messages/2'
{  "data": {    "id": 2,    "author": "STORE",    "sender": null,    "content": "You can choose from the payment methods shown at checkout.",    "created_at": "2022-12-12T12:12:12.000000Z",    "updated_at": "2022-12-12T12:12:12.000000Z",    "ticket_id": 1  }}

Search tickets

POST
/v1/tickets/search

Authorization

bearerAuthstoreAuth
headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

headerX-STORE<token>

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.

Request Body

application/json
  1. body
filters?array<|>
sort?array<>
search?
includes?array<>

Response Body

Successful response.

application/json
  1. response
data*array<>
links*
meta*
Example Request
curl -X POST 'https://sell.app/api/v1/tickets/search' \  -H 'Content-Type: application/json' \  -d '{  "filters": [    {      "field": "id",      "operator": "=",      "value": 1    }  ],  "sort": [    {      "field": "created_at",      "direction": "desc"    }  ]}'
{  "data": [    {      "id": 1,      "title": "Payment methods",      "status": "OPEN",      "customer": {        "id": 125,        "email": "jamie.chen@example.com"      },      "reference": [],      "created_at": "2022-12-12T12:12:12.000000Z",      "updated_at": "2022-12-12T12:12:12.000000Z",      "store_id": 1,      "read_by": 1,      "archived": 0    }  ],  "links": {    "first": "https://sell.app/api/v1/tickets/search?page=1",    "last": "https://sell.app/api/v1/tickets/search?page=1",    "prev": null,    "next": null  },  "meta": {    "current_page": 1,    "from": 1,    "last_page": 1,    "path": "https://sell.app/api/v1/tickets/search",    "per_page": 20,    "to": 1,    "total": 1,    "links": [      {        "url": null,        "label": "&laquo; Previous",        "active": false      },      {        "url": "https://sell.app/api/v1/tickets/search?page=1",        "label": "1",        "active": true      },      {        "url": null,        "label": "Next &raquo;",        "active": false      }    ]  }}

Search ticket messages

POST
/v1/tickets/{ticket}/messages/search

Authorization

bearerAuthstoreAuth
headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

headerX-STORE<token>

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.

Path Parameters

ticket*integer

The ticket path parameter.

Request Body

application/json
  1. body
filters?array<|>
sort?array<>
search?
includes?array<>

Response Body

Successful response.

application/json
  1. response
data*array<>
links*
meta*
Example Request
curl -X POST 'https://sell.app/api/v1/tickets/1/messages/search' \  -H 'Content-Type: application/json' \  -d '{  "filters": [    {      "field": "id",      "operator": "=",      "value": 1    }  ],  "sort": [    {      "field": "created_at",      "direction": "desc"    }  ]}'
{  "data": [    {      "id": 1,      "author": "CUSTOMER",      "sender": "jamie.chen@example.com",      "content": "Hello, which payment methods can I use for this purchase?",      "created_at": "2022-12-12T12:12:12.000000Z",      "updated_at": "2022-12-12T12:12:12.000000Z",      "ticket_id": 1    }  ],  "links": {    "first": "https://sell.app/api/v1/tickets/1/messages/search?page=1",    "last": "https://sell.app/api/v1/tickets/1/messages/search?page=1",    "prev": null,    "next": null  },  "meta": {    "current_page": 1,    "from": 1,    "last_page": 1,    "path": "https://sell.app/api/v1/tickets/1/messages/search",    "per_page": 20,    "to": 1,    "total": 1,    "links": [      {        "url": null,        "label": "&laquo; Previous",        "active": false      },      {        "url": "https://sell.app/api/v1/tickets/1/messages/search?page=1",        "label": "1",        "active": true      },      {        "url": null,        "label": "Next &raquo;",        "active": false      }    ]  }}