---
title: "Close Ticket"
source_url: https://docs.rapyd.net/en/close-ticket.html
lang: en
---

# Close Ticket

Closes an open ticket. The request has no body. Closing a ticket that is already closed is safe, and the API returns the ticket unchanged. You cannot reopen a closed ticket through the API.

### Parameters

### Request Path Parameters

- - ticket_id (string, required)
  - The ID of the ticket.

### Request Header Parameters

- - access_key (string, required)
  - Unique access key provided by Rapyd for each authorized user.

    See [Developers](https://docs.rapyd.net/en/developers.md "Developers").
- - Content-Type (string, required)
  - Indicates that the data appears in JSON format. Set to **application/json**.
- - salt (string, required)
  - Random string. Recommended length: 8-16 characters.
- - signature (string, required)
  - Signature calculated for each request individually.

    See [Request Signatures](https://docs.rapyd.net/en/request-signatures.md "Request Signatures").
- - timestamp (string, required)
  - Timestamp for the request, in [Unix time](https://docs.rapyd.net/en/glossary.md#UUID-945d98cf-adae-e1cf-2606-c7fae8b4a7e1_unix_time "Unix time") (seconds).

### 200 OK Response

- - created_at (number)
  - The time of ticket creation, in Unix seconds.
- - description (string)
  - The description of the ticket.
- - environment (string)
  - The environment of the ticket.

    - **Production** - The live environment.
    - **Sandbox** - The sandbox environment.
- - id (string)
  - The ID of the ticket.
- - merchant_account_id (string)
  - The organization token of the merchant that the partner raised the ticket for. Returned for partners only. It is null for the partner's own tickets, and absent when the partner did not raise the ticket for a merchant.
- - status (string)
  - Whether the ticket is open or closed.

    - **open** - The ticket is open.
    - **closed** - The ticket is closed.
- - subject (string)
  - The subject of the ticket. A subject key, or `Other -`  followed by free text.
- - updated_at (number)
  - The time the ticket was last updated, in Unix seconds.

- /v1/support/tickets/:ticket_id/close

- Close Ticket
- ```curl
  curl -X post 'https://sandboxapi.rapyd.net/v1/support/tickets/49230885151/close' \
  -H 'access_key: your-access-key-here' \
  -H 'Content-Type: application/json' \
  -H 'salt: your-random-string-here' \
  -H 'signature: your-calculated-signature-here' \
  -H 'timestamp: your-unix-timestamp-here' \
  ```
- ```json
  {
      "status": {
          "error_code": "",
          "status": "SUCCESS",
          "message": "",
          "response_code": "",
          "operation_id": "6f1c1d0e-2b7a-4f0e-9d0a-3c1d8e2b7a11"
      },
      "data": {
          "id": "49230885151",
          "subject": "settlement",
          "description": "Settlement for 2026-09-28 did not arrive.",
          "status": "closed",
          "environment": "Production",
          "created_at": 1791447646,
          "updated_at": 1791450000
      }
  }
  ```
