Mark a pix or voucher transaction as paid outside Pagou, for example when the buyer paid by bank transfer after the charge expired. Use the transaction UUID returned as id in the path and authenticate with your company API key.The transaction moves to paid_externally for its full amount and Pagou runs the same delivery flow as a paid sale: the transaction.paid webhook (with status: "paid_externally"), the buyer confirmation e-mail and the tracking integrations.
No money moves through Pagou for this sale: it creates no balance, settlement or sale fee, and it cannot be refunded or undone. Services your company has enabled, such as the buyer confirmation e-mail, are still charged as usual. Your integration must release orders on paid_externally as well as on paid.
Card, canceled, paid and refunded transactions return 422. When the charge is still open, Pagou also tries to cancel it; the marking happens whether or not the cancellation succeeds.
Calling the endpoint again for a transaction already marked returns its current state with 200 and has no other effect: no second webhook and no second e-mail. The reason and external_reference sent in the new call are ignored; the ones from the first marking are kept.
If the original charge is paid after the marking, the transaction moves to paid and the money follows the normal flow, with its fee. No second transaction.paid is sent, so the order is not released twice. Refunding that payment to the buyer follows the regular refund flow.
{"docsConfig":{"theme":"sequoia","$schema":"https://mintlify.com/docs.json","name":"Pagou Developer Docs","description":"Integrate payments, subscriptions, payouts, webhooks, and frontend card flows with Pagou.ai API.","colors":{"primary":"#198754","light":"#07C983","dark":"#198754"},"logo":{"light":"https://mintcdn.com/pagouai/G-8AHDSd0H3lSbe_/logo/logo-long.webp?fit=max\u0026auto=format\u0026n=G-8AHDSd0H3lSbe_\u0026q=85\u0026s=f29ebde8b8d8c96183843fc8bc58e508","dark":"https://mintcdn.com/pagouai/G-8AHDSd0H3lSbe_/logo/logo-long-dark.webp?fit=max\u0026auto=format\u0026n=G-8AHDSd0H3lSbe_\u0026q=85\u0026s=838f22bb8beb6e11ce9c45d0e3dba402"},"favicon":"https://mintcdn.com/pagouai/G-8AHDSd0H3lSbe_/logo/logo-short.webp?fit=max\u0026auto=format\u0026n=G-8AHDSd0H3lSbe_\u0026q=85\u0026s=38c30337b736500dd5c2667b1820ba19","background":{"decoration":"windows"},"navbar":{"links":[{"icon":"bot","href":"/start-here/ai-integration","label":"Integrate with AI"},{"icon":"activity","href":"https://status.pagou.ai","label":"Status"},{"icon":"arrow-up-right","href":"https://pagou.ai","label":"Pagou.ai"}]},"footer":{},"fonts":{"family":"Google Sans"},"icons":{"library":"lucide"},"integrations":{"intercom":{"appId":"uhg6tri7"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"AI Integration","icon":"bot","href":"/start-here/ai-integration"},{"anchor":"API status","href":"https://status.pagou.ai"},{"anchor":"GitHub","href":"https://github.com/pagouai"}]},"languages":[{"language":"en","default":true,"href":""},{"language":"pt-BR","href":"pt"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"pagouai","hasAudioNarration":false,"actualSubdomain":"pagouai","customDomains":["developer.pagou.ai"],"gitSource":{"type":"github","owner":"pagouai","repo":"gateway-backend","deployBranch":"main","contentDirectory":"packages/docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ad89e5fa69b8ab3962e40cd","collectionId":"9bbb5f01-8872-4714-8dae-209caa0b2eaa","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ad89e5fa69b8ab3962e40cd"},"entitlements":{},"buildId":"6ae32a98fa750f9207824cbb","clientVersion":"0.0.4006","searchFilterCounts":[{"language":"en","tag":"API Reference","count":34},{"language":"pt-BR","tag":"Referência API","count":34},{"language":"en","tag":"Payments","count":15},{"language":"pt-BR","tag":"Pagamentos","count":15},{"language":"en","tag":"Start Here","count":13},{"language":"pt-BR","tag":"Comece Aqui","count":13},{"language":"en","tag":"Subscriptions","count":11},{"language":"pt-BR","tag":"Assinaturas","count":11},{"language":"en","tag":"Webhooks","count":10},{"language":"pt-BR","tag":"Transferências","count":10},{"language":"pt-BR","tag":"Webhooks","count":10},{"language":"en","tag":"Legacy v1","count":9},{"language":"en","tag":"Front-end","count":9},{"language":"pt-BR","tag":"Legado v1","count":9},{"language":"pt-BR","tag":"Frontend","count":9},{"language":"en","tag":"Transactions","count":7},{"language":"en","tag":"Resources","count":7},{"language":"en","tag":"Examples","count":7},{"language":"pt-BR","tag":"Transações","count":7},{"language":"pt-BR","tag":"Recursos","count":7}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","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":"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":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-private-page-search","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":"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":"byok-sep-25","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","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":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":":root{--pagou-ink:#0f172a;--pagou-mint:#07c983;--pagou-emerald:#16a34a;--pagou-forest:#14532d;--pagou-sand:#f8fafc;--pagou-border:rgba(15, 23, 42, 0.08)}.hero-shell{background:radial-gradient(circle at 18% 12%,rgba(7,201,131,.16),transparent 26%),radial-gradient(circle at 88% 10%,rgba(25,135,84,.12),transparent 22%),radial-gradient(circle at 50% 100%,rgba(22,163,74,.16),transparent 36%),linear-gradient(180deg,rgba(8,18,14,.98) 0,rgba(4,12,10,.96) 100%);border:1px solid rgba(52,211,153,.16);border-radius:28px;box-shadow:0 24px 80px rgba(2,6,23,.42);overflow:hidden;padding:2.4rem;position:relative}.hero-shell::after{background:radial-gradient(circle at 20% 100%,rgba(8,201,131,.12),transparent 26%),radial-gradient(circle at 70% 100%,rgba(163,230,53,.12),transparent 24%);bottom:-18%;content:\"\";height:54%;left:-6%;position:absolute;right:-6%}.hero-content{position:relative;z-index:1}.hero-kicker{color:#7ee7b8;font-size:.8rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase}.hero-grid{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.hero-panel{background:rgba(11,24,20,.76);border:1px solid rgba(52,211,153,.16);border-radius:18px;padding:1rem;backdrop-filter:blur(16px);box-shadow:inset 0 1px 0 rgba(255,255,255,.03)}.hero-shell h1,.hero-shell p,.hero-shell strong{color:rgba(241,245,249,.96)}.home-section{margin-top:2.4rem}.checklist-band{background:linear-gradient(90deg,rgba(20,83,45,.95),rgba(22,163,74,.92));border-radius:22px;color:#fff;padding:1.25rem 1.5rem}.checklist-band code,.checklist-band strong{color:#fff}.doc-note-grid{display:grid;gap:.8rem;grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.doc-note{background:linear-gradient(180deg,rgba(7,201,131,.08),rgba(22,163,74,.02));border:1px solid rgba(7,201,131,.16);border-radius:18px;padding:1rem}.legacy-banner{background:linear-gradient(90deg,rgba(127,29,29,.08),rgba(180,83,9,.08));border:1px solid rgba(180,83,9,.18);border-radius:18px;padding:1rem 1.1rem}.status-table strong{color:var(--pagou-ink)}"}],"page":{"pagePath":"api-reference/transactions/paid-externally","slug":"/api-reference/transactions/paid-externally","pageMetadata":{"title":"Mark a Transaction as Paid Externally","description":"Record a pix or voucher sale that the buyer paid outside Pagou.","icon":"hand-coins","openapi":"api-reference/openapi-v2.json PUT /v2/transactions/{id}/paid-externally","href":"/api-reference/transactions/paid-externally"},"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: \"Record a pix or voucher sale that the buyer paid outside Pagou.\"\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`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Mark a pix or voucher transaction as `,_jsx(_components.strong,{children:`paid outside Pagou`}),`, for example when the buyer paid by bank transfer after the charge expired. Use the transaction UUID returned as `,_jsx(_components.code,{children:`id`}),` in the path and authenticate with your company API key.`]}),`\n`,_jsxs(_components.p,{children:[`The transaction moves to `,_jsx(_components.code,{children:`paid_externally`}),` for its full amount and Pagou runs the same delivery flow as a paid sale: the `,_jsx(_components.code,{children:`transaction.paid`}),` webhook (with `,_jsx(_components.code,{children:`status: \"paid_externally\"`}),`), the buyer confirmation e-mail and the tracking integrations.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`No money moves through Pagou for this sale: it creates no balance, settlement or sale fee, and it cannot be refunded or undone. Services your company has enabled, such as the buyer confirmation e-mail, are still charged as usual. Your integration must release orders on `,_jsx(_components.code,{children:`paid_externally`}),` as well as on `,_jsx(_components.code,{children:`paid`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`which-transactions-can-be-marked`,children:`Which transactions can be marked`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Payment method `,_jsx(_components.code,{children:`pix`}),` or `,_jsx(_components.code,{children:`voucher`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Status `,_jsx(_components.code,{children:`pending`}),` or `,_jsx(_components.code,{children:`expired`}),`, never paid before.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Card, canceled, paid and refunded transactions return `,_jsx(_components.code,{children:`422`}),`. When the charge is still open, Pagou also tries to cancel it; the marking happens whether or not the cancellation succeeds.`]}),`\n`,_jsx(Heading,{level:`2`,id:`request-fields`,children:`Request fields`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Constraints`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`reason`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Trimmed, 1–500 chars, no ASCII control characters.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`external_reference`})}),_jsx(_components.td,{children:`string | null`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Trimmed, 1–255 chars, no ASCII control characters. Your own reference for the outside payment.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`idempotency`,children:`Idempotency`}),`\n`,_jsxs(_components.p,{children:[`Calling the endpoint again for a transaction already marked returns its current state with `,_jsx(_components.code,{children:`200`}),` and has no other effect: no second webhook and no second e-mail. The `,_jsx(_components.code,{children:`reason`}),` and `,_jsx(_components.code,{children:`external_reference`}),` sent in the new call are ignored; the ones from the first marking are kept.`]}),`\n`,_jsx(Heading,{level:`2`,id:`if-the-buyer-also-pays-through-pagou`,children:`If the buyer also pays through Pagou`}),`\n`,_jsxs(_components.p,{children:[`If the original charge is paid after the marking, the transaction moves to `,_jsx(_components.code,{children:`paid`}),` and the money follows the normal flow, with its fee. No second `,_jsx(_components.code,{children:`transaction.paid`}),` is sent, so the order is not released twice. Refunding that payment to the buyer follows the regular refund flow.`]}),`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:`Malformed request.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`401`})}),_jsx(_components.td,{children:`Missing or invalid credentials.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`404`})}),_jsx(_components.td,{children:`Transaction not found for this company.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`422`})}),_jsxs(_components.td,{children:[`Validation failed, or the transaction cannot be marked (the `,_jsx(_components.code,{children:`detail`}),` says why).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`429`})}),_jsx(_components.td,{children:`Rate limit exceeded.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`example`,children:`Example`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` PUT`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.pagou.ai/v2/transactions/{id}/paid-externally\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer \u003cAPI_KEY>\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"reason\": \"Paid by bank transfer\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"external_reference\": \"TED-2026-10-27-0042\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The response carries the transaction in the same shape as `,_jsx(_components.a,{href:`/api-reference/transactions/get`,children:`Get a Transaction`}),`, with `,_jsx(_components.code,{children:`status: \"paid_externally\"`}),`.`]})]})}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":"Mark a Transaction as Paid Externally","description":"Record a pix or voucher sale that the buyer paid outside Pagou.","icon":"hand-coins","openapi":"api-reference/openapi-v2.json PUT /v2/transactions/{id}/paid-externally","href":"/api-reference/transactions/paid-externally"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Which transactions can be marked","slug":"which-transactions-can-be-marked","depth":2,"children":[]},{"title":"Request fields","slug":"request-fields","depth":2,"children":[]},{"title":"Idempotency","slug":"idempotency","depth":2,"children":[]},{"title":"If the buyer also pays through Pagou","slug":"if-the-buyer-also-pays-through-pagou","depth":2,"children":[]},{"title":"Errors","slug":"errors","depth":2,"children":[]},{"title":"Example","slug":"example","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Transactions"],"description":"Record a pix or voucher sale that the buyer paid outside Pagou.","requestBody":"6514d55b-6292-4f62-9d39-e7340f922f6f","parameters":["be7be044-ca66-4bb7-bab5-8c73f29e7684"],"responses":{"200":"09080985-0b60-47bb-aec6-e51fa466ca37","400":"40990f46-c0c8-4a3c-ad7f-2b5dc793710e","401":"cba3a252-cbe9-48c7-be0b-00f5f885a814","404":"17e353a0-fd8b-4d76-bb10-956d45d51341","422":"dfc18156-3c8b-4a6d-ab9e-2c5f25ce402a","429":"eeeb1869-bf1b-47eb-bae3-18e1b28e90eb","default":"3ab575f1-32f8-4055-a45a-22e8dfc98816"},"operationId":"putTransactionsByIdPaidExternally","summary":"Mark a Transaction as Paid Externally","security":["e055770d-f3c4-4eb2-ab38-cdbbf41edd09","ded224ba-ec4e-4130-977c-4f1be8a25857","1326b924-d237-4a0b-836d-98ce242791d9"],"method":"put","type":"path","servers":["7e8a4a08-d00d-45f3-bfb3-ab6d16f51abd","1aeed0d2-4eb5-4cd7-a07a-b0d4f669f0c7"],"path":"/v2/transactions/{id}/paid-externally","baseUrlOptions":["https://api.pagou.ai","https://api.sandbox.pagou.ai"],"title":"Mark a Transaction as Paid Externally","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"be7be044-ca66-4bb7-bab5-8c73f29e7684":{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","isRequired":true,"uniqueKey":"","typeLabel":"string\u003cuuid>"},"in":"path","name":"id","required":true}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","minLength":1,"maxLength":500,"description":"Why the sale is being marked as paid outside the platform. Required.","example":"Pago por transferência bancária","isRequired":true,"uniqueKey":"reason","typeLabel":"string"},"external_reference":{"oneOf":[{"description":"Your own reference for the outside payment, such as a bank transfer id.","example":"TED-2026-10-27-0042","type":"string","minLength":1,"maxLength":255,"uniqueKey":"external_reference.oneOf.0","typeLabel":"string"},{"description":"Your own reference for the outside payment, such as a bank transfer id.","example":"TED-2026-10-27-0042","type":"null","minLength":1,"maxLength":255,"uniqueKey":"external_reference.oneOf.1","typeLabel":"null"}],"uniqueKey":"external_reference","typeLabel":"string | null"}},"required":["reason"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"reason":"Pago por transferência bancária","external_reference":"TED-2026-10-27-0042"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"09080985-0b60-47bb-aec6-e51fa466ca37":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"requestId":{"type":"string","isRequired":true,"uniqueKey":"requestId","typeLabel":"string"},"data":{"type":"object","properties":{"id":{"description":"Unique identifier of the transaction (numeric or UUID).","type":"string","format":"uuid","isRequired":true,"uniqueKey":"data.id","typeLabel":"string\u003cuuid>"},"amount":{"type":"integer","minimum":100,"maximum":100000000,"description":"Total transaction amount in cents. When the buyer pays installment interest, `GET /v2/transactions/{id}` returns the amount before interest here, the same as `base_amount`.","isRequired":true,"uniqueKey":"data.amount","typeLabel":"integer"},"currency":{"type":"string","enum":["ARS","BOB","BRL","CLP","COP","CRC","GTQ","MXN","PYG","PEN","USD","UYU"],"description":"Currency of the transaction.","default":"BRL","isRequired":true,"uniqueKey":"data.currency","typeLabel":"enum\u003cstring>"},"buyer":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the buyer.","format":"uuid","isRequired":true,"uniqueKey":"data.buyer.id","typeLabel":"string\u003cuuid>"},"name":{"type":"string","description":"Full name of the buyer.","isRequired":true,"uniqueKey":"data.buyer.name","typeLabel":"string"},"email":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email address of the buyer.","isRequired":true,"uniqueKey":"data.buyer.email","typeLabel":"string\u003cemail>"},"phone":{"type":"string","description":"Phone number of the buyer.","isRequired":true,"uniqueKey":"data.buyer.phone","typeLabel":"string"},"birth_date":{"type":"string","description":"Birth date of the buyer.","isRequired":true,"uniqueKey":"data.buyer.birth_date","typeLabel":"string"},"document":{"type":"object","properties":{"type":{"type":"string","enum":["DNI","CUIT","CI","CE","NIT","CPF","CNPJ","RUT","RUN","CC","CDI","PP","RUC","PAS","DPI","CUI","RFC","CURP"],"isRequired":true,"uniqueKey":"data.buyer.document.type","typeLabel":"enum\u003cstring>"},"number":{"type":"string","isRequired":true,"uniqueKey":"data.buyer.document.number","typeLabel":"string"}},"required":["type","number"],"additionalProperties":false,"description":"Buyer document information.","isRequired":true,"uniqueKey":"data.buyer.document","typeLabel":"object"},"address":{"type":"object","properties":{"street":{"type":"string","minLength":1,"maxLength":255,"isRequired":true,"uniqueKey":"data.buyer.address.street","typeLabel":"string"},"city":{"type":"string","minLength":1,"maxLength":255,"isRequired":true,"uniqueKey":"data.buyer.address.city","typeLabel":"string"},"country":{"default":"BR","type":"string","enum":["AR","BO","BR","CL","CO","CR","EC","GT","MX","PA","PY","PE","UY"],"isRequired":true,"uniqueKey":"data.buyer.address.country","typeLabel":"enum\u003cstring>"},"number":{"type":"string","maxLength":255,"uniqueKey":"data.buyer.address.number","typeLabel":"string"},"complement":{"oneOf":[{"type":"string","maxLength":255,"uniqueKey":"data.buyer.address.complement.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":255,"uniqueKey":"data.buyer.address.complement.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.buyer.address.complement","typeLabel":"string | null"},"neighborhood":{"type":"string","maxLength":255,"uniqueKey":"data.buyer.address.neighborhood","typeLabel":"string"},"state":{"type":"string","minLength":2,"maxLength":3,"pattern":"^[\\p{L}\\p{N}]{2,3}$","uniqueKey":"data.buyer.address.state","typeLabel":"string"},"zipCode":{"type":"string","maxLength":255,"uniqueKey":"data.buyer.address.zipCode","typeLabel":"string"}},"required":["street","city","country"],"additionalProperties":false,"description":"Buyer billing or shipping address.","isRequired":true,"uniqueKey":"data.buyer.address","typeLabel":"object"}},"required":["id","name","email","phone","birth_date","document","address"],"additionalProperties":false,"description":"Buyer details associated with the transaction.","isRequired":true,"uniqueKey":"data.buyer","typeLabel":"object"},"fee":{"type":"object","properties":{"net_amount":{"type":"integer","minimum":0,"maximum":100000000,"description":"Net amount in cents that will be settled after fees.","isRequired":true,"uniqueKey":"data.fee.net_amount","typeLabel":"integer"},"estimated_fee":{"type":"integer","minimum":0,"maximum":100000000,"description":"Estimated processing fee in cents for this transaction.","isRequired":true,"uniqueKey":"data.fee.estimated_fee","typeLabel":"integer"}},"required":["net_amount","estimated_fee"],"additionalProperties":false,"description":"Fee breakdown for the transaction.","isRequired":true,"uniqueKey":"data.fee","typeLabel":"object"},"paid_amount":{"type":"integer","minimum":0,"maximum":100000000,"description":"Total amount in cents that has been paid.","isRequired":true,"uniqueKey":"data.paid_amount","typeLabel":"integer"},"method":{"type":"string","enum":["pix","voucher","credit_card"],"description":"Payment method actually used in the transaction.","default":"pix","isRequired":true,"uniqueKey":"data.method","typeLabel":"enum\u003cstring>"},"refunded_amount":{"type":"integer","minimum":0,"maximum":100000000,"description":"Total refunded amount in cents for this transaction.","isRequired":true,"uniqueKey":"data.refunded_amount","typeLabel":"integer"},"products":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":255,"description":"Product name or title.","isRequired":true,"uniqueKey":"data.products.items.[INDEX].name","typeLabel":"string"},"price":{"type":"integer","minimum":0,"maximum":100000000,"description":"Unit price in cents for the product.","isRequired":true,"uniqueKey":"data.products.items.[INDEX].price","typeLabel":"integer"},"quantity":{"type":"integer","minimum":1,"maximum":999999,"description":"Quantity of this product.","isRequired":true,"uniqueKey":"data.products.items.[INDEX].quantity","typeLabel":"integer"}},"required":["name","price","quantity"],"additionalProperties":false,"uniqueKey":"data.products.items.[INDEX]","typeLabel":"object"},"description":"List of products included in the transaction.","isRequired":true,"uniqueKey":"data.products","typeLabel":"object[]"},"traceable":{"type":"boolean","description":"Indicates whether the transaction is traceable.","isRequired":true,"uniqueKey":"data.traceable","typeLabel":"boolean"},"status":{"type":"string","enum":["authorized","canceled","captured","chargedback","three_ds_required","expired","in_protest","paid","paid_externally","partially_paid","partially_refunded","pending","processing","processed","refunded","med","pre_chargedback","refused"],"description":"Current external status of the transaction.","isRequired":true,"uniqueKey":"data.status","typeLabel":"enum\u003cstring>"},"created_at":{"description":"Date and time when the transaction was created.","type":"string","format":"date-time","isRequired":true,"uniqueKey":"data.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"description":"Date and time when the transaction was last updated.","type":"string","format":"date-time","isRequired":true,"uniqueKey":"data.updated_at","typeLabel":"string\u003cdate-time>"},"base_amount":{"description":"Amount you sent, before any installment interest, in cents and in the transaction currency.","type":"integer","minimum":0,"maximum":9007199254740991,"uniqueKey":"data.base_amount","typeLabel":"integer"},"voucher":{"oneOf":[{"type":"object","properties":{"barcode":{"oneOf":[{"description":"Barcode string for boleto or voucher, when applicable.","type":"string","isRequired":true,"uniqueKey":"data.voucher.oneOf.0.barcode.oneOf.0","typeLabel":"string"},{"description":"Barcode string for boleto or voucher, when applicable.","type":"null","isRequired":true,"uniqueKey":"data.voucher.oneOf.0.barcode.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.voucher.oneOf.0.barcode","typeLabel":"string | null"},"digitable_line":{"oneOf":[{"description":"Digitable line representation of the boleto or voucher.","type":"string","isRequired":true,"uniqueKey":"data.voucher.oneOf.0.digitable_line.oneOf.0","typeLabel":"string"},{"description":"Digitable line representation of the boleto or voucher.","type":"null","isRequired":true,"uniqueKey":"data.voucher.oneOf.0.digitable_line.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.voucher.oneOf.0.digitable_line","typeLabel":"string | null"},"url":{"oneOf":[{"description":"URL where the boleto or voucher can be viewed or downloaded.","type":"string","isRequired":true,"uniqueKey":"data.voucher.oneOf.0.url.oneOf.0","typeLabel":"string"},{"description":"URL where the boleto or voucher can be viewed or downloaded.","type":"null","isRequired":true,"uniqueKey":"data.voucher.oneOf.0.url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.voucher.oneOf.0.url","typeLabel":"string | null"},"expiration_date":{"oneOf":[{"description":"Expiration date of the boleto or voucher.","type":"string","format":"date-time","isRequired":true,"uniqueKey":"data.voucher.oneOf.0.expiration_date.oneOf.0","typeLabel":"string\u003cdate-time>"},{"description":"Expiration date of the boleto or voucher.","type":"null","format":"date-time","isRequired":true,"uniqueKey":"data.voucher.oneOf.0.expiration_date.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.voucher.oneOf.0.expiration_date","typeLabel":"string\u003cdate-time> | null"},"instructions":{"oneOf":[{"description":"Additional payment instructions for the boleto or voucher.","type":"string","isRequired":true,"uniqueKey":"data.voucher.oneOf.0.instructions.oneOf.0","typeLabel":"string"},{"description":"Additional payment instructions for the boleto or voucher.","type":"null","isRequired":true,"uniqueKey":"data.voucher.oneOf.0.instructions.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.voucher.oneOf.0.instructions","typeLabel":"string | null"},"receipt_url":{"oneOf":[{"description":"URL to access the payment receipt, when available.","type":"string","isRequired":true,"uniqueKey":"data.voucher.oneOf.0.receipt_url.oneOf.0","typeLabel":"string"},{"description":"URL to access the payment receipt, when available.","type":"null","isRequired":true,"uniqueKey":"data.voucher.oneOf.0.receipt_url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.voucher.oneOf.0.receipt_url","typeLabel":"string | null"}},"required":["barcode","digitable_line","url","expiration_date","instructions","receipt_url"],"additionalProperties":false,"uniqueKey":"data.voucher.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"barcode":{"oneOf":[{"description":"Barcode string for boleto or voucher, when applicable.","type":"string"},{"description":"Barcode string for boleto or voucher, when applicable.","type":"null"}]},"digitable_line":{"oneOf":[{"description":"Digitable line representation of the boleto or voucher.","type":"string"},{"description":"Digitable line representation of the boleto or voucher.","type":"null"}]},"url":{"oneOf":[{"description":"URL where the boleto or voucher can be viewed or downloaded.","type":"string"},{"description":"URL where the boleto or voucher can be viewed or downloaded.","type":"null"}]},"expiration_date":{"oneOf":[{"description":"Expiration date of the boleto or voucher.","type":"string","format":"date-time"},{"description":"Expiration date of the boleto or voucher.","type":"null","format":"date-time"}]},"instructions":{"oneOf":[{"description":"Additional payment instructions for the boleto or voucher.","type":"string"},{"description":"Additional payment instructions for the boleto or voucher.","type":"null"}]},"receipt_url":{"oneOf":[{"description":"URL to access the payment receipt, when available.","type":"string"},{"description":"URL to access the payment receipt, when available.","type":"null"}]}},"required":["barcode","digitable_line","url","expiration_date","instructions","receipt_url"],"additionalProperties":false,"uniqueKey":"data.voucher.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.voucher","typeLabel":"object | null"},"external_ref":{"oneOf":[{"description":"External reference originally provided by your system.","type":"string","uniqueKey":"data.external_ref.oneOf.0","typeLabel":"string"},{"description":"External reference originally provided by your system.","type":"null","uniqueKey":"data.external_ref.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.external_ref","typeLabel":"string | null"},"installments":{"oneOf":[{"description":"Number of installments for the transaction, if applicable.","type":"integer","minimum":1,"maximum":18,"uniqueKey":"data.installments.oneOf.0","typeLabel":"integer"},{"description":"Number of installments for the transaction, if applicable.","type":"null","minimum":1,"maximum":18,"uniqueKey":"data.installments.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.installments","typeLabel":"integer | null"},"informations":{"description":"Custom key/value metadata you attached on create, echoed back.","type":"array","items":{"type":"object","properties":{"key":{"type":"string","description":"Key of the additional information entry.","isRequired":true,"uniqueKey":"data.informations.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"Value of the additional information entry.","isRequired":true,"uniqueKey":"data.informations.items.[INDEX].value","typeLabel":"string"}},"required":["key","value"],"additionalProperties":false,"uniqueKey":"data.informations.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.informations","typeLabel":"object[]"},"paid_at":{"oneOf":[{"description":"Timestamp of when the transaction was paid, if applicable.","type":"string","format":"date-time","uniqueKey":"data.paid_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"description":"Timestamp of when the transaction was paid, if applicable.","type":"null","format":"date-time","uniqueKey":"data.paid_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.paid_at","typeLabel":"string\u003cdate-time> | null"},"pix":{"oneOf":[{"description":"PIX payment details when the method is PIX.","type":"object","properties":{"qr_code":{"type":"string","description":"PIX QR code payload for payment.","isRequired":true,"uniqueKey":"data.pix.oneOf.0.qr_code","typeLabel":"string"},"expiration_date":{"description":"PIX QR code expiration date.","type":"string","format":"date-time","isRequired":true,"uniqueKey":"data.pix.oneOf.0.expiration_date","typeLabel":"string\u003cdate-time>"},"end_to_end_id":{"oneOf":[{"description":"End-to-end identifier assigned to the PIX payment, when available.","type":"string","isRequired":true,"uniqueKey":"data.pix.oneOf.0.end_to_end_id.oneOf.0","typeLabel":"string"},{"description":"End-to-end identifier assigned to the PIX payment, when available.","type":"null","isRequired":true,"uniqueKey":"data.pix.oneOf.0.end_to_end_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.pix.oneOf.0.end_to_end_id","typeLabel":"string | null"},"receipt_url":{"oneOf":[{"description":"URL to access the PIX payment receipt, when available.","type":"string","isRequired":true,"uniqueKey":"data.pix.oneOf.0.receipt_url.oneOf.0","typeLabel":"string"},{"description":"URL to access the PIX payment receipt, when available.","type":"null","isRequired":true,"uniqueKey":"data.pix.oneOf.0.receipt_url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.pix.oneOf.0.receipt_url","typeLabel":"string | null"}},"required":["qr_code","expiration_date","end_to_end_id","receipt_url"],"additionalProperties":false,"uniqueKey":"data.pix.oneOf.0","typeLabel":"object"},{"description":"PIX payment details when the method is PIX.","type":"null","properties":{"qr_code":{"type":"string","description":"PIX QR code payload for payment."},"expiration_date":{"description":"PIX QR code expiration date.","type":"string","format":"date-time"},"end_to_end_id":{"oneOf":[{"description":"End-to-end identifier assigned to the PIX payment, when available.","type":"string"},{"description":"End-to-end identifier assigned to the PIX payment, when available.","type":"null"}]},"receipt_url":{"oneOf":[{"description":"URL to access the PIX payment receipt, when available.","type":"string"},{"description":"URL to access the PIX payment receipt, when available.","type":"null"}]}},"required":["qr_code","expiration_date","end_to_end_id","receipt_url"],"additionalProperties":false,"uniqueKey":"data.pix.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.pix","typeLabel":"object | null"},"metadata":{"oneOf":[{"description":"Arbitrary key-value metadata associated with the transaction.","type":"object","additionalProperties":{"type":"string","uniqueKey":"data.metadata.oneOf.0.additionalProperties","typeLabel":"string"},"uniqueKey":"data.metadata.oneOf.0","typeLabel":"object"},{"description":"Arbitrary key-value metadata associated with the transaction.","type":"null","additionalProperties":{"type":"string","uniqueKey":"data.metadata.oneOf.1.additionalProperties","typeLabel":"string"},"uniqueKey":"data.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.metadata","typeLabel":"object | null"},"ip_address":{"oneOf":[{"type":"string","description":"IPv4 or IPv6 address associated with the transaction.","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$","uniqueKey":"data.ip_address.oneOf.0","typeLabel":"string\u003cipv4>"},{"type":"string","description":"IPv4 or IPv6 address associated with the transaction.","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$","uniqueKey":"data.ip_address.oneOf.1","typeLabel":"string\u003cipv6>"},{"type":"null","uniqueKey":"data.ip_address.oneOf.2","typeLabel":"null"}],"uniqueKey":"data.ip_address","typeLabel":"string\u003cipv4> | string\u003cipv6> | null"},"next_action":{"oneOf":[{"description":"Next action required to complete the transaction, such as 3DS authentication.","type":"object","properties":{"type":{"type":"string","enum":["three_ds_challenge"],"description":"The type of next action required.","isRequired":true,"uniqueKey":"data.next_action.oneOf.0.type","typeLabel":"enum\u003cstring>"},"challenge_session_id":{"type":"string","description":"Challenge session identifier for 3DS resolution.","isRequired":true,"uniqueKey":"data.next_action.oneOf.0.challenge_session_id","typeLabel":"string"},"client_secret":{"type":"string","description":"Client secret for SDK polling authentication.","isRequired":true,"uniqueKey":"data.next_action.oneOf.0.client_secret","typeLabel":"string"},"expires_at":{"description":"Expiration timestamp for the challenge session.","type":"string","format":"date-time","isRequired":true,"uniqueKey":"data.next_action.oneOf.0.expires_at","typeLabel":"string\u003cdate-time>"},"three_ds_stage":{"description":"Whether the challenge runs before or after the charge. Absent means post_charge.","type":"string","enum":["pre_charge","post_charge"],"uniqueKey":"data.next_action.oneOf.0.three_ds_stage","typeLabel":"enum\u003cstring>"}},"required":["type","challenge_session_id","client_secret","expires_at"],"additionalProperties":false,"uniqueKey":"data.next_action.oneOf.0","typeLabel":"object"},{"description":"Next action required to complete the transaction, such as 3DS authentication.","type":"null","properties":{"type":{"type":"string","enum":["three_ds_challenge"],"description":"The type of next action required."},"challenge_session_id":{"type":"string","description":"Challenge session identifier for 3DS resolution."},"client_secret":{"type":"string","description":"Client secret for SDK polling authentication."},"expires_at":{"description":"Expiration timestamp for the challenge session.","type":"string","format":"date-time"},"three_ds_stage":{"description":"Whether the challenge runs before or after the charge. Absent means post_charge.","type":"string","enum":["pre_charge","post_charge"]}},"required":["type","challenge_session_id","client_secret","expires_at"],"additionalProperties":false,"uniqueKey":"data.next_action.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.next_action","typeLabel":"object | null"},"attribution":{"oneOf":[{"description":"Marketing attribution captured at checkout. Null for transactions created directly through the API.","type":"object","properties":{"utm_source":{"oneOf":[{"description":"Traffic source that brought the buyer, from `utm_source`.","type":"string","uniqueKey":"data.attribution.oneOf.0.utm_source.oneOf.0","typeLabel":"string"},{"description":"Traffic source that brought the buyer, from `utm_source`.","type":"null","uniqueKey":"data.attribution.oneOf.0.utm_source.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.attribution.oneOf.0.utm_source","typeLabel":"string | null"},"utm_medium":{"oneOf":[{"description":"Marketing medium, from `utm_medium`.","type":"string","uniqueKey":"data.attribution.oneOf.0.utm_medium.oneOf.0","typeLabel":"string"},{"description":"Marketing medium, from `utm_medium`.","type":"null","uniqueKey":"data.attribution.oneOf.0.utm_medium.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.attribution.oneOf.0.utm_medium","typeLabel":"string | null"},"utm_campaign":{"oneOf":[{"description":"Campaign name, from `utm_campaign`.","type":"string","uniqueKey":"data.attribution.oneOf.0.utm_campaign.oneOf.0","typeLabel":"string"},{"description":"Campaign name, from `utm_campaign`.","type":"null","uniqueKey":"data.attribution.oneOf.0.utm_campaign.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.attribution.oneOf.0.utm_campaign","typeLabel":"string | null"},"utm_content":{"oneOf":[{"description":"Creative or ad variation, from `utm_content`.","type":"string","uniqueKey":"data.attribution.oneOf.0.utm_content.oneOf.0","typeLabel":"string"},{"description":"Creative or ad variation, from `utm_content`.","type":"null","uniqueKey":"data.attribution.oneOf.0.utm_content.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.attribution.oneOf.0.utm_content","typeLabel":"string | null"},"utm_term":{"oneOf":[{"description":"Paid keyword or term, from `utm_term`.","type":"string","uniqueKey":"data.attribution.oneOf.0.utm_term.oneOf.0","typeLabel":"string"},{"description":"Paid keyword or term, from `utm_term`.","type":"null","uniqueKey":"data.attribution.oneOf.0.utm_term.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.attribution.oneOf.0.utm_term","typeLabel":"string | null"},"fbc":{"oneOf":[{"description":"Meta click identifier captured at checkout.","type":"string","uniqueKey":"data.attribution.oneOf.0.fbc.oneOf.0","typeLabel":"string"},{"description":"Meta click identifier captured at checkout.","type":"null","uniqueKey":"data.attribution.oneOf.0.fbc.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.attribution.oneOf.0.fbc","typeLabel":"string | null"},"fbp":{"oneOf":[{"description":"Meta browser identifier captured at checkout.","type":"string","uniqueKey":"data.attribution.oneOf.0.fbp.oneOf.0","typeLabel":"string"},{"description":"Meta browser identifier captured at checkout.","type":"null","uniqueKey":"data.attribution.oneOf.0.fbp.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.attribution.oneOf.0.fbp","typeLabel":"string | null"},"gclid":{"oneOf":[{"description":"Google Ads click identifier captured at checkout.","type":"string","uniqueKey":"data.attribution.oneOf.0.gclid.oneOf.0","typeLabel":"string"},{"description":"Google Ads click identifier captured at checkout.","type":"null","uniqueKey":"data.attribution.oneOf.0.gclid.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.attribution.oneOf.0.gclid","typeLabel":"string | null"},"ttclid":{"oneOf":[{"description":"TikTok Ads click identifier captured at checkout.","type":"string","uniqueKey":"data.attribution.oneOf.0.ttclid.oneOf.0","typeLabel":"string"},{"description":"TikTok Ads click identifier captured at checkout.","type":"null","uniqueKey":"data.attribution.oneOf.0.ttclid.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.attribution.oneOf.0.ttclid","typeLabel":"string | null"},"src":{"oneOf":[{"description":"Generic source parameter captured at checkout.","type":"string","uniqueKey":"data.attribution.oneOf.0.src.oneOf.0","typeLabel":"string"},{"description":"Generic source parameter captured at checkout.","type":"null","uniqueKey":"data.attribution.oneOf.0.src.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.attribution.oneOf.0.src","typeLabel":"string | null"},"sck":{"oneOf":[{"description":"Generic sub-source parameter captured at checkout.","type":"string","uniqueKey":"data.attribution.oneOf.0.sck.oneOf.0","typeLabel":"string"},{"description":"Generic sub-source parameter captured at checkout.","type":"null","uniqueKey":"data.attribution.oneOf.0.sck.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.attribution.oneOf.0.sck","typeLabel":"string | null"},"checkout_url":{"oneOf":[{"description":"Full checkout URL the buyer landed on.","type":"string","uniqueKey":"data.attribution.oneOf.0.checkout_url.oneOf.0","typeLabel":"string"},{"description":"Full checkout URL the buyer landed on.","type":"null","uniqueKey":"data.attribution.oneOf.0.checkout_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.attribution.oneOf.0.checkout_url","typeLabel":"string | null"},"referrer_url":{"oneOf":[{"description":"Page the buyer came from before the checkout.","type":"string","uniqueKey":"data.attribution.oneOf.0.referrer_url.oneOf.0","typeLabel":"string"},{"description":"Page the buyer came from before the checkout.","type":"null","uniqueKey":"data.attribution.oneOf.0.referrer_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.attribution.oneOf.0.referrer_url","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"data.attribution.oneOf.0","typeLabel":"object"},{"description":"Marketing attribution captured at checkout. Null for transactions created directly through the API.","type":"null","properties":{"utm_source":{"oneOf":[{"description":"Traffic source that brought the buyer, from `utm_source`.","type":"string"},{"description":"Traffic source that brought the buyer, from `utm_source`.","type":"null"}]},"utm_medium":{"oneOf":[{"description":"Marketing medium, from `utm_medium`.","type":"string"},{"description":"Marketing medium, from `utm_medium`.","type":"null"}]},"utm_campaign":{"oneOf":[{"description":"Campaign name, from `utm_campaign`.","type":"string"},{"description":"Campaign name, from `utm_campaign`.","type":"null"}]},"utm_content":{"oneOf":[{"description":"Creative or ad variation, from `utm_content`.","type":"string"},{"description":"Creative or ad variation, from `utm_content`.","type":"null"}]},"utm_term":{"oneOf":[{"description":"Paid keyword or term, from `utm_term`.","type":"string"},{"description":"Paid keyword or term, from `utm_term`.","type":"null"}]},"fbc":{"oneOf":[{"description":"Meta click identifier captured at checkout.","type":"string"},{"description":"Meta click identifier captured at checkout.","type":"null"}]},"fbp":{"oneOf":[{"description":"Meta browser identifier captured at checkout.","type":"string"},{"description":"Meta browser identifier captured at checkout.","type":"null"}]},"gclid":{"oneOf":[{"description":"Google Ads click identifier captured at checkout.","type":"string"},{"description":"Google Ads click identifier captured at checkout.","type":"null"}]},"ttclid":{"oneOf":[{"description":"TikTok Ads click identifier captured at checkout.","type":"string"},{"description":"TikTok Ads click identifier captured at checkout.","type":"null"}]},"src":{"oneOf":[{"description":"Generic source parameter captured at checkout.","type":"string"},{"description":"Generic source parameter captured at checkout.","type":"null"}]},"sck":{"oneOf":[{"description":"Generic sub-source parameter captured at checkout.","type":"string"},{"description":"Generic sub-source parameter captured at checkout.","type":"null"}]},"checkout_url":{"oneOf":[{"description":"Full checkout URL the buyer landed on.","type":"string"},{"description":"Full checkout URL the buyer landed on.","type":"null"}]},"referrer_url":{"oneOf":[{"description":"Page the buyer came from before the checkout.","type":"string"},{"description":"Page the buyer came from before the checkout.","type":"null"}]}},"additionalProperties":false,"uniqueKey":"data.attribution.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.attribution","typeLabel":"object | null"}},"required":["id","amount","currency","buyer","fee","paid_amount","method","refunded_amount","products","traceable","status","created_at","updated_at"],"additionalProperties":false,"isRequired":true,"uniqueKey":"data","typeLabel":"object"}},"required":["success","requestId","data"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"example":{"success":true,"requestId":"0190a2b4-18a7-7de0-9a43-69b7cf261201","data":{"id":"018f1f2e-7b42-7c9a-8d3e-1a2b3c4d5e6f","amount":100,"currency":"ARS","buyer":{"id":"018f1f2e-7b42-7c9a-8d3e-1a2b3c4d5e6f","name":"string","email":"developer@example.com","phone":"string","birth_date":"string","document":{"type":"DNI","number":"string"},"address":{"street":"string","city":"string","country":"AR"}},"fee":{"net_amount":0,"estimated_fee":0},"paid_amount":0,"method":"pix","refunded_amount":0,"products":[{"name":"string","price":0,"quantity":1}],"traceable":false,"status":"authorized","created_at":"2026-07-14T12:00:00.000Z","updated_at":"2026-07-14T12:00:00.000Z"}},"examples":{"Example":{"title":"Example","value":{"success":true,"requestId":"0190a2b4-18a7-7de0-9a43-69b7cf261201","data":{"id":"018f1f2e-7b42-7c9a-8d3e-1a2b3c4d5e6f","amount":100,"currency":"ARS","buyer":{"id":"018f1f2e-7b42-7c9a-8d3e-1a2b3c4d5e6f","name":"string","email":"developer@example.com","phone":"string","birth_date":"string","document":{"type":"DNI","number":"string"},"address":{"street":"string","city":"string","country":"AR"}},"fee":{"net_amount":0,"estimated_fee":0},"paid_amount":0,"method":"pix","refunded_amount":0,"products":[{"name":"string","price":0,"quantity":1}],"traceable":false,"status":"authorized","created_at":"2026-07-14T12:00:00.000Z","updated_at":"2026-07-14T12:00:00.000Z"}}}},"exampleType":"examples"}},"exampleType":"examples"},"40990f46-c0c8-4a3c-ad7f-2b5dc793710e":{"description":"HTTP 400 response","content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","description":"Short, human-readable summary of the problem.","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"number","description":"HTTP status code.","isRequired":true,"uniqueKey":"status","typeLabel":"number"},"type":{"description":"URI reference identifying the problem type.","type":"string","uniqueKey":"type","typeLabel":"string"},"detail":{"description":"Human-readable explanation specific to this occurrence.","type":"string","uniqueKey":"detail","typeLabel":"string"},"instance":{"description":"URI reference identifying the specific occurrence.","type":"string","uniqueKey":"instance","typeLabel":"string"}},"required":["title","status"],"additionalProperties":{"oneOf":[{}],"uniqueKey":"additionalProperties","typeLabel":"any"},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"title":"\u003cstring>","status":123,"type":"\u003cstring>","detail":"\u003cstring>","instance":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"cba3a252-cbe9-48c7-be0b-00f5f885a814":{"description":"HTTP 401 response","content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","description":"Short, human-readable summary of the problem.","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"number","description":"HTTP status code.","isRequired":true,"uniqueKey":"status","typeLabel":"number"},"type":{"description":"URI reference identifying the problem type.","type":"string","uniqueKey":"type","typeLabel":"string"},"detail":{"description":"Human-readable explanation specific to this occurrence.","type":"string","uniqueKey":"detail","typeLabel":"string"},"instance":{"description":"URI reference identifying the specific occurrence.","type":"string","uniqueKey":"instance","typeLabel":"string"}},"required":["title","status"],"additionalProperties":{"oneOf":[{}],"uniqueKey":"additionalProperties","typeLabel":"any"},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"title":"\u003cstring>","status":123,"type":"\u003cstring>","detail":"\u003cstring>","instance":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"17e353a0-fd8b-4d76-bb10-956d45d51341":{"description":"HTTP 404 response","content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","description":"Short, human-readable summary of the problem.","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"number","description":"HTTP status code.","isRequired":true,"uniqueKey":"status","typeLabel":"number"},"type":{"description":"URI reference identifying the problem type.","type":"string","uniqueKey":"type","typeLabel":"string"},"detail":{"description":"Human-readable explanation specific to this occurrence.","type":"string","uniqueKey":"detail","typeLabel":"string"},"instance":{"description":"URI reference identifying the specific occurrence.","type":"string","uniqueKey":"instance","typeLabel":"string"}},"required":["title","status"],"additionalProperties":{"oneOf":[{}],"uniqueKey":"additionalProperties","typeLabel":"any"},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"title":"\u003cstring>","status":123,"type":"\u003cstring>","detail":"\u003cstring>","instance":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"dfc18156-3c8b-4a6d-ab9e-2c5f25ce402a":{"description":"HTTP 422 response","content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","description":"Short, human-readable summary of the problem.","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"number","description":"HTTP status code.","isRequired":true,"uniqueKey":"status","typeLabel":"number"},"type":{"description":"URI reference identifying the problem type.","type":"string","uniqueKey":"type","typeLabel":"string"},"detail":{"description":"Human-readable explanation specific to this occurrence.","type":"string","uniqueKey":"detail","typeLabel":"string"},"instance":{"description":"URI reference identifying the specific occurrence.","type":"string","uniqueKey":"instance","typeLabel":"string"}},"required":["title","status"],"additionalProperties":{"oneOf":[{}],"uniqueKey":"additionalProperties","typeLabel":"any"},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"title":"\u003cstring>","status":123,"type":"\u003cstring>","detail":"\u003cstring>","instance":"\u003cstring>"}}},"exampleType":"generated"},"application/problem+json":{"schema":{"type":"object","description":"RFC 7807 Problem Details object.","required":["type","title","status","detail"],"properties":{"type":{"type":"string","format":"uri-reference","isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi-reference>"},"title":{"type":"string","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"number","isRequired":true,"uniqueKey":"status","typeLabel":"number"},"detail":{"type":"string","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"instance":{"type":"string","format":"uri-reference","uniqueKey":"instance","typeLabel":"string\u003curi-reference>"},"errors":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","uniqueKey":"errors.items.[INDEX].field","typeLabel":"string"},"message":{"type":"string","uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"},"code":{"type":"string","uniqueKey":"errors.items.[INDEX].code","typeLabel":"string"}},"additionalProperties":true,"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"errors","typeLabel":"object[]"}},"additionalProperties":true,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"\u003cstring>","title":"\u003cstring>","status":123,"detail":"\u003cstring>","instance":"\u003cstring>","errors":[{"field":"\u003cstring>","message":"\u003cstring>","code":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"eeeb1869-bf1b-47eb-bae3-18e1b28e90eb":{"description":"HTTP 429 response","content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","description":"Short, human-readable summary of the problem.","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"number","description":"HTTP status code.","isRequired":true,"uniqueKey":"status","typeLabel":"number"},"type":{"description":"URI reference identifying the problem type.","type":"string","uniqueKey":"type","typeLabel":"string"},"detail":{"description":"Human-readable explanation specific to this occurrence.","type":"string","uniqueKey":"detail","typeLabel":"string"},"instance":{"description":"URI reference identifying the specific occurrence.","type":"string","uniqueKey":"instance","typeLabel":"string"}},"required":["title","status"],"additionalProperties":{"oneOf":[{}],"uniqueKey":"additionalProperties","typeLabel":"any"},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"title":"\u003cstring>","status":123,"type":"\u003cstring>","detail":"\u003cstring>","instance":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"3ab575f1-32f8-4055-a45a-22e8dfc98816":{"description":"RFC 7807 Problem Details error response","content":{"application/problem+json":{"schema":{"type":"object","description":"RFC 7807 Problem Details object.","properties":{"type":{"type":"string","format":"uri-reference","isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi-reference>"},"title":{"type":"string","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"number","isRequired":true,"uniqueKey":"status","typeLabel":"number"},"detail":{"type":"string","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"instance":{"type":"string","format":"uri-reference","uniqueKey":"instance","typeLabel":"string\u003curi-reference>"}},"required":["type","title","status","detail"],"additionalProperties":true,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"\u003cstring>","title":"\u003cstring>","status":123,"detail":"\u003cstring>","instance":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"e055770d-f3c4-4eb2-ab38-cdbbf41edd09":{"BearerAuth":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"BearerAuth"}},"ded224ba-ec4e-4130-977c-4f1be8a25857":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"apiKey","scopes":[],"schemeName":"ApiKeyAuth"}},"1326b924-d237-4a0b-836d-98ce242791d9":{"BasicAuth":{"type":"http","scheme":"basic","description":"Use Basic auth with username `token` and password `x`.","scopes":[],"schemeName":"BasicAuth"}}},"servers":{"7e8a4a08-d00d-45f3-bfb3-ab6d16f51abd":{"url":"https://api.pagou.ai","description":"Production server"},"1aeed0d2-4eb5-4cd7-a07a-b0d4f669f0c7":{"url":"https://api.sandbox.pagou.ai","description":"Sandbox server for testing"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"BearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerAuth","name":"Authorization"}],"title":"BearerAuth"},{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"apiKey","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"apiKey","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"apiKey"}],"title":"ApiKeyAuth"},{"schemes":[{"scheme":{"type":"http","scheme":"basic","description":"Use Basic auth with username `token` and password `x`.","scopes":[],"schemeName":"BasicAuth"},"schema":{"title":"Basic Auth","type":"object","description":"Use Basic auth with username `token` and password `x`.","isRequired":true,"properties":{"username":{"type":"string","uniqueKey":"username","isRequired":true,"typeLabel":"string","deprecated":false},"password":{"type":"string","uniqueKey":"password","isRequired":true,"typeLabel":"string","deprecated":false}},"additionalProperties":false,"deprecated":false},"schemeName":"BasicAuth","name":"Authorization"}],"title":"BasicAuth"}]},"originalFileLocation":"api-reference/openapi-v2.json"},"subdomain":"pagouai","siteName":"Pagou Developer Docs","title":"Mark a Transaction as Paid Externally - Pagou Developer Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/api-reference/transactions/paid-externally","matchLevel":0},"pt-BR":{"href":"/pt/api-reference/transactions/paid-externally","matchLevel":1}}},"lastModified":"2026-10-29T11:14:44.338Z","originalFileLocation":"api-reference/transactions/paid-externally.mdx","locale":"en"},"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=\"system\"}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=\"Record a pix or voucher sale that the buyer paid outside Pagou.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Pagou Developer Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/pagouai/PlsMSqiZuXJsWwoT/_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/pagouai/PlsMSqiZuXJsWwoT/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/pagouai/PlsMSqiZuXJsWwoT/_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/pagouai/PlsMSqiZuXJsWwoT/_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/pagouai/PlsMSqiZuXJsWwoT/_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/pagouai/PlsMSqiZuXJsWwoT/_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/pagouai/PlsMSqiZuXJsWwoT/_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/pagouai/PlsMSqiZuXJsWwoT/_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/pagouai/PlsMSqiZuXJsWwoT/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Mark a Transaction as Paid Externally - Pagou Developer Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Record a pix or voucher sale that the buyer paid outside Pagou.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Pagou Developer Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://developer.pagou.ai/api-reference/transactions/paid-externally\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://pagouai.mintlify.app/_mintlify/api/og/v2?division=Transactions\u0026amp;title=Mark+a+Transaction+as+Paid+Externally\u0026amp;description=Record+a+pix+or+voucher+sale+that+the+buyer+paid+outside+Pagou.\u0026amp;theme=96d4ce5d944e7dd6d4ba84cb\u0026amp;signature=a0ca64f4f34d6982769d9c0ff0ba2d7a4c0ae30eae55df8221dae7646f3eb6e7\">\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=\"Mark a Transaction as Paid Externally - Pagou Developer Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Record a pix or voucher sale that the buyer paid outside Pagou.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://pagouai.mintlify.app/_mintlify/api/og/v2?division=Transactions\u0026amp;title=Mark+a+Transaction+as+Paid+Externally\u0026amp;description=Record+a+pix+or+voucher+sale+that+the+buyer+paid+outside+Pagou.\u0026amp;theme=96d4ce5d944e7dd6d4ba84cb\u0026amp;signature=a0ca64f4f34d6982769d9c0ff0ba2d7a4c0ae30eae55df8221dae7646f3eb6e7\">\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/pagouai/PlsMSqiZuXJsWwoT/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Pagou Developer Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#198754\">\u003clink data-mint-head rel=\"canonical\" href=\"https://developer.pagou.ai/api-reference/transactions/paid-externally\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/transactions/paid-externally.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://developer.pagou.ai/api-reference/transactions/paid-externally\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt-BR\" href=\"https://developer.pagou.ai/pt/api-reference/transactions/paid-externally\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://developer.pagou.ai/api-reference/transactions/paid-externally\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://developer.pagou.ai/#organization\",\"name\":\"Pagou Developer Docs\",\"url\":\"https://developer.pagou.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/pagouai/G-8AHDSd0H3lSbe_/logo/logo-long.webp?fit=max\u0026auto=format\u0026n=G-8AHDSd0H3lSbe_\u0026q=85\u0026s=f29ebde8b8d8c96183843fc8bc58e508\"}},{\"@type\":\"WebSite\",\"@id\":\"https://developer.pagou.ai#website\",\"name\":\"Pagou Developer Docs\",\"url\":\"https://developer.pagou.ai\",\"publisher\":{\"@id\":\"https://developer.pagou.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://developer.pagou.ai/api-reference/transactions/paid-externally#webpage\",\"url\":\"https://developer.pagou.ai/api-reference/transactions/paid-externally\",\"name\":\"Mark a Transaction as Paid Externally\",\"description\":\"Record a pix or voucher sale that the buyer paid outside Pagou.\",\"dateModified\":\"2026-10-29T11:14:44.338Z\",\"isPartOf\":{\"@id\":\"https://developer.pagou.ai#website\"},\"breadcrumb\":{\"@id\":\"https://developer.pagou.ai/api-reference/transactions/paid-externally#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://developer.pagou.ai/api-reference/transactions/paid-externally#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Transactions\",\"item\":\"https://developer.pagou.ai/api-reference/transactions/reference\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mark a Transaction as Paid Externally\",\"item\":\"https://developer.pagou.ai/api-reference/transactions/paid-externally\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://developer.pagou.ai/api-reference/transactions/paid-externally#apireference\",\"headline\":\"Mark a Transaction as Paid Externally\",\"name\":\"Mark a Transaction as Paid Externally\",\"description\":\"Record a pix or voucher sale that the buyer paid outside Pagou.\",\"url\":\"https://developer.pagou.ai/api-reference/transactions/paid-externally\",\"mainEntityOfPage\":{\"@id\":\"https://developer.pagou.ai/api-reference/transactions/paid-externally#webpage\"},\"dateModified\":\"2026-10-29T11:14:44.338Z\",\"publisher\":{\"@id\":\"https://developer.pagou.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://developer.pagou.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Pagou Developer Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Pagou Developer Docs","nav":{"global":{"anchors":[{"anchor":"AI Integration","icon":"bot","href":"/start-here/ai-integration"},{"anchor":"API status","href":"https://status.pagou.ai"},{"anchor":"GitHub","href":"https://github.com/pagouai"}]},"languages":[{"language":"en","default":true,"tabs":[{"tab":"Start Here","icon":"rocket","pages":[{"title":"Start Here","href":""}]},{"tab":"Payments","icon":"wallet","pages":[{"title":"Payments","href":"/payments/overview"}]},{"tab":"Subscriptions","icon":"repeat","pages":[{"title":"Subscriptions","href":"/subscriptions/overview"}]},{"tab":"Payouts","icon":"arrow-left-right","pages":[{"title":"Payouts","href":"/payouts/pix-out/overview"}]},{"tab":"Webhooks","icon":"webhook","pages":[{"title":"Webhooks","href":"/webhooks/overview"}]},{"tab":"Front-end","icon":"monitor-smartphone","pages":[{"title":"Front-end","href":"/frontend/payment-element/overview"}]},{"tab":"SDKs","icon":"code-xml","pages":[{"title":"SDKs","href":"/sdks/typescript/quickstart"}]},{"tab":"Examples","icon":"code","pages":[{"title":"Examples","href":"/examples/overview"}]},{"tab":"API Reference","icon":"file-code-2","groups":[{"group":"Customers","pages":[{"title":"Customers Reference","icon":"book-open","href":"/api-reference/customers/reference"},{"title":"Create a Customer","icon":"plus","openapi":"api-reference/openapi-v2.json POST /v2/customers","href":"/api-reference/customers/create"},{"title":"List Customers","icon":"list","openapi":"api-reference/openapi-v2.json GET /v2/customers","href":"/api-reference/customers/list"},{"title":"Get a Customer","icon":"search","openapi":"api-reference/openapi-v2.json GET /v2/customers/{id}","href":"/api-reference/customers/get"}]},{"group":"Transactions","pages":[{"title":"Transactions Reference","icon":"book-open","href":"/api-reference/transactions/reference"},{"title":"Create a Transaction","icon":"plus","openapi":"api-reference/openapi-v2.json POST /v2/transactions","href":"/api-reference/transactions/create"},{"title":"List Transactions","icon":"list","openapi":"api-reference/openapi-v2.json GET /v2/transactions","href":"/api-reference/transactions/list"},{"title":"Get a Transaction","icon":"search","openapi":"api-reference/openapi-v2.json GET /v2/transactions/{id}","href":"/api-reference/transactions/get"},{"title":"Update a Transaction","icon":"pencil","openapi":"api-reference/openapi-v2.json PUT /v2/transactions/{id}","href":"/api-reference/transactions/update"},{"title":"Refund a Transaction","icon":"rotate-ccw","openapi":"api-reference/openapi-v2.json PUT /v2/transactions/{id}/refund","href":"/api-reference/transactions/refund"},{"title":"Update Delivery Tracking","description":"Set or update shipping tracking on a paid transaction.","icon":"truck","openapi":"api-reference/openapi-v2.json PUT /v2/transactions/{id}/delivery","href":"/api-reference/transactions/delivery"},{"title":"Mark a Transaction as Paid Externally","icon":"hand-coins","openapi":"api-reference/openapi-v2.json PUT /v2/transactions/{id}/paid-externally","href":"/api-reference/transactions/paid-externally"}]},{"group":"Checkout Links","pages":[{"title":"Checkout Links Reference","description":"API operations for creating hosted checkout links with an API key.","icon":"book-open","href":"/api-reference/checkout-links/reference"},{"title":"Create a Checkout Link","icon":"plus","openapi":"api-reference/openapi-v2.json POST /v2/checkout-links","href":"/api-reference/checkout-links/create"}]},{"group":"Transfers","pages":[{"title":"Transfers Reference","icon":"book-open","href":"/api-reference/transfers/reference"},{"title":"Create a Transfer","icon":"plus","openapi":"api-reference/openapi-v2.json POST /v2/transfers","href":"/api-reference/transfers/create"},{"title":"List Transfers","icon":"list","openapi":"api-reference/openapi-v2.json GET /v2/transfers","href":"/api-reference/transfers/list"},{"title":"Get a Transfer","icon":"search","openapi":"api-reference/openapi-v2.json GET /v2/transfers/{id}","href":"/api-reference/transfers/get"},{"title":"Cancel a Transfer","icon":"ban","openapi":"api-reference/openapi-v2.json POST /v2/transfers/{id}/cancel","href":"/api-reference/transfers/cancel"}]},{"group":"Subscriptions","pages":[{"title":"Subscriptions Reference","icon":"book-open","href":"/api-reference/subscriptions/reference"},{"title":"Create a Subscription","icon":"plus","openapi":"api-reference/openapi-v2.json POST /v2/subscriptions","href":"/api-reference/subscriptions/create"},{"title":"List Subscriptions","icon":"list","openapi":"api-reference/openapi-v2.json GET /v2/subscriptions","href":"/api-reference/subscriptions/list"},{"title":"Get a Subscription","icon":"search","openapi":"api-reference/openapi-v2.json GET /v2/subscriptions/{id}","href":"/api-reference/subscriptions/get"},{"title":"Update a Subscription","icon":"pencil","openapi":"api-reference/openapi-v2.json PATCH /v2/subscriptions/{id}","href":"/api-reference/subscriptions/update"},{"title":"Cancel a Subscription","icon":"ban","openapi":"api-reference/openapi-v2.json POST /v2/subscriptions/{id}/cancel","href":"/api-reference/subscriptions/cancel"},{"title":"Simulate a Pix Automático Event","icon":"flask-conical","openapi":"api-reference/openapi-v2.json POST /v2/subscriptions/{id}/simulate","href":"/api-reference/subscriptions/simulate"}]},{"group":"Legacy v1","pages":[{"title":"Legacy v1 Reference","icon":"book-open","href":"/api-reference/legacy-v1/reference"},{"title":"Create a Webhook Integration","icon":"plus","openapi":"api-reference/openapi-v1.json POST /v1/business/integration","href":"/api-reference/legacy-v1/create-webhook-integration"},{"title":"Validate Authentication","icon":"shield-check","openapi":"api-reference/openapi-v1.json GET /v1/health-check","href":"/api-reference/legacy-v1/validate-authentication"},{"title":"Get Account Balance","icon":"search","openapi":"api-reference/openapi-v1.json GET /v1/account/balance","href":"/api-reference/legacy-v1/get-account-balance"},{"title":"List PIX Transactions","icon":"list","openapi":"api-reference/openapi-v1.json GET /pix/v1/transactions","href":"/api-reference/legacy-v1/list-pix-transactions"},{"title":"Get a PIX Transaction","icon":"search","openapi":"api-reference/openapi-v1.json GET /pix/v1/transactions/{id}","href":"/api-reference/legacy-v1/get-pix-transaction"},{"title":"Create a PIX Payment","icon":"plus","openapi":"api-reference/openapi-v1.json POST /pix/v1/payment","href":"/api-reference/legacy-v1/create-pix-payment"},{"title":"Refund a PIX Payment","icon":"rotate-ccw","openapi":"api-reference/openapi-v1.json POST /pix/v1/payment/refund/{id}","href":"/api-reference/legacy-v1/refund-pix-payment"},{"title":"Withdraw a PIX Payment","icon":"plus","openapi":"api-reference/openapi-v1.json POST /pix/v1/payment/withdraw","href":"/api-reference/legacy-v1/withdraw-pix-payment"}]}]},{"tab":"Resources","icon":"library-big","pages":[{"title":"Resources","href":"/changelog"}]}]},{"language":"pt-BR","pages":[{"title":"pt-BR","href":"/pt/api-reference/transactions/paid-externally"}]}]},"title":"Mark a Transaction as Paid Externally - Pagou Developer Docs","buildId":"dpl_2xiSHD9XEvLsPGPcfoMtkLTB3dy9","deploymentId":"dpl_2xiSHD9XEvLsPGPcfoMtkLTB3dy9","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-DmVyH30O.js","utils-BHQqGGOd.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-CD-E4BIt.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Bp5Lq9Ds.js","snippetPresets-C4xAVCFP.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","Page-CBCH2P7b.js","ApiExamples-CgXVLxUC.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BF8I5oUf.js","shallow-Byd0lWnC.js","getApiPlaygroundDisplay-BGOZG1OK.js","CodeSnippet-CpvQL0CY.js","CodeSnippets-B8wkBKXa.js","getPastedJson-Ry3scI3Y.js","icon-D7a9HcdD.js","MethodPill-CJ8pmHhz.js","DuplicateIcon-rh1HJF0t.js","createIcon-DvGznqYs.js","DynamicMarkdown-Cc6AuSHS.js","SectionHeading-B4A0S-ep.js","axios-vUo_bRtp.js","Markdown-Cc16CX65.js","clsx-Cs6nMGht.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-zbf22OZA.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-C_fs-y5n.js"]}