Ticket

Fetch Tickets

GET https://app.clubcollect.com/api/v2/invoices/:id/tickets

Path Parameters

NameTypeDescription

id*

string

ID of Invoice for which Tickets wish to be fetched.

Query Parameters

NameTypeDescription

api:key

string

Partner API Key (Deprecated)

Headers

NameTypeDescription

Authorization*

string

ApiKey <api_key>

Content-Type*

string

Must be application/json.

"tickets": [
  {
   "ticket_id": "...",
   "message": "I don't want to pay",
   "sender": "CUSTOMER",
   "date": "..."
  },
  {
   "ticket_id": "...",
   "message": "Please pay before the 30th",
   "sender": "COMPANY",
   "date": "..."
   }
]

Create Ticket

POST https://app.clubcollect.com/api/v2/invoices/:id/tickets

Create a support Ticket for an Invoice.

Path Parameters

NameTypeDescription

id*

string

ID for the Invoice to which the Ticket should be attached.

Query Parameters

NameTypeDescription

api:key

string

Partner API Key (Deprecated)

Headers

NameTypeDescription

Authorization*

string

ApiKey <api_key>

Content-Type*

string

Must be application/json.

Request Body

NameTypeDescription

message*

string

Contents of the Ticket.

{
  "ticket_id": "...",
  "message": "Please pay before the 30th",
  "sender": "COMPANY",
  "date": "..."
}

Archive Ticket

POST https://app.clubcollect.com/api/v2/invoices/:id/tickets/actions/archive

Archive all Tickets for an Invoice.

Path Parameters

NameTypeDescription

id*

string

ID of the Invoice for which Tickets should be archived.

Query Parameters

NameTypeDescription

api:key

string

Partner API Key (Deprecated)

Headers

NameTypeDescription

Authorization*

string

ApiKey <api_key>

Content-Type*

string

Must be application/json.

Assign Ticket to Support

POST https://app.clubcollect.com/api/v2/invoices/:id/tickets/actions/assign:to:support

Assign Tickets for an Invoice to ClubCollect Support Team.

Path Parameters

NameTypeDescription

id*

string

ID of Invoice for which Tickets should be assigned to Support.

Query Parameters

NameTypeDescription

api:key

string

Partner API Key (Deprecated)

Headers

NameTypeDescription

Authorization*

string

ApiKey <api_key>

Content-Type*

string

Must be application/json.

Fetch All Tickets

GET https://app.clubcollect.com/api/v2/companies/:id/tickets/:status

Returns the list of tickets linked to a company, filtered by Ticket status, paginated and sorted in ascending order, i.e. from oldest to newest.

Path Parameters

NameTypeDescription

status*

string

One of: { unanswered answered archived }

id*

string

ID of Company for which Tickets should be fetched.

Query Parameters

NameTypeDescription

api:key

string

Partner API Key (Deprecated)

page:number

integer

Page number. If it's not given, default to 1.

page:size

integer

Number of results per page. If it's not given, defaults to 30. Maximum permitted value is 100.

Headers

NameTypeDescription

Authorization*

string

ApiKey <api_key>

"tickets": [
  {
   "invoice_id": "...",
   "ticket_id": "...",
   "message": "I don't want to pay",
   "sender": "CUSTOMER",
   "date": "..."
  },
  {
   "invoice_id": "...",
   "ticket_id": "...",
   "message": "Please pay before the 30th",
   "sender": "COMPANY",
   "date": "..."
   }
]
"page": {
  "page_number": 1,
  "page_size": 12,
  "total_entries": 53,
  "total_pages": 5
}

Last updated