curl --request POST \
--url https://api.mijnklantportaal.nl/v1/tickets/{ticketId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"message": "<p>We will look into it!</p>"
}
'{
"id": "tic_abc12345def678",
"customerId": "cst_abc12354678",
"title": "Invoice issue",
"source": "portal",
"status": "open",
"messages": [
{
"id": "tim_abc12345def678",
"postedBy": "John Appleseed",
"isPostedByCustomer": true,
"message": "<p>Hello, help me with my invoice please</p>",
"postedAt": "2024-04-29T21:00:00+02:00",
"attachments": [
{
"id": "tma_abc12345def678",
"name": "Screenshot.png",
"size": 1256,
"mime": "image/png"
}
]
}
],
"createdAt": "2024-04-29T21:00:00+02:00"
}Add a new message as reply to the ticket. Please note that replying to a closed ticket will reopen it. You can not add a message to a ticket created from live chat via the API
curl --request POST \
--url https://api.mijnklantportaal.nl/v1/tickets/{ticketId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"message": "<p>We will look into it!</p>"
}
'{
"id": "tic_abc12345def678",
"customerId": "cst_abc12354678",
"title": "Invoice issue",
"source": "portal",
"status": "open",
"messages": [
{
"id": "tim_abc12345def678",
"postedBy": "John Appleseed",
"isPostedByCustomer": true,
"message": "<p>Hello, help me with my invoice please</p>",
"postedAt": "2024-04-29T21:00:00+02:00",
"attachments": [
{
"id": "tma_abc12345def678",
"name": "Screenshot.png",
"size": 1256,
"mime": "image/png"
}
]
}
],
"createdAt": "2024-04-29T21:00:00+02:00"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
ID of the ticket record to add the message to
A string, optional in HTML format, which will be posted as message to the ticket
"<p>We will look into it!</p>"
The message is posted and the tickt with messages is returned
Ticket record with the messages
ID of the Webhook record, always starting with tic_.
"tic_abc12345def678"
ID of the Customer this ticket belongs to
"cst_abc12354678"
Title of the ticket, mostly describing the ticket
"Invoice issue"
Source of the ticket. Can be portal, email or chat.
"portal"
Current status of the ticket. Can be open or closed.
"open"
An array with the messages in this ticket
Show child attributes
Date and time when the ticket was created, written in ATOM format.
"2024-04-29T21:00:00+02:00"