{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/es/products/payments_brazil/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["partial","admonition","tabs","tab"]},"type":"markdown"},"seo":{"title":"API Directa (Transferencias Inteligentes)","description":"Belvo provides open finance products for Latin America that allow you to securely access and aggregate financial data as well as accept and issue bank-to-bank payments","siteUrl":"https://developers.belvo.com/","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"api-directa-transferencias-inteligentes","__idx":0},"children":["API Directa (Transferencias Inteligentes)"]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"No hay entorno Sandbox"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Smart Transfers no está disponible en Sandbox en este momento. Para probar tu integración, utiliza Producción con cuentas reales."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Con las Transferencias Inteligentes, tu usuario aprueba una Autorización de Pago una vez en su banco, y luego puedes activar transferencias Pix a otra cuenta que posean, cuando lo necesites, dentro de los límites que aprobaron. En esta guía, te mostraremos:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["el flujo general de datos"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["cómo crear una Autorización de Pago y sus límites"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["cómo activar un Cargo contra una Autorización de Pago autorizada"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["cómo seguir las autorizaciones y Cargos con webhooks"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["cómo cancelar un Cargo programado o una autorización, y cómo cambiar la cuenta beneficiaria"]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Requisitos previos"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Por favor, asegúrate de haber completado todos los pasos en nuestro artículo dedicado a los ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/payments-brazil-prequisites","target":"_blank"},"children":["requisitos previos"]}," antes de continuar con esta guía."]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"danger","name":"Encabezado de versión requerido"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Cada solicitud en esta guía debe incluir el encabezado ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["X-Belvo-API-Resource-Version: Payments-BR.V2"]},". Sin él, Belvo responde con ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["404 - Not Found"]},"."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"descripción-general-del-flujo-de-datos","__idx":1},"children":["Descripción general del flujo de datos"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Como puedes ver en el diagrama a continuación, el flujo involucra:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Crear una Autorización de Pago y redirigir a tu usuario a su banco para aprobarla."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Esperar a que la autorización se convierta en ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["AUTHORIZED"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Crear un Cargo cada vez que quieras mover fondos."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Seguir cada Cargo hasta que esté ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["SETTLED"]}," (o ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["FAILED"]},")."]}]},{"$$mdtype":"Tag","name":"Mermaid","attributes":{"data-language":"mermaid","diagramSource":"sequenceDiagram\n    autonumber\n    participant App as Your application\n    participant Belvo as Belvo\n    participant Bank as User's bank\n\n    App->>Belvo: POST /payments/br/payment-authorizations/\n    Belvo-->>App: 201 - Created (authorization_url)\n    App->>Bank: Redirect the user to authorization_url\n    Note over Bank: The user reviews and approves the limits\n    Bank-->>App: User returns to your return_url\n    Belvo-->>App: WEBHOOK PAYMENT_AUTHORIZATION\n    App->>Belvo: GET /payments/br/payment-authorizations/{id}/\n    Belvo-->>App: 200 - OK (status: AUTHORIZED)\n\n    rect rgba(0, 100, 255, .05)\n        Note over App,Bank: Repeat whenever you need to move funds\n        App->>Belvo: POST /payments/br/payment-authorizations/{id}/charges/\n        Belvo->>Bank: Pix transfer request\n        Belvo-->>App: 201 - Created\n        Belvo-->>App: WEBHOOK CHARGE\n        App->>Belvo: GET /payments/br/payment-authorizations/{id}/charges/{charge_id}/\n        Belvo-->>App: 200 - OK (status: SETTLED)\n    end\n","diagramHtml":"<div class=\"mermaid\" data-processed=\"true\"><svg id=\"mermaid-1792178815357\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" style=\"max-width: 1136.5px;\" viewBox=\"-50 -10 1136.5 1007\" role=\"graphics-document document\" aria-roledescription=\"sequence\"><rect x=\"40\" y=\"505\" fill=\"rgba(0, 100, 255, .05)\" width=\"869\" height=\"396\" class=\"rect\"></rect><g><rect x=\"799\" y=\"921\" fill=\"#eaeaea\" stroke=\"#666\" width=\"150\" height=\"65\" name=\"Bank\" rx=\"3\" ry=\"3\" class=\"actor actor-bottom\"></rect><text x=\"874\" y=\"953.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\"><tspan x=\"874\" dy=\"0\">User's bank</tspan></text></g><g><rect x=\"581\" y=\"921\" fill=\"#eaeaea\" stroke=\"#666\" width=\"150\" height=\"65\" name=\"Belvo\" rx=\"3\" ry=\"3\" class=\"actor actor-bottom\"></rect><text x=\"656\" y=\"953.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\"><tspan x=\"656\" dy=\"0\">Belvo</tspan></text></g><g><rect x=\"0\" y=\"921\" fill=\"#eaeaea\" stroke=\"#666\" width=\"150\" height=\"65\" name=\"App\" rx=\"3\" ry=\"3\" class=\"actor actor-bottom\"></rect><text x=\"75\" y=\"953.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\"><tspan x=\"75\" dy=\"0\">Your application</tspan></text></g><g><line id=\"actor2\" x1=\"874\" y1=\"65\" x2=\"874\" y2=\"921\" class=\"actor-line 200\" stroke-width=\"0.5px\" stroke=\"#999\" name=\"Bank\"></line><g id=\"root-2\"><rect x=\"799\" y=\"0\" fill=\"#eaeaea\" stroke=\"#666\" width=\"150\" height=\"65\" name=\"Bank\" rx=\"3\" ry=\"3\" class=\"actor actor-top\"></rect><text x=\"874\" y=\"32.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\"><tspan x=\"874\" dy=\"0\">User's bank</tspan></text></g></g><g><line id=\"actor1\" x1=\"656\" y1=\"65\" x2=\"656\" y2=\"921\" class=\"actor-line 200\" stroke-width=\"0.5px\" stroke=\"#999\" name=\"Belvo\"></line><g id=\"root-1\"><rect x=\"581\" y=\"0\" fill=\"#eaeaea\" stroke=\"#666\" width=\"150\" height=\"65\" name=\"Belvo\" rx=\"3\" ry=\"3\" class=\"actor actor-top\"></rect><text x=\"656\" y=\"32.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\"><tspan x=\"656\" dy=\"0\">Belvo</tspan></text></g></g><g><line id=\"actor0\" x1=\"75\" y1=\"65\" x2=\"75\" y2=\"921\" class=\"actor-line 200\" stroke-width=\"0.5px\" stroke=\"#999\" name=\"App\"></line><g id=\"root-0\"><rect x=\"0\" y=\"0\" fill=\"#eaeaea\" stroke=\"#666\" width=\"150\" height=\"65\" name=\"App\" rx=\"3\" ry=\"3\" class=\"actor actor-top\"></rect><text x=\"75\" y=\"32.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\"><tspan x=\"75\" dy=\"0\">Your application</tspan></text></g></g><style>#mermaid-1792178815357{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-1792178815357 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-1792178815357 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-1792178815357 .error-icon{fill:#552222;}#mermaid-1792178815357 .error-text{fill:#552222;stroke:#552222;}#mermaid-1792178815357 .edge-thickness-normal{stroke-width:1px;}#mermaid-1792178815357 .edge-thickness-thick{stroke-width:3.5px;}#mermaid-1792178815357 .edge-pattern-solid{stroke-dasharray:0;}#mermaid-1792178815357 .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-1792178815357 .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-1792178815357 .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-1792178815357 .marker{fill:#333333;stroke:#333333;}#mermaid-1792178815357 .marker.cross{stroke:#333333;}#mermaid-1792178815357 svg{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;}#mermaid-1792178815357 p{margin:0;}#mermaid-1792178815357 .actor{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-1792178815357 text.actor&gt;tspan{fill:black;stroke:none;}#mermaid-1792178815357 .actor-line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mermaid-1792178815357 .innerArc{stroke-width:1.5;stroke-dasharray:none;}#mermaid-1792178815357 .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333;}#mermaid-1792178815357 .messageLine1{stroke-width:1.5;stroke-dasharray:2,2;stroke:#333;}#mermaid-1792178815357 #arrowhead path{fill:#333;stroke:#333;}#mermaid-1792178815357 .sequenceNumber{fill:white;}#mermaid-1792178815357 #sequencenumber{fill:#333;}#mermaid-1792178815357 #crosshead path{fill:#333;stroke:#333;}#mermaid-1792178815357 .messageText{fill:#333;stroke:none;}#mermaid-1792178815357 .labelBox{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-1792178815357 .labelText,#mermaid-1792178815357 .labelText&gt;tspan{fill:black;stroke:none;}#mermaid-1792178815357 .loopText,#mermaid-1792178815357 .loopText&gt;tspan{fill:black;stroke:none;}#mermaid-1792178815357 .loopLine{stroke-width:2px;stroke-dasharray:2,2;stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mermaid-1792178815357 .note{stroke:#aaaa33;fill:#fff5ad;}#mermaid-1792178815357 .noteText,#mermaid-1792178815357 .noteText&gt;tspan{fill:black;stroke:none;}#mermaid-1792178815357 .activation0{fill:#f4f4f4;stroke:#666;}#mermaid-1792178815357 .activation1{fill:#f4f4f4;stroke:#666;}#mermaid-1792178815357 .activation2{fill:#f4f4f4;stroke:#666;}#mermaid-1792178815357 .actorPopupMenu{position:absolute;}#mermaid-1792178815357 .actorPopupMenuPanel{position:absolute;fill:#ECECFF;box-shadow:0px 8px 16px 0px rgba(0,0,0,0.2);filter:drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));}#mermaid-1792178815357 .actor-man line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-1792178815357 .actor-man circle,#mermaid-1792178815357 line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;stroke-width:2px;}#mermaid-1792178815357 :root{--mermaid-font-family:\"trebuchet ms\",verdana,arial,sans-serif;}</style><g></g><defs><symbol id=\"computer\" width=\"24\" height=\"24\"><path transform=\"scale(.5)\" d=\"M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z\"></path></symbol></defs><defs><symbol id=\"database\" fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path transform=\"scale(.5)\" d=\"M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z\"></path></symbol></defs><defs><symbol id=\"clock\" width=\"24\" height=\"24\"><path transform=\"scale(.5)\" d=\"M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z\"></path></symbol></defs><defs><marker id=\"arrowhead\" refX=\"7.9\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"12\" markerHeight=\"12\" orient=\"auto-start-reverse\"><path d=\"M -1 0 L 10 5 L 0 10 z\"></path></marker></defs><defs><marker id=\"crosshead\" markerWidth=\"15\" markerHeight=\"8\" orient=\"auto\" refX=\"4\" refY=\"4.5\"><path fill=\"none\" stroke=\"#000000\" stroke-width=\"1pt\" d=\"M 1,2 L 6,7 M 6,2 L 1,7\" style=\"stroke-dasharray: 0, 0;\"></path></marker></defs><defs><marker id=\"filled-head\" refX=\"15.5\" refY=\"7\" markerWidth=\"20\" markerHeight=\"28\" orient=\"auto\"><path d=\"M 18,7 L9,13 L14,7 L9,1 Z\"></path></marker></defs><defs><marker id=\"sequencenumber\" refX=\"15\" refY=\"15\" markerWidth=\"60\" markerHeight=\"40\" orient=\"auto\"><circle cx=\"15\" cy=\"15\" r=\"6\"></circle></marker></defs><g><rect x=\"711.5\" y=\"237\" fill=\"#EDF2AE\" stroke=\"#666\" width=\"325\" height=\"42\" class=\"note\"></rect><text x=\"874\" y=\"242\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"noteText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\"><tspan x=\"874\">The user reviews and approves the limits</tspan></text></g><g><rect x=\"50\" y=\"525\" fill=\"#EDF2AE\" stroke=\"#666\" width=\"849\" height=\"42\" class=\"note\"></rect><text x=\"475\" y=\"530\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"noteText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\"><tspan x=\"475\">Repeat whenever you need to move funds</tspan></text></g><text x=\"364\" y=\"80\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">POST /payments/br/payment-authorizations/</text><line x1=\"76\" y1=\"119\" x2=\"652\" y2=\"119\" class=\"messageLine0\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"fill: none;\"></line><line x1=\"76\" y1=\"119\" x2=\"76\" y2=\"119\" stroke-width=\"0\" marker-start=\"url(#sequencenumber)\"></line><text x=\"76\" y=\"123\" font-family=\"sans-serif\" font-size=\"12px\" text-anchor=\"middle\" class=\"sequenceNumber\">1</text><text x=\"367\" y=\"134\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">201 - Created (authorization_url)</text><line x1=\"655\" y1=\"173\" x2=\"79\" y2=\"173\" class=\"messageLine1\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"stroke-dasharray: 3, 3; fill: none;\"></line><line x1=\"655\" y1=\"173\" x2=\"655\" y2=\"173\" stroke-width=\"0\" marker-start=\"url(#sequencenumber)\"></line><text x=\"655\" y=\"177\" font-family=\"sans-serif\" font-size=\"12px\" text-anchor=\"middle\" class=\"sequenceNumber\">2</text><text x=\"473\" y=\"188\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">Redirect the user to authorization_url</text><line x1=\"76\" y1=\"227\" x2=\"870\" y2=\"227\" class=\"messageLine0\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"fill: none;\"></line><line x1=\"76\" y1=\"227\" x2=\"76\" y2=\"227\" stroke-width=\"0\" marker-start=\"url(#sequencenumber)\"></line><text x=\"76\" y=\"231\" font-family=\"sans-serif\" font-size=\"12px\" text-anchor=\"middle\" class=\"sequenceNumber\">3</text><text x=\"476\" y=\"294\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">User returns to your return_url</text><line x1=\"873\" y1=\"333\" x2=\"79\" y2=\"333\" class=\"messageLine1\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"stroke-dasharray: 3, 3; fill: none;\"></line><line x1=\"873\" y1=\"333\" x2=\"873\" y2=\"333\" stroke-width=\"0\" marker-start=\"url(#sequencenumber)\"></line><text x=\"873\" y=\"337\" font-family=\"sans-serif\" font-size=\"12px\" text-anchor=\"middle\" class=\"sequenceNumber\">4</text><text x=\"367\" y=\"348\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">WEBHOOK PAYMENT_AUTHORIZATION</text><line x1=\"655\" y1=\"387\" x2=\"79\" y2=\"387\" class=\"messageLine1\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"stroke-dasharray: 3, 3; fill: none;\"></line><line x1=\"655\" y1=\"387\" x2=\"655\" y2=\"387\" stroke-width=\"0\" marker-start=\"url(#sequencenumber)\"></line><text x=\"655\" y=\"391\" font-family=\"sans-serif\" font-size=\"12px\" text-anchor=\"middle\" class=\"sequenceNumber\">5</text><text x=\"364\" y=\"402\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">GET /payments/br/payment-authorizations/{id}/</text><line x1=\"76\" y1=\"441\" x2=\"652\" y2=\"441\" class=\"messageLine0\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"fill: none;\"></line><line x1=\"76\" y1=\"441\" x2=\"76\" y2=\"441\" stroke-width=\"0\" marker-start=\"url(#sequencenumber)\"></line><text x=\"76\" y=\"445\" font-family=\"sans-serif\" font-size=\"12px\" text-anchor=\"middle\" class=\"sequenceNumber\">6</text><text x=\"367\" y=\"456\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">200 - OK (status: AUTHORIZED)</text><line x1=\"655\" y1=\"495\" x2=\"79\" y2=\"495\" class=\"messageLine1\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"stroke-dasharray: 3, 3; fill: none;\"></line><line x1=\"655\" y1=\"495\" x2=\"655\" y2=\"495\" stroke-width=\"0\" marker-start=\"url(#sequencenumber)\"></line><text x=\"655\" y=\"499\" font-family=\"sans-serif\" font-size=\"12px\" text-anchor=\"middle\" class=\"sequenceNumber\">7</text><text x=\"364\" y=\"582\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">POST /payments/br/payment-authorizations/{id}/charges/</text><line x1=\"76\" y1=\"621\" x2=\"652\" y2=\"621\" class=\"messageLine0\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"fill: none;\"></line><line x1=\"76\" y1=\"621\" x2=\"76\" y2=\"621\" stroke-width=\"0\" marker-start=\"url(#sequencenumber)\"></line><text x=\"76\" y=\"625\" font-family=\"sans-serif\" font-size=\"12px\" text-anchor=\"middle\" class=\"sequenceNumber\">8</text><text x=\"764\" y=\"636\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">Pix transfer request</text><line x1=\"657\" y1=\"675\" x2=\"870\" y2=\"675\" class=\"messageLine0\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"fill: none;\"></line><line x1=\"657\" y1=\"675\" x2=\"657\" y2=\"675\" stroke-width=\"0\" marker-start=\"url(#sequencenumber)\"></line><text x=\"657\" y=\"679\" font-family=\"sans-serif\" font-size=\"12px\" text-anchor=\"middle\" class=\"sequenceNumber\">9</text><text x=\"367\" y=\"690\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">201 - Created</text><line x1=\"655\" y1=\"729\" x2=\"79\" y2=\"729\" class=\"messageLine1\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"stroke-dasharray: 3, 3; fill: none;\"></line><line x1=\"655\" y1=\"729\" x2=\"655\" y2=\"729\" stroke-width=\"0\" marker-start=\"url(#sequencenumber)\"></line><text x=\"655\" y=\"733\" font-family=\"sans-serif\" font-size=\"12px\" text-anchor=\"middle\" class=\"sequenceNumber\">10</text><text x=\"367\" y=\"744\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">WEBHOOK CHARGE</text><line x1=\"655\" y1=\"783\" x2=\"79\" y2=\"783\" class=\"messageLine1\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"stroke-dasharray: 3, 3; fill: none;\"></line><line x1=\"655\" y1=\"783\" x2=\"655\" y2=\"783\" stroke-width=\"0\" marker-start=\"url(#sequencenumber)\"></line><text x=\"655\" y=\"787\" font-family=\"sans-serif\" font-size=\"12px\" text-anchor=\"middle\" class=\"sequenceNumber\">11</text><text x=\"364\" y=\"798\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">GET /payments/br/payment-authorizations/{id}/charges/{charge_id}/</text><line x1=\"76\" y1=\"837\" x2=\"652\" y2=\"837\" class=\"messageLine0\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"fill: none;\"></line><line x1=\"76\" y1=\"837\" x2=\"76\" y2=\"837\" stroke-width=\"0\" marker-start=\"url(#sequencenumber)\"></line><text x=\"76\" y=\"841\" font-family=\"sans-serif\" font-size=\"12px\" text-anchor=\"middle\" class=\"sequenceNumber\">12</text><text x=\"367\" y=\"852\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">200 - OK (status: SETTLED)</text><line x1=\"655\" y1=\"891\" x2=\"79\" y2=\"891\" class=\"messageLine1\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"stroke-dasharray: 3, 3; fill: none;\"></line><line x1=\"655\" y1=\"891\" x2=\"655\" y2=\"891\" stroke-width=\"0\" marker-start=\"url(#sequencenumber)\"></line><text x=\"655\" y=\"895\" font-family=\"sans-serif\" font-size=\"12px\" text-anchor=\"middle\" class=\"sequenceNumber\">13</text></svg></div>"},"children":["sequenceDiagram\n    autonumber\n    participant App as Your application\n    participant Belvo as Belvo\n    participant Bank as User's bank\n\n    App->>Belvo: POST /payments/br/payment-authorizations/\n    Belvo-->>App: 201 - Created (authorization_url)\n    App->>Bank: Redirect the user to authorization_url\n    Note over Bank: The user reviews and approves the limits\n    Bank-->>App: User returns to your return_url\n    Belvo-->>App: WEBHOOK PAYMENT_AUTHORIZATION\n    App->>Belvo: GET /payments/br/payment-authorizations/{id}/\n    Belvo-->>App: 200 - OK (status: AUTHORIZED)\n\n    rect rgba(0, 100, 255, .05)\n        Note over App,Bank: Repeat whenever you need to move funds\n        App->>Belvo: POST /payments/br/payment-authorizations/{id}/charges/\n        Belvo->>Bank: Pix transfer request\n        Belvo-->>App: 201 - Created\n        Belvo-->>App: WEBHOOK CHARGE\n        App->>Belvo: GET /payments/br/payment-authorizations/{id}/charges/{charge_id}/\n        Belvo-->>App: 200 - OK (status: SETTLED)\n    end\n"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"crear-una-autorización-de-pago","__idx":2},"children":["Crear una Autorización de Pago"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["La Autorización de Pago es el consentimiento que tu usuario otorga en su banco. Define la cuenta que recibe los fondos y los límites que cada Cargo debe respetar."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Puedes crear la Autorización de Pago de dos maneras:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Con un cliente y cuenta bancaria existentes:"]}," envía el ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]}," de un cliente y de una cuenta bancaria que ya hayas creado en Belvo, en ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["payer.customer"]}," y ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["beneficiary.target"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Con un nuevo cliente y cuenta bancaria:"]}," envía sus detalles en la misma solicitud: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["payer.customer"]}," con el ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["identifier"]}," y ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["name"]}," del pagador, y ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["beneficiary.target"]}," con el ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["holder"]}," y ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["details"]}," de la cuenta. Belvo crea el cliente y la cuenta bancaria junto con la Autorización de Pago."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Para crear una, realiza una solicitud POST ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/es/apis/belvoopenapispec/payment-authorizations-(brazil)/createpaymentauthorizationbrazil","target":"_blank"},"children":["Crear una Autorización de Pago"]},":"]},{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"div","attributes":{"label":"Con cliente y cuenta bancaria existentes","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"shell","data-title":"Crear una Autorización de Pago","header":{"title":"Crear una Autorización de Pago","controls":{"copy":{}}},"source":"curl --request POST 'https://api.belvo.com/payments/br/payment-authorizations/' \\\n  -u SECRET_ID:SECRET_PASSWORD \\\n  -H 'Content-Type: application/json' \\\n  -H 'X-Belvo-API-Resource-Version: Payments-BR.V2' \\\n  --data '{\n    \"payment_method\": \"PIX_OF_SMART_TRANSFERS\",\n    \"description\": \"Recarga de tu cuenta Acme\",\n    \"external_id\": \"c169a8a9-e9f5-48db-9f4a-818caef9356b\",\n    \"return_url\": \"https://www.acmecorp.com/smart-transfers/return\",\n    \"expiration_date_time\": \"2027-10-16T23:59:59Z\",\n    \"payer\": {\n      \"customer\": \"4714c93c-0132-4da4-b8fe-659515e1b1b6\",\n      \"institution\": \"600f1b4a-1ef9-4f89-b341-1a35f0c32cc0\"\n    },\n    \"beneficiary\": {\n      \"type\": \"BANK_ACCOUNT\",\n      \"target\": \"a80d5a9d-20ae-479a-8dd7-ff3443bcbbfc\"\n    },\n    \"payment_method_configuration\": {\n      \"total_allowed_amount\": \"5000.00\",\n      \"payment_transaction_limit\": \"500.00\",\n      \"periodic_limits\": {\n        \"day\": {\n          \"quantity_limit\": 2,\n          \"transaction_limit\": \"500.00\"\n        },\n        \"month\": {\n          \"transaction_limit\": \"2000.00\"\n        }\n      },\n      \"start_date_time\": \"2026-10-16T14:30:00Z\"\n    },\n    \"metadata\": {\n      \"internal_reference_id\": \"GGq73487w2\"\n    }\n  }'\n","lang":"shell"},"children":[]}]},{"$$mdtype":"Tag","name":"div","attributes":{"label":"Con nuevo cliente y cuenta bancaria","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"shell","data-title":"Crear una Autorización de Pago","header":{"title":"Crear una Autorización de Pago","controls":{"copy":{}}},"source":"curl --request POST 'https://api.belvo.com/payments/br/payment-authorizations/' \\\n  -u SECRET_ID:SECRET_PASSWORD \\\n  -H 'Content-Type: application/json' \\\n  -H 'X-Belvo-API-Resource-Version: Payments-BR.V2' \\\n  --data '{\n    \"payment_method\": \"PIX_OF_SMART_TRANSFERS\",\n    \"description\": \"Recarga de tu cuenta Acme\",\n    \"external_id\": \"c169a8a9-e9f5-48db-9f4a-818caef9356b\",\n    \"return_url\": \"https://www.acmecorp.com/smart-transfers/return\",\n    \"expiration_date_time\": \"2027-10-16T23:59:59Z\",\n    \"payer\": {\n      \"customer\": {\n        \"identifier\": \"12345678909\",\n        \"name\": \"Caetano Veloso\"\n      },\n      \"institution\": \"600f1b4a-1ef9-4f89-b341-1a35f0c32cc0\"\n    },\n    \"beneficiary\": {\n      \"type\": \"BANK_ACCOUNT\",\n      \"target\": {\n        \"holder\": {\n          \"identifier\": \"12345678909\",\n          \"name\": \"Caetano Veloso\"\n        },\n        \"details\": {\n          \"account_type\": \"CHECKINGS\",\n          \"agency\": \"0001\",\n          \"institution\": \"f512d996-583a-4a91-8b5b-eba2e103b068\",\n          \"number\": \"457220\"\n        }\n      }\n    },\n    \"payment_method_configuration\": {\n      \"total_allowed_amount\": \"5000.00\",\n      \"payment_transaction_limit\": \"500.00\",\n      \"periodic_limits\": {\n        \"day\": {\n          \"quantity_limit\": 2,\n          \"transaction_limit\": \"500.00\"\n        },\n        \"month\": {\n          \"transaction_limit\": \"2000.00\"\n        }\n      },\n      \"start_date_time\": \"2026-10-16T14:30:00Z\"\n    },\n    \"metadata\": {\n      \"internal_reference_id\": \"GGq73487w2\"\n    }\n  }'\n","lang":"shell"},"children":[]}]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning","name":"El beneficiario debe ser la propia cuenta del pagador"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Smart Transfers solo mueve dinero entre cuentas pertenecientes a la misma persona o empresa. Para un pagador individual, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["beneficiary.target.holder.identifier"]}," debe ser el CPF del pagador (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["payer.customer.identifier"]},"). Para un pagador empresarial, el CNPJ del beneficiario debe compartir la raíz del CNPJ del pagador (los primeros ocho dígitos)."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Si envías un titular diferente, la autorización se crea con el estado ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["FAILED"]}," y la solicitud devuelve un error. Si usas un ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]}," de cuenta bancaria existente como objetivo, asegúrate de que pertenezca al pagador."]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Parámetro"},"children":["Parámetro"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Requerido"},"children":["Requerido"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Descripción"},"children":["Descripción"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["payment_method"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["true"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Debe ser ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PIX_OF_SMART_TRANSFERS"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["description"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["true"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Una descripción para tu referencia interna. Mantenla en 128 caracteres o menos."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["external_id"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["opcional (altamente recomendado)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Tu propio identificador para esta autorización, como un ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["UUID"]},". Belvo no impone unicidad, así que úsalo para correlacionar la autorización con tus registros, no para prevenir duplicados."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["return_url"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["true"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["La URL a la que se envía a tu usuario después de aprobar (o rechazar) la autorización en su banco. En caso de fallo, Belvo añade los parámetros de consulta ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error"]}," y ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error_description"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["expiration_date_time"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["opcional"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Cuando la autorización deja de aceptar Cargos, en formato ISO 8601. Debe estar en el futuro y después de ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["start_date_time"]},". El consentimiento expira a las 23:59:59 UTC de esa fecha. Si lo omites, la autorización no expira en una fecha (aún puede ser consumida o revocada)."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["payer.customer"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["true"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["La persona o empresa que paga. Ya sea un ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]}," de cliente existente en Belvo, o un objeto con el ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["identifier"]}," (CPF o CNPJ) y ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["name"]}," del pagador. Si el cliente aún no existe, Belvo lo crea."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["payer.institution"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["true"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["El ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]}," de Belvo del banco del pagador. Usa el endpoint ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/es/apis/belvoopenapispec/payment-institutions-(brazil)/listpaymentinstitutionsbrazil","target":"_blank"},"children":["Listar todas las instituciones de pago"]}," para obtenerlo."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["payer.account_details"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["opcional"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["La cuenta específica a debitar. Si lo omites, el usuario elige la cuenta en su banco. Ver ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"#debit-a-specific-account"},"children":["Debitar una cuenta específica"]}," abajo."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["beneficiary.type"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["true"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Debe ser ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["BANK_ACCOUNT"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["beneficiary.target"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["true"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["La cuenta que recibe los fondos. Ya sea un ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]}," de cuenta bancaria existente, o un objeto de cuenta bancaria con ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["holder"]}," (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["identifier"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["name"]},") y ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["details"]}," (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["account_type"]},": ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CHECKINGS"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["SAVINGS"]},", o ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PAYMENTS"]},"; ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["agency"]},"; ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["institution"]},"; ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["number"]},"). Debe ser propiedad del pagador (ver la advertencia arriba)."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["payment_method_configuration"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["true"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Los límites para esta autorización. El objeto es requerido, pero cada campo dentro de él es opcional. Ver ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"#authorization-limits"},"children":["Límites de autorización"]}," abajo."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["metadata"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["opcional"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Hasta 50 pares clave-valor para tu propio uso. Claves de hasta 40 caracteres, valores de cadena de hasta 500 caracteres, sin anidamiento."]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"debitar-una-cuenta-específica","__idx":3},"children":["Debitar una cuenta específica"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Por defecto, tu usuario elige desde cuál de sus cuentas pagar cuando aprueba la autorización en su banco. Si ya conoces la cuenta a debitar, por ejemplo, porque monitoreas su saldo con Banking Aggregation, envía sus detalles en ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["payer.account_details"]},". El usuario solo podrá aprobar la autorización para esa cuenta, y cada Cargo la debitará."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","data-title":"payer with account_details","header":{"title":"payer with account_details","controls":{"copy":{}}},"source":"\"payer\": {\n  \"customer\": \"4714c93c-0132-4da4-b8fe-659515e1b1b6\",\n  \"institution\": \"600f1b4a-1ef9-4f89-b341-1a35f0c32cc0\",\n  \"account_details\": {\n    \"account_type\": \"CACC\",\n    \"ispb\": \"12345678\",\n    \"issuer\": \"6272\",\n    \"number\": \"11188222\"\n  }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"width":"30%","data-label":"Campo"},"children":["Campo "]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Descripción"},"children":["Descripción"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["account_type"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["El tipo de cuenta: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CACC"]}," (corriente), ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["SVGS"]}," (ahorros), ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["SLRY"]}," (nómina) o ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TRAN"]}," (cuenta de pago)."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ispb"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["El código ISPB de 8 dígitos del banco del pagador."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["issuer"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["El código de la sucursal (agencia) de la cuenta, hasta 4 dígitos. En Banking Aggregation, este es el ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["agency"]}," de la cuenta."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["number"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["El número de cuenta, hasta 20 dígitos. En Banking Aggregation, este es el ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["number"]}," de la cuenta."]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Si envías ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["account_details"]},", incluye los cuatro campos. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["payer.institution"]}," sigue siendo requerido, y debe ser la institución de pagos del mismo banco que ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ispb"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"límites-de-autorización","__idx":4},"children":["Límites de autorización"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Los límites en ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["payment_method_configuration"]}," son lo que tu usuario ve y aprueba en su banco, así que configúralos para cubrir las transferencias que esperas realizar, y no más."]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Campo"},"children":["Campo"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Descripción"},"children":["Descripción"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["total_allowed_amount"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["El total máximo de todos los Cargos durante la vigencia de la autorización, como una cadena de texto (mínimo ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0.01"]},"). Cuando se agota, la autorización se convierte en ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CONSUMED"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["payment_transaction_limit"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["El monto máximo de un solo Cargo, como una cadena de texto. No debe ser mayor que ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["total_allowed_amount"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["periodic_limits"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Límites por ventana de calendario. Incluye cualquiera de ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["day"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["week"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["month"]}," o ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["year"]},". Cada ventana que incluyas debe establecer ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["al menos uno"]}," de ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["quantity_limit"]}," (el número máximo de Cargos exitosos en esa ventana, mínimo ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["1"]},") y ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["transaction_limit"]}," (el monto total máximo cargado en esa ventana, como una cadena de texto). Alcanzar el límite de una ventana solo bloquea los Cargos hasta que la ventana se reinicia; no consume la autorización."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["start_date_time"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Cuando la autorización comienza a aceptar Cargos, en formato ISO 8601. Puede ser inmediato, pero no en el pasado. Si lo omites, los Cargos pueden comenzar desde el día en que se crea la autorización."]}]}]}]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Quién verifica los límites"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Cuando creas un Cargo, Belvo lo rechaza de inmediato si su monto supera ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["payment_transaction_limit"]}," o ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["total_allowed_amount"]},". Los totales acumulados y los ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["periodic_limits"]}," son aplicados por el banco del usuario, por lo que un Cargo que los infringe se crea y luego pasa a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["FAILED"]}," con un ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status_reason_code"]}," como ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CHARGE_PERIOD_LIMIT_REACHED"]},"."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["La respuesta contiene el ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]}," de la autorización y el ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["authorization_url"]},":"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","data-title":"Response: 201 - Created","header":{"title":"Response: 201 - Created","controls":{"copy":{}}},"source":"{\n  \"id\": \"9fc68b84-f2d6-4142-b2ad-9d2d1ad70432\", // [!code highlight]\n  \"created_at\": \"2026-10-16T14:30:02Z\",\n  \"updated_at\": \"2026-10-16T14:30:02Z\",\n  \"authorized_at\": null,\n  \"status\": \"AWAITING_AUTHORIZATION\",\n  \"status_reason_code\": null,\n  \"status_reason_message\": null,\n  \"status_updated_at\": \"2026-10-16T14:30:02Z\",\n  \"payment_method\": \"PIX_OF_SMART_TRANSFERS\",\n  \"description\": \"Recarga de tu cuenta Acme\",\n  \"external_id\": \"c169a8a9-e9f5-48db-9f4a-818caef9356b\",\n  \"return_url\": \"https://www.acmecorp.com/smart-transfers/return\",\n  \"expiration_date_time\": \"2027-10-16T23:59:59Z\",\n  \"payer\": {\n    \"customer\": \"4714c93c-0132-4da4-b8fe-659515e1b1b6\",\n    \"institution\": \"600f1b4a-1ef9-4f89-b341-1a35f0c32cc0\",\n    \"representative_identifier\": null,\n    \"bank_account\": null\n  },\n  \"beneficiary\": {\n    \"type\": \"BANK_ACCOUNT\",\n    \"target\": \"a80d5a9d-20ae-479a-8dd7-ff3443bcbbfc\"\n  },\n  \"payment_method_configuration\": {\n    \"total_allowed_amount\": \"5000.00\",\n    \"payment_transaction_limit\": \"500.00\",\n    \"periodic_limits\": {\n      \"day\": {\n        \"quantity_limit\": 2,\n        \"transaction_limit\": \"500.00\"\n      },\n      \"month\": {\n        \"transaction_limit\": \"2000.00\"\n      }\n    },\n    \"start_date_time\": \"2026-10-16T14:30:00Z\",\n    \"authorization_url\": \"https://institution.example.com/authorize?client_id=...\" // [!code highlight]\n  },\n  \"charges\": [],\n  \"metadata\": {\n    \"internal_reference_id\": \"GGq73487w2\"\n  }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Asegúrate de guardar el ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]},": lo necesitas para crear Cargos. Luego redirige a tu usuario a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["payment_method_configuration.authorization_url"]},"."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Expiración de la URL de autorización"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Cada banco establece cuánto tiempo su ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["authorization_url"]}," permanece válida, lo cual puede ser tan corto como unos pocos minutos y hasta alrededor de 60 minutos. Si expira antes de que tu usuario apruebe, crea una nueva Autorización de Pago. Una autorización no puede ser renovada."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"espera-a-que-se-apruebe-la-autorización","__idx":5},"children":["Espera a que se apruebe la autorización"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Tu usuario aprueba (o rechaza) la autorización en su banco y luego es redirigido a tu ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["return_url"]},". Cada vez que cambia el estado de la autorización, Belvo envía un webhook ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PAYMENT_AUTHORIZATION"]},". Los webhooks de la versión 2 no incluyen el estado, por lo que debes obtener la autorización para leerlo:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","data-title":"PAYMENT_AUTHORIZATION webhook","header":{"title":"PAYMENT_AUTHORIZATION webhook","controls":{"copy":{}}},"source":"{\n  \"schema_version\": \"2.0.0\",\n  \"resource\": \"PAYMENT_AUTHORIZATION\", // [!code highlight]\n  \"resource_id\": \"9fc68b84-f2d6-4142-b2ad-9d2d1ad70432\", // [!code highlight]\n  \"resource_version\": \"V2\",\n  \"timestamp\": \"2026-10-16T14:33:10Z\"\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"shell","data-title":"Obtener la Autorización de Pago","header":{"title":"Obtener la Autorización de Pago","controls":{"copy":{}}},"source":"curl --request GET 'https://api.belvo.com/payments/br/payment-authorizations/{payment_authorization_id}/' \\\n  -u SECRET_ID:SECRET_PASSWORD \\\n  -H 'X-Belvo-API-Resource-Version: Payments-BR.V2'\n","lang":"shell"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Una vez que el ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status"]}," es ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["AUTHORIZED"]},", puedes crear Cargos. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["payer.bank_account"]}," mostrará entonces la cuenta (enmascarada) que el usuario eligió para pagar. Si el estado es ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["FAILED"]},", revisa ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status_reason_code"]},"; por ejemplo, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["USER_REJECTED"]}," significa que tu usuario rechazó en su banco. Consulta la ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"#statuses-reference"},"children":["Referencia de estados"]}," para cada estado."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"crear-un-cargo","__idx":6},"children":["Crear un Cargo"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Cada Cargo mueve un monto de la cuenta del pagador a la cuenta del beneficiario en la autorización. Realiza una solicitud POST ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/es/apis/belvoopenapispec/payment-authorizations-(brazil)/createpaymentauthorizationchargebrazil","target":"_blank"},"children":["Crear un Cargo"]}," al endpoint de Cargos de la autorización:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"shell","data-title":"Create a charge","header":{"title":"Create a charge","controls":{"copy":{}}},"source":"curl --request POST 'https://api.belvo.com/payments/br/payment-authorizations/{payment_authorization_id}/charges/' \\\n  -u SECRET_ID:SECRET_PASSWORD \\\n  -H 'Content-Type: application/json' \\\n  -H 'X-Belvo-API-Resource-Version: Payments-BR.V2' \\\n  --data '{\n    \"amount\": \"150.50\",\n    \"date\": \"2026-10-16\",\n    \"statement_description\": \"Acme top-up\",\n    \"external_id\": \"5f0b8f3e-3c1a-4a7e-9d61-1d2b7a1e9c42\",\n    \"metadata\": {\n      \"internal_reference_id\": \"GGq73487w2\"\n    }\n  }'\n","lang":"shell"},"children":[]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Parámetro"},"children":["Parámetro"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Requerido"},"children":["Requerido"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Descripción"},"children":["Descripción"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["amount"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["true"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["El monto a transferir, como una cadena con dos decimales (mínimo ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0.01"]},"). No debe ser mayor que el ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["payment_transaction_limit"]}," o ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["total_allowed_amount"]}," de la autorización."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["date"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["true"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["La fecha en que debe realizarse la transferencia, en formato ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["YYYY-MM-DD"]},". Puede ser hoy. Debe ser en o después de la fecha ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["start_date_time"]}," de la autorización (o su fecha de creación, si no estableciste una), comparada en UTC: tarde en la noche en Brasilia, \"hoy\" ya puede ser mañana en UTC. Una fecha futura crea un Cargo ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["SCHEDULED"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["statement_description"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["true"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["La descripción que se muestra en el estado de cuenta bancario de tu usuario (1 a 140 caracteres)."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["external_id"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["opcional (altamente recomendado)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Tu propio identificador para este Cargo, como un ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["UUID"]},". Belvo no impone unicidad."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["metadata"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["opcional"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Pares clave-valor para tu propio uso, con las mismas reglas que en la autorización."]}]}]}]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Los Cargos siempre pagan al beneficiario de la autorización"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["No puedes enviar un beneficiario diferente en un Cargo. Cada Cargo paga a la cuenta establecida en la Autorización de Pago."]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","data-title":"Response: 201 - Created","header":{"title":"Response: 201 - Created","controls":{"copy":{}}},"source":"{\n  \"id\": \"0d3ffb69-f83b-456e-ad8e-208d0998d71d\", // [!code highlight]\n  \"created_at\": \"2026-10-16T15:00:01Z\",\n  \"status\": \"PENDING\",\n  \"status_reason_code\": null,\n  \"status_reason_message\": null,\n  \"status_updated_at\": \"2026-10-16T15:00:01Z\",\n  \"payment_authorization\": \"9fc68b84-f2d6-4142-b2ad-9d2d1ad70432\",\n  \"payment_method\": \"PIX_OF_SMART_TRANSFERS\",\n  \"amount\": \"150.50\",\n  \"date\": \"2026-10-16\",\n  \"statement_description\": \"Acme top-up\",\n  \"end_to_end_id\": \"E12345678202610161500abcDEF12345\",\n  \"beneficiary\": {\n    \"bank_account\": {\n      \"id\": \"a80d5a9d-20ae-479a-8dd7-ff3443bcbbfc\",\n      \"details\": {\n        \"account_type\": \"CHECKINGS\",\n        \"agency\": \"0001\",\n        \"code\": \"260\",\n        \"institution\": \"f512d996-583a-4a91-8b5b-eba2e103b068\",\n        \"number\": \"**7220\"\n      },\n      \"holder\": {\n        \"identifier\": \"12345678909\",\n        \"name\": \"Caetano Veloso\"\n      }\n    }\n  },\n  \"payer\": {},\n  \"external_id\": \"5f0b8f3e-3c1a-4a7e-9d61-1d2b7a1e9c42\",\n  \"metadata\": {\n    \"internal_reference_id\": \"GGq73487w2\"\n  },\n  \"previous\": null,\n  \"next\": null\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Asegúrate de guardar el ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]}," del Cargo. El ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["end_to_end_id"]}," es el identificador de extremo a extremo de Pix para la transferencia; úsalo para conciliar el pago. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["payer"]}," permanece vacío hasta que el banco devuelve la cuenta debitada."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning","name":"Un 201 no significa que el Cargo fue exitoso"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Si el banco rechaza el Cargo inmediatamente, Belvo aún responde con ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["201 - Created"]},", pero el ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status"]}," del Cargo ya es ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["FAILED"]},", y ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["no se envía un webhook"]}," para esa transición. Siempre verifica el ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status"]}," en la respuesta antes de esperar un webhook."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"escuchar-los-webhooks-de-charge","__idx":7},"children":["Escuchar los webhooks de Charge"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Belvo envía un webhook ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CHARGE"]}," cada vez que cambia el estado de un Charge. Al igual que con la autorización, obtén el Charge para leer su estado:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","data-title":"CHARGE webhook","header":{"title":"CHARGE webhook","controls":{"copy":{}}},"source":"{\n  \"schema_version\": \"2.0.0\",\n  \"resource\": \"CHARGE\", // [!code highlight]\n  \"resource_id\": \"0d3ffb69-f83b-456e-ad8e-208d0998d71d\", // [!code highlight]\n  \"resource_version\": \"V2\",\n  \"timestamp\": \"2026-10-16T15:00:07Z\"\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"shell","data-title":"Obtener el charge","header":{"title":"Obtener el charge","controls":{"copy":{}}},"source":"curl --request GET 'https://api.belvo.com/payments/br/payment-authorizations/{payment_authorization_id}/charges/{charge_id}/' \\\n  -u SECRET_ID:SECRET_PASSWORD \\\n  -H 'X-Belvo-API-Resource-Version: Payments-BR.V2'\n","lang":"shell"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Un Charge es exitoso cuando su ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status"]}," es ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["SETTLED"]},". Para el formato del webhook, la entrega y la política de reintentos, consulta ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/es/developer_resources/resources-webhooks-payments-brazil","target":"_blank"},"children":["Webhooks de Pagos (Brasil)"]},"."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Lo que confirma SETTLED"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["SETTLED"]}," confirma que los fondos ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["salieron de la cuenta del pagador"]},". Belvo trabaja con el banco del pagador a través de Open Finance, por lo que no ve el lado del beneficiario. Confirma el crédito en la cuenta receptora por tu cuenta."]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"success","name":"¡Hecho!"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Has creado una Autorización de Pago, esperado a que tu usuario la apruebe y movido fondos con un Charge. Crea más Charges contra la misma autorización siempre que lo necesites, dentro de sus límites."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"cancelar-un-cargo-o-una-autorización","__idx":8},"children":["Cancelar un Cargo o una autorización"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Acción"},"children":["Acción"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Endpoint"},"children":["Endpoint"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Cuándo está permitido"},"children":["Cuándo está permitido"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Cancelar un Cargo programado"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /payments/br/payment-authorizations/{payment_authorization_id}/charges/{charge_id}/cancel/"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["El Cargo está ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PENDING"]}," o ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["SCHEDULED"]},", su ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["date"]}," es posterior a hoy (hora de Brasilia, límite 23:59), y la autorización está ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["AUTHORIZED"]},". El Cargo se convierte en ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CANCELED"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Cancelar la autorización"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /payments/br/payment-authorizations/{payment_authorization_id}/cancel/"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["La autorización está ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["AUTHORIZED"]},". Se convierte en ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["REVOKED"]},", y no se pueden crear más Cargos."]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Ambos devuelven ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["204 - No Content"]},". El cambio de estado ocurre de manera asincrónica, y recibes un webhook cuando sucede. No puedes reintentar un Cargo de Smart Transfers fallido: crea un nuevo Cargo en su lugar."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"cambiar-la-cuenta-beneficiaria","__idx":9},"children":["Cambiar la cuenta beneficiaria"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Mientras una Autorización de Pago está ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["AUTHORIZED"]},", puedes cambiar la cuenta que recibe los fondos a otra cuenta bancaria que ya hayas registrado, sin pedirle a tu usuario que apruebe una nueva autorización. Realiza una solicitud PATCH ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/es/apis/belvoopenapispec/payment-authorizations-(brazil)/patchpaymentauthorizationbrazil","target":"_blank"},"children":["Cambiar el beneficiario de una Autorización de Pago"]},":"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"shell","data-title":"Cambiar la cuenta beneficiaria","header":{"title":"Cambiar la cuenta beneficiaria","controls":{"copy":{}}},"source":"curl --request PATCH 'https://api.belvo.com/payments/br/payment-authorizations/{payment_authorization_id}/' \\\n  -u SECRET_ID:SECRET_PASSWORD \\\n  -H 'Content-Type: application/json' \\\n  -H 'X-Belvo-API-Resource-Version: Payments-BR.V2' \\\n  --data '{\n    \"beneficiary\": {\n      \"type\": \"BANK_ACCOUNT\",\n      \"target\": \"b6278377-f710-4d1a-a026-7bab757256d0\"\n    }\n  }'\n","lang":"shell"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["target"]}," debe ser el ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]}," de una cuenta bancaria existente perteneciente a la ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["misma persona o empresa"]}," que el beneficiario actual. Belvo responde con ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["200 - OK"]}," y la Autorización de Pago actualizada, y los Cargos posteriores se pagan a la nueva cuenta. Si la autorización no está ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["AUTHORIZED"]},", Belvo responde con ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["400 - Bad Request"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"referencia-de-estados","__idx":10},"children":["Referencia de estados"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"autorización-de-pago","__idx":11},"children":["Autorización de Pago"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"width":"30%","data-label":"Estado"},"children":["Estado "]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Significado"},"children":["Significado"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["AWAITING_AUTHORIZATION"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Creado. Esperando que el usuario lo apruebe en su banco."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PARTIALLY_ACCEPTED"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Esperando más aprobaciones en el banco (por ejemplo, una cuenta empresarial que necesita varias firmas)."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["AUTHORIZED"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Aprobado. Puedes crear Cargos."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["FAILED"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No aprobado, o no se pudo crear. Consulta ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status_reason_code"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CONSUMED"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["El ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["total_allowed_amount"]}," se agotó, o la autorización expiró. No se pueden crear más Cargos. (Alcanzar un límite de ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["periodic_limits"]}," no consume la autorización.)"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["REVOKED"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Cancelado por ti, el usuario, o el banco. No se pueden crear más Cargos."]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"cargo","__idx":12},"children":["Cargo"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"width":"30%","data-label":"Estado"},"children":["Estado "]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Significado"},"children":["Significado"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PENDING"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Creado y en proceso."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["SCHEDULED"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Aceptado por el banco para una ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["date"]}," futura."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["SETTLED"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Los fondos salieron de la cuenta del pagador. Final."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["FAILED"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["La transferencia no se realizó. Ver ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status_reason_code"]},". Final."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CANCELED"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Cancelaste el Cargo antes de su fecha. Final."]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Para la lista completa de valores de ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status_reason_code"]},", consulta ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/es/products/payments_brazil/payments-brazil-codes-and-messages","target":"_blank"},"children":["Códigos y Mensajes de Pagos Brasil"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"errores-y-casos-límite","__idx":13},"children":["Errores y casos límite"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Situación"},"children":["Situación"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Qué sucede"},"children":["Qué sucede"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Falta el encabezado ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["X-Belvo-API-Resource-Version"]},", o Smart Transfers no está habilitado para tu organización."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["404 - Not Found"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Cuerpo de solicitud inválido."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["400 - Bad Request"]}," con una lista de errores ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["{field, code, message, request_id}"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["El banco o la red de Open Finance rechaza la autorización durante la creación (por ejemplo, el beneficiario no es titular del pagador)."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["La autorización se guarda como ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["FAILED"]},", y la solicitud actualmente devuelve ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["500 - Internal Server Error"]}," con una lista de errores ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["{code, message}"]},", sin el ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]}," de la autorización. Para encontrarlo, lista las autorizaciones del cliente (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /payments/br/payment-authorizations/?customer={customer_id}"]},")."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Creas un Cargo en una autorización que no está ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["AUTHORIZED"]},"."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["400 - Bad Request"]},": ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Payment Authorization is not AUTHORIZED."]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["El banco rechaza un Cargo inmediatamente."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["201 - Created"]}," con ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status: FAILED"]},", y sin webhook."]}]}]}]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning","name":"Aún no hay idempotencia"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Estos endpoints aún no soportan claves de idempotencia, y ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["external_id"]}," no previene duplicados. Si una solicitud se agota, busca los Cargos de la autorización (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /payments/br/payment-authorizations/{payment_authorization_id}/charges/"]},") y verifica tu ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["external_id"]}," antes de reintentar, para no transferir dos veces."]}]}]},"headings":[{"value":"API Directa (Transferencias Inteligentes)","id":"api-directa-transferencias-inteligentes","depth":1},{"value":"Descripción general del flujo de datos","id":"descripción-general-del-flujo-de-datos","depth":2},{"value":"Crear una Autorización de Pago","id":"crear-una-autorización-de-pago","depth":2},{"value":"Debitar una cuenta específica","id":"debitar-una-cuenta-específica","depth":3},{"value":"Límites de autorización","id":"límites-de-autorización","depth":3},{"value":"Espera a que se apruebe la autorización","id":"espera-a-que-se-apruebe-la-autorización","depth":2},{"value":"Crear un Cargo","id":"crear-un-cargo","depth":2},{"value":"Escuchar los webhooks de Charge","id":"escuchar-los-webhooks-de-charge","depth":2},{"value":"Cancelar un Cargo o una autorización","id":"cancelar-un-cargo-o-una-autorización","depth":2},{"value":"Cambiar la cuenta beneficiaria","id":"cambiar-la-cuenta-beneficiaria","depth":2},{"value":"Referencia de estados","id":"referencia-de-estados","depth":2},{"value":"Autorización de Pago","id":"autorización-de-pago","depth":3},{"value":"Cargo","id":"cargo","depth":3},{"value":"Errores y casos límite","id":"errores-y-casos-límite","depth":2}],"frontmatter":{"seo":{"title":"API Directa (Transferencias Inteligentes)"}},"lastModified":"2026-10-20T21:01:41.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/es/products/payments_brazil/payments-brazil-smart-transfers-api-guide","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}