Sweeppea API v3

Resolve Ticket

Close an open support ticket for the authenticated user.

POST https://api-v3.sweeppea.com/tickets/resolve

Description

This endpoint allows users to close their own open support tickets. The ticket must belong to the authenticated user and must be in open status (Status = false). When closed, the ticket's status is set to true, completion is set to 100%, and a closing note and resolve statistic are automatically added.

Authentication

This endpoint requires Bearer token authentication via the Authorization header.

Request Body

Parameter Type Required Description
CaseId String Yes The case number of the ticket to close (e.g., "ABC1234")

Code Examples

curl -X POST "https://api-v3.sweeppea.com/tickets/resolve" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "CaseId": "ABC1234"
  }'

Response

{
  "Response": true,
  "Message": "Ticket Resolved Successfully",
  "Data": {
    "CaseNumber": "ABC1234",
    "Subject": "Payment processing issue",
    "Status": true,
    "CloseDate": "2026-01-26T12:05:35.534Z",
    "ClosedBy": "John Doe"
  }
}

Error Responses

{
  "Response": false,
  "Message": "Missing Required Field: CaseId is required",
  "Help": {
    "ExpectedBody": {
      "CaseId": "string (required) \u2014 case id of the ticket"
    }
  },
  "Code": 400
}
{
  "Response": false,
  "Message": "Missing or invalid Bearer token. Send your API token in the Authorization header as: Authorization: Bearer YOUR_API_TOKEN",
  "Code": 401
}
{
  "Response": false,
  "Message": "Invalid API token. It does not match any account.",
  "Code": 403
}
{
  "Response": false,
  "Message": "Ticket Not Found or Already Closed",
  "Code": 404
}

409 Conflict

The ticket is locked while our engineering team works on it (an engineering issue is still open or a fix is still in progress). It can be resolved once that work is finished.

{
  "Response": false,
  "Message": "Ticket ABC1234 is locked while our engineering team works on it. It can be resolved once that work is finished.",
  "Code": 409
}
{
  "Response": false,
  "Message": "Internal server error. Please try again; if it persists, contact support with the time of this request.",
  "Code": 500
}
© Sweeppea. All rights reserved.