{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition"]},"type":"markdown"},"seo":{"title":"Onboard a line of credit","siteUrl":"https://docs.peachfinance.com","description":"API and product documentation for Peach Finance, a lending-as-a-service platform."},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"onboard-a-line-of-credit","__idx":0},"children":["Onboard a line of credit"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This guide walks you from credentials-in-hand to an activated, revolving line of credit in the sandbox, then opens a draw and records a purchase against it, using the same public API you call in production. Run every call against the sandbox host. By the end you have an ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["active"]}," line of credit with a credit limit, an active draw, and a purchase recorded against that draw."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This is the line-of-credit sibling of ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/getting-started/use-cases/onboard-installment-loan"},"children":["Onboard an installment loan"]},". The borrower step is identical and is not re-explained here; everything from the loan-create step onward diverges, because a line of credit is a different schema (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["NewLineOfCredit"]},", not ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["NewInstallment"]},") with a different money model — a revolving credit limit drawn against over time, not a fixed amount disbursed once. Where this guide overlaps the installment recipe it links to it rather than restating."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Do this in the sandbox. For how the sandbox is provisioned, the environment model, and the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["payment"]}," failure path, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/getting-started/sandbox-and-test-data"},"children":["Sandbox and test data"]}," — this guide does not restate them. The ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["purchase"]}," decline path is different from the payment decline path, and this guide documents it below."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"prerequisites","__idx":1},"children":["Prerequisites"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["An API key."]}," Sent in the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["X-API-KEY"]}," header on every request. See ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/getting-started/credentials-and-access"},"children":["Credentials and access"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["The sandbox base URL."]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://sandboxapi.peach.finance/api"]},". See ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/getting-started/portals-and-environments"},"children":["Portals and environments"]}," for the host model."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["A line-of-credit ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["loanTypeId"]},"."]}," Configured by Peach and handed to you during onboarding — you cannot create or list loan types through the public API, and a line-of-credit loan type is a distinct product template from an installment one. See ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/getting-started/credentials-and-access"},"children":["Credentials and access"]},". This guide uses the placeholder ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["LT-AAAA-BBBB"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["The borrower, loan, and loan-type concepts."]}," See ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/getting-started/core-concepts"},"children":["Core concepts"]},"."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Your loan type must be configured before any of these calls succeed, and it must be a line-of-credit type: loan creation rejects a request whose ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["type"]}," does not match the loan type's configured type. Creation also resolves the loan type's asset type and the company's default investor; a missing asset type or a company with no default investor (and no ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["investors"]}," passed in the request) is rejected — the same gate the installment recipe describes."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"the-onboarding-sequence","__idx":2},"children":["The onboarding sequence"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Six calls take a borrower to a line of credit with a purchase recorded against it. The borrower, line, and activation are the origination; the draw and purchase exercise the revolving surface an installment loan does not have."]},{"$$mdtype":"Tag","name":"Diagram","attributes":{"data-language":"mermaid","diagramType":"mermaid","diagramSource":"sequenceDiagram\n    participant You as Your application\n    participant Peach as Peach API\n    You->>Peach: POST /people (create borrower)\n    Peach-->>You: personId\n    You->>Peach: POST /people/{personId}/loans (type lineOfCredit, status originated)\n    Peach-->>You: loanId (status originated)\n    You->>Peach: POST /people/{personId}/loans/{loanId}/activate\n    Peach-->>You: line status active, credit limit established\n    You->>Peach: POST /people/{personId}/loans/{loanId}/draws (status originated)\n    Peach-->>You: drawId (status originated)\n    You->>Peach: POST /people/{personId}/loans/{loanId}/draws/{drawId}/activate\n    Peach-->>You: draw status active\n    You->>Peach: POST /people/{personId}/loans/{loanId}/draws/{drawId}/purchases\n    Peach-->>You: purchase recorded against the draw\n","diagramHtml":"<svg id=\"diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" style=\"max-width: 801px;\" viewBox=\"-50 -10 801 719\" role=\"graphics-document document\" aria-roledescription=\"sequence\"><style>\n    #diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 foreignObject {\n      overflow: visible;\n    }\n  </style><g><rect x=\"551\" y=\"633\" fill=\"#eaeaea\" stroke=\"#666\" width=\"150\" height=\"65\" name=\"Peach\" rx=\"3\" ry=\"3\" class=\"actor actor-bottom\"></rect><text x=\"626\" y=\"665.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400; font-family: &quot;Redocly Mermaid Sans&quot;, Arial, &quot;Liberation Sans&quot;, Arimo, Helvetica, &quot;Redocly Mermaid CJK&quot;, sans-serif;\"><tspan x=\"626\" dy=\"0\">Peach API</tspan></text></g><g><rect x=\"0\" y=\"633\" fill=\"#eaeaea\" stroke=\"#666\" width=\"150\" height=\"65\" name=\"You\" rx=\"3\" ry=\"3\" class=\"actor actor-bottom\"></rect><text x=\"75\" y=\"665.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400; font-family: &quot;Redocly Mermaid Sans&quot;, Arial, &quot;Liberation Sans&quot;, Arimo, Helvetica, &quot;Redocly Mermaid CJK&quot;, sans-serif;\"><tspan x=\"75\" dy=\"0\">Your application</tspan></text></g><g><line id=\"actor1\" x1=\"626\" y1=\"65\" x2=\"626\" y2=\"633\" class=\"actor-line 200\" stroke-width=\"0.5px\" stroke=\"#999\" name=\"Peach\" data-et=\"life-line\" data-id=\"Peach\"></line><g id=\"root-1\" data-et=\"participant\" data-type=\"participant\" data-id=\"Peach\"><rect x=\"551\" y=\"0\" fill=\"#eaeaea\" stroke=\"#666\" width=\"150\" height=\"65\" name=\"Peach\" rx=\"3\" ry=\"3\" class=\"actor actor-top\"></rect><text x=\"626\" y=\"32.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400; font-family: &quot;Redocly Mermaid Sans&quot;, Arial, &quot;Liberation Sans&quot;, Arimo, Helvetica, &quot;Redocly Mermaid CJK&quot;, sans-serif;\"><tspan x=\"626\" dy=\"0\">Peach API</tspan></text></g></g><g><line id=\"actor0\" x1=\"75\" y1=\"65\" x2=\"75\" y2=\"633\" class=\"actor-line 200\" stroke-width=\"0.5px\" stroke=\"#999\" name=\"You\" data-et=\"life-line\" data-id=\"You\"></line><g id=\"root-0\" data-et=\"participant\" data-type=\"participant\" data-id=\"You\"><rect x=\"0\" y=\"0\" fill=\"#eaeaea\" stroke=\"#666\" width=\"150\" height=\"65\" name=\"You\" 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; font-family: &quot;Redocly Mermaid Sans&quot;, Arial, &quot;Liberation Sans&quot;, Arimo, Helvetica, &quot;Redocly Mermaid CJK&quot;, sans-serif;\"><tspan x=\"75\" dy=\"0\">Your application</tspan></text></g></g><style>#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2{font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 .error-icon{fill:#552222;}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 .error-text{fill:#552222;stroke:#552222;}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 .edge-thickness-normal{stroke-width:1px;}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 .edge-thickness-thick{stroke-width:3.5px;}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 .edge-pattern-solid{stroke-dasharray:0;}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 .edge-thickness-invisible{stroke-width:0;fill:none;}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 .edge-pattern-dashed{stroke-dasharray:3;}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 .edge-pattern-dotted{stroke-dasharray:2;}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 .marker{fill:#333333;stroke:#333333;}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 .marker.cross{stroke:#333333;}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 svg{font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;font-size:16px;}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 p{margin:0;}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 .actor{stroke:#9370DB;fill:#ECECFF;stroke-width:1;}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 rect.actor.outer-path[data-look=\"neo\"]{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 rect.note[data-look=\"neo\"]{stroke:#aaaa33;fill:#fff5ad;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 text.actor&gt;tspan{fill:black;stroke:none;}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 .actor-line{stroke:#9370DB;}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 .innerArc{stroke-width:1.5;stroke-dasharray:none;}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333;}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 .messageLine1{stroke-width:1.5;stroke-dasharray:2,2;stroke:#333;}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 [id$=\"-arrowhead\"] path{fill:#333;stroke:#333;}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 .sequenceNumber{fill:white;}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 [id$=\"-sequencenumber\"]{fill:#333;}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 [id$=\"-crosshead\"] path{fill:#333;stroke:#333;}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 .messageText{fill:#333;stroke:none;}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 .labelBox{stroke:#9370DB;fill:#ECECFF;filter:none;}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 .labelText,#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 .labelText&gt;tspan{fill:black;stroke:none;}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 .loopText,#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 .loopText&gt;tspan{fill:black;stroke:none;}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 .sectionTitle,#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 .sectionTitle&gt;tspan{fill:black;stroke:none;}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 .loopLine{stroke-width:2px;stroke-dasharray:2,2;stroke:#9370DB;fill:#9370DB;}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 .note{stroke:#aaaa33;fill:#fff5ad;}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 .noteText,#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 .noteText&gt;tspan{fill:black;stroke:none;font-weight:normal;}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 .activation0{fill:#f4f4f4;stroke:#666;}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 .activation1{fill:#f4f4f4;stroke:#666;}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 .activation2{fill:#f4f4f4;stroke:#666;}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 .actorPopupMenu{position:absolute;}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 .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));}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 .actor-man circle,#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 line{fill:#ECECFF;stroke-width:2px;}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 g rect.rect{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));stroke:#9370DB;}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 .node .neo-node{stroke:#9370DB;}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 [data-look=\"neo\"].node rect,#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 [data-look=\"neo\"].cluster rect,#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 [data-look=\"neo\"].node polygon{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 [data-look=\"neo\"].swimlane.cluster rect{filter:none;}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 [data-look=\"neo\"].node path{stroke:#9370DB;stroke-width:1px;}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 [data-look=\"neo\"].node .outer-path{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 [data-look=\"neo\"].node .neo-line path{stroke:#9370DB;filter:none;}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 [data-look=\"neo\"].node circle{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 [data-look=\"neo\"].node circle .state-start{fill:#000000;}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 [data-look=\"neo\"].icon-shape .icon{fill:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 [data-look=\"neo\"].icon-shape .icon-neo path{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2 :root{--mermaid-font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;}</style><g></g><defs><symbol id=\"diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2-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=\"diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2-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=\"diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2-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=\"diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2-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=\"diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2-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=\"diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2-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=\"diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2-sequencenumber\" refX=\"15\" refY=\"15\" markerWidth=\"60\" markerHeight=\"40\" orient=\"auto\"><circle cx=\"15\" cy=\"15\" r=\"6\"></circle></marker></defs><defs><marker id=\"diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2-solidTopArrowHead\" refX=\"7.9\" refY=\"7.25\" markerUnits=\"userSpaceOnUse\" markerWidth=\"12\" markerHeight=\"12\" orient=\"auto-start-reverse\"><path d=\"M 0 0 L 10 8 L 0 8 z\"></path></marker></defs><defs><marker id=\"diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2-solidBottomArrowHead\" refX=\"7.9\" refY=\"0.75\" markerUnits=\"userSpaceOnUse\" markerWidth=\"12\" markerHeight=\"12\" orient=\"auto-start-reverse\"><path d=\"M 0 0 L 10 0 L 0 8 z\"></path></marker></defs><defs><marker id=\"diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2-stickTopArrowHead\" refX=\"7.5\" refY=\"7\" markerUnits=\"userSpaceOnUse\" markerWidth=\"12\" markerHeight=\"12\" orient=\"auto-start-reverse\"><path d=\"M 0 0 L 7 7\" stroke=\"black\" stroke-width=\"1.5\" fill=\"none\"></path></marker></defs><defs><marker id=\"diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2-stickBottomArrowHead\" refX=\"7.5\" refY=\"0\" markerUnits=\"userSpaceOnUse\" markerWidth=\"12\" markerHeight=\"12\" orient=\"auto-start-reverse\"><path d=\"M 0 7 L 7 0\" stroke=\"black\" stroke-width=\"1.5\" fill=\"none\"></path></marker></defs><text x=\"349\" y=\"80\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-family: &quot;Redocly Mermaid Sans&quot;, Arial, &quot;Liberation Sans&quot;, Arimo, Helvetica, &quot;Redocly Mermaid CJK&quot;, sans-serif; font-size: 16px; font-weight: 400;\">POST /people (create borrower)</text><line x1=\"76\" y1=\"111\" x2=\"622\" y2=\"111\" class=\"messageLine0\" data-et=\"message\" data-id=\"i0\" data-from=\"You\" data-to=\"Peach\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2-arrowhead)\" style=\"fill: none;\"></line><text x=\"352\" y=\"126\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-family: &quot;Redocly Mermaid Sans&quot;, Arial, &quot;Liberation Sans&quot;, Arimo, Helvetica, &quot;Redocly Mermaid CJK&quot;, sans-serif; font-size: 16px; font-weight: 400;\">personId</text><line x1=\"625\" y1=\"157\" x2=\"79\" y2=\"157\" class=\"messageLine1\" data-et=\"message\" data-id=\"i1\" data-from=\"Peach\" data-to=\"You\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2-arrowhead)\" style=\"stroke-dasharray: 3, 3; fill: none;\"></line><text x=\"349\" y=\"172\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-family: &quot;Redocly Mermaid Sans&quot;, Arial, &quot;Liberation Sans&quot;, Arimo, Helvetica, &quot;Redocly Mermaid CJK&quot;, sans-serif; font-size: 16px; font-weight: 400;\">POST /people/{personId}/loans (type lineOfCredit, status originated)</text><line x1=\"76\" y1=\"203\" x2=\"622\" y2=\"203\" class=\"messageLine0\" data-et=\"message\" data-id=\"i2\" data-from=\"You\" data-to=\"Peach\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2-arrowhead)\" style=\"fill: none;\"></line><text x=\"352\" y=\"218\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-family: &quot;Redocly Mermaid Sans&quot;, Arial, &quot;Liberation Sans&quot;, Arimo, Helvetica, &quot;Redocly Mermaid CJK&quot;, sans-serif; font-size: 16px; font-weight: 400;\">loanId (status originated)</text><line x1=\"625\" y1=\"249\" x2=\"79\" y2=\"249\" class=\"messageLine1\" data-et=\"message\" data-id=\"i3\" data-from=\"Peach\" data-to=\"You\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2-arrowhead)\" style=\"stroke-dasharray: 3, 3; fill: none;\"></line><text x=\"349\" y=\"264\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-family: &quot;Redocly Mermaid Sans&quot;, Arial, &quot;Liberation Sans&quot;, Arimo, Helvetica, &quot;Redocly Mermaid CJK&quot;, sans-serif; font-size: 16px; font-weight: 400;\">POST /people/{personId}/loans/{loanId}/activate</text><line x1=\"76\" y1=\"295\" x2=\"622\" y2=\"295\" class=\"messageLine0\" data-et=\"message\" data-id=\"i4\" data-from=\"You\" data-to=\"Peach\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2-arrowhead)\" style=\"fill: none;\"></line><text x=\"352\" y=\"310\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-family: &quot;Redocly Mermaid Sans&quot;, Arial, &quot;Liberation Sans&quot;, Arimo, Helvetica, &quot;Redocly Mermaid CJK&quot;, sans-serif; font-size: 16px; font-weight: 400;\">line status active, credit limit established</text><line x1=\"625\" y1=\"339\" x2=\"79\" y2=\"339\" class=\"messageLine1\" data-et=\"message\" data-id=\"i5\" data-from=\"Peach\" data-to=\"You\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2-arrowhead)\" style=\"stroke-dasharray: 3, 3; fill: none;\"></line><text x=\"349\" y=\"354\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-family: &quot;Redocly Mermaid Sans&quot;, Arial, &quot;Liberation Sans&quot;, Arimo, Helvetica, &quot;Redocly Mermaid CJK&quot;, sans-serif; font-size: 16px; font-weight: 400;\">POST /people/{personId}/loans/{loanId}/draws (status originated)</text><line x1=\"76\" y1=\"385\" x2=\"622\" y2=\"385\" class=\"messageLine0\" data-et=\"message\" data-id=\"i6\" data-from=\"You\" data-to=\"Peach\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2-arrowhead)\" style=\"fill: none;\"></line><text x=\"352\" y=\"400\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-family: &quot;Redocly Mermaid Sans&quot;, Arial, &quot;Liberation Sans&quot;, Arimo, Helvetica, &quot;Redocly Mermaid CJK&quot;, sans-serif; font-size: 16px; font-weight: 400;\">drawId (status originated)</text><line x1=\"625\" y1=\"431\" x2=\"79\" y2=\"431\" class=\"messageLine1\" data-et=\"message\" data-id=\"i7\" data-from=\"Peach\" data-to=\"You\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2-arrowhead)\" style=\"stroke-dasharray: 3, 3; fill: none;\"></line><text x=\"349\" y=\"446\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-family: &quot;Redocly Mermaid Sans&quot;, Arial, &quot;Liberation Sans&quot;, Arimo, Helvetica, &quot;Redocly Mermaid CJK&quot;, sans-serif; font-size: 16px; font-weight: 400;\">POST /people/{personId}/loans/{loanId}/draws/{drawId}/activate</text><line x1=\"76\" y1=\"477\" x2=\"622\" y2=\"477\" class=\"messageLine0\" data-et=\"message\" data-id=\"i8\" data-from=\"You\" data-to=\"Peach\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2-arrowhead)\" style=\"fill: none;\"></line><text x=\"352\" y=\"492\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-family: &quot;Redocly Mermaid Sans&quot;, Arial, &quot;Liberation Sans&quot;, Arimo, Helvetica, &quot;Redocly Mermaid CJK&quot;, sans-serif; font-size: 16px; font-weight: 400;\">draw status active</text><line x1=\"625\" y1=\"521\" x2=\"79\" y2=\"521\" class=\"messageLine1\" data-et=\"message\" data-id=\"i9\" data-from=\"Peach\" data-to=\"You\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2-arrowhead)\" style=\"stroke-dasharray: 3, 3; fill: none;\"></line><text x=\"349\" y=\"536\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-family: &quot;Redocly Mermaid Sans&quot;, Arial, &quot;Liberation Sans&quot;, Arimo, Helvetica, &quot;Redocly Mermaid CJK&quot;, sans-serif; font-size: 16px; font-weight: 400;\">POST /people/{personId}/loans/{loanId}/draws/{drawId}/purchases</text><line x1=\"76\" y1=\"567\" x2=\"622\" y2=\"567\" class=\"messageLine0\" data-et=\"message\" data-id=\"i10\" data-from=\"You\" data-to=\"Peach\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2-arrowhead)\" style=\"fill: none;\"></line><text x=\"352\" y=\"582\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-family: &quot;Redocly Mermaid Sans&quot;, Arial, &quot;Liberation Sans&quot;, Arimo, Helvetica, &quot;Redocly Mermaid CJK&quot;, sans-serif; font-size: 16px; font-weight: 400;\">purchase recorded against the draw</text><line x1=\"625\" y1=\"613\" x2=\"79\" y2=\"613\" class=\"messageLine1\" data-et=\"message\" data-id=\"i11\" data-from=\"Peach\" data-to=\"You\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#diagram-fbf7e73960fd8b69351d8a5a5619ab892147a25b66232b14b16778df02ffd1d2-arrowhead)\" style=\"stroke-dasharray: 3, 3; fill: none;\"></line></svg>","diagramHtmlDark":"<svg id=\"diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" style=\"max-width: 801px;\" viewBox=\"-50 -10 801 719\" role=\"graphics-document document\" aria-roledescription=\"sequence\"><style>\n    #diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d foreignObject {\n      overflow: visible;\n    }\n  </style><g><rect x=\"551\" y=\"633\" fill=\"#eaeaea\" stroke=\"#666\" width=\"150\" height=\"65\" name=\"Peach\" rx=\"3\" ry=\"3\" class=\"actor actor-bottom\"></rect><text x=\"626\" y=\"665.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400; font-family: &quot;Redocly Mermaid Sans&quot;, Arial, &quot;Liberation Sans&quot;, Arimo, Helvetica, &quot;Redocly Mermaid CJK&quot;, sans-serif;\"><tspan x=\"626\" dy=\"0\">Peach API</tspan></text></g><g><rect x=\"0\" y=\"633\" fill=\"#eaeaea\" stroke=\"#666\" width=\"150\" height=\"65\" name=\"You\" rx=\"3\" ry=\"3\" class=\"actor actor-bottom\"></rect><text x=\"75\" y=\"665.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400; font-family: &quot;Redocly Mermaid Sans&quot;, Arial, &quot;Liberation Sans&quot;, Arimo, Helvetica, &quot;Redocly Mermaid CJK&quot;, sans-serif;\"><tspan x=\"75\" dy=\"0\">Your application</tspan></text></g><g><line id=\"actor1\" x1=\"626\" y1=\"65\" x2=\"626\" y2=\"633\" class=\"actor-line 200\" stroke-width=\"0.5px\" stroke=\"#999\" name=\"Peach\" data-et=\"life-line\" data-id=\"Peach\"></line><g id=\"root-1\" data-et=\"participant\" data-type=\"participant\" data-id=\"Peach\"><rect x=\"551\" y=\"0\" fill=\"#eaeaea\" stroke=\"#666\" width=\"150\" height=\"65\" name=\"Peach\" rx=\"3\" ry=\"3\" class=\"actor actor-top\"></rect><text x=\"626\" y=\"32.5\" dominant-baseline=\"central\" alignment-baseline=\"central\" class=\"actor actor-box\" style=\"text-anchor: middle; font-size: 16px; font-weight: 400; font-family: &quot;Redocly Mermaid Sans&quot;, Arial, &quot;Liberation Sans&quot;, Arimo, Helvetica, &quot;Redocly Mermaid CJK&quot;, sans-serif;\"><tspan x=\"626\" dy=\"0\">Peach API</tspan></text></g></g><g><line id=\"actor0\" x1=\"75\" y1=\"65\" x2=\"75\" y2=\"633\" class=\"actor-line 200\" stroke-width=\"0.5px\" stroke=\"#999\" name=\"You\" data-et=\"life-line\" data-id=\"You\"></line><g id=\"root-0\" data-et=\"participant\" data-type=\"participant\" data-id=\"You\"><rect x=\"0\" y=\"0\" fill=\"#eaeaea\" stroke=\"#666\" width=\"150\" height=\"65\" name=\"You\" 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; font-family: &quot;Redocly Mermaid Sans&quot;, Arial, &quot;Liberation Sans&quot;, Arimo, Helvetica, &quot;Redocly Mermaid CJK&quot;, sans-serif;\"><tspan x=\"75\" dy=\"0\">Your application</tspan></text></g></g><style>#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d{font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;font-size:16px;fill:#ccc;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d .error-icon{fill:#a44141;}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d .error-text{fill:#ddd;stroke:#ddd;}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d .edge-thickness-normal{stroke-width:1px;}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d .edge-thickness-thick{stroke-width:3.5px;}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d .edge-pattern-solid{stroke-dasharray:0;}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d .edge-thickness-invisible{stroke-width:0;fill:none;}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d .edge-pattern-dashed{stroke-dasharray:3;}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d .edge-pattern-dotted{stroke-dasharray:2;}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d .marker{fill:lightgrey;stroke:lightgrey;}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d .marker.cross{stroke:lightgrey;}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d svg{font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;font-size:16px;}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d p{margin:0;}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d .actor{stroke:#ccc;fill:#1f2020;stroke-width:1;}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d rect.actor.outer-path[data-look=\"neo\"]{filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d rect.note[data-look=\"neo\"]{stroke:hsl(180, 0%, 18.3529411765%);fill:hsl(180, 1.5873015873%, 28.3529411765%);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d text.actor&gt;tspan{fill:lightgrey;stroke:none;}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d .actor-line{stroke:#ccc;}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d .innerArc{stroke-width:1.5;stroke-dasharray:none;}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:lightgrey;}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d .messageLine1{stroke-width:1.5;stroke-dasharray:2,2;stroke:lightgrey;}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d [id$=\"-arrowhead\"] path{fill:lightgrey;stroke:lightgrey;}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d .sequenceNumber{fill:black;}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d [id$=\"-sequencenumber\"]{fill:lightgrey;}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d [id$=\"-crosshead\"] path{fill:lightgrey;stroke:lightgrey;}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d .messageText{fill:lightgrey;stroke:none;}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d .labelBox{stroke:#ccc;fill:#1f2020;filter:none;}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d .labelText,#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d .labelText&gt;tspan{fill:lightgrey;stroke:none;}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d .loopText,#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d .loopText&gt;tspan{fill:lightgrey;stroke:none;}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d .sectionTitle,#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d .sectionTitle&gt;tspan{fill:lightgrey;stroke:none;}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d .loopLine{stroke-width:2px;stroke-dasharray:2,2;stroke:#ccc;fill:#ccc;}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d .note{stroke:hsl(180, 0%, 18.3529411765%);fill:hsl(180, 1.5873015873%, 28.3529411765%);}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d .noteText,#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d .noteText&gt;tspan{fill:rgb(183.8476190475, 181.5523809523, 181.5523809523);stroke:none;font-weight:normal;}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d .activation0{fill:hsl(180, 1.5873015873%, 28.3529411765%);stroke:#ccc;}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d .activation1{fill:hsl(180, 1.5873015873%, 28.3529411765%);stroke:#ccc;}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d .activation2{fill:hsl(180, 1.5873015873%, 28.3529411765%);stroke:#ccc;}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d .actorPopupMenu{position:absolute;}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d .actorPopupMenuPanel{position:absolute;fill:#1f2020;box-shadow:0px 8px 16px 0px rgba(0,0,0,0.2);filter:drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d .actor-man circle,#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d line{fill:#1f2020;stroke-width:2px;}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d g rect.rect{filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));stroke:#ccc;}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d .node .neo-node{stroke:#ccc;}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d [data-look=\"neo\"].node rect,#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d [data-look=\"neo\"].cluster rect,#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d [data-look=\"neo\"].node polygon{stroke:url(#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d [data-look=\"neo\"].swimlane.cluster rect{filter:none;}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d [data-look=\"neo\"].node path{stroke:url(#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d-gradient);stroke-width:1px;}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d [data-look=\"neo\"].node .outer-path{filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d [data-look=\"neo\"].node .neo-line path{stroke:#ccc;filter:none;}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d [data-look=\"neo\"].node circle{stroke:url(#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d [data-look=\"neo\"].node circle .state-start{fill:#000000;}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d [data-look=\"neo\"].icon-shape .icon{fill:url(#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d [data-look=\"neo\"].icon-shape .icon-neo path{stroke:url(#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d :root{--mermaid-font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;}</style><g></g><defs><symbol id=\"diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d-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=\"diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d-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=\"diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d-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=\"diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d-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=\"diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d-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=\"diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d-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=\"diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d-sequencenumber\" refX=\"15\" refY=\"15\" markerWidth=\"60\" markerHeight=\"40\" orient=\"auto\"><circle cx=\"15\" cy=\"15\" r=\"6\"></circle></marker></defs><defs><marker id=\"diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d-solidTopArrowHead\" refX=\"7.9\" refY=\"7.25\" markerUnits=\"userSpaceOnUse\" markerWidth=\"12\" markerHeight=\"12\" orient=\"auto-start-reverse\"><path d=\"M 0 0 L 10 8 L 0 8 z\"></path></marker></defs><defs><marker id=\"diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d-solidBottomArrowHead\" refX=\"7.9\" refY=\"0.75\" markerUnits=\"userSpaceOnUse\" markerWidth=\"12\" markerHeight=\"12\" orient=\"auto-start-reverse\"><path d=\"M 0 0 L 10 0 L 0 8 z\"></path></marker></defs><defs><marker id=\"diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d-stickTopArrowHead\" refX=\"7.5\" refY=\"7\" markerUnits=\"userSpaceOnUse\" markerWidth=\"12\" markerHeight=\"12\" orient=\"auto-start-reverse\"><path d=\"M 0 0 L 7 7\" stroke=\"black\" stroke-width=\"1.5\" fill=\"none\"></path></marker></defs><defs><marker id=\"diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d-stickBottomArrowHead\" refX=\"7.5\" refY=\"0\" markerUnits=\"userSpaceOnUse\" markerWidth=\"12\" markerHeight=\"12\" orient=\"auto-start-reverse\"><path d=\"M 0 7 L 7 0\" stroke=\"black\" stroke-width=\"1.5\" fill=\"none\"></path></marker></defs><text x=\"349\" y=\"80\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-family: &quot;Redocly Mermaid Sans&quot;, Arial, &quot;Liberation Sans&quot;, Arimo, Helvetica, &quot;Redocly Mermaid CJK&quot;, sans-serif; font-size: 16px; font-weight: 400;\">POST /people (create borrower)</text><line x1=\"76\" y1=\"111\" x2=\"622\" y2=\"111\" class=\"messageLine0\" data-et=\"message\" data-id=\"i0\" data-from=\"You\" data-to=\"Peach\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d-arrowhead)\" style=\"fill: none;\"></line><text x=\"352\" y=\"126\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-family: &quot;Redocly Mermaid Sans&quot;, Arial, &quot;Liberation Sans&quot;, Arimo, Helvetica, &quot;Redocly Mermaid CJK&quot;, sans-serif; font-size: 16px; font-weight: 400;\">personId</text><line x1=\"625\" y1=\"157\" x2=\"79\" y2=\"157\" class=\"messageLine1\" data-et=\"message\" data-id=\"i1\" data-from=\"Peach\" data-to=\"You\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d-arrowhead)\" style=\"stroke-dasharray: 3, 3; fill: none;\"></line><text x=\"349\" y=\"172\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-family: &quot;Redocly Mermaid Sans&quot;, Arial, &quot;Liberation Sans&quot;, Arimo, Helvetica, &quot;Redocly Mermaid CJK&quot;, sans-serif; font-size: 16px; font-weight: 400;\">POST /people/{personId}/loans (type lineOfCredit, status originated)</text><line x1=\"76\" y1=\"203\" x2=\"622\" y2=\"203\" class=\"messageLine0\" data-et=\"message\" data-id=\"i2\" data-from=\"You\" data-to=\"Peach\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d-arrowhead)\" style=\"fill: none;\"></line><text x=\"352\" y=\"218\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-family: &quot;Redocly Mermaid Sans&quot;, Arial, &quot;Liberation Sans&quot;, Arimo, Helvetica, &quot;Redocly Mermaid CJK&quot;, sans-serif; font-size: 16px; font-weight: 400;\">loanId (status originated)</text><line x1=\"625\" y1=\"249\" x2=\"79\" y2=\"249\" class=\"messageLine1\" data-et=\"message\" data-id=\"i3\" data-from=\"Peach\" data-to=\"You\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d-arrowhead)\" style=\"stroke-dasharray: 3, 3; fill: none;\"></line><text x=\"349\" y=\"264\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-family: &quot;Redocly Mermaid Sans&quot;, Arial, &quot;Liberation Sans&quot;, Arimo, Helvetica, &quot;Redocly Mermaid CJK&quot;, sans-serif; font-size: 16px; font-weight: 400;\">POST /people/{personId}/loans/{loanId}/activate</text><line x1=\"76\" y1=\"295\" x2=\"622\" y2=\"295\" class=\"messageLine0\" data-et=\"message\" data-id=\"i4\" data-from=\"You\" data-to=\"Peach\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d-arrowhead)\" style=\"fill: none;\"></line><text x=\"352\" y=\"310\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-family: &quot;Redocly Mermaid Sans&quot;, Arial, &quot;Liberation Sans&quot;, Arimo, Helvetica, &quot;Redocly Mermaid CJK&quot;, sans-serif; font-size: 16px; font-weight: 400;\">line status active, credit limit established</text><line x1=\"625\" y1=\"339\" x2=\"79\" y2=\"339\" class=\"messageLine1\" data-et=\"message\" data-id=\"i5\" data-from=\"Peach\" data-to=\"You\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d-arrowhead)\" style=\"stroke-dasharray: 3, 3; fill: none;\"></line><text x=\"349\" y=\"354\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-family: &quot;Redocly Mermaid Sans&quot;, Arial, &quot;Liberation Sans&quot;, Arimo, Helvetica, &quot;Redocly Mermaid CJK&quot;, sans-serif; font-size: 16px; font-weight: 400;\">POST /people/{personId}/loans/{loanId}/draws (status originated)</text><line x1=\"76\" y1=\"385\" x2=\"622\" y2=\"385\" class=\"messageLine0\" data-et=\"message\" data-id=\"i6\" data-from=\"You\" data-to=\"Peach\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d-arrowhead)\" style=\"fill: none;\"></line><text x=\"352\" y=\"400\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-family: &quot;Redocly Mermaid Sans&quot;, Arial, &quot;Liberation Sans&quot;, Arimo, Helvetica, &quot;Redocly Mermaid CJK&quot;, sans-serif; font-size: 16px; font-weight: 400;\">drawId (status originated)</text><line x1=\"625\" y1=\"431\" x2=\"79\" y2=\"431\" class=\"messageLine1\" data-et=\"message\" data-id=\"i7\" data-from=\"Peach\" data-to=\"You\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d-arrowhead)\" style=\"stroke-dasharray: 3, 3; fill: none;\"></line><text x=\"349\" y=\"446\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-family: &quot;Redocly Mermaid Sans&quot;, Arial, &quot;Liberation Sans&quot;, Arimo, Helvetica, &quot;Redocly Mermaid CJK&quot;, sans-serif; font-size: 16px; font-weight: 400;\">POST /people/{personId}/loans/{loanId}/draws/{drawId}/activate</text><line x1=\"76\" y1=\"477\" x2=\"622\" y2=\"477\" class=\"messageLine0\" data-et=\"message\" data-id=\"i8\" data-from=\"You\" data-to=\"Peach\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d-arrowhead)\" style=\"fill: none;\"></line><text x=\"352\" y=\"492\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-family: &quot;Redocly Mermaid Sans&quot;, Arial, &quot;Liberation Sans&quot;, Arimo, Helvetica, &quot;Redocly Mermaid CJK&quot;, sans-serif; font-size: 16px; font-weight: 400;\">draw status active</text><line x1=\"625\" y1=\"521\" x2=\"79\" y2=\"521\" class=\"messageLine1\" data-et=\"message\" data-id=\"i9\" data-from=\"Peach\" data-to=\"You\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d-arrowhead)\" style=\"stroke-dasharray: 3, 3; fill: none;\"></line><text x=\"349\" y=\"536\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-family: &quot;Redocly Mermaid Sans&quot;, Arial, &quot;Liberation Sans&quot;, Arimo, Helvetica, &quot;Redocly Mermaid CJK&quot;, sans-serif; font-size: 16px; font-weight: 400;\">POST /people/{personId}/loans/{loanId}/draws/{drawId}/purchases</text><line x1=\"76\" y1=\"567\" x2=\"622\" y2=\"567\" class=\"messageLine0\" data-et=\"message\" data-id=\"i10\" data-from=\"You\" data-to=\"Peach\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d-arrowhead)\" style=\"fill: none;\"></line><text x=\"352\" y=\"582\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" class=\"messageText\" dy=\"1em\" style=\"font-family: &quot;Redocly Mermaid Sans&quot;, Arial, &quot;Liberation Sans&quot;, Arimo, Helvetica, &quot;Redocly Mermaid CJK&quot;, sans-serif; font-size: 16px; font-weight: 400;\">purchase recorded against the draw</text><line x1=\"625\" y1=\"613\" x2=\"79\" y2=\"613\" class=\"messageLine1\" data-et=\"message\" data-id=\"i11\" data-from=\"Peach\" data-to=\"You\" stroke-width=\"2\" stroke=\"none\" marker-end=\"url(#diagram-7e48d4be4a1d017ef609ee6c12daf9d4dcc6d3cda39d20218b7cc3b57038612d-arrowhead)\" style=\"stroke-dasharray: 3, 3; fill: none;\"></line></svg>"},"children":["sequenceDiagram\n    participant You as Your application\n    participant Peach as Peach API\n    You->>Peach: POST /people (create borrower)\n    Peach-->>You: personId\n    You->>Peach: POST /people/{personId}/loans (type lineOfCredit, status originated)\n    Peach-->>You: loanId (status originated)\n    You->>Peach: POST /people/{personId}/loans/{loanId}/activate\n    Peach-->>You: line status active, credit limit established\n    You->>Peach: POST /people/{personId}/loans/{loanId}/draws (status originated)\n    Peach-->>You: drawId (status originated)\n    You->>Peach: POST /people/{personId}/loans/{loanId}/draws/{drawId}/activate\n    Peach-->>You: draw status active\n    You->>Peach: POST /people/{personId}/loans/{loanId}/draws/{drawId}/purchases\n    Peach-->>You: purchase recorded against the draw\n"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"step-1-create-the-borrower","__idx":3},"children":["Step 1: Create the borrower"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Create the person the line of credit will belong to. This step is identical to the installment recipe — same endpoint, same required fields (a person borrower needs a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["name"]},"; ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["identity"]}," is required unless your company disables it). See ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/getting-started/use-cases/onboard-installment-loan#step-1-create-the-borrower"},"children":["Onboard an installment loan → Create the borrower"]}," for the request body and field table; it is not repeated here."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"http","header":{"controls":{"copy":{}}},"source":"POST https://sandboxapi.peach.finance/api/people\nX-API-KEY: <YOUR-API-KEY>\nContent-Type: application/json\n\n{\n  \"name\": { \"firstName\": \"Ada\", \"lastName\": \"Lovelace\" },\n  \"identity\": { \"identityType\": \"SSN\", \"value\": \"000000000\" }\n}\n","lang":"http"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"verify","__idx":4},"children":["Verify"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The response returns a person ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]}," (for example, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["BO-AAAA-BBBB"]},") with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status: active"]},". Save the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]}," — it is the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["personId"]}," in every subsequent call."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"step-2-create-the-line-of-credit","__idx":5},"children":["Step 2: Create the line of credit"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Create the line against your line-of-credit ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["loanTypeId"]},". Set ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["type"]}," to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["lineOfCredit"]}," and create it in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["originated"]}," status: the line is originated but does not start until you activate it in Step 3."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"http","header":{"controls":{"copy":{}}},"source":"POST https://sandboxapi.peach.finance/api/people/{personId}/loans\nX-API-KEY: <YOUR-API-KEY>\nContent-Type: application/json\n\n{\n  \"type\": \"lineOfCredit\",\n  \"loanTypeId\": \"LT-AAAA-BBBB\",\n  \"servicedBy\": \"creditor\",\n  \"status\": \"originated\",\n  \"newDrawsAllowed\": true,\n  \"atOrigination\": {\n    \"creditLimitAmount\": 5000,\n    \"paymentFrequency\": \"monthly\",\n    \"originationLicense\": \"nationalBank\",\n    \"originatingCreditorName\": \"Example Bank\",\n    \"interestRates\": [\n      { \"interestType\": \"absolute\", \"days\": null, \"rate\": 0.1899 }\n    ],\n    \"personAddress\": {\n      \"addressLine1\": \"1 Main St\",\n      \"city\": \"Houston\",\n      \"state\": \"TX\",\n      \"postalCode\": \"77002\",\n      \"country\": \"US\"\n    }\n  }\n}\n","lang":"http"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"required-fields","__idx":6},"children":["Required fields"]},{"$$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":"Field"},"children":["Field"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Required"},"children":["Required"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Notes"},"children":["Notes"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["type"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Must be ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["lineOfCredit"]},". Must match your loan type's configured type, or the request is rejected."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["loanTypeId"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Your Peach-configured line-of-credit loan type."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["servicedBy"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Who services the line. Use ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["creditor"]}," for a line serviced on the Peach platform. Values: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["creditor"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["thirdPartyServicer"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["debtCollectionAgency"]},"."]}]},{"$$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":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["New loans accept only ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pending"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["originated"]},", or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["declined"]},". Use ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["originated"]}," to originate now and activate next."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["newDrawsAllowed"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Line-of-credit only."]}," Whether the borrower can open additional draws on the line. Required on the line schema and read unconditionally by the create handler."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["atOrigination.creditLimitAmount"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Line-of-credit only."]}," The revolving credit limit — the maximum the borrower can utilize across draws. There is no ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["amountFinanced"]}," and no ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["duration"]}," on a line; those installment fields do not apply."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["atOrigination.paymentFrequency"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["weekly"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["everyTwoWeeks"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["twiceMonthly"]},", or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["monthly"]},". Note ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["singleTerm"]}," is ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["not"]}," valid for a line of credit (it is for installment)."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["atOrigination.originationLicense"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["nationalBank"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["stateLicense"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["bankSubsidiary"]},", or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["stateBank"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["atOrigination.originatingCreditorName"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Name shown to the borrower in communications."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["atOrigination.interestRates"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Array of rate periods; the final entry must have ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["days: null"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["atOrigination.personAddress"]}," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["or"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["atOrigination.personAddressId"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["An address is required to create the loan. See below."]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For the complete field contract — every optional origination parameter, fee, grace-period, and promo structure — see the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/api-docs/api-public/"},"children":["Create loan endpoint"]}," in the API Reference."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"an-address-is-required-to-originate","__idx":7},"children":["An address is required to originate"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["An address requirement applies to the line of credit exactly as it does to an installment loan, and for the same reason: the create-loan handler calls ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["extract_address_fields_for_create_loan"]}," unconditionally for every loan create, regardless of type, and that function rejects a request that carries neither ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["atOrigination.personAddress"]}," nor ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["atOrigination.personAddressId"]},". This was re-verified independently against the line-of-credit path — it is the same code gate, not an assumption carried over from the installment recipe."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Address is a create-loan requirement, not an activation gate"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["As with installment loans, the address requirement is enforced at line creation, not at activation, and it is enforced in code rather than declared in the OpenAPI spec (both address fields are optional on the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["LineOfCredit"]}," schema). You do not need to create a separate address contact first — inlining ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["personAddress"]}," in the origination request satisfies the requirement. Supplying both ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["personAddress"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["personAddressId"]}," is rejected."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"verify-1","__idx":8},"children":["Verify"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The response returns a loan ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]}," (for example, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["LN-AAAA-BBBB"]},") with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["type: lineOfCredit"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status: originated"]},". Save the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]}," — it is the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["loanId"]}," for activation and for every draw and purchase call."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"step-3-activate-the-line-of-credit","__idx":9},"children":["Step 3: Activate the line of credit"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Activate the originated line to start it. The request body is optional. The line must be in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["originated"]}," status to activate; calling activate on a line in any other status returns a 400. This is the same activation handler and the same status guard the installment recipe uses — the endpoint is shared."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"http","header":{"controls":{"copy":{}}},"source":"POST https://sandboxapi.peach.finance/api/people/{personId}/loans/{loanId}/activate\nX-API-KEY: <YOUR-API-KEY>\nContent-Type: application/json\n\n{}\n","lang":"http"},"children":[]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Activating a line does not disburse money"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This is the central divergence from installment. When you activate an ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["installment"]}," loan, Peach disburses principal — it moves the amount financed from cash to accounts receivable. When you activate a ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["line of credit"]},", no principal is disbursed: the disbursement ledger entry is guarded to installment loans only. Line activation establishes the revolving credit line and its credit limit and starts the line; money is utilized later, through draws and purchases (Steps 4–6). A line has a credit limit, not an amount financed."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["As with installment, activating a line assesses fees only when your loan type configures them — an origination or draw fee, and any service or membership fee marked to charge at activation. Activation does not open a draw (you create draws explicitly, in Step 4), does not enrol autopay, and does not itself deliver a borrower notice; it fires a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["loan.activated"]}," event, and any activation-notice delivery is a downstream, configuration-gated step."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"verify-2","__idx":10},"children":["Verify"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Re-fetch the line with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /people/{personId}/loans/{loanId}"]}," and confirm ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status"]}," is now ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["active"]},". The line carries a credit limit (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["current.creditLimitAmount"]},") but no outstanding principal balance yet — nothing has been drawn."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"step-4-open-a-draw","__idx":11},"children":["Step 4: Open a draw"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A draw is the container credit is utilized through. Create it against the active line. The draw's ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status"]}," is required; create it in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["originated"]}," to activate it next."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"http","header":{"controls":{"copy":{}}},"source":"POST https://sandboxapi.peach.finance/api/people/{personId}/loans/{loanId}/draws\nX-API-KEY: <YOUR-API-KEY>\nContent-Type: application/json\n\n{\n  \"status\": \"originated\",\n  \"drawType\": \"regularPurchase\",\n  \"atOrigination\": {\n    \"interestRates\": [\n      { \"interestType\": \"absolute\", \"days\": null, \"rate\": 0.1899 }\n    ]\n  }\n}\n","lang":"http"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"required-fields-1","__idx":12},"children":["Required fields"]},{"$$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":"Field"},"children":["Field"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Required"},"children":["Required"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Notes"},"children":["Notes"]}]}]},{"$$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":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Draws accept only ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pending"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["originated"]}," (plus ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["active"]}," when the loan type is not managed by Peach, and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["declined"]}," for a non-migrating line). Use ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["originated"]},", then activate."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["drawType"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["balanceTransfer"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cashAdvance"]},", or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["regularPurchase"]},". Drives how the system auto-associates card transactions with the draw."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["atOrigination"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Conditional"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Optional as a whole, but if supplied for an amortized draw it carries its own rate and min-payment fields. The full draw origination contract (amortization method, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["minPaymentCalculation"]},") is a larger surface — see the API Reference and the note below."]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The line must be ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["active"]},", ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["not closed"]},", and ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["newDrawsAllowed"]}," must be true"]}," for a draw to be created. A draw created against an inactive line, a closed line, or a line with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["newDrawsAllowed: false"]}," returns a 400."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["atOrigination"]}," is optional on a draw. The draw schema requires only ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status"]}," (see above), and the create handler reads ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["atOrigination"]}," with an empty-object default, so a bare ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["{\"status\": \"originated\"}"]}," draw is accepted; ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["minPaymentCalculation"]}," is required only when you do supply ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["atOrigination"]},". When you omit the amortization inputs, the draw inherits its expected-periodic-payment method from the loan type. A card-style, non-amortized draw does not need an ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["atOrigination"]}," block."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Draw amortization and schedule computation are out of scope here, the same as the installment schedule is; see the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/loan-lifecycle/amortization-utility"},"children":["amortization utility"]}," documentation."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"verify-3","__idx":13},"children":["Verify"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The response returns a draw ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]}," (for example, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["DR-AAAA-BBBB"]},") with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status: originated"]},". Save the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]}," — it is the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["drawId"]}," for activation and for the purchase call."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"step-5-activate-the-draw","__idx":14},"children":["Step 5: Activate the draw"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Activate the draw to start it. The draw-activate endpoint resolves to the same handler as loan activation, so the same guard applies: the draw must be in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["originated"]}," status."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"http","header":{"controls":{"copy":{}}},"source":"POST https://sandboxapi.peach.finance/api/people/{personId}/loans/{loanId}/draws/{drawId}/activate\nX-API-KEY: <YOUR-API-KEY>\nContent-Type: application/json\n\n{}\n","lang":"http"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"verify-4","__idx":15},"children":["Verify"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Re-fetch the draw with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /people/{personId}/loans/{loanId}/draws/{drawId}"]}," and confirm ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status"]}," is ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["active"]},". An active draw can now have purchases recorded against it."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"step-6-record-a-purchase-against-the-draw","__idx":16},"children":["Step 6: Record a purchase against the draw"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Utilization happens through purchases. Record a purchase against the active draw. A regular purchase requires only an ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["amount"]}," and at least one of ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["purchaseDetails.description"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["purchaseDetails.merchantName"]},"; the draw must be ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["active"]}," (for a regular purchase without a prior authorization). By default a purchase is created in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["settled"]}," status, which increases the draw balance and posts to the ledger."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"http","header":{"controls":{"copy":{}}},"source":"POST https://sandboxapi.peach.finance/api/people/{personId}/loans/{loanId}/draws/{drawId}/purchases\nX-API-KEY: <YOUR-API-KEY>\nContent-Type: application/json\n\n{\n  \"amount\": 100,\n  \"type\": \"regular\",\n  \"status\": \"settled\",\n  \"purchaseDetails\": {\n    \"merchantName\": \"Example Merchant\"\n  }\n}\n","lang":"http"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"required-fields-2","__idx":17},"children":["Required fields"]},{"$$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":"Field"},"children":["Field"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Required"},"children":["Required"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Notes"},"children":["Notes"]}]}]},{"$$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":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The purchase amount (minimum 0)."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["purchaseDetails.description"]}," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["or"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["purchaseDetails.merchantName"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["At least one must be present, or the request is rejected."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["type"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["regular"]}," (default), ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["refund"]},", or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cashBack"]},". A regular purchase increases the draw balance."]}]},{"$$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":["No"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Defaults to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["settled"]},". Accepts a purchase status (see below). ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["settled"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pending"]}," post to the ledger and increase the draw balance; ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["declined"]}," does not."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cardId"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The card used for the purchase. If it cannot be resolved, the purchase is still created and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["validation.cardIdMissing"]}," is set in the response."]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["settled"]}," purchase posts to the ledger at creation, with no separate settlement or processor step. Peach is the system of record for line-of-credit purchases: for a regular purchase the create call writes the ledger entries directly and emits the balance-change event, rather than routing through a card processor the way a card ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["payment"]}," does. A ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pending"]}," purchase posts the same way; a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["declined"]}," purchase is record-keeping only and never posts."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"verify-5","__idx":18},"children":["Verify"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Fetch the purchases on the draw with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /people/{personId}/loans/{loanId}/draws/{drawId}/purchases"]}," and confirm the purchase is present in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["settled"]}," status. Then check the draw balances — a settled purchase increases the draw's outstanding balance by the purchase amount, and the line's utilization rises correspondingly."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"purchase-declines-are-not-payment-declines","__idx":19},"children":["Purchase declines are not payment declines"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["declined purchase"]}," and a ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["declined payment"]}," are two different objects with two different mechanisms. Do not model them the same way."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["payment"]}," decline is a runtime outcome. A card payment (a transaction) is adjudicated by the processor; when it is declined, the transaction lands in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TransactionStatus.Failed"]}," with the failure reason ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CardDeclined"]},". There is no literal \"declined\" transaction status — a decline is a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Failed"]}," transaction plus a reason code. That path, its CyberSource test-host routing, and how to drive it are documented in ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/getting-started/sandbox-and-test-data#exercising-the-decline-and-failure-path"},"children":["Sandbox and test data → Exercising the decline and failure path"]},"; this guide does not restate it."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["purchase"]}," decline is a status you set. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PurchaseStatus"]}," has a literal ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Declined"]}," member. Peach is the system of record for line-of-credit purchases — your platform (or its card processor) has already adjudicated the authorization, and you record the outcome, including a decline, into Peach. You create or transition a purchase to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["declined"]}," directly through the API: pass ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"status\": \"declined\""]}," (with an optional ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["declineReason"]},") on the create call, or transition an existing ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pending"]},"/",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["authorized"]}," purchase to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["declined"]},". A declined purchase is ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["record-keeping only"]}," — it never posts to the ledger and does not increase the draw balance when created that way."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"http","header":{"controls":{"copy":{}}},"source":"POST https://sandboxapi.peach.finance/api/people/{personId}/loans/{loanId}/draws/{drawId}/purchases\nX-API-KEY: <YOUR-API-KEY>\nContent-Type: application/json\n\n{\n  \"amount\": 100,\n  \"type\": \"regular\",\n  \"status\": \"declined\",\n  \"declineReason\": \"insufficientCredit\",\n  \"purchaseDetails\": { \"merchantName\": \"Example Merchant\" }\n}\n","lang":"http"},"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":""},"children":[]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Payment decline"},"children":["Payment decline"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Purchase decline"},"children":["Purchase decline"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Object"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Transaction"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Purchase"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Status"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Failed"]}," (no literal \"declined\")"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Declined"]}," (literal enum member)"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Extra field"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["failureReason: CardDeclined"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["declineReason"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Set by"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The processor at runtime"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["You, as system of record"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Ledger effect"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No successful money movement"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["None — record-keeping only"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Where documented"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/getting-started/sandbox-and-test-data#exercising-the-decline-and-failure-path"},"children":["Sandbox and test data"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["This page"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"error-handling","__idx":20},"children":["Error handling"]},{"$$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":"Response"},"children":["Response"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Cause"},"children":["Cause"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Resolution"},"children":["Resolution"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["400"]}," \"Cannot create loan of type ... with configuration for type ...\""]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["type"]}," in the request does not match the loan type's configured type."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Use a line-of-credit ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["loanTypeId"]}," and set ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["type: lineOfCredit"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["400"]}," \"a personAddressId or personAddress is required to create a loan\""]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /people/{personId}/loans"]}," sent with no address."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Add ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["atOrigination.personAddress"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["atOrigination.personAddressId"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["400"]}," \"New loans can only be created in status: ...\""]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status"]}," not one of ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pending"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["originated"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["declined"]},"."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Create the line in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["originated"]},", then activate."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["400"]}," \"... is in an incorrect status for activation\""]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Activate called on a line (or draw) not in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["originated"]}," status."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Confirm the object is ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["originated"]}," before activating."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["400"]}," \"Cannot create draws on inactive line of credit.\""]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Draw created before the line was activated."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Activate the line (Step 3) first."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["400"]}," \"New draws not allowed on this loan.\""]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Draw created while the line has ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["newDrawsAllowed: false"]},"."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Create the line with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["newDrawsAllowed: true"]},", or update the line."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["400"]}," \"Cannot create a purchase on an inactive line.\""]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Regular purchase recorded before the line/draw was active."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Activate the line and the draw first; a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["declined"]}," purchase is exempt on a closed/terminal line."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["400"]}," \"At least one of the attributes, 'description' or 'merchantName' must be passed.\""]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Purchase created with an empty ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["purchaseDetails"]},"."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Include ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["purchaseDetails.description"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["purchaseDetails.merchantName"]},"."]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"testing","__idx":21},"children":["Testing"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Run this whole sequence against the sandbox host and confirm each step's verify condition. To exercise both decline paths: record a purchase with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"status\": \"declined\""]}," (the Step 6 variant above) to confirm your integration reads ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PurchaseStatus.Declined"]},", and separately drive a ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["payment"]}," transaction to a declined outcome per ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/getting-started/sandbox-and-test-data#exercising-the-decline-and-failure-path"},"children":["Sandbox and test data"]},". For seeding wider test data and the test payment instruments, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/getting-started/sandbox-and-test-data"},"children":["Sandbox and test data"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"production-considerations","__idx":22},"children":["Production considerations"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The request and response contracts are identical between sandbox and production — the only difference is the host you call and the credentials you use. When you move to production, point the same calls at the production base URL with production credentials. See ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/getting-started/portals-and-environments"},"children":["Portals and environments"]}," for the host model and ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/getting-started/credentials-and-access"},"children":["Credentials and access"]}," for environment-scoped keys."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"next-steps","__idx":23},"children":["Next steps"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/getting-started/use-cases/onboard-installment-loan"},"children":["Onboard an installment loan"]}," — The fixed-amount sibling of this recipe; start there for the installment comparison and the shared borrower step."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/getting-started/sandbox-and-test-data"},"children":["Sandbox and test data"]}," — Test instruments, magic values, and the payment failure path (distinct from the purchase decline above)."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/getting-started/core-concepts"},"children":["Core concepts"]}," — The borrower, loan, draw, and purchase model behind these calls."]}]}]},"headings":[{"value":"Onboard a line of credit","id":"onboard-a-line-of-credit","depth":1},{"value":"Prerequisites","id":"prerequisites","depth":2},{"value":"The onboarding sequence","id":"the-onboarding-sequence","depth":2},{"value":"Step 1: Create the borrower","id":"step-1-create-the-borrower","depth":2},{"value":"Verify","id":"verify","depth":3},{"value":"Step 2: Create the line of credit","id":"step-2-create-the-line-of-credit","depth":2},{"value":"Required fields","id":"required-fields","depth":3},{"value":"An address is required to originate","id":"an-address-is-required-to-originate","depth":3},{"value":"Verify","id":"verify-1","depth":3},{"value":"Step 3: Activate the line of credit","id":"step-3-activate-the-line-of-credit","depth":2},{"value":"Verify","id":"verify-2","depth":3},{"value":"Step 4: Open a draw","id":"step-4-open-a-draw","depth":2},{"value":"Required fields","id":"required-fields-1","depth":3},{"value":"Verify","id":"verify-3","depth":3},{"value":"Step 5: Activate the draw","id":"step-5-activate-the-draw","depth":2},{"value":"Verify","id":"verify-4","depth":3},{"value":"Step 6: Record a purchase against the draw","id":"step-6-record-a-purchase-against-the-draw","depth":2},{"value":"Required fields","id":"required-fields-2","depth":3},{"value":"Verify","id":"verify-5","depth":3},{"value":"Purchase declines are not payment declines","id":"purchase-declines-are-not-payment-declines","depth":2},{"value":"Error handling","id":"error-handling","depth":2},{"value":"Testing","id":"testing","depth":2},{"value":"Production considerations","id":"production-considerations","depth":2},{"value":"Next steps","id":"next-steps","depth":2}],"frontmatter":{"title":"Onboard a line of credit","description":"Originate one line of credit in the sandbox end to end: create the borrower, create the line against a credit limit, activate it, then open a draw and record a purchase against it — including how a declined purchase differs from a declined payment.","verifiedDate":"2026-07-23T00:00:00.000Z","verifiedSpec":"api-public.yml","verifiedRef":"peach@5e10825f3","seo":{"title":"Onboard a line of credit"}},"lastModified":"2026-07-24T18:38:56.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/getting-started/use-cases/onboard-loc","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}