Ticket
Fetch Tickets
GET https://app.clubcollect.com/api/v2/invoices/:id/tickets
Path Parameters
id*
string
ID of Invoice for which Tickets wish to be fetched.
Query Parameters
api:key
string
Partner API Key (Deprecated)
Headers
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": "..."
}
]{
"error": "invalid_invoice_id"
}Create Ticket
POST https://app.clubcollect.com/api/v2/invoices/:id/tickets
Create a support Ticket for an Invoice.
Path Parameters
id*
string
ID for the Invoice to which the Ticket should be attached.
Query Parameters
api:key
string
Partner API Key (Deprecated)
Headers
Authorization*
string
ApiKey <api_key>
Content-Type*
string
Must be application/json.
Request Body
message*
string
Contents of the Ticket.
{
"ticket_id": "...",
"message": "Please pay before the 30th",
"sender": "COMPANY",
"date": "..."
}{
"error": "invalid_invoice_id"
}{
"error": "invalid_message"
}Archive Ticket
POST https://app.clubcollect.com/api/v2/invoices/:id/tickets/actions/archive
Archive all Tickets for an Invoice.
Path Parameters
id*
string
ID of the Invoice for which Tickets should be archived.
Query Parameters
api:key
string
Partner API Key (Deprecated)
Headers
Authorization*
string
ApiKey <api_key>
Content-Type*
string
Must be application/json.
{
"error": "invalid_invoice_id"
}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
id*
string
ID of Invoice for which Tickets should be assigned to Support.
Query Parameters
api:key
string
Partner API Key (Deprecated)
Headers
Authorization*
string
ApiKey <api_key>
Content-Type*
string
Must be application/json.
{
"error": "invalid_invoice_id"
}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
status*
string
One of: { unanswered answered archived }
id*
string
ID of Company for which Tickets should be fetched.
Query Parameters
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
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
}{
"error": "not_found"
}{
"error": "invalid_action"
}Last updated
Was this helpful?