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

# View transaction by payment ID

Searches for transactions with the given payment ID. You get the payment ID in the [Run card transaction](ref:runcardtransaction) or [Process transaction from terminal](ref:processtransactionfromterminal) response as the `id`. Or, in the page event for the ecommerce or retail iframe.

Because you get the `paymentId` in the response for a transaction, this endpoint is useful for quickly getting transaction information and updates.

Also, you can use this endpoint instead of [View transactions](ref:viewtransactions) when you only need to get information about a single transaction and in order to get all response parameters related to the transaction without needing to request them specifically.

<!-- theme: info -->
> 📘 Notes
> 
> - **It may take up to a minute after a transaction is run before you can see it in the response for this endpoint.**
> - Payment ID is <i>not</i> the same as the Nexio Transaction ID, which is returned as `id` in this endpoint or in the [View transaction by transaction ID](ref:viewtransactiontransactionid) or [View transactions](ref:viewtransactions) endpoints.
> - Certain transaction data will be returned as numerical values. The definitions are provided in the [Constant transaction values tables](doc:constant-transaction-values).

<!-- theme: warning -->
> ⚠️ Try It
> 
> To use the Try It feature for this endpoint, you can use the credentials for your [Sandbox API user](doc:sandbox-environments).<br/><br/>You can also use the following test account. Copy the value and paste it into the appropriate space in the Try It section to the right.
> username: `docs@nexiopay.com`
> password: `JZdzoXpdDeH6VA`<br/><br/>Include the payment ID in the path parameter of the request.

<div style="display:none;">

## Request parameters
- paymentId

## Response parameters
- id
- merchantId
- amount
- transactionDate
- transactionStatus
- authCode
- transactionType
- cardType
- cardNumber
- cardHolder
- processMethod
- achDetailId
- currencyId
- reportDate
- settledDate
- capturedDate
- originalTransactionId
- createdAt
- updatedAt
- customer
- customer.id
- customer.firstName
- customer.lastName
- customer.postalCode
- customer.phone
- customer.email
- customer.company
- customer.customerRef
- customer.transactionId
- kount
- kount.id
- kount.status
- kount.rules
- kount.refNumber
- kount.merc
- kount.score
- kount.ruleCount
- kount.warningCount
- kount.counterCount
- kount.wasDeviceFingerprinted
- kount.mode
- kount.velo
- kount.vmax
- kount.transactionId
- bankTransfer
- bankTransfer.account
- bankTransfer.checkNumber
- bankTransfer.id
- bankTransfer.routing
- bankTransfer.transactionId
- foreignProcessingCurrency
- foreignProcessingCurrency.amount
- foreignProcessingCurrency.currencyId
- foreignProcessingCurrency.id
- foreignProcessingCurrency.transactionId
- threeDS
- threeDS.id
- threeDS.ECI
- threeDS.type
- threeDS.transactionId
- gateway
- gateway.gatewayName
- gateway.refNumber
- gateway.nsu
- processor
- processor.id
- customerAddresses
- customerAddresses.billingAddressOne
- customerAddresses.billingAddressTwo
- customerAddresses.billingCity
- customerAddresses.billingCountry
- customerAddresses.billingPhone
- customerAddresses.billingPostal
- customerAddresses.billingState
- customerAddresses.shippingAddressOne
- customerAddresses.shippingAddressTwo
- customerAddresses.shippingCity
- customerAddresses.shippingCountry
- customerAddresses.shippingPhone
- customerAddresses.shippingPostal
- customerAddresses.shippingState
- customerAddresses.id
- customerAddresses.transactionId
- subscription
- subscription.id
- subscription.accountId
- subscription.initialBalance
- subscription.interval
- subscription.intervalCount
- subscription.remainingBalance
- subscription.scheduleType
- subscription.subscriptionRef
- subscription.transactionId
- cardMetaData
- cardMetaData.id
- cardMetaData.bin
- cardMetaData.cardBrand
- cardMetaData.class
- cardMetaData.countryCode
- cardMetaData.currencyCode
- cardMetaData.issuingBank
- cardMetaData.transactionId
- plugin
- plugin.id
- plugin.originalId
- plugin.invoice
- plugin.orderNumber
- plugin.description
- plugin.pluginType
- plugin.paymentOptionTag
- plugin.transactionId
- transactionDetails
- transactionDetails.id
- transactionDetails.clientIp
- transactionDetails.customFields
- transactionDetails.description
- transactionDetails.installments
- transactionDetails.installmentUnit
- transactionDetails.paymentType
- transactionDetails.retryCount
- transactionDetails.shoppingCart
- transactionDetails.userName
- transactionDetails.transactionId
- linkedChargebackId

