---
updatedAt: 2026-10-31T08:03:05.000Z
agentTools:
  projectIndex: https://developer.accelevents.com/llms.txt
---

# Exchange Ticket Type

This API is used to exchange the event ticket of the user.

Here is the description of response attributes, which returns to the form of JSON.\
It will return a success message if the API executes successfully.

| Attribute   | Description                                                                          |
| :---------- | :----------------------------------------------------------------------------------- |
| **message** | It contains the message for a response that can be used for display to the end user. |
| **type**    | This field returns a type of message like success or error.                          |

Here are the possible error messages, which return if any condition fails or required data is missing for processing.

| Error Code | Error Description                                                          |
| :--------- | :------------------------------------------------------------------------- |
| 200        | Refund complete.                                                           |
| 201        | Created.                                                                   |
| 400        | The request could not be understood by the server due to malformed syntax. |
| 401        | You are not authorized to view the resource.                               |
| 403        | Accessing the resource you were trying to reach is forbidden.              |
| 404        | The resource you were trying to reach is not found.                        |
| 4030101    | Not staff User.                                                            |

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "accelevents",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.accelevents.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Key"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/rest/host/event/{eventUrl}/order/{orderId}/transfer-event-ticket": {
      "put": {
        "summary": "Exchange Ticket Type",
        "description": "This API is used to exchange the event ticket of the user.",
        "operationId": "exchange-ticket-type",
        "parameters": [
          {
            "name": "eventUrl",
            "in": "path",
            "description": "Event url is unique identifier for your event. E.g https://www.accelevents.com/events/demo. Here demo is the event url.",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "orderId",
            "in": "path",
            "description": "Transfer ticketing order by id must be required.",
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "required": true
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "API Authentication Token",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "eventTicketId",
                  "newTicketTypeId",
                  "sentMailToAttendee",
                  "orderId",
                  "paymentDetails"
                ],
                "properties": {
                  "eventTicketId": {
                    "type": "integer",
                    "description": "Event ticket type Id",
                    "default": 0,
                    "format": "int64"
                  },
                  "newTicketTypeId": {
                    "type": "integer",
                    "description": "New ticket type Id",
                    "default": 0,
                    "format": "int64"
                  },
                  "sentMailToAttendee": {
                    "type": "boolean",
                    "description": "Send email to attendee",
                    "default": true
                  },
                  "orderId": {
                    "type": "integer",
                    "description": "order id of the event ticket",
                    "default": 0,
                    "format": "int64"
                  },
                  "paymentDetails": {
                    "type": "object",
                    "required": [
                      "paymentDate",
                      "internationalPayment"
                    ],
                    "properties": {
                      "paymentType": {
                        "type": "string",
                        "description": "CARD/CASH_CARD"
                      },
                      "amount": {
                        "type": "integer",
                        "description": "This is an optional free to free ticket",
                        "default": 0,
                        "format": "int64"
                      },
                      "note": {
                        "type": "string",
                        "description": "You can add some notes about the exchange the ticket type."
                      },
                      "transactionId": {
                        "type": "string",
                        "description": "transactionId - Transactional Id of paid amount"
                      },
                      "tokenOrIntentId": {
                        "type": "string",
                        "description": "Optional"
                      },
                      "paymentDate": {
                        "type": "string",
                        "description": "Format: YYYY/MM/DD   Date of payment done by attendee"
                      },
                      "documentLink": {
                        "type": "string",
                        "description": "Add the uploaded document’s link if available"
                      },
                      "internationalPayment": {
                        "type": "boolean",
                        "default": true
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"type\": \"Success\",\n  \"message\": \"Success\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "Success"
                    },
                    "message": {
                      "type": "string",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "401": {
            "description": "401",
            "content": {
              "text/plain": {
                "examples": {
                  "Result": {
                    "value": ""
                  }
                }
              }
            }
          },
          "403": {
            "description": "403",
            "content": {
              "text/plain": {
                "examples": {
                  "Result": {
                    "value": ""
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```