---
updatedAt: 2025-09-30T15:27:43.000Z
agentTools:
  projectIndex: https://docs.nexiopay.com/llms.txt
---

# Create a subscription

<!-- theme: warning -->
> 🛑 Important
> 
> Nexio does not currently recommend using the Subscription service for a 3DS flow. For other options, see [Getting started with subscriptions](doc:getting-started-with-subscriptions) in Guides.
> 

Creates a recurring payment as a subscription or payment plan. For guides to using this endpoint, see the [Recurring billing overview](doc:recurring-billing-overview) topic.

A successful request to this endpoint processes an initial transaction using a saved card token and schedules recurring transactions. All transactions are processed with the values provided in the `payment` object or the [data saved in the card token](doc:what-data-is-saved-with-tokens). The scheduled transaction runs according to the values provided in the `schedule` object.

Also, in order to have a customer skip a month for an existing subscription or payment plan, you need to delete the current one and then recreate it to start with an `initialBillingAmount` of `0` and have the `dateInitialBillingEnd` happen a month before the next scheduled payment.

<!-- theme: info -->
> 📘 Note
> 
> If the initial transaction is declined, the subscription or payment plan will not be created. It must be re-created with a new card token.
>
> After the subscription or payment plan is created, if a subsequent transaction gets declined or has an error, the system retries the transaction up to three times, one minute apart. On the third failure, the system stops trying for that installment, the subscription or payment plan remains active, and the system tries again at the next scheduled payment date. In this instance, the merchant would need to contact the customer about the missed payment or transaction. Also, if you have webhooks configured, you will receive a webhook for each of the failures. For additional information about this, see the [Creating a Nexio-scheduled card subscription](doc:creating-a-subscription) or [Creating a Nexio-scheduled card payment plan](doc:creating-a-pay-plan) tutorial.
> 
> However, with [Decline recovery](doc:decline-recovery-overview) and when the subscription or payment plan was created with the `retryOnSoftDecline` parameter, instead of doing the three retries at a minute apart, the system retries according to the recommendation received from the Decline recovery system.

<!-- theme: warning -->
> 🛑 Important
> 
> When needing to use a 3DS flow to create a subscription, you must first run a customer-facing transaction where the customer proceeds through the 3DS flow (see the [Using 3DS to run transactions](doc:using-3ds-to-run-transactions) tutorial). Make sure you use a `paymentType` of `initialScheduled` and also save the card token as part of the process. 
> 
> Then, use this endpoint to create the subscription with that saved card token and a `paymentType` of `scheduled`.
> 

<!-- 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 at least a saved card token in the `tokenex.token` parameter, the amount and currency for the transaction, the payment type, and a customer reference number. You can also include the appropriate subscription parameters.

<div style="display:none;">

## Request parameters
- payment
- payment.tokenex
- payment.tokenex.token
- payment.tokenex.firstSix
- payment.tokenex.lastFour
- payment.isAuthOnly
- payment.shouldUpdateCard
- payment.processingOptions
- payment.processingOptions.saveCardToken
- payment.processingOptions.retryOnSoftDecline
- payment.processingOptions.checkFraud
- payment.processingOptions.shouldUseFingerprint
- payment.processingOptions.check3ds
- payment.processingOptions.verboseResponse
- payment.processingOptions.paymentType
- payment.processingOptions.paymentOptionTag
- payment.processingOptions.merchantId
- payment.processingOptions.customerRedirectUrl
- payment.data
- payment.data.amount
- payment.data.currency
- payment.data.settlementCurrency
- payment.data.customer
- payment.data.customer.customerRef
- payment.data.customer.invoice
- payment.data.customer.orderNumber
- payment.data.customer.orderDate
- payment.data.customer.birthDate
- payment.data.customer.nationalIdentificationNumber
- payment.data.customer.companyName
- payment.data.customer.firstName
- payment.data.customer.lastName
- payment.data.customer.email
- payment.data.customer.phone
- payment.data.customer.billToAddressOne
- payment.data.customer.billToAddressTwo
- payment.data.customer.billToCity
- payment.data.customer.billToState
- payment.data.customer.billToPostal
- payment.data.customer.billToCountry
- payment.data.customer.billToPhone
- payment.data.customer.shipToAddressOne
- payment.data.customer.shipToAddressTwo
- payment.data.customer.shipToCity
- payment.data.customer.shipToState
- payment.data.customer.shipToPostal
- payment.data.customer.shipToCountry
- payment.data.customer.shipToPhone
- payment.data.customer.createdAtDate
- schedule
- schedule.interval
- schedule.intervalCount
- schedule.balance
- schedule.duration
- schedule.dateInitialBillingEnd
- schedule.intialBillingAmount
- schedule.dateCancelAfter

## Response parameters
- customerRef
- active
- accountId
- id
- payment
- payment.tokenex
- payment.tokenex.token
- payment.tokenex.firstSix
- payment.tokenex.lastFour
- payment.shouldUpdateCard
- payment.isAuthOnly
- payment.processingOptions
- payment.processingOptions.saveCardToken
- payment.processingOptions.retryOnSoftDecline
- payment.processingOptions.checkFraud
- payment.processingOptions.shouldUseFingerprint
- payment.processingOptions.check3ds
- payment.processingOptions.verboseResponse
- payment.processingOptions.paymentType
- payment.processingOptions.paymentOptionTag
- payment.processingOptions.merchantId
- payment.processingOptions.customerRedirectUrl
- payment.data
- payment.data.amount
- payment.data.currency
- payment.data.settlementCurrency
- payment.data.customer
- payment.data.customer.customerRef
- payment.data.customer.invoice
- payment.data.customer.orderNumber
- payment.data.customer.orderDate
- payment.data.customer.birthDate
- payment.data.customer.nationalIdentificationNumber
- payment.data.customer.companyName
- payment.data.customer.firstName
- payment.data.customer.lastName
- payment.data.customer.email
- payment.data.customer.phone
- payment.data.customer.billToAddressOne
- payment.data.customer.billToAddressTwo
- payment.data.customer.billToCity
- payment.data.customer.billToState
- payment.data.customer.billToPostal
- payment.data.customer.billToCountry
- payment.data.customer.billToPhone
- payment.data.customer.shipToAddressOne
- payment.data.customer.shipToAddressTwo
- payment.data.customer.shipToCity
- payment.data.customer.shipToState
- payment.data.customer.shipToPostal
- payment.data.customer.shipToCountry
- payment.data.customer.shipToPhone
- payment.data.customer.createdAtDate
- schedule
- schedule.interval
- schedule.intervalCount
- schedule.initialBalance
- schedule.balance
- schedule.duration
- schedule.dateInitialBillingEnd
- schedule.intialBillingAmount
- schedule.dateCancelAfter
- schedule.scheduleType
- userName
- dateCreated
- dateLastModified
- dateLastRun
- dateNextRun
- paymentResult
- paymentResult.amount
- paymentResult.authCode
- paymentResult.transactionStatus
- paymentResult.transactionDate
- paymentResult.transactionType
- paymentResult.merchantId
- paymentResult.currency
- paymentResult.id
- paymentResult.asyncTraceId
- paymentResult.redirectUrl
- paymentResult.message
- paymentResult.status
- paymentResult.gatewayResponse
- paymentResult.gatewayResponse.gatewayName
- paymentResult.gatewayResponse.refNumber
- paymentResult.data
- paymentResult.data.amount
- paymentResult.data.currency
- paymentResult.data.settlementCurrency
- paymentResult.data.customer
- paymentResult.data.customer.customerRef
- paymentResult.data.customer.orderNumber
- paymentResult.data.customer.orderDate
- paymentResult.data.customer.invoice
- paymentResult.data.customer.birthDate
- paymentResult.data.customer.nationalIdentificationNumber
- paymentResult.data.customer.companyName
- paymentResult.data.customer.firstName
- paymentResult.data.customer.lastName
- paymentResult.data.customer.email
- paymentResult.data.customer.phone
- paymentResult.data.customer.billToAddressOne
- paymentResult.data.customer.billToAddressTwo
- paymentResult.data.customer.billToCity
- paymentResult.data.customer.billToState
- paymentResult.data.customer.billToPostal
- paymentResult.data.customer.billToCountry
- paymentResult.data.customer.billToPhone
- paymentResult.data.customer.shipToAddressOne
- paymentResult.data.customer.shipToAddressTwo
- paymentResult.data.customer.shipToCity
- paymentResult.data.customer.shipToState
- paymentResult.data.customer.shipToPostal
- paymentResult.data.customer.shipToCountry
- paymentResult.data.customer.shipToPhone
- paymentResult.data.customer.createdAt
- paymentResult.card
- paymentResult.card.cardHolder
- paymentResult.card.cardNumber
- paymentResult.card.expirationMonth
- paymentResult.card.expirationYear
- paymentResult.token
- paymentResult.token.firstSix
- paymentResult.token.lastFour
- paymentResult.token.token
- paymentResult.kountResponse
- paymentResult.kountResponse.status
- paymentResult.kountResponse.rules
- lastPaymentStatus
- lastSuccessfulPaymentDate
- exp

