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

# Create Ticket

Raises a support ticket for the calling organization. A partner can raise a ticket for one of its linked sub-merchants by sending `merchant_account_id`.

To attach files, upload each file with [Upload Attachment](https://docs.rapyd.net/en/upload-attachment.md "Upload Attachment")first and pass the tokens in `attachments`. If the API cannot attach a file, it still creates the ticket and returns the failed tokens in `failed_attachments`.

The requester email is `contact.email` when you send it. Otherwise the API uses the default contact of the calling organization. If the organization has no default contact, the API creates the ticket without an email, and replies sent by email are not shown in the ticket.

### Parameters

### 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**.
- - idempotency (string)
  - A unique key that prevents the platform from creating the same object twice.

    See [Idempotency](https://docs.rapyd.net/en/idempotency.md "Idempotency").
- - 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).

### Request Body Parameters

- - attachments (array)
  - Array of strings. Batch tokens returned by [Upload Attachment](https://docs.rapyd.net/en/upload-attachment.md "Upload Attachment") . Up to 5.
- - category (string, required)
  - The category of the ticket.

    - **GeneralIssueOrSandboxQuery**
    - **TechnicalIssue**
    - **Financial Issue**
- - contact (object)
  - The contact for the ticket.

    - - email (string)
      - The email address of the requester. Maximum length: 254 characters.
- - description (string)
  - A description of the issue. Maximum length: 1500 characters.
- - environment (string, required)
  - The environment the issue relates to. It also decides which subjects are valid.

    - **Production** - The live environment.
    - **Sandbox** - The sandbox environment.
- - issue_first_identified (string, required)
  - When the issue was first identified.

    - **Past24Hours**
    - **PastWeek**
    - **MoreThanAWeek**
    - **NotRelevant**
- - merchant_account_id (string)
  - Partners only. The organization token of a linked merchant. The API raises the ticket for that merchant.
- - subject (string, required)
  - A subject key that is valid for the category and environment, or `Other -`  followed by up to 120 characters of free text when the category offers `other`. See the allowed values in the introduction.
- - token (string)
  - The token of a related object, for example a payment. Accepted only when the category is `TechnicalIssue` or `Financial Issue`. Maximum length: 1500 characters.
- - total_transaction_value (string, required)
  - The total value of the affected transactions.

    - **LessThan1kUSD**
    - **1kTill100kUSD**
    - **GreaterThan100kUSD**
    - **NotRelevant**
- - transactions_users_affected (string, required)
  - The number of transactions or users that the issue affects.

    - **SingleTransactionUser**
    - **PartialTransactionsUsersAreAffected**
    - **AllTransactionsUsersAreAffected**
    - **NotRelevant**

### 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.
- - failed_attachments (array)
  - Array of strings. The tokens of files that the API could not attach. Returned only when at least one file failed. The API creates the ticket anyway.
- - 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

- Create Ticket
- ```curl
  curl -X post 'https://sandboxapi.rapyd.net/v1/support/tickets' \
  -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' \
  --data-raw '{
      "category": "Financial Issue",
      "environment": "Production",
      "subject": "settlement",
      "issue_first_identified": "Past24Hours",
      "transactions_users_affected": "PartialTransactionsUsersAreAffected",
      "total_transaction_value": "1kTill100kUSD",
      "description": "Settlement for 2026-09-28 did not arrive.",
      "token": "payment_1234567890abcdef",
      "contact": {
          "email": "ops@merchant.com"
      },
      "attachments": [
          "batch_9f1c2d7e4a6b"
      ]
  }'
  ```
- ```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": "open",
          "environment": "Production",
          "created_at": 1791447646,
          "updated_at": 1791447646,
          "failed_attachments": [
              "batch_9f1c2d7e4a6b"
          ]
      }
  }
  ```

- Create Ticket for a Sub-Merchant (Partners)
- ```curl
  curl -X post 'https://sandboxapi.rapyd.net/v1/support/tickets' \
  -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' \
  --data-raw '{
      "category": "Financial Issue",
      "environment": "Production",
      "subject": "settlement",
      "issue_first_identified": "Past24Hours",
      "transactions_users_affected": "PartialTransactionsUsersAreAffected",
      "total_transaction_value": "1kTill100kUSD",
      "merchant_account_id": "org_4b593eba3670d256b884e7c6242f1244"
  }'
  ```
- ```json
  {
      "status": {
          "error_code": "",
          "status": "SUCCESS",
          "message": "",
          "response_code": "",
          "operation_id": "6f1c1d0e-2b7a-4f0e-9d0a-3c1d8e2b7a11"
      },
      "data": {
          "id": "49230885151",
          "subject": "settlement",
          "status": "open",
          "environment": "Production",
          "created_at": 1791447646,
          "updated_at": 1791447646,
          "merchant_account_id": "org_4b593eba3670d256b884e7c6242f1244"
      }
  }
  ```
