Tickets
User tickets management.
List tickets
GET
https://api.rahona.network/me/tickets
Retrieve all tickets.
[
{
"id": 123,
"product_id": 39,
"departement": "COM",
"sujet": "test",
"status": "OPEN",
"message": "I have a problem...",
"date": 1589222615
},
...
]
{ "error": "Can't find any tickets" }
Get ticket
GET
https://api.rahona.network/me/tickets/:id
Get all ticket informations and messages.
Path Parameters
{
"ticket": {
"id": 123,
"product_id": 39,
"departement": "COM",
"sujet": "test",
"status": "OPEN",
"message": "I have a problem...",
"date": 1583166986
},
"responses": [
{
"message": "Answer...",
"date": 1584628748
},
{
"message": "Other answer...",
"date": 1583604217
},
...
]
}
{ "error": "Can't find tickets infos" }
Reply ticket
POST
https://api.rahona.network/me/tickets/:id
Reply by sending a message to the ticket.
Path Parameters
Request Body
{ "message": "Message successfully posted" }
{ "error": "Can't post new reply" }
Close ticket
POST
https://api.rahona.network/me/tickets/:id/close
Close ticket.
Path Parameters
{ "message": "The ticket has been closed" }
{ "error": "Can't close the ticket" }
Dernière mise à jour