Skip to content

Close Ticket

Close a support ticket.

Endpoint

INFO

PATCH /api/v1/dashboard/tickets/{ticket}/close

Headers

HeaderValueRequired
Content-Typeapplication/jsonYes
Acceptapplication/jsonYes
AuthorizationBearer {token}Yes

Path Parameters

ParameterTypeDescription
ticketintegerTicket ID

Request Body

ParameterTypeRequiredDescription
reasonstringNoClosure reason

Example Request

bash
curl -X PATCH https://api.daakey.com/api/v1/dashboard/tickets/1/close \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {token}" \
  -d '{
    "reason": "Issue resolved, customer confirmed"
  }'

Response

Success (200)

json
{
  "success": true,
  "message": "Ticket closed",
  "data": {
    "id": 1,
    "reference": "TK-2024-00001",
    "status": "closed",
    "closed_at": "2024-01-15T15:00:00Z",
    "closed_by": {
      "id": 2,
      "name": "Support Agent"
    },
    "closure_reason": "Issue resolved, customer confirmed"
  },
  "request_id": "uuid",
  "timestamp": "2024-01-01T00:00:00.000Z"
}

Notes

  • Closed tickets cannot receive new messages
  • Closing sends a notification to the client

Daakey Car Sharing Platform