List the company's support tickets, newest first
const url = 'https://api.fleet.co/platform/v1/tickets?limit=50&offset=0&status=OPENED&category=ORDER__UPDATE&reference=48213';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.fleet.co/platform/v1/tickets?limit=50&offset=0&status=OPENED&category=ORDER__UPDATE&reference=48213' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Page size (max 100)
Example
50Number of items to skip
Example
0Support ticket status; WAITING_CLIENT means Fleet waits for the company’s answer
What the request is about, as in Cockpit’s support form
Example
HARDWARE_PROBLEMThe reference Fleet support quotes
Example
48213Responses
Section titled “Responses”Paginated tickets
object
object
Reference Fleet support quotes in its replies
What the request is about, as in Cockpit’s support form
Support ticket status; WAITING_CLIENT means Fleet waits for the company’s answer
The request as the requester wrote it
ISO 8601
ISO 8601
object
Total items matching filters (before paging)
Page size used for this response
Offset used for this response
Example
{ "data": [ { "reference": "48213", "category": "ORDER__UPDATE", "status": "OPENED" } ], "meta": { "total": 42, "limit": 50, "offset": 0 }}Validation error
object
Every validation failure, comma-separated
Example
{ "message": "Required, must be an ISO 3166-1 alpha-2 country code", "type": "validation_error", "error": "validation_error"}Missing, invalid, or revoked API key
Example
UnauthorizedRate limit exceeded. The RateLimit-* headers give the limit and the reset time.
Example
Too many requests, please try again later.Unexpected server error
object
Example
{ "error": "INTERNAL_ERROR"}Rate limiting is temporarily unavailable; retry with backoff
object
Example generated
{ "message": "example"}
