Skip to main content

Delete ticket

POST{{server}}/api/v1/counter/closeTicket

This endpoint deletes a waiting ticket. The ticket key values should be passed as ticket parameter. The comment optional parameter can contain any information of the reason of deletion.

Request​

Authorization​

HeaderValue
AuthorizationBearer {{counterToken}}

Headers​

KeyValue
Acceptapplication/json
X-WSID{{counterWsID}}

Body (json)​

{
"ticket": "1905ed1d-557b-4df6-b15f-7e04f7287192",
"comment": "He's gone."
}

Code snippets​

curl -X POST '{{server}}/api/v1/counter/closeTicket' \
-H 'Accept: application/json' \
-H 'X-WSID: {{counterWsID}}' \
-H 'Authorization: Bearer {{counterToken}}' \
-H 'Content-Type: application/json' \
-d '{
"ticket": "1905ed1d-557b-4df6-b15f-7e04f7287192",
"comment": "He'\''s gone."
}'

Example​

Example request
POST{{server}}/api/v1/counter/closeTicket
Headers (2)
KeyValue
Acceptapplication/json
X-WSID{{counterWsID}}
Body
{
"ticket": "1905ed1d-557b-4df6-b15f-7e04f7287192",
"comment": "He's gone."
}
Example response 204 No Content
No response body