Customize Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorized as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

Advertisement cookies are used to provide visitors with customized advertisements based on the pages you visited previously and to analyze the effectiveness of the ad campaigns.

Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.

Skip to main content

Get a transaction ID

You can get transactions IDs with the API or on your Dashboard.

Dashboard​

All transaction IDs for your project are on your Dashboard.

  1. On your Dashboard, go to Data > Transactions.
  2. Find the transaction you need.
  3. Scroll horizontally to locate the transaction ID, then click to copy.

Screenshot of Swan Dashboard transactions page with a callout of a single transaction ID

API guide​

Queries are highly customizable. This guide focuses solely on using the transactions query to get transaction IDs. Learn more about this query in the guide to get transaction information.

  1. Call the transactions query.
  2. Check the boxes for edges and node.
  3. Under node, check the boxes for id, createdAt, and label.
    • label often contains a name, which might be helpful.
    • createdAt could help you identity the payment ID you're searching for if you know when the payment was initiated.
    • Additionally, you might choose to get only the first 10 IDs on the list, use pagination to filter further, or add a totalCount.

Query​

Open in API Explorer
query GetTransactionId {
transactions {
edges {
node {
id
createdAt
label
}
}
totalCount
}
}

Payload​

{
"data": {
"transactions": {
"edges": [
{
"node": {
"id": "bosco_05582b065b10c5ca8aa03342bb1cf389",
"createdAt": "2023-05-15T11:34:10.101Z",
"label": "Transfer to Matilde Rana"
}
},
{
"node": {
"id": "bosci_00d62797731fb95ee2f91ca32f4165e9",
"createdAt": "2023-03-30T13:24:39.477Z",
"label": "Transfer from Sasha Oliveira"
}
},
],
"totalCount": 2
}
}
}