Tickets
The store's side of support tickets: read the threads, reply and organize them.
List tickets
GET
/api/v1/ticketsAbilitytickets.readReturns the store's tickets, most urgent and most recently active first.
Query parameters
statusstring- open, answered or closed.
prioritystring- low, normal, high or urgent.
per_pageinteger- Items per page, from 1 to 100. Default 20. A value outside that range returns 422.
pageinteger- Page number, from 1 to 10000. Default 1. A value outside that range returns 422.
curl "https://sellitex.com/api/v1/tickets?status=open" \
-H "Authorization: Bearer sk_live_..." \
-H "Accept: application/json"Response200
{
"data": [
{
"id": 58,
"subject": "Não recebi meu VIP",
"status": "open",
"priority": "high",
"source": "storefront",
"order_id": 123,
"order_number": "A1B2C3D4E5",
"buyer_email": "[email protected]",
"last_message_at": "2026-08-19T15:02:00+00:00",
"created_at": "2026-08-19T15:02:00+00:00"
}
],
"links": {
"first": "…?page=1",
"last": "…?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"per_page": 20,
"to": 1,
"total": 1
}
}Retrieve a ticket
GET
/api/v1/tickets/{ticket}Abilitytickets.readReturns the ticket with its whole thread in messages. A ticket of another store answers 404.
Path parameters
ticketintegerrequired- The ticket id.
curl "https://sellitex.com/api/v1/tickets/58" \
-H "Authorization: Bearer sk_live_..." \
-H "Accept: application/json"Response200
{
"data": {
"id": 58,
"subject": "Não recebi meu VIP",
"status": "answered",
"priority": "high",
"source": "storefront",
"order_id": 123,
"order_number": "A1B2C3D4E5",
"buyer_email": "[email protected]",
"last_message_at": "2026-08-19T15:10:00+00:00",
"created_at": "2026-08-19T15:02:00+00:00",
"messages": [
{
"id": 901,
"author_type": "buyer",
"author_name": null,
"body": "Paguei e o VIP não apareceu no servidor.",
"created_at": "2026-08-19T15:02:00+00:00"
},
{
"id": 902,
"author_type": "merchant",
"author_name": null,
"body": "Já reenviamos a entrega, confira no jogo!",
"created_at": "2026-08-19T15:10:00+00:00"
}
]
}
}Reply
POST
/api/v1/tickets/{ticket}/messagesAbilitytickets.writeReplies to the buyer on behalf of the store: they get an e-mail, the ticket moves to answered and, if it came from Discord, the reply is relayed to the bot.
Path parameters
ticketintegerrequired- The ticket id.
Request body (JSON)
bodystringrequired- The reply text, up to 5000 characters.
curl -X POST "https://sellitex.com/api/v1/tickets/58/messages" \
-H "Authorization: Bearer sk_live_..." \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{"body":"Já reenviamos a entrega, confira no jogo!"}'Response201
{
"data": {
"id": 58,
"subject": "Não recebi meu VIP",
"status": "answered",
"priority": "high",
"source": "storefront",
"order_id": 123,
"order_number": "A1B2C3D4E5",
"buyer_email": "[email protected]",
"last_message_at": "2026-08-19T15:10:00+00:00",
"created_at": "2026-08-19T15:02:00+00:00",
"messages": [
{
"id": 901,
"author_type": "buyer",
"author_name": null,
"body": "Paguei e o VIP não apareceu no servidor.",
"created_at": "2026-08-19T15:02:00+00:00"
},
{
"id": 902,
"author_type": "merchant",
"author_name": null,
"body": "Já reenviamos a entrega, confira no jogo!",
"created_at": "2026-08-19T15:10:00+00:00"
}
]
}
}Close
POST
/api/v1/tickets/{ticket}/closeAbilitytickets.writeMarks the ticket resolved.
Path parameters
ticketintegerrequired- The ticket id.
curl -X POST "https://sellitex.com/api/v1/tickets/58/close" \
-H "Authorization: Bearer sk_live_..." \
-H "Accept: application/json"Response200
{
"data": {
"id": 58,
"subject": "Não recebi meu VIP",
"status": "closed",
"priority": "high",
"source": "storefront",
"order_id": 123,
"order_number": "A1B2C3D4E5",
"buyer_email": "[email protected]",
"last_message_at": "2026-08-19T15:02:00+00:00",
"created_at": "2026-08-19T15:02:00+00:00"
}
}Reopen
POST
/api/v1/tickets/{ticket}/reopenAbilitytickets.writeReopens a closed ticket.
Path parameters
ticketintegerrequired- The ticket id.
curl -X POST "https://sellitex.com/api/v1/tickets/58/reopen" \
-H "Authorization: Bearer sk_live_..." \
-H "Accept: application/json"Response200
{
"data": {
"id": 58,
"subject": "Não recebi meu VIP",
"status": "open",
"priority": "high",
"source": "storefront",
"order_id": 123,
"order_number": "A1B2C3D4E5",
"buyer_email": "[email protected]",
"last_message_at": "2026-08-19T15:02:00+00:00",
"created_at": "2026-08-19T15:02:00+00:00"
}
}Change the priority
PUT
/api/v1/tickets/{ticket}/priorityAbilitytickets.writeSets how urgently the ticket needs attention.
Path parameters
ticketintegerrequired- The ticket id.
Request body (JSON)
prioritystringrequired- low, normal, high or urgent.
curl -X PUT "https://sellitex.com/api/v1/tickets/58/priority" \
-H "Authorization: Bearer sk_live_..." \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{"priority":"urgent"}'Response200
{
"data": {
"id": 58,
"subject": "Não recebi meu VIP",
"status": "open",
"priority": "urgent",
"source": "storefront",
"order_id": 123,
"order_number": "A1B2C3D4E5",
"buyer_email": "[email protected]",
"last_message_at": "2026-08-19T15:02:00+00:00",
"created_at": "2026-08-19T15:02:00+00:00"
}
}The object
The fields this resource's endpoints return. Money is an integer in cents and dates are ISO 8601, in UTC.
idinteger- The ticket identifier.
subjectstring- Subject.
statusstring- open (waiting on the store), answered (waiting on the buyer) or closed.
prioritystring- low, normal, high or urgent.
sourcestring- Where it came from: storefront, discord or fivem.
order_idinteger- The order the ticket is about.
order_numberstring- That order's number.
buyer_emailstring- The buyer's e-mail.
last_message_atstring- The most recent message.
created_atstring- When it was opened.
messagesarray- The thread: author_type (buyer or merchant), author_name, body and created_at — detail and actions only.