Finding a transaction

Background
Before starting this tutorial, make sure you understand the following topics from the Quick start section:

To query for a transaction created through the Nexio Payment iframe or API, follow the steps below:

  1. Run a payment using the Run card transaction with iframe endpoint or Run card transaction directly through the Payments API.

    {
      "amount": 34.25,
      "authCode": "035410",
      "card": {...},
      "currency": "USD",
      "data": {...},
      "gatewayResponse": {...},
      "id": "eyJuYW1lIjoidXNhZXBheSIsInJlZk51bWJlciI6IjMxMDA5MDc4MTkiLCJtZXJjaGFudElkIjoiMTAwMDM5IiwicmFuZG9tIjoiMzEwMDkwNzgxOSIsImN1cnJlbmN5IjoiVVNEIn0=",
      "kountResponse": {...},
      "merchantId": "100039",
      "token": {...},
      "transactionDate": "2019-01-15T13:19:39.329Z",
      "transactionStatus": "pending",
      "transactionType": "sale"
    }
    
  2. Save the id from the response.

    This is the Payment ID.

  3. Use the Payment ID to query the transaction service.

    curl -X GET https://api.nexiopaysandbox.com/transaction/v3?plugin.originalId=eyJuYW1lIjoidXNhZXBheSIsInJlZk51bWJlciI6IjMxMDA5MDc4MTkiLCJtZXJjaGFudElkIjoiMTAwMDM5IiwicmFuZG9tIjoiMzEwMDkwNzgxOSIsImN1cnJlbmN5IjoiVVNEIn0 \
      -H 'Accept: application/json' \
      -H 'Authorization: Basic [Base64_encoded_login]'
    

    You may also request to have additional query parameters returned or filter the request based on fields of the query parameters.

📘

Note

Transactions from the Payment Service are added to the Transaction Service every minute and not in real-time. Attempting to query the Transaction Service sooner than one minute after running a transaction may return no results.