---
updatedAt: 2026-06-11T20:35:37.000Z
agentTools:
  projectIndex: https://docs.vopay.com/llms.txt
---

# account/transactions/cancel

This endpoint allows a recently created transaction to be cancelled. Once a transaction has begun being processed it can no longer be canceled through this endpoint.

Paylink can also be cancelled using this endpoint and can only be cancelled if it is in a pending status. Once the paylink is cancelled successfully, the cancellation email will be sent to the recipient as a cancellation confirmation.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "2.0",
    "title": "Transaction Management",
    "description": "The Transaction Management API allows you to manage transactions in your account. You can cancel transactions, refund transactions, and confirm flagged transactions.",
    "contact": {
      "name": "API Support",
      "email": "help@vopay.com"
    }
  },
  "paths": {
    "/account/transactions/cancel": {
      "post": {
        "description": "This endpoint allows a recently created transaction to be cancelled. Once a transaction has begun being processed it can no longer be canceled through this endpoint.\n\nPaylink can also be cancelled using this endpoint and can only be cancelled if it is in a pending status. Once the paylink is cancelled successfully, the cancellation email will be sent to the recipient as a cancellation confirmation.",
        "summary": "account/transactions/cancel",
        "tags": [
          "Transaction Management Endpoints"
        ],
        "operationId": "AccountTransactionsCancelPost",
        "deprecated": false,
        "requestBody": {
          "$ref": "#/components/requestBodies/AccountTransactionsCancelPost"
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "Success",
                    "ErrorMessage",
                    "TransactionID",
                    "TransactionStatus",
                    "Timestamp"
                  ],
                  "properties": {
                    "Success": {
                      "type": "boolean",
                      "description": "True if the request was successful, false if it failed",
                      "example": true
                    },
                    "ErrorMessage": {
                      "type": "string",
                      "description": "Contains a description of the error if the request failed",
                      "example": ""
                    },
                    "TransactionID": {
                      "type": "integer",
                      "description": "The unique ID for the transaction",
                      "example": "1124"
                    },
                    "TransactionStatus": {
                      "type": "string",
                      "description": "A message indicating the current transaction status - cancelled",
                      "example": "cancelled"
                    },
                    "Timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "description": "The timestamp when the transaction status was last modified",
                      "example": "2019-11-26 12:00:00"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://earthnode-dev.vopay.com/api/v2"
    }
  ],
  "components": {
    "requestBodies": {
      "AccountTransactionsCancelPost": {
        "content": {
          "application/x-www-form-urlencoded": {
            "schema": {
              "type": "object",
              "properties": {
                "AccountID": {
                  "description": "Your account ID",
                  "type": "string"
                },
                "Key": {
                  "description": "API key for the account",
                  "type": "string"
                },
                "Signature": {
                  "description": "Hashed signature for the request",
                  "type": "string"
                },
                "TransactionID": {
                  "description": "The unique ID for the transaction",
                  "type": "integer"
                }
              },
              "required": [
                "AccountID",
                "Key",
                "Signature",
                "TransactionID"
              ]
            }
          }
        },
        "required": true
      }
    }
  }
}
```