{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Line of Credit Management","siteUrl":"https://docs.peachfinance.com","description":"API and product documentation for Peach Finance, a lending-as-a-service platform.","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"line-of-credit-management","__idx":0},"children":["Line of Credit Management"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Learn how to create and manage a Line of Credit (LOC) product in Peach through a step-by-step example of setting up a $10,000 credit line."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"prerequisites","__idx":1},"children":["Prerequisites"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Before you begin, ensure you have:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["An active Peach account with API access"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Valid API credentials"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["A borrower already created in Peach"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["A configured LOC loan type"]}]},{"$$mdtype":"Tag","name":"blockquote","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Note"]},": The following examples use commonly used fields, but for full details, including additional data and parameters, refer to the ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/api-docs/api-public"},"children":["API Reference"]},"."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"step-1-create-a-line-of-credit","__idx":2},"children":["Step 1: Create a Line of Credit"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["First, let's create a credit line with these parameters:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Credit limit: $10,000"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Interest rate: 19.99% APR"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Payment frequency: Monthly"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Due date: 15th of month"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Origination fee: $100"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["MinimumPayment Calculation: $25"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"http","header":{"controls":{"copy":{}}},"source":"POST /api/people/{personId}/loans\nX-API-KEY: <YOUR-API-KEY>\nContent-Type: application/json\n\n{\n  \"type\": \"lineOfCredit\",\n  \"loanTypeId\": \"LT-2A2A-3B3B\", \n  \"externalId\": \"LOC-1011\",\n  \"servicedBy\": \"creditor\",\n  \"status\": \"originated\",\n  \"newDrawsAllowed\": true,\n  \"mainBorrowerId\": \"BO-4C4C-5D5D\",\n  \"atOrigination\": {\n    \"originationLicense\": \"nationalBank\",\n    \"originatingCreditorName\": \"Sample Bank\",\n    \"interestRates\": [\n      {\n        \"interestType\": \"absolute\",\n        \"days\": null,\n        \"rate\": 0.1999\n      }\n    ],\n    \"aprNominal\": 0.1999,\n    \"aprEffective\": 0.2100,\n    \"paymentFrequency\": \"monthly\", \n    \"specificDays\": [15],\n    \"creditLimitAmount\": 10000,\n    \"fees\": {\n      \"originationFeeAmount\": 100\n    },\n    \"minPaymentCalculation\": {\n      \"minAmount\": 25\n    }\n  }\n}\n","lang":"http"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"step-2-activate-the-line-of-credit","__idx":3},"children":["Step 2: Activate the Line of Credit"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["After creating the LOC, activate it to begin servicing:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"http","header":{"controls":{"copy":{}}},"source":"POST /api/people/{personId}/loans/{loanId}/activate\nX-API-KEY: <YOUR-API-KEY>\nContent-Type: application/json\n\n{\n  \"sendNotice\": true\n}\n","lang":"http"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sendNotice"]}," parameter determines whether to send an activation notice to the borrower."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"step-3-create-a-draw","__idx":4},"children":["Step 3: Create a Draw"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Once the LOC is active, create a draw to enable purchases. This example shows:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Interest rate of 14.99%"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Minimum payment: 3% of principal"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Minimum payment floor: $25"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Over-limit amounts are included in minimum payment calculation"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"http","header":{"controls":{"copy":{}}},"source":"POST /api/people/{personId}/loans/{loanId}/draws\nX-API-KEY: <YOUR-API-KEY>\nContent-Type: application/json\n\n{\n  \"externalId\": \"DRAW-001\",\n  \"status\": \"pending\",\n  \"drawType\": \"regularPurchase\",\n  \"atOrigination\": {\n    \"interestRates\": [\n      {\n        \"interestType\": \"absolute\",\n        \"days\": null,\n        \"rate\": 0.1499\n      }\n    ],\n    \"creditLimitAmount\": 20000.00,\n    \"minPaymentCalculation\": {\n      \"percentageOfPrincipal\": 0.03,\n      \"minAmount\": 25.00,\n      \"includeOverLimitAmount\": true\n    }\n  }\n}\n","lang":"http"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"step-4-activate-the-draw","__idx":5},"children":["Step 4: Activate the Draw"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Activate the draw to enable purchases:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"http","header":{"controls":{"copy":{}}},"source":"POST /api/people/{personId}/loans/{loanId}/draws/{drawId}/activate\nX-API-KEY: <YOUR-API-KEY>\nContent-Type: application/json\n\n{\n  \"sync\": false\n}\n","lang":"http"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"step-5-add-a-purchase","__idx":6},"children":["Step 5: Add a Purchase"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Finally, let's add a $100 purchase to the draw:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"http","header":{"controls":{"copy":{}}},"source":"POST /api/people/{personId}/loans/{loanId}/draws/{drawId}/purchases\nX-API-KEY: <YOUR-API-KEY>\nContent-Type: application/json\n\n{\n  \"amount\": 100.00,\n  \"type\": \"regular\",\n  \"status\": \"settled\",\n  \"purchaseDate\": \"2024-01-10\",\n  \"purchaseDetails\": {\n    \"description\": \"Sample Purchase\",\n    \"pointOfSaleType\": \"online\",\n    \"merchantName\": \"Example Merchant\",\n    \"merchantId\": \"MERCH123\",\n    \"categoryId\": \"shopping\"\n  }\n}\n","lang":"http"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"next-steps","__idx":7},"children":["Next steps"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/loan-lifecycle/loan-replay"},"children":["Loan Replay"]}]}," — How retroactive changes to a loan are handled."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/loan-lifecycle/fees/about-fees"},"children":["Fees"]}]}," — Configure origination, late, and other fees on the loan."]}]}]},"headings":[{"value":"Line of Credit Management","id":"line-of-credit-management","depth":1},{"value":"Prerequisites","id":"prerequisites","depth":2},{"value":"Step 1: Create a Line of Credit","id":"step-1-create-a-line-of-credit","depth":2},{"value":"Step 2: Activate the Line of Credit","id":"step-2-activate-the-line-of-credit","depth":2},{"value":"Step 3: Create a Draw","id":"step-3-create-a-draw","depth":2},{"value":"Step 4: Activate the Draw","id":"step-4-activate-the-draw","depth":2},{"value":"Step 5: Add a Purchase","id":"step-5-add-a-purchase","depth":2},{"value":"Next steps","id":"next-steps","depth":2}],"frontmatter":{"seo":{"title":"Line of Credit Management"}},"lastModified":"2026-05-01T14:33:55.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/loan-lifecycle/create-loc","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}