Looks up an onramp or offramp order by the id returned when it was created, at any stage from INIT through to COMPLETED or ERROR. Only orders belonging to the API key’s business are found; any other id returns 404.
GET
/
pub
/
v2
/
transaction
/
{id}
Get a transaction
curl --request GET \ --url https://api.paj.cash/pub/v2/transaction/{id} \ --header 'x-api-key: <api-key>'
Returns an onramp or offramp order in its current state. The id is the one on
the response that created the order — from Create an onramp
order or Create an offramp
order — and it stays the same for the
order’s whole life, so the id you stored at creation finds it at INIT,
PROCESSING, COMPLETED or ERROR alike.The body uses the same fields as the response that created the order and as a
ramp webhook delivery, so one parser handles all three. Two differences are
worth knowing:
The payout account (accountNumber, accountName, bank) that Create an
offramp order adds to its response is
not repeated here. Keep it from the creation response if you need it.
Once an onramp order is COMPLETED, the virtual account it was paid into is
no longer included — it has served its purpose.
When to call it
Webhooks are the primary way to follow an order; this is the fallback. It is
the right call when:
a webhook delivery failed or your handler was down, and you need to know where
an order ended up;
you want to confirm a webhook against Paj’s own record before acting on it;
you have no webhook configured and are polling.
If you are polling, a few seconds apart is plenty while an order is
PROCESSING. An order in INIT is waiting on your user, not on Paj, so there
is no point polling it quickly.
Only your own orders
The lookup is scoped to the business behind your API key. An id that belongs to
another business returns 404, exactly as an id that does not exist does, so the
response never reveals whether someone else’s order is real.An id that is not a well-formed id at all is a 400.
Unpaid orders are deleted 72 hours after creation, so an order that never
left INIT eventually starts returning 404. Treat that as expired rather
than as an error.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Paj API","colors":{"primary":"#0061ED","light":"#0061ED","dark":"#0061ED"},"favicon":"https://mintcdn.com/paj/sM84F14r9SEpFsV7/favicon.svg?fit=max\u0026auto=format\u0026n=sM84F14r9SEpFsV7\u0026q=85\u0026s=1ac0aa4dd2971336449606bf145b0b22","appearance":{"default":"light"},"navbar":{"primary":{"type":"button","label":"Get an API key","href":"https://developer.paj.cash/"}},"footer":{"socials":{"website":"https://paj.cash"}},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"paj","hasAudioNarration":false,"actualSubdomain":"paj","customDomains":["docs.paj.cash"],"gitSource":{"type":"github","owner":"paj-cash","repo":"main_backend","deployBranch":"main","contentDirectory":"docs-site","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6afc1f7e8fbc458f58e290a6","clientVersion":"0.0.4177","searchFilterCounts":[{"language":"default","tag":"API reference","count":22},{"language":"default","tag":"Documentation","count":11},{"language":"default","tag":"Concepts","count":8},{"language":"default","tag":"KYC","count":6},{"language":"default","tag":"Reference data","count":4},{"language":"default","tag":"Get started","count":3},{"language":"default","tag":"Payments","count":2},{"language":"default","tag":"Bank accounts","count":2},{"language":"default","tag":"Webhooks","count":2},{"language":"default","tag":"Offramp","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/get-transaction","slug":"/api-reference/get-transaction","pageMetadata":{"title":"Get a transaction","openapi":"GET /pub/v2/transaction/{id}","description":"Looks up an onramp or offramp order by the id returned when it was created, at any stage from INIT through to COMPLETED or ERROR. Only orders belonging to the API key’s business are found; any other id returns 404.","href":"/api-reference/get-transaction"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Looks up an onramp or offramp order by the id returned when it was created, at any stage from INIT through to COMPLETED or ERROR. Only orders belonging to the API key’s business are found; any other id returns 404.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Note}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Returns an onramp or offramp order in its current state. The `,_jsx(_components.code,{children:`id`}),` is the one on\nthe response that created the order — from `,_jsx(_components.a,{href:`/api-reference/create-onramp-order`,children:`Create an onramp\norder`}),` or `,_jsx(_components.a,{href:`/api-reference/create-offramp-order`,children:`Create an offramp\norder`}),` — and it stays the same for the\norder’s whole life, so the id you stored at creation finds it at `,_jsx(_components.code,{children:`INIT`}),`,\n`,_jsx(_components.code,{children:`PROCESSING`}),`, `,_jsx(_components.code,{children:`COMPLETED`}),` or `,_jsx(_components.code,{children:`ERROR`}),` alike.`]}),`\n`,_jsx(_components.p,{children:`The body uses the same fields as the response that created the order and as a\nramp webhook delivery, so one parser handles all three. Two differences are\nworth knowing:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`The payout account (`,_jsx(_components.code,{children:`accountNumber`}),`, `,_jsx(_components.code,{children:`accountName`}),`, `,_jsx(_components.code,{children:`bank`}),`) that `,_jsx(_components.a,{href:`/api-reference/create-offramp-order`,children:`Create an\nofframp order`}),` adds to its response is\nnot repeated here. Keep it from the creation response if you need it.`]}),`\n`,_jsxs(_components.li,{children:[`Once an onramp order is `,_jsx(_components.code,{children:`COMPLETED`}),`, the virtual account it was paid into is\nno longer included — it has served its purpose.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`when-to-call-it`,children:`When to call it`}),`\n`,_jsx(_components.p,{children:`Webhooks are the primary way to follow an order; this is the fallback. It is\nthe right call when:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`a webhook delivery failed or your handler was down, and you need to know where\nan order ended up;`}),`\n`,_jsx(_components.li,{children:`you want to confirm a webhook against Paj’s own record before acting on it;`}),`\n`,_jsx(_components.li,{children:`you have no webhook configured and are polling.`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`If you are polling, a few seconds apart is plenty while an order is\n`,_jsx(_components.code,{children:`PROCESSING`}),`. An order in `,_jsx(_components.code,{children:`INIT`}),` is waiting on your user, not on Paj, so there\nis no point polling it quickly.`]}),`\n`,_jsx(Heading,{level:`2`,id:`only-your-own-orders`,children:`Only your own orders`}),`\n`,_jsxs(_components.p,{children:[`The lookup is scoped to the business behind your API key. An id that belongs to\nanother business returns `,_jsx(_components.code,{children:`404`}),`, exactly as an id that does not exist does, so the\nresponse never reveals whether someone else’s order is real.`]}),`\n`,_jsxs(_components.p,{children:[`An id that is not a well-formed id at all is a `,_jsx(_components.code,{children:`400`}),`.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Unpaid orders are deleted 72 hours after creation, so an order that never\nleft `,_jsx(_components.code,{children:`INIT`}),` eventually starts returning `,_jsx(_components.code,{children:`404`}),`. Treat that as expired rather\nthan as an error.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Get a transaction","openapi":"GET /pub/v2/transaction/{id}","description":"Looks up an onramp or offramp order by the id returned when it was created, at any stage from INIT through to COMPLETED or ERROR. Only orders belonging to the API key’s business are found; any other id returns 404.","href":"/api-reference/get-transaction"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"When to call it","slug":"when-to-call-it","depth":2,"children":[]},{"title":"Only your own orders","slug":"only-your-own-orders","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"description":"Looks up an onramp or offramp order by the id returned when it was created, at any stage from INIT through to COMPLETED or ERROR. Only orders belonging to the API key’s business are found; any other id returns 404.","operationId":"PubV2Controller_getTransaction","parameters":["f0a1dde1-a073-40cc-b7e8-dd7fbe30c5b6"],"responses":{"200":"c624a6fa-5940-4489-b6f0-11902e9ccd4f","400":"62270579-3cb0-4724-ad9b-f4eb256bb36b","401":"c25da36b-f560-4973-90bb-b3933ce95755","404":"7beb5e79-6052-4d39-8b70-751b0fe6de85"},"security":["b3afc97a-88ba-4bc3-a219-031d81d7d2ac"],"summary":"Get a transaction","tags":["Pub V2"],"method":"get","type":"path","servers":["48304386-2186-49fe-ad69-f0ee560490f3"],"path":"/pub/v2/transaction/{id}","baseUrlOptions":["https://api.paj.cash"],"title":"Get a transaction","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"f0a1dde1-a073-40cc-b7e8-dd7fbe30c5b6":{"name":"id","required":true,"in":"path","description":"The id returned when the order was created","schema":{"example":"68ff3a4ee9834db8927f61ed","type":"string","isRequired":true,"description":"The id returned when the order was created","uniqueKey":"","typeLabel":"string"}}},"responses":{"c624a6fa-5940-4489-b6f0-11902e9ccd4f":{"description":"The transaction in its current state","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Transaction Id","example":"679be2527f99f556d77b8cc2","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"address":{"type":"string","description":"Address","example":"4KSLE7EU1P7PQ8Rc4hdb2ZKq2JmWHD8UXJp7guEdyT9j","isRequired":true,"uniqueKey":"address","typeLabel":"string"},"signature":{"type":"string","description":"Transaction Signature","example":"2oLx7XrXP7Df9dZca1difJ91ZFmA44EEadNqrZTecta6ugcX8BAETbpvKQs54r58fmJTQVLzUSuzvRBFwS1GfJLo","isRequired":true,"uniqueKey":"signature","typeLabel":"string"},"mint":{"type":"string","description":"Mint Address","example":"So11111111111111111111111111111111111111112","isRequired":true,"uniqueKey":"mint","typeLabel":"string"},"currency":{"type":"object","description":"Currency","example":"NGN","isRequired":true,"uniqueKey":"currency","typeLabel":"object"},"amount":{"type":"number","description":"Mint Amount","example":100000,"isRequired":true,"uniqueKey":"amount","typeLabel":"number"},"usdcAmount":{"type":"number","description":"Usdc Amount","example":100,"isRequired":true,"uniqueKey":"usdcAmount","typeLabel":"number"},"fiatAmount":{"type":"number","description":"Fiat Amount","example":100,"isRequired":true,"uniqueKey":"fiatAmount","typeLabel":"number"},"sender":{"type":"string","description":"Wallet Public Key","example":"4KSLE7EU1P7PQ8Rc4hdb2ZKq2JmWHD8UXJp7guEdyT9j","isRequired":true,"uniqueKey":"sender","typeLabel":"string"},"recipient":{"type":"string","description":"Recipient Public Key","example":"4KSLE7EU1P7PQ8Rc4hdb2ZKq2JmWHD8UXJp7guEdyT9j","isRequired":true,"uniqueKey":"recipient","typeLabel":"string"},"rate":{"type":"number","description":"Rate of currency to usdc","example":9,"isRequired":true,"uniqueKey":"rate","typeLabel":"number"},"status":{"type":"object","description":"Transaction Status","example":"PENDDING","isRequired":true,"uniqueKey":"status","typeLabel":"object"},"transactionType":{"type":"object","description":"Transaction Type","example":"OFF_RAMP","isRequired":true,"uniqueKey":"transactionType","typeLabel":"object"},"createdAt":{"format":"date-time","type":"string","description":"Transaction creation date","example":"2026-11-16T22:08:05.608Z","isRequired":true,"uniqueKey":"createdAt","typeLabel":"string\u003cdate-time>"},"accountNumber":{"type":"string","description":"Account Number (for onramp transactions)","example":"0025635480","isRequired":true,"uniqueKey":"accountNumber","typeLabel":"string"},"accountName":{"type":"string","description":"Account Name (for onramp transactions)","example":"Paj Inc.","isRequired":true,"uniqueKey":"accountName","typeLabel":"string"},"bank":{"type":"string","description":"Bank Name (for onramp transactions)","example":"First Bank","isRequired":true,"uniqueKey":"bank","typeLabel":"string"},"fee":{"type":"number","description":"Transaction fee in usdc","example":0.2,"isRequired":true,"uniqueKey":"fee","typeLabel":"number"},"chain":{"type":"object","description":"Chain","example":"SOLANA","isRequired":true,"uniqueKey":"chain","typeLabel":"object"}},"required":["id","address","signature","mint","currency","amount","usdcAmount","fiatAmount","sender","recipient","rate","status","transactionType","createdAt","accountNumber","accountName","bank","fee","chain"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"679be2527f99f556d77b8cc2","address":"4KSLE7EU1P7PQ8Rc4hdb2ZKq2JmWHD8UXJp7guEdyT9j","signature":"2oLx7XrXP7Df9dZca1difJ91ZFmA44EEadNqrZTecta6ugcX8BAETbpvKQs54r58fmJTQVLzUSuzvRBFwS1GfJLo","mint":"So11111111111111111111111111111111111111112","currency":"NGN","amount":100000,"usdcAmount":100,"fiatAmount":100,"sender":"4KSLE7EU1P7PQ8Rc4hdb2ZKq2JmWHD8UXJp7guEdyT9j","recipient":"4KSLE7EU1P7PQ8Rc4hdb2ZKq2JmWHD8UXJp7guEdyT9j","rate":9,"status":"PENDDING","transactionType":"OFF_RAMP","createdAt":"2026-11-16T22:08:05.608Z","accountNumber":"0025635480","accountName":"Paj Inc.","bank":"First Bank","fee":0.2,"chain":"SOLANA"}}},"exampleType":"generated"}},"exampleType":"generated"},"62270579-3cb0-4724-ad9b-f4eb256bb36b":{"description":"The id is not a valid id","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"c25da36b-f560-4973-90bb-b3933ce95755":{"description":"Missing or invalid API key (x-api-key header)","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"7beb5e79-6052-4d39-8b70-751b0fe6de85":{"description":"No transaction with that id belongs to your business","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"b3afc97a-88ba-4bc3-a219-031d81d7d2ac":{"x-api-key":{"type":"apiKey","in":"header","name":"x-api-key","scopes":[],"schemeName":"x-api-key"}}},"servers":{"48304386-2186-49fe-ad69-f0ee560490f3":{"url":"https://api.paj.cash","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","scopes":[],"schemeName":"x-api-key"},"schema":{"title":"x-api-key","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"x-api-key","name":"x-api-key"}],"title":"x-api-key"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"paj","siteName":"Paj API","title":"Get a transaction - Paj API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-29T01:03:42.043Z","originalFileLocation":"api-reference/get-transaction.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Looks up an onramp or offramp order by the id returned when it was created, at any stage from INIT through to COMPLETED or ERROR. Only orders belonging to the API key’s business are found; any other id returns 404.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Paj API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/paj/DFLkHVdVXYAdgkSY/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/paj/DFLkHVdVXYAdgkSY/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/paj/DFLkHVdVXYAdgkSY/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/paj/DFLkHVdVXYAdgkSY/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/paj/DFLkHVdVXYAdgkSY/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/paj/DFLkHVdVXYAdgkSY/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/paj/DFLkHVdVXYAdgkSY/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/paj/DFLkHVdVXYAdgkSY/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/paj/DFLkHVdVXYAdgkSY/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get a transaction - Paj API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Looks up an onramp or offramp order by the id returned when it was created, at any stage from INIT through to COMPLETED or ERROR. Only orders belonging to the API key’s business are found; any other id returns 404.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Paj API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.paj.cash/api-reference/get-transaction\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://paj.mintlify.site/_mintlify/api/og/v2?division=Transactions\u0026amp;title=Get+a+transaction\u0026amp;description=Looks+up+an+onramp+or+offramp+order+by+the+id+returned+when+it+was+created%2C+at+any+stage+from+INIT+through+to+COMPLETED+or+ERROR.+Only+orders+belonging+to+the+A\u0026amp;theme=07e22cd0d20fc7185c62ff58\u0026amp;signature=8e9d9ae602c08df182d522ad775c9fe68cc284075aac7e2707db8f51e8f416fe\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Get a transaction - Paj API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Looks up an onramp or offramp order by the id returned when it was created, at any stage from INIT through to COMPLETED or ERROR. Only orders belonging to the API key’s business are found; any other id returns 404.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://paj.mintlify.site/_mintlify/api/og/v2?division=Transactions\u0026amp;title=Get+a+transaction\u0026amp;description=Looks+up+an+onramp+or+offramp+order+by+the+id+returned+when+it+was+created%2C+at+any+stage+from+INIT+through+to+COMPLETED+or+ERROR.+Only+orders+belonging+to+the+A\u0026amp;theme=07e22cd0d20fc7185c62ff58\u0026amp;signature=8e9d9ae602c08df182d522ad775c9fe68cc284075aac7e2707db8f51e8f416fe\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/paj/DFLkHVdVXYAdgkSY/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Paj API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0061ED\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.paj.cash/api-reference/get-transaction\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/get-transaction.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.paj.cash/#organization\",\"name\":\"Paj API\",\"url\":\"https://docs.paj.cash\"},{\"@type\":\"WebSite\",\"@id\":\"https://docs.paj.cash#website\",\"name\":\"Paj API\",\"url\":\"https://docs.paj.cash\",\"publisher\":{\"@id\":\"https://docs.paj.cash/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.paj.cash/api-reference/get-transaction#webpage\",\"url\":\"https://docs.paj.cash/api-reference/get-transaction\",\"name\":\"Get a transaction\",\"description\":\"Looks up an onramp or offramp order by the id returned when it was created, at any stage from INIT through to COMPLETED or ERROR. Only orders belonging to the API key’s business are found; any other id returns 404.\",\"dateModified\":\"2026-09-29T01:03:42.043Z\",\"isPartOf\":{\"@id\":\"https://docs.paj.cash#website\"},\"breadcrumb\":{\"@id\":\"https://docs.paj.cash/api-reference/get-transaction#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.paj.cash/api-reference/get-transaction#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Paj API\",\"item\":\"https://docs.paj.cash\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Get a transaction\",\"item\":\"https://docs.paj.cash/api-reference/get-transaction\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.paj.cash/api-reference/get-transaction#apireference\",\"headline\":\"Get a transaction\",\"name\":\"Get a transaction\",\"description\":\"Looks up an onramp or offramp order by the id returned when it was created, at any stage from INIT through to COMPLETED or ERROR. Only orders belonging to the API key’s business are found; any other id returns 404.\",\"url\":\"https://docs.paj.cash/api-reference/get-transaction\",\"mainEntityOfPage\":{\"@id\":\"https://docs.paj.cash/api-reference/get-transaction#webpage\"},\"dateModified\":\"2026-09-29T01:03:42.043Z\",\"publisher\":{\"@id\":\"https://docs.paj.cash/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.paj.cash#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Paj API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Paj API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/get-transaction.md","siteName":"Paj API","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"API reference","groups":[{"group":"KYC","pages":[{"title":"Get the KYC consent text","openapi":"GET /pub/v2/kyc/consent","href":"/api-reference/get-kyc-consent"},{"title":"Start verifying a person","openapi":"POST /pub/v2/kyc/sessions","href":"/api-reference/create-kyc-session"},{"title":"Confirm the code","openapi":"POST /pub/v2/kyc/sessions/{id}/verify-otp","href":"/api-reference/verify-kyc-otp"},{"title":"Send a new code","openapi":"POST /pub/v2/kyc/sessions/{id}/resend-otp","href":"/api-reference/resend-kyc-otp"},{"title":"Get a KYC session","openapi":"GET /pub/v2/kyc/sessions/{id}","href":"/api-reference/get-kyc-session"},{"title":"Get a customer","openapi":"GET /pub/v2/customers/{customerId}","href":"/api-reference/get-customer"}]},{"group":"Bank accounts","pages":[{"title":"Register a bank account","openapi":"POST /pub/v2/bank-account","href":"/api-reference/register-bank-account"},{"title":"Search for a bank account","openapi":"GET /pub/v2/bank-account","href":"/api-reference/search-bank-account"}]},{"group":"Deposit tracking","pages":[{"title":"Track a deposit","href":"/api-reference/track-deposits"}]},{"group":"Banks","pages":[{"title":"Get banks","openapi":"GET /pub/v2/bank","href":"/api-reference/get-banks"}]},{"group":"Onramp","pages":[{"title":"Create an onramp order","openapi":"POST /pub/v2/onramp","href":"/api-reference/create-onramp-order"}]},{"group":"Offramp","pages":[{"title":"Create an offramp order","openapi":"POST /pub/v2/offramp","description":"Opens an offramp order that pays out to a bank account identified by bank code and account number. The account is confirmed with the provider first, so an unknown bank code or an account number that cannot be resolved is rejected before any order exists. When a bvn is given the order is credited to that end user — traced through their KYC record, or verified and registered if the BVN is new; without one the order is not attributed to any user. Provide either amount (token) or fiatAmount, not both. The returned address is where the tokens should be sent to fund the order.","href":"/api-reference/create-offramp-order"}]},{"group":"Transactions","pages":[{"title":"Get a transaction","openapi":"GET /pub/v2/transaction/{id}","href":"/api-reference/get-transaction"}]},{"group":"Payments","pages":[{"title":"Create a payment","openapi":"POST /pub/v2/payment","description":"Opens a payment collected on behalf of the API key’s business and returns the funding instructions. method defaults to TOKEN, which requires chain and mint and returns the deposit address under token. For method=FIAT a currency must be supplied and the response carries the virtual account details under fiat. The payment stays AWAITING until the funds land, and a platform fee is charged on top of amount — the payer funds totalAmount and your balance is credited the amount share. It settles as SUCCESSFUL when what arrives is no more than 0.1% short of totalAmount, and is then posted to the paymentWebhookURL configured on your API keys; a deposit any shorter leaves the payment in ERROR, unsettled.","href":"/api-reference/create-payment"},{"title":"Track a payment","href":"/api-reference/track-payments"}]},{"group":"Rates","pages":[{"title":"Get rates","openapi":"GET /pub/v2/rate","href":"/api-reference/get-rates"}]},{"group":"Reference data","pages":[{"title":"Get chains","openapi":"GET /pub/v2/chains","href":"/api-reference/get-chains"},{"title":"Get currencies","openapi":"GET /pub/v2/currencies","href":"/api-reference/get-currencies"},{"title":"List tokens on a chain","openapi":"GET /pub/v2/tokens","href":"/api-reference/get-tokens"},{"title":"Get a token","openapi":"GET /pub/v2/tokens/{address}","href":"/api-reference/get-token"}]},{"group":"Webhooks","pages":[{"title":"Update your webhook URLs","openapi":"PATCH /pub/v2/webhook","href":"/api-reference/update-webhooks"},{"title":"Test your webhook","openapi":"POST /pub/v2/webhook/test","href":"/api-reference/test-webhook"}]}]}]},"basePath":"","title":"Get a transaction - Paj API","deploymentId":"dpl_HhUetB7eHHDAmK9T1Teip38TgFx9","buildId":"dpl_HhUetB7eHHDAmK9T1Teip38TgFx9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-jJHA3WSo.js","utils-DbZn3Mjn.js","cloneDeep-CnBnaSyy.js","_Uint8Array-CMQtTgBR.js","isObject-FP1Yky1u.js","utils-Bl2DvzOJ.js","addUniqueKeysToSchema-BwOLo9p1.js","snippetPresets-BBiPpKa-.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-C0px4Tml.js","isEqual-zAyttAAO.js","usePlaygroundInputsStore-Dell6dGw.js","shallow-0VKqkSqN.js","getApiPlaygroundDisplay-CP_ctPEB.js","CodeSnippet-5L35ic0s.js","CodeSnippets-DOXbNhJw.js","Page-DRLI_2Ue.js","getPastedJson-VhzT9m2P.js","icon-CD8_AtCO.js","MethodPill-DGgOMftG.js","DuplicateIcon-DZ6A_EtN.js","createIcon-DUl4oM5f.js","DynamicMarkdown-BGHukeRM.js","SectionHeading-ChrEUs8u.js","axios-vUo_bRtp.js","Markdown-Dj-na-_-.js","dist-C5gjFYHe.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","katex-YMM-FMeD.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js","AssistantPageLink-DEBW87tT.js"]}