API ReferenceTransactions
Get a transaction by ID
import { PaytrieAPI, configure } from '@paytrie/sdk'configure({ headers: { 'x-api-key': process.env.PAYTRIE_API_KEY! } })const { data } = await PaytrieAPI.getTransaction("3943bb00-1551-4f1d-bf32-2d82608bc15e"){ "success": true, "data": { "id": "3943bb00-1551-4f1d-bf32-2d82608bc15e", "date": "2025-07-25T14:02:36.000Z", "coin": "USDC", "leftSideLabel": "CAD", "leftSideValue": 500, "rightSideLabel": "ETH-USDC", "rightSideValue": 325.5, "status": "complete", "wallet": "0x756Fead01907b3c2173d148f9864d00fAd371AB6", "paymentType": "interac", "paymentId": "pay_123456789", "rmtId": "CA1MRUaaErpx" }}{ "success": false, "errors": [ { "field": "string", "message": "string" } ]}