</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": "Retail",
      "description": "APIs for retail payments"
    },
    {
      "name": "Subscriptions",
      "description": "APIs for subscription payments"
    },
    {
      "name": "Alternative Payment Methods",
      "description": "APIs for APM payments"
    }
  ],
  "paths": {
    "/pay/v3/saveCard": {
      "post": {
        "description": "Allows you to securely save a card token [using your own form](doc:creating-a-save-card-page-with-your-own-form) or [using the API directly](doc:saving-a-card-token-with-the-api) (potentially without a web browser). You can use this endpoint to save a new card token or add pre-existing TokenEx tokens that you would like to start using through Nexio. \n\nYou can use this saved card token to run a card transaction using the [Run card transaction with iframe](ref:runcardtransactioniframe) or [Run card transaction](ref:runcardtransaction) endpoint. \n\nCard tokens can be used to process transactions through any MID on your account. They are not restricted to a specific merchant account or currency.\n\nFor instructions on how to implement this endpoint, see [Creating a save card page with your own form](doc:creating-a-save-card-page-with-your-own-form) or [Saving a card token with the API](doc:saving-a-card-token-with-the-api). \n\nFor a tutorial about running a transaction with the saved card token, see the [Creating a card checkout page with the iframe](doc:creating-a-card-checkout-page-with-the-iframe), [Creating a card checkout page with your own form](doc:creating-a-card-checkout-page-with-your-own-form), or [Running a card transaction with the API](doc:running-a-card-transaction-with-the-api) topic.\n\n<!-- theme: info -->\n> 📘 Note \n> \n> Processing options must be sent in the request for a [one-time-use token](ref:createonetimeusetoken). For more information, see [What data is saved with tokens?](doc:what-data-is-saved-with-tokens) in Guides.\n\n<!-- theme: warning -->\n> ⚠️ Try It\n> \n> To use the Try It feature for this endpoint, include at least the following in the body of the request:\n> - A [one-time-use token](ref:createonetimeusetoken) - this replaces the standard username/password and authentication header\n> - `card.cardHolderName`\n> - `card.expirationMonth`\n> - `card.expirationYear`\n> - Either `card.encryptedNumber` or `tokenex.token` (an existing TokenEx card token)\n> For information about test card numbers and values you can use, see the documentation for the specific [gateway/connection integration guide](doc:connections) or, if you are testing Account Updater, see the [Test cards for account updater](doc:checking-a-cards-enrollment-tag#test-cards-for-account-updater) section of the \"Checking a card's enrollment tag\" topic.\n\n\n<div style=\"display:none;\">\n\n## Request parameters\n- card\n- card.cardHolderName\n- card.encryptedNumber\n- card.expirationMonth\n- card.expirationYear\n- card.cardType\n- card.securityCode\n- card.firstSix\n- card.lastFour\n- token\n- data\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.birthDate\n- data.customer.createdAtDate\n- data.customer.email\n- data.customer.firstName\n- data.customer.invoice\n- data.customer.lastName\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- shouldUpdateCard\n- tokenex\n- tokenex.token\n- tokenex.firstSix\n- tokenex.lastFour\n- merchantId\n\n## Response parameters\n- card\n- card.cardHolderName\n- card.expirationMonth\n- card.expirationYear\n- card.cardType\n- data\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.birthDate\n- data.customer.email\n- data.customer.firstName\n- data.customer.lastName\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- kountResponse\n- kountResponse.status\n- kountResponse.rules\n- merchantId\n- shouldUpdateCard\n- token\n- token.token\n- token.firstSix\n- token.lastFour\n- token.cardType\n- cvcResults\n- cvcResults.matchCvv\n- cvcResults.error\n- cvcResults.gatewayMessage\n- cvcResults.gatewayMessage.cvvresponse\n- cvcResults.gatewayMessage.message\n- avsResults\n- avsResults.matchAddress\n- avsResults.matchPostal\n- avsResults.error\n- avsResults.gatewayMessage\n- avsResults.gatewayMessage.avsresponse\n- avsResults.gatewayMessage.message\n- cardType\n\n</div>",
        "operationId": "SaveCardToken",
        "security": [],
        "tags": [
          "Ecommerce"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "token",
                  "card"
                ],
                "properties": {
                  "token": {
                    "title": "token",
                    "type": "string",
                    "description": "A [one-time-use token](ref:createonetimeusetoken). This value is saved in the card/echeck token as `key`.",
                    "example": "eb50a022-d6de-4244-a1e6-dcb8522b2d19",
                    "x-tags": [
                      "component"
                    ]
                  },
                  "card": {
                    "title": "card",
                    "type": "object",
                    "description": "Card information.",
                    "x-tags": [
                      "object"
                    ],
                    "properties": {
                      "cardHolderName": {
                        "$ref": "#/paths/~1pay~1v3~1vault~1card~1%7BcardToken%7D/put/requestBody/content/application~1json/schema/properties/card/properties/cardHolderName"
                      },
                      "expirationMonth": {
                        "$ref": "#/paths/~1pay~1v3~1vault~1card~1%7BcardToken%7D/put/requestBody/content/application~1json/schema/properties/card/properties/expirationMonth"
                      },
                      "expirationYear": {
                        "$ref": "#/paths/~1pay~1v3~1vault~1card~1%7BcardToken%7D/put/requestBody/content/application~1json/schema/properties/card/properties/expirationYear"
                      },
                      "encryptedNumber": {
                        "type": "string",
                        "title": "encryptedNumber",
                        "description": "The encrypted card number. **Conditionally required**. Either this or the `tokenex.token` parameter is required. For instructions on encrypting the card number, see **step 6** in the [Creating a save card page with your own form](doc:creating-a-save-card-page-with-your-own-form) topic in Guides.\n\nFor information about test card numbers and values you can use, see the documentation for the specific [gateway/connection integration guide](doc:connections) or, if you are testing Account Updater, see the [Test cards for account updater](doc:checking-a-cards-enrollment-tag#test-cards-for-account-updater) section of the \"Checking a card's enrollment tag\" topic.",
                        "example": "cu3yRktaYFK2LUC6DpNK289tYDsGRCi7cO+GeG0hkeYFvT7Y8/oY5r53obMz6Q/BZ38gk2u2Ufwy8ojBcX2sfNjG5jplGTXA4NNlSIUjMFfiHe1sff1JFpThoiW/IIlifGlbWu+S1/9pqWPTzJ2+DcjwohbHzsDahhYewFhXgC8qsK0ypi/Shlp+CwRITyIvbVXESD0xz3YOTRHeZLlChvVqN8z4ZzN8nm0MXkmT1wcpYI73bH4KdnPwNU3s7XxvP/ernQP73SHHAOKSLlz4F6AEHFjJiCoXzeLF7LwEjRdxDJ0sKVXbRk3i9BGh+8Nle2VYgjpUWtk2763QkvZiQQ==",
                        "x-tags": [
                          "component"
                        ]
                      },
                      "cardType": {
                        "type": "string",
                        "title": "cardType",
                        "description": "The card type. **Conditionally required**. This information is required when [saving a card through your own form](doc:creating-a-save-card-page-with-your-own-form). This value is saved in the card token (in `card.cardType`, `cardType`, and `tokenex.cardType`).\n\nYou can specify any value for this parameter when saving to the card token, including the ones listed in this reference, but also other text such as \"American Express\" or \"americanExpress\" or \"Diners Club\". This information is saved to the card token. However, when using that saved card token to run a transaction, the system ignores the value and determines the type based on the card values used. When the card type is not one of the indicated options, the system returns unknown for the `cardType`, or returns `null` when using one of the View transaction endpoints.\n\nFor a list of card types enabled for the merchant account, see the [View card types](ref:viewcardtypes) endpoint.",
                        "example": "visa",
                        "x-tags": [
                          "component"
                        ],
                        "enum": [
                          "amex",
                          "discover",
                          "jcb",
                          "mastercard",
                          "visa"
                        ]
                      },
                      "securityCode": {
                        "title": "securityCode",
                        "type": "string",
                        "description": "The numeric code printed on the card for enhanced security. Because the code may start with a leading zero (0), you should send this as a string rather than an integer (even though both types are supported in the request).\n\n<!-- theme: warning -->\n> 🛑 Warning\n> \n> Storing this value on your servers is prohibited by the PCI-Data Security Standard.\n\nWhen included in the request, Nexio caches the value for up to 24 hours. Therefore, if you save the card token and then submit a transaction with that card token more than 24 hours later, you need to recapture the security code.",
                        "example": 927,
                        "x-tags": [
                          "component"
                        ]
                      },
                      "firstSix": {
                        "$ref": "#/paths/~1pay~1v3~1vault~1card~1%7BcardToken%7D/get/responses/200/content/application~1json/schema/properties/tokenex/properties/firstSix"
                      },
                      "lastFour": {
                        "$ref": "#/paths/~1pay~1v3~1vault~1card~1%7BcardToken%7D/get/responses/200/content/application~1json/schema/properties/tokenex/properties/lastFour"
                      }
                    },
                    "required": [
                      "cardHolderName",
                      "expirationMonth",
                      "expirationYear"
                    ]
                  },
                  "tokenex": {
                    "title": "token",
                    "type": "object",
                    "description": "TokenEx card token information.",
                    "x-tags": [
                      "object"
                    ],
                    "properties": {
                      "token": {
                        "type": "string",
                        "description": "A previously saved TokenEx card token. **Conditionally required.** Either this or the `card.encryptedNumber` parameter is required. This value is saved in the card token.\n\nUse this parameter if you have pre-existing TokenEx tokens you would like to start using through Nexio. **Note:** You will get an error if you try to use a card token generated through Nexio.\n\nCard tokens can be used to process through any MID on your account. They are not restricted to a specific merchant account or currency.",
                        "example": "6ee140a0-05d1-4958-8325-b38a690dbb9d"
                      },
                      "firstSix": {
                        "$ref": "#/paths/~1pay~1v3~1vault~1card~1%7BcardToken%7D/put/responses/200/content/application~1json/schema/properties/tokenex/properties/firstSix"
                      },
                      "lastFour": {
                        "$ref": "#/paths/~1pay~1v3~1vault~1card~1%7BcardToken%7D/put/responses/200/content/application~1json/schema/properties/tokenex/properties/lastFour"
                      }
                    }
                  },
                  "data": {
                    "type": "object",
                    "description": "Additional optional data",
                    "properties": {
                      "customer": {
                        "title": "customer",
                        "type": "object",
                        "description": "Customer information to be used in checking fraud or sent to the processing gateway, when applicable.",
                        "x-tags": [
                          "object"
                        ],
                        "properties": {
                          "invoice": {
                            "title": "invoice",
                            "type": "string",
                            "description": "The invoice number.",
                            "example": "IN0001",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "firstName": {
                            "title": "firstName",
                            "type": "string",
                            "description": "The customer's first name, as it appears on the card or account. This value is saved in the card/echeck token.",
                            "example": "John",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "lastName": {
                            "title": "lastName",
                            "type": "string",
                            "description": "The customer's last name, as it appears on the card or account. This value is saved in the card/echeck token.",
                            "example": "Doe",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "birthDate": {
                            "type": "string",
                            "title": "birthDate",
                            "description": "The customer's date of birth. This value is saved in the card/echeck token. \n\nUse any of the following formats for the date:\n- Four-digit year, two-digit month and day, separated with hyphens: YYYY-MM-DD.<br>For example, `2001-08-26`.\n- [ISO-8601](https://www.iso.org/iso-8601-date-and-time-format.html) date expressed in UTC. It must include the 3 decimal places for milliseconds.<br>For example, `2001-08-26T13:35:00.978Z` or `1990-12-05T00:00:00.000Z`.\n- UNIX date (as an integer representing seconds).<br>For example, `998854500`.",
                            "example": "1990-12-05",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "email": {
                            "type": "string",
                            "title": "email",
                            "description": "The customer's email address. This value is saved in the card/echeck token.",
                            "example": "jdoe@example.com",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "phone": {
                            "title": "phone",
                            "type": "string",
                            "description": "The customer's phone number. This value is saved in the card/echeck token.",
                            "example": "1555555555",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "billToAddressOne": {
                            "title": "billToAddressOne",
                            "type": "string",
                            "description": "The street address on file with the provider. This value is saved in the card/echeck token.",
                            "example": "2147 West Silverlake Drive",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "billToAddressTwo": {
                            "title": "billToAddressTwo",
                            "type": "string",
                            "description": "Additional street address information, if required. This value is saved in the card/echeck token.",
                            "example": "Apt 42",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "billToCity": {
                            "title": "billToCity",
                            "type": "string",
                            "description": "The city on file with the provider. This value is saved in the card/echeck token.",
                            "example": "Scranton",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "billToState": {
                            "type": "string",
                            "title": "billToState",
                            "description": "The state or province on file with the provider. (If in the US, this must be the [two-character state abbreviation](https://pe.usps.com/text/pub28/28apb.htm)). This value is saved in the card/echeck token.",
                            "example": "PA",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "billToPostal": {
                            "title": "billToPostal",
                            "type": "string",
                            "description": "The postal code on file with the provider. This value is saved in the card/echeck token.",
                            "example": "18503",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "billToCountry": {
                            "title": "billToCountry",
                            "type": "string",
                            "description": "The [two-character (Alpha-2) ISO country code](https://www.iso.org/obp/ui/#search/code/) for the address on file with the provider. This value is saved in the card/echeck token.",
                            "example": "US",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "billToPhone": {
                            "title": "billToPhone",
                            "type": "string",
                            "description": "The billing phone number. This value is saved in the card/echeck token.",
                            "example": "1555555555",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "shipToAddressOne": {
                            "title": "shipToAddressOne",
                            "type": "string",
                            "description": "The shipping address, if different from the billing address. This value is saved in the card/echeck token.",
                            "example": "1725 Slough Avenue",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "shipToAddressTwo": {
                            "title": "shipToAddressTwo",
                            "type": "string",
                            "description": "Additional shipping address information, if required. This value is saved in the card/echeck token.",
                            "example": "Suite 200",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "shipToCity": {
                            "title": "shipToCity",
                            "type": "string",
                            "description": "The shipping city. This value is saved in the card/echeck token.",
                            "example": "Scranton",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "shipToState": {
                            "title": "shipToState",
                            "type": "string",
                            "description": "The shipping state or province. (If in the US, this must be the [two-character state abbreviation](https://pe.usps.com/text/pub28/28apb.htm).) This value is saved in the card/echeck token.",
                            "example": "PA",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "shipToPostal": {
                            "title": "shipToPostal",
                            "type": "string",
                            "description": "The shipping postal code. This value is saved in the card/echeck token.",
                            "example": "18505",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "shipToCountry": {
                            "title": "shipToCountry",
                            "type": "string",
                            "description": "The [two-character (Alpha-2) ISO](https://www.iso.org/obp/ui/#search/code/) shipping country code. This value is saved in the card/echeck token.",
                            "example": "US",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "shipToPhone": {
                            "title": "shipToPhone",
                            "type": "string",
                            "description": "The shipping phone number. This value is saved in the card/echeck token.",
                            "example": "1555555555",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "createdAtDate": {
                            "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/data/properties/customer/properties/createdAtDate"
                          }
                        }
                      }
                    }
                  },
                  "shouldUpdateCard": {
                    "title": "shouldUpdateCard",
                    "type": "boolean",
                    "description": "The card's account updater [enrollment tag](doc:checking-a-cards-enrollment-tag). This value is saved in the card token.\n\nWhen true, the card token is tagged for being sent to the account updater provider.\n\n<!-- theme:info -->\n> #### Note\n> The card will not be registered until the merchant account is enrolled. See the [Enrollment tag table](doc:checking-a-cards-enrollment-tag#enrollment-tag-table) for more information.",
                    "default": true,
                    "x-tags": [
                      "component"
                    ]
                  },
                  "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. This value is saved in the card/echeck token.",
                    "example": "000999",
                    "x-tags": [
                      "component"
                    ]
                  }
                }
              },
              "examples": {
                "Required parameters with encryptedNumber": {
                  "value": {
                    "token": "eb50a022-d6de-4244-a1e6-dcb8522b2d19",
                    "card": {
                      "cardHolderName": "John H Doe",
                      "expirationMonth": "12",
                      "expirationYear": "28",
                      "encryptedNumber": "cu3yRktaYFK2LUC6DpNK289tYDsGRCi7cO+GeG0hkeYFvT7Y8/oY5r53obMz6Q/BZ38gk2u2Ufwy8ojBcX2sfNjG5jplGTXA4NNlSIUjMFfiHe1sff1JFpThoiW/IIlifGlbWu+S1/9pqWPTzJ2+DcjwohbHzsDahhYewFhXgC8qsK0ypi/Shlp+CwRITyIvbVXESD0xz3YOTRHeZLlChvVqN8z4ZzN8nm0MXkmT1wcpYI73bH4KdnPwNU3s7XxvP/ernQP73SHHAOKSLlz4F6AEHFjJiCoXzeLF7LwEjRdxDJ0sKVXbRk3i9BGh+8Nle2VYgjpUWtk2763QkvZiQQ=="
                    }
                  }
                },
                "Required parameters with pre-existing TokenEx token": {
                  "value": {
                    "token": "eb50a022-d6de-4244-a1e6-dcb8522b2d19",
                    "card": {
                      "cardHolderName": "John H Doe",
                      "expirationMonth": "12",
                      "expirationYear": "28"
                    },
                    "tokenex": {
                      "token": "6ee140a0-05d1-4958-8325-b38a690dbb9d"
                    }
                  }
                },
                "All parameters": {
                  "value": {
                    "token": "eb50a022-d6de-4244-a1e6-dcb8522b2d19",
                    "card": {
                      "cardHolderName": "John H Doe",
                      "expirationMonth": "12",
                      "expirationYear": "28",
                      "encryptedNumber": "cu3yRktaYFK2LUC6DpNK289tYDsGRCi7cO+GeG0hkeYFvT7Y8/oY5r53obMz6Q/BZ38gk2u2Ufwy8ojBcX2sfNjG5jplGTXA4NNlSIUjMFfiHe1sff1JFpThoiW/IIlifGlbWu+S1/9pqWPTzJ2+DcjwohbHzsDahhYewFhXgC8qsK0ypi/Shlp+CwRITyIvbVXESD0xz3YOTRHeZLlChvVqN8z4ZzN8nm0MXkmT1wcpYI73bH4KdnPwNU3s7XxvP/ernQP73SHHAOKSLlz4F6AEHFjJiCoXzeLF7LwEjRdxDJ0sKVXbRk3i9BGh+8Nle2VYgjpUWtk2763QkvZiQQ==",
                      "cardType": "visa",
                      "securityCode": 927,
                      "firstSix": "479300",
                      "lastFour": "3313"
                    },
                    "tokenex": {
                      "token": "6ee140a0-05d1-4958-8325-b38a690dbb9d",
                      "firstSix": "479300",
                      "lastFour": "3313"
                    },
                    "data": {
                      "currency": "EUR",
                      "customer": {
                        "email": "jdoe@example.com",
                        "birthDate": "1990-12-05",
                        "firstName": "John",
                        "lastName": "Doe",
                        "phone": "1555555555",
                        "invoice": "IN0001",
                        "orderNumber": "210058A-1",
                        "createdAtDate": "2005-03-01",
                        "billToAddressOne": "2147 West Silverlake Drive",
                        "billToAddressTwo": "Apt 42",
                        "billToCity": "Scranton",
                        "billToState": "PA",
                        "billToPostal": "18503",
                        "billToCountry": "US",
                        "billToPhone": "1555555555",
                        "shipToAddressOne": "1725 Slough Avenue",
                        "shipToAddressTwo": "Suite 200",
                        "shipToCity": "Scranton",
                        "shipToState": "PA",
                        "shipToPostal": "18505",
                        "shipToCountry": "US",
                        "shipToPhone": "1555555555"
                      }
                    },
                    "shouldUpdateCard": true,
                    "merchantId": "000999"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "token": {
                      "title": "token",
                      "type": "object",
                      "description": "Card token information",
                      "x-tags": [
                        "object"
                      ],
                      "properties": {
                        "token": {
                          "type": "string",
                          "description": "The saved card token.",
                          "example": "6ee140a0-05d1-4958-8325-b38a690dbb9d"
                        },
                        "firstSix": {
                          "$ref": "#/paths/~1card~1v3/get/responses/200/content/application~1json/schema/properties/rows/items/properties/firstSix"
                        },
                        "lastFour": {
                          "$ref": "#/paths/~1card~1v3/get/responses/200/content/application~1json/schema/properties/rows/items/properties/lastFour"
                        },
                        "cardType": {
                          "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/cardType"
                        }
                      }
                    },
                    "card": {
                      "type": "object",
                      "description": "Card information",
                      "properties": {
                        "cardType": {
                          "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/cardType"
                        },
                        "cardHolderName": {
                          "title": "cardHolderName",
                          "type": "string",
                          "description": "The cardholder's name as it appears on the card. This value is cached in the one-time-use token.",
                          "example": "John H Doe",
                          "x-tags": [
                            "component"
                          ]
                        },
                        "expirationMonth": {
                          "title": "expirationMonth",
                          "type": "string",
                          "description": "The one-digit or two-digit month in which the card expires. The system validates that the value is between 1 and 12. This value is cached in the one-time-use token.",
                          "example": "12",
                          "x-tags": [
                            "component"
                          ],
                          "maxLength": 2,
                          "minLength": 1,
                          "pattern": "^(0[1-9]|[1-9]|1[0-2])$"
                        },
                        "expirationYear": {
                          "type": "string",
                          "title": "expirationYear",
                          "description": "The two-digit year in which the card will expire. This value is cached in the one-time-use token.",
                          "example": "28",
                          "x-tags": [
                            "component"
                          ],
                          "pattern": "^\\d{2}(\\d{2})?$",
                          "minLength": 2,
                          "maxLength": 4
                        },
                        "classification": {
                          "type": "string",
                          "title": "classification",
                          "description": "The card classification. Only returned when it is saved in the card token.",
                          "example": "business",
                          "x-tags": [
                            "component"
                          ],
                          "enum": [
                            "business",
                            "personal"
                          ]
                        },
                        "businessNumber": {
                          "title": "businessNumber",
                          "type": "string",
                          "description": "A string containing 10 digits. Only returned when it is saved in the card token.",
                          "example": "1234567890",
                          "x-tags": [
                            "component"
                          ]
                        },
                        "password": {
                          "title": "password",
                          "type": "string",
                          "description": "A string containing two digits. Only returned when it is saved in the card token.",
                          "example": "12",
                          "x-tags": [
                            "component"
                          ]
                        }
                      }
                    },
                    "cardType": {
                      "type": "string",
                      "title": "cardType",
                      "description": "The card type.",
                      "example": "visa",
                      "x-tags": [
                        "component"
                      ],
                      "enum": [
                        "amex",
                        "discover",
                        "jcb",
                        "mastercard",
                        "visa"
                      ]
                    },
                    "data": {
                      "type": "object",
                      "description": "Additional data, if provided in the request",
                      "properties": {
                        "customer": {
                          "title": "customer",
                          "type": "object",
                          "description": "Customer information returned when checking fraud or from the processing gateway, when applicable.",
                          "x-tags": [
                            "object"
                          ],
                          "properties": {
                            "firstName": {
                              "title": "firstName",
                              "type": "string",
                              "description": "The customer's first name.",
                              "example": "John",
                              "x-tags": [
                                "component"
                              ]
                            },
                            "lastName": {
                              "title": "lastName",
                              "type": "string",
                              "description": "The customer's last name.",
                              "example": "Doe",
                              "x-tags": [
                                "component"
                              ]
                            },
                            "birthDate": {
                              "title": "birthDateViewCardTokenResponse",
                              "type": "string",
                              "description": "The customer's date of birth. The format returned matches the format used in the request that [created the card token](ref:savecardtoken).",
                              "example": "1990-12-05",
                              "x-tags": [
                                "component"
                              ]
                            },
                            "email": {
                              "type": "string",
                              "title": "email",
                              "description": "The customer's email address.",
                              "example": "jdoe@example.com",
                              "x-tags": [
                                "component"
                              ]
                            },
                            "phone": {
                              "title": "phone",
                              "type": "string",
                              "description": "The customer's phone number.",
                              "example": "1555555555",
                              "x-tags": [
                                "component"
                              ]
                            },
                            "billToAddressOne": {
                              "title": "billToAddressOne",
                              "type": "string",
                              "description": "The street address on file with the card provider.",
                              "example": "2147 West Silverlake Drive",
                              "x-tags": [
                                "component"
                              ]
                            },
                            "billToAddressTwo": {
                              "title": "billToAddressTwoResponse",
                              "type": "string",
                              "description": "Additional street address information.",
                              "example": "Apt 42",
                              "x-tags": [
                                "component"
                              ]
                            },
                            "billToCity": {
                              "title": "billToCity",
                              "type": "string",
                              "description": "The city on file with the card provider.",
                              "example": "Scranton",
                              "x-tags": [
                                "component"
                              ]
                            },
                            "billToState": {
                              "type": "string",
                              "title": "billToState",
                              "description": "The state or province on file with the card provider. (If in the US, this is the [two-character state abbreviation](https://pe.usps.com/text/pub28/28apb.htm)).",
                              "example": "PA",
                              "x-tags": [
                                "component"
                              ]
                            },
                            "billToPostal": {
                              "title": "billToPostal",
                              "type": "string",
                              "description": "The postal code on file with the card provider.",
                              "example": "18503",
                              "x-tags": [
                                "component"
                              ]
                            },
                            "billToCountry": {
                              "title": "billToCountry",
                              "type": "string",
                              "description": "The [two-character (Alpha-2) ISO country code](https://www.iso.org/obp/ui/#search/code/) for the address on file with the card provider.",
                              "example": "US",
                              "x-tags": [
                                "component"
                              ]
                            },
                            "billToPhone": {
                              "title": "billToPhone",
                              "type": "string",
                              "description": "The billing phone number.",
                              "example": "1555555555",
                              "x-tags": [
                                "component"
                              ]
                            },
                            "shipToAddressOne": {
                              "title": "shipToAddressOne",
                              "type": "string",
                              "description": "The shipping address.",
                              "example": "1725 Slough Avenue",
                              "x-tags": [
                                "component"
                              ]
                            },
                            "shipToAddressTwo": {
                              "title": "shipToAddressTwo",
                              "type": "string",
                              "description": "Additional shipping address information.",
                              "example": "Suite 200",
                              "x-tags": [
                                "component"
                              ]
                            },
                            "shipToCity": {
                              "title": "shipToCity",
                              "type": "string",
                              "description": "The shipping city.",
                              "example": "Scranton",
                              "x-tags": [
                                "component"
                              ]
                            },
                            "shipToState": {
                              "title": "shipToState",
                              "type": "string",
                              "description": "The shipping state or province. (If in the US, this is the [two-character state abbreviation](https://pe.usps.com/text/pub28/28apb.htm).)",
                              "example": "PA",
                              "x-tags": [
                                "component"
                              ]
                            },
                            "shipToPostal": {
                              "title": "shipToPostal",
                              "type": "string",
                              "description": "The shipping postal code.",
                              "example": "18505",
                              "x-tags": [
                                "component"
                              ]
                            },
                            "shipToCountry": {
                              "title": "shipToCountry",
                              "type": "string",
                              "description": "The [two-character (Alpha-2) ISO](https://www.iso.org/obp/ui/#search/code/) shipping country code.",
                              "example": "US",
                              "x-tags": [
                                "component"
                              ]
                            },
                            "shipToPhone": {
                              "title": "shipToPhone",
                              "type": "string",
                              "description": "The shipping phone number.",
                              "example": "1555555555",
                              "x-tags": [
                                "component"
                              ]
                            }
                          }
                        }
                      }
                    },
                    "merchantId": {
                      "title": "merchantIdCard",
                      "type": "string",
                      "description": "The merchant account under which the card token is saved.",
                      "example": "000999",
                      "x-tags": [
                        "component"
                      ]
                    },
                    "shouldUpdateCard": {
                      "title": "shouldUpdateCard",
                      "type": "boolean",
                      "description": "The card's account updater [enrollment tag](doc:checking-a-cards-enrollment-tag).\n\nWhen the value is `true`, the card token was tagged for being sent to the account updater provider.\n\n<!-- theme:info -->\n> #### Note\n> The card is not registered until the merchant account is enrolled. For more information, see the [Enrollment tag table](doc:checking-a-cards-enrollment-tag#enrollment-tag-table).",
                      "default": true,
                      "x-tags": [
                        "component"
                      ]
                    },
                    "kountResponse": {
                      "type": "object",
                      "description": "Fraud data and rules",
                      "properties": {
                        "status": {
                          "type": "string",
                          "title": "status",
                          "description": "Will be one of four possible statuses: `success`, `review`, `decline`, or `error`. See [Kount response status](doc:understanding-the-kount-response) in Guides for more information.",
                          "x-tags": [
                            "component"
                          ],
                          "example": "success"
                        },
                        "rules": {
                          "title": "rules",
                          "type": "string",
                          "description": "Kount-specific information, including rules triggered. See our [Fraud tutorial](doc:understanding-the-kount-response) in Guides for more information.",
                          "example": "{\"VERS\":\"0630\",\"MODE\":\"Q\",\"TRAN\":\"7V7D0V1BMKPX\",\"MERC\":\"717000\",\"SESS\":\"3bbb89edcd5742f18e2502ebb2bbb18b\",\"ORDR\":\"14233\",\"AUTO\":\"A\",\"SCOR\":\"29\",\"GEOX\":\"US\",\"BRND\":\"VISA\",\"REGN\":null,\"NETW\":\"N\",\"KAPT\":\"N\",\"CARDS\":\"1\",\"DEVICES\":\"1\",\"EMAILS\":\"1\",\"VELO\":\"0\",\"VMAX\":\"0\",\"SITE\":\"DEFAULT\",\"DEVICE_LAYERS\":\"....\",\"FINGERPRINT\":null,\"TIMEZONE\":null,\"LOCALTIME\":\" \",\"REGION\":null,\"COUNTRY\":null,\"PROXY\":null,\"JAVASCRIPT\":null,\"FLASH\":null,\"COOKIES\":null,\"HTTP_COUNTRY\":null,\"LANGUAGE\":null,\"MOBILE_DEVICE\":null,\"MOBILE_TYPE\":null,\"MOBILE_FORWARDER\":null,\"VOICE_DEVICE\":null,\"PC_REMOTE\":null,\"RULES_TRIGGERED\":0,\"COUNTERS_TRIGGERED\":0,\"REASON_CODE\":null,\"MASTERCARD\":\"\",\"DDFS\":null,\"DSR\":null,\"UAS\":null,\"BROWSER\":null,\"OS\":null,\"PIP_IPAD\":null,\"PIP_LAT\":null,\"PIP_LON\":null,\"PIP_COUNTRY\":null,\"PIP_REGION\":null,\"PIP_CITY\":null,\"PIP_ORG\":null,\"IP_IPAD\":null,\"IP_LAT\":null,\"IP_LON\":null,\"IP_COUNTRY\":null,\"IP_REGION\":null,\"IP_CITY\":null,\"IP_ORG\":null,\"WARNING_COUNT\":0}",
                          "x-tags": [
                            "component"
                          ]
                        }
                      }
                    },
                    "avsResults": {
                      "type": "object",
                      "description": "If a value for `verifyAvs` was specified in the request for a one-time use token, then the Save card token endpoint includes this object in the response. For information about interpreting the response, see the [Enabling the Address Verification Service](doc:enabling-the-address-verification-service) topic in Guides.",
                      "properties": {
                        "error": {
                          "type": "boolean",
                          "title": "error",
                          "description": "Specifies whether the `verifyAvs` check succeeded or failed. A value of `false` indicates that there was no error in processing the check (for either `matchAddress` or `matchPostal`). A value of `true` indicates that a problem occured when doing the check, but the card token was still saved.",
                          "x-tags": [
                            "component"
                          ],
                          "example": "false"
                        },
                        "matchAddress": {
                          "type": "boolean",
                          "title": "matchAddress",
                          "description": "The results of the US-based address check. The result is `true` when the address provided matches the address on file with the card issuer. \n\n(In this case, 'address' refers to the street address portion of the billing address. For example, if the address provided were `123 Sesame St. Manhattan, NY 10128`, matchAddress would compare `123 Sesame St.` with the address on file.)",
                          "x-tags": [
                            "component"
                          ],
                          "example": "true"
                        },
                        "matchPostal ": {
                          "type": "boolean",
                          "title": "matchPostal",
                          "description": "The results of the US-based postal code check. The result is `true` when the postal code provided matches the postal code on file with the card issuer.\n\n(For example, if the address provided were `123 Sesame St. Manhattan, NY 10128`, matchPostal would compare `10128` with the postal code on file.)",
                          "x-tags": [
                            "component"
                          ],
                          "example": "true"
                        },
                        "gatewayMessage": {
                          "type": "object",
                          "description": "Information from the verification provider about the `verifyAvs` request.",
                          "properties": {
                            "avsresponse": {
                              "type": "string",
                              "description": "The code provided by the verification provider. For more information about the response, see the [Understanding the AVS response](doc:understanding-the-avs-response) topic in Guides.",
                              "example": "[gateway response]"
                            },
                            "message": {
                              "type": "string",
                              "description": "The message received from the verification provider. For more information about this response, see the [Understanding the AVS response](doc:understanding-the-avs-response) topic in Guides.",
                              "example": "[gateway message]"
                            }
                          }
                        }
                      }
                    },
                    "cvcResults": {
                      "type": "object",
                      "description": "If `verifyCvc` was specified in the request for a one-time use token, then the Save card token endpoint includes this object in the response.",
                      "properties": {
                        "matchCvv": {
                          "type": "boolean",
                          "title": "matchCVV",
                          "description": "Specifies whether the security code verification check process completed. If the security code check was successful, the response is `true`. If this is `false` or this parameter is not returned, then there was a problem. A value of `false` indicates that the verification check failed and the card token was not saved.",
                          "x-tags": [
                            "component"
                          ],
                          "example": false
                        },
                        "error": {
                          "type": "boolean",
                          "title": "error",
                          "description": "Specifies whether the `verifyCvc` check succeeded or failed. A value of `false` indicates that there was no error in processing the check (whether the `matchCvv` was true or false). A value of `true` indicates that a problem occured when doing the check, but the card token was still saved.",
                          "x-tags": [
                            "component"
                          ],
                          "example": "false"
                        },
                        "gatewayMessage": {
                          "type": "object",
                          "description": "Information from the verification provider about the `verifyCvc` request.",
                          "properties": {
                            "cvvresponse": {
                              "type": "string",
                              "enum": [
                                "M",
                                "N",
                                "P",
                                "S",
                                "U",
                                "X"
                              ],
                              "description": "The code provided by the verification provider. This may be an M, N, P, S, U, or X. A response of `M` indicates that the check of the security code was successful and it is valid for the card. For more information about these values, see the [Handling security code verification failures](doc:handling-security-code-verification-failures) topic in Guides.",
                              "example": "S"
                            },
                            "message": {
                              "type": "string",
                              "description": "The message received from the verification provider. For more information about possible strings, see the [Handling security code verification failures](doc:handling-security-code-verification-failures) topic in Guides.",
                              "example": "Merchant has indicated that CVV2/CVC2 is not present on card"
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Example response": {
                    "value": {
                      "token": {
                        "token": "6ee140a0-05d1-4958-8325-b38a690dbb9d",
                        "firstSix": "479300",
                        "lastFour": "3313",
                        "cardType": "visa"
                      },
                      "card": {
                        "cardType": "visa",
                        "cardHolderName": "John H Doe",
                        "expirationMonth": "12",
                        "expirationYear": "28",
                        "classification": "business",
                        "businessNumber": "1234567890",
                        "password": "12"
                      },
                      "cardType": "visa",
                      "data": {
                        "customer": {
                          "email": "jdoe@example.com",
                          "birthDate": "1990-12-05",
                          "firstName": "John",
                          "lastName": "Doe",
                          "phone": "1555555555",
                          "billToAddressOne": "2147 West Silverlake Drive",
                          "billToAddressTwo": "Apt 42",
                          "billToCity": "Scranton",
                          "billToState": "PA",
                          "billToPostal": "18503",
                          "billToCountry": "US",
                          "billToPhone": "1555555555",
                          "shipToAddressOne": "1725 Slough Avenue",
                          "shipToAddressTwo": "Suite 200",
                          "shipToCity": "Scranton",
                          "shipToState": "PA",
                          "shipToPostal": "18505",
                          "shipToCountry": "US",
                          "shipToPhone": "1555555555"
                        }
                      },
                      "merchantId": "000999",
                      "shouldUpdateCard": true,
                      "kountResponse": {
                        "status": "success",
                        "rules": "{\"VERS\":\"0630\",\"MODE\":\"Q\",\"TRAN\":\"7V7D0V1BMKPX\",\"MERC\":\"717000\",\"SESS\":\"3bbb89edcd5742f18e2502ebb2bbb18b\",\"ORDR\":\"14233\",\"AUTO\":\"A\",\"SCOR\":\"29\",\"GEOX\":\"US\",\"BRND\":\"VISA\",\"REGN\":null,\"NETW\":\"N\",\"KAPT\":\"N\",\"CARDS\":\"1\",\"DEVICES\":\"1\",\"EMAILS\":\"1\",\"VELO\":\"0\",\"VMAX\":\"0\",\"SITE\":\"DEFAULT\",\"DEVICE_LAYERS\":\"....\",\"FINGERPRINT\":null,\"TIMEZONE\":null,\"LOCALTIME\":\" \",\"REGION\":null,\"COUNTRY\":null,\"PROXY\":null,\"JAVASCRIPT\":null,\"FLASH\":null,\"COOKIES\":null,\"HTTP_COUNTRY\":null,\"LANGUAGE\":null,\"MOBILE_DEVICE\":null,\"MOBILE_TYPE\":null,\"MOBILE_FORWARDER\":null,\"VOICE_DEVICE\":null,\"PC_REMOTE\":null,\"RULES_TRIGGERED\":0,\"COUNTERS_TRIGGERED\":0,\"REASON_CODE\":null,\"MASTERCARD\":\"\",\"DDFS\":null,\"DSR\":null,\"UAS\":null,\"BROWSER\":null,\"OS\":null,\"PIP_IPAD\":null,\"PIP_LAT\":null,\"PIP_LON\":null,\"PIP_COUNTRY\":null,\"PIP_REGION\":null,\"PIP_CITY\":null,\"PIP_ORG\":null,\"IP_IPAD\":null,\"IP_LAT\":null,\"IP_LON\":null,\"IP_COUNTRY\":null,\"IP_REGION\":null,\"IP_CITY\":null,\"IP_ORG\":null,\"WARNING_COUNT\":0}"
                      },
                      "avsResults": {
                        "error": "false",
                        "matchAddress": "true",
                        "matchPostal ": "true",
                        "gatewayMessage": {
                          "avsresponse": "[gateway response]",
                          "message": "[gateway message]"
                        }
                      },
                      "cvcResults": {
                        "matchCvv": false,
                        "error": "false",
                        "gatewayMessage": {
                          "cvvresponse": "M",
                          "message": "Merchant has indicated that CVV2/CVC2 is not present on card"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "",
                  "properties": {
                    "error": {
                      "type": "number",
                      "description": "The Nexio error code. For an HTTP status code of 400, this value is 437."
                    },
                    "message": {
                      "type": "string",
                      "description": "The message associated with the error. For an HTTP status code of 400, this message will be \"CVV2/CVC2 no match\"."
                    },
                    "cvcResults": {
                      "type": "object",
                      "description": "The results of the verification of the card security code.",
                      "properties": {
                        "matchCvv": {
                          "type": "boolean",
                          "description": "Specifies whether the CVC verification check process completed. For an HTTP status code, this value will be false. A value of false indicates that the verification check failed and the card token was not saved."
                        },
                        "error": {
                          "type": "boolean",
                          "description": "Specifies whether the verifyCvc check succeeded or failed. A value of `false` indicates that there was no error in processing the verification check, but that the given security code was invalid for that card."
                        },
                        "gatewayMessage": {
                          "type": "object",
                          "description": "Error message from the verification provider.",
                          "properties": {
                            "cvvresponse": {
                              "type": "string",
                              "description": "The code provided by the verification provider that is associated with the error. For an HTTP status code of 400, this value will be `N`. For more information about these values, see the [Handling security code verification failures](doc:handling-security-code-verification-failures) topic in Guides."
                            },
                            "message": {
                              "type": "string",
                              "description": "The error message associated with the cvvresponse. For an HTTP status code of 400, this will be \"CVV2/CVC2 no match\"."
                            }
                          }
                        }
                      }
                    },
                    "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. This value is cached in the one-time-use token.",
                      "example": "000999",
                      "x-tags": [
                        "component"
                      ]
                    }
                  }
                },
                "examples": {
                  "Example response": {
                    "value": {
                      "error": 0,
                      "message": "string",
                      "cvcResults": {
                        "matchCvv": true,
                        "error": true,
                        "gatewayMessage": {
                          "cvvresponse": "string",
                          "message": "string"
                        }
                      },
                      "merchantId": "000999"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          }
        },
        "summary": "Save card token"
      }
    },
    "/pay/v3/process": {
      "post": {
        "description": "Allows you to process a card transaction in any of the following situations: \n\n- An initial transaction that uses a saved card token.\n- An initial transaction that uses the full (raw) card information (where supported).\n- A subsequent transaction that uses a saved card token.\n- A subsequent transaction that uses the full (raw) card information (where supported).\n- A subsequent transaction that uses a saved terminal token.\n\nFor more information about how to implement this endpoint, see the recipes (listed below) or the [Creating a card checkout page with your own form](doc:creating-a-card-checkout-page-with-your-own-form), [Running a card transaction using full card information](doc:running-a-card-transaction-using-raw-card-information), or [Running a card transaction with the API](doc:running-a-card-transaction-with-the-api) topic.\n\nAside from the fields marked required here, the gateway you are using may require additional fields. For information on gateway-specific required fields, see the [Connections](doc:connections) documentation.\n\nFor the 3DS workflow, the system returns a `redirectUrl` instead of the standard response, along with an `asyncTraceId` that you can use with the [View transaction async status](ref:viewtransactionasyncstatus) endpoint for tracking progress and status. For a tutorial, see [Using 3DS to run transactions](doc:using-3ds-to-run-transactions).\n\n<!-- theme: warning -->\n> 🛑 Important\n>\n> Parameters passed with a process request override any data points that are saved with the card token.\n> \n> For example, if the value for `data.customer.billToAddressOne` is saved with the card token as `729 Jay Road`, but the value for that field is passed with the process request as `2147 West Silverlake Drive`, the system uses the address at `Silverlake Drive`.\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`\n>\n> Provide the following as body parameters, depending on which payment flow you are using:\n> - **For an initial or subsequent transaction with a saved card token:** Include at least the `data.amount`, `processingOptions.paymentType`, and `tokenex.token`.\n> - **For a subsequent transaction with a saved terminal token:** Include at least the `data.amount`, `processingOptions.paymentType`, and `terminal.token`.\n> - **With the full card information:** Include at least the `data.amount`, `processingOptions.paymentType`, `card.pan`, `card.expirationYear`, and `card.expirationMonth`.<br/>**Note:** Sending full card information may increase your PCI scope.\n> - **For a subsequent transaction with the full card information:** Include at least the `data.amount`, `processingOptions.paymentType`, `card.pan`, `card.expirationYear`, `card.expirationMonth`, and `recurringId`.\n>\n> For information about test card numbers and values you can use, see the documentation for the specific [gateway/connection integration guide](doc:connections) you want to use or, if you are testing Account Updater, see the [Test cards for account updater](doc:checking-a-cards-enrollment-tag#test-cards-for-account-updater) section of the \"Checking a card's enrollment tag\" topic.\n\n\n<div style=\"display:none;\">\n\n## Request parameters\n- data\n- data.amount\n- data.surcharge\n- data.currency\n- data.allowedCardTypes\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.customerRef\n- data.customer.orderNumber\n- data.customer.orderDate\n- data.customer.invoice\n- data.customer.firstName\n- data.customer.lastName\n- data.customer.birthDate\n- data.customer.nationalIdentificationNumber\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.createdAtDate\n- data.customer.email\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- data.description\n- data.descriptor\n- data.descriptor.name\n- data.descriptor.address\n- data.descriptor.city\n- data.descriptor.state\n- data.descriptor.postal\n- data.descriptor.country\n- data.descriptor.phone\n- data.descriptor.url\n- data.descriptor.merchantId\n- data.descriptor.mcc\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- paymentMethod\n- tokenex\n- tokenex.token\n- tokenex.firstSix\n- tokenex.lastFour\n- card\n- card.cardType\n- card.cardHolderName\n- card.encryptedNumber\n- card.expirationMonth\n- card.expirationYear\n- card.securityCode\n- card.firstSix\n- card.lastFour\n- card.classification\n- card.businessNumber\n- card.password\n- card.pan\n- recurringId\n- merchantId\n- processingOptions\n- processingOptions.merchantId\n- processingOptions.check3ds\n- processingOptions.paymentType\n- processingOptions.customerRedirectUrl\n- processingOptions.checkFraud\n- processingOptions.paymentOptionTag\n- processingOptions.retryOnSoftDecline\n- processingOptions.shouldUseFingerprint\n- processingOptions.verboseResponse\n- clientIp\n- isAuthOnly\n- installment\n- installment.period\n- external3ds\n- external3ds.eci\n- external3ds.cavv\n- external3ds.xid\n- external3ds.version\n- external3ds.enrolled\n- external3ds.pAResStatus\n- external3ds.commerceIndicator\n- external3ds.ucafAuthenticationData\n- external3ds.ucafCollectionIndicator\n- external3ds.directoryServerTransactionId\n\n## Response parameters\n- id\n- merchantId\n- authCode\n- amount\n- currency\n- transactionDate\n- transactionStatus\n- transactionType\n- shouldUpdateCard\n- card\n- card.cardHolder\n- card.expirationMonth\n- card.expirationYear\n- card.cardType\n- card.cardNumber\n- card.firstSix\n- card.lastFour\n- token\n- token.token\n- token.firstSix\n- token.lastFour\n- token.cardType\n- data\n- data.amount\n- data.currency\n- data.settlementCurrency\n- data.customer\n- data.customer.customerRef\n- data.customer.orderNumber\n- data.customer.orderDate\n- data.customer.invoice\n- data.customer.firstName\n- data.customer.lastName\n- data.customer.birthDate\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.email\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.customer.createdAt\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.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.customFields\n- data.customFields.exampleKey\n- data.nsu\n- kountResponse\n- kountResponse.status\n- kountResponse.rules\n- installment\n- installment.period\n- gatewayResponse\n- gatewayResponse.gatewayName\n- gatewayResponse.refNumber\n- recurringData\n- recurringData.recurringId\n- recurringData.recurringIdType\n- status\n- message\n- redirectUrl\n- asyncTraceId\n\n</div>",
        "operationId": "RunCardTransaction",
        "tags": [
          "Ecommerce"
        ],
        "security": [
          {
            "Basic_Authentication": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "title": "Run transaction using saved card token",
                    "type": "object",
                    "x-tags": [
                      "object"
                    ],
                    "description": "To run a transaction by using a saved card token, include at least an amount, currency (the system assumes USD if you don't specify it), payment type, and tokenex.token (the saved card token) as body parameters.",
                    "required": [
                      "data",
                      "processingOptions",
                      "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"
                          },
                          "surcharge": {
                            "$ref": "#/paths/~1pay~1v3~1process/post/responses/200/content/application~1json/schema/oneOf/0/properties/surcharge"
                          },
                          "currency": {
                            "$ref": "#/paths/~1pay~1v3~1capture/post/responses/200/content/application~1json/schema/properties/currency"
                          },
                          "allowedCardTypes": {
                            "$ref": "#/paths/~1pay~1v3~1token/post/requestBody/content/application~1json/schema/oneOf/0/properties/data/properties/allowedCardTypes"
                          },
                          "customer": {
                            "$ref": "#/paths/~1pay~1v3~1token/post/requestBody/content/application~1json/schema/oneOf/0/properties/data/properties/customer"
                          },
                          "cart": {
                            "$ref": "#/paths/~1pay~1v3~1processECheck/post/requestBody/content/application~1json/schema/properties/data/properties/cart"
                          },
                          "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"
                          },
                          "descriptor": {
                            "$ref": "#/paths/~1apm~1v3~1token/post/requestBody/content/application~1json/schema/properties/data/properties/descriptor"
                          },
                          "lodging": {
                            "$ref": "#/paths/~1pay~1v3~1processECheck/post/requestBody/content/application~1json/schema/properties/data/properties/lodging"
                          }
                        },
                        "required": [
                          "amount"
                        ]
                      },
                      "processingOptions": {
                        "title": "processingOptions",
                        "type": "object",
                        "description": "Processing Options",
                        "x-tags": [
                          "object"
                        ],
                        "required": [
                          "paymentType"
                        ],
                        "properties": {
                          "paymentType": {
                            "$ref": "#/paths/~1pay~1v3~1token/post/requestBody/content/application~1json/schema/oneOf/2/properties/processingOptions/properties/paymentType"
                          },
                          "paymentOptionTag": {
                            "$ref": "#/paths/~1apm~1v3~1token/post/requestBody/content/application~1json/schema/properties/processingOptions/properties/paymentOptionTag"
                          },
                          "retryOnSoftDecline": {
                            "$ref": "#/paths/~1pay~1v3~1token/post/requestBody/content/application~1json/schema/oneOf/2/properties/processingOptions/properties/retryOnSoftDecline"
                          },
                          "checkFraud": {
                            "$ref": "#/paths/~1pay~1v3~1token/post/requestBody/content/application~1json/schema/oneOf/0/properties/processingOptions/properties/checkFraud"
                          },
                          "shouldUseFingerprint": {
                            "$ref": "#/paths/~1pay~1v3~1token/post/requestBody/content/application~1json/schema/oneOf/2/properties/processingOptions/properties/shouldUseFingerprint"
                          },
                          "check3ds": {
                            "$ref": "#/paths/~1pay~1v3~1token/post/requestBody/content/application~1json/schema/oneOf/2/properties/processingOptions/properties/check3ds"
                          },
                          "customerRedirectUrl": {
                            "$ref": "#/paths/~1pay~1v3~1token/post/requestBody/content/application~1json/schema/oneOf/2/properties/processingOptions/properties/customerRedirectUrl"
                          },
                          "merchantId": {
                            "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/400/content/application~1json/schema/properties/merchantId"
                          },
                          "verboseResponse": {
                            "$ref": "#/paths/~1pay~1v3~1processECheck/post/requestBody/content/application~1json/schema/properties/processingOptions/properties/verboseResponse"
                          }
                        }
                      },
                      "tokenex": {
                        "title": "tokenex",
                        "type": "object",
                        "description": "A previously saved [card token](ref:savecardtoken). Card 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": {
                            "$ref": "#/paths/~1pay~1v3~1vault~1card~1%7BcardToken%7D/get/responses/200/content/application~1json/schema/properties/tokenex/properties/token"
                          },
                          "firstSix": {
                            "$ref": "#/paths/~1pay~1v3~1vault~1card~1%7BcardToken%7D/get/responses/200/content/application~1json/schema/properties/tokenex/properties/firstSix"
                          },
                          "lastFour": {
                            "$ref": "#/paths/~1pay~1v3~1vault~1card~1%7BcardToken%7D/get/responses/200/content/application~1json/schema/properties/tokenex/properties/lastFour"
                          }
                        },
                        "required": [
                          "token"
                        ]
                      },
                      "card": {
                        "title": "card",
                        "type": "object",
                        "description": "Card information",
                        "x-tags": [
                          "object"
                        ],
                        "properties": {
                          "cardHolderName": {
                            "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/card/properties/cardHolderName"
                          },
                          "expirationMonth": {
                            "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/card/properties/expirationMonth"
                          },
                          "expirationYear": {
                            "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/card/properties/expirationYear"
                          },
                          "cardType": {
                            "$ref": "#/paths/~1pay~1v3~1saveCard/post/requestBody/content/application~1json/schema/properties/card/properties/cardType"
                          },
                          "securityCode": {
                            "$ref": "#/paths/~1pay~1v3~1saveCard/post/requestBody/content/application~1json/schema/properties/card/properties/securityCode"
                          },
                          "classification": {
                            "$ref": "#/paths/~1pay~1v3~1token/post/requestBody/content/application~1json/schema/oneOf/0/properties/card/properties/classification"
                          },
                          "businessNumber": {
                            "$ref": "#/paths/~1pay~1v3~1token/post/requestBody/content/application~1json/schema/oneOf/0/properties/card/properties/businessNumber"
                          },
                          "password": {
                            "$ref": "#/paths/~1pay~1v3~1token/post/requestBody/content/application~1json/schema/oneOf/0/properties/card/properties/password"
                          }
                        }
                      },
                      "clientIp": {
                        "$ref": "#/paths/~1pay~1v3~1processFromTerminal/post/requestBody/content/application~1json/schema/properties/clientIp"
                      },
                      "isAuthOnly": {
                        "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/isAuthOnly"
                      },
                      "paymentMethod": {
                        "type": "string",
                        "title": "paymentMethod",
                        "description": "Specifies the payment method to use. Set to `card` to run card transactions or `echeck` to run echeck transactions.",
                        "x-tags": [
                          "component"
                        ],
                        "default": "card",
                        "enum": [
                          "card",
                          "echeck"
                        ]
                      },
                      "installment": {
                        "$ref": "#/paths/~1pay~1v3~1token/post/requestBody/content/application~1json/schema/oneOf/2/properties/installment"
                      },
                      "external3ds": {
                        "title": "external3ds",
                        "type": "object",
                        "x-tags": [
                          "object"
                        ],
                        "description": "Send this object and parameters when using a third party for 3DS. Note that if you send this object and further 3DS authentication is required, Nexio errors and you will be required to re-authenticate and re-send the transaction.",
                        "properties": {
                          "eci": {
                            "title": "eci",
                            "type": "string",
                            "x-tags": [
                              "component"
                            ],
                            "example": "05",
                            "description": "**Required when using third-party 3DS provider.** Electronic Commerce Indicator (ECI) is a value returned by directory servers indicating the outcome of authentication attempted on transactions enforced by 3DS. Send the value for ECI that you got back from your third-party 3DS provider.\n\n**Possible values:**\n- 02 or 05 - Fully Authenticated Transaction\n- 01 or 06 - Attempted Authentication Transaction\n- 00 or 07 - Non 3-D Secure Transaction"
                          },
                          "cavv": {
                            "title": "cavv",
                            "type": "string",
                            "x-tags": [
                              "component"
                            ],
                            "example": "MzM2OGI2ZjkwYjYwY2FjODQ3ZWU=",
                            "description": "**Conditionally required.** The Cardholder Authentication Verification Value (CAVV) signifies that the transaction has been successfully authenticated. You must include either this parameter or `xid`, depending on the card brand.\n\nYou should pass the value returned from the third-party 3DS provider.",
                            "maxLength": 48
                          },
                          "xid": {
                            "title": "xid",
                            "type": "string",
                            "x-tags": [
                              "component"
                            ],
                            "example": "ZGUzNzgwYzQxM2ZlMWM0MzVkMjc=",
                            "description": "**Conditionally required.** Transaction identifier resulting from authentication processing. You must include either this parameter or `cavv`, depending on the card brand.\n\nYou should pass the value returned from the third-party 3DS provider.",
                            "maxLength": 40
                          },
                          "version": {
                            "title": "version",
                            "type": "string",
                            "x-tags": [
                              "component"
                            ],
                            "example": "2.2.0",
                            "description": "This parameter contains the 3DS version that was used to process the transaction. \n\nThis parameter is required by some connections or gateways. To maximize the likelihood of transaction approval, always send the value for `version` returned from the third-party 3DS provider, even if it is not required."
                          },
                          "enrolled": {
                            "title": "enrolled",
                            "type": "string",
                            "x-tags": [
                              "component"
                            ],
                            "example": "Y",
                            "description": "This value indicates the status of the customer for authentication eligibility. \n\nThis parameter is required by some connections or gateways. To maximize the likelihood of transaction approval, always send the value for `enrolled` returned from the third-party 3DS provider, even if it is not required.\n\nFor more information about possible values, see the documentation for your third-party 3DS provider."
                          },
                          "pAResStatus": {
                            "title": "pAResStatus",
                            "type": "string",
                            "x-tags": [
                              "component"
                            ],
                            "example": "Y",
                            "description": "This value indicates Transaction status result identifier. \n\nThis parameter is required by some connections or gateways. To maximize the likelihood of transaction approval, always send the value for `pAResStatus` returned from the third-party 3DS provider, even if it is not required.\n\nFor more information about possible values, see the documentation for your third-party 3DS provider."
                          },
                          "commerceIndicator": {
                            "title": "commerceIndicator",
                            "type": "string",
                            "x-tags": [
                              "component"
                            ],
                            "example": "spa",
                            "description": "Identifies the type of transaction. \n\nWhen requesting authorization through Nexio, this parameter is required for authentication previously performed with Mastercard Identity Check. \n\nCurrently supported for:\n\n- [Cybersource](doc:cybersource-integration-guide)\n\nSee [Cybersource documentation](https://developer.cybersource.com/docs/cybs/en-us/apifields/reference/all/rest/api-fields/processing-info/processing-info-commerce-ind.html) for information about supported values.\n\nSend the value for `commerceIndicator` that you got back from your third-party 3DS provider.\n",
                            "maxLength": 20
                          },
                          "ucafAuthenticationData": {
                            "title": "ucafAuthenticationData",
                            "type": "string",
                            "x-tags": [
                              "component"
                            ],
                            "example": "EHuWW9PiBkWvqE5juRwDzAUFBAk",
                            "description": "Universal cardholder authentication field (UCAF) data.\n\nWhen requesting authorization through Nexio, this parameter is required for authentication previously performed with Mastercard Identity Check.\n\nCurrently supported for:\n\n- [Cybersource](doc:cybersource-integration-guide]\n\nSend the value for `ucafAuthenticationData` that you got back from your third-party 3DS provider.\n",
                            "maxLength": 32
                          },
                          "ucafCollectionIndicator": {
                            "title": "ucafCollectionIndicator",
                            "type": "string",
                            "x-tags": [
                              "component"
                            ],
                            "example": "2",
                            "description": "Universal cardholder authentication field (UCAF) collection indicator.\n\nWhen requesting authorization through Nexio, this parameter is required for authentication previously performed with Mastercard Identity Check.\n\nCurrently supported for:\n\n- [Cybersource](doc:cybersource-integration-guide]\n\nRepresents the last digit of the raw ECI value in the external 3D Secure authentication response.\n\nFor example, if the raw ECI returned is 02, set this value to 2.\n\n**Possible values:**\n\n- 0\n- 1\n- 2\n- 5\n- 6\n- 7\n\nSee [Cybersource documentation](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/so/api-fields/ucaf-collection-indicator.html) for descriptions of possible values.\n\nSend the value for `ucafCollectionIndicator` that you got back from your third-party 3DS provider.\n",
                            "maxLength": 1,
                            "minLength": 1
                          },
                          "directoryServerTransactionId": {
                            "title": "directoryServerTransactionId",
                            "type": "string",
                            "x-tags": [
                              "component"
                            ],
                            "example": "f38e6948-5388-41a6-bca4-b49723c19437",
                            "description": "A unique transaction identifier assigned by the Directory Server to identify a transaction.\n\nWhen requesting authorization through Nexio, this parameter is required for authentication previously performed with Mastercard Identity Check.\n\nCurrently supported for:\n\n- [Cybersource](doc:cybersource-integration-guide]\n\nSend the value for `directoryServerTransactionId` that you got back from your third-party 3DS provider.\n",
                            "maxLength": 36
                          }
                        }
                      }
                    }
                  },
                  {
                    "title": "Run initial transaction using full card number",
                    "type": "object",
                    "x-tags": [
                      "object"
                    ],
                    "description": "To run an initial transaction by using a full card number, include at least an amount, currency (the system assumes USD if you don't specify it), payment type, card number, and expiration month and year as body parameters.\n\nThe following gateways support running the transaction using a full card number:\n- [Checkout.com](doc:checkoutcom-integration-guide)\n- [Cybersource](doc:cybersource-integration-guide)\n- [Nexio mock gateway](doc:nexio-gateway-integration-guide)\n- [NMI](doc:nmi-integration-guide)\n- [PayU Asia Pacific (via PaymentsOS)](doc:payu-asia-pacific-via-paymentsos-integration-guide)\n- [USAePay](doc:usaepay-integration-guide)",
                    "required": [
                      "data",
                      "card",
                      "processingOptions"
                    ],
                    "properties": {
                      "data": {
                        "$ref": "#/paths/~1pay~1v3~1process/post/requestBody/content/application~1json/schema/oneOf/0/properties/data"
                      },
                      "card": {
                        "title": "card",
                        "type": "object",
                        "description": "Card information",
                        "x-tags": [
                          "object"
                        ],
                        "properties": {
                          "pan": {
                            "type": "number",
                            "title": "pan",
                            "description": "The full card number. Either this or the `tokenex.token` parameter is required. Some gateways or connections may not support the submission of full cards. Contact [Integrations Support](https://docs.nexiopay.com/page/contact-us) for more information. \n\nYou can send this value as a number or as a string.\n\nFor information about test card numbers and values you can use, see the documentation for the specific [gateway/connection integration guide](doc:connections) or, if you are testing Account Updater, see the [Test cards for account updater](doc:checking-a-cards-enrollment-tag#test-cards-for-account-updater) section of the \"Checking a card's enrollment tag\" topic.\n\n<!-- theme: warning -->\n> 🛑 Important\n>\n> Sending full card numbers could increase PCI scope.",
                            "example": "4111111111111111",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "expirationMonth": {
                            "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/card/properties/expirationMonth"
                          },
                          "expirationYear": {
                            "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/card/properties/expirationYear"
                          },
                          "cardHolderName": {
                            "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/card/properties/cardHolderName"
                          },
                          "cardType": {
                            "$ref": "#/paths/~1pay~1v3~1saveCard/post/requestBody/content/application~1json/schema/properties/card/properties/cardType"
                          },
                          "securityCode": {
                            "$ref": "#/paths/~1pay~1v3~1saveCard/post/requestBody/content/application~1json/schema/properties/card/properties/securityCode"
                          },
                          "classification": {
                            "$ref": "#/paths/~1pay~1v3~1token/post/requestBody/content/application~1json/schema/oneOf/0/properties/card/properties/classification"
                          },
                          "businessNumber": {
                            "$ref": "#/paths/~1pay~1v3~1token/post/requestBody/content/application~1json/schema/oneOf/0/properties/card/properties/businessNumber"
                          },
                          "password": {
                            "$ref": "#/paths/~1pay~1v3~1token/post/requestBody/content/application~1json/schema/oneOf/0/properties/card/properties/password"
                          }
                        },
                        "required": [
                          "pan",
                          "expirationMonth",
                          "expirationYear"
                        ]
                      },
                      "processingOptions": {
                        "$ref": "#/paths/~1pay~1v3~1process/post/requestBody/content/application~1json/schema/oneOf/0/properties/processingOptions"
                      },
                      "clientIp": {
                        "$ref": "#/paths/~1pay~1v3~1processFromTerminal/post/requestBody/content/application~1json/schema/properties/clientIp"
                      },
                      "isAuthOnly": {
                        "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/isAuthOnly"
                      },
                      "paymentMethod": {
                        "$ref": "#/paths/~1pay~1v3~1process/post/requestBody/content/application~1json/schema/oneOf/0/properties/paymentMethod"
                      },
                      "installment": {
                        "$ref": "#/paths/~1pay~1v3~1token/post/requestBody/content/application~1json/schema/oneOf/2/properties/installment"
                      },
                      "external3ds": {
                        "$ref": "#/paths/~1pay~1v3~1process/post/requestBody/content/application~1json/schema/oneOf/0/properties/external3ds"
                      }
                    }
                  },
                  {
                    "title": "Run subsequent transaction using full card number",
                    "type": "object",
                    "x-tags": [
                      "object"
                    ],
                    "description": "To run a subsequent transaction (after the initial) by using a full card number, include at least the following as body parameters: an amount, currency (the system assumes USD if you don't specify it), payment type, card number, and expiration month and year, and the recurring ID (returned in the response from the initial full card transaction).\n\nThe following gateways support running a recurring transaction using a full card number:\n- [Checkout.com](doc:checkoutcom-integration-guide)\n- [Cybersource](doc:cybersource-integration-guide)\n- [Nexio mock gateway](doc:nexio-gateway-integration-guide)\n- [NMI](doc:nmi-integration-guide)\n- [PayU Asia Pacific (via PaymentsOS)](doc:payu-asia-pacific-via-paymentsos-integration-guide)\n- [USAePay](doc:usaepay-integration-guide)",
                    "required": [
                      "data",
                      "card",
                      "recurringId",
                      "processingOptions"
                    ],
                    "properties": {
                      "data": {
                        "$ref": "#/paths/~1pay~1v3~1process/post/requestBody/content/application~1json/schema/oneOf/0/properties/data"
                      },
                      "card": {
                        "$ref": "#/paths/~1pay~1v3~1process/post/requestBody/content/application~1json/schema/oneOf/1/properties/card"
                      },
                      "recurringId": {
                        "type": "string",
                        "title": "recurringId",
                        "description": "The ID that references the previous authorization. Use this when you have a recurring, card-not-present transaction.",
                        "example": "858939643422519",
                        "x-tags": [
                          "component"
                        ]
                      },
                      "processingOptions": {
                        "title": "processingOptions",
                        "type": "object",
                        "description": "Processing Options",
                        "x-tags": [
                          "object"
                        ],
                        "required": [
                          "paymentType"
                        ],
                        "properties": {
                          "paymentType": {
                            "$ref": "#/paths/~1pay~1v3~1token/post/requestBody/content/application~1json/schema/oneOf/2/properties/processingOptions/properties/paymentType"
                          },
                          "paymentOptionTag": {
                            "title": "paymentOptionTag",
                            "type": "string",
                            "description": "A custom value used to route transactions to a specific gateway or merchant account. This value is cached in the one-time-use token. For a subsequent (recurring) transaction, if you have multiple connections/gateways for your merchant account, you may need to also include this parameter in the request so that the transaction get routed to the same gateway where the initial transaction was made. Contact [Integrations Support](page:contact-us) to designate a `paymentOptionTag` for a given merchant account.",
                            "x-tags": [
                              "component"
                            ],
                            "example": "usaepay"
                          },
                          "retryOnSoftDecline": {
                            "$ref": "#/paths/~1pay~1v3~1token/post/requestBody/content/application~1json/schema/oneOf/2/properties/processingOptions/properties/retryOnSoftDecline"
                          },
                          "checkFraud": {
                            "$ref": "#/paths/~1pay~1v3~1token/post/requestBody/content/application~1json/schema/oneOf/0/properties/processingOptions/properties/checkFraud"
                          },
                          "shouldUseFingerprint": {
                            "$ref": "#/paths/~1pay~1v3~1token/post/requestBody/content/application~1json/schema/oneOf/2/properties/processingOptions/properties/shouldUseFingerprint"
                          },
                          "check3ds": {
                            "$ref": "#/paths/~1pay~1v3~1token/post/requestBody/content/application~1json/schema/oneOf/2/properties/processingOptions/properties/check3ds"
                          },
                          "customerRedirectUrl": {
                            "$ref": "#/paths/~1pay~1v3~1token/post/requestBody/content/application~1json/schema/oneOf/2/properties/processingOptions/properties/customerRedirectUrl"
                          },
                          "merchantId": {
                            "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/400/content/application~1json/schema/properties/merchantId"
                          },
                          "verboseResponse": {
                            "$ref": "#/paths/~1pay~1v3~1processECheck/post/requestBody/content/application~1json/schema/properties/processingOptions/properties/verboseResponse"
                          }
                        }
                      },
                      "clientIp": {
                        "$ref": "#/paths/~1pay~1v3~1processFromTerminal/post/requestBody/content/application~1json/schema/properties/clientIp"
                      },
                      "isAuthOnly": {
                        "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/isAuthOnly"
                      },
                      "paymentMethod": {
                        "$ref": "#/paths/~1pay~1v3~1process/post/requestBody/content/application~1json/schema/oneOf/0/properties/paymentMethod"
                      },
                      "installment": {
                        "$ref": "#/paths/~1pay~1v3~1token/post/requestBody/content/application~1json/schema/oneOf/2/properties/installment"
                      },
                      "external3ds": {
                        "$ref": "#/paths/~1pay~1v3~1process/post/requestBody/content/application~1json/schema/oneOf/0/properties/external3ds"
                      }
                    }
                  },
                  {
                    "title": "Run subsequent transaction using terminal token",
                    "type": "object",
                    "x-tags": [
                      "object"
                    ],
                    "description": "To run a subsequent transaction (after the initial) with a saved terminal token, include at least an amount, currency (the system assumes USD if you don't specify it), payment type, and the saved terminal token as body parameters.",
                    "required": [
                      "data",
                      "processingOptions",
                      "terminal"
                    ],
                    "properties": {
                      "data": {
                        "$ref": "#/paths/~1pay~1v3~1process/post/requestBody/content/application~1json/schema/oneOf/0/properties/data"
                      },
                      "processingOptions": {
                        "title": "processingOptions",
                        "type": "object",
                        "description": "Processing Options",
                        "x-tags": [
                          "object"
                        ],
                        "required": [
                          "paymentType"
                        ],
                        "properties": {
                          "paymentType": {
                            "type": "string",
                            "title": "paymentType",
                            "description": "The type of transaction being processed using stored payment credentials. Use this parameter to properly flag subsequent transactions when using a saved terminal token.\n\nFor more information about this parameter and when to use each option, see the [Payment type (paymentType) reference table](doc:constant-transaction-values#payment-type-paymenttype) in Guides.",
                            "example": "scheduled",
                            "x-tags": [
                              "component"
                            ],
                            "enum": [
                              "initialScheduled",
                              "initialUnscheduled",
                              "scheduled",
                              "unscheduledCit",
                              "unscheduledMit",
                              "initialMoto"
                            ]
                          },
                          "paymentOptionTag": {
                            "$ref": "#/paths/~1apm~1v3~1token/post/requestBody/content/application~1json/schema/properties/processingOptions/properties/paymentOptionTag"
                          },
                          "retryOnSoftDecline": {
                            "$ref": "#/paths/~1pay~1v3~1token/post/requestBody/content/application~1json/schema/oneOf/2/properties/processingOptions/properties/retryOnSoftDecline"
                          },
                          "merchantId": {
                            "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/400/content/application~1json/schema/properties/merchantId"
                          },
                          "verboseResponse": {
                            "$ref": "#/paths/~1pay~1v3~1processECheck/post/requestBody/content/application~1json/schema/properties/processingOptions/properties/verboseResponse"
                          }
                        }
                      },
                      "terminal": {
                        "title": "terminal",
                        "type": "object",
                        "description": "A previously saved [terminal token](ref:processtransactionfromterminal).",
                        "x-tags": [
                          "object"
                        ],
                        "required": [
                          "token"
                        ],
                        "properties": {
                          "token": {
                            "type": "string",
                            "title": "terminalToken",
                            "description": "The terminal token for a card that is saved during the Retail payment process (see the [Process transaction from terminal](ref:processtransactionfromterminal) endpoint). The token always begins with the following string: `terminal:`",
                            "example": "terminal:66b742ee-7abc-4e36-81ea-0a26d23d2822",
                            "x-tags": [
                              "component"
                            ]
                          }
                        }
                      },
                      "clientIp": {
                        "$ref": "#/paths/~1pay~1v3~1processFromTerminal/post/requestBody/content/application~1json/schema/properties/clientIp"
                      },
                      "isAuthOnly": {
                        "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/isAuthOnly"
                      },
                      "paymentMethod": {
                        "$ref": "#/paths/~1pay~1v3~1process/post/requestBody/content/application~1json/schema/oneOf/0/properties/paymentMethod"
                      }
                    }
                  }
                ]
              },
              "examples": {
                "Saved card token required parameters only": {
                  "value": {
                    "data": {
                      "amount": 29.99
                    },
                    "processingOptions": {
                      "paymentType": "initialUnscheduled"
                    },
                    "tokenex": {
                      "token": "eb50a022-d6de-4244-a1e6-dcb8522b2d19"
                    }
                  }
                },
                "Saved card token all parameters": {
                  "value": {
                    "data": {
                      "amount": 29.99,
                      "surcharge": 1.5,
                      "currency": "EUR",
                      "allowedCardTypes": [
                        "visa"
                      ],
                      "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": {
                        "customerRef": "RP006",
                        "orderNumber": "210058A",
                        "orderDate": "2021-08-26",
                        "invoice": "IN0001",
                        "firstName": "John",
                        "lastName": "Doe",
                        "birthDate": "1990-12-05",
                        "nationalIdentificationNumber": "5471300000000003",
                        "billToAddressOne": "2147 West Silverlake Drive",
                        "billToAddressTwo": "Apt 42",
                        "billToCity": "Scranton",
                        "billToState": "PA",
                        "billToPostal": "18503",
                        "billToCountry": "US",
                        "billToPhone": "1555555555",
                        "email": "jdoe@example.com",
                        "phone": "1555555555",
                        "shipToAddressOne": "1725 Slough Avenue",
                        "shipToAddressTwo": "Suite 200",
                        "shipToCity": "Scranton",
                        "shipToState": "PA",
                        "shipToPostal": "18505",
                        "shipToCountry": "US",
                        "shipToPhone": "1555555555",
                        "createdAtDate": "2005-03-01"
                      },
                      "customFields": {
                        "exampleKey": "Example string",
                        "exampleRefNumber": "094785"
                      },
                      "description": "[Description of the transaction]",
                      "descriptor": "[Descriptor text]",
                      "lodging": {
                        "advanceDeposit": true,
                        "checkInDate": "2026-01-05",
                        "checkOutDate": "2026-01-08",
                        "noShow": true,
                        "roomNumber": 14,
                        "roomRate": 143.99
                      }
                    },
                    "tokenex": {
                      "token": "6ee140a0-05d1-4958-8325-b38a690dbb9d",
                      "firstSix": "479300",
                      "lastFour": "3313"
                    },
                    "card": {
                      "cardType": "visa",
                      "expirationMonth": "12",
                      "expirationYear": "28",
                      "cardHolderName": "John H Doe",
                      "securityCode": 927,
                      "classification": "business",
                      "businessNumber": "1234567890",
                      "password": "12"
                    },
                    "processingOptions": {
                      "merchantId": "000999",
                      "check3ds": true,
                      "paymentType": "initialScheduled",
                      "customerRedirectUrl": "https://[your-ecommerce-website]",
                      "checkFraud": true,
                      "saveCardToken": true,
                      "paymentOptionTag": "nmi",
                      "retryOnSoftDecline": false,
                      "shouldUseFingerprint": true,
                      "verboseResponse": false
                    },
                    "clientIp": "112.345.6.78",
                    "isAuthOnly": false,
                    "paymentMethod": "card",
                    "installment": {
                      "period": "10"
                    },
                    "external3ds": {
                      "eci": "05",
                      "cavv": "MzM2OGI2ZjkwYjYwY2FjODQ3ZWU=",
                      "xid": "ZGUzNzgwYzQxM2ZlMWM0MzVkMjc=",
                      "version": "2.2.0",
                      "enrolled": "Y",
                      "pAResStatus": "Y",
                      "commerceIndicator": "spa",
                      "ucafAuthenticationData": "EHuWW9PiBkWvqE5juRwDzAUFBAk",
                      "ucafCollectionIndicator": "2",
                      "directoryServerTransactionId": "f38e6948-5388-41a6-bca4-b49723c19437"
                    }
                  }
                },
                "Raw card initial required parameters only": {
                  "value": {
                    "data": {
                      "amount": 29.99
                    },
                    "processingOptions": {
                      "paymentType": "initialScheduled"
                    },
                    "card": {
                      "pan": "4111111111111111",
                      "expirationMonth": "12",
                      "expirationYear": "28"
                    }
                  }
                },
                "Raw card initial all parameters": {
                  "value": {
                    "data": {
                      "amount": 29.99,
                      "surcharge": 1.5,
                      "currency": "EUR",
                      "allowedCardTypes": [
                        "visa"
                      ],
                      "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": {
                        "customerRef": "RP006",
                        "orderNumber": "210058A",
                        "orderDate": "2021-08-26",
                        "invoice": "IN0001",
                        "firstName": "John",
                        "lastName": "Doe",
                        "birthDate": "1990-12-05",
                        "nationalIdentificationNumber": "5471300000000003",
                        "billToAddressOne": "2147 West Silverlake Drive",
                        "billToAddressTwo": "Apt 42",
                        "billToCity": "Scranton",
                        "billToState": "PA",
                        "billToPostal": "18503",
                        "billToCountry": "US",
                        "billToPhone": "1555555555",
                        "email": "jdoe@example.com",
                        "phone": "1555555555",
                        "shipToAddressOne": "1725 Slough Avenue",
                        "shipToAddressTwo": "Suite 200",
                        "shipToCity": "Scranton",
                        "shipToState": "PA",
                        "shipToPostal": "18505",
                        "shipToCountry": "US",
                        "shipToPhone": "1555555555",
                        "createdAtDate": "2005-03-01"
                      },
                      "customFields": {
                        "exampleKey": "Example string",
                        "exampleRefNumber": "094785"
                      },
                      "description": "[Description of the transaction]",
                      "descriptor": "[Descriptor text]",
                      "lodging": {
                        "advanceDeposit": true,
                        "checkInDate": "2026-01-05",
                        "checkOutDate": "2026-01-08",
                        "noShow": true,
                        "roomNumber": 14,
                        "roomRate": 143.99
                      }
                    },
                    "card": {
                      "pan": "4111111111111111",
                      "expirationMonth": "12",
                      "expirationYear": "28",
                      "cardType": "visa",
                      "cardHolderName": "John H Doe",
                      "securityCode": 927,
                      "classification": "business",
                      "businessNumber": "1234567890",
                      "password": "12"
                    },
                    "processingOptions": {
                      "merchantId": "000999",
                      "check3ds": true,
                      "paymentType": "initialScheduled",
                      "customerRedirectUrl": "https://[your-ecommerce-website]",
                      "checkFraud": true,
                      "saveCardToken": true,
                      "paymentOptionTag": "nmi",
                      "retryOnSoftDecline": false,
                      "shouldUseFingerprint": true,
                      "verboseResponse": false
                    },
                    "clientIp": "112.345.6.78",
                    "isAuthOnly": false,
                    "paymentMethod": "card",
                    "installment": {
                      "period": "10"
                    },
                    "external3ds": {
                      "eci": "05",
                      "cavv": "MzM2OGI2ZjkwYjYwY2FjODQ3ZWU=",
                      "xid": "ZGUzNzgwYzQxM2ZlMWM0MzVkMjc=",
                      "version": "2.2.0",
                      "enrolled": "Y",
                      "pAResStatus": "Y",
                      "commerceIndicator": "spa",
                      "ucafAuthenticationData": "EHuWW9PiBkWvqE5juRwDzAUFBAk",
                      "ucafCollectionIndicator": "2",
                      "directoryServerTransactionId": "f38e6948-5388-41a6-bca4-b49723c19437"
                    }
                  }
                },
                "Raw card subsequent required parameters only": {
                  "value": {
                    "data": {
                      "amount": 29.99
                    },
                    "processingOptions": {
                      "paymentType": "scheduled"
                    },
                    "card": {
                      "pan": "4111111111111111",
                      "expirationMonth": "12",
                      "expirationYear": "28"
                    },
                    "recurringId": "858939643422519"
                  }
                },
                "Raw card subsequent all parameters": {
                  "value": {
                    "data": {
                      "amount": 29.99,
                      "surcharge": 1.5,
                      "currency": "EUR",
                      "allowedCardTypes": [
                        "visa"
                      ],
                      "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": {
                        "customerRef": "RP006",
                        "orderNumber": "210058A",
                        "orderDate": "2021-08-26",
                        "invoice": "IN0001",
                        "firstName": "John",
                        "lastName": "Doe",
                        "birthDate": "1990-12-05",
                        "nationalIdentificationNumber": "5471300000000003",
                        "billToAddressOne": "2147 West Silverlake Drive",
                        "billToAddressTwo": "Apt 42",
                        "billToCity": "Scranton",
                        "billToState": "PA",
                        "billToPostal": "18503",
                        "billToCountry": "US",
                        "billToPhone": "1555555555",
                        "email": "jdoe@example.com",
                        "phone": "1555555555",
                        "shipToAddressOne": "1725 Slough Avenue",
                        "shipToAddressTwo": "Suite 200",
                        "shipToCity": "Scranton",
                        "shipToState": "PA",
                        "shipToPostal": "18505",
                        "shipToCountry": "US",
                        "shipToPhone": "1555555555",
                        "createdAtDate": "2005-03-01"
                      },
                      "customFields": {
                        "exampleKey": "Example string",
                        "exampleRefNumber": "094785"
                      },
                      "description": "[Description of the transaction]",
                      "descriptor": "[Descriptor text]",
                      "lodging": {
                        "advanceDeposit": true,
                        "checkInDate": "2026-01-05",
                        "checkOutDate": "2026-01-08",
                        "noShow": true,
                        "roomNumber": 14,
                        "roomRate": 143.99
                      }
                    },
                    "card": {
                      "pan": "4111111111111111",
                      "expirationMonth": "12",
                      "expirationYear": "28",
                      "cardType": "visa",
                      "cardHolderName": "John H Doe",
                      "securityCode": 927,
                      "classification": "business",
                      "businessNumber": "1234567890",
                      "password": "12"
                    },
                    "recurringId": "858939643422519",
                    "processingOptions": {
                      "merchantId": "000999",
                      "check3ds": true,
                      "paymentType": "scheduled",
                      "customerRedirectUrl": "https://[your-ecommerce-website]",
                      "checkFraud": true,
                      "saveCardToken": true,
                      "paymentOptionTag": "nmi",
                      "retryOnSoftDecline": false,
                      "shouldUseFingerprint": true,
                      "verboseResponse": false
                    },
                    "clientIp": "112.345.6.78",
                    "isAuthOnly": false,
                    "paymentMethod": "card",
                    "installment": {
                      "period": "10"
                    },
                    "external3ds": {
                      "eci": "05",
                      "cavv": "MzM2OGI2ZjkwYjYwY2FjODQ3ZWU=",
                      "xid": "ZGUzNzgwYzQxM2ZlMWM0MzVkMjc=",
                      "version": "2.2.0",
                      "enrolled": "Y",
                      "pAResStatus": "Y",
                      "commerceIndicator": "spa",
                      "ucafAuthenticationData": "EHuWW9PiBkWvqE5juRwDzAUFBAk",
                      "ucafCollectionIndicator": "2",
                      "directoryServerTransactionId": "f38e6948-5388-41a6-bca4-b49723c19437"
                    }
                  }
                },
                "Terminal token subsequent required parameters only": {
                  "value": {
                    "data": {
                      "amount": 29.99
                    },
                    "processingOptions": {
                      "paymentType": "scheduled"
                    },
                    "terminal": {
                      "token": "terminal:eb50a022-d6de-4244-a1e6-dcb8522b2d19"
                    }
                  }
                },
                "Terminal token subsequent all parameters": {
                  "value": {
                    "data": {
                      "amount": 29.99,
                      "currency": "EUR",
                      "surcharge": 1,
                      "allowedCardTypes": [
                        "visa"
                      ],
                      "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": {
                        "customerRef": "RP006",
                        "orderNumber": "210058A-1",
                        "orderDate": "2021-08-26",
                        "invoice": "IN0001",
                        "firstName": "John",
                        "lastName": "Doe",
                        "birthDate": "1990-12-05",
                        "nationalIdentificationNumber": "5471300000000003",
                        "billToAddressOne": "2147 West Silverlake Drive",
                        "billToAddressTwo": "Apt 42",
                        "billToCity": "Scranton",
                        "billToState": "PA",
                        "billToPostal": "18503",
                        "billToCountry": "US",
                        "billToPhone": "1555555555",
                        "email": "jdoe@example.com",
                        "phone": "1555555555",
                        "shipToAddressOne": "1725 Slough Avenue",
                        "shipToAddressTwo": "Suite 200",
                        "shipToCity": "Scranton",
                        "shipToState": "PA",
                        "shipToPostal": "18505",
                        "shipToCountry": "US",
                        "shipToPhone": "1555555555",
                        "createdAtDate": "2005-03-01"
                      },
                      "customFields": {
                        "exampleKey": "Example string",
                        "exampleRefNumber": "094785"
                      },
                      "description": "[Description of the transaction]",
                      "descriptor": "[Descriptor text]",
                      "lodging": {
                        "advanceDeposit": true,
                        "checkInDate": "2026-01-05",
                        "checkOutDate": "2026-01-08",
                        "noShow": true,
                        "roomNumber": 14,
                        "roomRate": 143.99
                      }
                    },
                    "processingOptions": {
                      "paymentType": "scheduled",
                      "paymentOptionTag": "nmi",
                      "retryOnSoftDecline": false,
                      "merchantId": "000999",
                      "verboseResponse": false
                    },
                    "terminal": {
                      "token": "terminal:6ee140a0-05d1-4958-8325-b38a690dbb9d"
                    },
                    "clientIp": "112.345.6.78",
                    "isAuthOnly": false,
                    "paymentMethod": "card"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "title": "Payment response",
                      "type": "object",
                      "description": "The response from a successful payment. ",
                      "x-tags": [
                        "object"
                      ],
                      "properties": {
                        "id": {
                          "$ref": "#/paths/~1apm~1v3~1void/post/requestBody/content/application~1json/schema/properties/id"
                        },
                        "merchantId": {
                          "$ref": "#/paths/~1apm~1v3~1process/post/responses/200/content/application~1json/schema/properties/merchantId"
                        },
                        "authCode": {
                          "$ref": "#/paths/~1pay~1v3~1capture/post/responses/200/content/application~1json/schema/properties/authCode"
                        },
                        "amount": {
                          "$ref": "#/paths/~1pay~1v3~1processECheck/post/responses/200/content/application~1json/schema/properties/amount"
                        },
                        "surcharge": {
                          "type": "number",
                          "title": "surcharge",
                          "description": "The surcharge amount. This is part of the total transaction `amount`. The maximum value has 16 digits total, including up to two of those digits after the decimal point.\n\nThe surcharge feature is only supported with the following gateways or connections:\n- [NMI](doc:nmi-integration-guide)\n- [Nexio mock gateway](doc:nexio-mock-gateway-integration-guide)",
                          "x-tags": [
                            "component"
                          ],
                          "example": 1
                        },
                        "currency": {
                          "$ref": "#/paths/~1pay~1v3~1capture/post/responses/200/content/application~1json/schema/properties/currency"
                        },
                        "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"
                        },
                        "transactionType": {
                          "$ref": "#/paths/~1pay~1v3~1capture/post/responses/200/content/application~1json/schema/properties/transactionType"
                        },
                        "shouldUpdateCard": {
                          "$ref": "#/paths/~1subscription~1v3/post/responses/200/content/application~1json/schema/properties/payment/properties/shouldUpdateCard"
                        },
                        "card": {
                          "title": "card",
                          "type": "object",
                          "description": "Card information from the transaction.",
                          "x-tags": [
                            "object"
                          ],
                          "properties": {
                            "cardHolder": {
                              "$ref": "#/paths/~1pay~1v3~1vault~1card~1%7BcardToken%7D/get/responses/200/content/application~1json/schema/properties/card/properties/cardHolderName"
                            },
                            "cardNumber": {
                              "$ref": "#/paths/~1pay~1v3~1processFromTerminal~1%7BterminalRequestId%7D/get/responses/200/content/application~1json/schema/properties/card/properties/cardNumber"
                            },
                            "firstSix": {
                              "$ref": "#/paths/~1card~1v3/get/responses/200/content/application~1json/schema/properties/rows/items/properties/firstSix"
                            },
                            "lastFour": {
                              "$ref": "#/paths/~1card~1v3/get/responses/200/content/application~1json/schema/properties/rows/items/properties/lastFour"
                            },
                            "expirationMonth": {
                              "$ref": "#/paths/~1pay~1v3~1vault~1card~1%7BcardToken%7D/get/responses/200/content/application~1json/schema/properties/card/properties/expirationMonth"
                            },
                            "expirationYear": {
                              "$ref": "#/paths/~1pay~1v3~1vault~1card~1%7BcardToken%7D/get/responses/200/content/application~1json/schema/properties/card/properties/expirationYear"
                            }
                          }
                        },
                        "token": {
                          "title": "token",
                          "type": "object",
                          "description": "The card token used to process the transaction. This is an empty object when the request was made using a raw card number rather than a saved card token.",
                          "x-tags": [
                            "object"
                          ],
                          "properties": {
                            "firstSix": {
                              "$ref": "#/paths/~1pay~1v3~1vault~1card~1%7BcardToken%7D/get/responses/200/content/application~1json/schema/properties/tokenex/properties/firstSix"
                            },
                            "lastFour": {
                              "$ref": "#/paths/~1pay~1v3~1vault~1card~1%7BcardToken%7D/get/responses/200/content/application~1json/schema/properties/tokenex/properties/lastFour"
                            },
                            "token": {
                              "$ref": "#/paths/~1pay~1v3~1vault~1card~1%7BcardToken%7D/get/responses/200/content/application~1json/schema/properties/tokenex/properties/token"
                            },
                            "cardType": {
                              "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/cardType"
                            }
                          }
                        },
                        "terminal": {
                          "title": "token",
                          "type": "object",
                          "description": "The terminal token used to process the transaction. This object is only returned when a terminal token is used to process a transaction.",
                          "x-tags": [
                            "object"
                          ],
                          "properties": {
                            "token": {
                              "$ref": "#/paths/~1pay~1v3~1process/post/requestBody/content/application~1json/schema/oneOf/3/properties/terminal/properties/token"
                            }
                          }
                        },
                        "recurringData": {
                          "title": "recurringData",
                          "type": "object",
                          "description": "Data to be used in recurring or subsequent transactions when using raw card information when running a card transaction. Save the `recurringId` value to use in those subsequent transactions.",
                          "x-tags": [
                            "object"
                          ],
                          "properties": {
                            "recurringId": {
                              "$ref": "#/paths/~1pay~1v3~1refund/post/responses/200/content/application~1json/schema/properties/recurringData/properties/recurringId"
                            },
                            "recurringIdType": {
                              "$ref": "#/paths/~1pay~1v3~1refund/post/responses/200/content/application~1json/schema/properties/recurringData/properties/recurringIdType"
                            }
                          }
                        },
                        "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": {
                              "$ref": "#/paths/~1pay~1v3~1processECheck/post/requestBody/content/application~1json/schema/properties/data/properties/settlementCurrency"
                            },
                            "customer": {
                              "title": "customer",
                              "type": "object",
                              "description": "Customer information returned when checking fraud or from the processing gateway, when applicable.",
                              "x-tags": [
                                "object"
                              ],
                              "properties": {
                                "orderNumber": {
                                  "$ref": "#/paths/~1pay~1v3~1token/post/requestBody/content/application~1json/schema/oneOf/0/properties/data/properties/customer/properties/orderNumber"
                                },
                                "customerRef": {
                                  "$ref": "#/paths/~1subscription~1v3~1%7Bid%7D/put/responses/200/content/application~1json/schema/properties/customerRef"
                                },
                                "orderDate": {
                                  "$ref": "#/paths/~1pay~1v3~1vault~1echeck~1%7BecheckToken%7D/get/responses/200/content/application~1json/schema/properties/data/properties/customer/properties/orderDate"
                                },
                                "invoice": {
                                  "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/data/properties/customer/properties/invoice"
                                },
                                "firstName": {
                                  "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/data/properties/customer/properties/firstName"
                                },
                                "lastName": {
                                  "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/data/properties/customer/properties/lastName"
                                },
                                "birthDate": {
                                  "type": "string",
                                  "title": "birthDate",
                                  "description": "The recipient's date of birth, formatted as an [ISO-8601](https://www.iso.org/iso-8601-date-and-time-format.html) date.\n<!-- INTERNAL NOTE: Payquicker, HyperWallet -->",
                                  "example": "1990-12-05",
                                  "x-tags": [
                                    "component"
                                  ],
                                  "x-internal": false
                                },
                                "email": {
                                  "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/data/properties/customer/properties/email"
                                },
                                "phone": {
                                  "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/data/properties/customer/properties/phone"
                                },
                                "billToAddressOne": {
                                  "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/data/properties/customer/properties/billToAddressOne"
                                },
                                "billToAddressTwo": {
                                  "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/data/properties/customer/properties/billToAddressTwo"
                                },
                                "billToCity": {
                                  "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/data/properties/customer/properties/billToCity"
                                },
                                "billToState": {
                                  "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/data/properties/customer/properties/billToState"
                                },
                                "billToPostal": {
                                  "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/data/properties/customer/properties/billToPostal"
                                },
                                "billToCountry": {
                                  "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/data/properties/customer/properties/billToCountry"
                                },
                                "billToPhone": {
                                  "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/data/properties/customer/properties/billToPhone"
                                },
                                "shipToAddressOne": {
                                  "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/data/properties/customer/properties/shipToAddressOne"
                                },
                                "shipToAddressTwo": {
                                  "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/data/properties/customer/properties/shipToAddressTwo"
                                },
                                "shipToCity": {
                                  "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/data/properties/customer/properties/shipToCity"
                                },
                                "shipToState": {
                                  "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/data/properties/customer/properties/shipToState"
                                },
                                "shipToPostal": {
                                  "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/data/properties/customer/properties/shipToPostal"
                                },
                                "shipToCountry": {
                                  "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/data/properties/customer/properties/shipToCountry"
                                },
                                "shipToPhone": {
                                  "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/data/properties/customer/properties/shipToPhone"
                                },
                                "createdAt": {
                                  "$ref": "#/paths/~1subscription~1v3/post/responses/200/content/application~1json/schema/properties/dateCreated"
                                }
                              }
                            },
                            "cart": {
                              "$ref": "#/paths/~1pay~1v3~1processECheck/post/requestBody/content/application~1json/schema/properties/data/properties/cart"
                            },
                            "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"
                            },
                            "nsu": {
                              "type": "string",
                              "title": "nsu",
                              "description": "The system only returns this code for a transaction that uses the BRL currency through specific gateways or connections. If the system returns this parameter, you must save the value for compliance purposes.",
                              "example": "123456789876543",
                              "x-tags": [
                                "component"
                              ]
                            }
                          }
                        },
                        "kountResponse": {
                          "title": "kountResponse",
                          "type": "object",
                          "description": "Fraud data and rules.",
                          "x-tags": [
                            "object"
                          ],
                          "properties": {
                            "status": {
                              "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/kountResponse/properties/status"
                            },
                            "rules": {
                              "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/kountResponse/properties/rules"
                            }
                          }
                        },
                        "installment": {
                          "title": "installment",
                          "type": "object",
                          "description": "Details of an installment plan associated with the transaction.",
                          "x-tags": [
                            "object"
                          ],
                          "properties": {
                            "period": {
                              "$ref": "#/paths/~1pay~1v3~1token/post/requestBody/content/application~1json/schema/oneOf/2/properties/installment/properties/period"
                            }
                          }
                        },
                        "gatewayResponse": {
                          "$ref": "#/paths/~1pay~1v3~1void/post/responses/200/content/application~1json/schema/properties/gatewayResponse"
                        },
                        "random-nnnnnnn": {
                          "$ref": "#/paths/~1card~1v3/get/responses/200/content/application~1json/schema/properties/random-nnnn"
                        }
                      }
                    },
                    {
                      "title": "3DS redirect response",
                      "type": "object",
                      "description": "The initial response when using a 3DS workflow. When the 3DS verification workflow completes, the system returns the regular payment response.",
                      "x-tags": [
                        "object"
                      ],
                      "properties": {
                        "merchantId": {
                          "$ref": "#/paths/~1apm~1v3~1process/post/responses/200/content/application~1json/schema/properties/merchantId"
                        },
                        "status": {
                          "type": "string",
                          "title": "status",
                          "description": "The status of the 3DS transaction. This is only returned for transactions where 3DS has been enabled in the request.",
                          "x-tags": [
                            "component"
                          ],
                          "example": "redirect"
                        },
                        "message": {
                          "type": "string",
                          "title": "message",
                          "description": "A message describing the status of the request and how to complete the 3DS workflow. This is only returned for transactions where 3DS has been enabled in the request.",
                          "example": "Provide redirect url in iFrame to shopper to complete 3ds authentication and transaction",
                          "x-tags": [
                            "component"
                          ]
                        },
                        "redirectUrl": {
                          "type": "string",
                          "title": "redirectUrl",
                          "description": "The redirect URL to use for the 3DS workflow. This is only returned for transactions where 3DS has been enabled in the request.",
                          "example": "https://api.nexiopaysandbox.com/pay/v3/threeDS/frame?token=4fc19ebd-ba4b-47b9-aba8-a73caf8d4d99",
                          "x-tags": [
                            "component"
                          ]
                        },
                        "asyncTraceId": {
                          "type": "string",
                          "title": "asyncTraceId",
                          "description": "The high-level ID of the unprocessed transaction for tracking progress and status with the [View transaction async status](ref:viewtransactionasyncstatus) endpoint.\n\nThis is only returned for transactions where 3DS has been enabled in the request.",
                          "x-tags": [
                            "component"
                          ],
                          "example": "4ef27dce-ca3b-44b7-aba8-a73caf8d4d98"
                        },
                        "random-nnnnnnn": {
                          "$ref": "#/paths/~1card~1v3/get/responses/200/content/application~1json/schema/properties/random-nnnn"
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "Example response for saved card token transaction": {
                    "value": {
                      "id": "eyJuYW1lIjoWJlciI6IjMxCJtZXJjaGFudElkIjoiMoiVVNEIn0=eyJuYW1lIjoib3BlbnBheSIsIm1lcmN",
                      "merchantId": "000999",
                      "authCode": "035410",
                      "amount": 29.99,
                      "surcharge": 1.5,
                      "currency": "EUR",
                      "transactionDate": "2019-01-15T13:19:39.329Z",
                      "transactionStatus": "settled",
                      "transactionType": "sale",
                      "shouldUpdateCard": true,
                      "card": {
                        "cardType": "visa",
                        "cardHolder": "John H Doe",
                        "cardNumber": "424242******4242",
                        "firstSix": "424242",
                        "lastFour": "4242",
                        "expirationMonth": "12",
                        "expirationYear": "28"
                      },
                      "token": {
                        "firstSix": "479300",
                        "lastFour": "3313",
                        "token": "6ee140a0-05d1-4958-8325-b38a690dbb9d",
                        "cardType": "visa"
                      },
                      "data": {
                        "amount": 29.99,
                        "currency": "EUR",
                        "settlementCurrency": "CAD",
                        "customer": {
                          "customerRef": "RP006",
                          "orderNumber": "210058A",
                          "orderDate": "2021-08-26",
                          "invoice": "IN0001",
                          "firstName": "John",
                          "lastName": "Doe",
                          "birthDate": "1990-12-05",
                          "billToAddressOne": "2147 West Silverlake Drive",
                          "billToAddressTwo": "Apt 42",
                          "billToCity": "Scranton",
                          "billToState": "PA",
                          "billToPostal": "18503",
                          "billToCountry": "US",
                          "billToPhone": "1555555555",
                          "email": "jdoe@example.com",
                          "phone": "1555555555",
                          "shipToAddressOne": "1725 Slough Avenue",
                          "shipToAddressTwo": "Suite 200",
                          "shipToCity": "Scranton",
                          "shipToState": "PA",
                          "shipToPostal": "18505",
                          "shipToCountry": "US",
                          "shipToPhone": "1555555555",
                          "createdAt": "2020-04-28T18:50:04.866Z"
                        },
                        "nsu": "123456789876543",
                        "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"
                            }
                          ]
                        },
                        "lodging": {
                          "advanceDeposit": true,
                          "checkInDate": "2026-01-05",
                          "checkOutDate": "2026-01-08",
                          "noShow": true,
                          "roomNumber": 14,
                          "roomRate": 143.99
                        },
                        "customFields": {
                          "exampleKey": "Example string",
                          "exampleRefNumber": "094785"
                        }
                      },
                      "kountResponse": {
                        "status": "success",
                        "rules": "{\"VERS\":\"0630\",\"MODE\":\"Q\",\"TRAN\":\"7V7D0V1BMKPX\",\"MERC\":\"717000\",\"SESS\":\"3bbb89edcd5742f18e2502ebb2bbb18b\",\"ORDR\":\"14233\",\"AUTO\":\"A\",\"SCOR\":\"29\",\"GEOX\":\"US\",\"BRND\":\"VISA\",\"REGN\":null,\"NETW\":\"N\",\"KAPT\":\"N\",\"CARDS\":\"1\",\"DEVICES\":\"1\",\"EMAILS\":\"1\",\"VELO\":\"0\",\"VMAX\":\"0\",\"SITE\":\"DEFAULT\",\"DEVICE_LAYERS\":\"....\",\"FINGERPRINT\":null,\"TIMEZONE\":null,\"LOCALTIME\":\" \",\"REGION\":null,\"COUNTRY\":null,\"PROXY\":null,\"JAVASCRIPT\":null,\"FLASH\":null,\"COOKIES\":null,\"HTTP_COUNTRY\":null,\"LANGUAGE\":null,\"MOBILE_DEVICE\":null,\"MOBILE_TYPE\":null,\"MOBILE_FORWARDER\":null,\"VOICE_DEVICE\":null,\"PC_REMOTE\":null,\"RULES_TRIGGERED\":0,\"COUNTERS_TRIGGERED\":0,\"REASON_CODE\":null,\"MASTERCARD\":\"\",\"DDFS\":null,\"DSR\":null,\"UAS\":null,\"BROWSER\":null,\"OS\":null,\"PIP_IPAD\":null,\"PIP_LAT\":null,\"PIP_LON\":null,\"PIP_COUNTRY\":null,\"PIP_REGION\":null,\"PIP_CITY\":null,\"PIP_ORG\":null,\"IP_IPAD\":null,\"IP_LAT\":null,\"IP_LON\":null,\"IP_COUNTRY\":null,\"IP_REGION\":null,\"IP_CITY\":null,\"IP_ORG\":null,\"WARNING_COUNT\":0}"
                      },
                      "installment": {
                        "period": 10
                      },
                      "gatewayResponse": {
                        "gatewayName": "[usaepay]",
                        "refNumber": "8E56222GD0701110"
                      },
                      "random-nnnnnnn": "6fec4a03-3a9f-40de-90bc-23a513ac904c"
                    }
                  },
                  "Example response for raw card transaction": {
                    "value": {
                      "id": "eyJuYW1lIjoWJlciI6IjMxCJtZXJjaGFudElkIjoiMoiVVNEIn0=eyJuYW1lIjoib3BlbnBheSIsIm1lcmN",
                      "merchantId": "000999",
                      "authCode": "035410",
                      "amount": 29.99,
                      "surcharge": 1.5,
                      "currency": "EUR",
                      "transactionDate": "2019-01-15T13:19:39.329Z",
                      "transactionStatus": "settled",
                      "transactionType": "sale",
                      "shouldUpdateCard": true,
                      "card": {
                        "cardType": "visa",
                        "cardHolder": "John H Doe",
                        "cardNumber": "424242******4242",
                        "firstSix": "424242",
                        "lastFour": "4242",
                        "expirationMonth": "12",
                        "expirationYear": "28"
                      },
                      "token": {},
                      "recurringData": {
                        "recurringId": "858939643422519",
                        "recurringIdType": "networkTransactionId"
                      },
                      "data": {
                        "amount": 29.99,
                        "currency": "EUR",
                        "settlementCurrency": "CAD",
                        "customer": {
                          "customerRef": "RP006",
                          "orderNumber": "210058A",
                          "orderDate": "2021-08-26",
                          "invoice": "IN0001",
                          "firstName": "John",
                          "lastName": "Doe",
                          "birthDate": "1990-12-05",
                          "billToAddressOne": "2147 West Silverlake Drive",
                          "billToAddressTwo": "Apt 42",
                          "billToCity": "Scranton",
                          "billToState": "PA",
                          "billToPostal": "18503",
                          "billToCountry": "US",
                          "billToPhone": "1555555555",
                          "email": "jdoe@example.com",
                          "phone": "1555555555",
                          "shipToAddressOne": "1725 Slough Avenue",
                          "shipToAddressTwo": "Suite 200",
                          "shipToCity": "Scranton",
                          "shipToState": "PA",
                          "shipToPostal": "18505",
                          "shipToCountry": "US",
                          "shipToPhone": "1555555555",
                          "createdAt": "2020-04-28T18:50:04.866Z"
                        },
                        "nsu": "123456789876543",
                        "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"
                            }
                          ]
                        },
                        "lodging": {
                          "advanceDeposit": true,
                          "checkInDate": "2026-01-05",
                          "checkOutDate": "2026-01-08",
                          "noShow": true,
                          "roomNumber": 14,
                          "roomRate": 143.99
                        },
                        "customFields": {
                          "exampleKey": "Example string",
                          "exampleRefNumber": "094785"
                        }
                      },
                      "kountResponse": {
                        "status": "success",
                        "rules": "{\"VERS\":\"0630\",\"MODE\":\"Q\",\"TRAN\":\"7V7D0V1BMKPX\",\"MERC\":\"717000\",\"SESS\":\"3bbb89edcd5742f18e2502ebb2bbb18b\",\"ORDR\":\"14233\",\"AUTO\":\"A\",\"SCOR\":\"29\",\"GEOX\":\"US\",\"BRND\":\"VISA\",\"REGN\":null,\"NETW\":\"N\",\"KAPT\":\"N\",\"CARDS\":\"1\",\"DEVICES\":\"1\",\"EMAILS\":\"1\",\"VELO\":\"0\",\"VMAX\":\"0\",\"SITE\":\"DEFAULT\",\"DEVICE_LAYERS\":\"....\",\"FINGERPRINT\":null,\"TIMEZONE\":null,\"LOCALTIME\":\" \",\"REGION\":null,\"COUNTRY\":null,\"PROXY\":null,\"JAVASCRIPT\":null,\"FLASH\":null,\"COOKIES\":null,\"HTTP_COUNTRY\":null,\"LANGUAGE\":null,\"MOBILE_DEVICE\":null,\"MOBILE_TYPE\":null,\"MOBILE_FORWARDER\":null,\"VOICE_DEVICE\":null,\"PC_REMOTE\":null,\"RULES_TRIGGERED\":0,\"COUNTERS_TRIGGERED\":0,\"REASON_CODE\":null,\"MASTERCARD\":\"\",\"DDFS\":null,\"DSR\":null,\"UAS\":null,\"BROWSER\":null,\"OS\":null,\"PIP_IPAD\":null,\"PIP_LAT\":null,\"PIP_LON\":null,\"PIP_COUNTRY\":null,\"PIP_REGION\":null,\"PIP_CITY\":null,\"PIP_ORG\":null,\"IP_IPAD\":null,\"IP_LAT\":null,\"IP_LON\":null,\"IP_COUNTRY\":null,\"IP_REGION\":null,\"IP_CITY\":null,\"IP_ORG\":null,\"WARNING_COUNT\":0}"
                      },
                      "installment": {
                        "period": 10
                      },
                      "gatewayResponse": {
                        "gatewayName": "usaepay",
                        "refNumber": "8E56222GD0701110"
                      },
                      "random-nnnnnnn": "6fec4a03-3a9f-40de-90bc-23a513ac904c"
                    }
                  },
                  "Example response for terminal token transaction": {
                    "value": {
                      "id": "eyJuYW1lIjoWJlciI6IjMxCJtZXJjaGFudElkIjoiMoiVVNEIn0=eyJuYW1lIjoib3BlbnBheSIsIm1lcmN",
                      "merchantId": "000999",
                      "authCode": "035410",
                      "amount": 29.99,
                      "surcharge": 1,
                      "currency": "EUR",
                      "transactionDate": "2019-01-15T13:19:39.329Z",
                      "transactionStatus": "settled",
                      "transactionType": "sale",
                      "shouldUpdateCard": true,
                      "card": {
                        "cardType": "visa",
                        "cardHolder": "John H Doe",
                        "cardNumber": "424242******4242",
                        "firstSix": "424242",
                        "lastFour": "4242",
                        "expirationMonth": "12",
                        "expirationYear": "28"
                      },
                      "terminal": {
                        "token": "terminal:66b742ee-7abc-4e36-81ea-0a26d23d2822"
                      },
                      "data": {
                        "amount": 29.99,
                        "currency": "EUR",
                        "settlementCurrency": "CAD",
                        "customer": {
                          "customerRef": "RP006",
                          "orderNumber": "210058A-1",
                          "orderDate": "2021-08-26",
                          "invoice": "IN0001",
                          "firstName": "John",
                          "lastName": "Doe",
                          "birthDate": "1990-12-05",
                          "billToAddressOne": "2147 West Silverlake Drive",
                          "billToAddressTwo": "Apt 42",
                          "billToCity": "Scranton",
                          "billToState": "PA",
                          "billToPostal": "18503",
                          "billToCountry": "US",
                          "billToPhone": "1555555555",
                          "email": "jdoe@example.com",
                          "phone": "1555555555",
                          "shipToAddressOne": "1725 Slough Avenue",
                          "shipToAddressTwo": "Suite 200",
                          "shipToCity": "Scranton",
                          "shipToState": "PA",
                          "shipToPostal": "18505",
                          "shipToCountry": "US",
                          "shipToPhone": "1555555555",
                          "createdAt": "2023-04-28T18:50:04.866Z"
                        },
                        "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"
                            }
                          ]
                        },
                        "nsu": "123456789876543",
                        "lodging": {
                          "advanceDeposit": true,
                          "checkInDate": "2026-01-05",
                          "checkOutDate": "2026-01-08",
                          "noShow": true,
                          "roomNumber": 14,
                          "roomRate": 143.99
                        },
                        "customFields": {
                          "exampleKey": "Example string",
                          "exampleRefNumber": "094785"
                        }
                      },
                      "gatewayResponse": {
                        "gatewayName": "nmi",
                        "refNumber": "8E56222GD0701110"
                      },
                      "random-nnnnnnn": "6fec4a03-3a9f-40de-90bc-23a513ac904c"
                    }
                  },
                  "Example initial response for 3DS transaction": {
                    "value": {
                      "merchantId": "000999",
                      "status": "redirect",
                      "message": "Provide redirect url in iFrame to shopper to complete 3ds authentication and transaction",
                      "redirectUrl": "https://api.nexiopaysandbox.com/pay/v3/threeDS/frame?token=830d36f6-a5e3-4455-9600-3a55b63e2fc2",
                      "asyncTraceId": "4ef27dce-ca3b-44b7-aba8-a73caf8d4d98",
                      "random-nnnnnnn": "6fec4a03-3a9f-40de-90bc-23a513ac904c"
                    }
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "",
                  "properties": {
                    "error": {
                      "type": "integer",
                      "description": "Nexio's error code",
                      "example": 435
                    },
                    "message": {
                      "type": "string",
                      "description": "The reason for the failure to authenticate",
                      "example": "Declined for CVV failure"
                    },
                    "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": {
                          "$ref": "#/paths/~1pay~1v3~1refund/post/responses/200/content/application~1json/schema/properties/transactionStatus"
                        }
                      }
                    },
                    "merchantId": {
                      "type": "string",
                      "description": "The merchant ID",
                      "example": "100100"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          }
        },
        "summary": "Run card transaction",
        "parameters": []
      }
    },
    "/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"
      }
    },
    "/card/v3": {
      "get": {
        "description": "Allows you to view all saved card tokens based on the given criteria. \n\n<!-- theme: info -->\n> 📘 Note \n> \n> Nexio does not currently support returning terminal tokens from this endpoint. Instead, use the terminal's token with the [View card token details](ref:viewcardtokendetails) endpoint.\n\nSaved card tokens can be used to process through any MID on your account. They are not restricted to a specific merchant account or currency.\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).\n> \n> You can include any of the possible filters, or none of them, in your request. For example, `/card/v3/?expirationYear<2024&merchantId=000999` to return all records for the given merchantId and a card expiration year before 2024.\n\n<div style=\"display:none;\">\n\n## Request parameters\n- limit\n- offset\n- createdAt\n- updatedAt\n- merchantId\n- merchantIds\n- customerRef\n- expirationMonth\n- expirationYear\n- accountUpdaterStatus\n- shouldUpdateCard\n- lastAccountUpdaterUpdate\n- pauseAccountUpdater\n- cardType\n- firstSix\n- lastFour\n- token\n- cardHolderName\n\n\n## Response parameters\n- limit\n- offset\n- hasMore\n- rows.key\n- rows.merchantId\n- rows.customerRef\n- rows.expirationMonth\n- rows.expirationYear\n- rows.accountUpdaterStatus\n- rows.shouldUpdateCard\n- rows.lastAccountUpdaterUpdate\n- rows.pauseAccountUpdater\n- rows.createdAt\n- rows.updatedAt\n- rows.cardType\n- rows.firstSix\n- rows.lastFour\n- rows.token\n- rows.cardHolderName\n- random-nnnn\n\n</div>",
        "operationId": "ViewCardTokens",
        "tags": [
          "Ecommerce"
        ],
        "security": [
          {
            "Basic_Authentication": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "description": "The number of records to return. ",
            "schema": {
              "type": "integer",
              "example": 12,
              "default": 10
            }
          },
          {
            "in": "query",
            "name": "offset",
            "description": "The offset. Used to view records further along the list.",
            "schema": {
              "type": "integer",
              "example": 10,
              "default": 0
            }
          },
          {
            "$ref": "#/components/parameters/createdAt"
          },
          {
            "$ref": "#/components/parameters/updatedAt"
          },
          {
            "$ref": "#/components/parameters/merchantId"
          },
          {
            "$ref": "#/components/parameters/merchantIds"
          },
          {
            "$ref": "#/components/parameters/customerRef"
          },
          {
            "$ref": "#/components/parameters/expirationMonth"
          },
          {
            "$ref": "#/components/parameters/expirationYear"
          },
          {
            "$ref": "#/components/parameters/cardType"
          },
          {
            "$ref": "#/components/parameters/cardHolderName"
          },
          {
            "$ref": "#/components/parameters/firstSix"
          },
          {
            "$ref": "#/components/parameters/lastFour"
          },
          {
            "$ref": "#/components/parameters/accountUpdaterStatus"
          },
          {
            "$ref": "#/components/parameters/lastAccountUpdaterUpdate"
          },
          {
            "$ref": "#/components/parameters/pauseAccountUpdater"
          },
          {
            "$ref": "#/components/parameters/shouldUpdateCard"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "limit": {
                      "type": "integer",
                      "x-stoplight": {
                        "id": "m7rr4xu6r2u9i"
                      },
                      "title": "limit",
                      "description": "The maximum number of records returned in a response (starting from the default or specified `offset` query parameter).",
                      "default": 10,
                      "example": 12,
                      "x-tags": [
                        "component"
                      ]
                    },
                    "offset": {
                      "type": "integer",
                      "x-stoplight": {
                        "id": "bge9c0whmlhqb"
                      },
                      "title": "offset",
                      "description": "The offset indicates how many card token records were skipped before beginning to return records in a response. If both `offset` and `limit` were used together, the offset records were skipped before starting to count the records to limit.",
                      "default": 0,
                      "example": 10,
                      "x-tags": [
                        "component"
                      ]
                    },
                    "hasMore": {
                      "type": "boolean",
                      "description": "Will be `true` if there are more records after the current paged response. Use the `limit` and `offset` query parameters to display paged results."
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string",
                            "title": "key",
                            "example": "4f211fde-d135-4c91-afbc-bcdb73c0c504.5292712865664733",
                            "x-tags": [
                              "component"
                            ],
                            "description": "The Nexio unique key for the card token."
                          },
                          "token": {
                            "$ref": "#/paths/~1pay~1v3~1vault~1card~1%7BcardToken%7D/get/responses/200/content/application~1json/schema/properties/tokenex/properties/token"
                          },
                          "customerRef": {
                            "title": "customerRef",
                            "type": "string",
                            "description": "Customer identifier associated with the card/echeck token.",
                            "example": "RP006",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "merchantId": {
                            "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/merchantId"
                          },
                          "cardType": {
                            "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/cardType"
                          },
                          "cardHolderName": {
                            "$ref": "#/paths/~1pay~1v3~1vault~1card~1%7BcardToken%7D/get/responses/200/content/application~1json/schema/properties/card/properties/cardHolderName"
                          },
                          "firstSix": {
                            "type": "string",
                            "title": "firstSix",
                            "description": "The first six digits of the card number.",
                            "x-tags": [
                              "component"
                            ],
                            "example": "424242"
                          },
                          "lastFour": {
                            "type": "string",
                            "title": "lastFour",
                            "description": "The last four digits of the card number.",
                            "x-tags": [
                              "component"
                            ],
                            "example": "4242"
                          },
                          "expirationMonth": {
                            "$ref": "#/paths/~1pay~1v3~1vault~1card~1%7BcardToken%7D/put/responses/200/content/application~1json/schema/properties/card/properties/expirationMonth"
                          },
                          "expirationYear": {
                            "$ref": "#/paths/~1pay~1v3~1vault~1card~1%7BcardToken%7D/put/responses/200/content/application~1json/schema/properties/card/properties/expirationYear"
                          },
                          "createdAt": {
                            "$ref": "#/paths/~1pay~1v3~1vault~1card~1%7BcardToken%7D/get/responses/200/content/application~1json/schema/properties/dateCreated"
                          },
                          "updatedAt": {
                            "$ref": "#/paths/~1pay~1v3~1vault~1card~1%7BcardToken%7D/get/responses/200/content/application~1json/schema/properties/dateLastModified"
                          },
                          "shouldUpdateCard": {
                            "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/shouldUpdateCard"
                          },
                          "accountUpdaterStatus": {
                            "$ref": "#/paths/~1pay~1v3~1vault~1card~1%7BcardToken%7D/get/responses/200/content/application~1json/schema/properties/accountUpdaterStatus"
                          },
                          "lastAccountUpdaterUpdate": {
                            "type": "string",
                            "title": "lastAccountUpdaterUpdate",
                            "description": "The most recent update to the card token from Account Updater. The value is one of the following:\n- `cardExpiration` - if the expiration date was changed\n- `cardNumber` - if the card number was changed\n- `accountClosed` - if the last update indicated that the account is closed\n- null - if no change has occurred yet",
                            "x-tags": [
                              "component"
                            ],
                            "example": "cardNumber"
                          },
                          "pauseAccountUpdater": {
                            "type": "boolean",
                            "title": "pauseAccountUpdater",
                            "x-tags": [
                              "component"
                            ],
                            "description": "This parameter has been deprecated. For Nexio internal use only.",
                            "example": false,
                            "deprecated": true
                          }
                        }
                      }
                    },
                    "random-nnnn": {
                      "type": "string",
                      "title": "random-4611765",
                      "description": "Used for sandbox/testing only. The parameter name includes a random set of numbers as part of the name and includes a random value in the response.\\\n\\\nThis parameter and value have no meaning except to remind you to create a flexible integration with the Nexio API.",
                      "example": "6fec4a03-3a9f-40de-90bc-23a513ac904c",
                      "x-tags": [
                        "component"
                      ]
                    }
                  }
                },
                "examples": {
                  "Example response": {
                    "value": {
                      "limit": 12,
                      "offset": 10,
                      "hasMore": true,
                      "rows": [
                        {
                          "key": "4f211fde-d135-4c91-afbc-bcdb73c0c504.5292712865664733",
                          "token": "6ee140a0-05d1-4958-8325-b38a690dbb9d",
                          "customerRef": "RP006",
                          "merchantId": "000999",
                          "cardType": "visa",
                          "cardHolderName": "John H Doe",
                          "firstSix": "479300",
                          "lastFour": "3313",
                          "expirationMonth": "12",
                          "expirationYear": "28",
                          "createdAt": "2020-04-28T19:19:33.185Z",
                          "updatedAt": "2022-03-28T19:19:33.185Z",
                          "shouldUpdateCard": true,
                          "accountUpdaterStatus": "isExcluded",
                          "lastAccountUpdaterUpdate": "cardNumber",
                          "pauseAccountUpdater": false
                        }
                      ],
                      "random-nnnn": "6fec4a03-3a9f-40de-90bc-23a513ac904c"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          }
        },
        "summary": "View card tokens"
      }
    },
    "/pay/v3/processFromTerminal": {
      "post": {
        "description": "Initiates a transaction through a terminal through the Nexio API rather than using the retail iframe. For more information on how to use this endpoint, see the steps in [Processing a transaction with a terminal](doc:processing-a-transaction-with-a-terminal) in Guides.\n\nYou can also specify to save the card token from the terminal transaction so that you can use it for future transactions (through the [Run card transaction](ref:runcardtransaction) endpoint).\n\n<!-- theme: warning -->\n> ⚠️ Try It\n> \n> To use the Try It feature for this endpoint, you must use the credentials for your [Sandbox API user](doc:sandbox-environments). \n> \n> You must also have a terminal connected to the Nexio account. For more information, see the [Pair terminal](ref:pairterminal) or [Register terminal](ref:registerterminal) endpoints.\n\n<div style=\"display:none;\">\n\n## Request parameters\n- data\n- data.amount\n- data.currency\n- data.customFields\n- data.customer\n- data.customer.customerRef\n- data.customer.orderNumber\n- data.customer.orderDate\n- data.customer.invoice\n- data.customer.firstName\n- data.customer.lastName\n- data.customer.birthDate\n- data.customer.nationalIdentificationNumber\n- data.customer.email\n- data.customer.phone\n- data.customer.billToAddressOne\n- data.customer.billToAddressTwo\n- data.customer.billToCity\n- data.customer.billToState\n- data.customer.billToPostal\n- data.customer.billToCountry\n- data.customer.billToPhone\n- data.customer.shipToAddressOne\n- data.customer.shipToAddressTwo\n- data.customer.shipToCity\n- data.customer.shipToState\n- data.customer.shipToPostal\n- data.customer.shipToCountry\n- data.customer.shipToPhone\n- data.description\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- terminalId\n- processingOptions.saveCardToken\n- isAuthOnly\n- card\n- card.cardHolderName\n\n## Response parameters\n- terminalRequestId\n- terminalRequestStatus\n\n</div>",
        "operationId": "ProcessTransactionFromTerminal",
        "tags": [
          "Retail"
        ],
        "security": [
          {
            "Basic_Authentication": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "terminalId",
                  "data"
                ],
                "properties": {
                  "terminalId": {
                    "type": "string",
                    "title": "terminalId",
                    "example": "eyJtZXJjaGFudElkIjoiMTAxMDM5IiwiZ2F0ZXdhLi41ZWU3IiwidGVybWluYWwiOnsiaUxIn19",
                    "x-tags": [
                      "component"
                    ],
                    "description": "An ID used to identify a specific terminal. For a list of terminal IDs, see the [View terminal list](ref:viewterminallist) endpoint."
                  },
                  "data": {
                    "type": "object",
                    "title": "data",
                    "description": "Transaction and customer data.",
                    "x-tags": [
                      "object"
                    ],
                    "required": [
                      "amount"
                    ],
                    "properties": {
                      "amount": {
                        "type": "number",
                        "title": "amount",
                        "x-tags": [
                          "component"
                        ],
                        "description": "The amount. The maximum value has 16 digits total, including up to two of those digits after the decimal point.",
                        "example": 9.99
                      },
                      "currency": {
                        "$ref": "#/paths/~1pay~1v3~1capture/post/responses/200/content/application~1json/schema/properties/currency"
                      },
                      "customer": {
                        "title": "customer",
                        "type": "object",
                        "description": "Customer information for the retail transaction.",
                        "x-tags": [
                          "object"
                        ],
                        "properties": {
                          "orderNumber": {
                            "title": "orderNumber",
                            "type": "string",
                            "description": "The order number from the transaction.",
                            "example": "210058A-1",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "customerRef": {
                            "$ref": "#/paths/~1subscription~1v3~1%7Bid%7D/put/responses/200/content/application~1json/schema/properties/customerRef"
                          },
                          "orderDate": {
                            "title": "orderDate",
                            "type": "string",
                            "description": "The date of the customer's order. This field is required by certain gateways. For information on gateway-specific required fields, see the [Connections](doc:connections) documentation.\n\nUse any of the following formats for the date:\n- Four-digit year, two-digit month and day, separated with hyphens: YYYY-MM-DD.<br>For example, `2021-08-26`.\n- [ISO-8601](https://www.iso.org/iso-8601-date-and-time-format.html) date expressed in UTC. It must include the 3 decimal places for milliseconds.<br>For example, `2001-08-26T13:35:00.978Z` or `1990-12-05T00:00:00.000Z`.\n- UNIX date (as an integer representing seconds).<br>For example, `1630006518`.\n\n<!-- theme:info -->\n> #### Note\n> This is NOT a quick way to schedule a transaction. Specifying a date in the future does not cause the order to be run automatically at the indicated date or time.",
                            "example": "2021-08-26",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "invoice": {
                            "title": "invoice",
                            "type": "string",
                            "description": "The invoice number from the transaction.",
                            "example": "IN0001",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "firstName": {
                            "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/data/properties/customer/properties/firstName"
                          },
                          "lastName": {
                            "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/data/properties/customer/properties/lastName"
                          },
                          "birthDate": {
                            "type": "string",
                            "title": "birthDate",
                            "description": "The customer's date of birth.\n\nUse any of the following formats for the date:\n- Four-digit year, two-digit month and day, separated with hyphens: YYYY-MM-DD.<br>For example, `2001-08-26`.\n- [ISO-8601](https://www.iso.org/iso-8601-date-and-time-format.html) date expressed in UTC. It must include the 3 decimal places for milliseconds.<br>For example, `2001-08-26T13:35:00.978Z` or `1990-12-05T00:00:00.000Z`.\n- UNIX date (as an integer representing seconds).<br>For example, `998854500`.",
                            "example": "1990-12-05",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "nationalIdentificationNumber": {
                            "type": "string",
                            "title": "nationalIdentificationNumber",
                            "description": "The identification number issued by a national authority to the individual person, such as social security number.\n\nThis field is required by certain gateways. For information on gateway-specific required fields, see the [Connections](doc:connections) documentation.\n\nThe following list provides information about potential identification sources:\n- **Brazil:** CPF or CNPJ. \n - **Chile:** RUN for individual users and RUT for companies \n - **Colombia:** For individual users CC (Cédula de ciudadanía), CE (Cédula de Extranjería) and TI (Targeta de Identidad) and for companies NIT \n - **Mexico:** RFC and CURP (individual user) and RFC (legal entity/company)",
                            "x-tags": [
                              "component"
                            ],
                            "example": "5471300000000003"
                          },
                          "email": {
                            "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/data/properties/customer/properties/email"
                          },
                          "phone": {
                            "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/data/properties/customer/properties/phone"
                          },
                          "billToAddressOne": {
                            "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/data/properties/customer/properties/billToAddressOne"
                          },
                          "billToAddressTwo": {
                            "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/data/properties/customer/properties/billToAddressTwo"
                          },
                          "billToCity": {
                            "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/data/properties/customer/properties/billToCity"
                          },
                          "billToState": {
                            "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/data/properties/customer/properties/billToState"
                          },
                          "billToPostal": {
                            "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/data/properties/customer/properties/billToPostal"
                          },
                          "billToCountry": {
                            "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/data/properties/customer/properties/billToCountry"
                          },
                          "billToPhone": {
                            "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/data/properties/customer/properties/billToPhone"
                          },
                          "shipToAddressOne": {
                            "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/data/properties/customer/properties/shipToAddressOne"
                          },
                          "shipToAddressTwo": {
                            "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/data/properties/customer/properties/shipToAddressTwo"
                          },
                          "shipToCity": {
                            "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/data/properties/customer/properties/shipToCity"
                          },
                          "shipToState": {
                            "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/data/properties/customer/properties/shipToState"
                          },
                          "shipToPostal": {
                            "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/data/properties/customer/properties/shipToPostal"
                          },
                          "shipToCountry": {
                            "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/data/properties/customer/properties/shipToCountry"
                          },
                          "shipToPhone": {
                            "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/data/properties/customer/properties/shipToPhone"
                          }
                        }
                      },
                      "customFields": {
                        "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/data/properties/customFields"
                      },
                      "description": {
                        "type": "string",
                        "title": "description",
                        "description": "A description of the transaction.",
                        "example": "[Description of the transaction]",
                        "x-tags": [
                          "component"
                        ]
                      },
                      "lodging": {
                        "title": "lodging",
                        "type": "object",
                        "description": "Lodging data (related to hotels, motels, inns, etc.).\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.",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "checkInDate": {
                            "type": "string",
                            "title": "checkInDate",
                            "description": "The customer's check-in date. Format YYYY-MM-DD.",
                            "x-tags": [
                              "component"
                            ],
                            "example": "2026-01-05"
                          },
                          "checkOutDate": {
                            "type": "string",
                            "title": "checkOutDate",
                            "description": "The customer's check-out date. Format YYYY-MM-DD.",
                            "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.",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "roomNumber": {
                            "type": "number",
                            "title": "roomNumber",
                            "description": "The customer's room number.",
                            "example": 14,
                            "x-tags": [
                              "component"
                            ]
                          },
                          "roomRate": {
                            "type": "number",
                            "title": "roomRate",
                            "description": "The room's rate, per day.",
                            "example": 143.99,
                            "x-tags": [
                              "component"
                            ]
                          }
                        }
                      }
                    }
                  },
                  "card": {
                    "title": "card",
                    "type": "object",
                    "description": "Card information.",
                    "x-tags": [
                      "object"
                    ],
                    "properties": {
                      "cardHolderName": {
                        "title": "cardHolderName",
                        "type": "string",
                        "description": "The cardholder's name as it appears on the card. If saving the card token, this value is saved in the card token.",
                        "example": "John H Doe",
                        "x-tags": [
                          "component"
                        ]
                      }
                    }
                  },
                  "isAuthOnly": {
                    "title": "isAuthOnly",
                    "type": "boolean",
                    "description": "Set to `true` to run an auth only transaction for the terminal.",
                    "default": false,
                    "x-tags": [
                      "component"
                    ]
                  },
                  "clientIp": {
                    "type": "string",
                    "title": "clientIp",
                    "description": "Specifies the IP address of where the request is coming from.",
                    "example": "112.345.6.78",
                    "x-tags": [
                      "component"
                    ]
                  },
                  "processingOptions": {
                    "title": "processingOptions",
                    "type": "object",
                    "description": "Processing options for terminal transactions.",
                    "x-tags": [
                      "object"
                    ],
                    "properties": {
                      "saveCardToken": {
                        "title": "saveCardToken",
                        "type": "boolean",
                        "description": "For a retail transaction using a terminal (such as with the [Process transaction from terminal](ref:processtransactionfromterminal) endpoint or with the \"Card (terminal)\" option through the retail iframe), set this value to `true` to return a token that you can use for a future transaction.\n\nTo retrieve the saved token, use the [\"success\" listener event](doc:adding-an-event-listener), the [webhook](doc:webhooks) from the transaction, or the [View terminal transaction status](ref:viewterminaltransactionstatus) endpoint.\n\nTo run a transaction in the future with the saved token, use the [Run card transaction](ref:runcardtransaction) endpoint.",
                        "default": false,
                        "x-tags": [
                          "component"
                        ]
                      }
                    }
                  }
                }
              },
              "examples": {
                "Required parameters": {
                  "value": {
                    "terminalId": "eyJtZXJjaGFudElkIjoiMTAxMDM5IiwiZ2F0ZXdhLi41ZWU3IiwidGVybWluYWwiOnsiaUxIn19",
                    "data": {
                      "amount": 29.99
                    }
                  }
                },
                "Required parameters for saveCardToken": {
                  "value": {
                    "terminalId": "eyJtZXJjaGFudElkIjoiMTAxMDM5IiwiZ2F0ZXdhLi41ZWU3IiwidGVybWluYWwiOnsiaUxIn19",
                    "data": {
                      "amount": 29.99
                    },
                    "processingOptions": {
                      "saveCardToken": true
                    }
                  }
                },
                "All parameters": {
                  "value": {
                    "terminalId": "eyJtZXJjaGFudElkIjoiMTAxMDM5IiwiZ2F0ZXdhLi41ZWU3IiwidGVybWluYWwiOnsiaUxIn19",
                    "data": {
                      "amount": 9.99,
                      "currency": "USD",
                      "customer": {
                        "customerRef": "RP006",
                        "orderNumber": "210058A-1",
                        "orderDate": "2021-08-26",
                        "invoice": "IN0001",
                        "firstName": "John",
                        "lastName": "Doe",
                        "birthDate": "1990-12-05",
                        "nationalIdentificationNumber": "5471300000000003",
                        "email": "jdoe@example.com",
                        "phone": "1555555555",
                        "billToAddressOne": "2147 West Silverlake Drive",
                        "billToAddressTwo": "Apt 42",
                        "billToCity": "Scranton",
                        "billToState": "PA",
                        "billToPostal": "18503",
                        "billToCountry": "US",
                        "billToPhone": "1555555555",
                        "shipToAddressOne": "1725 Slough Avenue",
                        "shipToAddressTwo": "Suite 200",
                        "shipToCity": "Scranton",
                        "shipToState": "PA",
                        "shipToPostal": "18505",
                        "shipToCountry": "US",
                        "shipToPhone": "1555555555"
                      },
                      "customFields": {
                        "exampleKey": "Example string",
                        "exampleRefNumber": "094785"
                      },
                      "description": "[Description of the transaction]",
                      "lodging": {
                        "advanceDeposit": true,
                        "checkInDate": "2026-01-05",
                        "checkOutDate": "2026-01-08",
                        "noShow": true,
                        "roomNumber": 14,
                        "roomRate": 143.99
                      }
                    },
                    "card": {
                      "cardHolderName": "John H Doe"
                    },
                    "isAuthOnly": false,
                    "clientIp": "112.345.6.78",
                    "processingOptions": {
                      "saveCardToken": false
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "terminalRequestId": {
                      "title": "terminalRequestId",
                      "type": "string",
                      "description": "An ID used to identify a transaction initiated using a terminal.",
                      "example": "64ea267f-2766-49b8-9e0e-aeb91b2fe722",
                      "x-tags": [
                        "component"
                      ]
                    },
                    "terminalRequestStatus": {
                      "title": "terminalRequestStatus",
                      "type": "string",
                      "description": "The status of the request to the terminal. This is not the same as the `transactionStatus`. For example, the `terminalRequestStatus` can be `success` but the `transactionStatus` can be `declined` because the system successfully sent and received a response from the terminal even though the gateway connection declined the payment.",
                      "example": "initialized",
                      "x-tags": [
                        "component"
                      ],
                      "enum": [
                        "initialized",
                        "pending",
                        "success",
                        "failed"
                      ]
                    },
                    "random": {
                      "$ref": "#/paths/~1card~1v3/get/responses/200/content/application~1json/schema/properties/random-nnnn"
                    }
                  }
                },
                "examples": {
                  "Example response": {
                    "value": {
                      "terminalRequestId": "64ea267f-2766-49b8-9e0e-aeb91b2fe722",
                      "terminalRequestStatus": "initialized"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          }
        },
        "summary": "Process transaction from terminal"
      }
    },
    "/subscription/v3": {
      "post": {
        "description": "<!-- theme: warning -->\n> 🛑 Important\n> \n> Nexio does not currently recommend using the Subscription service for a 3DS flow. For other options, see [Getting started with subscriptions](doc:getting-started-with-subscriptions) in Guides.\n> \n\nCreates a recurring payment as a subscription or payment plan. For guides to using this endpoint, see the [Recurring billing overview](doc:recurring-billing-overview) topic.\n\nA successful request to this endpoint processes an initial transaction using a saved card token and schedules recurring transactions. All transactions are processed with the values provided in the `payment` object or the [data saved in the card token](doc:what-data-is-saved-with-tokens). The scheduled transaction runs according to the values provided in the `schedule` object.\n\nAlso, in order to have a customer skip a month for an existing subscription or payment plan, you need to delete the current one and then recreate it to start with an `initialBillingAmount` of `0` and have the `dateInitialBillingEnd` happen a month before the next scheduled payment.\n\n<!-- theme: info -->\n> 📘 Note\n> \n> If the initial transaction is declined, the subscription or payment plan will not be created. It must be re-created with a new card token.\n>\n> After the subscription or payment plan is created, if a subsequent transaction gets declined or has an error, the system retries the transaction up to three times, one minute apart. On the third failure, the system stops trying for that installment, the subscription or payment plan remains active, and the system tries again at the next scheduled payment date. In this instance, the merchant would need to contact the customer about the missed payment or transaction. Also, if you have webhooks configured, you will receive a webhook for each of the failures. For additional information about this, see the [Creating a Nexio-scheduled card subscription](doc:creating-a-subscription) or [Creating a Nexio-scheduled card payment plan](doc:creating-a-pay-plan) tutorial.\n> \n> However, with [Decline recovery](doc:decline-recovery-overview) and when the subscription or payment plan was created with the `retryOnSoftDecline` parameter, instead of doing the three retries at a minute apart, the system retries according to the recommendation received from the Decline recovery system.\n\n<!-- theme: warning -->\n> 🛑 Important\n> \n> When needing to use a 3DS flow to create a subscription, you must first run a customer-facing transaction where the customer proceeds through the 3DS flow (see the [Using 3DS to run transactions](doc:using-3ds-to-run-transactions) tutorial). Make sure you use a `paymentType` of `initialScheduled` and also save the card token as part of the process. \n> \n> Then, use this endpoint to create the subscription with that saved card token and a `paymentType` of `scheduled`.\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 a saved card token in the `tokenex.token` parameter, the amount and currency for the transaction, the payment type, and a customer reference number. You can also include the appropriate subscription parameters.\n\n<div style=\"display:none;\">\n\n## Request parameters\n- payment\n- payment.tokenex\n- payment.tokenex.token\n- payment.tokenex.firstSix\n- payment.tokenex.lastFour\n- payment.isAuthOnly\n- payment.shouldUpdateCard\n- payment.processingOptions\n- payment.processingOptions.saveCardToken\n- payment.processingOptions.retryOnSoftDecline\n- payment.processingOptions.checkFraud\n- payment.processingOptions.shouldUseFingerprint\n- payment.processingOptions.check3ds\n- payment.processingOptions.verboseResponse\n- payment.processingOptions.paymentType\n- payment.processingOptions.paymentOptionTag\n- payment.processingOptions.merchantId\n- payment.processingOptions.customerRedirectUrl\n- payment.data\n- payment.data.amount\n- payment.data.currency\n- payment.data.settlementCurrency\n- payment.data.customer\n- payment.data.customer.customerRef\n- payment.data.customer.invoice\n- payment.data.customer.orderNumber\n- payment.data.customer.orderDate\n- payment.data.customer.birthDate\n- payment.data.customer.nationalIdentificationNumber\n- payment.data.customer.companyName\n- payment.data.customer.firstName\n- payment.data.customer.lastName\n- payment.data.customer.email\n- payment.data.customer.phone\n- payment.data.customer.billToAddressOne\n- payment.data.customer.billToAddressTwo\n- payment.data.customer.billToCity\n- payment.data.customer.billToState\n- payment.data.customer.billToPostal\n- payment.data.customer.billToCountry\n- payment.data.customer.billToPhone\n- payment.data.customer.shipToAddressOne\n- payment.data.customer.shipToAddressTwo\n- payment.data.customer.shipToCity\n- payment.data.customer.shipToState\n- payment.data.customer.shipToPostal\n- payment.data.customer.shipToCountry\n- payment.data.customer.shipToPhone\n- payment.data.customer.createdAtDate\n- schedule\n- schedule.interval\n- schedule.intervalCount\n- schedule.balance\n- schedule.duration\n- schedule.dateInitialBillingEnd\n- schedule.intialBillingAmount\n- schedule.dateCancelAfter\n\n## Response parameters\n- customerRef\n- active\n- accountId\n- id\n- payment\n- payment.tokenex\n- payment.tokenex.token\n- payment.tokenex.firstSix\n- payment.tokenex.lastFour\n- payment.shouldUpdateCard\n- payment.isAuthOnly\n- payment.processingOptions\n- payment.processingOptions.saveCardToken\n- payment.processingOptions.retryOnSoftDecline\n- payment.processingOptions.checkFraud\n- payment.processingOptions.shouldUseFingerprint\n- payment.processingOptions.check3ds\n- payment.processingOptions.verboseResponse\n- payment.processingOptions.paymentType\n- payment.processingOptions.paymentOptionTag\n- payment.processingOptions.merchantId\n- payment.processingOptions.customerRedirectUrl\n- payment.data\n- payment.data.amount\n- payment.data.currency\n- payment.data.settlementCurrency\n- payment.data.customer\n- payment.data.customer.customerRef\n- payment.data.customer.invoice\n- payment.data.customer.orderNumber\n- payment.data.customer.orderDate\n- payment.data.customer.birthDate\n- payment.data.customer.nationalIdentificationNumber\n- payment.data.customer.companyName\n- payment.data.customer.firstName\n- payment.data.customer.lastName\n- payment.data.customer.email\n- payment.data.customer.phone\n- payment.data.customer.billToAddressOne\n- payment.data.customer.billToAddressTwo\n- payment.data.customer.billToCity\n- payment.data.customer.billToState\n- payment.data.customer.billToPostal\n- payment.data.customer.billToCountry\n- payment.data.customer.billToPhone\n- payment.data.customer.shipToAddressOne\n- payment.data.customer.shipToAddressTwo\n- payment.data.customer.shipToCity\n- payment.data.customer.shipToState\n- payment.data.customer.shipToPostal\n- payment.data.customer.shipToCountry\n- payment.data.customer.shipToPhone\n- payment.data.customer.createdAtDate\n- schedule\n- schedule.interval\n- schedule.intervalCount\n- schedule.initialBalance\n- schedule.balance\n- schedule.duration\n- schedule.dateInitialBillingEnd\n- schedule.intialBillingAmount\n- schedule.dateCancelAfter\n- schedule.scheduleType\n- userName\n- dateCreated\n- dateLastModified\n- dateLastRun\n- dateNextRun\n- paymentResult\n- paymentResult.amount\n- paymentResult.authCode\n- paymentResult.transactionStatus\n- paymentResult.transactionDate\n- paymentResult.transactionType\n- paymentResult.merchantId\n- paymentResult.currency\n- paymentResult.id\n- paymentResult.asyncTraceId\n- paymentResult.redirectUrl\n- paymentResult.message\n- paymentResult.status\n- paymentResult.gatewayResponse\n- paymentResult.gatewayResponse.gatewayName\n- paymentResult.gatewayResponse.refNumber\n- paymentResult.data\n- paymentResult.data.amount\n- paymentResult.data.currency\n- paymentResult.data.settlementCurrency\n- paymentResult.data.customer\n- paymentResult.data.customer.customerRef\n- paymentResult.data.customer.orderNumber\n- paymentResult.data.customer.orderDate\n- paymentResult.data.customer.invoice\n- paymentResult.data.customer.birthDate\n- paymentResult.data.customer.nationalIdentificationNumber\n- paymentResult.data.customer.companyName\n- paymentResult.data.customer.firstName\n- paymentResult.data.customer.lastName\n- paymentResult.data.customer.email\n- paymentResult.data.customer.phone\n- paymentResult.data.customer.billToAddressOne\n- paymentResult.data.customer.billToAddressTwo\n- paymentResult.data.customer.billToCity\n- paymentResult.data.customer.billToState\n- paymentResult.data.customer.billToPostal\n- paymentResult.data.customer.billToCountry\n- paymentResult.data.customer.billToPhone\n- paymentResult.data.customer.shipToAddressOne\n- paymentResult.data.customer.shipToAddressTwo\n- paymentResult.data.customer.shipToCity\n- paymentResult.data.customer.shipToState\n- paymentResult.data.customer.shipToPostal\n- paymentResult.data.customer.shipToCountry\n- paymentResult.data.customer.shipToPhone\n- paymentResult.data.customer.createdAt\n- paymentResult.card\n- paymentResult.card.cardHolder\n- paymentResult.card.cardNumber\n- paymentResult.card.expirationMonth\n- paymentResult.card.expirationYear\n- paymentResult.token\n- paymentResult.token.firstSix\n- paymentResult.token.lastFour\n- paymentResult.token.token\n- paymentResult.kountResponse\n- paymentResult.kountResponse.status\n- paymentResult.kountResponse.rules\n- lastPaymentStatus\n- lastSuccessfulPaymentDate\n- exp\n\n</div>",
        "operationId": "CreateSubscription",
        "tags": [
          "Subscriptions"
        ],
        "security": [
          {
            "Basic_Authentication": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "title": "Create subscription",
                    "type": "object",
                    "x-tags": [
                      "object"
                    ],
                    "description": "To create a subscription for Nexio to automatically run payments on a schedule, include at least an amount, currency, saved card token, payment type, and customer reference number.",
                    "properties": {
                      "payment": {
                        "title": "payment",
                        "type": "object",
                        "x-tags": [
                          "object"
                        ],
                        "description": "Payment information for the initial transaction and for recurring (scheduled) transactions.",
                        "required": [
                          "tokenex",
                          "data",
                          "processingOptions"
                        ],
                        "properties": {
                          "tokenex": {
                            "title": "token",
                            "type": "object",
                            "description": "A previously saved [card token](ref:savecardtoken). Card 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": {
                                "$ref": "#/paths/~1pay~1v3~1vault~1card~1%7BcardToken%7D/get/responses/200/content/application~1json/schema/properties/tokenex/properties/token"
                              },
                              "firstSix": {
                                "$ref": "#/paths/~1subscription~1v3/post/responses/200/content/application~1json/schema/properties/payment/properties/tokenex/properties/firstSix"
                              },
                              "lastFour": {
                                "$ref": "#/paths/~1subscription~1v3/post/responses/200/content/application~1json/schema/properties/payment/properties/tokenex/properties/lastFour"
                              }
                            },
                            "required": [
                              "token"
                            ]
                          },
                          "data": {
                            "title": "data",
                            "type": "object",
                            "description": "Transaction and customer data.",
                            "x-tags": [
                              "object"
                            ],
                            "properties": {
                              "amount": {
                                "title": "amount",
                                "type": "number",
                                "description": "The transaction amount to charge during the initial and each recurring transaction. The maximum value has 16 digits total, including up to two of those digits after the decimal point.",
                                "example": 9.95,
                                "x-tags": [
                                  "component"
                                ],
                                "minimum": 0
                              },
                              "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. This value cannot later be changed for an existing subscription or payment plan.",
                                "default": "USD",
                                "x-tags": [
                                  "component"
                                ],
                                "example": "EUR"
                              },
                              "customer": {
                                "title": "customer",
                                "type": "object",
                                "description": "Customer information for checking fraud or for use of the processing gateway, when applicable.",
                                "x-tags": [
                                  "object"
                                ],
                                "properties": {
                                  "customerRef": {
                                    "title": "customerRef",
                                    "type": "string",
                                    "description": "Customer identifier. You must use this field to pass a customer ID to manage user subscriptions. This value cannot later be changed for an existing subscription or payment plan.",
                                    "example": "RP006",
                                    "x-tags": [
                                      "component"
                                    ]
                                  },
                                  "orderNumber": {
                                    "$ref": "#/paths/~1subscription~1v3~1%7Bid%7D/put/requestBody/content/application~1json/schema/properties/payment/properties/data/properties/customer/properties/orderNumber"
                                  },
                                  "orderDate": {
                                    "$ref": "#/paths/~1subscription~1v3~1%7Bid%7D/put/requestBody/content/application~1json/schema/properties/payment/properties/data/properties/customer/properties/orderDate"
                                  },
                                  "invoice": {
                                    "$ref": "#/paths/~1subscription~1v3~1%7Bid%7D/put/requestBody/content/application~1json/schema/properties/payment/properties/data/properties/customer/properties/invoice"
                                  },
                                  "firstName": {
                                    "$ref": "#/paths/~1subscription~1v3~1%7Bid%7D/put/requestBody/content/application~1json/schema/properties/payment/properties/data/properties/customer/properties/firstName"
                                  },
                                  "lastName": {
                                    "$ref": "#/paths/~1subscription~1v3~1%7Bid%7D/put/requestBody/content/application~1json/schema/properties/payment/properties/data/properties/customer/properties/lastName"
                                  },
                                  "birthDate": {
                                    "$ref": "#/paths/~1subscription~1v3~1%7Bid%7D/put/requestBody/content/application~1json/schema/properties/payment/properties/data/properties/customer/properties/birthDate"
                                  },
                                  "nationalIdentificationNumber": {
                                    "$ref": "#/paths/~1pay~1v3~1processFromTerminal/post/requestBody/content/application~1json/schema/properties/data/properties/customer/properties/nationalIdentificationNumber"
                                  },
                                  "email": {
                                    "$ref": "#/paths/~1subscription~1v3/post/responses/200/content/application~1json/schema/properties/payment/properties/data/properties/customer/properties/email"
                                  },
                                  "phone": {
                                    "$ref": "#/paths/~1subscription~1v3/post/responses/200/content/application~1json/schema/properties/payment/properties/data/properties/customer/properties/phone"
                                  },
                                  "companyName": {
                                    "$ref": "#/paths/~1subscription~1v3/post/responses/200/content/application~1json/schema/properties/payment/properties/data/properties/customer/properties/companyName"
                                  },
                                  "billToAddressOne": {
                                    "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/data/properties/customer/properties/billToAddressOne"
                                  },
                                  "billToAddressTwo": {
                                    "$ref": "#/paths/~1subscription~1v3~1%7Bid%7D/put/requestBody/content/application~1json/schema/properties/payment/properties/data/properties/customer/properties/billToAddressTwo"
                                  },
                                  "billToCity": {
                                    "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/data/properties/customer/properties/billToCity"
                                  },
                                  "billToState": {
                                    "$ref": "#/paths/~1subscription~1v3~1%7Bid%7D/put/requestBody/content/application~1json/schema/properties/payment/properties/data/properties/customer/properties/billToState"
                                  },
                                  "billToPostal": {
                                    "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/data/properties/customer/properties/billToPostal"
                                  },
                                  "billToCountry": {
                                    "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/data/properties/customer/properties/billToCountry"
                                  },
                                  "billToPhone": {
                                    "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/data/properties/customer/properties/billToPhone"
                                  },
                                  "shipToAddressOne": {
                                    "$ref": "#/paths/~1subscription~1v3~1%7Bid%7D/put/requestBody/content/application~1json/schema/properties/payment/properties/data/properties/customer/properties/shipToAddressOne"
                                  },
                                  "shipToAddressTwo": {
                                    "$ref": "#/paths/~1subscription~1v3~1%7Bid%7D/put/requestBody/content/application~1json/schema/properties/payment/properties/data/properties/customer/properties/shipToAddressTwo"
                                  },
                                  "shipToCity": {
                                    "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/data/properties/customer/properties/shipToCity"
                                  },
                                  "shipToState": {
                                    "$ref": "#/paths/~1subscription~1v3~1%7Bid%7D/put/requestBody/content/application~1json/schema/properties/payment/properties/data/properties/customer/properties/shipToState"
                                  },
                                  "shipToPostal": {
                                    "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/data/properties/customer/properties/shipToPostal"
                                  },
                                  "shipToCountry": {
                                    "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/data/properties/customer/properties/shipToCountry"
                                  },
                                  "shipToPhone": {
                                    "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/data/properties/customer/properties/shipToPhone"
                                  },
                                  "createdAtDate": {
                                    "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/data/properties/customer/properties/createdAtDate"
                                  }
                                },
                                "required": [
                                  "customerRef"
                                ]
                              },
                              "settlementCurrency": {
                                "$ref": "#/paths/~1pay~1v3~1processECheck/post/requestBody/content/application~1json/schema/properties/data/properties/settlementCurrency"
                              }
                            },
                            "required": [
                              "amount",
                              "currency",
                              "customer"
                            ]
                          },
                          "processingOptions": {
                            "$ref": "#/paths/~1subscription~1v3~1%7Bid%7D/put/requestBody/content/application~1json/schema/properties/payment/properties/processingOptions"
                          },
                          "isAuthOnly": {
                            "title": "isAuthOnly",
                            "type": "boolean",
                            "description": "Set to true to run an auth only transaction. (This applies to the initial transaction and scheduled transactions.)<br/>\n\n<!-- theme:info -->\n> #### Note\n> Auth only transactions must be captured in your own code base. To authorize and capture scheduled transactions set this value to `false`, or update it to `false` after the initial transaction has been processed",
                            "default": false,
                            "x-tags": [
                              "component"
                            ]
                          },
                          "shouldUpdateCard": {
                            "$ref": "#/paths/~1subscription~1v3~1%7Bid%7D/put/requestBody/content/application~1json/schema/properties/payment/properties/shouldUpdateCard"
                          }
                        }
                      },
                      "schedule": {
                        "title": "schedule",
                        "type": "object",
                        "description": "The schedule for recurring transactions.",
                        "x-tags": [
                          "object"
                        ],
                        "properties": {
                          "interval": {
                            "title": "interval",
                            "type": "string",
                            "description": "**Conditionally required**. The schedule's time period. If not specified in the request, the system uses `month` as the default.",
                            "default": "month",
                            "x-tags": [
                              "component"
                            ],
                            "enum": [
                              "day",
                              "week",
                              "month",
                              "year"
                            ]
                          },
                          "intervalCount": {
                            "title": "intervalCount",
                            "type": "integer",
                            "description": "**Conditionally required**. The number of times the `interval` will pass between transactions. The maximum schedule interval length is one year. An `intervalCount` of `0` means that only one transaction runs. This value must be greater than or equal to 0. If not specified in the request, the system defaults to `0`.\n\nSee the [subscription schedule examples table](doc:getting-started-with-subscriptions#subscription-schedule-examples-table) for examples of how the interval and interval count create the subscription schedule.",
                            "x-tags": [
                              "component"
                            ],
                            "default": 0,
                            "minimum": 0,
                            "example": 1
                          },
                          "duration": {
                            "type": "integer",
                            "title": "duration",
                            "description": "The anticipated number of transactions that may run for the subscription. This value is for information purposes because the system does not automatically end the subscription after the given number of transactions. Instead, use the `dateCancelAfter` parameter to end the subscription automatically.\n\nIf not included in the request, this value is not returned and the subscription runs indefinitely until the date indicated by `dateCancelAfter`, if a payment gets declined more than once, or manually ended.",
                            "example": 12,
                            "x-tags": [
                              "component"
                            ]
                          },
                          "dateCancelAfter": {
                            "$ref": "#/paths/~1subscription~1v3~1%7Bid%7D/put/requestBody/content/application~1json/schema/properties/schedule/properties/dateCancelAfter"
                          },
                          "initialBillingAmount": {
                            "$ref": "#/paths/~1subscription~1v3~1%7Bid%7D/put/requestBody/content/application~1json/schema/properties/schedule/properties/initialBillingAmount"
                          },
                          "dateInitialBillingEnd": {
                            "$ref": "#/paths/~1subscription~1v3~1%7Bid%7D/put/requestBody/content/application~1json/schema/properties/schedule/properties/dateInitialBillingEnd"
                          }
                        }
                      }
                    },
                    "required": [
                      "payment"
                    ]
                  },
                  {
                    "title": "Create payment plan",
                    "type": "object",
                    "x-tags": [
                      "object"
                    ],
                    "description": "Payment plans set recurring transactions to run until the pre-specified balance is paid in full. To create a payment plan, include at least a currency, saved card token, payment type, customer reference number, balance, interval, and interval count. If you don't have an amount, you must include a duration (number of payments); if you don't have a duration, you must include an amount. ",
                    "properties": {
                      "payment": {
                        "title": "payment",
                        "type": "object",
                        "x-tags": [
                          "object"
                        ],
                        "description": "Payment information for the initial transaction and for recurring (scheduled) payment plan transactions.",
                        "required": [
                          "tokenex",
                          "data",
                          "processingOptions"
                        ],
                        "properties": {
                          "tokenex": {
                            "$ref": "#/paths/~1subscription~1v3/post/requestBody/content/application~1json/schema/oneOf/0/properties/payment/properties/tokenex"
                          },
                          "data": {
                            "title": "data",
                            "type": "object",
                            "description": "Transaction and customer data for a payment plan.",
                            "x-tags": [
                              "object"
                            ],
                            "properties": {
                              "currency": {
                                "$ref": "#/paths/~1pay~1v3~1capture/post/responses/200/content/application~1json/schema/properties/currency"
                              },
                              "customer": {
                                "$ref": "#/paths/~1subscription~1v3/post/requestBody/content/application~1json/schema/oneOf/0/properties/payment/properties/data/properties/customer"
                              },
                              "amount": {
                                "title": "amount",
                                "type": "number",
                                "description": "**Conditionally required**. The transaction amount to charge during the initial and each recurring transaction for the payment plan. Either this parameter or `schedule.duration` is required. When not included, the system calculates the amount by dividing the `schedule.balance` by the `schedule.duration`. When this is included and the `schedule.duration` is not, the system calculates the duration by dividing the `schedule.balance` by `payment.data.amount`.\n\nThe maximum value has 16 digits total, including up to two of those digits after the decimal point.",
                                "example": 9.95,
                                "x-tags": [
                                  "component"
                                ],
                                "minimum": 0
                              },
                              "settlementCurrency": {
                                "$ref": "#/paths/~1pay~1v3~1processECheck/post/requestBody/content/application~1json/schema/properties/data/properties/settlementCurrency"
                              }
                            },
                            "required": [
                              "currency",
                              "customer"
                            ]
                          },
                          "processingOptions": {
                            "$ref": "#/paths/~1subscription~1v3~1%7Bid%7D/put/requestBody/content/application~1json/schema/properties/payment/properties/processingOptions"
                          },
                          "isAuthOnly": {
                            "$ref": "#/paths/~1subscription~1v3/post/requestBody/content/application~1json/schema/oneOf/0/properties/payment/properties/isAuthOnly"
                          },
                          "shouldUpdateCard": {
                            "$ref": "#/paths/~1subscription~1v3~1%7Bid%7D/put/requestBody/content/application~1json/schema/properties/payment/properties/shouldUpdateCard"
                          }
                        }
                      },
                      "schedule": {
                        "title": "schedule",
                        "type": "object",
                        "description": "The schedule for payment plan transactions. The schedule cannot later be changed for an existing payment plan.",
                        "x-tags": [
                          "object"
                        ],
                        "properties": {
                          "interval": {
                            "title": "interval",
                            "type": "string",
                            "description": "The schedule's time period.",
                            "example": "month",
                            "x-tags": [
                              "component"
                            ],
                            "enum": [
                              "day",
                              "week",
                              "month",
                              "year"
                            ]
                          },
                          "intervalCount": {
                            "title": "intervalCount",
                            "type": "integer",
                            "description": "The number of times the `interval` will pass between transactions. The maximum payment plan interval length is one year. An `intervalCount` of `0` means that only one transaction runs. This value must be greater than or equal to 0.\n\nSee the [subscription schedule examples table](doc:getting-started-with-subscriptions#subscription-schedule-examples-table) for examples of how the interval and interval count create the payment plan schedule.",
                            "x-tags": [
                              "component"
                            ],
                            "minimum": 0,
                            "example": 1
                          },
                          "balance": {
                            "type": "integer",
                            "title": "recurringBalance",
                            "description": "The total amount to be charged over the course of the pay plan.",
                            "example": 95,
                            "x-tags": [
                              "component"
                            ]
                          },
                          "duration": {
                            "type": "integer",
                            "title": "duration",
                            "description": "**Conditionally required**. The anticipated duration of the pay plan. This is the number of transactions that you plan to run before the pay plan terminates. Either this parameter or `payment.data.amount` is required. \n\nWhen not included, the system calculates the duration by dividing the `schedule.balance` by `payment.data.amount`. When this is included and the `payment.data.amount` is not, the system calculates the amount by dividing the `schedule.balance` by the `schedule.duration`. \n\nThis value is for information purposes or to determine the amount for each transaction. The balance and payment amount actually determine the total number of transactions that run.\n\n**Note:** It is possible for the `dateCancelAfter` date to stop the payment plan before the payment plan completes, leaving a balance. Therefore, you should be careful when including it.",
                            "example": 12,
                            "x-tags": [
                              "component"
                            ]
                          },
                          "dateCancelAfter": {
                            "$ref": "#/paths/~1subscription~1v3~1%7Bid%7D/put/requestBody/content/application~1json/schema/properties/schedule/properties/dateCancelAfter"
                          },
                          "initialBillingAmount": {
                            "$ref": "#/paths/~1subscription~1v3~1%7Bid%7D/put/requestBody/content/application~1json/schema/properties/schedule/properties/initialBillingAmount"
                          },
                          "dateInitialBillingEnd": {
                            "$ref": "#/paths/~1subscription~1v3~1%7Bid%7D/put/requestBody/content/application~1json/schema/properties/schedule/properties/dateInitialBillingEnd"
                          }
                        },
                        "required": [
                          "interval",
                          "intervalCount",
                          "balance"
                        ]
                      }
                    },
                    "required": [
                      "payment",
                      "schedule"
                    ]
                  }
                ]
              },
              "examples": {
                "Subscription required parameters": {
                  "value": {
                    "payment": {
                      "data": {
                        "amount": 9.95,
                        "currency": "USD",
                        "customer": {
                          "customerRef": "RP006"
                        }
                      },
                      "processingOptions": {
                        "paymentType": "initialScheduled"
                      },
                      "tokenex": {
                        "token": "eb50a022-d6de-4244-a1e6-dcb8522b2d19"
                      }
                    }
                  }
                },
                "Subscription all parameters": {
                  "value": {
                    "payment": {
                      "tokenex": {
                        "token": "6ee140a0-05d1-4958-8325-b38a690dbb9d",
                        "firstSix": "479300",
                        "lastFour": "3313"
                      },
                      "data": {
                        "amount": 15.99,
                        "currency": "USD",
                        "settlementCurrency": "USD",
                        "customer": {
                          "customerRef": "RP006",
                          "orderDate": "2021-08-26",
                          "orderNumber": "210058A",
                          "invoice": "IN0001",
                          "firstName": "John",
                          "lastName": "Doe",
                          "birthDate": "1990-12-05",
                          "createdAtDate": "2005-03-01",
                          "email": "jdoe@example.com",
                          "phone": "1555555555",
                          "billToAddressOne": "2147 West Silverlake Drive",
                          "billToAddressTwo": "Apt 42",
                          "billToCity": "Scranton",
                          "billToState": "PA",
                          "billToPostal": "18503",
                          "billToCountry": "US",
                          "billToPhone": "1555555555",
                          "shipToAddressOne": "1725 Slough Avenue",
                          "shipToAddressTwo": "Suite 200",
                          "shipToCity": "Scranton",
                          "shipToState": "PA",
                          "shipToPostal": "18505",
                          "shipToCountry": "US",
                          "shipToPhone": "1555555555"
                        }
                      },
                      "isAuthOnly": false,
                      "processingOptions": {
                        "paymentOptionTag": "nexio",
                        "check3ds": true,
                        "paymentType": "initialScheduled",
                        "customerRedirectUrl": "https://[your-ecommerce-website]",
                        "checkFraud": true,
                        "shouldUseFingerprint": false,
                        "retryOnSoftDecline": false,
                        "saveCardToken": false,
                        "merchantId": "000999",
                        "verboseResponse": true
                      },
                      "shouldUpdateCard": true
                    },
                    "schedule": {
                      "interval": "month",
                      "intervalCount": 1,
                      "initialBillingAmount": 8.99,
                      "dateInitialBillingEnd": "2023-09-01",
                      "dateCancelAfter": "2028-09-01",
                      "duration": 36
                    }
                  }
                },
                "Payment plan required parameters with amount": {
                  "value": {
                    "payment": {
                      "data": {
                        "amount": 9.95,
                        "currency": "USD",
                        "customer": {
                          "customerRef": "RP006"
                        }
                      },
                      "processingOptions": {
                        "paymentType": "initialScheduled"
                      },
                      "tokenex": {
                        "token": "eb50a022-d6de-4244-a1e6-dcb8522b2d19"
                      }
                    },
                    "schedule": {
                      "interval": "month",
                      "intervalCount": 1,
                      "balance": 500
                    }
                  }
                },
                "Payment plan required parameters with duration": {
                  "value": {
                    "payment": {
                      "data": {
                        "currency": "USD",
                        "customer": {
                          "customerRef": "RP006"
                        }
                      },
                      "processingOptions": {
                        "paymentType": "initialScheduled"
                      },
                      "tokenex": {
                        "token": "eb50a022-d6de-4244-a1e6-dcb8522b2d19"
                      }
                    },
                    "schedule": {
                      "interval": "month",
                      "intervalCount": 1,
                      "balance": 500,
                      "duration": 36
                    }
                  }
                },
                "Payment plan all parameters": {
                  "value": {
                    "payment": {
                      "tokenex": {
                        "token": "6ee140a0-05d1-4958-8325-b38a690dbb9d",
                        "firstSix": "479300",
                        "lastFour": "3313"
                      },
                      "data": {
                        "amount": 25,
                        "currency": "USD",
                        "settlementCurrency": "USD",
                        "customer": {
                          "customerRef": "RP006",
                          "orderDate": "2021-08-26",
                          "orderNumber": "210058A",
                          "invoice": "IN0001",
                          "firstName": "John",
                          "lastName": "Doe",
                          "birthDate": "1990-12-05",
                          "createdAtDate": "2005-03-01",
                          "email": "jdoe@example.com",
                          "phone": "1555555555",
                          "billToAddressOne": "2147 West Silverlake Drive",
                          "billToAddressTwo": "Apt 42",
                          "billToCity": "Scranton",
                          "billToState": "PA",
                          "billToPostal": "18503",
                          "billToCountry": "US",
                          "billToPhone": "1555555555",
                          "shipToAddressOne": "1725 Slough Avenue",
                          "shipToAddressTwo": "Suite 200",
                          "shipToCity": "Scranton",
                          "shipToState": "PA",
                          "shipToPostal": "18505",
                          "shipToCountry": "US",
                          "shipToPhone": "1555555555"
                        }
                      },
                      "isAuthOnly": false,
                      "processingOptions": {
                        "paymentOptionTag": "nexio",
                        "check3ds": true,
                        "paymentType": "initialScheduled",
                        "customerRedirectUrl": "https://[your-ecommerce-website]",
                        "checkFraud": true,
                        "shouldUseFingerprint": false,
                        "retryOnSoftDecline": false,
                        "saveCardToken": false,
                        "merchantId": "000999",
                        "verboseResponse": true
                      },
                      "shouldUpdateCard": true
                    },
                    "schedule": {
                      "interval": "month",
                      "intervalCount": 1,
                      "balance": 500,
                      "initialBillingAmount": 8.99,
                      "dateInitialBillingEnd": "2023-09-01",
                      "dateCancelAfter": "2028-09-01",
                      "duration": 36
                    }
                  }
                }
              }
            }
          },
          "description": ""
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "Details on the subscription schedule",
                  "properties": {
                    "customerRef": {
                      "title": "customerRef",
                      "type": "string",
                      "description": "Customer identifier. This value cannot later be changed for an existing subscription or payment plan.",
                      "example": "RP006",
                      "x-tags": [
                        "component"
                      ]
                    },
                    "active": {
                      "type": "boolean",
                      "title": "active",
                      "description": "Indicates whether the subscription or payment plan is currently active. When `false`, this indicates that the system will not attempt another transaction.",
                      "x-tags": [
                        "component"
                      ]
                    },
                    "accountId": {
                      "type": "string",
                      "title": "accountId",
                      "description": "The Nexio account number of the user who created the subscription or payment plan. You can also get this value from the response for the [Who am I](ref:whoami) endpoint.",
                      "example": "27592004",
                      "x-tags": [
                        "component"
                      ]
                    },
                    "id": {
                      "title": "id",
                      "type": "string",
                      "description": "The unique subscription identifier. You may want to save this value to your system for future tracking and management purposes.",
                      "example": "e80d63dd-a77b-407a-9124-42acf00740dd",
                      "x-tags": [
                        "component"
                      ]
                    },
                    "payment": {
                      "type": "object",
                      "description": "Payment information for future payments. To update this information, send a request to the [Update Subscription](ref:updatesubscription) endpoint",
                      "properties": {
                        "tokenex": {
                          "type": "object",
                          "description": "Card or echeck token information. Card or echeck tokens can be used to process through any MID on your account. They are not restricted to a specific merchant account or currency.",
                          "properties": {
                            "token": {
                              "title": "token",
                              "type": "string",
                              "description": "The card token that was used to process the initial transaction and that will be used for future transactions.",
                              "example": "eb50a022-d6de-4244-a1e6-dcb8522b2d19",
                              "x-tags": [
                                "component"
                              ]
                            },
                            "firstSix": {
                              "type": "string",
                              "title": "firstSix",
                              "description": "The first six digits of the card number.",
                              "x-tags": [
                                "component"
                              ],
                              "example": "479300"
                            },
                            "lastFour": {
                              "type": "string",
                              "title": "lastFour",
                              "description": "The last four digits of the card number.",
                              "x-tags": [
                                "component"
                              ],
                              "example": "3313"
                            }
                          }
                        },
                        "data": {
                          "title": "data",
                          "type": "object",
                          "description": "Transaction and customer data.",
                          "x-tags": [
                            "object"
                          ],
                          "properties": {
                            "amount": {
                              "$ref": "#/paths/~1pay~1v3~1processFromTerminal~1%7BterminalRequestId%7D/get/responses/200/content/application~1json/schema/properties/amount"
                            },
                            "currency": {
                              "$ref": "#/paths/~1apm~1v3~1process/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": {
                              "title": "customer",
                              "type": "object",
                              "description": "Customer information returned when checking fraud or from the processing gateway, when applicable.",
                              "x-tags": [
                                "object"
                              ],
                              "properties": {
                                "customerRef": {
                                  "$ref": "#/paths/~1subscription~1v3/post/responses/200/content/application~1json/schema/properties/customerRef"
                                },
                                "orderNumber": {
                                  "$ref": "#/paths/~1pay~1v3~1processFromTerminal/post/requestBody/content/application~1json/schema/properties/data/properties/customer/properties/orderNumber"
                                },
                                "orderDate": {
                                  "$ref": "#/paths/~1pay~1v3~1vault~1echeck~1%7BecheckToken%7D/get/responses/200/content/application~1json/schema/properties/data/properties/customer/properties/orderDate"
                                },
                                "invoice": {
                                  "$ref": "#/paths/~1pay~1v3~1processFromTerminal/post/requestBody/content/application~1json/schema/properties/data/properties/customer/properties/invoice"
                                },
                                "firstName": {
                                  "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/data/properties/customer/properties/firstName"
                                },
                                "lastName": {
                                  "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/data/properties/customer/properties/lastName"
                                },
                                "birthDate": {
                                  "title": "birthDateSubscriptionResponse",
                                  "type": "string",
                                  "description": "The customer's date of birth. The format returned matches the format used in the request that [created the subscription](ref:createsubscription).",
                                  "example": "1990-12-05",
                                  "x-tags": [
                                    "component"
                                  ]
                                },
                                "nationalIdentificationNumber": {
                                  "type": "string",
                                  "title": "nationalIdentificationNumber",
                                  "description": "The identification number issued by a national authority to the individual person, such as social security number.\n\nThe following list provides information about potential identification sources:\n- **Brazil:** CPF or CNPJ. \n - **Chile:** RUN for individual users and RUT for companies \n - **Colombia:** For individual users CC (Cédula de ciudadanía), CE (Cédula de Extranjería) and TI (Targeta de Identidad) and for companies NIT \n - **Mexico:** RFC and CURP (individual user) and RFC (legal entity/company)",
                                  "x-tags": [
                                    "component"
                                  ],
                                  "example": "5471300000000003"
                                },
                                "email": {
                                  "type": "string",
                                  "title": "email",
                                  "description": "The customer's email address.",
                                  "example": "jdoe@example.com",
                                  "x-tags": [
                                    "component"
                                  ]
                                },
                                "phone": {
                                  "title": "phone",
                                  "type": "string",
                                  "description": "The customer's phone number.",
                                  "example": "1555555555",
                                  "x-tags": [
                                    "component"
                                  ]
                                },
                                "companyName": {
                                  "title": "companyName",
                                  "type": "string",
                                  "description": "The name of the company associated with the customer account, if applicable.",
                                  "example": "Paper Company",
                                  "x-tags": [
                                    "component"
                                  ]
                                },
                                "billToAddressOne": {
                                  "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/data/properties/customer/properties/billToAddressOne"
                                },
                                "billToAddressTwo": {
                                  "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/data/properties/customer/properties/billToAddressTwo"
                                },
                                "billToCity": {
                                  "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/data/properties/customer/properties/billToCity"
                                },
                                "billToState": {
                                  "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/data/properties/customer/properties/billToState"
                                },
                                "billToPostal": {
                                  "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/data/properties/customer/properties/billToPostal"
                                },
                                "billToCountry": {
                                  "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/data/properties/customer/properties/billToCountry"
                                },
                                "billToPhone": {
                                  "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/data/properties/customer/properties/billToPhone"
                                },
                                "shipToAddressOne": {
                                  "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/data/properties/customer/properties/shipToAddressOne"
                                },
                                "shipToAddressTwo": {
                                  "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/data/properties/customer/properties/shipToAddressTwo"
                                },
                                "shipToCity": {
                                  "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/data/properties/customer/properties/shipToCity"
                                },
                                "shipToState": {
                                  "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/data/properties/customer/properties/shipToState"
                                },
                                "shipToPostal": {
                                  "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/data/properties/customer/properties/shipToPostal"
                                },
                                "shipToCountry": {
                                  "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/data/properties/customer/properties/shipToCountry"
                                },
                                "shipToPhone": {
                                  "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/200/content/application~1json/schema/properties/data/properties/customer/properties/shipToPhone"
                                },
                                "createdAtDate": {
                                  "title": "createdAtDateResponse",
                                  "type": "string",
                                  "description": "The date the customer was created in your system. The format returned matches the format used in the request.",
                                  "example": "2005-03-01",
                                  "x-tags": [
                                    "component"
                                  ]
                                }
                              }
                            }
                          }
                        },
                        "shouldUpdateCard": {
                          "title": "shouldUpdateCard",
                          "type": "boolean",
                          "description": "The card's account updater [enrollment tag](doc:checking-a-cards-enrollment-tag).",
                          "default": true,
                          "x-tags": [
                            "component"
                          ]
                        },
                        "isAuthOnly": {
                          "title": "isAuthOnly",
                          "type": "boolean",
                          "description": "Will be `true` if the current and future transactions are set to authorize only. Will be `false` if they are set to authorize and capture.",
                          "default": false,
                          "x-tags": [
                            "component"
                          ]
                        },
                        "processingOptions": {
                          "title": "processingOptions",
                          "type": "object",
                          "description": "Processing options used in the current and for future transactions.",
                          "x-tags": [
                            "object"
                          ],
                          "properties": {
                            "paymentType": {
                              "type": "string",
                              "title": "paymentType",
                              "description": "Indicates the type of transaction that was processed. The value is used to flag initial and subsequent transactions, especially for [3D Secure transactions](doc:3d-secure-1).\n\nFor more information about this parameter and what the values mean, see the [Payment type (paymentType) reference table](doc:constant-transaction-values#payment-type-paymenttype) in Guides.",
                              "example": "initialScheduled",
                              "x-tags": [
                                "component"
                              ],
                              "enum": [
                                "initialScheduled",
                                "initialUnscheduled",
                                "scheduled",
                                "unscheduledCit",
                                "unscheduledMit",
                                "initialMoto"
                              ]
                            },
                            "paymentOptionTag": {
                              "title": "paymentOptionTag",
                              "type": "string",
                              "description": "Indicates the custom value used to route transactions to a specific gateway or merchant account.",
                              "example": "nexio",
                              "x-tags": [
                                "component"
                              ]
                            },
                            "saveCardToken": {
                              "title": "saveCardToken",
                              "type": "boolean",
                              "description": "Indicates whether the system saves a card token when each transaction runs.",
                              "x-tags": [
                                "component"
                              ]
                            },
                            "retryOnSoftDecline": {
                              "type": "boolean",
                              "title": "retryOnSoftDecline",
                              "x-tags": [
                                "component"
                              ],
                              "description": "Displays whether the transaction is enabled or disabled for [decline recovery](doc:recover). When the value is `true`, the transaction is enabled for decline recovery. Eligible declined transactions are automatically scheduled for retry according to the recommendation engine.",
                              "default": false
                            },
                            "checkFraud": {
                              "title": "checkFraud",
                              "type": "boolean",
                              "description": "Indicates whether the transaction was sent to Kount for fraud prevention. For additional information about fraud prevention, see [Kount verification](doc:kount-verification).",
                              "x-tags": [
                                "component"
                              ]
                            },
                            "shouldUseFingerprint": {
                              "title": "shouldUseFingerprint",
                              "type": "boolean",
                              "description": "Indicates whether a [device fingerprint](doc:device-fingerprinting) was created while saving a card token as part of the request.",
                              "x-tags": [
                                "component"
                              ]
                            },
                            "check3ds": {
                              "type": "boolean",
                              "title": "check3ds",
                              "description": "Indicates whether your system is equipped to handle a 3DS (three-domain secure) redirect flow being returned from the request.",
                              "example": true,
                              "x-tags": [
                                "component"
                              ]
                            },
                            "customerRedirectUrl": {
                              "type": "string",
                              "title": "customerRedirectUrl",
                              "description": "The URL to which the customer will be redirected after completing a [3D Secure](doc:using-3ds-to-run-transactions) authentication. The customer will be sent here whether the transaction succeeds or fails.",
                              "example": "https://[your-ecommerce-website]",
                              "x-tags": [
                                "component"
                              ]
                            },
                            "merchantId": {
                              "$ref": "#/paths/~1apm~1v3~1process/post/responses/200/content/application~1json/schema/properties/merchantId"
                            },
                            "verboseResponse": {
                              "title": "verboseResponse",
                              "type": "boolean",
                              "description": "Indicates whether additional information is included in the response.",
                              "x-tags": [
                                "component"
                              ]
                            }
                          }
                        }
                      }
                    },
                    "schedule": {
                      "title": "schedule",
                      "type": "object",
                      "description": "The schedule for recurring transactions.",
                      "x-tags": [
                        "object"
                      ],
                      "properties": {
                        "scheduleType": {
                          "type": "integer",
                          "title": "scheduleType",
                          "description": "Type of schedule, given as an integer for whether the schedule is for a subscription (10) or a payment plan (20). For more information on how recurring billing works, see the [Recurring billing overview](doc:recurring-billing-overview) in Guides.",
                          "example": 10,
                          "x-tags": [
                            "component"
                          ]
                        },
                        "interval": {
                          "title": "interval",
                          "type": "string",
                          "description": "The schedule's time period. For subscriptions, will be `month` if not specified in the request.",
                          "example": "month",
                          "x-tags": [
                            "component"
                          ],
                          "enum": [
                            "day",
                            "week",
                            "month",
                            "year"
                          ]
                        },
                        "intervalCount": {
                          "title": "intervalCount",
                          "type": "integer",
                          "description": "The number of times the `interval` will pass between transactions. An `intervalCount` of `0` means that only one transaction runs.\n\nSee the [subscription schedule examples table](doc:getting-started-with-subscriptions#subscription-schedule-examples-table) for examples of how the interval and interval count create the subscription schedule.",
                          "x-tags": [
                            "component"
                          ],
                          "default": 0,
                          "minimum": 0,
                          "example": 1
                        },
                        "duration": {
                          "type": "integer",
                          "title": "duration",
                          "description": "The anticipated number of transactions that may run for the subscription or pay plan, as defined when it was created.\n\nFor a subscription, if returned, this value is informational because the system does not automatically end the subscription after the given number of transactions. Instead, the system uses the `dateCancelAfter` parameter to end the subsription automatically. If not included in the request to create a subscription, this value is not returned and the subscription may run indefinitely.\n\nFor a payment plan, when this parameter is included in the request and the `payment.data.amount` is not, the system calculates the amount by dividing the `schedule.balance` by the `schedule.duration`. When this parameter and amount are both included, then the system ignores it unless the payment plan cannot be completed with the given balance, duration, and scheduled payment amount, in which case the API returns an error. if not included in the request, this value is calculated by dividing the `schedule.balance` by `payment.data.amount`. \n\nFor the subscription or payment plan this returned value is for information purposes. Any of the following actually determine the total number of transactons that run:\n- The date indicated in the `dateCancelAfter` parameter happens if it was included in the request to create the subscription or payment plan.\n- When a payment gets declined more than once for a subscription or payment plan.\n- If the subscription or payment plan gets canceled manually.\n- For a payment plan, the balance and payment amount bring the balance to zero (0).",
                          "example": 12,
                          "x-tags": [
                            "component"
                          ]
                        },
                        "dateCancelAfter": {
                          "title": "dateCancelAfter",
                          "type": "string",
                          "format": "date",
                          "description": "The date the subscription or pay plan ends. If the `dateNextRun` parameter (from the response) occurs after the `dateCancelAfter` date, the subscription is set to be inactive (`active` is set to `false`).\n\nThe value is returned as a four-digit year, two-digit month and day, separated with hyphens: YYYY-MM-DD. For example, `2024-08-26`. If not included in the request, this value is not returned.",
                          "example": "2025-09-01",
                          "x-tags": [
                            "component"
                          ]
                        },
                        "initialBalance": {
                          "type": "number",
                          "title": "initialBalance",
                          "description": "The starting balance of the pay plan. For subscription plans, the system returns `null` as the value.",
                          "example": "50",
                          "x-tags": [
                            "component"
                          ]
                        },
                        "balance": {
                          "type": "number",
                          "title": "balance",
                          "description": "The current balance of the pay plan. For subscription plans, the system returns `null` as the value.",
                          "example": "50",
                          "x-tags": [
                            "component"
                          ]
                        },
                        "initialBillingAmount": {
                          "title": "initialBillingAmount",
                          "type": "number",
                          "description": "The transaction amount during the initial billing period. This indicates a discounted amount from the regular subscription (such as a trial period). This amount gets used for any transactions that occur before the `dateInitialBillingEnd`. After that date, the value from `payment.data.amount` gets used for transactions. If not included in the request, the system returns `null`.",
                          "example": "8.99",
                          "x-tags": [
                            "component"
                          ]
                        },
                        "dateInitialBillingEnd": {
                          "title": "dateInitialBillingEnd",
                          "type": "string",
                          "format": "date",
                          "description": "The date at which the initial billing period ends. This indicates a discounted amount from the regular subscription (such as a trial period). Transactions prior to this date use the value from the `initialBillingAmount`. Transactions after this date use the value from `payment.data.amount`. \n\nIf this parameter is set to the current date or earlier, future payments run using the `payment.data.amount` value.\n\nThe value is returned as a four-digit year, two-digit month and day, separated with hyphens: YYYY-MM-DD. For example, `2024-08-26`. If not included in the request, this value is not returned.",
                          "example": "2023-09-01",
                          "x-tags": [
                            "component"
                          ]
                        }
                      }
                    },
                    "userName": {
                      "type": "string",
                      "title": "userName",
                      "description": "The username of the account through which the subscription was created.",
                      "example": "jdoe@example.com",
                      "x-tags": [
                        "component"
                      ]
                    },
                    "dateCreated": {
                      "title": "dateCreated",
                      "type": "string",
                      "description": "The date and time the subscription or payment plan was created, formatted as an [ISO-8601](https://www.iso.org/iso-8601-date-and-time-format.html) date expressed in UTC.",
                      "example": "2023-04-28T18:50:04.866Z",
                      "x-tags": [
                        "component"
                      ]
                    },
                    "dateLastModified": {
                      "title": "dateLastModified",
                      "type": "string",
                      "description": "The date and time the subscription or payment plan was last modified, formatted as an [ISO-8601](https://www.iso.org/iso-8601-date-and-time-format.html) date expressed in UTC.",
                      "example": "2023-04-28T19:19:33.185Z",
                      "x-tags": [
                        "component"
                      ]
                    },
                    "dateLastRun": {
                      "title": "dateLastRun",
                      "type": "string",
                      "description": "The date and time a payment in this subscription or payment plan was last run, formatted as an [ISO-8601](https://www.iso.org/iso-8601-date-and-time-format.html) date expressed in UTC.",
                      "example": "2023-04-28T18:50:04.866Z",
                      "x-tags": [
                        "component"
                      ]
                    },
                    "dateNextRun": {
                      "title": "dateNextRun",
                      "type": "string",
                      "description": "The date a payment in this subscription is next scheduled to run, formatted as YYYY-MM-DD. ",
                      "example": "2023-07-28",
                      "x-tags": [
                        "component"
                      ]
                    },
                    "paymentResult": {
                      "title": "payment",
                      "type": "object",
                      "description": "The response from a successful payment. In the case of a subscription, this is the response of the initial transaction.",
                      "x-tags": [
                        "object"
                      ],
                      "properties": {
                        "id": {
                          "$ref": "#/paths/~1apm~1v3~1void/post/requestBody/content/application~1json/schema/properties/id"
                        },
                        "merchantId": {
                          "$ref": "#/paths/~1apm~1v3~1process/post/responses/200/content/application~1json/schema/properties/merchantId"
                        },
                        "authCode": {
                          "$ref": "#/paths/~1pay~1v3~1capture/post/responses/200/content/application~1json/schema/properties/authCode"
                        },
                        "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"
                        },
                        "transactionDate": {
                          "$ref": "#/paths/~1pay~1v3~1capture/post/responses/200/content/application~1json/schema/properties/transactionDate"
                        },
                        "transactionType": {
                          "$ref": "#/paths/~1pay~1v3~1capture/post/responses/200/content/application~1json/schema/properties/transactionType"
                        },
                        "transactionStatus": {
                          "$ref": "#/paths/~1pay~1v3~1refund/post/responses/200/content/application~1json/schema/properties/transactionStatus"
                        },
                        "card": {
                          "title": "card",
                          "type": "object",
                          "description": "Card information from the transaction.",
                          "x-tags": [
                            "object"
                          ],
                          "properties": {
                            "cardHolder": {
                              "$ref": "#/paths/~1pay~1v3~1vault~1card~1%7BcardToken%7D/get/responses/200/content/application~1json/schema/properties/card/properties/cardHolderName"
                            },
                            "cardNumber": {
                              "$ref": "#/paths/~1pay~1v3~1processFromTerminal~1%7BterminalRequestId%7D/get/responses/200/content/application~1json/schema/properties/card/properties/cardNumber"
                            },
                            "expirationMonth": {
                              "$ref": "#/paths/~1pay~1v3~1vault~1card~1%7BcardToken%7D/get/responses/200/content/application~1json/schema/properties/card/properties/expirationMonth"
                            },
                            "expirationYear": {
                              "$ref": "#/paths/~1pay~1v3~1vault~1card~1%7BcardToken%7D/get/responses/200/content/application~1json/schema/properties/card/properties/expirationYear"
                            }
                          }
                        },
                        "token": {
                          "$ref": "#/paths/~1pay~1v3~1process/post/responses/200/content/application~1json/schema/oneOf/0/properties/token"
                        },
                        "data": {
                          "$ref": "#/paths/~1subscription~1v3/post/responses/200/content/application~1json/schema/properties/payment/properties/data"
                        },
                        "kountResponse": {
                          "$ref": "#/paths/~1pay~1v3~1process/post/responses/200/content/application~1json/schema/oneOf/0/properties/kountResponse"
                        },
                        "gatewayResponse": {
                          "$ref": "#/paths/~1pay~1v3~1void/post/responses/200/content/application~1json/schema/properties/gatewayResponse"
                        },
                        "asyncTraceId": {
                          "$ref": "#/paths/~1pay~1v3~1process/post/responses/200/content/application~1json/schema/oneOf/1/properties/asyncTraceId"
                        },
                        "status": {
                          "$ref": "#/paths/~1pay~1v3~1process/post/responses/200/content/application~1json/schema/oneOf/1/properties/status"
                        },
                        "message": {
                          "$ref": "#/paths/~1pay~1v3~1process/post/responses/200/content/application~1json/schema/oneOf/1/properties/message"
                        },
                        "redirectUrl": {
                          "$ref": "#/paths/~1pay~1v3~1process/post/responses/200/content/application~1json/schema/oneOf/1/properties/redirectUrl"
                        },
                        "random": {
                          "$ref": "#/paths/~1card~1v3/get/responses/200/content/application~1json/schema/properties/random-nnnn"
                        }
                      }
                    },
                    "lastPaymentStatus": {
                      "type": "string",
                      "title": "lastPaymentStatus",
                      "description": "Will be either `success` or `failure` to indicate whether the last attempted transaction for the subscription or payment plan was successful.",
                      "x-tags": [
                        "component"
                      ],
                      "example": "success"
                    },
                    "lastSuccessfulPaymentDate": {
                      "title": "lastSuccessfulPaymentDate",
                      "type": "string",
                      "description": "The date and time a payment in this subscription or payment plan was last successfully run, formatted as an [ISO-8601](https://www.iso.org/iso-8601-date-and-time-format.html) date expressed in UTC.",
                      "example": "2023-04-28T18:50:04.866Z",
                      "x-tags": [
                        "component"
                      ]
                    },
                    "exp": {
                      "type": "integer",
                      "title": "exp",
                      "description": "This parameter is for Nexio internal use only. It is only returned in requests made in the Sandbox environment.",
                      "x-tags": [
                        "component"
                      ],
                      "example": 1691182698
                    },
                    "random": {
                      "$ref": "#/paths/~1card~1v3/get/responses/200/content/application~1json/schema/properties/random-nnnn"
                    }
                  }
                },
                "examples": {
                  "Example subscription response": {
                    "value": {
                      "customerRef": "RP006",
                      "active": true,
                      "accountId": "746e510d-4b32-4eb5-98e7-20ab268dd6c3",
                      "id": "2289e786-7d00-4c63-b9a0-90a85a3702d7",
                      "payment": {
                        "data": {
                          "currency": "USD",
                          "amount": 15.99,
                          "settlementCurrency": "USD",
                          "customer": {
                            "customerRef": "RP006",
                            "orderDate": "2021-08-26",
                            "orderNumber": "210058A",
                            "invoice": "IN0001",
                            "firstName": "John",
                            "lastName": "Doe",
                            "birthDate": "1990-12-05",
                            "createdAtDate": "2005-03-01",
                            "email": "jdoe@example.com",
                            "phone": "1555555555",
                            "billToAddressOne": "2147 West Silverlake Drive",
                            "billToAddressTwo": "Apt 42",
                            "billToCity": "Scranton",
                            "billToState": "PA",
                            "billToPostal": "18503",
                            "billToCountry": "US",
                            "billToPhone": "1555555555",
                            "shipToAddressOne": "1725 Slough Avenue",
                            "shipToAddressTwo": "Suite 200",
                            "shipToCity": "Scranton",
                            "shipToState": "PA",
                            "shipToPostal": "18505",
                            "shipToCountry": "US",
                            "shipToPhone": "1555555555"
                          }
                        },
                        "tokenex": {
                          "token": "246cd236-1022-4dad-937e-feb339f35382"
                        }
                      },
                      "schedule": {
                        "interval": "month",
                        "intervalCount": 1,
                        "dateCancelAfter": "2028-09-01",
                        "dateInitialBillingEnd": "2023-09-01",
                        "initialBillingAmount": 8.99,
                        "duration": 36,
                        "balance": null,
                        "initialBalance": null,
                        "scheduleType": 10
                      },
                      "userName": "[user_name]",
                      "dateCreated": "2023-07-11T16:59:50.978Z",
                      "dateLastModified": "2023-07-11T16:59:52.681Z",
                      "dateLastRun": "2023-07-11T16:59:50.977Z",
                      "dateNextRun": "2023-08-11",
                      "paymentResult": {
                        "id": "eyJuYW1lIjoWJlciI6IjMxCJtZXJjaGFudElkIjoiMoiVVNEIn0=eyJuYW1lIjoib3BlbnBheSIsIm1lcmN",
                        "merchantId": "000999",
                        "transactionDate": "2023-07-11T16:59:52.603Z",
                        "authCode": "035410",
                        "transactionStatus": "authorized",
                        "amount": 8.99,
                        "transactionType": "sale",
                        "currency": "USD",
                        "gatewayResponse": {
                          "refNumber": "8E56222GD0701110",
                          "gatewayName": "[gateway]"
                        },
                        "data": {
                          "amount": 8.99,
                          "currency": "USD",
                          "settlementCurrency": "USD",
                          "customer": {
                            "customerRef": "RP006",
                            "orderDate": "2021-08-26",
                            "orderNumber": "210058A",
                            "invoice": "IN0001",
                            "firstName": "John",
                            "lastName": "Doe",
                            "birthDate": "1990-12-05",
                            "createdAtDate": "2005-03-01",
                            "email": "jdoe@example.com",
                            "phone": "1555555555",
                            "billToAddressOne": "2147 West Silverlake Drive",
                            "billToAddressTwo": "Apt 42",
                            "billToCity": "Scranton",
                            "billToState": "PA",
                            "billToPostal": "18503",
                            "billToCountry": "US",
                            "billToPhone": "1555555555",
                            "shipToAddressOne": "1725 Slough Avenue",
                            "shipToAddressTwo": "Suite 200",
                            "shipToCity": "Scranton",
                            "shipToState": "PA",
                            "shipToPostal": "18505",
                            "shipToCountry": "US",
                            "shipToPhone": "1555555555"
                          }
                        },
                        "card": {
                          "cardNumber": "411111******1111",
                          "expirationYear": "28",
                          "expirationMonth": "12",
                          "cardHolder": "John H Doe"
                        },
                        "kountResponse": {
                          "status": "success",
                          "rules": "[response]"
                        },
                        "token": {
                          "firstSix": "411111",
                          "lastFour": "1111",
                          "token": "6ee140a0-05d1-4958-8325-b38a690dbb9d"
                        }
                      },
                      "lastPaymentStatus": "success",
                      "lastSuccessfulPaymentDate": "2023-07-11T16:59:52.603Z"
                    }
                  },
                  "Example payment plan response": {
                    "value": {
                      "customerRef": "RP006",
                      "active": true,
                      "accountId": "746e510d-4b32-4eb5-98e7-20ab268dd6c3",
                      "id": "2289e786-7d00-4c63-b9a0-90a85a3702d7",
                      "payment": {
                        "data": {
                          "currency": "USD",
                          "amount": 15.99,
                          "settlementCurrency": "USD",
                          "customer": {
                            "customerRef": "RP006",
                            "orderDate": "2021-08-26",
                            "orderNumber": "210058A",
                            "invoice": "IN0001",
                            "firstName": "John",
                            "lastName": "Doe",
                            "birthDate": "1990-12-05",
                            "createdAtDate": "2005-03-01",
                            "email": "jdoe@example.com",
                            "phone": "1555555555",
                            "billToAddressOne": "2147 West Silverlake Drive",
                            "billToAddressTwo": "Apt 42",
                            "billToCity": "Scranton",
                            "billToState": "PA",
                            "billToPostal": "18503",
                            "billToCountry": "US",
                            "billToPhone": "1555555555",
                            "shipToAddressOne": "1725 Slough Avenue",
                            "shipToAddressTwo": "Suite 200",
                            "shipToCity": "Scranton",
                            "shipToState": "PA",
                            "shipToPostal": "18505",
                            "shipToCountry": "US",
                            "shipToPhone": "1555555555"
                          }
                        },
                        "tokenex": {
                          "token": "246cd236-1022-4dad-937e-feb339f35382"
                        }
                      },
                      "schedule": {
                        "interval": "month",
                        "intervalCount": 1,
                        "dateCancelAfter": "2028-09-01",
                        "dateInitialBillingEnd": "2023-09-01",
                        "initialBillingAmount": 8.99,
                        "duration": 36,
                        "balance": 491.01,
                        "initialBalance": 500,
                        "scheduleType": 20
                      },
                      "userName": "[user_name]",
                      "dateCreated": "2023-07-11T16:59:50.978Z",
                      "dateLastModified": "2023-07-11T16:59:52.681Z",
                      "dateLastRun": "2023-07-11T16:59:50.977Z",
                      "dateNextRun": "2023-08-11",
                      "paymentResult": {
                        "id": "eyJuYW1lIjoWJlciI6IjMxCJtZXJjaGFudElkIjoiMoiVVNEIn0=eyJuYW1lIjoib3BlbnBheSIsIm1lcmN",
                        "merchantId": "000999",
                        "transactionDate": "2023-07-11T16:59:52.603Z",
                        "authCode": "035410",
                        "transactionStatus": "authorized",
                        "amount": 8.99,
                        "transactionType": "sale",
                        "currency": "USD",
                        "gatewayResponse": {
                          "refNumber": "8E56222GD0701110",
                          "gatewayName": "[gateway]"
                        },
                        "data": {
                          "amount": 8.99,
                          "currency": "USD",
                          "settlementCurrency": "USD",
                          "customer": {
                            "customerRef": "RP006",
                            "orderDate": "2021-08-26",
                            "orderNumber": "210058A",
                            "invoice": "IN0001",
                            "firstName": "John",
                            "lastName": "Doe",
                            "birthDate": "1990-12-05",
                            "createdAtDate": "2005-03-01",
                            "email": "jdoe@example.com",
                            "phone": "1555555555",
                            "billToAddressOne": "2147 West Silverlake Drive",
                            "billToAddressTwo": "Apt 42",
                            "billToCity": "Scranton",
                            "billToState": "PA",
                            "billToPostal": "18503",
                            "billToCountry": "US",
                            "billToPhone": "1555555555",
                            "shipToAddressOne": "1725 Slough Avenue",
                            "shipToAddressTwo": "Suite 200",
                            "shipToCity": "Scranton",
                            "shipToState": "PA",
                            "shipToPostal": "18505",
                            "shipToCountry": "US",
                            "shipToPhone": "1555555555"
                          }
                        },
                        "card": {
                          "cardNumber": "411111******1111",
                          "expirationYear": "28",
                          "expirationMonth": "12",
                          "cardHolder": "John H Doe"
                        },
                        "kountResponse": {
                          "status": "success",
                          "rules": "[response]"
                        },
                        "token": {
                          "firstSix": "411111",
                          "lastFour": "1111",
                          "token": "6ee140a0-05d1-4958-8325-b38a690dbb9d"
                        }
                      },
                      "lastPaymentStatus": "success",
                      "lastSuccessfulPaymentDate": "2023-07-11T16:59:52.603Z"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          }
        },
        "summary": "Create a subscription"
      }
    },
    "/apm/v3/process": {
      "post": {
        "summary": "Run APM transaction",
        "operationId": "RunAPMTransaction",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "title": "payment",
                  "type": "object",
                  "description": "The response from a successful merchant-initiated payment, such as through Braintree PayPal.",
                  "properties": {
                    "id": {
                      "$ref": "#/paths/~1apm~1v3~1void/post/requestBody/content/application~1json/schema/properties/id"
                    },
                    "merchantId": {
                      "title": "merchantId",
                      "type": "string",
                      "description": "The Nexio merchant ID (MID) through which the transaction was processed. Returned for regular and 3DS-enabled transactions.",
                      "example": "000999",
                      "x-tags": [
                        "component"
                      ]
                    },
                    "transactionDate": {
                      "$ref": "#/paths/~1pay~1v3~1capture/post/responses/200/content/application~1json/schema/properties/transactionDate"
                    },
                    "transactionStatus": {
                      "title": "transactionStatus",
                      "type": "string",
                      "description": "The [transaction status](doc:constant-transaction-values#transaction-status-transactionstatus).",
                      "example": "pending",
                      "x-tags": [
                        "component"
                      ]
                    },
                    "amount": {
                      "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/data/properties/amount"
                    },
                    "transactionType": {
                      "$ref": "#/paths/~1pay~1v3~1capture/post/responses/200/content/application~1json/schema/properties/transactionType"
                    },
                    "currency": {
                      "title": "currency",
                      "type": "string",
                      "description": "The [three-digit ISO numeric currency code](https://en.wikipedia.org/wiki/ISO_4217). For information about valid values, see the [currency table](doc:constant-transaction-values#currency-id-currencyid) in Guides.",
                      "x-tags": [
                        "component"
                      ],
                      "x-internal": false,
                      "example": 840
                    },
                    "gatewayResponse": {
                      "$ref": "#/paths/~1pay~1v3~1void/post/responses/200/content/application~1json/schema/properties/gatewayResponse"
                    },
                    "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"
                        },
                        "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": {
                          "title": "customer",
                          "type": "object",
                          "description": "Customer information returned when checking fraud or from the processing gateway, when applicable.",
                          "properties": {
                            "orderNumber": {
                              "$ref": "#/paths/~1pay~1v3~1token/post/requestBody/content/application~1json/schema/oneOf/0/properties/data/properties/customer/properties/orderNumber"
                            },
                            "customerRef": {
                              "$ref": "#/paths/~1subscription~1v3~1%7Bid%7D/put/responses/200/content/application~1json/schema/properties/customerRef"
                            },
                            "orderDate": {
                              "$ref": "#/paths/~1pay~1v3~1vault~1echeck~1%7BecheckToken%7D/get/responses/200/content/application~1json/schema/properties/data/properties/customer/properties/orderDate"
                            },
                            "invoice": {
                              "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/data/properties/customer/properties/invoice"
                            },
                            "firstName": {
                              "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/data/properties/customer/properties/firstName"
                            },
                            "lastName": {
                              "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/data/properties/customer/properties/lastName"
                            },
                            "birthDate": {
                              "$ref": "#/paths/~1pay~1v3~1vault~1card~1%7BcardToken%7D/put/responses/200/content/application~1json/schema/properties/data/properties/customer/properties/birthDate"
                            },
                            "email": {
                              "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/data/properties/customer/properties/email"
                            },
                            "phone": {
                              "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/data/properties/customer/properties/phone"
                            },
                            "companyName": {
                              "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/data/properties/customer/properties/companyName"
                            },
                            "billToAddressOne": {
                              "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/data/properties/customer/properties/billToAddressOne"
                            },
                            "billToAddressTwo": {
                              "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/data/properties/customer/properties/billToAddressTwo"
                            },
                            "billToCity": {
                              "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/data/properties/customer/properties/billToCity"
                            },
                            "billToCountry": {
                              "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/data/properties/customer/properties/billToCountry"
                            },
                            "billToPhone": {
                              "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/data/properties/customer/properties/billToPhone"
                            },
                            "billToPostal": {
                              "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/data/properties/customer/properties/billToPostal"
                            },
                            "billToState": {
                              "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/data/properties/customer/properties/billToState"
                            },
                            "shipToAddressOne": {
                              "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/data/properties/customer/properties/shipToAddressOne"
                            },
                            "shipToAddressTwo": {
                              "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/data/properties/customer/properties/shipToAddressTwo"
                            },
                            "shipToCity": {
                              "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/data/properties/customer/properties/shipToCity"
                            },
                            "shipToCountry": {
                              "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/data/properties/customer/properties/shipToCountry"
                            },
                            "shipToPhone": {
                              "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/data/properties/customer/properties/shipToPhone"
                            },
                            "shipToPostal": {
                              "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/data/properties/customer/properties/shipToPostal"
                            },
                            "shipToState": {
                              "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/data/properties/customer/properties/shipToState"
                            },
                            "createdAtDate": {
                              "$ref": "#/paths/~1apm~1v3~1process/post/requestBody/content/application~1json/schema/properties/data/properties/customer/properties/createdAtDate"
                            }
                          },
                          "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"
                        }
                      },
                      "x-tags": [
                        "object"
                      ]
                    },
                    "apm": {
                      "type": "object",
                      "description": "",
                      "properties": {
                        "token": {
                          "title": "token",
                          "type": "string",
                          "description": "The APM token to be used for future merchant-initiated recurring payments, such as with Braintree PayPal.",
                          "example": "apm:66b742ee-7abc-4e36-81ea-0a26d23d2822",
                          "x-tags": [
                            "component"
                          ]
                        }
                      }
                    }
                  },
                  "x-tags": [
                    "object"
                  ]
                },
                "examples": {
                  "Example response": {
                    "value": {
                      "id": "eyJuYW1lIjoWJlciI6IjMxCJtZXJjaGFudElkIjoiMoiVVNEIn0=eyJuYW1lIjoib3BlbnBheSIsIm1lcmN",
                      "merchantId": "000999",
                      "transactionDate": "2019-01-15T13:19:39.329Z",
                      "transactionStatus": "pending",
                      "amount": 9.95,
                      "transactionType": "sale",
                      "currency": "USD",
                      "gatewayResponse": {
                        "gatewayName": "[usaepay]",
                        "refNumber": "8E56222GD0701110"
                      },
                      "data": {
                        "amount": 29.99,
                        "currency": "EUR",
                        "settlementCurrency": "CAD",
                        "customer": {
                          "billToAddressOne": "2147 West Silverlake Drive",
                          "billToAddressTwo": "Apt 42",
                          "billToCity": "Scranton",
                          "billToCountry": "US",
                          "billToPhone": "1555555555",
                          "billToPostal": "18503",
                          "billToState": "PA",
                          "birthDate": "1990-12-05",
                          "companyName": "Green Thumb Lawn Care",
                          "createdAtDate": "2005-03-01",
                          "customerRef": "RP006",
                          "email": "jdoe@example.com",
                          "invoice": "IN0001",
                          "firstName": "John",
                          "lastName": "Doe",
                          "orderDate": "2021-08-26",
                          "orderNumber": "210058A",
                          "phone": "1555555555",
                          "shipToAddressOne": "1725 Slough Avenue",
                          "shipToAddressTwo": "Suite 200",
                          "shipToCity": "Scranton",
                          "shipToCountry": "US",
                          "shipToPhone": "1555555555",
                          "shipToPostal": "18505",
                          "shipToState": "PA"
                        },
                        "customFields": {
                          "exampleKey": "Example string",
                          "exampleRefNumber": "094785"
                        },
                        "description": "[Description of the transaction]"
                      },
                      "apm": {
                        "token": "apm:66b742ee-7abc-4e36-81ea-0a26d23d2822"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          }
        },
        "description": "Allows you to securely process an alternative payment method transaction without a browser, such as for merchant-initiated transactions using [PayPal (with Braintree)](doc:paypal-with-braintree-integration-guide).\n\n<!-- theme: info -->\n> 📘 Note\n> \n> In order to use this endpoint, the following two things must be true: \n> - You must have already set `processingOptions.saveRecurringToken` to `true` in the [APM one-time-use token](ref:createapmonetimeusetoken) request for the initial transaction.\n> - Your customer must have already checked out and paid through the alternative payment method for that initial transaction.\n\n<!-- theme: warning -->\n> ⚠️ Try It\n> \n> To use the Try It feature for this endpoint, you must use the credentials for your [Sandbox API user](doc:sandbox-environments).\n\n\n<div style=\"display:none;\">\n\n## Request parameters\n- apm\n- apm.token\n- data\n- data.amount\n- data.currency\n- data.customer\n- data.customer.orderNumber\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.birthDate\n- data.customer.companyName\n- data.customer.createdAtDate\n- data.customer.customerRef\n- data.customer.email\n- data.customer.invoice\n- data.customer.firstName\n- data.customer.lastName\n- data.customer.orderDate\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- data.description\n- isAuthOnly\n- processingOptions\n- processingOptions.merchantId\n- processingOptions.paymentOptionTag\n- processingOptions.webhookFailUrl\n\n## Response parameters\n- id\n- merchantId\n- transactionDate\n- transactionStatus\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- data.customer\n- data.customer.customerRef\n- data.customer.orderNumber\n- data.customer.orderDate\n- data.customer.invoice\n- data.customer.firstName\n- data.customer.lastName\n- data.customer.birthDate\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.email\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.customer.createdAt\n- data.customFields\n- data.customFields.exampleKey\n- data.description\n- apm\n- apm.token\n\n</div>",
        "security": [
          {
            "Basic_Authentication": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "apm",
                  "data"
                ],
                "properties": {
                  "apm": {
                    "type": "object",
                    "required": [
                      "token"
                    ],
                    "properties": {
                      "token": {
                        "title": "token",
                        "type": "string",
                        "description": "The APM token to be used for this merchant-initiated recurring payments, such as with Braintree PayPal.",
                        "example": "apm:66b742ee-7abc-4e36-81ea-0a26d23d2822",
                        "x-tags": [
                          "component"
                        ]
                      }
                    }
                  },
                  "data": {
                    "type": "object",
                    "description": "Transaction data",
                    "required": [
                      "amount",
                      "currency",
                      "customer"
                    ],
                    "properties": {
                      "amount": {
                        "title": "amount",
                        "type": "number",
                        "description": "The transaction amount for this merchant-initiated transaction.",
                        "example": 9.95,
                        "x-tags": [
                          "component"
                        ]
                      },
                      "currency": {
                        "$ref": "#/paths/~1pay~1v3~1capture/post/responses/200/content/application~1json/schema/properties/currency"
                      },
                      "customer": {
                        "title": "customer",
                        "type": "object",
                        "description": "Customer information to be used in checking fraud or sent to the processing gateway, when applicable.",
                        "x-tags": [
                          "object"
                        ],
                        "properties": {
                          "orderNumber": {
                            "title": "orderNumber",
                            "type": "string",
                            "description": "The order number. This must be a unique value.\n\nNexio recommends a format for the order number of a unique value that also includes an attempt number so that you can track attempts per order, such as when a payment attempt fails. For example, something like `[order_number]-[attempt_number]`.",
                            "example": "210058A-1",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "customerRef": {
                            "$ref": "#/paths/~1subscription~1v3~1%7Bid%7D/put/responses/200/content/application~1json/schema/properties/customerRef"
                          },
                          "orderDate": {
                            "title": "orderDate",
                            "type": "string",
                            "description": "The date of the customer's order. This field is required by certain gateways. For information on gateway-specific required fields, see the [Connections](doc:connections) documentation.\n\nUse any of the following formats for the date:\n- Four-digit year, two-digit month and day, separated with hyphens: YYYY-MM-DD.<br>For example, `2021-08-26`.\n- [ISO-8601](https://www.iso.org/iso-8601-date-and-time-format.html) date expressed in UTC, with as much of the time part as wanted.<br>For example, `2001-08-26T13:35:00.978Z` or `1990-12-05T00:00Z`.\n- UNIX date (as an integer representing seconds).<br>For example, `1630006518`.\n\n<!-- theme:info -->\n> #### Note\n> This is NOT a quick way to schedule a transaction. Specifying a date in the future does not cause the order to be run automatically at the indicated date or time.",
                            "example": "2021-08-26",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "invoice": {
                            "title": "invoice",
                            "type": "string",
                            "description": "The invoice number. This value is cached in the one-time-use token.",
                            "example": "IN0001",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "firstName": {
                            "title": "firstName",
                            "type": "string",
                            "description": "The customer's first name, as it appears on the card. This value is cached in the one-time-use token.",
                            "example": "John",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "lastName": {
                            "title": "lastName",
                            "type": "string",
                            "description": "The customer's last name, as it appears on the card. This value is cached in the one-time-use token.",
                            "example": "Doe",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "birthDate": {
                            "type": "string",
                            "title": "birthDate",
                            "description": "The customer's date of birth. \n\nUse any of the following formats for the date:\n- Four-digit year, two-digit month and day, separated with hyphens: YYYY-MM-DD.<br>For example, `2001-08-26`.\n- [ISO-8601](https://www.iso.org/iso-8601-date-and-time-format.html) date expressed in UTC, with as much of the time part as wanted.<br>For example, `2001-08-26T13:35:00Z` or `1990-12-05T00:00Z`.\n- UNIX date (as an integer representing seconds).<br>For example, `998854500`.",
                            "example": "1990-12-05",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "email": {
                            "type": "string",
                            "title": "email",
                            "description": "The customer's email address. This value is cached in the one-time-use token.",
                            "example": "jdoe@example.com",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "phone": {
                            "title": "phone",
                            "type": "string",
                            "description": "The customer's phone number. This value is cached in the one-time-use token.",
                            "example": "1555555555",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "companyName": {
                            "title": "companyName",
                            "type": "string",
                            "description": "This field may be included if the bank account being used for payment is a business account.",
                            "example": "Green Thumb Lawn Care",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "billToAddressOne": {
                            "title": "billToAddressOne",
                            "type": "string",
                            "description": "The street address on file with the card provider. This value is cached in the one-time-use token.",
                            "example": "2147 West Silverlake Drive",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "billToAddressTwo": {
                            "title": "billToAddressTwo",
                            "type": "string",
                            "description": "Additional street address information, if required. This value is cached in the one-time-use token.",
                            "example": "Apt 42",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "billToCity": {
                            "title": "billToCity",
                            "type": "string",
                            "description": "The city on file with the card provider. This value is cached in the one-time-use token.",
                            "example": "Scranton",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "billToState": {
                            "type": "string",
                            "title": "billToState",
                            "description": "The state or province on file with the card provider. (If in the US, this must be the [two-character state abbreviation](https://pe.usps.com/text/pub28/28apb.htm)). This value is cached in the one-time-use token.",
                            "example": "PA",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "billToPostal": {
                            "title": "billToPostal",
                            "type": "string",
                            "description": "The postal code on file with the card provider. This value is cached in the one-time-use token.",
                            "example": "18503",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "billToCountry": {
                            "title": "billToCountry",
                            "type": "string",
                            "description": "The [two-character (Alpha-2) ISO country code](https://www.iso.org/obp/ui/#search/code/) for the address on file with the card provider. This value is cached in the one-time-use token.",
                            "example": "US",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "billToPhone": {
                            "title": "billToPhone",
                            "type": "string",
                            "description": "The billing phone number. This value is cached in the one-time-use token.",
                            "example": "1555555555",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "shipToAddressOne": {
                            "title": "shipToAddressOne",
                            "type": "string",
                            "description": "The shipping address, if different from the billing address. This value is cached in the one-time-use token.",
                            "example": "1725 Slough Avenue",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "shipToAddressTwo": {
                            "title": "shipToAddressTwo",
                            "type": "string",
                            "description": "Additional shipping address information, if required. This value is cached in the one-time-use token.",
                            "example": "Suite 200",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "shipToCity": {
                            "title": "shipToCity",
                            "type": "string",
                            "description": "The shipping city. This value is cached in the one-time-use token.",
                            "example": "Scranton",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "shipToState": {
                            "title": "shipToState",
                            "type": "string",
                            "description": "The shipping state or province. (If in the US, this must be the [two-character state abbreviation](https://pe.usps.com/text/pub28/28apb.htm).) This value is cached in the one-time-use token.",
                            "example": "PA",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "shipToPostal": {
                            "title": "shipToPostal",
                            "type": "string",
                            "description": "The shipping postal code. This value is cached in the one-time-use token.",
                            "example": "18505",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "shipToCountry": {
                            "title": "shipToCountry",
                            "type": "string",
                            "description": "The [two-character (Alpha-2) ISO](https://www.iso.org/obp/ui/#search/code/) shipping country code. This value is cached in the one-time-use token.",
                            "example": "US",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "shipToPhone": {
                            "title": "shipToPhone",
                            "type": "string",
                            "description": "The shipping phone number. This value is cached in the one-time-use token.",
                            "example": "1555555555",
                            "x-tags": [
                              "component"
                            ]
                          },
                          "createdAtDate": {
                            "title": "createdAtDate",
                            "type": "string",
                            "description": "The date the customer was created in your system. The format is four-digit year, two-digit month and day, separated with hyphens: YYYY-MM-DD.<p><b>Note:</b> This information is only used to allow you to more fully customize your fraud rules. <b>Nexio does not store this data.</b></p>",
                            "example": "2005-03-01",
                            "x-tags": [
                              "component"
                            ]
                          }
                        },
                        "required": [
                          "orderNumber"
                        ]
                      },
                      "customFields": {
                        "title": "customFields",
                        "type": "object",
                        "description": "Nexio stores information in custom fields and passes custom fields to gateways that support them. \n\n<!-- theme: warning -->\n> #### Important\n> * Do not use custom fields to store sensitive data, such as cardholder information.",
                        "x-tags": [
                          "object"
                        ],
                        "properties": {
                          "exampleKey": {
                            "type": "string",
                            "title": "exampleKey",
                            "description": "You may use any key as a custom field. Values must be strings.",
                            "x-tags": [
                              "component"
                            ],
                            "example": "Example string"
                          },
                          "exampleRefNumber": {
                            "type": "string",
                            "title": "exampleRefNumber",
                            "description": "A reference value used by the gateway.",
                            "x-tags": [
                              "component"
                            ],
                            "example": "094785"
                          }
                        }
                      },
                      "description": {
                        "type": "string",
                        "title": "description",
                        "description": "A description of the transaction. This value is cached in the one-time-use token.",
                        "example": "[Description of the transaction]",
                        "x-tags": [
                          "component"
                        ]
                      }
                    }
                  },
                  "isAuthOnly": {
                    "title": "isAuthOnly",
                    "type": "boolean",
                    "description": "Set to `true` to run an auth only transaction. This value is cached in the one-time-use token.",
                    "default": false,
                    "x-tags": [
                      "component"
                    ]
                  },
                  "processingOptions": {
                    "title": "processingOptions",
                    "type": "object",
                    "description": "Processing Options",
                    "x-tags": [
                      "object"
                    ],
                    "properties": {
                      "paymentOptionTag": {
                        "$ref": "#/paths/~1apm~1v3~1token/post/requestBody/content/application~1json/schema/properties/processingOptions/properties/paymentOptionTag"
                      },
                      "webhookFailUrl": {
                        "type": "string",
                        "title": "webhookFailUrl",
                        "description": "The URL to which Nexio will send the results of a failed transaction. This URL must use the HTTPS protocol.",
                        "example": "https://[your-apm-webhook-fail-url]",
                        "x-tags": [
                          "component"
                        ]
                      },
                      "merchantId": {
                        "$ref": "#/paths/~1pay~1v3~1saveCard/post/responses/400/content/application~1json/schema/properties/merchantId"
                      }
                    }
                  }
                }
              },
              "examples": {
                "Required parameters": {
                  "value": {
                    "apm": {
                      "token": "apm:66b742ee-7abc-4e36-81ea-0a26d23d2822"
                    },
                    "data": {
                      "amount": 9.95,
                      "currency": "EUR",
                      "customer": {
                        "orderNumber": "210058A"
                      }
                    }
                  }
                },
                "All parameters": {
                  "value": {
                    "apm": {
                      "token": "apm:66b742ee-7abc-4e36-81ea-0a26d23d2822"
                    },
                    "data": {
                      "amount": 9.95,
                      "currency": "EUR",
                      "customer": {
                        "orderNumber": "210058A",
                        "billToAddressOne": "2147 West Silverlake Drive",
                        "billToAddressTwo": "Apt 42",
                        "billToCity": "Scranton",
                        "billToCountry": "US",
                        "billToPhone": "1555555555",
                        "billToPostal": "18503",
                        "billToState": "PA",
                        "birthDate": "1990-12-05",
                        "companyName": "Green Thumb Lawn Care",
                        "createdAtDate": "2005-03-01",
                        "customerRef": "RP006",
                        "email": "jdoe@example.com",
                        "invoice": "IN0001",
                        "firstName": "John",
                        "lastName": "Doe",
                        "orderDate": "2021-08-26",
                        "phone": "1555555555",
                        "shipToAddressOne": "1725 Slough Avenue",
                        "shipToAddressTwo": "Suite 200",
                        "shipToCity": "Scranton",
                        "shipToCountry": "US",
                        "shipToPhone": "1555555555",
                        "shipToPostal": "18505",
                        "shipToState": "PA"
                      },
                      "customFields": {
                        "exampleKey": "Example string",
                        "exampleRefNumber": "094785"
                      },
                      "description": "[Description of the transaction]"
                    },
                    "isAuthOnly": false,
                    "processingOptions": {
                      "merchantId": "000999",
                      "paymentOptionTag": "nmi",
                      "webhookFailUrl": "https://[your-apm-webhook-fail-url]"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Alternative Payment Methods"
        ]
      }
    },
    "/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"
      }
    }
  }
}
```