Get Tickets

These endpoints read tickets and their comment threads.

get/company/tickets

Request

  • Base URL
    https://queries.test.envia.com
  • URL
    https://queries.test.envia.com/company/tickets
  • Auth
    HTTP bearer

Query parameters

pageinteger

Page number

limitinteger

Items per page

status_group'active' | 'resolved'

Filter by tab. Ignored if status/ticket_status_id is present.

statusinteger

Filter by a specific status ID (takes precedence over status_group).

ticket_status_idinteger

Alias filter by status ID (takes precedence over status_group).

typeinteger

Filter by ticket type ID.

ticket_type_idinteger

Alias filter by ticket type ID.

carrier_idinteger

Filter bt carrier

filterstring

Search by exact ticket ID.

tracking_numberstring

Filter by shipment tracking number.

date_fromstring date

Created-at lower bound (inclusive). YYYY-MM-DD

date_tostring date

Created-at upper bound (inclusive). YYYY-MM-DD

active1 | 0

Filter by whether the ticket type is active.

getCommentsboolean

When true, includes the full allComments thread per ticket.

Response

total_rowsinteger

Example response

{
  "data": [
    {
      "id": 987654,
      "company_id": 4321,
      "ticket_type_id": 4,
      "ticket_type_name": "lost",
      "reference": "guide",
      "ticket_status_id": 1,
      "ticket_status_name": "pending",
      "ticket_status_color": "#F5A623",
      "ticket_class_name": "warning",
      "shipment_id": 123456,
      "tracking_number": "1Z999AA10123456784",
      "carrier": "DHL",
      "service": "Express",
      "comments": "The package never arrived.",
      "data": {
        "tracking_number": "1Z999AA10123456784"
      },
      "created_at": "2026-07-08 10:15:00",
      "utc_created_at": "2026-07-08 16:15:00",
      "updated_at": "2026-07-08 10:15:00"
    }
  ],
  "total_rows": 1,
  "counts": {
    "active": 1
  }
}

Changes

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