---
title: "partner/ticket-attachment"
method: POST
path: "/partner/ticket-attachment"
tags: ["Support Endpoints"]
---

# partner/ticket-attachment

`POST /partner/ticket-attachment`

## Request

- Base URL: `https://earthnode-dev.vopay.com/api/v2`
- URL: `https://earthnode-dev.vopay.com/api/v2/partner/ticket-attachment`
- Auth: none declared

You can upload a file and attach it to an existing support tickets via our API. Use the TicketID (obtained from /partner/submit-ticket endpoint) to identify the ticket you want to attach the file to. Here are some rules regarding the document requirements:

* The maximum allowed file size is 10Mb

* Files must be sent as base64. Make sure the base64 code is valid (must contain the initial file information. E.g. data:image/jpeg;base64

*

## Request body `application/x-www-form-urlencoded`

- object
  - `AccountID` string, required: Your account ID
  - `Key` string, required: API key for the account
  - `Signature` string, required: Hashed signature for the request
  - `TicketAttachment` string, required: Base64 code of the attachment content
  - `TicketID` string, required: The ID of the ticket
  - `AttachmentFileName` string: The name of the file being attached. It defaults to attachment if the name is not provided.

## Response `200`

- object
  - `Success` boolean, required: True if the request was successful, false if it failed
  - `ErrorMessage` string, required: Contains a description of the error if the request failed

---

[API](https://skmtc.dev/vopay/apis/integrations-and-support.md) - [All operations](https://skmtc.dev/vopay/apis/integrations-and-support/llms.txt) - [OpenAPI document](https://skmtc.dev/vopay/apis/integrations-and-support/revisions/e88c512ce5f0?raw)
