Tickets

Get Tickets

Retrieves the tickets.

get/v1/shops/{shopId}/tickets

Request body

pageinteger

Page number.

perPageinteger

Items per page, 1-100. Must be at least 1. Must not be greater than 100.

orderColumn'id' | 'subject' | 'created_at' | 'closed_at'
orderDirection'asc' | 'desc'
idstring

Filter by ticket ID.

statusesstring[]
customer_emailstring

Filter by customer email.

created_at_startstring

Must be a valid date.

created_at_endstring

Must be a valid date. Must be a date after <code>created_at_start</code>.

closed_at_startstring

Must be a valid date.

closed_at_endstring

Must be a valid date. Must be a date after <code>closed_at_start</code>.

archivedstring

Only archived tickets.

Example request

{
  "page": 1
}

Response

current_pageinteger
first_page_urlstring
frominteger
last_pageinteger
last_page_urlstring
next_page_urlstring
pathstring
per_pageinteger
prev_page_urlstring
tointeger
totalinteger

Example response

{
  "current_page": 1,
  "data": [
    {
      "id": "a0ec2492-c627-4b90-a390-6ca955902f27",
      "shop_id": 1,
      "shop_customer_id": 1,
      "invoice_id": null,
      "subject": "Order question",
      "status": "open",
      "closed_at": null,
      "archived_at": null,
      "created_at": "2026-08-28T18:23:02.000000Z",
      "updated_at": "2026-08-28T18:23:02.000000Z",
      "customer": {
        "id": 1,
        "shop_id": 1,
        "email": "customer@sellauth.test"
      },
      "last_message": null,
      "invoice": null
    }
  ],
  "first_page_url": "http://api.sellauth.test/v1/shops/1/tickets?page=1",
  "from": 1,
  "last_page": 1,
  "last_page_url": "http://api.sellauth.test/v1/shops/1/tickets?page=1",
  "links": [
    {
      "url": null,
      "label": "&laquo; Previous",
      "active": false
    },
    {
      "url": "http://api.sellauth.test/v1/shops/1/tickets?page=1",
      "label": "1",
      "active": true
    },
    {
      "url": null,
      "label": "Next &raquo;",
      "active": false
    }
  ],
  "next_page_url": null,
  "path": "http://api.sellauth.test/v1/shops/1/tickets",
  "per_page": 20,
  "prev_page_url": null,
  "to": 1,
  "total": 1
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.