Use a documentação da OriPay (MCP oripay-docs ou https://docs.oripaysolutions.com.br/llms-full.txt).Escreva em <sua linguagem> um cliente que:1. crie cobranças com external_id e metadata.customer_id;2. envie transferências com Idempotency-Key derivada do meu ID de saque;3. receba webhooks validando o header oripay-signature e deduplicando por oripay-event-id.Leia a chave de API de uma variável de ambiente.
Revise o código gerado antes de usar em produção, principalmente o retry (sempre a mesma Idempotency-Key)
e a validação da assinatura. Nunca cole a sua chave de API ou o secret do webhook no chat de um assistente.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"OriPay API","colors":{"primary":"#0891B2","light":"#22D3EE","dark":"#0E7490"},"api":{"playground":{"display":"interactive"},"examples":{"languages":["curl","javascript","python","php"]}},"footer":{"socials":{}},"fonts":{"heading":{"family":"Bricolage Grotesque"}},"integrations":{"telemetry":{"enabled":false}},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"hasAudioNarration":false,"customDomains":[],"gitSource":{"type":"github","owner":"local","repo":"local","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"local","isBase":true},"buildId":"local","clientVersion":"0.0.4044"},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":true,"isLoggedInCli":false,"mintExport":{}},"customCss":[],"page":{"pagePath":"guias/integrando-com-ia","slug":"/guias/integrando-com-ia","pageMetadata":{"title":"Integrando com IA","description":"Use Claude, Cursor ou ChatGPT para escrever a sua integração com a documentação certa.","href":"/guias/integrando-com-ia"},"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: \"Use Claude, Cursor ou ChatGPT para escrever a sua integração com a documentação certa.\"\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`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Esta documentação foi preparada para assistentes de código. Eles leem a versão atual em vez de chutar a partir do que já sabiam.`}),`\n`,_jsx(Heading,{level:`2`,id:`mcp-da-documentação`,children:`MCP da documentação`}),`\n`,_jsx(_components.p,{children:`Conecte o servidor MCP de busca desta documentação ao seu editor. O assistente passa a pesquisar e ler as páginas\nsozinho enquanto escreve o código.`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Claude Code`,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`claude`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` mcp`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` add`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --transport`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` http`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` oripay-docs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://docs.oripaysolutions.com.br/mcp`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Cursor (.cursor/mcp.json)`,numberOfLines:`5`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mcpServers\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"oripay-docs\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://docs.oripaysolutions.com.br/mcp\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),`\n`,_jsxs(_components.p,{children:[`O servidor só `,_jsx(_components.strong,{children:`lê a documentação`}),`. Ele não tem acesso à sua conta, ao seu saldo nem à sua chave de API.`]}),`\n`,_jsx(Heading,{level:`2`,id:`llms-txt`,children:`llms.txt`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Arquivo`}),_jsx(_components.th,{children:`Conteúdo`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`https://docs.oripaysolutions.com.br/llms.txt`,children:_jsx(_components.code,{children:`/llms.txt`})})}),_jsx(_components.td,{children:`Índice das páginas e as regras que o código gerado deve seguir`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`https://docs.oripaysolutions.com.br/llms-full.txt`,children:_jsx(_components.code,{children:`/llms-full.txt`})})}),_jsx(_components.td,{children:`A documentação inteira em um arquivo`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`\u003cpágina>.md`})}),_jsxs(_components.td,{children:[`Qualquer página em Markdown, ex. `,_jsx(_components.code,{children:`/guias/webhooks.md`})]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Sem MCP? Cole o `,_jsx(_components.code,{children:`llms-full.txt`}),` no chat do assistente antes de pedir o código.`]}),`\n`,_jsx(Heading,{level:`2`,id:`prompt-sugerido`,children:`Prompt sugerido`}),`\n`,_jsx(CodeBlock,{numberOfLines:`7`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Use a documentação da OriPay (MCP oripay-docs ou https://docs.oripaysolutions.com.br/llms-full.txt).`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Escreva em \u003csua linguagem> um cliente que:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`1. crie cobranças com external_id e metadata.customer_id;`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2. envie transferências com Idempotency-Key derivada do meu ID de saque;`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`3. receba webhooks validando o header oripay-signature e deduplicando por oripay-event-id.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Leia a chave de API de uma variável de ambiente.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Revise o código gerado antes de usar em produção, principalmente o retry (sempre a mesma `,_jsx(_components.code,{children:`Idempotency-Key`}),`)\ne a validação da assinatura. Nunca cole a sua chave de API ou o secret do webhook no chat de um assistente.`]})})]})}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":"Integrando com IA","description":"Use Claude, Cursor ou ChatGPT para escrever a sua integração com a documentação certa.","href":"/guias/integrando-com-ia"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"MCP da documentação","slug":"mcp-da-documentação","depth":2,"children":[]},{"title":"llms.txt","slug":"llms-txt","depth":2,"children":[]},{"title":"Prompt sugerido","slug":"prompt-sugerido","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"localhost","siteName":"OriPay API","title":"Integrando com IA - OriPay API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"originalFileLocation":"guias/integrando-com-ia.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=\"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=\"Use Claude, Cursor ou ChatGPT para escrever a sua integração com a documentação certa.\">\u003cmeta data-mint-head name=\"application-name\" content=\"OriPay API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/local/_generated/favicon/apple-touch-icon.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/local/_generated/favicon/favicon-32x32.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/local/_generated/favicon/favicon-16x16.png?v=3\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/local/_generated/favicon/favicon.ico?v=3\">\u003cmeta data-mint-head property=\"og:title\" content=\"Integrando com IA - OriPay API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Use Claude, Cursor ou ChatGPT para escrever a sua integração com a documentação certa.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"OriPay API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://local./guias/integrando-com-ia\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Integrando com IA - OriPay API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Use Claude, Cursor ou ChatGPT para escrever a sua integração com a documentação certa.\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/local/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"OriPay API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0891B2\">\u003clink data-mint-head rel=\"canonical\" href=\"https://local./guias/integrando-com-ia\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/guias/integrando-com-ia.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"OriPay API\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"OriPay API","nav":{"tabs":[{"tab":"Guias","groups":[{"group":"Começando","pages":[{"title":"Introdução","href":""},{"title":"Quickstart","href":"/quickstart"},{"title":"Ambientes","description":"Produção hoje; sandbox em breve.","href":"/guias/ambientes"},{"title":"Integrando com IA","href":"/guias/integrando-com-ia"}]},{"group":"Fundamentos","pages":[{"title":"Autenticação","description":"Chave de API, permissões e IPs liberados.","href":"/guias/autenticacao"},{"title":"Segurança e headers","href":"/guias/seguranca"},{"title":"Idempotência","href":"/guias/idempotencia"},{"title":"Mapeamento de clientes","href":"/guias/mapeamento-de-clientes"},{"title":"Status","href":"/guias/status"},{"title":"Erros","href":"/guias/erros"},{"title":"Limites","href":"/guias/limites"}]},{"group":"Fluxos PIX","pages":[{"title":"Cobranças (cash-in)","href":"/guias/cobrancas"},{"title":"PIX recebidos","href":"/guias/recebimentos"},{"title":"Transferências (cash-out)","href":"/guias/transferencias"},{"title":"Devoluções","href":"/guias/devolucoes"},{"title":"Saldo e extrato","href":"/guias/conciliacao"}]},{"group":"Webhooks","pages":[{"title":"Webhooks","href":"/guias/webhooks"},{"title":"Assinatura dos webhooks","href":"/guias/webhooks-assinatura"},{"title":"Testar, listar e reenviar","href":"/guias/webhooks-testes"}]}]},{"tab":"Referência da API","pages":[{"title":"Referência da API","href":"/api-reference/saldo-e-extrato/consultar-saldo"}]}]},"basePath":"","title":"Integrando com IA - OriPay API","buildId":"b48c568d22cf","dynamics":[],"chunks":[]}