{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/es/products/smart_collections_brazil/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["partial","admonition","tabs","tab"]},"type":"markdown"},"seo":{"title":"Fase 1: Verificación de Saldo (API Directa)","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":"fase-1-verificación-de-saldo-api-directa","__idx":0},"children":["Fase 1: Verificación de Saldo (API Directa)"]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning","name":"Beta"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Smart Collections está actualmente en Beta. Algunos contratos en esta página aún están siendo confirmados con nuestro equipo de ingeniería, por lo que deben considerarse provisionales y se esperan refinamientos antes de la disponibilidad general, incluyendo:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Cargas útiles de webhook y códigos de eventos"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Actualizaciones de referencia de la API para los endpoints de Collection Instructions, Payment Authorization y Charge"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Nombres de campos y mejoras en la documentación (terminología, diagramas)"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Contacta a tu gerente de cuenta de Belvo para unirte al programa Beta."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["En la Fase 1 de Smart Collections, delegas el monitoreo de saldo a Belvo. Defines ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Instrucciones de Cobro"]},", estableciendo los montos que deseas cobrar y las condiciones de saldo que deben cumplirse, y Belvo supervisa la cuenta vinculada en segundo plano. Cuando una cuenta tiene suficiente dinero, Belvo te notifica para que puedas cobrarlo en ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/es/products/smart_collections_brazil/smart-collections-payments","target":"_blank"},"children":["Fase 2"]},"."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Producto de Agregación"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["La verificación de saldo es parte del producto de ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["agregación"]}," de Belvo: se basa en el consentimiento OFDA y los datos bancarios del Link del usuario."," ","Por lo tanto, debes completar primero los ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/es/products/smart_collections_brazil/smart-collections-prerequisites","target":"_blank"},"children":["requisitos previos de Smart Collections"]},", ya que necesitas un Link OFDA (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["link_id"]},") para crear Instrucciones de Cobro y un endpoint de webhook para recibir eventos de saldo."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["La Fase 1 cubre tres pasos: creas una Instrucción de Cobro, Belvo monitorea el saldo de la cuenta en relación con ella, y Belvo te envía un webhook una vez que hay suficientes fondos para cobrar."]},{"$$mdtype":"Tag","name":"Mermaid","attributes":{"data-language":"mermaid","diagramSource":"sequenceDiagram\n    participant Client as Your application\n    participant Aggregation as Belvo Aggregation API\n\n    Note over Client, Aggregation: 1. Create the Collection Instruction\n\n    Client->>Aggregation: POST /api/collection-instructions/\n    Aggregation-->>Client: 201 Created (instruction and item IDs)\n\n    Note over Client, Aggregation: 2. Belvo monitors the balance\n\n    loop Within your collection windows, until the balance is sufficient\n        Aggregation->>Aggregation: Check whether the account balance covers the amount\n    end\n\n    Note over Client, Aggregation: 3. Belvo signals that funds are available\n\n    Aggregation->>Client: Webhook: item_ready_to_charge\n    Note over Client, Aggregation: Carries the item_id, your external_id, and the amount.<br/>Continue in Phase 2 to create the Charge.\n","diagramHtml":"<div class=\"mermaid\" data-processed=\"true\"><svg id=\"mermaid-1792449139539\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" style=\"max-width: 744px;\" viewBox=\"-50 -10 744 756\" role=\"graphics-document document\" aria-roledescription=\"sequence\"><g><rect x=\"336.5\" y=\"670\" fill=\"#eaeaea\" stroke=\"#666\" width=\"183\" height=\"65\" name=\"Aggregation\" rx=\"3\" ry=\"3\" class=\"actor actor-bottom\"></rect><text x=\"428\" y=\"702.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400;\"><tspan x=\"428\" dy=\"0\">Belvo Aggregation API</tspan></text></g><g><rect x=\"0\" y=\"670\" fill=\"#eaeaea\" stroke=\"#666\" width=\"150\" height=\"65\" name=\"Client\" rx=\"3\" ry=\"3\" class=\"actor actor-bottom\"></rect><text x=\"75\" y=\"702.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=\"actor1\" x1=\"428\" y1=\"65\" x2=\"428\" y2=\"670\" class=\"actor-line 200\" stroke-width=\"0.5px\" stroke=\"#999\" name=\"Aggregation\"></line><g id=\"root-1\"><rect x=\"336.5\" y=\"0\" fill=\"#eaeaea\" stroke=\"#666\" width=\"183\" height=\"65\" name=\"Aggregation\" rx=\"3\" ry=\"3\" class=\"actor actor-top\"></rect><text x=\"428\" 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=\"428\" dy=\"0\">Belvo Aggregation API</tspan></text></g></g><g><line id=\"actor0\" x1=\"75\" y1=\"65\" x2=\"75\" y2=\"670\" class=\"actor-line 200\" stroke-width=\"0.5px\" stroke=\"#999\" name=\"Client\"></line><g id=\"root-0\"><rect x=\"0\" y=\"0\" fill=\"#eaeaea\" stroke=\"#666\" width=\"150\" height=\"65\" name=\"Client\" 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-1792449139539{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-1792449139539 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-1792449139539 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-1792449139539 .error-icon{fill:#552222;}#mermaid-1792449139539 .error-text{fill:#552222;stroke:#552222;}#mermaid-1792449139539 .edge-thickness-normal{stroke-width:1px;}#mermaid-1792449139539 .edge-thickness-thick{stroke-width:3.5px;}#mermaid-1792449139539 .edge-pattern-solid{stroke-dasharray:0;}#mermaid-1792449139539 .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-1792449139539 .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-1792449139539 .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-1792449139539 .marker{fill:#333333;stroke:#333333;}#mermaid-1792449139539 .marker.cross{stroke:#333333;}#mermaid-1792449139539 svg{font-family:\"trebuchet ms\",verdana,arial,sans-serif;font-size:16px;}#mermaid-1792449139539 p{margin:0;}#mermaid-1792449139539 .actor{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-1792449139539 text.actor&gt;tspan{fill:black;stroke:none;}#mermaid-1792449139539 .actor-line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mermaid-1792449139539 .innerArc{stroke-width:1.5;stroke-dasharray:none;}#mermaid-1792449139539 .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333;}#mermaid-1792449139539 .messageLine1{stroke-width:1.5;stroke-dasharray:2,2;stroke:#333;}#mermaid-1792449139539 #arrowhead path{fill:#333;stroke:#333;}#mermaid-1792449139539 .sequenceNumber{fill:white;}#mermaid-1792449139539 #sequencenumber{fill:#333;}#mermaid-1792449139539 #crosshead path{fill:#333;stroke:#333;}#mermaid-1792449139539 .messageText{fill:#333;stroke:none;}#mermaid-1792449139539 .labelBox{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-1792449139539 .labelText,#mermaid-1792449139539 .labelText&gt;tspan{fill:black;stroke:none;}#mermaid-1792449139539 .loopText,#mermaid-1792449139539 .loopText&gt;tspan{fill:black;stroke:none;}#mermaid-1792449139539 .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-1792449139539 .note{stroke:#aaaa33;fill:#fff5ad;}#mermaid-1792449139539 .noteText,#mermaid-1792449139539 .noteText&gt;tspan{fill:black;stroke:none;}#mermaid-1792449139539 .activation0{fill:#f4f4f4;stroke:#666;}#mermaid-1792449139539 .activation1{fill:#f4f4f4;stroke:#666;}#mermaid-1792449139539 .activation2{fill:#f4f4f4;stroke:#666;}#mermaid-1792449139539 .actorPopupMenu{position:absolute;}#mermaid-1792449139539 .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-1792449139539 .actor-man line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-1792449139539 .actor-man circle,#mermaid-1792449139539 line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;stroke-width:2px;}#mermaid-1792449139539 :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=\"50\" y=\"75\" fill=\"#EDF2AE\" stroke=\"#666\" width=\"403\" height=\"42\" class=\"note\"></rect><text x=\"252\" y=\"80\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"noteText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\"><tspan x=\"252\">1. Create the Collection Instruction</tspan></text></g><g><rect x=\"50\" y=\"235\" fill=\"#EDF2AE\" stroke=\"#666\" width=\"403\" height=\"42\" class=\"note\"></rect><text x=\"252\" y=\"240\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"noteText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\"><tspan x=\"252\">2. Belvo monitors the balance</tspan></text></g><g><line x1=\"214\" y1=\"287\" x2=\"644\" y2=\"287\" class=\"loopLine\"></line><line x1=\"644\" y1=\"287\" x2=\"644\" y2=\"470\" class=\"loopLine\"></line><line x1=\"214\" y1=\"470\" x2=\"644\" y2=\"470\" class=\"loopLine\"></line><line x1=\"214\" y1=\"287\" x2=\"214\" y2=\"470\" class=\"loopLine\"></line><polygon points=\"214,287 264,287 264,300 255.6,307 214,307\" class=\"labelBox\"></polygon><text x=\"239\" y=\"300\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"labelText\" style=\"font-size: 16px; font-weight: 400;\">loop</text><text x=\"454\" y=\"305\" text-anchor=\"middle\" class=\"loopText\" style=\"font-size: 16px; font-weight: 400;\"><tspan x=\"454\">[Within your collection windows, until the</tspan></text><text x=\"454\" y=\"327\" text-anchor=\"middle\" class=\"loopText\" style=\"font-size: 16px; font-weight: 400;\"><tspan x=\"454\">balance is sufficient]</tspan></text></g><g><rect x=\"50\" y=\"480\" fill=\"#EDF2AE\" stroke=\"#666\" width=\"403\" height=\"42\" class=\"note\"></rect><text x=\"252\" y=\"485\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"noteText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\"><tspan x=\"252\">3. Belvo signals that funds are available</tspan></text></g><g><rect x=\"50\" y=\"586\" fill=\"#EDF2AE\" stroke=\"#666\" width=\"403\" height=\"64\" class=\"note\"></rect><text x=\"252\" y=\"591\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"noteText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\"><tspan x=\"252\">Carries the item_id, your external_id, and the amount.</tspan></text><text x=\"252\" y=\"613\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"noteText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\"><tspan x=\"252\">Continue in Phase 2 to create the Charge.</tspan></text></g><text x=\"250\" y=\"132\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">POST /api/collection-instructions/</text><line x1=\"76\" y1=\"171\" x2=\"424\" y2=\"171\" class=\"messageLine0\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"fill: none;\"></line><text x=\"253\" y=\"186\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">201 Created (instruction and item IDs)</text><line x1=\"427\" y1=\"225\" x2=\"79\" y2=\"225\" class=\"messageLine1\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"stroke-dasharray: 3, 3; fill: none;\"></line><text x=\"429\" y=\"361\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">Check whether the account balance covers the amount</text><path d=\"M 429,400 C 489,390 489,430 429,420\" class=\"messageLine0\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"fill: none;\"></path><text x=\"253\" y=\"537\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-size: 16px; font-weight: 400;\">Webhook: item_ready_to_charge</text><line x1=\"427\" y1=\"576\" x2=\"79\" y2=\"576\" class=\"messageLine0\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#arrowhead)\" style=\"fill: none;\"></line></svg></div>"},"children":["sequenceDiagram\n    participant Client as Your application\n    participant Aggregation as Belvo Aggregation API\n\n    Note over Client, Aggregation: 1. Create the Collection Instruction\n\n    Client->>Aggregation: POST /api/collection-instructions/\n    Aggregation-->>Client: 201 Created (instruction and item IDs)\n\n    Note over Client, Aggregation: 2. Belvo monitors the balance\n\n    loop Within your collection windows, until the balance is sufficient\n        Aggregation->>Aggregation: Check whether the account balance covers the amount\n    end\n\n    Note over Client, Aggregation: 3. Belvo signals that funds are available\n\n    Aggregation->>Client: Webhook: item_ready_to_charge\n    Note over Client, Aggregation: Carries the item_id, your external_id, and the amount.<br/>Continue in Phase 2 to create the Charge.\n"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"1-crear-una-instrucción-de-cobro","__idx":1},"children":["1. Crear una Instrucción de Cobro"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Una ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Instrucción de Cobro"]}," indica cuánto deseas cobrar a tu usuario (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["link_id"]},") y durante qué período de tiempo. Belvo utiliza esta información para monitorear el saldo de la cuenta del enlace y, una vez que se cumple la condición de saldo, recibirás un evento de webhook indicando que puedes retirar fondos por un monto determinado."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Cada elemento de Instrucción de Cobro en el array ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["items"]}," se refiere a una colección singular sobre la que deseas actuar. ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["La mayoría de las integraciones crean una Instrucción de Cobro por deuda"]},": un solo elemento que describe esa deuda, con una o más políticas de cobro. (Una instrucción puede contener múltiples elementos si deseas agrupar varias deudas en una sola llamada, pero el patrón común es un elemento por deuda)."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Para crear una, realiza una solicitud POST ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/es/apis/belvoopenapispec/collection-instructions-(brazil)/createcollectioninstructionbrazil","target":"_blank"},"children":["Crear una instrucción de cobro"]},":"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","data-title":"Cuerpo de la Solicitud para Crear una Instrucción de Cobro","data-highlight":"{7-18}","header":{"title":"Cuerpo de la Solicitud para Crear una Instrucción de Cobro","controls":{"copy":{}}},"source":"{\n  \"link_id\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n  \"items\": [\n    {\n      \"amount\": \"150.50\",\n      \"external_id\": \"inv-2026-001\",\n      \"collection_policies\": [\n        {\n          \"start_date\": \"2026-11-01\",\n          \"end_date\": \"2026-11-10\",\n          \"amount\": \"150.50\"\n        },\n        {\n          \"start_date\": \"2026-11-21\",\n          \"end_date\": \"2026-11-30\",\n          \"amount\": \"150.50\"\n        }\n      ]\n    }\n  ]\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Qué hace una política de cobro"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Una política de cobro define una ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["ventana de tiempo"]}," durante la cual Belvo verifica la cuenta. Agrega más de una política a un elemento para controlar ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["cuándo"]}," ocurre el monitoreo. En el ejemplo anterior, Belvo verifica durante los primeros diez días de noviembre, hace una pausa y luego verifica nuevamente en los últimos diez días. ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["No se realizan verificaciones durante el intervalo"]}," entre ventanas."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Tanto ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["start_date"]}," como ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["end_date"]}," son ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["inclusivos"]},", por lo que una ventana se extiende hasta el final de su ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["end_date"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Belvo te notifica tan pronto como el saldo disponible de ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["cualquiera"]}," de las cuentas del usuario sea mayor que el ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["amount"]}," del elemento, y luego deja de monitorear ese elemento. Los saldos entre cuentas no se suman."]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning","name":"Las ventanas se evalúan en UTC"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Las ventanas de cobro se ejecutan desde las 00:00 UTC en ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["start_date"]}," hasta las 23:59:59 UTC en ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["end_date"]},", no en la hora local del pagador. En la hora de Brasilia, una ventana se abre a las 21:00 del día anterior a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["start_date"]}," y se cierra a las 20:59 en ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["end_date"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Dentro de una ventana, Belvo verifica el saldo aproximadamente siete veces al día, en horarios variados. Un saldo que solo sea brevemente suficiente puede no ser detectado."]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"El saldo disponible incluye sobregiro"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Belvo utiliza el saldo disponible de la cuenta según lo informado por el banco, que puede incluir un límite de sobregiro (",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["cheque especial"]},"). Por lo tanto, un usuario puede activar ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["item_ready_to_charge"]}," con menos dinero propio que el ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["amount"]}," del elemento."]}]},{"$$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":["link_id"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["true"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["El ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]}," del Enlace OFDA para el usuario cuyo saldo de cuenta deseas monitorear. Debe ser un Enlace activo que pertenezca a tu organización, de lo contrario, Belvo responde con ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["400 - Bad Request"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["items"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["true"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Array de elementos, con al menos una entrada. Cada elemento es un monto que deseas cobrar, con una o más políticas de cobro. La mayoría de las Instrucciones de Cobro tienen exactamente ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["un"]}," elemento, una deuda por instrucción."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["items[].amount"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["true"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["El monto que deseas cobrar por este elemento, como una cadena. Belvo te notifica una vez que el saldo disponible de una de las cuentas del usuario sea mayor que este monto."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["items[].external_id"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["opcional (fuertemente recomendado)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Tu propia referencia para este elemento. Belvo no vincula las Instrucciones de Cobro a la Autorización de Pago o Cargo que creas en la Fase 2, por lo que esta es la forma de vincular un webhook a tus registros. Establécelo a menos que tengas una razón para no hacerlo. Dado que la mayoría de las instrucciones contienen un elemento por deuda, esta es típicamente tu referencia para la deuda en su conjunto."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["items[].collection_policies"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["true"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Array de políticas, con al menos una entrada. Cada política define una ventana de tiempo (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["start_date"]}," a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["end_date"]},") durante la cual Belvo verifica la cuenta. Usa varias políticas para controlar cuándo ocurre el monitoreo."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["items[].collection_policies[].start_date"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["true"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["La primera fecha en la que Belvo verifica la cuenta, en formato ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["YYYY-MM-DD"]},". Inclusivo."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["items[].collection_policies[].end_date"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["true"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["La última fecha en la que Belvo verifica la cuenta, en formato ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["YYYY-MM-DD"]},". Evaluado en UTC, ver la nota abajo."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["items[].collection_policies[].amount"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["true"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["El monto para esta ventana, como una cadena. Establécelo al monto que deseas cobrar por el elemento. Ver la nota abajo."]}]}]}]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning","name":"Establece el monto de cada política al monto del elemento"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Cada política requiere un ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["amount"]},", pero hoy en día Belvo compara el saldo con el ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["amount"]}," del ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["elemento"]}," en cada ventana, y el ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["amount"]}," de una política no tiene efecto. Establece el ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["amount"]}," de cada política al mismo valor que el ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["amount"]}," del elemento."]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","data-title":"Respuesta de Creación de una Instrucción de Cobro (201 Created)","header":{"title":"Respuesta de Creación de una Instrucción de Cobro (201 Created)","controls":{"copy":{}}},"source":"{\n  \"id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\", // [!code highlight]\n  \"link_id\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n  \"status\": \"PROCESSING\",\n  \"created_at\": \"2026-10-25T14:22:10.123456Z\",\n  \"updated_at\": \"2026-10-25T14:22:10.123456Z\",\n  \"items\": [\n    {\n      \"id\": \"b2c3d4e5-f6a7-8901-bcde-f12345678901\", // [!code highlight]\n      \"amount\": \"150.50\",\n      \"external_id\": \"inv-2026-001\",\n      \"status\": \"PENDING\",\n      \"created_at\": \"2026-10-25T14:22:10.234567Z\",\n      \"updated_at\": \"2026-10-25T14:22:10.234567Z\",\n      \"collection_policies\": [\n        {\n          \"id\": \"c3d4e5f6-a7b8-9012-cdef-123456789012\",\n          \"start_date\": \"2026-11-01\",\n          \"end_date\": \"2026-11-10\",\n          \"amount\": \"150.50\",\n          \"created_at\": \"2026-10-25T14:22:10.345678Z\"\n        },\n        {\n          \"id\": \"d4e5f6a7-b8c9-0123-defa-234567890123\",\n          \"start_date\": \"2026-11-21\",\n          \"end_date\": \"2026-11-30\",\n          \"amount\": \"150.50\",\n          \"created_at\": \"2026-10-25T14:22:10.345678Z\"\n        }\n      ]\n    }\n  ]\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["La instrucción comienza en ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PROCESSING"]}," y cada elemento en ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PENDING"]},". Consulta ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/es/products/smart_collections_brazil/smart-collections-statuses-and-webhooks","target":"_blank"},"children":["Estados y webhooks"]}," para el ciclo de vida completo."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning","name":"Guarda los IDs de la instrucción y del elemento"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Almacena el ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]}," de la instrucción y el ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]}," de cada elemento de esta respuesta. Necesitas el ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]}," de la instrucción para ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"#check-the-status-of-your-items"},"children":["verificar"]}," o ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"#cancel-a-collection-instruction"},"children":["cancelar"]}," la instrucción, y necesitas ambos IDs para cancelar un solo elemento. Ningún endpoint resuelve un ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]}," de elemento de vuelta a su instrucción padre. Si pierdes un ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]}," de instrucción, puedes encontrarlo nuevamente listando tus instrucciones."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"2-escuchar-el-webhook-item_ready_to_charge","__idx":2},"children":["2. Escuchar el webhook ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["item_ready_to_charge"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Cuando se cumple la condición de saldo, Belvo envía un único webhook y deja de monitorear ese ítem. El ítem se mueve a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CHARGE_SETTLED"]},", lo que solo significa que el webhook fue enviado: aún no existe un Cargo."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","data-title":"item_ready_to_charge webhook","header":{"title":"item_ready_to_charge webhook","controls":{"copy":{}}},"source":"{\n  \"webhook_id\": \"e29b41d4a7164a4fae1112b8c9d3f5a2\",\n  \"webhook_type\": \"COLLECTIONS\",\n  \"webhook_code\": \"item_ready_to_charge\",\n  \"process_type\": null,\n  \"link_id\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n  \"external_id\": null,\n  \"data\": {\n    \"item_id\": \"b2c3d4e5-f6a7-8901-bcde-f12345678901\",\n    \"external_id\": \"inv-2026-001\",\n    \"amount\": \"150.50\"\n  }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["El payload identifica el ítem coincidente (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data.item_id"]},") y su ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["external_id"]},", junto con el ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["amount"]}," a recolectar. Este es un webhook de ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["agregación"]},", por lo que no tiene versionado V1/V2. Para un desglose completo campo por campo, consulta ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/es/products/smart_collections_brazil/smart-collections-statuses-and-webhooks","target":"_blank"},"children":["Estados y webhooks"]},"."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Usa external_id para conectar las fases"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Belvo no vincula una Instrucción de Cobro con la Autorización de Pago o Cargo que creas a continuación, así que utiliza ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data.external_id"]}," (o ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data.item_id"]},") para correlacionar este webhook con el Cargo que activas en la Fase 2."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Cuando recibas ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["item_ready_to_charge"]},", procede a ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/es/products/smart_collections_brazil/smart-collections-payments","target":"_blank"},"children":["Fase 2"]}," y carga ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data.amount"]}," contra la Autorización de Pago del usuario."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning","name":"No se envía webhook si el saldo nunca es suficiente"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Si ninguna de las ventanas de un ítem encuentra suficiente saldo para su ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["end_date"]},", el ítem se mueve a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POLICY_EXPIRED"]}," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["silenciosamente, sin que se envíe un webhook"]},". Lo mismo ocurre si Belvo no puede leer las cuentas del usuario (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CHARGE_REJECTED"]},"). No esperes indefinidamente por ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["item_ready_to_charge"]},": rastrea el último ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["end_date"]}," de tus ítems y concilia aquellos que nunca produjeron un Cargo de tu lado."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"verifica-el-estado-de-tus-ítems","__idx":3},"children":["Verifica el estado de tus ítems"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Belvo solo envía un webhook cuando un ítem alcanza ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CHARGE_SETTLED"]},". Para saber cómo terminó cualquier otro ítem, o para recuperarte si perdiste un webhook, obtén los detalles de la instrucción y lee el ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status"]}," de cada ítem:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"shell","data-title":"Get a Collection Instruction","header":{"title":"Get a Collection Instruction","controls":{"copy":{}}},"source":"curl --request GET 'https://api.belvo.com/api/collection-instructions/{instruction_id}/' \\\n  -u SECRET_ID:SECRET_PASSWORD\n","lang":"shell"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Belvo responde con ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["200 - OK"]}," y el mismo objeto que recibiste cuando creaste la instrucción, con el ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status"]}," actual de cada ítem. Consulta ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/es/apis/belvoopenapispec/collection-instructions-(brazil)/detailcollectioninstructionbrazil","target":"_blank"},"children":["Obtener los detalles de una instrucción de cobro"]},". El ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status"]}," de la instrucción permanece ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PROCESSING"]}," hasta que la canceles, incluso después de que cada ítem alcance un estado final, por lo que siempre debes leer los estados de los ítems."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Para encontrar una instrucción cuando no tienes su ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]},", realiza una solicitud GET ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/es/apis/belvoopenapispec/collection-instructions-(brazil)/listcollectioninstructionsbrazil","target":"_blank"},"children":["Listar instrucciones de cobro"]},":"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"shell","data-title":"List Collection Instructions","header":{"title":"List Collection Instructions","controls":{"copy":{}}},"source":"curl --request GET 'https://api.belvo.com/api/collection-instructions/?created_after=2026-11-01&created_before=2026-12-01' \\\n  -u SECRET_ID:SECRET_PASSWORD\n","lang":"shell"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["La respuesta es un array de resúmenes (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["link_id"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status"]}," y marcas de tiempo) que ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["no incluye los ítems"]},". Obtén los detalles de una instrucción para verlos."]},{"$$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":"25%","data-label":"Parámetro de consulta"},"children":["Parámetro de consulta "]},{"$$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":["status"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Devuelve solo instrucciones con este estado (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PROCESSING"]}," o ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CANCELLED"]},")."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["created_after"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Devuelve solo instrucciones creadas en o después de esta fecha (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["YYYY-MM-DD"]},"), desde las 00:00 UTC."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["created_before"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Devuelve solo instrucciones creadas antes de esta fecha (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["YYYY-MM-DD"]},"). La fecha en sí está excluida."]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["El filtro ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["consent_id"]}," también está disponible, consulta la referencia de la API."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning","name":"Mantén las solicitudes de lista pequeñas y no esperes un orden"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["La lista no está paginada y su orden no está garantizado. Siempre envía ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["created_after"]}," y ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["created_before"]},", para que la respuesta solo cubra el período que deseas conciliar. Un valor de filtro que no sea válido, por ejemplo, un ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status"]}," desconocido o una fecha que no esté en formato ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["YYYY-MM-DD"]},", devuelve un ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["500 - Internal Server Error"]}," genérico."]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Con qué frecuencia verificar"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Usa estas solicitudes para conciliar, no como tu señal principal: el webhook ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["item_ready_to_charge"]}," es cómo te enteras de que un ítem está listo. Belvo verifica saldos aproximadamente siete veces al día, por lo que preguntar más a menudo no revela nada antes. Un buen momento para verificar un ítem es después de su último ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["end_date"]},", para encontrar ítems que terminaron como ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POLICY_EXPIRED"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CHARGE_REJECTED"]}," o ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["FAILED"]},"."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Un ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["instruction_id"]}," que no existe o no pertenece a tu organización devuelve un ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["500 - Internal Server Error"]}," genérico. Un ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["instruction_id"]}," que no es un UUID devuelve ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["404 - Not Found"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"reintentar-después-de-una-colección-detenida","__idx":4},"children":["Reintentar después de una colección detenida"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["El monitoreo de un ítem se detiene permanentemente una vez que Belvo envía ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["item_ready_to_charge"]},", o una vez que sus ventanas terminan sin fondos suficientes. Una Instrucción de Cobro ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["no"]}," reanuda el monitoreo por sí sola, incluso después de que un Cargo que crees posteriormente sea rechazado. Para intentar cobrar nuevamente, crea una ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["nueva"]}," Instrucción de Cobro. Reutilizar el mismo ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["external_id"]}," en el nuevo ítem está permitido."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"marcar-un-ítem-como-completado","__idx":5},"children":["Marcar un ítem como completado"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Si recolectas el monto de un ítem de alguna otra manera antes de que Belvo encuentre suficiente saldo, por ejemplo, porque tu usuario te paga directamente, marca el ítem como completado. Belvo deja de monitorearlo, y el estado del ítem se convierte en ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["COMPLETED"]},", para que tus registros y los de Belvo coincidan en por qué terminó el monitoreo."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Realiza una solicitud PATCH ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/es/apis/belvoopenapispec/collection-instructions-(brazil)/patchcollectioninstructionitemcompletebrazil","target":"_blank"},"children":["Marcar un ítem de instrucción de cobro como completado"]},", e identifica el ítem por su ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]}," o por el ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["external_id"]}," que le diste:"]},{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"div","attributes":{"label":"Por item id","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"shell","data-title":"Marcar un ítem como completado","header":{"title":"Marcar un ítem como completado","controls":{"copy":{}}},"source":"curl --request PATCH 'https://api.belvo.com/api/items/complete/' \\\n  -u SECRET_ID:SECRET_PASSWORD \\\n  -H 'Content-Type: application/json' \\\n  --data '{\n    \"item_id\": \"b2c3d4e5-f6a7-8901-bcde-f12345678901\"\n  }'\n","lang":"shell"},"children":[]}]},{"$$mdtype":"Tag","name":"div","attributes":{"label":"Por external_id","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"shell","data-title":"Marcar un ítem como completado","header":{"title":"Marcar un ítem como completado","controls":{"copy":{}}},"source":"curl --request PATCH 'https://api.belvo.com/api/items/complete/' \\\n  -u SECRET_ID:SECRET_PASSWORD \\\n  -H 'Content-Type: application/json' \\\n  --data '{\n    \"external_id\": \"inv-2026-001\"\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":{"width":"25%","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":["item_id"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["uno de los dos"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["El ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]}," del ítem, de la respuesta de Instrucción de Cobro."]}]},{"$$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":["uno de los dos"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["El ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["external_id"]}," que estableciste en el ítem. Debe coincidir exactamente con un ítem en tu organización."]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Envía exactamente uno de ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["item_id"]}," o ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["external_id"]},". Belvo responde con ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["200 - OK"]}," y el ítem:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","data-title":"Response: 200 - OK","header":{"title":"Response: 200 - OK","controls":{"copy":{}}},"source":"{\n  \"id\": \"b2c3d4e5-f6a7-8901-bcde-f12345678901\",\n  \"amount\": \"150.50\",\n  \"external_id\": \"inv-2026-001\",\n  \"status\": \"COMPLETED\", // [!code highlight]\n  \"created_at\": \"2026-10-25T14:22:10.234567Z\",\n  \"updated_at\": \"2026-11-05T09:12:44.104311Z\",\n  \"collection_policies\": [\n    {\n      \"id\": \"c3d4e5f6-a7b8-9012-cdef-123456789012\",\n      \"start_date\": \"2026-11-01\",\n      \"end_date\": \"2026-11-10\",\n      \"amount\": \"150.50\",\n      \"created_at\": \"2026-10-25T14:22:10.345678Z\"\n    },\n    {\n      \"id\": \"d4e5f6a7-b8c9-0123-defa-234567890123\",\n      \"start_date\": \"2026-11-21\",\n      \"end_date\": \"2026-11-30\",\n      \"amount\": \"150.50\",\n      \"created_at\": \"2026-10-25T14:22:10.345678Z\"\n    }\n  ]\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning","name":"Solo los ítems PENDING pueden ser completados"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Solo puedes marcar un ítem como completado mientras su estado sea ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PENDING"]},". Si una verificación de saldo está en progreso (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PROCESSING"]},"), intenta de nuevo unos momentos después. Los ítems en cualquier otro estado no pueden ser completados."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Por el momento, cada solicitud rechazada (un ítem que no está ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PENDING"]},", un ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["item_id"]}," desconocido, o un ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["external_id"]}," compartido por varios de tus ítems) devuelve un genérico ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["500 - Internal Server Error"]},". Usa el ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]}," del ítem cuando puedas, para evitar coincidencias ambiguas."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["La diferencia con cancelar es la razón que registras: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["COMPLETED"]}," significa que el monto fue recolectado fuera de Belvo, y ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CANCELLED"]}," significa que ya no deseas recolectarlo."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"cancelar-una-instrucción-de-cobro","__idx":6},"children":["Cancelar una Instrucción de Cobro"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Para detener el monitoreo de Belvo porque ya no deseas recolectar, por ejemplo, si la deuda fue renegociada o cancelada, cancela toda la instrucción o un solo ítem con un ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PATCH"]},". (La cancelación es un ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PATCH"]}," en lugar de un ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["DELETE"]}," para que Belvo mantenga un registro de auditoría)."]},{"$$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":"Comportamiento"},"children":["Comportamiento"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Cancelar toda la instrucción"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PATCH /api/collection-instructions/{instruction_id}/"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Cancela cada ítem que aún esté ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PENDING"]}," o ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PROCESSING"]},", y establece la instrucción como ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CANCELLED"]},". Devuelve la instrucción."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Cancelar un solo ítem"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PATCH /api/collection-instructions/{instruction_id}/items/{item_id}/"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Solo mientras el ítem esté ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PENDING"]}," o ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PROCESSING"]},". Devuelve el ítem, ahora ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CANCELLED"]},"."]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Ninguna solicitud lleva un cuerpo. Consulta ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/es/apis/belvoopenapispec/collection-instructions-(brazil)/patchcollectioninstructionbrazil","target":"_blank"},"children":["Cancelar una instrucción de cobro"]}," y ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/es/apis/belvoopenapispec/collection-instructions-(brazil)/patchcollectioninstructionitembrazil","target":"_blank"},"children":["Cancelar un ítem de instrucción de cobro"]},". Belvo responde con ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["200 - OK"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Ten en cuenta estos puntos:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["La cancelación no se puede deshacer."]}," Para monitorear nuevamente, crea una nueva Instrucción de Cobro."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Los estados finales permanecen como están."]}," Los ítems que ya alcanzaron un estado final, como ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CHARGE_SETTLED"]}," o ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["COMPLETED"]},", mantienen su estado cuando cancelas su instrucción."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Cancelar un ítem no cambia su instrucción."]}," La instrucción permanece ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PROCESSING"]},", incluso si cancelaste su último ítem activo."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Cancelar la misma instrucción dos veces es seguro."]}," Belvo responde con ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["200 - OK"]}," nuevamente."]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning","name":"Las solicitudes rechazadas devuelven un genérico 500"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Belvo devuelve un genérico ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["500 - Internal Server Error"]}," cuando la instrucción o el ítem no existen, no pertenecen a tu organización, o no están en un estado que permita la cancelación (para un ítem, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PENDING"]}," o ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PROCESSING"]},"). Un ítem que no pertenece a la instrucción en la ruta es rechazado de la misma manera. Un ID que no es un UUID devuelve ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["404 - Not Found"]},". Verifica el estado de un ítem con ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"#check-the-status-of-your-items"},"children":["Obtener una Instrucción de Cobro"]}," antes de cancelarlo."]}]}]},"headings":[{"value":"Fase 1: Verificación de Saldo (API Directa)","id":"fase-1-verificación-de-saldo-api-directa","depth":1},{"value":"1. Crear una Instrucción de Cobro","id":"1-crear-una-instrucción-de-cobro","depth":2},{"value":"2. Escuchar el webhook item_ready_to_charge","id":"2-escuchar-el-webhook-item_ready_to_charge","depth":2},{"value":"Verifica el estado de tus ítems","id":"verifica-el-estado-de-tus-ítems","depth":2},{"value":"Reintentar después de una colección detenida","id":"reintentar-después-de-una-colección-detenida","depth":2},{"value":"Marcar un ítem como completado","id":"marcar-un-ítem-como-completado","depth":2},{"value":"Cancelar una Instrucción de Cobro","id":"cancelar-una-instrucción-de-cobro","depth":2}],"frontmatter":{"seo":{"title":"Fase 1: Verificación de Saldo (API Directa)"}},"lastModified":"2026-10-20T21:01:41.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/es/products/smart_collections_brazil/smart-collections-balance-checking","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}