---
updatedAt: 2025-09-17T23:32:48.000Z
agentTools:
  projectIndex: https://docs.nexiopay.com/llms.txt
---

# Capture a transaction

Allows you to capture an auth only transaction. To do this, you must complete the following steps:
1. Run an auth only transaction using the [Run card transaction](ref:runcardtransaction) endpoint (by setting the `isAuthOnly` parameter to `true`).
2. Retrieve the `id` from the response. This is the Nexio Payment ID.
3. Include that `id` in the body of your request to this endpoint.

If you do not know the `paymentId` or `amount` to use, make a call with the [View transactions](ref:viewtransactions) endpoint with the query filter of `transactionStatus=11` and `plugin=` to get an array of possible transactions.

<!-- theme: warning -->
> ⚠️ Try It
> 
> To use the Try It feature for this endpoint, you can use the credentials for your [Sandbox API user](doc:sandbox-environments).<br/><br/>You can also use the following test account. 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 ID as indicated above for an <<glossary:auth only>> transaction.

<div style="display:none;">

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

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

</div>

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Payments API Reference",
    "version": "3.0.0",
    "description": "Payments are how you interact with customers for all kinds of payment methods and types. \n\nUse the `pay` endpoints to generate one-time-use tokens and to accept web-based payments from cards and echecks (ACH) as well as retail payments from terminals or online forms. For more information about these workflows, see the [Getting started with ecommerce](doc:getting-started-with-ecommerce) and [Getting started with retail](doc:getting-started-with-retail) topics in Guides.\n\nAccess the `auth` endpoint to create a simple login that allows trusted users to proceed directly to the retail/MOTO iframe. For a tutorial, see [Using simple login for authentication](using-simple-login-for-authentication) in Guides.\n\nWork with payment billing for subscriptions and payment plans with the `subscriptions` endpoint. For additional information on using these endpoints, see the [Getting started with subscriptions](doc:getting-started-with-subscriptions) and [Getting started with pay plans](doc:getting-started-with-pay-plans) topics in Guides.\n\nThe `apm` endpoint allows you to generate one-time-use tokens and perform the various payment tasks for alternative payment methods. For workflows, integration guides, and tutorials, see the [Payment Methods](doc:payment-methods) documentation.",
    "contact": {
      "name": "Integrations Support",
      "email": "integrations@nexiopay.com",
      "url": "https://nexiointegrations.slack.com/"
    },
    "license": {
      "name": "ISC",
      "url": "https://docs.nexiopay.com/page/license"
    }
  },
  "security": [
    {
      "Basic_Authentication": []
    },
    {
      "One-time-use_Token": []
    }
  ],
  "servers": [
    {
      "description": "Sandbox",
      "url": "https://api.nexiopaysandbox.com",
      "variables": {}
    }
  ],
  "components": {
    "securitySchemes": {
      "Basic_Authentication": {
        "type": "http",
        "scheme": "basic",
        "description": "Basic authentication is a simple authentication scheme built into the HTTP protocol. \n\nFor the \"Try It\" feature, type your API username and password in the appropriate fields. The system then automatically creates the Authorization header that contains the word `Basic` followed by a space and a base64-encoded string `username:password`. \n\nFor example: `Authorization: Basic ZGVtbzpwQDU1dzByZA==` \n\nFor your own requests, learn how to do the conversion in the [Authentication](doc:authentication#basic-authentication) guide. \n\nFor more information about this security protocol, see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#basic-authentication-sample"
      },
      "One-time-use_Token": {
        "type": "apiKey",
        "name": "token",
        "in": "query",
        "description": "The one-time-use token authentication scheme requires a token supplied in the named query parameter that can only be used to submit a single API request and that expires after one hour. \n\nFor the \"Try It\" feature, first generate the one-time-use token through either the [Create one-time-use token](ref:createonetimeusetoken) or the [Create APM one-time-use token](ref:createapmonetimeusetoken) endpoint. Copy the resulting token and then paste it in the appropriate field for the current endpoint. \n\nFor your own requests, learn how to generate the one-time-use token in the [Authentication](doc:authentication#one-time-use-tokens) guide. Then, use it as normal for this endpoint. \n\nFor more information about the \"apiKeys\" security protocol, see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#security-scheme-object"
      }
    },
    "responses": {
      "401": {
        "description": "Unauthorized.\n\nFor help with this error and other error codes, see [Common errors](doc:common-errors) in the Guides area.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "error": {
                  "type": "integer",
                  "example": 440,
                  "description": "Indicates the Nexio error code, if applicable."
                },
                "message": {
                  "type": "string",
                  "description": "A message from Nexio about the state of the request.",
                  "example": "Unauthorized"
                }
              }
            }
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "Ecommerce",
      "description": "APIs for ecommerce payments"
    },
    {
      "name": "Alternative Payment Methods",
      "description": "APIs for APM payments"
    }
  ],
  "paths": {
    "/pay/v3/processECheck": {
      "post": {
        "description": "Allows you to process an echeck transaction in any of the following situations:\n\n- An initial transaction that uses a saved echeck token.\n- A subsequent transaction that uses a saved echeck token.\n\nFor more information about how to implement this endpoint, see the [Creating an echeck checkout page with your own form](doc:creating-an-echeck-checkout-page-with-your-own-form) or [Running an echeck transaction with the API](doc:running-an-echeck-transaction-with-the-api) topic.\n\n\n<!-- theme: warning -->\n> ⚠️ Try It\n> \n> To use the Try It feature for this endpoint, you can use the credentials for your [Sandbox API user](doc:sandbox-environments).<br/><br/>You can also use the following test account. Copy the value and paste it into the appropriate space in the Try It section to the right.\n> username: `docs@nexiopay.com`\n> password: `JZdzoXpdDeH6VA`<br/><br/>Include at least an `amount`, `currency`, and `tokenex.token` (the saved echeck token) as body parameters.\n\n<div style=\"display:none;\">\n\n## Request parameters\n- data\n- data.amount\n- data.currency\n- data.cart\n- data.cart.items\n- data.cart.items.item\n- data.cart.items.description\n- data.cart.items.quantity\n- data.cart.items.price\n- data.cart.items.type\n- data.customer\n- data.customer.billToAddressOne\n- data.customer.billToAddressTwo\n- data.customer.billToCity\n- data.customer.billToCountry\n- data.customer.billToPhone\n- data.customer.billToPostal\n- data.customer.billToState\n- data.customer.companyName\n- data.customer.createdAtDate\n- data.customer.customerRef\n- data.customer.email\n- data.customer.firstName\n- data.customer.invoice\n- data.customer.lastName\n- data.customer.orderNumber\n- data.customer.phone\n- data.customer.shipToAddressOne\n- data.customer.shipToAddressTwo\n- data.customer.shipToCity\n- data.customer.shipToCountry\n- data.customer.shipToPhone\n- data.customer.shipToPostal\n- data.customer.shipToState\n- data.customFields\n- data.customFields.exampleKey\n- secCode\n- settlementCurrency\n- tokenex\n- tokenex.token\n- tokenex.customerRefNumber\n- tokenex.lastFour\n- bank\n- bank.accountHolderName\n- bank.routingNumber\n- processingOptions\n- processingOptions.verboseResponse\n- processingOptions.merchantId\n\n## Response parameters\n- amount\n- authCode\n- bank\n- bank.accountHolderName\n- bank.routingNumber\n- bank.accountNumber\n- currency\n- data\n- data.amount\n- data.cart\n- data.cart.items\n- data.cart.items.item\n- data.cart.items.description\n- data.cart.items.quantity\n- data.cart.items.price\n- data.cart.items.type\n- data.currency\n- data.customFields\n- data.customFields.exampleKey\n- data.customer\n- data.customer.billToAddressOne\n- data.customer.billToAddressTwo\n- data.customer.billToCity\n- data.customer.billToCountry\n- data.customer.billToPhone\n- data.customer.billToPostal\n- data.customer.billToState\n- data.customer.companyName\n- data.customer.createdAtDate\n- data.customer.customerRef\n- data.customer.email\n- data.customer.firstName\n- data.customer.invoice\n- data.customer.lastName\n- data.customer.orderNumber\n- data.customer.phone\n- data.customer.shipToAddressOne\n- data.customer.shipToAddressTwo\n- data.customer.shipToCity\n- data.customer.shipToCountry\n- data.customer.shipToPhone\n- data.customer.shipToPostal\n- data.customer.shipToState\n- data.lodging\n- data.lodging.advanceDeposit\n- data.lodging.checkInDate\n- data.lodging.checkOutDate\n- data.lodging.noShow\n- data.lodging.roomNumber\n- data.lodging.roomRate\n- data.settlementCurrency\n- gatewayResponse\n- gatewayResponse.gatewayName\n- gatewayResponse.refNumber\n- id\n- merchantId\n- transactionDate\n- transactionStatus\n- transactionType\n\n</div>",
        "operationId": "RunEcheckTransaction",
        "tags": [
          "Ecommerce"
        ],
        "security": [
          {
            "Basic_Authentication": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "data",
                  "tokenex"
                ],
                "properties": {
                  "data": {
                    "title": "data",
                    "type": "object",
                    "description": "Transaction and customer data.",
                    "x-tags": [
                      "object"
                    ],
                    "properties": {
                      "amount": {
                        "$ref": "#/paths/~1pay~1v3~1processECheck/post/responses/200/content/application~1json/schema/properties/amount"
                      },
                      "currency": {
                        "$ref": "#/paths/~1pay~1v3~1capture/post/responses/200/content/application~1json/schema/properties/currency"
                      },
                      "settlementCurrency": {
                        "title": "settlementCurrency",
                        "type": "string",
                        "description": "The [three-character ISO code](https://en.wikipedia.org/wiki/ISO_4217) for the currency in which the transaction will be settled.",
                        "example": "CAD",
                        "x-tags": [
                          "component"
                        ]
                      },
                      "secCode": {
                        "type": "string",
                        "title": "secCode",
                        "description": "The Standard Entry Class code for an ACH file format. This field only applies to e-check transactions. See the [Standard Entry Class code table](doc:constant-ach-transaction-values#standard-entry-class-code-seccode) in Guides for a list of possible values.",
                        "example": "IAT",
                        "x-tags": [
                          "component"
                        ]
                      },
                      "customer": {
                        "$ref": "#/paths/~1pay~1v3~1saveECheck/post/requestBody/content/application~1json/schema/properties/data/properties/customer"
                      },
                      "cart": {
                        "title": "cart",
                        "type": "object",
                        "description": "Items purchased in the transaction.",
                        "x-tags": [
                          "object"
                        ],
                        "properties": {
                          "items": {
                            "type": "array",
                            "description": "Details about items in the shopping cart.",
                            "items": {
                              "title": "item",
                              "type": "object",
                              "description": "A single item purchased during a transaction.",
                              "properties": {
                                "item": {
                                  "title": "itemItem",
                                  "type": "string",
                                  "description": "Item number or code. This value is cached in the one-time-use token.",
                                  "example": "913261",
                                  "x-tags": [
                                    "component"
                                  ]
                                },
                                "description": {
                                  "title": "descriptionItem",
                                  "type": "string",
                                  "description": "A description of the item. This value is cached in the one-time-use token.",
                                  "example": "Hammermill Premium 8.5 x 11 Color Copy Paper, 28 lbs. 500/Ream",
                                  "x-tags": [
                                    "component"
                                  ]
                                },
                                "quantity": {
                                  "title": "quantity",
                                  "type": "integer",
                                  "description": "The quantity sold. This value is cached in the one-time-use token.",
                                  "example": 8,
                                  "x-tags": [
                                    "component"
                                  ]
                                },
                                "price": {
                                  "title": "price",
                                  "type": "number",
                                  "description": "The price per item. This value is cached in the one-time-use token.",
                                  "example": 16.49,
                                  "x-tags": [
                                    "component"
                                  ]
                                },
                                "type": {
                                  "$ref": "#/paths/~1pay~1v3~1capture/post/responses/200/content/application~1json/schema/properties/transactionType"
                                }
                              },
                              "x-tags": [
                                "object"
                              ]
                            }
                          }
                        }
                      },
                      "customFields": {
                        "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/data/properties/customFields"
                      },
                      "description": {
                        "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/data/properties/description"
                      },
                      "lodging": {
                        "title": "lodging",
                        "type": "object",
                        "description": "Lodging data (related to hotels, motels, inns, etc.). This value is cached in the one-time-use token.\n\nFor a tutorial on using lodging data, see [Getting started with hospitality](getting-started-with-hospitality) in Guides.",
                        "x-tags": [
                          "object"
                        ],
                        "properties": {
                          "advanceDeposit": {
                            "type": "boolean",
                            "title": "advanceDeposit",
                            "description": "Set to true if the customer paid a deposit in advance of their reservation. This value is cached in the one-time-use token.",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "checkInDate": {
                            "type": "string",
                            "title": "checkInDate",
                            "description": "The customer's check-in date. Format YYYY-MM-DD. This value is cached in the one-time-use token.",
                            "x-tags": [
                              "component"
                            ],
                            "example": "2026-01-05"
                          },
                          "checkOutDate": {
                            "type": "string",
                            "title": "checkOutDate",
                            "description": "The customer's check-out date. Format YYYY-MM-DD. This value is cached in the one-time-use token.",
                            "x-tags": [
                              "component"
                            ],
                            "example": "2026-01-08"
                          },
                          "noShow": {
                            "type": "boolean",
                            "title": "noShow",
                            "description": "Set to `true` if the customer failed to show up to their reservation. This value is cached in the one-time-use token.",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "roomNumber": {
                            "type": "number",
                            "title": "roomNumber",
                            "description": "The customer's room number. This value is cached in the one-time-use token.",
                            "example": 14,
                            "x-tags": [
                              "component"
                            ]
                          },
                          "roomRate": {
                            "type": "number",
                            "title": "roomRate",
                            "description": "The room's rate, per day. This value is cached in the one-time-use token.",
                            "example": 143.99,
                            "x-tags": [
                              "component"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "amount",
                      "currency"
                    ]
                  },
                  "tokenex": {
                    "title": "tokenex",
                    "type": "object",
                    "description": "The e-check token. Echeck tokens can be used to process through any MID on your account. They are not restricted to a specific merchant account or currency.",
                    "x-tags": [
                      "object"
                    ],
                    "properties": {
                      "token": {
                        "type": "string",
                        "title": "tokenExToken",
                        "description": "A previously saved echeck token. Echeck tokens can be used to process through any MID on your account. They are not restricted to a specific merchant account or currency.",
                        "example": "aafb1033-599a-4392-859e-f98033fc37f5",
                        "x-tags": [
                          "component"
                        ]
                      },
                      "customerRefNumber": {
                        "type": "string",
                        "title": "customerRefNumber",
                        "description": "The customer reference number.",
                        "example": "74771a19-3c28-4c27-83c6-9",
                        "x-tags": [
                          "component"
                        ]
                      },
                      "lastFour": {
                        "$ref": "#/paths/~1pay~1v3~1vault~1card~1%7BcardToken%7D/get/responses/200/content/application~1json/schema/properties/tokenex/properties/lastFour"
                      }
                    },
                    "required": [
                      "token"
                    ]
                  },
                  "bank": {
                    "type": "object",
                    "description": "Bank account information",
                    "properties": {
                      "accountHolderName": {
                        "type": "string",
                        "title": "accountHolderName",
                        "description": "The account holder's name. Use the value for whichever name is on the account. Therefore. if the account is under a business name, use that value.\n\nIf needed, you can specify the company name for the `data.customer.companyName` parameter. Or, if you use a business name here, and want to associate a specific person for the account, use the `data.customer.firstName` and `data.customer.lastName` parameters.",
                        "x-tags": [
                          "component"
                        ],
                        "example": "John Doe"
                      },
                      "routingNumber": {
                        "title": "routingNumber",
                        "type": "string",
                        "description": "The checking account's routing number. This value is cached in the one-time-use token.",
                        "example": "231375151",
                        "x-tags": [
                          "component"
                        ]
                      }
                    }
                  },
                  "processingOptions": {
                    "title": "processingOptions",
                    "type": "object",
                    "description": "Processing Options",
                    "x-tags": [
                      "object"
                    ],
                    "properties": {
                      "merchantId": {
                        "title": "merchantId",
                        "type": "string",
                        "description": "The Nexio merchant ID (MID). Generally, you should avoid sending this value in the request because it may interfere with several Nexio features. The API user you use directs the transaction to the appropriate MID automatically.",
                        "example": "000999",
                        "x-tags": [
                          "component"
                        ]
                      },
                      "verboseResponse": {
                        "title": "verboseResponse",
                        "type": "boolean",
                        "description": "Set to `true` to include additional information in the response. This value is cached in the one-time-use token.",
                        "default": false,
                        "x-tags": [
                          "component"
                        ]
                      }
                    }
                  }
                }
              },
              "examples": {
                "Required parameters": {
                  "value": {
                    "data": {
                      "amount": 29.99,
                      "currency": "EUR"
                    },
                    "tokenex": {
                      "token": "aafb1033-599a-4392-859e-f98033fc37f5"
                    }
                  }
                },
                "All parameters": {
                  "value": {
                    "data": {
                      "amount": 29.99,
                      "currency": "EUR",
                      "cart": {
                        "items": [
                          {
                            "item": "913261",
                            "description": "Hammermill Premium 8.5 x 11 Color Copy Paper, 28 lbs. 500/Ream",
                            "quantity": 8,
                            "price": 16.49,
                            "type": "sale"
                          }
                        ]
                      },
                      "customer": {
                        "billToAddressOne": "2147 West Silverlake Drive",
                        "billToAddressTwo": "Apt 42",
                        "billToCity": "Scranton",
                        "billToState": "PA",
                        "billToPostal": "18503",
                        "billToCountry": "US",
                        "billToPhone": "1555555555",
                        "companyName": "Green Thumb Lawn Care",
                        "createdAtDate": "2005-03-01",
                        "customerRef": "RP006",
                        "email": "jdoe@example.com",
                        "firstName": "John",
                        "invoice": "IN0001",
                        "lastName": "Doe",
                        "orderNumber": "210058A",
                        "phone": "1555555555",
                        "shipToAddressOne": "1725 Slough Avenue",
                        "shipToAddressTwo": "Suite 200",
                        "shipToCity": "Scranton",
                        "shipToState": "PA",
                        "shipToPostal": "18505",
                        "shipToCountry": "US",
                        "shipToPhone": "1555555555"
                      },
                      "customFields": {
                        "exampleKey": "Example string",
                        "exampleRefNumber": "094785"
                      },
                      "secCode": "IAT",
                      "settlementCurrency": "CAD"
                    },
                    "tokenex": {
                      "token": "aafb1033-599a-4392-859e-f98033fc37f5",
                      "customerRefNumber": "74771a19-3c28-4c27-83c6-9",
                      "lastFour": "3313"
                    },
                    "bank": {
                      "accountHolderName": "John Doe",
                      "routingNumber": "231375151"
                    },
                    "processingOptions": {
                      "verboseResponse": false,
                      "merchantId": 999
                    }
                  }
                }
              }
            }
          },
          "description": ""
        },
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "The response from a successful payment",
                  "properties": {
                    "id": {
                      "$ref": "#/paths/~1apm~1v3~1void/post/requestBody/content/application~1json/schema/properties/id"
                    },
                    "merchantId": {
                      "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/400/content/application~1json/schema/properties/merchantId"
                    },
                    "authCode": {
                      "$ref": "#/paths/~1pay~1v3~1capture/post/responses/200/content/application~1json/schema/properties/authCode"
                    },
                    "transactionType": {
                      "$ref": "#/paths/~1pay~1v3~1capture/post/responses/200/content/application~1json/schema/properties/transactionType"
                    },
                    "transactionDate": {
                      "$ref": "#/paths/~1pay~1v3~1capture/post/responses/200/content/application~1json/schema/properties/transactionDate"
                    },
                    "transactionStatus": {
                      "$ref": "#/paths/~1pay~1v3~1refund/post/responses/200/content/application~1json/schema/properties/transactionStatus"
                    },
                    "gatewayResponse": {
                      "$ref": "#/paths/~1pay~1v3~1void/post/responses/200/content/application~1json/schema/properties/gatewayResponse"
                    },
                    "bank": {
                      "title": "bank",
                      "type": "object",
                      "description": "Bank account information.",
                      "properties": {
                        "accountHolderName": {
                          "$ref": "#/paths/~1pay~1v3~1saveECheck/post/responses/200/content/application~1json/schema/properties/bank/properties/accountHolderName"
                        },
                        "routingNumber": {
                          "type": "string",
                          "title": "routing",
                          "description": "The masked routing number for the bank record associated with an echeck payment used for the transaction.",
                          "example": "******2971",
                          "x-tags": [
                            "component"
                          ]
                        },
                        "accountNumber": {
                          "title": "account",
                          "type": "string",
                          "description": "The masked account number for the bank record associated with an echeck payment used for the transaction. Only the last four numbers of the account display.",
                          "example": "***********6789",
                          "x-tags": [
                            "component"
                          ]
                        }
                      },
                      "x-tags": [
                        "object"
                      ]
                    },
                    "currency": {
                      "$ref": "#/paths/~1pay~1v3~1capture/post/responses/200/content/application~1json/schema/properties/currency"
                    },
                    "amount": {
                      "type": "number",
                      "title": "amount",
                      "description": "The transaction amount. The maximum value has 16 digits total, including up to two of those digits after the decimal point.\n\nIf including a `surcharge`, this value needs to include the transaction amount plus the surcharge amount.\n\nWhen submitting a transaction for an installment period, This amount is the total amount to be paid rather than the amount per transaction. The following values are expected for each gateway or connection that supports this feature:\n- [Cybersource](doc:cybersource-integration-guide) - Accepted amount may depend on the currency or installment period used for the transaction. Contact Cybersource for more information.\n- [Openpay](doc:openpay-integration-guide) - By default, the amount must be 300 and the currency must be MXN. The minimum amount can be changed by Openpay.",
                      "example": 29.99,
                      "x-tags": [
                        "component"
                      ]
                    },
                    "data": {
                      "title": "data",
                      "type": "object",
                      "description": "Transaction and customer data.",
                      "properties": {
                        "amount": {
                          "$ref": "#/paths/~1pay~1v3~1processECheck/post/responses/200/content/application~1json/schema/properties/amount"
                        },
                        "cart": {
                          "$ref": "#/paths/~1pay~1v3~1processECheck/post/requestBody/content/application~1json/schema/properties/data/properties/cart"
                        },
                        "currency": {
                          "$ref": "#/paths/~1pay~1v3~1capture/post/responses/200/content/application~1json/schema/properties/currency"
                        },
                        "settlementCurrency": {
                          "$ref": "#/paths/~1pay~1v3~1processECheck/post/requestBody/content/application~1json/schema/properties/data/properties/settlementCurrency"
                        },
                        "customer": {
                          "$ref": "#/paths/~1pay~1v3~1saveECheck/post/responses/200/content/application~1json/schema/properties/data/properties/customer"
                        },
                        "customFields": {
                          "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/data/properties/customFields"
                        },
                        "lodging": {
                          "$ref": "#/paths/~1pay~1v3~1processECheck/post/requestBody/content/application~1json/schema/properties/data/properties/lodging"
                        }
                      },
                      "x-tags": [
                        "object"
                      ]
                    }
                  }
                },
                "examples": {
                  "Example response": {
                    "value": {
                      "amount": 29.99,
                      "authCode": "035410",
                      "bank": {
                        "accountHolderName": "John Doe",
                        "routingNumber": "******2971",
                        "accountNumber": "***********6789"
                      },
                      "currency": "EUR",
                      "data": {
                        "amount": 29.99,
                        "cart": {
                          "items": [
                            {
                              "item": "913261",
                              "description": "Hammermill Premium 8.5 x 11 Color Copy Paper, 28 lbs. 500/Ream",
                              "quantity": 8,
                              "price": 16.49,
                              "type": "sale"
                            }
                          ]
                        },
                        "currency": "EUR",
                        "customFields": {
                          "exampleKey": "Example string",
                          "exampleRefNumber": "094785"
                        },
                        "customer": {
                          "billToAddressOne": "2147 West Silverlake Drive",
                          "billToAddressTwo": "Apt 42",
                          "billToCity": "Scranton",
                          "billToCountry": "US",
                          "billToPhone": "1555555555",
                          "billToPostal": "18503",
                          "billToState": "PA",
                          "companyName": "Green Thumb Lawn Care",
                          "createdAtDate": "2005-03-01",
                          "customerRef": "RP006",
                          "email": "jdoe@example.com",
                          "firstName": "John",
                          "invoice": "IN0001",
                          "lastName": "Doe",
                          "orderNumber": "210058A",
                          "phone": "1555555555",
                          "shipToAddressOne": "1725 Slough Avenue",
                          "shipToAddressTwo": "Suite 200",
                          "shipToCity": "Scranton",
                          "shipToCountry": "US",
                          "shipToPhone": "1555555555",
                          "shipToPostal": "18505",
                          "shipToState": "PA"
                        },
                        "lodging": {
                          "advanceDeposit": true,
                          "checkInDate": "2026-01-05",
                          "checkOutDate": "2026-01-08",
                          "noShow": true,
                          "roomNumber": 14,
                          "roomRate": 143.99
                        },
                        "settlementCurrency": "CAD"
                      },
                      "gatewayResponse": {
                        "gatewayName": "[usaepay]",
                        "refNumber": "8E56222GD0701110"
                      },
                      "id": "eyJuYW1lIjoWJlciI6IjMxCJtZXJjaGFudElkIjoiMoiVVNEIn0=eyJuYW1lIjoib3BlbnBheSIsIm1lcmN",
                      "merchantId": "000999",
                      "transactionDate": "2019-01-15T13:19:39.329Z",
                      "transactionStatus": "settled",
                      "transactionType": "sale"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          }
        },
        "summary": "Run echeck transaction"
      }
    },
    "/pay/v3/capture": {
      "post": {
        "description": "Allows you to capture an auth only transaction. To do this, you must complete the following steps:\n1. Run an auth only transaction using the [Run card transaction](ref:runcardtransaction) endpoint (by setting the `isAuthOnly` parameter to `true`).\n2. Retrieve the `id` from the response. This is the Nexio Payment ID.\n3. Include that `id` in the body of your request to this endpoint.\n\nIf you do not know the `paymentId` or `amount` to use, make a call with the [View transactions](ref:viewtransactions) endpoint with the query filter of `transactionStatus=11` and `plugin=` to get an array of possible transactions.\n\n<!-- theme: warning -->\n> ⚠️ Try It\n> \n> To use the Try It feature for this endpoint, you can use the credentials for your [Sandbox API user](doc:sandbox-environments).<br/><br/>You can also use the following test account. Copy the value and paste it into the appropriate space in the Try It section to the right.\n> username: `docs@nexiopay.com`\n> password: `JZdzoXpdDeH6VA`<br/><br/>Include the ID as indicated above for an <<glossary:auth only>> transaction.\n\n<div style=\"display:none;\">\n\n## Request parameters\n- id\n- data\n- data.amount\n\n## Response parameters\n- amount\n- authCode\n- currency\n- data\n- data.amount\n- data.currency\n- data.settlementCurrency\n- gatewayResponse\n- gatewayResponse.gatewayName\n- gatewayResponse.refNumber\n- id\n- merchantId\n- message\n- transactionDate\n- transactionStatus\n- transactionType\n\n</div>",
        "operationId": "CaptureTransaction",
        "tags": [
          "Ecommerce"
        ],
        "security": [
          {
            "Basic_Authentication": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "$ref": "#/paths/~1apm~1v3~1void/post/requestBody/content/application~1json/schema/properties/id"
                  },
                  "data": {
                    "type": "object",
                    "description": "Transaction data",
                    "required": [
                      "amount"
                    ],
                    "properties": {
                      "amount": {
                        "title": "amount",
                        "type": "number",
                        "description": "The amount of the auth only transaction you wish to capture. Is not required to be the full amount.",
                        "example": 9.95,
                        "x-tags": [
                          "component"
                        ]
                      }
                    }
                  }
                },
                "required": [
                  "id",
                  "data"
                ]
              },
              "examples": {
                "Example request": {
                  "value": {
                    "id": "eyJuYW1lIjoWJlciI6IjMxCJtZXJjaGFudElkIjoiMoiVVNEIn0=eyJuYW1lIjoib3BlbnBheSIsIm1lcmN",
                    "data": {
                      "amount": 9.95
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "$ref": "#/paths/~1apm~1v3~1void/post/requestBody/content/application~1json/schema/properties/id"
                    },
                    "merchantId": {
                      "$ref": "#/paths/~1pay~1v3~1void/post/responses/200/content/application~1json/schema/properties/merchantId"
                    },
                    "authCode": {
                      "title": "authCode",
                      "type": "string",
                      "description": "Represents a successfully authorized payment request. Not all [gateways or connections](doc:connections) return a value for `authCode`, so Nexio recommends against using this for reconciliation or bookkeeping.",
                      "example": "035410",
                      "x-tags": [
                        "component"
                      ]
                    },
                    "transactionType": {
                      "title": "type",
                      "type": "string",
                      "description": "The [transaction type](doc:constant-transaction-values#transaction-type-transactiontype). This value is cached in the one-time-use token.",
                      "example": "sale",
                      "x-tags": [
                        "component"
                      ]
                    },
                    "transactionDate": {
                      "title": "transactionDate",
                      "type": "string",
                      "description": "The transaction date and time, formatted as an [ISO-8601](https://www.iso.org/iso-8601-date-and-time-format.html) date expressed in UTC.",
                      "example": "2019-01-15T13:19:39.329Z",
                      "x-tags": [
                        "component"
                      ]
                    },
                    "transactionStatus": {
                      "$ref": "#/paths/~1pay~1v3~1refund/post/responses/200/content/application~1json/schema/properties/transactionStatus"
                    },
                    "gatewayResponse": {
                      "$ref": "#/paths/~1pay~1v3~1void/post/responses/200/content/application~1json/schema/properties/gatewayResponse"
                    },
                    "message": {
                      "$ref": "#/paths/~1pay~1v3~1void/post/responses/200/content/application~1json/schema/properties/message"
                    },
                    "currency": {
                      "type": "string",
                      "title": "currency",
                      "description": "The [three-character ISO code](https://en.wikipedia.org/wiki/ISO_4217) for the currency used in the transaction.",
                      "default": "USD",
                      "x-tags": [
                        "component"
                      ],
                      "example": "EUR"
                    },
                    "amount": {
                      "title": "amount",
                      "type": "number",
                      "description": "The amount to be captured.",
                      "example": 29.99,
                      "x-tags": [
                        "component"
                      ]
                    },
                    "data": {
                      "title": "data",
                      "type": "object",
                      "description": "Transaction data.",
                      "x-tags": [
                        "object"
                      ],
                      "properties": {
                        "amount": {
                          "$ref": "#/paths/~1pay~1v3~1processECheck/post/responses/200/content/application~1json/schema/properties/amount"
                        },
                        "currency": {
                          "$ref": "#/paths/~1pay~1v3~1capture/post/responses/200/content/application~1json/schema/properties/currency"
                        },
                        "settlementCurrency": {
                          "$ref": "#/paths/~1pay~1v3~1processECheck/post/requestBody/content/application~1json/schema/properties/data/properties/settlementCurrency"
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Example response": {
                    "value": {
                      "amount": 29.99,
                      "authCode": "035410",
                      "currency": "EUR",
                      "data": {
                        "amount": 29.99,
                        "currency": "EUR",
                        "settlementCurrency": "CAD"
                      },
                      "gatewayResponse": {
                        "gatewayName": "[usaepay]",
                        "refNumber": "8E56222GD0701110"
                      },
                      "id": "eyJuYW1lIjoWJlciI6IjMxCJtZXJjaGFudElkIjoiMoiVVNEIn0=eyJuYW1lIjoib3BlbnBheSIsIm1lcmN",
                      "merchantId": "100100",
                      "message": "success",
                      "transactionDate": "2019-01-15T13:19:39.329Z",
                      "transactionStatus": "settled",
                      "transactionType": "sale"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          }
        },
        "summary": "Capture a transaction"
      }
    },
    "/pay/v3/void": {
      "post": {
        "description": "Allows you to void a credit card, debit card, or echeck transaction using the Nexio Payment ID. In order to void a transaction, it must have been authorized but not yet settled.\n\nThe entire process for voiding a transaction is as follows: \n1. A transaction using the [Run card transaction](ref:runcardtransaction) or [Run echeck transaction](ref:runechecktransaction) endpoint occurs.\n2. Retrieve the `id` from the response. This is the Nexio Payment ID.\n3. Include that `id` in the body of your request for this endpoint in order to void the transaction.\n\nIf you do not know the `paymentId`, you can get an array of possible transactions that have authorized but are not yet settled with the [View transactions](ref:viewtransactions) endpoint and at least the following query filters:<br/>`transactionStatus=10`<br/>`plugin=`\n\n<!-- theme: warning -->\n> ⚠️ Try It\n> \n> To use the Try It feature for this endpoint, you can use the credentials for your [Sandbox API user](doc:sandbox-environments).<br/><br/>You can also use the following test account. Copy the value and paste it into the appropriate space in the Try It section to the right.\n> username: `docs@nexiopay.com`\n> password: `JZdzoXpdDeH6VA`<br/><br/>Include the ID as indicated above.\n\n<div style=\"display:none;\">\n\n## Request parameters\n- id\n\n## Response parameters\n- id\n- merchantId\n- transactionDate\n- authCode\n- transactionStatus\n- transactionType\n- currency\n- message\n- data\n- data.currency\n- data.settlementCurrency\n- gatewayResponse\n- gatewayResponse.gatewayName\n- gatewayResponse.refNumber\n\n</div>",
        "operationId": "VoidTransaction",
        "tags": [
          "Ecommerce"
        ],
        "security": [
          {
            "Basic_Authentication": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id"
                ],
                "properties": {
                  "id": {
                    "title": "id",
                    "type": "string",
                    "description": "The Nexio Payment ID. To void a transaction through this endpoint it must have been captured through the Nexio Payment API.",
                    "example": "eyJuYW1lIjoWJlciI6IjMxCJtZXJjaGFudElkIjoiMoiVVNEIn0=",
                    "x-tags": [
                      "component"
                    ]
                  }
                }
              },
              "examples": {
                "Example request": {
                  "value": {
                    "id": "eyJuYW1lIjoWJlciI6IjMxCJtZXJjaGFudElkIjoiMoiVVNEIn0="
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "title": "id",
                      "type": "string",
                      "description": "The Nexio Payment ID.",
                      "example": "eyJuYW1lIjoWJlciI6IjMxCJtZXJjaGFudElkIjoiMoiVVNEIn0=",
                      "x-tags": [
                        "component"
                      ]
                    },
                    "merchantId": {
                      "type": "string",
                      "title": "merchantId",
                      "description": "The merchant ID (MID) through which the transaction was originally processed.",
                      "example": "100100",
                      "x-tags": [
                        "component"
                      ]
                    },
                    "authCode": {
                      "title": "authCode",
                      "type": "string",
                      "description": "Indicates the code for the originally processed and successfully authorized payment request. Not all [gateways or connections](doc:connections) return a value for `authCode`, so Nexio recommends against using this for reconciliation or bookkeeping.",
                      "example": "035410",
                      "x-tags": [
                        "component"
                      ]
                    },
                    "transactionType": {
                      "title": "transactionType",
                      "type": "string",
                      "description": "The [transaction type](doc:constant-transaction-values#transaction-type-transactiontype).",
                      "example": "sale",
                      "x-tags": [
                        "component"
                      ]
                    },
                    "transactionDate": {
                      "title": "transactionDate",
                      "type": "string",
                      "description": "The original transaction date and time, formatted as an [ISO-8601](https://www.iso.org/iso-8601-date-and-time-format.html) date expressed in UTC.",
                      "example": "2019-01-15T13:19:39.329Z",
                      "x-tags": [
                        "component"
                      ]
                    },
                    "transactionStatus": {
                      "type": "string",
                      "title": "transactionStatus",
                      "description": "The current [transaction status](doc:constant-transaction-values#transaction-status-transactionstatus). If the void request is successful, this value will be `voided`.",
                      "x-tags": [
                        "component"
                      ],
                      "example": "voided"
                    },
                    "message": {
                      "type": "string",
                      "title": "message",
                      "description": "A message describing the status of the request.",
                      "example": "success",
                      "x-tags": [
                        "component"
                      ]
                    },
                    "currency": {
                      "title": "currency",
                      "type": "string",
                      "description": "The [three-character ISO code](https://en.wikipedia.org/wiki/ISO_4217) for the currency used in the original transaction.",
                      "x-tags": [
                        "component"
                      ],
                      "x-internal": false,
                      "example": "USD"
                    },
                    "data": {
                      "type": "object",
                      "description": "Transaction data.",
                      "properties": {
                        "currency": {
                          "$ref": "#/paths/~1pay~1v3~1void/post/responses/200/content/application~1json/schema/properties/currency"
                        },
                        "settlementCurrency": {
                          "title": "settlementCurrency",
                          "type": "string",
                          "description": "The [three-character ISO code](https://en.wikipedia.org/wiki/ISO_4217) for the currency in which the transaction was specified to be settled originally.",
                          "example": "EUR",
                          "x-tags": [
                            "component"
                          ]
                        }
                      }
                    },
                    "gatewayResponse": {
                      "title": "gateway",
                      "type": "object",
                      "description": "Gateway-specific information. <b>Details will vary by gateway. Do NOT code to any information included in this object</b>.",
                      "properties": {
                        "gatewayName": {
                          "$ref": "#/paths/~1pay~1v3~1processFromTerminal~1%7BterminalRequestId%7D/get/responses/200/content/application~1json/schema/properties/gatewayResponse/properties/gatewayName"
                        },
                        "refNumber": {
                          "type": "string",
                          "title": "refNumber",
                          "description": "The gateway identifier for the transaction.",
                          "example": "8E56222GD0701110",
                          "x-tags": [
                            "component"
                          ]
                        }
                      },
                      "x-tags": [
                        "object"
                      ]
                    },
                    "random-nnnnnnn": {
                      "$ref": "#/paths/~1card~1v3/get/responses/200/content/application~1json/schema/properties/random-nnnn"
                    }
                  }
                },
                "examples": {
                  "Example response": {
                    "value": {
                      "id": "eyJuYW1lIjoWJlciI6IjMxCJtZXJjaGFudElkIjoiMoiVVNEIn0=",
                      "merchantId": "100100",
                      "authCode": "",
                      "currency": "USD",
                      "transactionType": "sale",
                      "transactionDate": "2019-01-15T13:19:39.329Z",
                      "transactionStatus": "voided",
                      "message": "success",
                      "gatewayResponse": {
                        "gatewayName": "usaepay",
                        "refNumber": "8E56222GD0701110"
                      },
                      "data": {
                        "currency": "EUR",
                        "settlementCurrency": "USD"
                      },
                      "random-nnnnnnn": "6fec4a03-3a9f-40de-90bc-23a513ac904c"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          }
        },
        "summary": "Void a transaction"
      }
    },
    "/pay/v3/refund": {
      "post": {
        "description": "Allows you to refund all or part of a previous credit card, debit card, or echeck transaction using the Nexio Payment ID. In order to refund a transaction, it must have already settled.\n\nThe entire process for refunding a transaction is as follows: \n1. Run a transaction using the [Run card transaction](ref:runcardtransaction) or [Run echeck transaction](ref:runechecktransaction) endpoint.\n2. Retrieve the `id` from the response. This is the Nexio Payment ID.\n3. Use the dashboard from the gateway connection that processed the transaction to manually settle the transaction if that is possible (or wait for the transaction to settle). Note that you can use the [Nexio mock gateway](doc:nexio-mock-gateway-integration-guide) and the `paymentOptionTag` of `nexioAuto` to immediately make a transaction settle. \n4. Include the payment `id` in the body of your request for this endpoint, along with an `amount` that is less than or equal to the original transaction amount. Note that some gateway connections allow multiple refunds per transaction. In this situation, you should ensure that the total of all refunds does not exceed the amount charged in the original transaction.\n\nIf you do not know the `paymentId` or the maximum `amount` to refund, you can get an array of possible transactions that have settled with the [View transactions](ref:viewtransactions) endpoint and at least the following query filters:<br/>`transactionStatus=20`<br/>`plugin=`\n\n<!-- theme: warning -->\n> ⚠️ Try It\n> \n> To use the Try It feature for this endpoint, you can use the credentials for your [Sandbox API user](doc:sandbox-environments).<br/><br/>You can also use the following test account. Copy the value and paste it into the appropriate space in the Try It section to the right.\n> username: `docs@nexiopay.com`\n> password: `JZdzoXpdDeH6VA`<br/><br/>Include the ID and a refund amount, as indicated above. You may also include a description of why you are issuing the refund.\n\n<div style=\"display:none;\">\n\n## Request parameters\n- id\n- data\n- data.amount\n- refundReason\n\n## Response parameters\n- id\n- merchantId\n- transactionDate\n- authCode\n- transactionStatus\n- transactionType\n- currency\n- amount\n- message\n- data\n- data.currency\n- data.settlementCurrency\n- data.amount\n- gatewayResponse\n- gatewayResponse.gatewayName\n- gatewayResponse.refNumber\n- recurringData\n- recurringData.recurringId\n- recurringData.recurringIdType\n\n</div>",
        "operationId": "RefundTransaction",
        "tags": [
          "Ecommerce"
        ],
        "security": [
          {
            "Basic_Authentication": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "Transaction data",
                "properties": {
                  "id": {
                    "title": "id",
                    "type": "string",
                    "description": "The Nexio Payment ID. To refund a transaction through this endpoint it must have been captured through the Nexio Payment API. The transaction must also have already settled.",
                    "example": "eyJuYW1lIjoWJlciI6IjMxCJtZXJjaGFudElkIjoiMoiVVNEIn0=",
                    "x-tags": [
                      "component"
                    ]
                  },
                  "data": {
                    "type": "object",
                    "required": [
                      "amount"
                    ],
                    "properties": {
                      "amount": {
                        "type": "number",
                        "title": "amount",
                        "description": "The amount of the transaction you want to refund, in the transaction currency. This value may be less than or equal to the original transaction `amount`, but it may not exceed it. This also means that if you make more than one refund to a single transaction where each is less than the original `amount`, you need to ensure that the total of all refunds does not exceed the original `amount`. The system returns a `435` error code if the refund amount exceeds the original `amount`.",
                        "example": 5.95,
                        "x-tags": [
                          "component"
                        ]
                      }
                    }
                  },
                  "refundReason": {
                    "type": "string",
                    "title": "refundReason",
                    "description": "Specifies information about why the refund is being issued.\n\nThe gateway or connection may not use or return this value.",
                    "x-tags": [
                      "component"
                    ],
                    "example": "This is the reason for the refund."
                  }
                },
                "required": [
                  "id",
                  "data"
                ]
              },
              "examples": {
                "Refund request with required parameters only": {
                  "value": {
                    "id": "eyJuYW1lIjoWJlciI6IjMxCJtZXJjaGFudElkIjoiMoiVVNEIn0=",
                    "data": {
                      "amount": 5.95
                    }
                  }
                },
                "Refund request with all parameters": {
                  "value": {
                    "id": "eyJuYW1lIjoWJlciI6IjMxCJtZXJjaGFudElkIjoiMoiVVNEIn0=",
                    "data": {
                      "amount": 5.95
                    },
                    "refundReason": "Customer return."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "$ref": "#/paths/~1pay~1v3~1void/post/responses/200/content/application~1json/schema/properties/id"
                    },
                    "merchantId": {
                      "$ref": "#/paths/~1pay~1v3~1void/post/responses/200/content/application~1json/schema/properties/merchantId"
                    },
                    "authCode": {
                      "$ref": "#/paths/~1pay~1v3~1void/post/responses/200/content/application~1json/schema/properties/authCode"
                    },
                    "transactionType": {
                      "title": "transactionType",
                      "type": "string",
                      "description": "The [transaction type](doc:constant-transaction-values#transaction-type-transactiontype). If the refund was successful, this value will be `refund`.",
                      "example": "refund",
                      "x-tags": [
                        "component"
                      ]
                    },
                    "transactionDate": {
                      "$ref": "#/paths/~1pay~1v3~1void/post/responses/200/content/application~1json/schema/properties/transactionDate"
                    },
                    "transactionStatus": {
                      "type": "string",
                      "title": "transactionStatus",
                      "example": "settled",
                      "description": "The [transaction status](doc:constant-transaction-values#transaction-status-transactionstatus).",
                      "x-tags": [
                        "component"
                      ]
                    },
                    "message": {
                      "$ref": "#/paths/~1pay~1v3~1void/post/responses/200/content/application~1json/schema/properties/message"
                    },
                    "refundReason": {
                      "type": "string",
                      "title": "refundReason",
                      "description": "Indicates the information specified when submitting the refund request. This parameter is only returned when included in the refund request, and only when returned by the gateway or connection.",
                      "x-tags": [
                        "component"
                      ],
                      "example": "This is the reason for the refund."
                    },
                    "amount": {
                      "type": "number",
                      "title": "amount",
                      "description": "The amount that was refunded, expressed as a negative number.",
                      "example": -15.95,
                      "x-tags": [
                        "component"
                      ]
                    },
                    "currency": {
                      "$ref": "#/paths/~1pay~1v3~1void/post/responses/200/content/application~1json/schema/properties/currency"
                    },
                    "data": {
                      "title": "data",
                      "type": "object",
                      "description": "Transaction data for the refund.",
                      "x-tags": [
                        "object"
                      ],
                      "properties": {
                        "amount": {
                          "$ref": "#/paths/~1pay~1v3~1refund/post/responses/200/content/application~1json/schema/properties/amount"
                        },
                        "currency": {
                          "$ref": "#/paths/~1pay~1v3~1void/post/responses/200/content/application~1json/schema/properties/currency"
                        },
                        "settlementCurrency": {
                          "$ref": "#/paths/~1pay~1v3~1void/post/responses/200/content/application~1json/schema/properties/data/properties/settlementCurrency"
                        }
                      }
                    },
                    "gatewayResponse": {
                      "$ref": "#/paths/~1pay~1v3~1void/post/responses/200/content/application~1json/schema/properties/gatewayResponse"
                    },
                    "recurringData": {
                      "title": "recurringData",
                      "type": "object",
                      "description": "When the original transaction used raw card information and may have recurring or subsequent transactions, the system returns this object.",
                      "x-tags": [
                        "object"
                      ],
                      "properties": {
                        "recurringId": {
                          "type": "string",
                          "title": "recurringId",
                          "description": "The ID that references the previous transaction authorization. Save this value to use in subsequent transactions every time you run a transaction with raw card information.",
                          "example": "858939643422519",
                          "x-tags": [
                            "component"
                          ]
                        },
                        "recurringIdType": {
                          "type": "string",
                          "title": "recurringIdType",
                          "description": "The type of recurring ID, in relation to the original authorization. Will be either `networkTransactionId` (meaning that a card brand issued the identifier and therefore you can potentially use it across multiple gateways or connections) or `gatewayRecurringId` (meaning that the gateway or connection issued the identifier and you can only use it with that specific gateway or connection).",
                          "x-tags": [
                            "component"
                          ],
                          "example": "networkTransactionId"
                        }
                      }
                    },
                    "random-nnnnnnn": {
                      "$ref": "#/paths/~1card~1v3/get/responses/200/content/application~1json/schema/properties/random-nnnn"
                    }
                  }
                },
                "examples": {
                  "Example card refund for recurring raw card transaction": {
                    "value": {
                      "id": "eyJuYW1lIjoWJlciI6IjMxCJtZXJjaGFudElkIjoiMoiVVNEIn0=",
                      "merchantId": "100100",
                      "authCode": "035410",
                      "transactionType": "refund",
                      "transactionDate": "2025-01-15T13:19:39.329Z",
                      "transactionStatus": "settled",
                      "message": "success",
                      "refundReason": "Customer return.",
                      "amount": -5.95,
                      "currency": "USD",
                      "data": {
                        "amount": -5.95,
                        "currency": "USD",
                        "settlementCurrency": "EUR"
                      },
                      "gatewayResponse": {
                        "gatewayName": "usaepay",
                        "refNumber": "8E56222GD0701110"
                      },
                      "recurringData": {
                        "recurringId": "858939643422519",
                        "recurringIdType": "networkTransactionId"
                      },
                      "random-nnnnnnn": "6fec4a03-3a9f-40de-90bc-23a513ac904c"
                    }
                  },
                  "Example echeck refund": {
                    "value": {
                      "id": "eyJuYW1lIjoWJlciI6IjMxCJtZXJjaGFudElkIjoiMoiVVNEIn0=",
                      "merchantId": "100100",
                      "authCode": "035410",
                      "transactionType": "refund",
                      "transactionDate": "2019-01-15T13:19:39.329Z",
                      "transactionStatus": "settled",
                      "message": "success",
                      "refundReason": "This is the reason for the refund.",
                      "amount": -5.95,
                      "currency": "USD",
                      "data": {
                        "amount": -5.95,
                        "currency": "USD",
                        "settlementCurrency": "EUR"
                      },
                      "gatewayResponse": {
                        "gatewayName": "usaepay",
                        "refNumber": "8E56222GD0701110"
                      },
                      "random-nnnnnnn": "6fec4a03-3a9f-40de-90bc-23a513ac904c"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "integer",
                      "description": "Nexio's error code",
                      "example": 435
                    },
                    "message": {
                      "type": "string",
                      "description": "The reason for the failure to authenticate",
                      "example": "Amount exceeds original transaction amount."
                    },
                    "gatewayResponse": {
                      "type": "object",
                      "description": "The failure response from the gateway. Details will vary by gateway",
                      "properties": {
                        "gatewayName": {
                          "type": "string",
                          "description": "The gateway name",
                          "example": "yourGateway"
                        },
                        "refNum": {
                          "type": "string",
                          "description": "The gateway's reference number",
                          "example": "3113320943"
                        },
                        "status": {
                          "type": "string",
                          "description": "The [transaction status](doc:constant-transaction-values#transaction-status-transactionstatus).",
                          "example": "error"
                        }
                      }
                    },
                    "merchantId": {
                      "type": "string",
                      "description": "The merchant ID",
                      "example": "100100"
                    },
                    "random-nnnnnnn": {
                      "$ref": "#/paths/~1card~1v3/get/responses/200/content/application~1json/schema/properties/random-nnnn"
                    }
                  }
                },
                "examples": {
                  "Example failure": {
                    "value": {
                      "error": 435,
                      "message": "Amount exceeds original transaction amount.",
                      "gatewayResponse": {
                        "gatewayName": "[yourGateway]",
                        "refNum": "",
                        "status": "error"
                      },
                      "merchantId": "100100",
                      "random-nnnnnnn": "6fec4a03-3a9f-40de-90bc-23a513ac904c"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          }
        },
        "summary": "Refund a transaction"
      }
    },
    "/apm/v3/void": {
      "post": {
        "description": "Voids a transaction run using an Alternative Payment Method.\n\nIf you do not know the `paymentId` or `amount` to use, make a call with the [View transactions](ref: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.\n\nFor more help with this endpoint, see the [Void an APM transaction](doc:void-an-apm-transaction) tutorial in Guides.\n\n<!-- theme: warning -->\n> ⚠️ Try It\n> \n> To use the Try It feature for this endpoint, you can use the credentials for your [Sandbox API user](doc:sandbox-environments).<br/><br/>You can also use the following test account (that is connected with [PayPal](doc:paypal-integration-guide)). Copy the value and paste it into the appropriate space in the Try It section to the right.\n> username: `docs@nexiopay.com`\n> password: `JZdzoXpdDeH6VA`<br/><br/>Include the paymentID of the transaction in your request.\n\n<div style=\"display:none;\">\n\n## Request parameters\n- id\n- data\n- data.amount\n\n## Response parameters\n- id\n- merchantId\n- transactionDate\n- amount\n- transactionType\n- currency\n- gatewayResponse\n- gatewayResponse.gatewayName\n- gatewayResponse.refNumber\n- data\n- data.amount\n- data.currency\n- data.settlementCurrency\n- message\n\n</div>",
        "operationId": "VoidAPMTransaction",
        "tags": [
          "Alternative Payment Methods"
        ],
        "security": [
          {
            "Basic_Authentication": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "title": "id",
                    "description": "The Nexio ID for the payment request. This parameter is commonly known as the `paymentId`.\n\nYou can use this in the [View transaction by payment ID](ref:viewtransactionpaymentid) endpoint within about a minute of running the transaction. Or, you can use it in the [View transactions](ref:viewtransactions) endpoint by including the value for the `plugin.originalId` query parameter.",
                    "example": "eyJuYW1lIjoWJlciI6IjMxCJtZXJjaGFudElkIjoiMoiVVNEIn0=eyJuYW1lIjoib3BlbnBheSIsIm1lcmN",
                    "x-tags": [
                      "component"
                    ]
                  },
                  "data": {
                    "type": "object",
                    "description": "Transaction data",
                    "properties": {
                      "amount": {
                        "$ref": "#/paths/~1pay~1v3~1processECheck/post/responses/200/content/application~1json/schema/properties/amount"
                      }
                    }
                  }
                }
              },
              "examples": {
                "Example request": {
                  "value": {
                    "id": "eyJuYW1lIjoWJlciI6IjMxCJtZXJjaGFudElkIjoiMoiVVNEIn0=eyJuYW1lIjoib3BlbnBheSIsIm1lcmN",
                    "data": {
                      "amount": 29.99
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "title": "voidCaptureRefund",
                  "type": "object",
                  "x-tags": [
                    "component"
                  ],
                  "properties": {
                    "id": {
                      "$ref": "#/paths/~1apm~1v3~1void/post/requestBody/content/application~1json/schema/properties/id"
                    },
                    "merchantId": {
                      "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/400/content/application~1json/schema/properties/merchantId"
                    },
                    "transactionDate": {
                      "$ref": "#/paths/~1pay~1v3~1capture/post/responses/200/content/application~1json/schema/properties/transactionDate"
                    },
                    "amount": {
                      "$ref": "#/paths/~1pay~1v3~1processECheck/post/responses/200/content/application~1json/schema/properties/amount"
                    },
                    "transactionType": {
                      "$ref": "#/paths/~1pay~1v3~1capture/post/responses/200/content/application~1json/schema/properties/transactionType"
                    },
                    "currency": {
                      "$ref": "#/paths/~1pay~1v3~1capture/post/responses/200/content/application~1json/schema/properties/currency"
                    },
                    "gatewayResponse": {
                      "$ref": "#/paths/~1pay~1v3~1void/post/responses/200/content/application~1json/schema/properties/gatewayResponse"
                    },
                    "data": {
                      "$ref": "#/paths/~1pay~1v3~1capture/post/responses/200/content/application~1json/schema/properties/data"
                    },
                    "message": {
                      "$ref": "#/paths/~1pay~1v3~1void/post/responses/200/content/application~1json/schema/properties/message"
                    }
                  }
                },
                "examples": {
                  "Example response": {
                    "value": {
                      "id": "eyJuYW1lIjoWJlciI6IjMxCJtZXJjaGFudElkIjoiMoiVVNEIn0=eyJuYW1lIjoib3BlbnBheSIsIm1lcmN",
                      "merchantId": "000999",
                      "transactionDate": "2019-01-15T13:19:39.329Z",
                      "amount": 29.99,
                      "transactionType": "sale",
                      "currency": "EUR",
                      "gatewayResponse": {
                        "gatewayName": "usaepay",
                        "refNumber": "8E56222GD0701110"
                      },
                      "data": {
                        "amount": 29.99,
                        "currency": "EUR",
                        "settlementCurrency": "CAD"
                      },
                      "message": "success"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          }
        },
        "summary": "Void an APM transaction"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```