</div>

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Reporting API Reference",
    "version": "3.0.0",
    "description": "View and create reports about transactions, decline recovery, and chargebacks.\n\nFor information about querying the transaction endpoints, see [Finding a transaction](doc:finding-a-transaction) in Guides.",
    "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": {
                "message": {
                  "type": "string",
                  "description": "A message from Nexio about the state of the request",
                  "example": "Unauthorized"
                }
              }
            }
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "Transactions",
      "description": "APIs for transactions"
    }
  ],
  "paths": {
    "/transaction/v3/paymentId/{paymentId}": {
      "get": {
        "description": "Searches for transactions with the given payment ID. You get the payment ID in the [Run card transaction](ref:runcardtransaction) or [Process transaction from terminal](ref:processtransactionfromterminal) response as the `id`. Or, in the page event for the ecommerce or retail iframe.\n\nBecause you get the `paymentId` in the response for a transaction, this endpoint is useful for quickly getting transaction information and updates.\n\nAlso, you can use this endpoint instead of [View transactions](ref:viewtransactions) when you only need to get information about a single transaction and in order to get all response parameters related to the transaction without needing to request them specifically.\n\n<!-- theme: info -->\n> 📘 Notes\n> \n> - **It may take up to a minute after a transaction is run before you can see it in the response for this endpoint.**\n> - Payment ID is <i>not</i> the same as the Nexio Transaction ID, which is returned as `id` in this endpoint or in the [View transaction by transaction ID](ref:viewtransactiontransactionid) or [View transactions](ref:viewtransactions) endpoints.\n> - Certain transaction data will be returned as numerical values. The definitions are provided in the [Constant transaction values tables](doc:constant-transaction-values).\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 payment ID in the path parameter of the request.\n\n<div style=\"display:none;\">\n\n## Request parameters\n- paymentId\n\n## Response parameters\n- id\n- merchantId\n- amount\n- transactionDate\n- transactionStatus\n- authCode\n- transactionType\n- cardType\n- cardNumber\n- cardHolder\n- processMethod\n- achDetailId\n- currencyId\n- reportDate\n- settledDate\n- capturedDate\n- originalTransactionId\n- createdAt\n- updatedAt\n- customer\n- customer.id\n- customer.firstName\n- customer.lastName\n- customer.postalCode\n- customer.phone\n- customer.email\n- customer.company\n- customer.customerRef\n- customer.transactionId\n- kount\n- kount.id\n- kount.status\n- kount.rules\n- kount.refNumber\n- kount.merc\n- kount.score\n- kount.ruleCount\n- kount.warningCount\n- kount.counterCount\n- kount.wasDeviceFingerprinted\n- kount.mode\n- kount.velo\n- kount.vmax\n- kount.transactionId\n- bankTransfer\n- bankTransfer.account\n- bankTransfer.checkNumber\n- bankTransfer.id\n- bankTransfer.routing\n- bankTransfer.transactionId\n- foreignProcessingCurrency\n- foreignProcessingCurrency.amount\n- foreignProcessingCurrency.currencyId\n- foreignProcessingCurrency.id\n- foreignProcessingCurrency.transactionId\n- threeDS\n- threeDS.id\n- threeDS.ECI\n- threeDS.type\n- threeDS.transactionId\n- gateway\n- gateway.gatewayName\n- gateway.refNumber\n- gateway.nsu\n- processor\n- processor.id\n- customerAddresses\n- customerAddresses.billingAddressOne\n- customerAddresses.billingAddressTwo\n- customerAddresses.billingCity\n- customerAddresses.billingCountry\n- customerAddresses.billingPhone\n- customerAddresses.billingPostal\n- customerAddresses.billingState\n- customerAddresses.shippingAddressOne\n- customerAddresses.shippingAddressTwo\n- customerAddresses.shippingCity\n- customerAddresses.shippingCountry\n- customerAddresses.shippingPhone\n- customerAddresses.shippingPostal\n- customerAddresses.shippingState\n- customerAddresses.id\n- customerAddresses.transactionId\n- subscription\n- subscription.id\n- subscription.accountId\n- subscription.initialBalance\n- subscription.interval\n- subscription.intervalCount\n- subscription.remainingBalance\n- subscription.scheduleType\n- subscription.subscriptionRef\n- subscription.transactionId\n- cardMetaData\n- cardMetaData.id\n- cardMetaData.bin\n- cardMetaData.cardBrand\n- cardMetaData.class\n- cardMetaData.countryCode\n- cardMetaData.currencyCode\n- cardMetaData.issuingBank\n- cardMetaData.transactionId\n- plugin\n- plugin.id\n- plugin.originalId\n- plugin.invoice\n- plugin.orderNumber\n- plugin.description\n- plugin.pluginType\n- plugin.paymentOptionTag\n- plugin.transactionId\n- transactionDetails\n- transactionDetails.id\n- transactionDetails.clientIp\n- transactionDetails.customFields\n- transactionDetails.description\n- transactionDetails.installments\n- transactionDetails.installmentUnit\n- transactionDetails.paymentType\n- transactionDetails.retryCount\n- transactionDetails.shoppingCart\n- transactionDetails.userName\n- transactionDetails.transactionId\n- linkedChargebackId\n\n</div>",
        "operationId": "ViewTransactionPaymentId",
        "tags": [
          "Transactions"
        ],
        "security": [
          {
            "Basic_Authentication": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "paymentId",
            "description": "The Nexio Payment ID",
            "schema": {
              "type": "string",
              "example": "eyJuYW3dIjoicGF5bWVudHNfb3NfY29sb21PeLDDLCJtZXJjaGFudElkIjoiMDAwMTExIiwicmVmTnV1234kIjoiNmEwZGU2OTgtZjIzYy00ODA1LTkwNzYpenDUrkgsDlhODEyIiwicmFuZG9tIjowLCJjdXJyZW5jeSI6IppRFNJ9"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/paths/~1transaction~1v3~1%7BtransactionId%7D/get/responses/200/content/application~1json/schema"
                },
                "examples": {
                  "Example response for card transaction": {
                    "value": {
                      "id": 7971,
                      "merchantId": "000999",
                      "amount": 8.99,
                      "transactionDate": "2021-06-30T14:14:57.000Z",
                      "transactionStatus": 10,
                      "authCode": "834448",
                      "transactionType": 10,
                      "cardType": 10,
                      "cardNumber": "424242******4242",
                      "cardHolder": "John H Doe",
                      "processMethod": 10,
                      "achDetailId": "MTAtNTAyNzgvMTkwNTNwBTUxNTc5NDAwMDAwMTEwMw==",
                      "currencyId": "840",
                      "reportDate": "2019-02-23T05:39:59.000Z",
                      "settledDate": "2019-02-22T05:39:59.000Z",
                      "capturedDate": "2019-02-22T05:39:59.000Z",
                      "originalTransactionId": 9456329,
                      "createdAt": "2019-02-21T05:39:59.000Z",
                      "updatedAt": "2019-02-23T05:39:59.000Z",
                      "customer": {
                        "id": 4479109,
                        "firstName": "Juan",
                        "lastName": "Perez",
                        "postalCode": "12345",
                        "phone": "8015551234",
                        "email": "juanperez@example.com",
                        "company": "My Company",
                        "customerRef": "customer123",
                        "transactionId": 7971
                      },
                      "kount": {
                        "id": 109458,
                        "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}",
                        "refNumber": "73PX0WY7JSXP",
                        "merc": "717000",
                        "score": "34",
                        "ruleCount": 1,
                        "warningCount": 0,
                        "counterCount": 0,
                        "wasDeviceFingerprinted": false,
                        "mode": "Q",
                        "velo": 0,
                        "vmax": 0,
                        "transactionId": 374242
                      },
                      "bankTransfer": {
                        "account": "***********6789",
                        "checkNumber": "1040",
                        "id": 0,
                        "routing": "******2971",
                        "transactionId": 7971
                      },
                      "foreignProcessingCurrency": {
                        "amount": 9.99,
                        "currencyId": "840",
                        "id": 1313714,
                        "transactionId": 7971
                      },
                      "threeDS": {
                        "id": 1313714,
                        "ECI": "05",
                        "type": 0,
                        "transactionId": 7971
                      },
                      "gateway": {
                        "gatewayName": "nmi",
                        "refNumber": "3107885809",
                        "nsu": "123456789876543"
                      },
                      "processor": {
                        "id": "1120391"
                      },
                      "customerAddresses": {
                        "billingAddressOne": "2147 West Silverlake Drive",
                        "billingAddressTwo": "Apt 42",
                        "billingCity": "Scranton",
                        "billingCountry": "US",
                        "billingPhone": "1555555555",
                        "billingPostal": "18503",
                        "billingState": "PA",
                        "shippingAddressOne": "1725 Slough Avenue",
                        "shippingAddressTwo": "Apt 42",
                        "shippingCity": "Scranton",
                        "shippingCountry": "US",
                        "shippingPhone": "1555555555",
                        "shippingPostal": "1555555555",
                        "shippingState": "PA",
                        "id": 1313714,
                        "transactionId": 7971
                      },
                      "subscription": {
                        "id": 1120391,
                        "accountId": "27592004",
                        "initialBalance": 49.95,
                        "interval": "month",
                        "intervalCount": 0,
                        "remainingBalance": 25.95,
                        "scheduleType": 20,
                        "subscriptionRef": "e80d63dd-a77b-407a-9124-42acf00740dd",
                        "transactionId": 7971
                      },
                      "cardMetaData": {
                        "id": 1120391,
                        "bin": "424242",
                        "cardBrand": "VISA",
                        "class": 2,
                        "countryCode": "US",
                        "currencyCode": "USD",
                        "issuingBank": "BANK OF AMERICA",
                        "transactionId": 7971
                      },
                      "plugin": {
                        "id": 373496,
                        "originalId": "eyJuYW1lIjoic3dpdGNoIiwibWVyY2hhbnRJZCI6IjEwMDAzOSIsInJlZk51bWJlciI6IjQ0ZmRhYzRhZTczZTA1NWQ0MDY1NGZhNzBkNzQ5YTc5YTYwODlhMjI1ZGQ1YTc3ZiIsInJhbmRvbSI6MCwiY3VycmVuY3kiOiJ6YXIifQ==",
                        "invoice": "invoice123",
                        "orderNumber": "order456",
                        "description": "Description of the order",
                        "pluginType": 20,
                        "paymentOptionTag": "switch",
                        "transactionId": 7971
                      },
                      "transactionDetails": {
                        "id": 1120391,
                        "clientIp": "10.0.0.1",
                        "customFields": "'{\"exampleKey\":\"Example string\",\"exampleRefNumber\":\"094785\"}'",
                        "description": "[transaction-description]",
                        "installments": 6,
                        "installmentUnit": "months",
                        "paymentType": "initialScheduled",
                        "retryCount": 1,
                        "shoppingCart": "{\\\"items\\\":[{\\\"description\\\":\\\"Hammermill Premium 8.5 x 11 Color Copy Paper, 28 lbs. 500/Ream\\\",\\\"item\\\":\\\"913261\\\",\\\"quantity\\\":8,\\\"type\\\":\\\"sale\\\",\\\"price\\\":16.49}]}",
                        "userName": "apiuser@example.com",
                        "transactionId": 7971
                      },
                      "linkedChargebackId": 302773
                    }
                  },
                  "Example response for retail transaction": {
                    "value": {
                      "id": 7971,
                      "merchantId": "100039",
                      "amount": 8.99,
                      "transactionDate": "2021-06-30T14:14:57.000Z",
                      "transactionStatus": 10,
                      "authCode": "035410",
                      "transactionType": 10,
                      "cardType": 10,
                      "cardNumber": "424242******4242",
                      "cardHolder": "John H Doe",
                      "processMethod": 11,
                      "achDetailId": null,
                      "currencyId": "840",
                      "reportDate": null,
                      "settledDate": null,
                      "capturedDate": null,
                      "originalTransactionId": null,
                      "createdAt": "2019-02-21T05:39:59.000Z",
                      "updatedAt": "2019-02-23T05:39:59.000Z",
                      "customer": {
                        "id": 4479109,
                        "firstName": "Juan",
                        "lastName": "Perez",
                        "postalCode": "12345",
                        "phone": "8015551234",
                        "email": "juanperez@example.com",
                        "company": "My Company",
                        "customerRef": "customer123",
                        "transactionId": 7971
                      },
                      "kount": null,
                      "bankTransfer": null,
                      "foreignProcessingCurrency": null,
                      "threeDS": null,
                      "gateway": {
                        "gatewayName": "nmi",
                        "refNumber": "3107885809"
                      },
                      "processor": null,
                      "customerAddresses": null,
                      "subscription": null,
                      "cardMetaData": {
                        "id": 1120391,
                        "bin": "424242",
                        "cardBrand": "VISA",
                        "class": 2,
                        "countryCode": "US",
                        "currencyCode": "USD",
                        "issuingBank": "BANK OF AMERICA",
                        "transactionId": 7971
                      },
                      "plugin": {
                        "id": 373496,
                        "originalId": "eyJuYW1lIjoic3dpdGNoIiwibWVyY2hhbnRJZCI6IjEwMDAzOSIsInJlZk51bWJlciI6IjQ0ZmRhYzRhZTczZTA1NWQ0MDY1NGZhNzBkNzQ5YTc5YTYwODlhMjI1ZGQ1YTc3ZiIsInJhbmRvbSI6MCwiY3VycmVuY3kiOiJ6YXIifQ==",
                        "invoice": "invoice123",
                        "orderNumber": "order456",
                        "description": "Description of the order",
                        "userId": "string",
                        "pluginType": 20,
                        "paymentOptionTag": "switch",
                        "transactionId": 7971
                      },
                      "transactionDetails": {
                        "id": 1120391,
                        "clientIp": "10.0.0.1",
                        "customFields": "'{\"exampleKey\":\"Example string\",\"exampleRefNumber\":\"094785\"}'",
                        "description": "[transaction-description]",
                        "installments": 6,
                        "installmentUnit": "months",
                        "paymentType": "initialScheduled",
                        "retryCount": 1,
                        "shoppingCart": "{\\\"items\\\":[{\\\"description\\\":\\\"Hammermill Premium 8.5 x 11 Color Copy Paper, 28 lbs. 500/Ream\\\",\\\"item\\\":\\\"913261\\\",\\\"quantity\\\":8,\\\"type\\\":\\\"sale\\\",\\\"price\\\":16.49}]}",
                        "userName": "apiuser@example.com",
                        "transactionId": 7971
                      },
                      "linkedChargebackId": 302773
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          }
        },
        "summary": "View transaction by payment ID"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```