Skip to Content
Prets Developer Portal

Close a case from the merchant review stage

POST
/v1/cases/{caseId}/close

to try read requests with your account, or paste an API key into the Authorization field. Create an API key in the Partner Portal.

Closes a case once you're satisfied, typically after Prets has handled your request and handed the case back to you for review. You can add an optional closing message.

Returns the closed case, with state set to closed. Returns 409 when the case cannot be closed from its current stage, including when it is already closed, and 404 when the case does not exist or is not visible to you.

Path Parameters

caseId*string

Platform case id (cas_{ULID})

Match^cas_[0-9A-HJKMNP-TV-Z]{26}$

Request Body

application/json
  1. body

Optional closing note posted with the close

message?

Optional closing note posted alongside the close

Response Body

The closed case

application/json
  1. response

Case after it was closed

data*||

Quote support Case. Conversation lives on /messages; this resource is metadata and lifecycle only.

Authorization

bearerAuth
headerAuthorizationBearer <token>
Example Request
curl -X POST 'https://api.prets.app/v1/cases/cas_01ARZ3NDEKTSV4RRFFQ69G5FAV/close' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "data": {    "caseId": "cas_01ARZ3NDEKTSV4RRFFQ69G5FAV",    "quote": {      "quoteId": "qot_01ARZ3NDEKTSV4RRFFQ69G5FAV"    },    "type": "merchant_feedback",    "requestType": "Reschedule Meeting",    "subject": "Customer wants a later install date",    "description": "The customer asked to move the appointment.",    "stage": "Prets Action",    "createdAt": "2026-08-14T09:12:04.000Z",    "expiresAt": "2026-09-09",    "createdBy": "Jane Advisor",    "updatedAt": "2026-08-16T11:03:22.000Z",    "state": "open",    "waitingOn": "prets",    "waitingSince": "2026-08-14T09:12:04.000Z"  }}