---
title: "Void an APM transaction"
method: POST
path: "/apm/v3/void"
tags: ["Alternative Payment Methods"]
---

# Void an APM transaction

`POST /apm/v3/void`

Voids a transaction run using an Alternative Payment Method.

If you do not know the `paymentId` or `amount` to use, make a call with the [View transactions](https://docs.nexiopay.com/reference/viewtransactions) endpoint with the query filter of `transactionStatus=10` and `plugin=` to get an array of possible transactions that have authorized but are not yet settled.

For more help with this endpoint, see the [Void an APM transaction](https://docs.nexiopay.com/docs/void-an-apm-transaction) tutorial in Guides.

<!-- theme: warning -->
> ⚠️ Try It
> 
> To use the Try It feature for this endpoint, you can use the credentials for your [Sandbox API user](https://docs.nexiopay.com/docs/sandbox-environments).<br/><br/>You can also use the following test account (that is connected with [PayPal](https://docs.nexiopay.com/docs/paypal-integration-guide)). Copy the value and paste it into the appropriate space in the Try It section to the right.
> username: `docs@nexiopay.com`
> password: `JZdzoXpdDeH6VA`<br/><br/>Include the paymentID of the transaction in your request.

<div style="display:none;">

## Request parameters
- id
- data
- data.amount

## Response parameters
- id
- merchantId
- transactionDate
- amount
- transactionType
- currency
- gatewayResponse
- gatewayResponse.gatewayName
- gatewayResponse.refNumber
- data
- data.amount
- data.currency
- data.settlementCurrency
- message

</div>

## Request body

- object
  - `id` string, required — The Nexio ID for the payment request. This parameter is commonly known as the `paymentId`. You can use this in the [View transaction by payment ID](https://docs.nexiopay.com/reference/viewtransactionpaymentid) endpoint within about a minute of running the transaction. Or, you can use it in the [View transactions](https://docs.nexiopay.com/reference/viewtransactions) endpoint by including the value for the `plugin.originalId` query parameter.
  - `data` object — Transaction data
    - `amount` Amount — unresolved $ref

## Response `200`

Success

- object
  - `id` Id — unresolved $ref
  - `merchantId` MerchantId — unresolved $ref
  - `transactionDate` TransactionDate — unresolved $ref
  - `amount` Amount — unresolved $ref
  - `transactionType` TransactionType — unresolved $ref
  - `currency` Currency — unresolved $ref
  - `gatewayResponse` GatewayResponse — unresolved $ref
  - `data` Data — unresolved $ref
  - `message` Message — unresolved $ref

## Other responses

- `401` — Unauthorized. For help with this error and other error codes, see [Common errors](https://docs.nexiopay.com/docs/common-errors) in the Guides area.

---

[API](https://skmtc.dev/nexiopay/apis/payments-api-reference.md) · [All operations](https://skmtc.dev/nexiopay/apis/payments-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nexiopay/payments-api-reference/revisions/b414b73979e5/schema)
