Rahona API
English
English
  • Introduction
  • Overview
  • rest api v1
    • Products
    • User
      • Invoices
      • Tickets
  • Services
    • Servers
  • Links
    • Website
    • Panel
Propulsé par GitBook
Sur cette page
  • List tickets
  • Get ticket
  • Reply ticket
  • Close ticket

Cet article vous a-t-il été utile ?

  1. rest api v1
  2. User

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

Name
Type
Description

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

Name
Type
Description

id

integer

ticket id

Request Body

Name
Type
Description

message

string

Reply of the ticket

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

Name
Type
Description

id

integer

ticket id

{    "message": "The ticket has been closed"    }
{    "error": "Can't close the ticket"    }
PrécédentInvoicesSuivantServices

Dernière mise à jour il y a 5 ans

Cet article vous a-t-il été utile ?