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

NameTypeDescription

id

integer

ticket id

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

NameTypeDescription

id

integer

ticket id

Request Body

NameTypeDescription

message

string

Reply of the ticket

{    "message": "Message successfully posted"    }

Close ticket

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

Close ticket.

Path Parameters

NameTypeDescription

id

integer

ticket id

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

Dernière mise à jour