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
    },
    ...
]

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
        },
        ...
    ]
}

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"    }

Close ticket

POST https://api.rahona.network/me/tickets/:id/close

Close ticket.

Path Parameters

{    "message": "The ticket has been closed"    }

Dernière mise à jour