# Collections Overview Source: https://docs.finosu.com/api-reference/collections/overview Service active loans: automated outreach, payment events, and servicing lifecycle. Use the collections API to service **active loans**: create and update loans, manage ACH authorizations, report payment events, and stop servicing when a loan reaches a final state. Collections works alongside origination but has its own lifecycle and its own endpoints; see [Origination Overview](/api-reference/origination/overview) for pre-funding application outreach. ## Collections vs. origination * **Origination** handles applications before funding. Enroll with [Enroll an Application](/api-reference/endpoint/customers/origination-enrollment) and finish with [Close Origination](/api-reference/origination/close) (`FUNDED`, `WITHDRAWN`, or `REJECTED`). * **Collections** handles loans after funding. Create them with the Loans API and finish with [Cancel Loan Servicing](/api-reference/endpoint/loans/cancel-servicing) using a [stop-servicing reason](/api-reference/endpoint/loans/stop-servicing-reasons) such as `PAID_OFF` or `BANKRUPTCY`. * **Payment events are collections-only.** ACH returns and settlement confirms apply to serviced loans; origination applications have no payments. [Customers](/api-reference/endpoint/customers/all), calls, texts, emails, and scheduled calls are shared Core Resources used by both products. ## Start here 1. Obtain an API key for the company you will send records to. The key determines the company; a request cannot select another company by changing a body field. 2. Choose the [collections task type](/api-reference/endpoint/collections/task-types) for your setup. 3. Create loans individually with [Create Loan](/api-reference/endpoint/loans/create) or in bulk with [Batch Create Loans](/api-reference/endpoint/loans/batch), and keep them current with [Update Loan](/api-reference/endpoint/loans/update). 4. Report payment events as they happen: [Submit ACH Return](/api-reference/endpoint/ach-returns/create) for returned payments and [Confirm ACH Settlement](/api-reference/endpoint/ach-confirms/create) for settled ones (each also supports batch). 5. When a loan reaches a final state, stop outreach with [Cancel Loan Servicing](/api-reference/endpoint/loans/cancel-servicing) for a single loan or [Cancel Customer Servicing](/api-reference/endpoint/customers/cancel-servicing) for every loan a customer owns. ## Manage ACH authorization ACH authorization revocation is available for Collections only. The authorization belongs to a specific bank-account payment method, so identify that method before submitting a revocation. 1. [List Customer Payment Methods](/api-reference/endpoint/customers/payment-methods) using the customer's external reference and your company API key. 2. Identify the intended `BANK_ACCOUNT` entry and retain its Finosu `paymentMethodId`. Last-four digits are not unique; do not choose the first or default method merely because it is listed. Method status does not establish ACH authorization. 3. [Revoke ACH Authorization](/api-reference/endpoint/customers/update-ach-authorization) for that exact customer and method with `revokeAuthorization: true`. Revocation applies to one bank-account payment method. If the intent is to revoke all of the customer's bank authorizations, paginate the full list and submit a separate request for each `BANK_ACCOUNT` ID. Inspect every response; these requests are not an atomic bulk action. Repeating `true` is idempotent. Sending `false` cannot restore revoked consent; a new customer authorization must be captured through the normal authorization workflow. See the endpoint for its full request and error contract. # Confirm ACH Settlements (Batch) Source: https://docs.finosu.com/api-reference/endpoint/ach-confirms/batch POST /ach-confirms/batch Process a batch independently and inspect each result; HTTP 200 does not mean every item succeeded. ## Request field names Use camelCase request fields. Legacy snake_case names remain accepted, including within batches. If both names for a field are supplied, the camelCase value takes precedence. Response field names remain unchanged. ## Overview This batch endpoint allows you to submit multiple ACH settlement confirmations from external loan management systems (LMS) in a single API request for improved efficiency. Each confirmation in the batch is processed independently with detailed individual results, making it ideal for processing daily ACH settlement files from banks or bulk syncing from your LMS system. ## ID Mapping The endpoint uses the same reference ID mapping as the [single ACH confirm endpoint](./create.mdx). Date/time fields accept ISO 8601 timestamps, for example `2026-09-30T12:00:00Z`. Optional date/time fields may be omitted or null. ## Request Body Format The batch endpoint accepts an array of ACH confirm records wrapped in a `confirms` field: ```json theme={null} { "confirms": [ { "customerId": "CUST123", "loanId": "LOAN456", "paymentId": "PMT789", "settlementDate": "2024-01-17T09:00:00Z" }, { "customerId": "CUST124", "loanId": "LOAN457", "paymentId": "PMT790", "settlementDate": "2024-01-17T09:00:00Z" } ] } ``` ### Individual Confirm Schema Each object in the `confirms` array follows the same schema as the [single ACH confirm endpoint](./create.mdx): **Identifiers (Required):** * `customerId` - Customer reference ID from your LMS * `loanId` - Loan reference ID from your LMS * `paymentId` - The processor transaction ID for the ACH payment **Settlement Fields:** * `settlementDate` - Date the ACH payment settled ## Response Format The batch endpoint returns detailed results for each ACH confirmation processed: ```json theme={null} { "success": true, "total_processed": 2, "successful": 2, "failed": 0, "results": [ { "success": true, "payment_id": "PMT789", "message": "ACH payment successfully confirmed as settled" }, { "success": true, "payment_id": "PMT790", "message": "ACH payment successfully confirmed as settled" } ] } ``` ### Response Fields * **success** - `true` if ALL confirmations were processed successfully, `false` if any failed * **total_processed** - Total number of confirmations in the batch * **successful** - Number of successfully processed confirmations * **failed** - Number of failed confirmations * **results** - Array of individual results for each confirmation * **success** - Whether this specific confirmation was processed successfully * **payment_id** - The payment ID from the request for easy matching * **message** - Success or error message for this specific confirmation ## Partial Success Handling The batch endpoint uses **partial success** handling to ensure maximum processing: * **Individual failures don't stop processing** - If one confirmation fails, the remaining confirmations are still processed * **Detailed error messages** - Each failed confirmation includes its specific error message * **Transaction isolation** - Each confirmation is processed in its own transaction to prevent one failure from affecting others * **Overall success flag** - The top-level `success` field is `true` only if all confirmations succeeded ### Example: Partial Failure Response ```json theme={null} { "success": false, "total_processed": 3, "successful": 2, "failed": 1, "results": [ { "success": true, "payment_id": "PMT789", "message": "ACH payment successfully confirmed as settled" }, { "success": false, "payment_id": "PMT790", "message": "404: Customer with reference_id 'CUST999' not found" }, { "success": true, "payment_id": "PMT791", "message": "ACH payment successfully confirmed as settled" } ] } ``` ## What the Endpoint Does For each ACH confirmation in the batch, Finosu: 1. **Locates the records** using the external reference IDs 2. **Updates AchPayment** with: * Status set to COMPLETED * Settlement date (if provided) 3. **Updates PaymentTransaction** with: * Status set to SUCCESSFUL ## When to Use Batch vs Single **Use the batch endpoint when:** * Processing daily ACH settlement files from your bank * Syncing multiple confirmations from your LMS system * You have more than 5-10 confirmations to submit * You want to minimize API calls for efficiency **Use the [single endpoint](./create.mdx) when:** * Processing real-time individual confirmations * You only have 1-2 confirmations to submit * You need simpler error handling * Testing or debugging individual confirmations ## Error Handling A valid, authenticated batch returns HTTP status 200 OK, with detailed success/failure information in the response body for each individual confirmation. **Individual confirmation errors may include:** * **422 UNPROCESSABLE CONTENT** - ACH payment does not belong to specified loan * **404 NOT FOUND** - Customer, loan, or payment not found with provided IDs * **409 CONFLICT** - Multiple ACH payments found with the same processor transaction ID * **500 INTERNAL SERVER ERROR** - Server error during processing Check the `results` array in the response to see which confirmations succeeded and which failed. ## Authentication Authentication via **X-API-Key header**: * API key is company-scoped * Must be obtained from Finosu * Same authentication as single ACH confirm endpoint ## Example Usage This endpoint is typically used for: * **Daily bank reconciliation** - Process ACH settlement files from your bank * **Bulk LMS sync** - Sync multiple settlement confirmations from your loan management system * **Scheduled jobs** - Automated daily/weekly settlement confirmation workflows Authentication failures return `401`; invalid request structure returns `422`. A `200` batch response does not mean every item succeeded; inspect `success`, `successful`, `failed`, and each entry in `results`. Item failures are reported in the response body rather than as the HTTP status of the entire batch. A validation failure for an individual payment is reported with a `422:` message prefix in its result; the batch HTTP status remains `200`. Unexpected processing failures use a `Failed to process ACH confirm:` message prefix without a status-code prefix. Inspect each item’s `success` value; do not rely on numeric message prefixes alone. # Confirm ACH Settlement Source: https://docs.finosu.com/api-reference/endpoint/ach-confirms/create POST /ach-confirms Confirm settlement of an existing ACH payment. ## Request field names Use camelCase request fields. Legacy snake_case names remain accepted, including within batches. If both names for a field are supplied, the camelCase value takes precedence. Response field names remain unchanged. ## Overview This endpoint receives ACH settlement confirmation from external loan management systems (LMS) and marks the corresponding ACH payment as COMPLETED and payment transaction as SUCCESSFUL. **Note:** For submitting multiple ACH confirmations in a single request, use the [batch endpoint](./batch.mdx). ## ID Mapping The endpoint uses reference IDs to locate records: * **customerId** - Your customer reference ID * **loanId** - Your loan reference ID * **paymentId** - The payment processor transaction ID Date/time fields accept ISO 8601 timestamps, for example `2026-09-30T12:00:00Z`. Optional date/time fields may be omitted or null. ## Request Body Fields ### Identifiers (Required) * **customerId** - Customer reference ID from your LMS * **loanId** - Loan reference ID from your LMS * **paymentId** - The processor transaction ID for the ACH payment ### Settlement Fields * **settlementDate** - Date the ACH payment settled ## What the Endpoint Does When you submit ACH settlement confirmation, Finosu: 1. **Locates the records** using the external reference IDs 2. **Updates AchPayment** with: * Status set to COMPLETED * Settlement date (if provided) 3. **Updates PaymentTransaction** with: * Status set to SUCCESSFUL ## Response The endpoint returns a success response: * **success** - Boolean indicating success * **message** - Success or error message ## Example Usage This endpoint is typically called by external LMS systems when they confirm that an ACH payment has successfully settled at the bank. ## Error Handling The endpoint will return appropriate HTTP status codes: * **200 OK** - Successfully confirmed ACH settlement * **422 UNPROCESSABLE CONTENT** - ACH payment does not belong to specified loan * **404 NOT FOUND** - Customer, loan, or payment not found with provided IDs * **409 CONFLICT** - Multiple ACH payments found with the same processor transaction ID * **500 INTERNAL SERVER ERROR** - Server error during processing Authentication failures return `401`; invalid request structure returns `422`. # Submit ACH Returns (Batch) Source: https://docs.finosu.com/api-reference/endpoint/ach-returns/batch POST /ach-returns/batch Process a batch independently and inspect each result; HTTP 200 does not mean every item succeeded. ## Request field names Use camelCase request fields. Legacy snake_case names remain accepted, including within batches. If both names for a field are supplied, the camelCase value takes precedence. Response field names remain unchanged. ## Overview This batch endpoint allows you to submit multiple ACH return records from external loan management systems (LMS) in a single API request for improved efficiency. Each return in the batch is processed independently with detailed individual results, making it ideal for processing daily ACH return files from banks or bulk syncing from your LMS system. ## ID Mapping The endpoint uses the same reference ID mapping as the single ACH return endpoint: * **customerId** - Your customer reference ID * **loanId** - Your loan reference ID * **paymentId** - Maps to the ACH payment’s processor transaction ID Date/time fields accept ISO 8601 timestamps, for example `2026-09-30T12:00:00Z`. Optional date/time fields may be omitted or null. ## Request Body Format The batch endpoint accepts an array of ACH return records wrapped in a `returns` field: ```json theme={null} { "returns": [ { "customerId": "CUST123", "loanId": "LOAN456", "paymentId": "PMT789", "paymentDate": "2024-01-15T10:00:00Z", "paymentAmount": "100.00", "achReturnCode": "R01", "achReturnDate": "2024-01-18T10:00:00Z", "achReturnReason": "Insufficient Funds" }, { "customerId": "CUST124", "loanId": "LOAN457", "paymentId": "PMT790", "paymentDate": "2024-01-15T10:00:00Z", "paymentAmount": "150.00", "achReturnCode": "R03", "achReturnDate": "2024-01-18T10:00:00Z", "achReturnReason": "No Account/Unable to Locate Account" } ] } ``` ### Individual Return Schema Each object in the `returns` array follows the same schema as the [single ACH return endpoint](./create.mdx): **Identifiers (Required):** * `customerId` - Customer reference ID from your LMS * `loanId` - Loan reference ID from your LMS * `paymentId` - The processor transaction ID for the ACH payment **Payment Transaction Fields:** * `systemSource` - Source system identifier * `paymentDate` - Date payment was made * `paymentAmount` - Payment amount in dollars, as a JSON number or decimal string * `paymentType` - Type of payment * `paymentReversed` - Boolean indicating if payment was reversed * `paymentReverseDate` - Date payment was reversed * `paymentReverseReasonCode` - Code indicating reversal reason * `paymentReverseComments` - Additional comments **ACH Transaction Fields:** * `achSubmittedDate` - Date ACH was submitted * `achSettlementDate` - Date ACH settled * `achStatus` - External ACH status; numeric values and strings are accepted, with integration-specific mapping **ACH Return Information:** * `achReturnCode` - ACH return code, such as R01 * `achReturnDate` - Date of ACH return * `achReturnReason` - Human-readable return reason **ACH Correction (NOC):** * `achCorrectionCode` - ACH correction code * `achCorrectedAbaNumber` - Corrected ABA routing number * `achCorrectedAccountNumber` - Corrected account number * `achCorrectionDate` - Date correction was received **Debit Card Fields:** * `debitStatus` - Debit card transaction status * `debitDeclineReason` - Reason for debit card decline **Combined Fields:** * `overallReturnCode` - Combined return code from ACH or debit ## Response Format The batch endpoint returns detailed results for each ACH return processed: ```json theme={null} { "success": true, "total_processed": 2, "successful": 2, "failed": 0, "results": [ { "success": true, "payment_id": "PMT789", "message": "ACH return information successfully recorded", "payment_method_disabled": null }, { "success": true, "payment_id": "PMT790", "message": "ACH return information successfully recorded", "payment_method_disabled": null } ] } ``` ### Response Fields * **success** - `true` if ALL returns were processed successfully, `false` if any failed * **total_processed** - Total number of returns in the batch * **successful** - Number of successfully processed returns * **failed** - Number of failed returns * **results** - Array of individual results for each return * **success** - Whether this specific return was processed successfully * **payment_id** - The payment ID from the request for easy matching * **message** - Success or error message for this specific return ## Partial Success Handling The batch endpoint uses **partial success** handling to ensure maximum processing: * **Individual failures don't stop processing** - If one return fails, the remaining returns are still processed * **Detailed error messages** - Each failed return includes its specific error message * **Transaction isolation** - Each return is processed in its own transaction to prevent one failure from affecting others * **Overall success flag** - The top-level `success` field is `true` only if all returns succeeded ### Example: Partial Failure Response ```json theme={null} { "success": false, "total_processed": 3, "successful": 2, "failed": 1, "results": [ { "success": true, "payment_id": "PMT789", "message": "ACH return information successfully recorded", "payment_method_disabled": null }, { "success": false, "payment_id": "PMT790", "message": "404: Customer with reference_id 'CUST999' not found", "payment_method_disabled": null }, { "success": true, "payment_id": "PMT791", "message": "ACH return information successfully recorded", "payment_method_disabled": null } ] } ``` `payment_method_disabled` in the response is a boolean or null when not applicable. ## What the Endpoint Does For each ACH return in the batch, Finosu: 1. **Locates the records** using the external reference IDs 2. **Updates PaymentTransaction** with: * Payment reversal information (if applicable) * Status change to RETURNED if ACH return exists 3. **Updates AchPayment** (if exists) with: * ACH transaction dates * Status mapping from your external status 4. **Creates ACHReturnHistory** when return information is present, with: * ACH return code and reason * ACH correction/NOC data * Risk assessment tracking * Action taken metadata 5. **Triggers NSF revocation check** (for R01/R09 returns): * Automatically revokes payment methods after 2 consecutive NSF returns ## When to Use Batch vs Single **Use the batch endpoint when:** * Processing daily ACH return files from your bank * Syncing multiple returns from your LMS system * You have more than 5-10 returns to submit * You want to minimize API calls for efficiency **Use the [single endpoint](./create.mdx) when:** * Processing real-time individual returns * You only have 1-2 returns to submit * You need simpler error handling * Testing or debugging individual returns ## Error Handling A valid, authenticated batch returns HTTP status 200 OK, with detailed success/failure information in the response body for each individual return. **Individual return errors may include:** * **404 NOT FOUND** - Customer, loan, or payment not found with provided IDs * **422 UNPROCESSABLE CONTENT** - ACH payment does not belong to the specified loan, or has no associated payment method * **500 INTERNAL SERVER ERROR** - Server error during processing Check the `results` array in the response to see which returns succeeded and which failed. ## Authentication Authentication via **X-API-Key header**: * API key is company-scoped * Must be obtained from Finosu * Same authentication as single ACH return endpoint ## Example Usage This endpoint is typically used for: * **Daily bank reconciliation** - Process ACH return files from your bank * **Bulk LMS sync** - Sync multiple return records from your loan management system * **Scheduled jobs** - Automated daily/weekly return processing workflows Authentication failures return `401`; invalid request structure returns `422`. A `200` batch response does not mean every item succeeded; inspect `success`, `successful`, `failed`, and each entry in `results`. Item failures are reported in the response body rather than as the HTTP status of the entire batch. An active return-note delivery can cause an item to fail with a `503` message while the batch response remains `200`. Retry the failed item later. A validation failure for an individual payment is reported with a `422:` message prefix in its result; the batch HTTP status remains `200`. Unexpected processing failures use a `Failed to process ACH return:` message prefix without a status-code prefix. Inspect each item’s `success` value; do not rely on numeric message prefixes alone. # Submit ACH Return Source: https://docs.finosu.com/api-reference/endpoint/ach-returns/create POST /ach-returns Receive ACH return information and update the matching payment records. ## Request field names Use camelCase request fields. Legacy snake_case names remain accepted, including within batches. If both names for a field are supplied, the camelCase value takes precedence. Response field names remain unchanged. ## Overview This endpoint receives ACH return information from external loan management systems (LMS) and updates the corresponding payment records in Finosu. It handles payment reversals, ACH returns, ACH corrections (NOC), and debit card declines. **Note:** For submitting multiple ACH returns in a single request, use the [batch endpoint](./batch.mdx). ## ID Mapping The endpoint uses reference IDs to locate records: * **customerId** - Your customer reference ID * **loanId** - Your loan reference ID * **paymentId** - The payment processor transaction ID Date/time fields accept ISO 8601 timestamps, for example `2026-09-30T12:00:00Z`. Optional date/time fields may be omitted or null. ## Request Body Fields ### Identifiers (Required) * **customerId** - Customer reference ID from your LMS * **loanId** - Loan reference ID from your LMS * **paymentId** - The processor transaction ID for the ACH payment ### Payment Transaction Fields * **systemSource** - Source system identifier (e.g., "ExternalLMS") * **paymentDate** - Date payment was made * **paymentAmount** - Payment amount in dollars, as a JSON number or decimal string * **paymentType** - Type of payment * **paymentReversed** - Boolean indicating if payment was reversed * **paymentReverseDate** - Date payment was reversed * **paymentReverseReasonCode** - Code indicating reversal reason * **paymentReverseComments** - Additional comments about the reversal ### ACH Transaction Fields * **achSubmittedDate** - Date ACH transaction was submitted * **achSettlementDate** - Date ACH transaction settled * **achStatus** - External ACH status; numeric values and strings are accepted, with integration-specific mapping ### ACH Return Information * **achReturnCode** - ACH return code, such as R01 * **achReturnDate** - Date of ACH return * **achReturnReason** - Human-readable return reason ### ACH Correction (NOC - Notification of Change) * **achCorrectionCode** - ACH correction code from NOC * **achCorrectedAbaNumber** - Corrected ABA routing number * **achCorrectedAccountNumber** - Corrected account number * **achCorrectionDate** - Date correction was received ### Debit Card Fields * **debitStatus** - Debit card transaction status * **debitDeclineReason** - Reason for debit card decline ### Combined Fields * **overallReturnCode** - Combined return code from ACH or debit `payment_method_disabled` in the response is a boolean or null when not applicable. ## What the Endpoint Does When you submit ACH return information, Finosu: 1. **Locates the records** using the external reference IDs 2. **Updates PaymentTransaction** with: * Payment reversal information (if applicable) * Status change to RETURNED if ACH return exists 3. **Updates AchPayment** (if exists) with: * ACH transaction dates * Status mapping from your external status 4. **Creates ACHReturnHistory** when return information is present, with: * ACH return code and reason * ACH correction/NOC data * Risk assessment tracking * Action taken metadata ## Response The endpoint returns a success response: * **success** - Boolean indicating success * **message** - Success or error message ## Example Usage This endpoint is typically called by external LMS systems when they detect ACH returns, payment reversals, or receive NOC (Notification of Change) records from banks. ## Error Handling The endpoint will return appropriate HTTP status codes: * **200 OK** - Successfully processed ACH return information * **409 CONFLICT** - Multiple matching ACH payments * **404 NOT FOUND** - Customer, loan, or payment not found with provided IDs * **422 UNPROCESSABLE CONTENT** - ACH payment does not belong to the specified loan, or has no associated payment method * **500 INTERNAL SERVER ERROR** - Server error during processing Authentication failures return `401`; invalid request structure returns `422`. A `503 Service Unavailable` response means return-note delivery is already in progress. Retry the request later. # List Daily Billing Costs Source: https://docs.finosu.com/api-reference/endpoint/billing/daily-costs GET /billing/daily-costs Retrieve each loan’s charges for one day, for reporting cost per loan alongside your own loan data. Use `GET /billing/daily-costs` to retrieve one row per loan that had billable activity on a given day: the same charges as the Billing Summary in the client dashboard, broken out by day instead of by month. Loans with no calls, texts, emails, or payments that day are omitted. The response is scoped to the company associated with your `X-API-Key`. A key belongs to exactly one company, so a lender with several brands makes one request per brand, using that brand's key. Only first-party loans on usage billing are included; a company that is not billed per use receives `400`. `loanId` is the loan identifier you supplied at enrollment or in your file upload, so rows join directly to your loan records. `customerId` is your customer reference, or the Finosu customer UUID for a customer boarded without one. A typical use is to sum a brand's rows over a week and divide by that week's transfers or funded loans. ## First request ```bash theme={null} curl --fail-with-body --get 'https://api.finosu.com/billing/daily-costs' \ --header "X-API-Key: $FINOSU_API_KEY" \ --data-urlencode 'date=2026-10-27' ``` ```json theme={null} { "date": "2026-10-27", "currency": "USD", "rows": [ { "loanId": "5800001", "customerId": "6600001", "applicationStatus": "PENDING", "callCount": "3.00", "callMinutes": "4.00", "callSeconds": "179.00", "telephonyCost": "0.1200", "virtualAgentCost": "0.3282", "smsCount": "1.00", "smsSegments": "1.00", "smsCost": "0.0090", "emailCount": "1.00", "emailCost": "0.0010", "portalCollected": "0.00", "externalCollected": "0.00", "paymentProcessingFee": "0.0000", "totalCost": "0.4582" }, { "loanId": "5800002", "customerId": "6600002", "applicationStatus": "FUNDED", "callCount": "1.50", "callMinutes": "2.50", "callSeconds": "125.00", "telephonyCost": "0.0750", "virtualAgentCost": "0.2292", "smsCount": "0.00", "smsSegments": "0.00", "smsCost": "0.0000", "emailCount": "0.00", "emailCost": "0.0000", "portalCollected": "150.00", "externalCollected": "0.00", "paymentProcessingFee": "6.0000", "totalCost": "6.3042" }, { "loanId": "5800003", "customerId": "6600002", "applicationStatus": "PENDING", "callCount": "0.50", "callMinutes": "0.50", "callSeconds": "30.00", "telephonyCost": "0.0150", "virtualAgentCost": "0.0550", "smsCount": "0.00", "smsSegments": "0.00", "smsCost": "0.0000", "emailCount": "0.00", "emailCost": "0.0000", "portalCollected": "0.00", "externalCollected": "0.00", "paymentProcessingFee": "0.0000", "totalCost": "0.0700" } ], "nextCursor": null } ``` In this example the first loan had three calls (47 seconds, 132 seconds, and one that did not connect), one text, and one email. The second and third loans are two open applications from the same customer. That customer's 95-second scheduled call was placed for the second loan, so it carries the whole call. The customer also called in for 60 seconds, which names no loan, so that call is shared evenly: half on each application. The second loan also had a `$150.00` payment collected through Finosu. All numeric values are decimal strings, so you can add them without floating-point error. Each row is rounded on its own: counts, minutes, seconds, and collected amounts to 2 decimal places, charges to 4. A shared communication can therefore add up to slightly more or less than its whole; one call shared across three loans shows `callCount` `0.33` on each row, `0.99` in total. `totalCost` is exactly the sum of the row's five charges. ## How charges are calculated Every call minute carries two charges: telephony and virtual agent. Rates are the ones in your Finosu agreement and are not repeated in the response. | Charge | Calculation | | - | - | | Telephony | Each call with a duration is rounded **up** to the next whole minute, then priced per minute. Calls that did not connect have no duration and no telephony charge, but are counted in `callCount`. | | Virtual agent | Exact call seconds, priced per minute at the company's tiered virtual-agent rate. See [Daily rows and the monthly bill](#daily-rows-and-the-monthly-bill). | | SMS | Sent outbound messages only, priced per segment, plus the carrier's per-message fee passed through at cost. | | Email | Sent emails, priced per email. | | Payment processing | A percentage of payments collected through Finosu (`portalCollected`). Payments recorded as collected outside Finosu (`externalCollected`) are reported but not charged. | ## Customers with more than one loan Each scheduled call, text, and email is charged to the loan it was scheduled for, as long as that loan belongs to the same customer and is open on the day. When a customer has more than one loan open, for example two applications, each loan carries only its own outreach. Any other communication, such as an inbound call, one sent outside a loan's schedule, or one scheduled for a loan that has since closed, is shared evenly across the customer's loans open that day. That is the only reason counts such as `callCount` can be fractional. Payments are recorded against a specific loan and are never shared. Sharing never changes totals beyond that per-row rounding: the sum of a brand's rows for a day is the brand's full cost for that day, to within a fraction of a cent per shared communication. ## Daily rows and the monthly bill Summing a month of daily rows reproduces the month's Billing Summary charges, within the limits below. * **Telephony, SMS, email, and payment processing** are priced per item, so daily amounts add up to the monthly amount. * **Virtual agent** pricing is tiered on the company's cumulative minutes in the month. Each day is priced at the rate that applied to the minutes used that day, so a day's charge never changes when a later day crosses into a lower tier, and a month of days adds up to the company's monthly tiered total. Within a month that crosses a tier, the Billing Summary applies the month's average rate to every loan, so an individual loan's month can differ slightly from the sum of its days. * **Communications that name no loan:** a day shares them across the loans open that day, while the monthly Billing Summary shares them across the loans open at any point in the month. If such a customer gains or loses a loan mid-month, that customer's daily rows can differ from the monthly figure by a few cents. * **Rounding:** each row's charges are rounded to 4 decimal places, and the monthly Billing Summary rounds once per loan. A month of daily rows can differ from the monthly figure by up to `$0.00005` per row for each charge. ## When a day is final * **Only completed days can be requested.** Today or a future date returns `422`. * **Each day is computed overnight.** Day `D` is computed at about 05:00 America/New_York on `D + 1` and then served from that result, so request it after 06:00 America/New_York. A day requested before it has been computed is priced on request, which can take considerably longer. * **The 8 most recent days are recomputed every night.** A day keeps picking up late changes for 8 days after it ends: a bank payment that is later returned no longer counts as collected, which lowers `portalCollected` and `paymentProcessingFee` on the day it was originally collected, and carrier fees that arrive late are added. On each daily pull, re-request the previous 7 days and replace your stored rows for those days. * **After that, a day is final.** A change that arrives later, such as a payment the borrower reports as unauthorized weeks after it was made, is not reflected in the day. * **`applicationStatus` is current, not historical.** It is the loan's status when you make the request, so re-requesting an old day can show a loan that has since funded as `FUNDED`. ## Retrieve every page Rows are ordered by `loanId`, then by Finosu's internal loan identifier to break ties. `limit` defaults to 1000 and accepts 1–1000. When `nextCursor` contains a string, pass that exact value as the next request's `cursor` with the same `date`; a `null` cursor means the day is complete. Treat cursors as opaque and URL-encode them. A day with no activity returns `{"date": "...", "currency": "USD", "rows": [], "nextCursor": null}`. The endpoint allows 60 requests per 60-second window per company, shared across its API keys. If the quota is exhausted (`429`) or its enforcement is temporarily unavailable (`503`), wait for the `Retry-After` interval before retrying the same page. Successful responses are sent with `Cache-Control: no-store`. ```python theme={null} import os import requests def daily_costs(day: str): params = {"date": day} while True: response = requests.get( "https://api.finosu.com/billing/daily-costs", params=params, headers={"X-API-Key": os.environ["FINOSU_API_KEY"]}, timeout=60, ) response.raise_for_status() body = response.json() yield from body["rows"] if body["nextCursor"] is None: return params["cursor"] = body["nextCursor"] ``` ## Loans and loan applications > [!NOTE] > > Typed billing responses require Finosu to activate the feature. Contact your > Finosu account team before adding `record_type` to your integration to confirm > availability. Supplying the parameter does not activate it. Until activated, > requests with `record_type` return HTTP 503 without running classification. > Omitting `record_type` preserves the existing response and pagination behavior. To opt into explicit record identity, add `record_type`: | Value | Rows returned | | - | - | | `all` | Both record types, one row per existing billed account | | `loans` | Accounts representing loans | | `loan_applications` | Accounts with an exact, unambiguous application binding | Omitting `record_type` preserves the existing response and cursors. With any of these values, each row additionally contains: * `recordType`: `loan` or `loan_application`. * `recordId`: the Finosu UUID of that loan or application. * `serviceType`: `servicing`, `origination`, `mixed`, or `unclassified`, based on the billed activity rather than the account's current status. `mixed` means that more than one purpose has a nonzero charge. * `purposeBreakdown`: three entries (`origination`, `servicing`, `unclassified`) containing allocated counts, units and monetary fields. Their decimal values are strings, with snake_case field names such as `telephony_cost` and `total_cost`. Each field sums exactly to its original row value. Mixed is a label, not a fourth charge bucket. * `loanApplicationId`: the application's external reference, or `null` if none was recorded. Use `recordId` for its canonical identity. * `loanApplicationStatus`: the application's current status, or `null` for loans or applications with no recorded status. `loanId` and `applicationStatus` retain their existing meanings: the billed account's external loan reference and current loan status. They are not silently replaced with application values. An application's compatibility account is returned once as `loan_application`; it is not also returned by `loans`. A separately linked funded result loan remains a `loan`; that identity does not classify the purpose of its charges. An account without an application binding remains a `loan`. A pending status alone proves neither application identity nor service purpose. Applications without an existing billable account are not yet included. Selecting a record type never changes pricing, allocation, rounding, or the stored monetary values. Calls with purpose evidence use their existing billed minutes/duration and loan allocation. SMS, email, calls without schedule evidence, and payment fees are explicitly Unclassified. Stored days without captured purpose are entirely Unclassified; current application links never retroactively classify them. Previously status-labeled historical origination charges therefore appear as Unclassified. Original charges remain unchanged. In Billing Summary purpose filters, a mixed account appears in each purpose where it has spend, showing only that purpose's charges. Account counts overlap, while the three purpose amounts add up to All. `record_type` in this endpoint still filters entity identity, not purpose, and does not split or duplicate rows. Continue every page with the same `date` **and `record_type`**. A cursor from another filter or from the legacy response returns `422`. Sorting remains by the billed account's loan reference and internal loan identifier. Identity and status are current even for a stored day; re-read all pages after an identity correction. If multiple applications claim an account, or one captured application claims multiple accounts without an explicit binding, a typed page containing the affected record returns `409` for review rather than selecting an arbitrary identity. Earlier pages can succeed. `all` and `loan_applications` can encounter this error; `loans` excludes these application accounts and does not return 409 for their ambiguity. The legacy feed remains available. # List Call Flags Source: https://docs.finosu.com/api-reference/endpoint/calls/flags GET /calls/flags Returns the flag catalog for the requested task type, served from the flag registry — the same source call results use — so every flag that can appear in your call results is discoverable here. Scoped to the authenticated company, ordered alphabetically by name, no pagination. This lookup does not enable workflows, configure webhook delivery, or cancel servicing. Retrieve the flag catalog for a task type. Use the returned names and descriptions to populate your integration's event configuration without hardcoding flag codes on your side. ## Request ```bash theme={null} curl --request GET 'https://api.finosu.com/calls/flags?taskType=PendingLoanNewLead' \ --header 'X-API-Key: YOUR_API_KEY' ``` `taskType` is required and case-sensitive: | Task type | Workflow | | - | - | | `PendingLoanNewLead` | Origination for new applications | | `PendingLoanReturning` | Origination for returning borrowers | | `Collections` | Collections | These are the values published by [List Origination Task Types](/api-reference/endpoint/task-types/list) and [List Collections Task Types](/api-reference/endpoint/collections/task-types). The catalog is scoped to the authenticated company: most flags are shared, and flags provisioned for specific companies appear only for those companies. It does not indicate whether a workflow is enabled for your account. ## Response HTTP `200` returns an array of `{name, description}` objects, ordered alphabetically by `name`, with no pagination. `name` is the case-sensitive flag code to use in configuration; `description` explains its meaning for your UI. The live response is the authoritative catalog for each task type — the OpenAPI examples are illustrative, not exhaustive. Do not copy flag codes from documentation into your configuration; load them from this endpoint. The catalog is served from the same flag registry the call pipeline uses, so the flags that can appear in your call results for a task type are discoverable here. Use codes as identifiers and display descriptions as text. Retrieve the catalog when loading configuration; it does not need to be fetched after every call. Successful responses use `Cache-Control: private, max-age=3600`: private clients may reuse the response for one hour, while shared caches must not store it. Cache each `taskType` URL separately and refresh after expiry. Clients that do not implement HTTP caching must explicitly implement reuse; the header alone does not prevent requests. Catalog updates can take up to one hour to appear in a fresh client cache. Requests reaching the API still require a valid API key. ## Configuring actions Your integration decides which action to associate with each returned flag. For cancellation actions, retrieve the available reasons from [List Stop Servicing Reasons](/api-reference/endpoint/loans/stop-servicing-reasons). A flag code and a stop-servicing reason are separate values; do not assume their names match or that every flag requires cancellation. This endpoint provides definitions only. It does not deliver events, configure webhook URLs or credentials, or cancel servicing. Coordinate call-result delivery with your existing integration setup. ## Errors | Status | Meaning | | - | - | | `401` | API key is missing, empty, invalid, inactive, or deleted | | `422` | `taskType` is missing or is not one of the supported values | Authentication errors contain a string `detail`. Query validation errors contain an array of errors in `detail`, including each error's `loc`, `msg`, and `type`. # List Calls for a Customer Source: https://docs.finosu.com/api-reference/endpoint/calls/get GET /calls/customer/{customerId} Returns a customer's calls from the last 30 days, newest first. For older history use GET /calls. Returns one customer's recent calls as a plain JSON array, ordered newest first by creation time. An empty history returns `[]`. `customerId` is your external customer reference — the same identifier accepted by the `customerId` filter on [List All Calls](/api-reference/endpoint/calls/list) and by the [Scheduled Calls](/api-reference/endpoint/scheduled-calls/get) customer routes — not a Finosu call or customer UUID. An unknown reference, or a deleted customer, returns `404`. ## Scope The response covers only calls created in the last 30 days. Deleted calls and dial attempts that never progressed past the initial attempted state are excluded. For the full history, including older calls and unconnected attempts, use [List All Calls](/api-reference/endpoint/calls/list), which has no date cutoff. ## Pagination `limit` (1–1000) and `offset` (default `0`) slice the newest-first list; omit `limit` to return every call in the 30-day window. There is no cursor, so calls created between requests shift offsets. Values outside these ranges return `422`. ## Response fields Each item has the same shape as [Retrieve a Call](/api-reference/endpoint/calls/get-by-id): `customerId` echoes your external reference, falling back to the Finosu customer UUID when no reference is stored. `timestamp` is the call record's creation time in ISO 8601. `recordingUrl` is a fresh link valid for one hour, or `null` when the call has no recording or recording storage is temporarily unavailable. Unlike the bulk listing, recording links are included per item, so large pages respond more slowly. ## Errors | Status | Meaning | | - | - | | `401` | Missing, invalid, inactive, deleted, or empty API key. | | `404` | No customer with that reference in your company. | | `422` | `limit` or `offset` outside the allowed range. | | `500` | Unexpected internal error. | Errors use FastAPI's `detail` field: a string for `404`, an array of field errors for `422`. # Retrieve a Call Source: https://docs.finosu.com/api-reference/endpoint/calls/get-by-id GET /calls/{id} Returns a specific call in the authenticated company. recordingUrl is a fresh one-hour link or null if unavailable. Missing, deleted, or inaccessible calls return 404. Returns a call in the company associated with your API key. The `id` path parameter is the Finosu call UUID — the `id` returned by [List All Calls](/api-reference/endpoint/calls/list) — not a customer reference. Missing, deleted, or inaccessible calls return `404`. `recordingUrl` is a fresh link valid for one hour; it is `null` when the call has no recording or when recording storage is temporarily unavailable, so refetch the call to refresh or retry the link. ## Response fields `customerId` is your external customer reference, falling back to the Finosu customer UUID when no reference is stored. `timestamp` is the call record's creation time in ISO 8601. `toPhoneNumber`, `transcript`, `recordingUrl`, and `timestamp` can each be `null` when unavailable. ## Invalid Identifier An invalid call UUID returns HTTP `422 Unprocessable Content` with a string `detail`. A valid UUID with no accessible matching record returns `404`. # List All Calls Source: https://docs.finosu.com/api-reference/endpoint/calls/list GET /calls Retrieve your company’s call history with cursor pagination. Use `GET /calls` to retrieve call records across all customers in the company associated with your `X-API-Key`. No customer ID is required, and there is no default date cutoff. The response includes inbound calls, outbound calls, uploaded recordings, and unsuccessful attempts, including records still being processed. Test-customer calls are included. Deleted calls, calls belonging to deleted customers, and legacy calls without a creation timestamp are excluded. For calls made to borrowers, use `callType=OUTBOUND`. Future scheduled calls are available through the [Scheduled Calls API](/api-reference/endpoint/scheduled-calls/get). ## First request ```bash theme={null} curl --fail-with-body --get 'https://api.finosu.com/calls' \ --header "X-API-Key: $FINOSU_API_KEY" \ --data-urlencode 'limit=50' \ --data-urlencode 'callType=OUTBOUND' ``` ```json theme={null} { "calls": [ { "id": "c2790fa1-d9aa-4510-b80b-22e0c4b94a4e", "customerId": "customer-123", "fromPhoneNumber": "+15550000001", "toPhoneNumber": "+15550000002", "timestamp": "2026-09-01T12:00:00Z", "callType": "OUTBOUND", "status": "CALL_ENDED", "callResult": "CONNECTED", "duration": 60, "transcript": "Example conversation transcript." } ], "nextCursor": null } ``` `id` is the stable Finosu call UUID, also accepted by [Retrieve a Call](/api-reference/endpoint/calls/get-by-id). `customerId` is your external customer reference, falling back to the Finosu customer UUID when no reference is stored. `duration` is in seconds. `timestamp` is the call record's creation time. `status` describes its processing stage; `callResult` describes its outcome. Outcomes, duration, transcripts, and phone numbers can be `null` when unavailable. Fetch a call by ID for its recording link; recordings are omitted from the bulk listing so exports do not require a storage lookup for every call. Recording links expire after one hour and can be refreshed by fetching the call again. ## Retrieve every page Calls are ordered newest first by creation time, then call UUID to break ties. `limit` defaults to 50 and accepts 1–100. Pagination happens in the database. The endpoint allows 60 requests per 60-second window per company, shared across its API keys. If the quota is exhausted (`429`) or its enforcement is temporarily unavailable (`503`), wait for the `Retry-After` interval before retrying the same page. When `nextCursor` contains a string, pass that exact value as the next request's `cursor`. Keep the same API-key company and filters on every page; you may change `limit`. Treat cursors as opaque and URL-encode them. A `null` cursor means the export is complete. An empty result is `{"calls": [], "nextCursor": null}`. Successful responses are sent with `Cache-Control: no-store`; do not cache call history. This Python example writes one call per line to a private JSON Lines file without accumulating the entire history in memory or logging call data. It requires the `requests` package, a `FINOSU_API_KEY` environment variable, and `FINOSU_CALL_EXPORT_PATH` set to a new file in an access-controlled directory. On POSIX systems, the file is readable and writable only by its owner; on other systems, configure equivalent directory permissions. The example refuses to overwrite an existing file. Treat the export as sensitive data: it contains customer identifiers, phone numbers, and transcripts. The example retries `429` and `503` responses up to four times per page, respecting `Retry-After`. A failed request can leave a partial export. ```python theme={null} import json import os import requests from requests.adapters import HTTPAdapter from urllib3.util import Retry params = {"limit": 100} # Add "callType": "OUTBOUND" for outbound calls only. export_fd = os.open( os.environ["FINOSU_CALL_EXPORT_PATH"], os.O_WRONLY | os.O_CREAT | os.O_EXCL, 0o600, ) with os.fdopen(export_fd, "w", encoding="utf-8") as output, requests.Session() as session: session.headers["X-API-Key"] = os.environ["FINOSU_API_KEY"] session.mount( "https://api.finosu.com/", HTTPAdapter(max_retries=Retry( total=4, allowed_methods={"GET"}, status_forcelist={429, 503}, backoff_factor=1, respect_retry_after_header=True, )), ) while True: response = session.get( "https://api.finosu.com/calls", params=params, timeout=60 ) response.raise_for_status() page = response.json() for call in page["calls"]: output.write(json.dumps(call) + "\n") if page["nextCursor"] is None: break params["cursor"] = page["nextCursor"] ``` Newer calls created during pagination appear in a fresh traversal; they do not shift subsequent pages. This is a live history, not a frozen snapshot: existing call outcomes and artifacts can change as processing finishes, and backfilled or deleted records can change the available history. Deduplicate exports by `id`. Use [call webhooks](/api-reference/endpoint/calls/webhook) for completed-call updates, or reread an overlapping creation-time window to refresh recent records. ## Filter the history All filters are optional and combined: | Parameter | Meaning | | - | - | | `customerId` | Exact external customer reference (the same identifier used by the customer-specific route). | | `callType` | `INBOUND`, `OUTBOUND`, or `UPLOAD`. Omit for all types. | | `createdAfter` | Inclusive creation-time lower bound, such as `2026-09-01T00:00:00Z`. | | `createdBefore` | Exclusive creation-time upper bound, such as `2026-10-01T00:00:00Z`. | Dates must include a timezone (`Z` or an explicit offset). `createdAfter` must precede `createdBefore`. These filters use creation time, not last-updated time. Unknown customer references return an empty list. `customerId` matches only stored external references: a customer whose `customerId` appears in responses as the Finosu UUID fallback cannot be selected with this filter, and filtering by that UUID returns an empty list. ```bash theme={null} curl --fail-with-body --get 'https://api.finosu.com/calls' \ --header "X-API-Key: $FINOSU_API_KEY" \ --data-urlencode 'callType=OUTBOUND' \ --data-urlencode 'createdAfter=2026-09-01T00:00:00Z' \ --data-urlencode 'createdBefore=2026-10-01T00:00:00Z' ``` ## Errors | Status | Meaning | | - | - | | `401` | Missing, invalid, inactive, deleted, or empty API key. | | `422` | Invalid cursor, cursor from a different company/filter set, invalid date range, or invalid query value (including limits outside 1–100 or dates without timezones). | | `429` | Company request quota exhausted. Retry the same page after the `Retry-After` interval (60 seconds). | | `500` | Unexpected internal error. | | `503` | Request quota enforcement is temporarily unavailable. Retry the same page after the `Retry-After` interval (60 seconds). | Errors use FastAPI's `detail` field. Schema validation errors, including cursor length violations, contain an array of field errors; semantic cursor/range validation errors also return `422`, with a string. Authentication and quota errors contain a string. Existing call-by-ID and customer-specific routes retain their current response shapes. # New Call Source: https://docs.finosu.com/api-reference/endpoint/calls/webhook WEBHOOK /call/webhook Finosu posts call results to your configured receiver. /call/webhook is a documentation identifier, not an endpoint to call on api.finosu.com. Acknowledge with any 2xx status after durably accepting the event. Finosu sends call results to the receiver configured for your integration. The `/call/webhook` name identifies this contract; it is not a URL to call on `api.finosu.com`. Contact Finosu to configure delivery and validate a test call. ## Payload The webhook uses **snake_case** field names. REST call detail and scheduled-call responses have separate schemas; their camelCase names do not apply here. ```json theme={null} { "call_id": "edc5c123-a981-4b2b-8ccd-3b729bcaa18f", "customer_id": "CUST-12345", "loan_id": "LOAN-67890", "transcript": "Customer requested a callback.", "to_phone_number": "+14155551234", "flags": ["CONNECT", "RPC", "CALLBACK_REQUEST"], "summarization": "Customer requested a callback.", "recording_url": "https://example.com/recording.wav?signature=example", "timestamp": "2026-09-30T14:22:31+00:00" } ``` * `call_id` is the Finosu call UUID; use it with `GET /calls/{id}` to look up the call. It stays the same across retries, including deliveries queued before this field was added. * `customer_id` is your external customer reference. * `loan_id` is the external loan reference supplied as `loanId` during enrollment (`POST /customers/schedule/sync`). It comes from the loan linked to this call's schedule and is omitted when that reference is unavailable. Finosu does not infer it from the customer's latest loan or send an internal loan UUID. Existing deliveries queued before this field was introduced may omit it. * `call_id`, `customer_id`, `transcript`, `recording_url`, and `timestamp` are always present. Unavailable transcript or recording data is represented by an empty string. * `to_phone_number` and `flags` are omitted when unavailable or empty. `summarization` is omitted when no summary data exists; it can be an empty string if a stored summary object has no note. These fields are not sent as null. * `timestamp` is the UTC time when the worker prepares the delivery attempt, **not the call time**. Worker retries refresh it; immediate HTTP retries reuse the same body. REST call detail's `timestamp` is the call record's creation time. * `recording_url` expires one hour after generation. Download a recording before expiry if you need to retain it; storing the URL does not preserve access. ## Retries and deduplication Every request includes an `Idempotency-Key` header that is stable for the call and destination and is reused across retries. Treat it as opaque. Use it as the delivery deduplication key. Use `call_id` to correlate the call in your records; `Idempotency-Key` identifies its delivery to a particular destination. Do not deduplicate by the body or timestamp: a worker retry may refresh the timestamp and recording URL. Durably record the key and accept the event before returning a `2xx` response. Coordinate that record with your processing or durable queue so simultaneous retries cannot apply the same business action twice. A duplicate that has already been accepted should also receive a `2xx` response. Non-2xx responses and network errors are retried within configured limits. The header enables deduplication; it does not itself guarantee exactly-once processing or unlimited delivery. ## Other call objects | Object | Recording field | Outcome flags | | - | - | - | | This webhook | `recording_url` | `flags`, omitted when empty | | REST call detail | `recordingUrl`, nullable | Not included | | Scheduled-call response | Not included | `postProcessingFlags`, currently always null | The [public flag catalog](/api-reference/endpoint/calls/flags) describes a public subset for a selected task type. Receivers should tolerate additional flag codes. # List Collections Task Types Source: https://docs.finosu.com/api-reference/endpoint/collections/task-types GET /collections/task-types Returns collections task types for configured customer/loan boarding: create the customer, then POST /loans. This catalog does not indicate account enablement. For origination use GET /origination/task-types. Use this authenticated lookup to populate collections setup screens. It returns only collections task types, as a JSON array of case-sensitive strings: ```json theme={null} ["Collections"] ``` For origination screens, use [List Origination Task Types](/api-reference/endpoint/task-types/list). Both operations return strings; no scope discriminator or response filtering is needed. ## Request ```bash theme={null} curl --request GET 'https://api.finosu.com/collections/task-types' \ --header 'X-API-Key: YOUR_API_KEY' ``` ## Using the selected type For accounts configured for loan-based collections boarding: 1. [Create the customer](/api-reference/endpoint/customers/create) with `taskType: "Collections"` and the required customer fields, if not already present. 2. [Create the loan](/api-reference/endpoint/loans/create) with the matching `customerId`, external loan `id`, `taskType: "Collections"` and required loan fields. New loans require `servicingStatus: "ACTIVE"`. Loan boarding creates the configured collections schedule. Follow the linked schemas for required fields and existing-record updates. Do not send `Collections` to origination enrollment with `scheduleMode: "enroll"`. This read-only catalog does not create schedules or indicate account enablement. The values are the same for every authenticated company; write operations still validate the request and the company's configuration. ## Response and compatibility HTTP `200` returns the string array above, with no pagination. Missing, empty, invalid, or inactive API keys return `401`. The former `GET /task-types` route is replaced by the two scoped catalogs and is not retained as an alias. Use this endpoint for collections and `GET /origination/task-types` for origination. The existing string-array parser can be reused. Coordinate this URL change with deployment of this endpoint before switching the integration. Read values by name rather than position and do not assume a fixed array length. Use [List Call Flags](/api-reference/endpoint/calls/flags) with the selected `taskType` to retrieve the flag catalog (names and descriptions) for that workflow. # List All Customers Source: https://docs.finosu.com/api-reference/endpoint/customers/all GET /customers Returns all customers from the system that the user has access to Returns the customers belonging to the company identified by your API key. Each customer's `id` is the reference ID you supplied at creation. `taskType` reflects the customer's most recently created scheduled call, or `null` if they have none. ## Limits and Ordering Results are not paginated. Use `limit` (1–1000) to cap the number of customers returned; when omitted, all matching customers are returned. The limit is applied after test-customer filtering, and no particular ordering is guaranteed. ## Filtering Test Customers Use the `test` query parameter to control which customers are returned: * **`test=true`** - Returns only test customers * **`test=false` or omitted** - Returns only non-test customers (default behavior) By default, the API only returns non-test customers to avoid mixing production data with test data. > [!NOTE] > > `test` here is a query parameter on the read. The flag is named `isTest` in a customer's body — > on [Create a Customer](/api-reference/endpoint/customers/create) and on every customer response. # Batch Create Customers Source: https://docs.finosu.com/api-reference/endpoint/customers/batch POST /customers/batch Submit a list for background processing. Explicit scheduleMode=enroll uses origination enrollment with a batch Idempotency-Key and per-row idempotencyKey. Omit scheduleMode for the existing customer-create workflow. HTTP 202 confirms acceptance, not successful processing of every row. ## Choose your workflow * **Origination lists:** send outer `scheduleMode: "enroll"`, a header `Idempotency-Key`, and a row `idempotencyKey` for each application. Follow [Enroll a List (Batch)](/api-reference/origination/batch) for the full contract, limits, retry behavior and examples. * **Existing customer creation:** omit `scheduleMode`. The remainder of this guide describes that existing workflow only. Both return a background job. [Check batch progress](/api-reference/origination/batch-status) with the returned job ID. Enrollment uses the shared origination cadence service; it does not run the customer-create scheduling workflow below. ## Overview This batch endpoint allows you to create multiple customers in a single API request for improved efficiency. The endpoint processes customers **asynchronously** - it immediately returns a job ID (HTTP 202 Accepted) and processes customers in the background. Use `GET /customers/batch/{jobId}` to check the processing status. Each customer in the batch is processed independently, making it ideal for bulk customer imports from your LMS system or initial data migration. ## Upcoming Contract Changes This endpoint shares its per-customer payload with [Create a Customer](./create.mdx), so the upcoming required-field changes apply here identically: `birthday`, `ssnLastFour`, and `state` become required; `email`/`phoneNumber` and `timezone`/`zipCode` become at-least-one pairs; and `loanId` is removed in favor of `loanIds`. The fields documented on this page reflect what is enforced today, and we will give partners ample time to adjust before introducing any breaking changes. See [Upcoming API Changes](/api-reference/upcoming-changes) for the new contract and migration examples. ## Request Body Format The batch endpoint accepts an array of customer records wrapped in a `customers` field: ```json theme={null} { "customers": [ { "id": "CUST123", "firstName": "John", "lastName": "Doe", "email": "john.doe@example.com", "birthday": "1990-01-15", "ssnLastFour": "1234", "phoneNumber": "+15551234567", "timezone": "America/New_York", "taskType": "Collections", "streetAddress1": "123 Main St", "streetAddress2": "Apt 4B", "city": "New York", "state": "NY", "zipCode": "10001", "doNotCall": false, "externalMetadata": { "employer": "Example employer", "paySchedule": "biweekly" } }, { "id": "CUST124", "firstName": "Jane", "lastName": "Smith", "email": "jane.smith@example.com", "birthday": "1985-05-20", "ssnLastFour": "5678", "phoneNumber": "+15559876543", "timezone": "America/Los_Angeles", "taskType": "Collections", "streetAddress1": "456 Oak Ave", "city": "Los Angeles", "state": "CA", "zipCode": "90001", "doNotCall": false } ] } ``` ### Individual Customer Schema Each object in the `customers` array follows the same schema as the [single customer endpoint](./create.mdx): **Always required:** * `id` - External customer reference ID **(required)** * `firstName` - Customer's first name **(required)** * `lastName` - Customer's last name **(required)** * `phoneNumber` - Customer's phone number **(required)** - Used for automated calling and SMS communications * `timezone` - Customer's timezone as an IANA timezone name (e.g., "America/New_York", "America/Los_Angeles", "America/Chicago") **(required)** - Required for TCPA compliance to ensure calls are made during appropriate hours. Must be a valid IANA timezone identifier. * `taskType` - Task type for customer's call schedule **(required)** - Valid task types depend on your company configuration. A company-invalid task type fails the row during processing with a `422:` message listing the valid types. An accepted batch still returns HTTP `202`. **Required unless `sync: true`:** * `email` - Customer email address **(required)** * `streetAddress1` - Street address line 1 **(required)** * `city` - City name **(required)** * `state` - State code (e.g., "NY", "CA") **(required)** * `zipCode` - ZIP/postal code **(required)** **Optional Fields:** * `birthday` - Customer birthday (YYYY-MM-DD format) - Used for identity verification on calls. Will become required — see Upcoming API Changes. * `ssnLastFour` - Last 4 digits of SSN - Used for identity verification on calls. Will become required — see Upcoming API Changes. * `streetAddress2` - Street address line 2 * `doNotCall` - Whether to mark customer for Do Not Call (default: false) * `externalMetadata` - Custom JSON object with additional customer data * `loanIds` - Array of loan IDs to import for the customer (e.g., `[123, 456, 789]`). If provided, only the specified loans will be imported. If omitted, all loans for the customer will be imported. Pass a single-element array to import exactly one loan. * `sync` - When `true`, auto-fetch missing customer data from your company's LMS (default: `false`). See the [Create a Customer endpoint](/api-reference/endpoint/customers/create#lms-auto-fetch-sync) for details. * `isTest` - Mark customer as test customer (default: false) **Deprecated (will be removed in a future update):** * `loanId` - Does not select loans to import; use `loanIds` for that. On rows with an origination task type for companies configured for origination boarding, `loanId` is read as the LMS application reference; on all other rows it is accepted and then ignored. ## Response Format The batch endpoint immediately returns a job ID for tracking: ```json theme={null} { "jobId": "550e8400-e29b-41d4-a716-446655440000", "totalCustomers": 100, "message": "Batch job created with 4 parallel batches. Use GET /customers/batch/550e8400-e29b-41d4-a716-446655440000 to check status." } ``` ### Response Fields * **jobId** - Unique identifier for the batch job. Use this to check status via `GET /customers/batch/{jobId}` * **totalCustomers** - Total number of customers queued for processing * **message** - Status message with instructions for checking progress ## Checking Job Status Use `GET /customers/batch/{jobId}` to check the processing status: ```json theme={null} { "jobId": "550e8400-e29b-41d4-a716-446655440000", "status": "completed", "totalCustomers": 100, "processed": 98, "failed": 2, "progressPercentage": 100.0, "createdAt": "2026-08-17T10:30:00+00:00", "processingStartedAt": "2026-08-17T10:30:05+00:00", "processingCompletedAt": "2026-08-17T10:32:11+00:00", "errorMessage": null, "failures": [ { "index": 4, "customerId": "CUST127", "message": "422: Missing required fields: phoneNumber" }, { "index": 31, "customerId": "CUST154", "message": "422: Invalid task type. Valid types for this company: ['Collections']" } ] } ``` ### Status Values * **pending** - Job is queued but not yet started * **processing** - Job is currently processing customers * **completed** - Job has finished processing all customers. **Individual customers may still have failed** -- check `failures` * **failed** - Job encountered a fatal error > [!WARNING] > > `status: completed` does **not** mean every customer succeeded -- it means the job > finished. Always reconcile against `failed` and `failures` rather than treating > `completed` as success. ### Failures `failures` lists **every** customer that could not be created -- it is never truncated, however many there are. Successful rows are not enumerated; they are the set you submitted minus these. | Field | Description | | - | - | | `index` | 0-based position of the row in the `customers` array you submitted. `-1` if the position could not be determined | | `customerId` | External customer reference ID, exactly as submitted | | `message` | Why the row was rejected, prefixed with the status code the equivalent single `POST /customers` call would have returned | `index` is the position in **your** array, not within a server-side batch, so you can walk failures straight against your source file. Common failure messages: * `422: Missing required fields: ...` -- a required field was absent for that customer * `422: Invalid task type. Valid types for this company: [...]` -- `taskType` isn't configured for your company * `422: Invalid phone number. Phone number must contain at least one digit.` -- the number contained no digits * `422: State ... is not supported for ...` -- a state restriction applies to your company * `502: sync=true but failed to fetch customer data from LMS` or `502: LMS returned invalid customer data` -- an LMS dependency failure, not invalid caller input * `500: Internal error processing this customer` -- an internal failure. Check the customer’s current state before resubmitting; the error alone does not prove that no writes occurred Customers are processed in parallel batches, and each batch publishes its failures when it finishes, so `failures` fills in in bursts and is **partial** while `status` is `processing`. Poll until `status` is `completed` or `failed` before treating the list as the final record. The array is always sorted by `index` regardless of which batch finished first. > [!NOTE] > > `failures` was added in August 2026. Jobs that ran before then report an empty array even > if they had failures -- the per-row detail was not retained at the time. ## Partial Success Handling The batch endpoint uses **partial success** handling to ensure maximum processing: * **Individual failures don't stop processing** - If one customer fails, the remaining customers are still processed * **Detailed tracking** - The `failed` count shows how many customers failed, and `failures` names each one * **Nothing is truncated** - Every failed row is reported, however many there are * **Transaction isolation** - Each customer is processed in its own transaction to prevent one failure from affecting others ## What the Endpoint Does When you submit a batch request, Finosu: 1. **Queues the job** - Stores customer data and creates a background job 2. **Returns immediately** - Returns HTTP 202 with job ID for status tracking 3. **Processes asynchronously** - For each customer in parallel batches: * Validates the customer data (required fields, state restrictions, task type) * Creates the customer, or updates it in place when a customer with the same `id` already exists for your company — the same [upsert behavior](/api-reference/endpoint/customers/create#existing-customers) as the single endpoint * Creates call schedule for supported task types (e.g., Collections) Because rows are upserts keyed on `id`, resubmitting failed rows (or the whole batch) does not create duplicate customers. ## When to Use Batch vs Single **Use the batch endpoint when:** * Importing multiple customers from your LMS system * Performing initial data migration * You have more than 5-10 customers to create * You want to minimize API calls for efficiency **Use the [single endpoint](./create.mdx) when:** * Creating individual customers in real-time * You only have 1-2 customers to create * You need simpler error handling * Testing or debugging individual customer creation ## Error Handling An accepted batch returns HTTP `202 Accepted`, with a job ID for `GET /customers/batch/{jobId}`. Invalid request envelopes return HTTP `422` before queuing. Failures discovered during processing appear per row in the status response; a `422:` message prefix does not change the batch HTTP status. **Individual customer errors during processing may include:** * **422 UNPROCESSABLE CONTENT** - Missing required fields, invalid task type, or state restrictions * **502 BAD GATEWAY** - LMS fetch failure or malformed provider data (malformed optional birthdays are skipped) * **500 INTERNAL SERVER ERROR** - Server error during processing Use `GET /customers/batch/{jobId}` to monitor the `processed` and `failed` counts during processing, and read the [`failures`](#failures) array for the specific rows that were rejected and why. ## Authentication Authentication via **X-API-Key header**: * API key is company-scoped * Must be obtained from Finosu * Same authentication as single customer endpoint ## Example Usage This endpoint is typically used for: * **Bulk customer import** - Import multiple customers from your loan management system * **Initial setup** - Create multiple customers during initial platform setup * **Scheduled jobs** - Automated daily/weekly customer sync workflows * **Data migration** - Migrate customer data from legacy systems # Cancel All Communications Source: https://docs.finosu.com/api-reference/endpoint/customers/cancel-communications POST /customers/{id}/cancel-communications Cancels all pending communications for a customer: scheduled calls, scheduled emails, scheduled SMS, and all active schedules ## Overview This endpoint stops **outreach only**. It cancels the customer's pending communications and schedules, but their loans keep their servicing status and scheduled payments are not touched. To stop servicing entirely — including payments and the loan's servicing status — use [Cancel Loan Servicing](/api-reference/endpoint/loans/cancel-servicing) or [Cancel Customer Servicing](/api-reference/endpoint/customers/cancel-servicing) in the collections API. To close an enrolled origination application, use [Close Origination](/api-reference/origination/close). This endpoint cancels all pending communications for a customer, including: * **Scheduled Calls**: All pending scheduled calls linked to the customer's loans or call schedules * **Scheduled Emails**: All pending scheduled emails * **Scheduled SMS**: All pending scheduled SMS messages * **Call Schedules**: All active loan call schedules * **Email Schedules**: All active loan email schedules * **SMS Schedules**: All active loan SMS schedules Only pending communications and active schedules are affected. Items already sent, completed, or cancelled are left as is and are not counted in the response. ## Use Cases * Stop all outreach to a customer who has requested no contact * Cancel communications when a customer's account is closed * Clear all pending communications before setting up a new schedule ## Response The response includes a count for each type of cancelled item and a `totalCancelled` sum, allowing you to verify what was cancelled. `cancelledTasks` is always `0`: tasks are no longer cancelled directly, and cancelling the pending scheduled calls above covers them. The field remains in the response for compatibility. Because only pending items are cancelled, repeating the request returns zero counts and makes no further changes. An unknown customer `id` returns `404`. # Cancel Customer Servicing Source: https://docs.finosu.com/api-reference/endpoint/customers/cancel-servicing POST /customers/{id}/cancel-servicing Cancel servicing for all loans belonging to a customer. Sets all loans' servicing status to NOT_SERVICING and cancels all pending scheduled payments, calls, emails, and SMS across all loans. ## Overview This endpoint cancels servicing for all loans belonging to a specific customer, stopping all automated communications and scheduled payments across all of their loans. Use this when a customer should no longer be actively serviced by the platform. This is a collections operation. To stop servicing a single loan, use [Cancel Loan Servicing](/api-reference/endpoint/loans/cancel-servicing). To close an origination application that was funded, withdrawn, or rejected, use [Close Origination](/api-reference/origination/close) instead. ## What Gets Cancelled When you call this endpoint, the following actions are taken for **all loans** owned by the customer: * **Loan Status**: Sets all loans' servicing status to `NOT_SERVICING` * **Stop Reason**: Records the reason for stopping servicing (defaults to `API_REQUEST`) * **Scheduled Payments**: Cancels all pending scheduled payments * **Scheduled Calls**: Cancels all pending scheduled calls * **Scheduled Emails**: Cancels all pending scheduled emails * **Scheduled SMS**: Cancels all pending scheduled SMS messages * **Call Schedules**: Cancels all active loan call schedules * **Email Schedules**: Cancels all active loan email schedules * **SMS Schedules**: Cancels all active loan SMS schedules * **Borrower Portal**: Hides the loans from the borrower portal Payment-plan records remain in place; their unpaid scheduled installments are cancelled. Payments already submitted to a processor are not reversed. Repeated requests recheck payment and communication cleanup while preserving each loan's existing stop reason. ## Use Cases * Customer has paid off all their loans * Customer is leaving the platform entirely * Customer filed for bankruptcy * Fraud has been detected across the customer's accounts * Customer is deceased * Customer requested to be removed from all servicing ## Stop Servicing Reasons You can optionally provide a reason for stopping servicing. Retrieve the current accepted values with [List Stop Servicing Reasons](/api-reference/endpoint/loans/stop-servicing-reasons) instead of hardcoding a list. The same catalog applies to loan and customer cancellation. Send the selected case-sensitive string as `reason`; omitting it defaults to `API_REQUEST`. This records a stop reason; it does not invoke the corresponding bankruptcy, dispute, or other flag workflow. ## Request Body The request body is optional. If not provided, the reason defaults to `API_REQUEST`. ```json theme={null} { "reason": "API_REQUEST", "note": "Servicing recalled at the lender's request." } ``` `note` is optional free-form text, trimmed before storage, with a limit of 2,000 characters. Omit it or send `null` when no note is needed; blank notes are rejected. Common SSN, card/account-number, email and phone patterns are redacted before storage in each affected loan's servicing audit history. Redaction is pattern-based, not a guarantee of removing every sensitive detail. An identical repeated request does not duplicate the latest audit entry. A different note is retained even if servicing was already stopped, without replacing the original stop reason. ## Response The response includes the total count of all cancelled items across all loans: ```json theme={null} { "id": "CUST-12345", "loansUpdated": 3, "stopServicingReason": "API_REQUEST", "cancelledScheduledPayments": 9, "cancelledCallSchedules": 3, "cancelledEmailSchedules": 3, "cancelledSmsSchedules": 3, "cancelledCalls": 15, "cancelledEmails": 6, "cancelledSms": 9 } ``` ## Error Responses | Status Code | Description | | - | - | | 422 | Invalid cancellation reason or request body | | 404 | Customer not found | | 500 | Internal server error | For `422` responses, `detail` is a string when the supplied reason is not accepted, or an array of validation errors when the request body has an invalid type or structure (for example, `{"reason": 123}`). Each validation error includes `loc` (the field location), `msg` (the message), and `type` (the error code); additional fields may be present. Clients should handle both forms. # Create a Customer Source: https://docs.finosu.com/api-reference/endpoint/customers/create POST /customers Creates a new customer ## Upcoming Contract Changes The required-field contract for this endpoint is changing. `birthday` and `ssnLastFour` (optional today) will become required; `state` (today required unless `sync: true`) becomes required in all cases; `email`/`phoneNumber` and `timezone`/`zipCode` become at-least-one pairs; and `loanId` is being removed in favor of `loanIds`. One part is already live: validation failures now return `422`, as described below. The remaining request fields documented on this page reflect what is enforced today, and we will give partners ample time to adjust before introducing any breaking changes. See [Upcoming API Changes](/api-reference/upcoming-changes) for the new contract, the rationale, and migration examples. ## Required Fields **Always required:** * `id` - Your customer reference ID; should match your internal system's ID **(required)** * `firstName` - Customer's first name **(required)** * `lastName` - Customer's last name **(required)** * `phoneNumber` - Customer's phone number **(required)** - Used for automated calling and SMS communications * `timezone` - Customer's timezone as an IANA timezone name (e.g., "America/New_York", "America/Los_Angeles", "America/Chicago") **(required)** - Required for TCPA compliance to ensure calls are made during appropriate hours. Must be a valid IANA timezone identifier. * `taskType` - Task type for customer's call schedule **(required)** - Valid task types depend on your company configuration. If an invalid task type is provided for your company, the API will return a `422 Unprocessable Content` error with a list of valid task types. **Required unless `sync: true`** (when `sync` is enabled these are auto-fetched from your LMS — see below): * `email` - Customer email address **(required)** * `streetAddress1` - Street address line 1 **(required)** * `city` - City name **(required)** * `state` - State code (e.g., "NY", "CA") **(required)** * `zipCode` - ZIP/postal code **(required)** **Optional Fields:** * `birthday` - Customer birthday (YYYY-MM-DD format) - Used for identity verification on calls. Will become required — see Upcoming API Changes. * `ssnLastFour` - Last 4 digits of SSN - Used for identity verification on calls. Will become required — see Upcoming API Changes. * `streetAddress2` - Street address line 2 * `doNotCall` - Whether to mark customer for Do Not Call (default: false) * `externalMetadata` - Custom JSON object with additional customer data * `loanIds` - Array of loan IDs to import Missing required fields return a `422 Unprocessable Content` naming the fields, e.g. `{"detail": "Missing required fields: firstName, timezone"}`. ## Existing Customers If a customer with the same `id` already exists for your company, this endpoint updates that customer in place and still returns `201`. Provided fields overwrite the stored values; omitted optional fields (including `externalMetadata`) are preserved. ## Response Body The API returns all fields that were provided in the request body, along with any computed fields. This includes: * **Basic Information**: `id`, `firstName`, `lastName`, `email`, `phoneNumber`, `timezone` * **Personal Information**: `birthday`, `ssnLastFour` * **Address Information**: `streetAddress1`, `streetAddress2`, `city`, `state`, `zipCode` * **Configuration**: `taskType`, `doNotCall`, `doNotText`, `doNotEmail`, `isTest` * **Custom Data**: `externalMetadata` - The complete metadata object you provided All fields that were included in the request will be returned in the response, making it easy to verify the customer was created correctly. The API response will return all address fields separately as they are stored in the database. ## Test Customers You can mark a customer as a test customer by setting `isTest` to `true` in the request body. Test customers are useful for development and testing purposes and can be filtered separately when retrieving customers. The same field is returned as `isTest` on every customer response. ## External Metadata The `externalMetadata` field allows you to store additional custom data about the customer as a JSON object. This is particularly useful for storing: * **Employer Information**: Company name, address, department, contact details * **Pay Schedule**: Pay frequency and pay day information * **Additional Contact Information**: Multiple phone numbers and contact methods * **Custom Fields**: Any other customer-specific data your system needs to track The metadata is stored as-is in the database and can be retrieved later when processing customer tasks or making calls. AI agents can access this information during conversations. ## LMS Auto-Fetch (sync) If your company has a Loan Management System integrated with Finosu, you can use the `sync` field to automatically fetch customer data instead of providing it manually. * **Default**: `false` — all fields must be provided in the request * **When `true`**: The API uses the `id` field as the customer ID in your LMS and auto-fetches any missing fields (name, email, SSN, birthday, phone, address, zip, timezone) * **Caller-supplied values take precedence** — if you provide a field, the LMS value is not used * **Timezone** is auto-resolved from the ZIP when omitted. An unresolvable ZIP defaults to `America/New_York`; if both timezone and ZIP are absent after fetching, the request returns `422` for missing timezone. * The `id` must be numeric when `sync` is `true` **Minimal request with sync:** ```json theme={null} { "id": "12345", "taskType": "YourTaskType", "sync": true } ``` This reduces the required payload to just `id`, `taskType`, and `sync: true` — the rest is fetched from your LMS automatically. Contact your Finosu account manager to enable LMS integration for your company. ## Loan IDs (Optional) For companies with an LMS integration, the `loanIds` field specifies which loans should be imported for the customer when creating them: * **Format**: Array of integers (e.g., `[123, 456, 789]`) * **Behavior**: If provided, only the specified loans will be fetched and imported. If omitted, all loans for the customer will be imported. * **Use Case**: Useful when you only want to import specific loans instead of all loans associated with the customer. To import exactly one loan, pass a single-element array (e.g., `[67890]`). ## Loan ID (Deprecated) The `loanId` field (string) is **deprecated**. It never selects loans to import — use `loanIds` for that, passing a single-element array for one loan. For origination-boarding records at companies explicitly configured for the supported LMS origination integration, `loanId` is read as the LMS application reference; on all other records it is ignored. It will be removed in a future update. See [Upcoming API Changes](/api-reference/upcoming-changes). ## Validation and LMS failures Invalid caller-supplied `birthday`, `phoneNumber`, or `timezone` values return `422` for both new and existing customers. With `sync: true`, a failed LMS fetch or invalid contact data returned by the LMS returns `502`, not `422`. Malformed optional LMS birthdays are skipped; an existing birthday is preserved. Unexpected internal failures remain `500`. A `5xx` response does not guarantee that retrying a write is safe. Follow the operation's idempotency behavior and use bounded retries; do not retry unchanged invalid input. # Delete a Customer Source: https://docs.finosu.com/api-reference/endpoint/customers/delete DELETE /customers/{id} Deletes a customer Looks up a customer by reference ID, scoped to the company identified by your API key, and returns the customer object on success. Returns `404` if no customer with that reference ID exists for your company. ## What this does not do This endpoint does not hard-delete the customer record, and it does not cascade: loans, call history, and scheduled communications (calls, texts, emails) are left untouched. To stop outreach to a customer, set `doNotCall`, `doNotText`, or `doNotEmail` via [Update a Customer](/api-reference/endpoint/customers/update) instead. # Retrieve a Customer Source: https://docs.finosu.com/api-reference/endpoint/customers/get GET /customers/{id} Returns a specific customer from the system that the user has access to Retrieves a single customer by reference ID, scoped to the company identified by your API key. The `id` path parameter is the customer's reference ID — the `id` you supplied on [Create a Customer](/api-reference/endpoint/customers/create) (or the Finosu-generated `FIN-######` value if you did not supply one). It is not an internal UUID. Returns `404` if no customer with that reference ID exists for your company. In the response, `taskType` reflects the customer's most recently created scheduled call, or `null` if they have none. # Enroll an Application Source: https://docs.finosu.com/api-reference/endpoint/customers/origination-enrollment Create or reuse a customer and enroll an application in its configured outreach cadence. Enroll an application in an automated origination call cadence by sending `scheduleMode: "enroll"` to the existing schedule-sync endpoint. Send one application per request here. For a whole list, use [batch enrollment](/api-reference/origination/batch). The company associated with your `X-API-Key` determines which task types and cadences are available; contact your account manager to confirm the supported modes. Omitting `scheduleMode`, or setting it to `"replace"`, retains the existing [Sync Customer Schedules](/api-reference/endpoint/customers/schedule-sync) behavior. Enrollment does not cancel other calls, emails, or SMS. A different `loanId` creates a separate application for the same customer, even when an older application is still pending. Conflicts on the requested application and customer contact restrictions still return `409` for review. This guide covers enrollment only. For the shared request/response schema and API playground, see [Sync Customer Schedules](/api-reference/endpoint/customers/schedule-sync). For complete requests for each mode, see [Origination Examples](/api-reference/origination/examples). ## Supported task types Origination enrollment (`scheduleMode: "enroll"`) supports exactly two `taskType` values. Use the case-sensitive values shown below. Use [List Task Types](/api-reference/endpoint/task-types/list) (`GET /origination/task-types`) to retrieve these values programmatically. | `taskType` | Purpose | | - | - | | `PendingLoanNewLead` | New application outreach: enrolls a new application in an automated outreach cadence. | | `PendingLoanReturning` | Returning borrower outreach: enrolls a returning borrower in the configured outreach cadence. | The selected task type must be enabled for the company associated with your `X-API-Key`. A supported task type that is not enabled for your company returns `400`. Contact your account manager to confirm availability. For a single returning-borrower call, use `PendingLoanReturning` with `oneOff: true`; this is an option, not a separate task type. See [Cadences](#cadences) for scheduling behavior. ## Example ```bash theme={null} curl --request POST 'https://api.finosu.com/customers/schedule/sync' \ --header 'X-API-Key: YOUR_API_KEY' \ --header 'Idempotency-Key: application-1001-enrollment-1' \ --header 'Content-Type: application/json' \ --data '{ "scheduleMode": "enroll", "id": "customer-1001", "loanId": "application-1001", "taskType": "PendingLoanNewLead", "firstName": "Jane", "lastName": "Doe", "birthday": "1985-06-15", "ssnLastFour": "1234", "phoneNumber": "+15125550100", "mobilePhone": "+15125550101", "zipCode": "78701", "timezone": "America/Chicago", "daysInApplied": 3 }' ``` Successful enrollment saves the customer, application, and call schedule in one transaction. The normal scheduler starts outreach when calling hours, business-day rules, contact restrictions, and capacity allow. A successful API response means the schedule is saved; it does not mean a call has connected. ## Returning customers and new applications `id` identifies the customer in your account; `loanId` identifies the application. Keep the customer `id` stable when the same person applies again. Send the new application's distinct `loanId` with a new `Idempotency-Key` and the required customer fields. This applies to both supported task types and batch enrollment. `PendingLoanNewLead` describes the outreach mode; it does not require a customer who has never existed in Finosu. | Request | Behavior | | - | - | | Same customer, new `loanId` | Creates a separate loan and cadence. Existing loans, outcomes, call history, and schedules remain intact, including pending or paused applications. | | Same customer and `loanId`, matching active cadence with pending or in-progress calls | Returns `already_scheduled`; no duplicate calls or progress reset. | | Same key and unchanged payload | Replays the original receipt; no new enrollment. | | Same key with a different `loanId` or other changed data | Returns `409`; use a new key for a new application. | | Same `loanId` assigned to another customer in your account | Returns `409`; references cannot be reassigned. | | Same application with exhausted calls, both loan and application still `PENDING`, and a new key | Starts a complete new cadence in the same outreach mode, preserving application identity and previous history. | | Terminal or unknown application/loan status, paused/cancelled cadence, contact restrictions, or inconsistent history | Returns `409`; no restart. | For example, customer `customer-1001` can have `application-1001` still pending and enroll `application-1002` independently. Do not close the older application merely to enroll the new one. Report its actual final outcome separately through `POST /originations/{id}/close`, using that application's reference. Loan reference ownership is scoped to the loan portfolio's company. Loans explicitly marked as test loans do not reserve real application references and are excluded from the close API. An existing test loan on the same customer is never converted into a real application by submitting it again. The API customer test flag remains a separate setting with its existing validation. Customer data remains shared: creating a new application can update the existing customer's supplied profile/contact fields through normal enrollment. It does not create another customer or remove contact restrictions. Each new cadence uses its own submitted call-plan inputs; older scheduled tasks are not rebuilt. Call eligibility and spacing continue to apply across the customer's applications. Separate enrollment does not grant permission for simultaneous calls or bypass Do Not Call, calling hours, contact breaks, or capacity checks. A saved cadence is not a guarantee of immediate dialing. Completing all call attempts does not itself mark an application funded, withdrawn, or rejected. ## Fields Use strings for customer references, application references, ZIP codes, and SSN suffixes to preserve leading zeroes. Send birthdays as `YYYY-MM-DD`. Only the last four SSN digits are needed; do not send a full SSN. | API field | Enrollment requirement | | - | - | | `scheduleMode` | Required: `"enroll"` | | `taskType` | Required: `PendingLoanNewLead` or `PendingLoanReturning`, when enabled for your company | | `id` | Required customer reference | | `loanId` | Required application reference | | `firstName` | Required | | `lastName` | Required | | `birthday` | Required date in the past, formatted as `YYYY-MM-DD` | | `ssnLastFour` | Required; exactly four digits | | `phoneNumber` | At least one of `phoneNumber` and `mobilePhone` is required | | `mobilePhone` | Optional second number, or the only number when `phoneNumber` is absent | | `middleName` | Optional | | `streetAddress1` | Optional | | `streetAddress2` | Optional | | `city` | Optional | | `state` | Optional two-letter uppercase code | | `zipCode` | Optional; used to derive the timezone when `timezone` is omitted | | `timezone` | Required unless `zipCode` provides a known timezone; valid IANA timezone name only | | `email` | Optional valid email | | `daysInApplied` | Optional integer from 0 to 36,500; new leads only | | `daysSincePaidOff` | Optional integer from 0 to 36,500; returning borrowers only | | `oneOff` | Optional boolean; returning borrowers only; default `false` | | `isTest` | Optional boolean; default `false`; must match an existing customer's test setting | Omit optional values you do not have. Optional contact fields and the two cadence-age fields accept `null`; `oneOff`, `isTest`, and `sync` do not. Send the age fields as JSON integers, not strings, fractions, or booleans. Unrecognized fields are rejected rather than ignored. Both supplied phone numbers must have 10 digits, or 11 digits beginning with `1`; the API normalizes them to `+1…`. This validates format, not whether a number is assigned or reachable. An invalid mobile number produces an error instead of silently changing the call plan. `sync: true` and nonempty `externalMetadata` are not supported in enrollment mode; send the explicit fields above. Enrollment preserves existing contact restrictions. It cannot remove a Do Not Call restriction through `doNotCall: false`; `doNotCall: true` is also rejected. ## Cadences | Request | Result | | - | - | | `taskType: "PendingLoanNewLead"` | Nine calls over five business days, with phone rotation when two distinct numbers are provided. `daysInApplied` is recorded as context; it does not skip cadence steps. | | `taskType: "PendingLoanReturning"` with `daysSincePaidOff` | Returning-borrower cadence based on days since payoff, with future calls through the configured horizon. | | `taskType: "PendingLoanReturning"` without `daysSincePaidOff` | One initial call using the regular returning-borrower flow, which may include a mobile fallback. | | `taskType: "PendingLoanReturning", oneOff: true` | Exactly one scheduled call, even with `daysSincePaidOff`; no mobile fallback. | A matching active cadence with a pending or in-progress call is returned as `already_scheduled` without changing borrower data or resetting its progress. The application reference, customer, company, and outreach mode must match; switching between returning and one-off is not an update to an existing cadence. For both New Lead and Returning Customer, a new idempotency key can restart fully exhausted outreach only when both the loan and captured application are still `PENDING`. Every previous call must be completed or failed, with no queued, claimed, active, cancelled, or compliance-suppressed work. Call post-processing must also be finished before a new cadence can start. Contact restrictions, paused/cancelled cadences, unknown state, and inconsistent identity block restart. `FUNDED`, `WITHDRAWN`, and `REJECTED` are never reopened, even if the other record still says `PENDING`. The restart creates a new schedule from step zero for the same application and outreach mode, preserving previous calls and receipts. Returning cadences with `daysSincePaidOff` start the complete configured cadence from the new start date; the supplied payoff-age information remains unchanged. Returning without that field and explicit `oneOff` retain their existing single-initial-call behavior. A retry using the original key always replays its original receipt, even after outreach has finished. CSV reuploads do not acquire this API restart behavior. Use [Update a Customer](/api-reference/endpoint/customers/update) for supported profile changes such as the primary `phoneNumber`, email, or timezone. That operation does not update `mobilePhone`, cadence-age fields, or `oneOff`, and it does not rebuild the call plan. Coordinate changes to those fields separately. ## Retries `Idempotency-Key` is required only for `scheduleMode: "enroll"`. Use a stable, non-sensitive identifier of 1–128 characters: letters, digits, `.`, `_`, `:`, or `-`. Keep the same key and payload when retrying after a timeout or network error. * The same company, key, and normalized payload return the saved enrollment receipt, even after the cadence finishes or is cancelled. * Reusing a key with a different payload returns `409`. * A different key for the same active application returns `already_scheduled`. * An in-progress request returns `409` with `Retry-After`; retry the original key. * Keys are scoped to the company associated with the API key. Receipt replays still require a valid request, an enabled company/mode, and an available quota. They return the original scheduling result; they do not re-evaluate the current customer's eligibility or start another cadence. Enrollment is limited to 60 requests per minute per company. Honor `Retry-After` on `429` and `503` responses and retry with exponential backoff and jitter. ## Response Responses use HTTP `200`. The top-level customer fields are built from the normalized request, with two exceptions: `phoneNumber` falls back to `mobilePhone` when no primary number is supplied, and `doNotCall` is always returned as `false`. These fields are **not a read of the current customer record**. In particular, `already_scheduled` does not persist submitted contact changes, and `doNotCall` does not prove the customer is currently callable, including on a replay. Use [Retrieve a Customer](/api-reference/endpoint/customers/get) for the customer fields that operation exposes, and scheduled-call status for current scheduling state. Enrollment also returns `mobilePhone`, `middleName`, the schedule counters, and an `origination` receipt. Optional response fields can be `null`. The following is the **scheduling portion** of the response, not the complete customer response: ```json theme={null} { "scheduleCreated": true, "tasksCreated": 9, "existingTasksRemoved": 0, "origination": { "id": "24ed9f67-d86f-450b-8d9a-0d67dbd89187", "status": "scheduled", "customerId": "customer-1001", "loanId": "application-1001", "scheduleId": "d514bcc6-b635-485e-a48a-695aec492c59", "scheduledCallId": "a584fa4a-c99d-4a84-ae43-39b119b3f152", "scheduledTime": "2026-09-21T16:00:00Z", "scheduledCallCount": 9 } } ``` `Idempotency-Replayed: true` identifies a replay. Its counters describe the original enrollment, not newly created calls. A newly submitted key returning `already_scheduled` has `scheduleCreated: false` and `tasksCreated: 0`. `scheduledCallCount` is the total number of nondeleted calls in the saved cadence, not the number of remaining attempts. `Location` points to `/scheduled-calls/{scheduledCallId}`. Use the [scheduled call detail endpoint](/api-reference/endpoint/scheduled-calls/get-by-id) to track current status; the enrollment receipt is a snapshot. ## Errors Enrollment validation, conflict, and quota errors have a structured `detail`: ```json theme={null} { "detail": { "code": "origination_conflict", "message": "Idempotency-Key was already used with a different request" } } ``` Use `detail.code` to distinguish `request_in_progress` from other `409` conflicts. Authentication errors may instead contain a plain-string `detail`; do not assume every error has the enrollment shape. Invalid fields return sanitized messages without echoing the submitted identity values. | HTTP status | Meaning | | - | - | | `200` | Saved enrollment or existing cadence/receipt | | `400` | Task type is not enabled for your company | | `401` | Missing, empty, invalid, or inactive API key | | `409` | Conflict on the requested application/reference, contact restriction, ineligible exhausted/paused cadence for that application, reused key with changed data, or request still in progress | | `422` | Missing/invalid input or missing/invalid idempotency key | | `429` | Per-company request quota exceeded | | `503` | Scheduling temporarily unavailable; retry the same key and payload | # List Customer Payment Methods Source: https://docs.finosu.com/api-reference/endpoint/customers/payment-methods GET /customers/{customerId}/payment-methods List non-deleted payment-method identities for a live customer in the authenticated company. Includes inactive methods. Returns masked display fields only; status does not establish ACH authorization. Results are ordered by payment-method UUID, with SQL pagination. Use this endpoint in Collections to identify the exact payment method before revoking ACH authorization. Retrieve Finosu payment-method UUIDs for a customer using your company API key in `X-API-Key`. `customerId` is your external customer reference, not the Finosu customer UUID. Only non-deleted methods belonging to that live customer in the authenticated company are returned. ## Response ```json theme={null} [ { "paymentMethodId": "17f82780-3c2d-4e71-bbad-03ca7f713e4f", "paymentMethodType": "BANK_ACCOUNT", "lastFour": "6789", "accountType": "checking", "status": "ACTIVE", "isDefault": true } ] ``` The response includes bank accounts and other payment-method types, including inactive methods. `accountType` may be `null`. Vault tokens, full account and routing numbers, billing details, and gateway metadata are never returned. Method status and default status do not establish current ACH authorization or permission to charge. For [Revoke ACH Authorization](/api-reference/endpoint/customers/update-ach-authorization), choose the intended `BANK_ACCOUNT` entry and use its `paymentMethodId` with the same `customerId`. Last-four digits are not unique: if multiple methods could match the intended account and the intent is to revoke all bank authorizations for this customer, paginate all results and `POST` the revocation separately for each `BANK_ACCOUNT` ID only. Never revoke cards or another customer's methods. Check each response; the operation is not atomic across IDs. Otherwise confirm the mapping rather than guessing. Do not select the first or default method merely because it is listed. ## Pagination `limit` defaults to 100 and accepts 1–100. `offset` defaults to 0 and must be nonnegative. Results are ordered by payment-method UUID. Increase `offset` by `limit` until a page contains fewer than `limit` entries. An existing customer with no methods, or an offset beyond the last method, returns `200` with `[]`. Separate pages reflect current records, not a fixed snapshot. ## Errors * `401` — missing, invalid, or inactive API key * `404` — unknown, deleted, or other-company customer * `422` — invalid pagination parameters # Sync Customer Schedules Source: https://docs.finosu.com/api-reference/endpoint/customers/schedule-sync POST /customers/schedule/sync Sync a customer schedule. Omit scheduleMode or use replace for the existing replacement behavior. Explicitly use enroll for company-enabled application enrollment that preserves cadence progress and requires an Idempotency-Key. The same customer id with a new loanId creates a separate application and cadence without changing previous applications. Use a new key per application; customer contact restrictions and call spacing still apply. ## Choose a schedule mode `POST /customers/schedule/sync` is one endpoint with two different operations. Choose the mode before using the request schema or sending a request. | Intent | `scheduleMode` | Guide | | - | - | - | | Enroll a new application or returning borrower in an enabled origination cadence, preserving existing progress on retries | `"enroll"` — explicit and required, with `Idempotency-Key` | [Enroll an Application](/api-reference/endpoint/customers/origination-enrollment) | | Intentionally replace a customer's pending schedules using an existing account integration | `"replace"` or omitted | [Replacement behavior](#replacement-behavior) below | For a new origination integration, start with the [Origination overview](/api-reference/origination/overview). The enrollment guide and this reference describe different uses of this same URL; there is no separate enrollment endpoint. Select the enrollment request variant in the API playground and always include `scheduleMode: "enroll"` and `Idempotency-Key`. > [!WARNING] > > Omitting `scheduleMode` selects replacement behavior. It does not enroll an > application. Do not omit it when retrying an origination request. ## Replacement behavior The remainder of this page describes **replacement mode only**. Enrollment has its own required fields, response receipt, and conflict rules in the linked guide. Existing replacement integrations do not need to add an idempotency header. ## Overview Replacement mode creates or updates the customer and runs the account's configured scheduling workflow. Where replacement proceeds, it cancels active call, email, and SMS schedules and their eligible pending communications before creating replacement schedules. Its effects are not limited to voice calls. Company and task-type support are checked independently of origination enrollment. Some integrations require an eligible active loan; the request can save the customer without creating a schedule when that requirement is not met. Existing schedule preservation also depends on the configured workflow. Do not interpret HTTP `200` alone as a new cadence or an unconditional cancellation of all activity. Repeating a replacement request can change schedule IDs and restart cadence timing. It does not provide the durable replay semantics of enrollment mode. ## Authentication Authentication via `X-API-Key` header. See [Authentication](/api-reference/introduction#authentication) for details. ## Request Body For replacement mode, use the **`SyncCustomerSchedule`** request schema with `scheduleMode: "replace"` or omit `scheduleMode`. Its fields are described below. For origination enrollment, use **`OriginationEnrollmentRequest`** with `scheduleMode: "enroll"` and an `Idempotency-Key` header. See [Enroll an Application](/api-reference/endpoint/customers/origination-enrollment) for its required fields and examples. Both schemas use `POST /customers/schedule/sync`. `loanIds` is not a scheduling input here. Enrollment-only fields such as `mobilePhone`, `oneOff`, and cadence ages are ignored in replacement mode, so sending them does not select an origination cadence. This endpoint keeps its required fields and its `loanId` parameter. See [Upcoming API Changes](/api-reference/upcoming-changes) for contract changes that affect customer writes. ### Always Required `id` and `taskType` must be sent in the request. The remaining core fields below must be available after optional LMS fetching; with `sync: true`, supported LMS integrations can fill them before validation. * `id` - External customer reference ID **(required)** * `firstName` - Customer's first name **(required)** * `lastName` - Customer's last name **(required)** * `phoneNumber` - Customer's phone number **(required)** - Used for automated calling and SMS communications * `timezone` - Customer's timezone as an IANA timezone name (e.g., "America/New_York", "America/Los_Angeles", "America/Chicago") **(required)** - Required for TCPA compliance to ensure calls are made during appropriate hours. Must be a valid IANA timezone identifier. * `taskType` - Task type for customer's call schedule **(required)** ### Required unless `sync: true` * `email` - Customer email address **(required)** * `streetAddress1` - Street address line 1 **(required)** * `city` - City name **(required)** * `state` - State code (e.g., "NY", "CA") **(required)** * `zipCode` - ZIP/postal code **(required)** ### Optional Fields * `birthday` - Customer birthday (YYYY-MM-DD format) * `ssnLastFour` - Last 4 digits of SSN * `doNotCall` - Whether to mark customer for Do Not Call (optional; if not provided, existing value is preserved) * `isTest` - Mark customer as test customer (optional; if not provided, the existing value is preserved) * `externalMetadata` - Custom JSON object with additional customer data * `streetAddress2` - Street address line 2 * `loanId` - External loan reference used by configured LMS workflows; supplying it does not itself enable notes or other write-back * `sync` - When `true`, auto-fetch missing customer data from your company's LMS (default: `false`). See the [Create a Customer endpoint](/api-reference/endpoint/customers/create#lms-auto-fetch-sync) for details. ## Response Body Replacement mode returns the saved customer fields defined by the response model, along with scheduling counters. Optional fields can be `null`. This includes: * **Basic Information**: `id`, `firstName`, `lastName`, `email`, `phoneNumber`, `timezone` * **Personal Information**: `birthday`, `ssnLastFour` * **Address Information**: `streetAddress1`, `streetAddress2`, `city`, `state`, `zipCode` * **Configuration**: `taskType`, `doNotCall`, `isTest` * **Custom Data**: `externalMetadata` - The complete metadata object you provided * **Sync Metadata**: `scheduleCreated`, `tasksCreated`, `existingTasksRemoved` - Information about the sync operation performed The response is not a verbatim copy of the request: for example, phone numbers are normalized, and `loanId` is not returned as a top-level customer field. > [!NOTE] > > In `replace` mode, omitting `isTest` entirely leaves the customer's existing value alone. Until 25 September 2026 a sync > that omitted it silently cleared it, un-marking an existing test customer; that is fixed. ## Sync Metadata Fields In addition to all the customer fields, the response includes three metadata fields that describe the sync operation: * **`scheduleCreated`** (boolean): Whether the configured workflow created a replacement schedule. A phone and timezone alone do not guarantee this; eligible loans and account configuration also matter. * **`tasksCreated`** (integer): The workflow's initial task counter, generally one per created schedule. It is not the total number of future calls in a cadence. Enrollment uses this field differently, as described in its guide. * **`existingTasksRemoved`** (integer): Currently returned as `0` in replacement mode, including when existing schedules are cancelled. Do not use it to count cancellations or infer that no previous communications changed. ## Schedule Creation The response will indicate whether the schedule was successfully created via the `scheduleCreated` field. ## Do Not Call Validation If an existing customer is already marked as Do Not Call, the endpoint will return a 400 error unless you explicitly set `doNotCall: false` in the request. **Behavior:** * If `doNotCall` is **not provided** (omitted from request) and the customer has Do Not Call status → **Error** (prevents accidental schedule creation) * If `doNotCall: true` and the customer has Do Not Call status → **Error** (attempting to maintain Do Not Call while creating schedule) * If `doNotCall: false` and the customer has Do Not Call status → **Success** (explicitly removing Do Not Call and creating schedule) * If `doNotCall` is **not provided** and the customer does NOT have Do Not Call status → **Success** (preserves existing state) ## Idempotency Replacement mode upserts the customer and may rebuild their pending schedules. It does not record an `Idempotency-Key` receipt. Confirm the current schedule before repeating a request whose outcome is uncertain. Enrollment mode provides durable retry receipts without resetting cadence progress. ## Use Cases This endpoint is useful for: * **Re-syncing customer data** from external systems * **Resetting call schedules** after customer information changes * **Individual customer resyncs** in an existing integration; this endpoint accepts one customer per request * **Integration workflows** that intentionally replace pending schedules With `sync: true` in replacement mode, an omitted timezone is resolved from the ZIP. If the ZIP is missing or cannot be resolved, the existing fallback is `America/New_York`. ## Validation and LMS failures Invalid caller-supplied `birthday`, `phoneNumber`, or `timezone` values return `422` for both new and existing customers. `sync: true` requires a numeric customer `id`; a non-numeric `id` returns `422` before any LMS fetch. With `sync: true`, a failed LMS fetch or invalid contact data returned by the LMS returns `502`, not `422`. Malformed optional LMS birthdays are skipped; an existing birthday is preserved. Unexpected internal failures remain `500`. A `5xx` response does not guarantee that retrying a write is safe. Follow the operation's idempotency behavior and use bounded retries; do not retry unchanged invalid input. # Update a Customer Source: https://docs.finosu.com/api-reference/endpoint/customers/update PUT /customers/{id} Updates a customer Updates an existing customer identified by your reference ID. All request fields are optional; omitted fields and fields sent as `null` keep their existing values. An unknown `id` returns `404`. The response is the full customer record after the update. ## Updatable Fields * `firstName`, `lastName` - Customer name * `email` - Email address * `phoneNumber` - Phone number * `birthday` - Birthday (YYYY-MM-DD format) * `ssnLastFour` - Last 4 digits of SSN * `timezone` - IANA timezone name (e.g., "America/New_York") * `state` - State code (e.g., "NY", "CA"); cannot be set to an empty value * `doNotCall`, `doNotText`, `doNotEmail` - Contact preferences (see below) * `bankruptcy`, `debtConsolidation`, `deceased`, `militaryStatus`, `legalThreat` - Customer compliance statuses (see below) Other address fields (`streetAddress1`, `streetAddress2`, `city`, `zipCode`), `taskType`, and `externalMetadata` cannot be changed on this endpoint. To update them, re-send the customer to [POST /customers](/api-reference/endpoint/customers/create) with the same `id`. ## Name Fields You can update the customer's name by providing either or both fields: * `firstName` - Update customer's first name * `lastName` - Update customer's last name Both fields are optional, allowing you to update them independently. The API response will return both fields separately as they are stored in the database. ## Contact Preferences You can independently update each communication channel: * `doNotCall` - Prevent or allow calls * `doNotText` - Prevent or allow SMS messages * `doNotEmail` - Prevent or allow emails Set a field to `true` to opt the customer out of that channel. Set it to `false` to clear that channel's opt-out. Omitted fields keep their existing values. Text and email opt-outs also cancel pending communication for their respective channel. ## Customer Compliance Statuses The following fields describe facts that apply to the customer across their loans: | Field | Meaning | | - | - | | `bankruptcy` | The customer has an active bankruptcy status. | | `debtConsolidation` | The customer is working with debt management, settlement, or consolidation. | | `deceased` | The customer is deceased. | | `militaryStatus` | The customer has an applicable military or servicemember status. | | `legalThreat` | The customer threatened legal action. This is not attorney representation. | Set a field to `true` to apply the status and its normal compliance cascade. Depending on the status, this stops servicing, blocks communication channels, and cancels pending communications for the customer's loans. Set it to `false` to clear that status and run the normal recovery cascade; other active compliance restrictions remain in force. Repeating the current value is idempotent. An omitted field or explicit `null` makes no change. `legalThreat` is a reportable customer fact only. It does not set attorney representation, stop servicing, or apply an attorney-representation contact hold. Its true/false/null and idempotency semantics are otherwise the same as the other fields. Fraud is loan-specific and is not accepted by Customer Update. ACH authorization revocation is payment-method-specific and is also not accepted here. Use the corresponding loan and ACH authorization workflows with an exact resource identifier. ## Validation Invalid `birthday`, `phoneNumber`, or `timezone` values, and an empty `state`, return `422 Unprocessable Content`. Validation runs before any field is written, so a rejected request leaves the customer unchanged. # Revoke ACH Authorization Source: https://docs.finosu.com/api-reference/endpoint/customers/update-ach-authorization POST /customers/{customerId}/payment-methods/{paymentMethodId}/ach-authorization Collections only. Updates revocation on one exact tenant-owned bank payment method. true revokes the current authorization. false never restores revoked consent; a new authorization must be captured. POST and PUT are equivalent. To revoke multiple bank authorizations, call separately for each BANK_ACCOUNT ID belonging to the same customer; cards are rejected and the calls are not atomic. **Collections only.** Revoke the ACH debit authorization for a specific customer bank-account payment method. Revoked authorization cannot be restored through this endpoint; a new customer authorization is required. The bank-account payment method must belong to an already-shared customer. `customerId` is your external customer reference; `paymentMethodId` is the **Finosu UUID of the specific bank-account payment method** whose ACH authorization you want to revoke. The method must belong to that customer. Both are checked against the company identified by the API key. Use `POST` to submit a revocation. The existing `PUT` method remains supported with the same request, authorization checks, and idempotent behavior. Use the Finosu payment-method UUID, not your LMS's payment-method ID, the bank account number, or the loan ID. Retrieve it from [List Customer Payment Methods](/api-reference/endpoint/customers/payment-methods) using the same `customerId` and API key. Choose the exact `BANK_ACCOUNT` entry and pass its `paymentMethodId` here. If you intend to revoke all of that customer's bank authorizations because the masked account cannot be distinguished, paginate the full lookup and send this request separately for each `BANK_ACCOUNT` ID only. Do not submit cards or another customer's IDs. This is not an atomic bulk action: check each response and retry only the same intended ID after a transient error. ```json theme={null} { "revokeAuthorization": true } ``` `true` revokes the current ACH authorization and removes the payment method's default status. Repeating `true` is idempotent. Omitted or `null` makes no change. `false` cannot restore consent. It is an idempotent no-op while the method still has an active authorization, but returns `422` after revocation. Capture a new customer authorization through the normal authorization workflow to clear the revoked-authorization status. A payment method with no active or historical ACH authorization returns `409` for `true`. This endpoint accepts bank-account payment methods only. It never applies the revocation to a different payment method or to every method on the customer. # Upsert a Customer (Webhook) Source: https://docs.finosu.com/api-reference/endpoint/customers/webhook POST /webhooks/customers/upsert Your system posts customer data to Finosu. This is an inbound API endpoint, not an outbound callback. This is an inbound API request: your system posts customer data to Finosu with `X-API-Key`. It is separate from outbound call-result webhooks. Use camelCase for new integrations. Existing snake_case request fields remain accepted, including fields inside `personalData`. Both spellings can be mixed. If both spellings of a field are supplied, the camelCase value takes precedence; when both `personalData` and `personal_data` are present, `personalData` is selected as a whole object rather than merged. Send each field only once. Keys inside `externalMetadata` are caller-defined and are preserved without renaming. For example: ```json theme={null} { "customerId": "CUST-12345", "personalData": { "email": "customer@example.com", "birthday": "1985-06-15", "firstName": "Alex", "lastName": "Example", "phone": "+14155551234", "streetAddress1": "123 Main Street", "zipCode": "94102" }, "autodialerConsent": true, "externalMetadata": {} } ``` Provide `name` or both `firstName` and `lastName` inside `personalData`. Missing required fields or name data returns `422`. The response identifier remains `customer_id`; `updated` may be null. ## Validation Errors Invalid phone or birthday input, including an empty or whitespace-only birthday, returns HTTP `422 Unprocessable Content` with a string `detail`. Request-schema errors also return `422`, with an array of field errors. Unexpected server failures remain `500`; a server response failure is not a request-validation error. Supplied `personalData.timezoneName` values must be valid IANA timezones; invalid values return `422` before persistence. Omitted or null timezones retain their existing behavior. # Get Emails Source: https://docs.finosu.com/api-reference/endpoint/email/get GET /emails/{customerId} Returns email history for a customer. limit and offset select email threads before their messages are flattened, so the number of returned messages may exceed limit. # LMS Batch Sync Status Source: https://docs.finosu.com/api-reference/endpoint/lms/sync-batch-status GET /webhooks/lms/sync/batch/{jobId} ## Overview Check the processing status of a batch LMS sync job created via [LMS Customer Batch Sync](./sync-customer-full-batch.mdx). ## Path Parameters * **jobId** — The job ID returned by the batch sync endpoint **(required)**. Must be a valid UUID. ## Response Format ```json theme={null} { "jobId": "550e8400-e29b-41d4-a716-446655440000", "status": "completed", "totalCustomers": 3, "processed": 2, "failed": 1, "progressPercentage": 100.0, "createdAt": "2026-08-03T12:00:00Z", "processingStartedAt": "2026-08-03T12:00:01Z", "processingCompletedAt": "2026-08-03T12:00:15Z", "errorMessage": null } ``` ### Response Fields | Field | Type | Description | | - | - | - | | **jobId** | string | Unique job identifier | | **status** | string | Current status: `pending`, `processing`, `completed`, or `failed` | | **totalCustomers** | integer | Total number of customers in the batch | | **processed** | integer | Number of customers successfully synced | | **failed** | integer | Number of customers that failed to sync | | **progressPercentage** | float | Percentage of customers processed (0.0 to 100.0) | | **createdAt** | string | ISO 8601 timestamp when the job was created | | **processingStartedAt** | string or null | ISO 8601 timestamp when processing began | | **processingCompletedAt** | string or null | ISO 8601 timestamp when processing finished | | **errorMessage** | string or null | Error description if the job failed | ### Status Values * **pending** — Job is queued but background processing has not started yet * **processing** — Job is actively syncing customers. Poll again to see updated progress. * **completed** — All customers have been processed. Check `processed` and `failed` for results. * **failed** — The job encountered a fatal error (e.g., could not read batch data) or all customers failed to sync. ## Polling Recommendations * Poll every **5 seconds** while status is `processing` * Stop polling when status is `completed` or `failed` * The `progressPercentage` field provides a quick progress indicator ## Error Handling | Status | Meaning | | - | - | | **200** | Job found, status returned | | **401** | Missing or invalid API key | | **404** | Job not found (wrong ID or belongs to a different company) | | **422** | Invalid job ID format (not a valid UUID) | ## Authentication Requires **X-API-Key** header. The job must belong to the company associated with the API key. # LMS Customer Full Sync Source: https://docs.finosu.com/api-reference/endpoint/lms/sync-customer-full POST /webhooks/lms/sync/customer-full Perform a full sync of a customer and all their loans from the company's configured LMS. ## Overview Perform a full sync of a single customer and all their loans from your company's configured LMS. This endpoint can be used: * Manually by client engineers for testing * As a webhook target for automated syncs when your LMS detects updates (e.g., new loan application) The sync includes: * Customer/contact information (name, phone, email, SSN, address, etc.) * All loans for the customer * For each loan: status, amounts, and schedule creation as appropriate ## Request Body Format ```json theme={null} { "customerId": "12345" } ``` ### Fields * **customerId** — Customer identifier in your LMS **(required)**. Must be a non-empty string. ## What Happens During Sync 1. Finosu calls your company's LMS to fetch the customer's data 2. Creates or updates the customer record in Finosu (name, phone, email, birthday, SSN, address, timezone) 3. Fetches all loans for that customer from the LMS 4. For each loan: * Creates or updates the loan record in Finosu * For pending/origination loans: creates the call schedule automatically * For active loans: creates the loan record for servicing * Terminal loans (closed, paid, etc.) are skipped ## Response Format ```json theme={null} { "success": true, "lmsType": "example-lms", "customerId": "12345", "finosuCustomerId": "550e8400-e29b-41d4-a716-446655440000", "loansSynced": 1, "loans": [ { "loanId": "660e8400-e29b-41d4-a716-446655440001", "loanExternalReference": "98765" } ], "error": null } ``` ### Response Fields | Field | Type | Description | | - | - | - | | **success** | boolean | Whether the sync completed successfully | | **lmsType** | string | The LMS type used for this company | | **customerId** | string | The external customer ID you provided | | **finosuCustomerId** | UUID | The Finosu internal customer ID | | **loansSynced** | integer | Number of loans synced | | **loans** | array | Per-loan sync details | | **error** | string or null | Error description if the sync failed | ## Error Handling | Status | Meaning | | - | - | | **200** | Sync result returned; inspect `success` and per-loan errors | | **400** | LMS type does not support customer-level sync | | **401** | Missing or invalid API key | | **403** | Company not authorized for LMS integration | | **404** | Customer confirmed missing from the LMS | | **422** | Request-body validation failed or customer identifier is invalid for the configured LMS | | **500** | Unexpected provider or internal error during sync | ## Authentication Requires **X-API-Key** header with a valid webhook API key. The key determines which company and LMS integration to use. ## Syncing Multiple Customers To sync multiple customers at once, use the [LMS Customer Batch Sync](./sync-customer-full-batch.mdx) endpoint instead. It accepts an array of customer IDs and processes them asynchronously. ## Request naming Use camelCase request fields. Existing snake_case aliases are also accepted by the API. ## Retries and results `Idempotency-Key` is logged for correlation only; it does not deduplicate requests or replay earlier results. A repeated request can run the sync again. HTTP `200` means a sync result was returned. Inspect `success`, `error`, and each entry in `loans` before treating the operation as successful. Missing or invalid authentication returns `401`; request-body validation failures and invalid LMS identifiers return `422`. ## Validation-status migration Invalid LMS identifiers and batch-job UUIDs return `422`. Confirmed missing records return `404`; malformed provider data and unexpected internal failures return `500`. Unsupported LMS operations retain `400`. Update status-based integrations and monitoring: some cases previously reported as `400`, `404`, or `422` now have a different classification. This does not make retrying a sync safe or enable request deduplication. # LMS Customer Batch Sync Source: https://docs.finosu.com/api-reference/endpoint/lms/sync-customer-full-batch POST /webhooks/lms/sync/customer-full/batch Queue 1–100 external customer IDs for background processing. HTTP 202 acknowledges the job, not successful synchronization. ## Overview Sync multiple customers and all their loans from your company's configured LMS in a single request. The endpoint processes customers **asynchronously** — it immediately returns a job ID (HTTP 202 Accepted) and processes customers in the background. Use `GET /webhooks/lms/sync/batch/{jobId}` to check the processing status. Each customer is processed independently. Individual failures do not block the rest. ## How It Works 1. You send a list of customer IDs from your LMS 2. Finosu returns a job ID immediately 3. In the background, for each customer ID: * Fetches customer info from your LMS (name, phone, email, SSN, address, etc.) * Creates or updates the customer in Finosu * Fetches all loans for that customer * Creates loan records and schedules as appropriate 4. You poll for status until the job completes ## Request Body Format ```json theme={null} { "customerIds": ["12345", "67890", "11111"] } ``` ### Fields * **customerIds** - Array of customer identifiers in your LMS **(required)** * Minimum: 1 ID * Maximum: 100 IDs per request * Each ID must be a non-empty string ## Response Format The endpoint immediately returns HTTP 202 with a job ID: ```json theme={null} { "jobId": "550e8400-e29b-41d4-a716-446655440000", "totalCustomers": 3, "message": "Batch sync queued. Use GET /webhooks/lms/sync/batch/550e8400-e29b-41d4-a716-446655440000 to check status." } ``` ### Response Fields * **jobId** — Unique identifier for the batch job. Use this to poll for status. * **totalCustomers** — Total number of customers queued for processing. * **message** — Instructions for checking progress. ## Checking Job Status Use `GET /webhooks/lms/sync/batch/{jobId}` to check progress: ```json theme={null} { "jobId": "550e8400-e29b-41d4-a716-446655440000", "status": "processing", "totalCustomers": 3, "processed": 2, "failed": 0, "progressPercentage": 66.7, "createdAt": "2026-08-03T12:00:00Z", "processingStartedAt": "2026-08-03T12:00:01Z", "processingCompletedAt": null, "errorMessage": null } ``` ### Status Values * **pending** — Job is queued but not yet started * **processing** — Job is currently processing customers * **completed** — All customers have been processed (some may have failed individually) * **failed** — Job encountered a fatal error, or all customers failed ## Partial Success Handling * **Individual failures don't stop processing** — If one customer fails (e.g., not found in your LMS), the rest continue * **Detailed tracking** — The `failed` count shows how many customers could not be synced * **Transaction isolation** — Each customer is processed in its own transaction ## When to Use Batch vs Single **Use the batch endpoint when:** * Syncing multiple customers from your LMS at once * Performing initial data migration * Running scheduled sync workflows * You have more than a few customers to sync **Use the [single endpoint](./sync-customer-full.mdx) when:** * Syncing one customer in real-time (e.g., webhook from your LMS on application submission) * Testing or debugging individual customer sync * You need the sync result immediately in the response ## Comparison with POST /customers/batch | | POST /customers/batch | POST /webhooks/lms/sync/customer-full/batch | | - | - | - | | **Input** | Full customer payload (name, phone, email, address, etc.) | Just customer IDs from your LMS | | **Data source** | You provide all fields | Finosu fetches from your LMS | | **Loans** | Created separately via POST /loans | Automatically synced from your LMS | | **Schedules** | Created based on taskType | Automatically created based on loan status | | **Best for** | Companies without an LMS integration | Companies with a configured LMS | ## Error Handling | Status | Meaning | | - | - | | **202** | Job queued successfully | | **401** | Missing or invalid API key | | **403** | Company not authorized for LMS integration | | **422** | Validation error (empty list, too many IDs, empty ID) | | **500** | Failed to queue job | ## Authentication Requires **X-API-Key** header with a valid webhook API key. The key determines which company and LMS integration to use. ## Limits * Maximum **100 customer IDs** per request * Each customer ID must be a non-empty string ## Request naming Use camelCase request fields. Existing snake_case aliases are also accepted by the API. # LMS Loan Sync Source: https://docs.finosu.com/api-reference/endpoint/lms/sync-loan POST /webhooks/lms/sync/loan Sync a single loan and its associated customer from the company's configured LMS. This is a loan-centric entry point for LMS platforms where customer lookups don't reveal associated loans. ## Overview This endpoint syncs a single loan and its associated customer from the company's configured LMS. It is a loan-centric entry point for LMS platforms where customer lookups don't reveal associated loans. The caller provides the external loan ID, and the endpoint discovers and syncs the customer automatically. This endpoint can be used: * Manually by client engineers for testing * As a webhook target for automated syncs when the LMS detects loan updates The sync includes: * Customer/contact information (discovered from the loan) * The specified loan's core data and balances ## Request naming Use camelCase request fields. Existing snake_case aliases are also accepted by the API. ## Retries and results `Idempotency-Key` is logged for correlation only; it does not deduplicate requests or replay earlier results. A repeated request can run the sync again. HTTP `200` means a sync result was returned. Inspect `success`, `error`, and each entry in `loans` before treating the operation as successful. Missing or invalid authentication returns `401`; invalid request fields return `422`. ## Error responses Invalid loan identifiers return `422`; a loan or associated customer confirmed missing from the LMS returns `404`. Unexpected provider failures and malformed provider data return `500`. Unsupported LMS operations retain `400`. # Create Loans (Batch) Source: https://docs.finosu.com/api-reference/endpoint/loans/batch POST /loans/batch Create or update (upsert) many loans asynchronously. Large batches are split server-side into parallel slices of 25 rows. Returns a job ID immediately; poll GET /loans/batch/{jobId} for progress and for every row that failed. Each row has the same semantics as POST /loans, including the upsert on (customerId, id), so resubmitting a batch updates rather than duplicates. ## Overview Create or update (upsert) many loans in a single request. Use this for portfolio boarding and for daily bulk syncs from your loan management system. The endpoint processes loans **asynchronously** — it returns a job ID immediately (HTTP 202 Accepted) and works the batch in the background. Poll `GET /loans/batch/{jobId}` for progress and for every row that failed. Each row has exactly the same semantics as [Create Loan](./create.mdx) — same fields, same validation, same upsert behavior, same schedule creation. Nothing about a loan behaves differently because it arrived in a batch. > [!NOTE] > > Customers must exist before their loans are pushed. Board customers first via > [`POST /customers/batch`](/api-reference/endpoint/customers/batch), then send this > request. A row whose `customerId` is unknown fails individually and does not affect the > rest of the batch. ## Batch Size There is no fixed limit on rows per request. Large batches are split server-side into slices of 25 rows that are processed in parallel, so a boarding file does not have to be chunked by hand. That said, the whole request is buffered and validated before anything is queued, so prefer requests in the low thousands over one enormous submission — it keeps validation feedback fast and makes a network failure cheaper to retry. Every `(customerId, id)` pair must be unique **within a single request**. Rows are worked in parallel slices, so two rows naming the same loan would race — which one wins depends on worker timing, and if they disagree on `amountDue` the loser is reported as a per-row failure for a loan you did intend to send. We reject the request up front instead. This is a different case from sending the same loan again in a **later** request, which updates it rather than duplicating it — see [Idempotency](#idempotency). ## Request Body Format An array of loan records wrapped in a `loans` field: ```json theme={null} { "loans": [ { "id": "LOAN-12345", "customerId": "CUST-001", "type": "CASH_ADVANCE", "applicationStatus": "FUNDED", "originalFundedAmount": 500.00, "originalTotalOwed": 650.00, "originationDate": "2026-04-01", "totalBalance": 425.00, "amountDue": 125.00, "dueDate": "2026-05-01", "servicingStatus": "ACTIVE", "chargeoffDate": "2026-06-15", "chargeoffAmount": 425.00, "portfolioId": "3607837d-2daf-4772-90db-638a2fa008df", "taskType": "Collections" }, { "id": "LOAN-12346", "customerId": "CUST-002", "originationDate": "2026-03-10", "totalBalance": 890.50, "amountDue": 210.00, "dueDate": "2026-05-05", "servicingStatus": "ACTIVE" } ] } ``` ### Individual Loan Schema Each object in the `loans` array follows the same schema as the [single loan endpoint](./create.mdx), including all required fields (`id`, `customerId`, `amountDue`, `servicingStatus`, `totalBalance`, `originationDate`, and `dueDate` or `delinquencyDate`) and every validation rule — non-negative balances, chargeoff field pairing, settlement percentage pairing, and `servicingStatus: ACTIVE` on create. ## Response Format ```json theme={null} { "jobId": "550e8400-e29b-41d4-a716-446655440000", "totalLoans": 400, "message": "Batch job created with 16 parallel batches. Use GET /loans/batch/550e8400-e29b-41d4-a716-446655440000 to check status." } ``` ### Response Fields * **jobId** — Unique identifier for the batch job. Use it with `GET /loans/batch/{jobId}` * **totalLoans** — Number of loans queued for processing * **message** — How many parallel slices the job was split into, and how to poll it ## Checking Job Status Use `GET /loans/batch/{jobId}` to check progress and read every row that failed: ```json theme={null} { "jobId": "550e8400-e29b-41d4-a716-446655440000", "status": "completed", "totalLoans": 400, "processed": 398, "failed": 2, "progressPercentage": 100.0, "createdAt": "2026-08-17T10:30:00+00:00", "processingStartedAt": "2026-08-17T10:30:04+00:00", "processingCompletedAt": "2026-08-17T10:31:42+00:00", "errorMessage": null, "failures": [ { "index": 7, "id": "LOAN-12352", "customerId": "CUST-999", "message": "404: Customer with ID CUST-999 not found" }, { "index": 261, "id": "LOAN-12606", "customerId": "CUST-014", "message": "422: amountDue is immutable. Existing value is 425.00, but request sent 500.00." } ] } ``` ### Status Values * **pending** — Queued, not yet started * **processing** — Slices are being worked * **completed** — Finished. **Individual rows may still have failed** — check `failures` * **failed** — Every row failed, or the job hit a fatal error. See `errorMessage` > [!WARNING] > > `status: completed` does **not** mean every loan succeeded — it means the job finished. > Always reconcile against `failed` and `failures` rather than treating `completed` as > success. ### Failures `failures` lists **every** row that could not be written — never truncated, however many there are. Successful rows are not enumerated; they are the set you submitted minus these. | Field | Description | | - | - | | `index` | 0-based position of the row in the `loans` array you submitted | | `id` | External loan reference ID, exactly as submitted | | `customerId` | External customer reference ID, exactly as submitted | | `message` | Why the row was rejected, prefixed with the status code the equivalent single `POST /loans` call would have returned | `index` is the position in **your** array, not within a server-side slice, so you can walk failures straight against your source file. Common failure messages: * `404: Customer with ID {customerId} not found` — board the customer first via [`POST /customers`](/api-reference/endpoint/customers/create) or [`POST /customers/batch`](/api-reference/endpoint/customers/batch) * `422: amountDue is immutable...` — the row changed `amountDue` on a loan that already exists * `422: Invalid type '...'. Valid values: [...]` — an unrecognised enum value, checked when the row is written rather than during request validation * `422: Customer timezone is required for schedule creation...` — the customer has no valid IANA timezone, so no collections schedule can be built * `500: Internal error processing this loan` — a fault on our side. The row was not written; resubmit it ### Polling Slices publish their failures when they finish, so `failures` fills in in bursts and is **partial** while `status` is `processing`. Poll until `status` is `completed` or `failed` before treating the list as the final record. The array is always sorted by `index` regardless of which slice finished first. `progressPercentage` is `(processed + failed) / totalLoans * 100`, so it reaches `100` even when some rows failed. Status errors: `422` if `jobId` isn't a valid UUID, `404` if no loan batch job with that ID exists for the authenticated company. ## Partial Success Handling * **Individual failures don't stop processing** — a bad row is recorded and skipped; the remaining loans are still processed, including the rest of its own slice * **Transaction isolation** — each loan is committed in its own transaction, so one failure can never roll back a loan that already succeeded * **Nothing is truncated** — every failed row is reported, however many there are Note the split between the two kinds of error. Anything the request **schema** can catch — a negative balance, an unpaired `chargeoffDate`, a malformed `portfolioId`, an empty `loans` array, a duplicate `(customerId, id)` — is rejected as `422` up front and **nothing is queued**. Everything checked while the row is written — an unknown `customerId`, a mismatched immutable `amountDue`, a customer with no valid timezone — is reported per row in `failures`. Enum-valued fields fall in that **second** group, which is easy to guess wrong. `type`, `applicationStatus`, `servicingStatus`, and the `no*Reason` fields are plain strings on the wire, so an unrecognised value passes request validation and is only rejected when that row is written. The accepted batch keeps its HTTP `202`; the status response records a per-row message prefixed with `422:`. This matches [Create Loan](./create.mdx), which returns `422` for the same mistake. ## Idempotency Batch loan creation is **idempotent on `(customerId, id)`** across requests. Every row upserts, so resubmitting a batch after a timeout or a partial failure updates the loans that already landed rather than duplicating them. No schedule or scheduled payment is created a second time. Repeating a pair *within one request* is the separate case rejected up front — see [Batch Size](#batch-size). Retrying a batch verbatim is therefore always safe, and resubmitting the whole file is a reasonable way to recover from a partial failure. Note that `amountDue` is immutable after creation, so an unchanged resubmission is fine, but changing `amountDue` on a resubmitted row fails that row. ## What the Endpoint Does 1. **Validates the whole request** — every row against the loan schema, plus the duplicate check. Any failure rejects the request with `422` and queues nothing 2. **Queues the job** — stores the submitted payload, splits it into slices of 25 rows, and returns HTTP 202 with a job ID 3. **Processes slices in parallel** — for each loan, in its own transaction: * Resolves the customer by `customerId` * Creates the loan, or updates it if an active loan with that `id` already exists * Creates the collections schedule for the resolved `taskType` (new loans only) * Creates the opening scheduled payment (new loans with a positive `amountDue` only) * Records the row on the job if it failed ## When to Use Batch vs Single **Use the batch endpoint when:** * Boarding an initial portfolio * Running a daily or weekly bulk sync from your loan management system * You have more than 5–10 loans to push **Use the [single endpoint](./create.mdx) when:** * Pushing a loan in real time as it boards * You need the created loan echoed back synchronously — the batch response contains only a job ID, not loan bodies * Testing or debugging one loan ## Error Handling The endpoint returns `202 Accepted` whenever the request is well-formed. Request-level failures: | Status Code | Description | | - | - | | 401 | Missing, empty, invalid, inactive, or unknown `X-API-Key` | | 422 | Any row fails schema validation, empty `loans` array, or a duplicate `(customerId, id)` | | 500 | Could not store or queue the batch. Nothing was processed — safe to retry | Per-row failures are **not** HTTP errors. They surface in the `failures` array of the status response with the status code the equivalent single call would have returned — `404` for an unknown `customerId`, `422` for a changed immutable `amountDue`, an unrecognised enum value, a missing customer timezone, or a `taskType` that isn't valid for your company. ## Authentication Authentication via **X-API-Key header**: * API key is company-scoped * Must be obtained from Finosu * Same authentication as the single loan endpoint * A `jobId` is only visible to the company that created it ## Example Usage This endpoint is typically used for: * **Portfolio boarding** — push a placement's loans as they transfer * **Daily reconciliation** — resend open accounts so balances and statuses stay in sync * **Bulk LMS sync** — mirror loan state from your loan management system ## Validation-status migration Loan, call, scheduled-call and ACH confirmation/return request-validation errors now use `422` instead of `400`. During rollout, accept both statuses for migrated errors. Customer and loan batch envelopes retain `202`; loan-worker validation failures use `422:` row-message prefixes. Unexpected worker failures retain `500:` prefixes. Schema-valid ACH batches retain `200` with individual results. Correct invalid input before retrying. Authentication, missing-resource and conflict responses remain unchanged. Unexpected call lookup and scheduling failures previously mislabeled as `400` now return `500`. A server error does not establish that a write is safe to retry. # Cancel Loan Servicing Source: https://docs.finosu.com/api-reference/endpoint/loans/cancel-servicing POST /loans/{id}/cancel-servicing Cancel loan servicing and all associated scheduled payments and communications. Sets the loan's servicing status to NOT_SERVICING and cancels all pending scheduled payments, calls, emails, and SMS. ## Overview This endpoint cancels servicing for a specific loan, stopping all automated communications and scheduled payments. Use this when a loan should no longer be actively serviced by the platform. This is a collections operation. To close an origination application that was funded, withdrawn, or rejected, use [Close Origination](/api-reference/origination/close) instead. To stop servicing every loan a customer owns, use [Cancel Customer Servicing](/api-reference/endpoint/customers/cancel-servicing). ## What Gets Cancelled When you call this endpoint, the following actions are taken: * **Loan Status**: Sets the loan's servicing status to `NOT_SERVICING` * **Stop Reason**: Records the reason for stopping servicing (defaults to `API_REQUEST`) * **Scheduled Payments**: Cancels all pending scheduled payments for the loan * **Scheduled Calls**: Cancels all pending scheduled calls * **Scheduled Emails**: Cancels all pending scheduled emails * **Scheduled SMS**: Cancels all pending scheduled SMS messages * **Call Schedules**: Cancels all active loan call schedules * **Email Schedules**: Cancels all active loan email schedules * **SMS Schedules**: Cancels all active loan SMS schedules * **Borrower Portal**: Hides the loan from the borrower portal Payment-plan records remain in place; their unpaid scheduled installments are cancelled. Payments already submitted to a processor are not reversed. Repeated requests recheck payment and communication cleanup while preserving an existing stop reason. ## Use Cases * Customer has paid off their loan in full * Loan has been sold to another servicer * Customer filed for bankruptcy * Fraud has been detected on the account * Customer is deceased * Customer is in the military (SCRA protection) * Loan was created by mistake and needs to be removed from servicing ## Stop Servicing Reasons You can optionally provide a reason for stopping servicing. Retrieve the current accepted values with [List Stop Servicing Reasons](/api-reference/endpoint/loans/stop-servicing-reasons) instead of hardcoding a list. The same catalog applies to loan and customer cancellation. Send the selected case-sensitive string as `reason`; omitting it defaults to `API_REQUEST`. This records a stop reason; it does not invoke the corresponding bankruptcy, dispute, or other flag workflow. ## Request Body The request body is optional. If not provided, the reason defaults to `API_REQUEST`. ```json theme={null} { "reason": "API_REQUEST", "note": "Servicing recalled at the lender's request." } ``` `note` is optional free-form text, trimmed before storage, with a limit of 2,000 characters. Omit it or send `null` when no note is needed; blank notes are rejected. Common SSN, card/account-number, email and phone patterns are redacted before storage in the loan's servicing audit history. Redaction is pattern-based, not a guarantee of removing every sensitive detail. An identical repeated request does not duplicate the latest audit entry. A different note is retained even if servicing was already stopped, without replacing the original stop reason. ## Response The response includes counts of all cancelled items: ```json theme={null} { "id": "LOAN-12345", "servicingStatus": "NOT_SERVICING", "stopServicingReason": "API_REQUEST", "cancelledScheduledPayments": 3, "cancelledCallSchedules": 1, "cancelledEmailSchedules": 1, "cancelledSmsSchedules": 1, "cancelledCalls": 5, "cancelledEmails": 2, "cancelledSms": 3 } ``` ## Error Responses | Status Code | Description | | - | - | | 422 | Invalid cancellation reason or request body | | 404 | Loan not found | | 500 | Internal server error | For `422` responses, `detail` is a string when the supplied reason is not accepted, or an array of validation errors when the request body has an invalid type or structure (for example, `{"reason": 123}`). Each validation error includes `loc` (the field location), `msg` (the message), and `type` (the error code); additional fields may be present. Clients should handle both forms. # Create Loan Source: https://docs.finosu.com/api-reference/endpoint/loans/create POST /loans Create or update (upsert) a loan pushed from an external partner. The loan is keyed on (customer, externalReference). Returns 201 on create, 200 on update. Your system owns the collection/charge-off category; no separate category field is required. Boarding does not itself authorize balance uploads. The collection-only feed is disabled by default and is available only after Finosu enables its rollout gate for explicitly approved integrations. Contact Finosu to confirm eligibility for your authenticated account. Eligible loans must be active, unambiguously identified and company-owned, and pass the payment/plan-history checks. Your system must still exclude charge-off accounts. Finosu does not infer your account category from stored `chargeoffDate` or `chargeoffAmount`; those boarding fields neither block the balance feed nor establish collection status. See [Update Loan](/api-reference/endpoint/loans/update) for the one-field `current_balance` contract, all eligibility checks and the `409` rollout response. Existing charge-off fields remain available for their existing purposes. Boarding and batch payloads retain their existing `totalBalance` behavior. ## Overview Create or update (upsert) a loan pushed from an external partner. The loan is keyed on the combination of `customerId` and `id` (your external loan reference). If an **active** loan with the same external reference already exists for the customer, it is updated in place; otherwise a new loan is created. This endpoint is designed for **collections intake** -- all loans must be created with `servicingStatus: ACTIVE`. Pushing more than a handful of loans at once? Use [Create Loans (Batch)](./batch.mdx) instead -- it takes any number of loans per request with the same per-loan schema and the same semantics. ## Upsert Behavior `POST /loans` is an **upsert**. If you push a loan that already exists (matched on `id` + `customerId` among active loans), we update the existing record. Soft-deleted or deactivated (NOT_SERVICING) loans are not matched -- a new active loan is created instead. * **New loan**: Returns `201 Created` * **Existing loan updated**: Returns `200 OK` * **Concurrent duplicate**: Returns `409 Conflict` ## Required Fields | Field | Type | Description | | - | - | - | | `id` | string | Your stable loan reference ID. Must be unique per customer among active loans. | | `customerId` | string | Must match the `id` used when the customer was pushed via `POST /customers`. | | `amountDue` | number | The amount the borrower has left to pay; equals `totalBalance` when the full balance is placed for collection. Charged-off loans with no scheduled installment may send `0` when `chargeoffDate` and `chargeoffAmount` are also provided. **Must be non-negative. Immutable after creation** -- cannot be changed on subsequent upserts. | | `dueDate` | string | Date the loan first became overdue (`YYYY-MM-DD`): its earliest unpaid installment, not the next upcoming one. For a charged-off loan with `amountDue: 0`, the last missed contractual due date, or `chargeoffDate` when that date is unavailable. Do not send the borrower's next payroll date. **Required unless `delinquencyDate` is provided.** | | `delinquencyDate` | string | Date the loan is delinquent from as of placement (`YYYY-MM-DD`): its earliest unpaid installment. **Required unless `dueDate` is provided.** When both are sent, `delinquencyDate` is used. See [Delinquency date](#delinquency-date). | | `servicingStatus` | string | Must be `ACTIVE` on create. On upsert, can be set to `NOT_SERVICING` to stop servicing. | | `totalBalance` | number | Current outstanding balance. Must be non-negative. | | `originationDate` | string | Date the loan was originated (`YYYY-MM-DD`). Required for cadence policy. | ## Validation Rules ### Balance fields (non-negative) All monetary fields must be `>= 0` when provided: `totalBalance`, `originalFundedAmount`, `originalTotalOwed`, `totalPayoffAmount`, `payoffAmount`, `balanceAtTransfer`, `preTransferPayments`, `chargeoffAmount`. `amountDue` must be **non-negative** (`>= 0`). A zero value is accepted only when `chargeoffDate` and `chargeoffAmount` are also provided. The amount and `dueDate` are stored on the loan, but no initial scheduled-payment obligation is created. `dueDate` is the date the loan first became overdue (its earliest unpaid installment); this is what our platform uses to track delinquency, not the next upcoming installment. For a charged-off loan with no scheduled installment, `dueDate` is the last missed contractual due date. If that date is unavailable, send `chargeoffDate`. The borrower's next payroll date is not a loan due date and must not be sent in this field. ### Delinquency date `delinquencyDate` states explicitly when the loan became delinquent: its earliest unpaid installment. Send `delinquencyDate`, `dueDate`, or both; at least one is required. When both are sent, `delinquencyDate` is used as the loan's due date, on both create and upsert. The response `dueDate` always reflects the stored due date. `delinquencyDate` must be a `YYYY-MM-DD` date and must not be in the future. A future or malformed value returns `422`. If you send `delinquencyDate` without `daysPastDueAtBoarding`, we compute `daysPastDueAtBoarding` when the loan is created, as the number of days from `delinquencyDate` to the day we board the loan. A `daysPastDueAtBoarding` you send is always kept. It is set once at creation and is not recalculated on upsert. ### Rate fields `interestRate` and `apr` must be non-negative. Values are stored as decimals where `1.0` = 100%. High-interest loans can have values above 1.0 (e.g. `6.49` = 649% APR). ### Chargeoff pairing `chargeoffDate` and `chargeoffAmount` must **both be set or both omitted**. Setting only one returns a validation error. ### Settlement percentages pairing `paymentPlanMinPercentage` and `paymentPlanMaxPercentage` must **both be set or both omitted**. When set, both must be between `0` and `1`, and `min <= max`. When both are omitted (null), the loan is **pay-in-full only** unless the authenticated lender has an approved creation-time derivation policy. Approved creation-time derivation policies are account-specific. When enabled, they may use `originalFundedAmount`, `preTransferPayments`, and `totalBalance` to determine the settlement band and any principal-recovery floor. Contact your Finosu account manager for the policy configured for your account; do not assume a policy is enabled. Providing both percentages explicitly overrides automatic derivation. For accounts with a derivation policy, missing inputs or values unusable by that policy result in pay-in-full treatment after request validation succeeds. Values that violate request validation, such as negative monetary amounts, return HTTP `422` instead. The band is set once at creation; later updates do not recompute it. ### Portfolio ID `portfolioId` must be a valid UUID when provided. If omitted, defaults to the configured portfolio for your company. ### Servicing status `servicingStatus` must be `ACTIVE` on loan creation. To stop servicing on an existing loan, you can either upsert with `servicingStatus: NOT_SERVICING` (which also updates any other loan fields in the same call) or use the dedicated `POST /loans/{id}/cancel-servicing` endpoint. Both cancel all scheduled payments and communications. ### Schedule creation A collections schedule is automatically created on new loans based on the specified `taskType`. The customer must have a valid IANA timezone set. `taskType` defaults to `Collections` if not specified. ## Request Body ```json theme={null} { "id": "LOAN-12345", "customerId": "CUST-001", "type": "CASH_ADVANCE", "applicationStatus": "FUNDED", "originalFundedAmount": 500.00, "originalTotalOwed": 650.00, "interestRate": 0.2999, "apr": 0.3550, "originationDate": "2026-04-01", "startDate": "2026-04-01", "totalBalance": 425.00, "payoffAmount": 425.00, "amountDue": 425.00, "dueDate": "2026-05-01", "delinquencyDate": "2026-05-01", "servicingStatus": "ACTIVE", "autopayEnabled": true, "isVisibleInBorrowerPortal": true, "portfolioId": "3607837d-2daf-4772-90db-638a2fa008df", "paymentPlanMinPercentage": 0.60, "paymentPlanMaxPercentage": 0.80, "taskType": "Collections" } ``` ## Error Responses | Status Code | Description | | - | - | | 404 | Customer with the given `customerId` not found | | 409 | Concurrent duplicate -- another request created the same loan | | 422 | Invalid enum value, `servicingStatus` not `ACTIVE` on create, mismatched `amountDue` on upsert, invalid timezone, negative balance/rate, unpaired chargeoff/settlement fields, future or malformed `delinquencyDate`, neither `dueDate` nor `delinquencyDate` sent, invalid UUID, or missing required field | | 500 | Internal server error | # Delete Loan Source: https://docs.finosu.com/api-reference/endpoint/loans/delete DELETE /loans/{id} Soft-delete a loan. Sets servicing status to NOT_SERVICING, cancels scheduled payments and communications. ## Overview Soft-delete a loan by its external reference ID. This endpoint: * Sets the loan's servicing status to `NOT_SERVICING` * Cancels all scheduled payments for the loan * Cancels all scheduled communications (calls, emails, SMS) * Marks the loan as deleted (soft-delete) The loan record is preserved in the database for audit purposes but will no longer appear in normal queries or be actively serviced. ## Response The response includes counts of all cancelled items: ```json theme={null} { "id": "LOAN-12345", "deleted": true, "servicingStatus": "NOT_SERVICING", "cancelledScheduledPayments": 2, "cancelledCalls": 3, "cancelledEmails": 1, "cancelledSms": 1 } ``` ## Error Responses | Status Code | Description | | - | - | | 404 | Loan not found | | 500 | Internal server error | # List Stop Servicing Reasons Source: https://docs.finosu.com/api-reference/endpoint/loans/stop-servicing-reasons GET /loans/stop-servicing-reasons Returns the complete, unpaginated array of case-sensitive reasons accepted by both loan and customer cancel-servicing endpoints. Values are shared by all authenticated companies. Additional values may be added; clients must not rely on array positions or a fixed length. Use this authenticated lookup to populate cancellation options without hardcoding reason codes. It returns the complete array of case-sensitive strings accepted by [Cancel Loan Servicing](/api-reference/endpoint/loans/cancel-servicing) and [Cancel Customer Servicing](/api-reference/endpoint/customers/cancel-servicing). ## Request ```bash theme={null} curl --request GET 'https://api.finosu.com/loans/stop-servicing-reasons' \ --header 'X-API-Key: YOUR_API_KEY' ``` ## Response HTTP `200` returns a JSON array of strings, with no pagination or request parameters. The OpenAPI example shows the current catalog. Missing, empty, invalid, or inactive API keys return `401`. The catalog is the same for every authenticated company. Use the selected value unchanged as `reason` in a cancellation request: ```json theme={null} {"reason": "PAID_OFF"} ``` Omitting `reason` from a cancellation request still defaults to `API_REQUEST`. This lookup does not cancel servicing or change loan/customer records. ## Reason descriptions These descriptions explain the currently accepted codes. Fetch the lookup at runtime for the current list; this table is reference documentation, not a list to copy into your integration. Selecting a reason records why servicing stops; it does not perform a loan transfer or complete another business workflow. | Reason | Description | | - | - | | `API_REQUEST` | Default reason when servicing is cancelled through the API. | | `PAID_OFF` | The loan has been paid in full. | | `BANKRUPTCY` | The customer has filed for bankruptcy. | | `FRAUD_CLAIM` | A fraud claim has been reported for the account. | | `MILITARY` | Servicing is stopped because of the customer's military protections under SCRA. | | `DECEASED` | The customer is deceased. | | `INCARCERATED` | The customer is incarcerated. | | `DEBT_MANAGEMENT_COMPANY` | The account is being handled by a debt management company. | | `NO_LOGIN_2M` | No customer login for two months. | | `NO_PAYMENT_OR_PLAN_3M` | No payment or payment plan for three months. | | `NO_PLAN_PAYMENT_2M` | No payment toward the payment plan for two months. | | `NO_PAYMENT_OR_PLAN_4M` | No payment or payment plan for four months. | | `SOLD_OFF` | The loan has been sold to another servicer. | | `MISTAKE` | The loan was created in error. | | `DEBT_DISPUTE` | The customer is disputing the debt. | | `COMPLAINT_TRIGGER` | Servicing is stopped following a customer complaint. | | `HISTORICAL_INELIGIBLE` | The loan was historically ineligible for servicing. | | `DUPLICATE` | The loan is a duplicate record. | | `REFUSES_TO_PAY` | The customer refuses to pay. | | `LMS_CLOSED` | The loan was closed in the external loan management system. | | `DATA_DEFECT_HOLD` | Servicing is on hold because required account data is missing, invalid, or out of date. | | `COERCED_DEBT_CLAIM` | The customer has reported that the debt was incurred through coercion. | | `TRANSFERRED_TO_FINOSU` | The account has moved to Finosu for servicing; servicing stops on the original lender's loan record. | ## Compatibility Read values by name, not array position. Additional reasons may be added; do not assume a fixed count or compile the response into a closed client-side enum. Refresh the lookup when presenting cancellation options. Cancellation endpoints remain authoritative and still validate the reason and target account. # Update Loan Source: https://docs.finosu.com/api-reference/endpoint/loans/update PUT /loans/{id} Partially update a loan by its external reference. Only send fields that changed. amountDue is immutable. ## Overview Partially update a loan by its external reference ID. Only the fields that changed need to be sent -- omitted fields are left unchanged. ## Collection balance updates Use `PUT /loans/{id}`, where `id` is your **external loan ID**, with the company API key in `X-API-Key` and this entire JSON payload: ```json theme={null} { "current_balance": "905.00" } ``` `current_balance` is the outstanding balance including accrued interest. It is an absolute USD amount, not an increment. Send no interest, timestamp, update ID, classification, or other loan fields in this request. The snake_case spelling is required. Decimal strings are recommended; amounts must be finite, nonnegative, at cent precision, and no greater than `99999999.99`. ### Scope and stopping updates This feed is available only to explicitly approved integrations; contact Finosu to confirm eligibility for your authenticated account before sending updates. Each request must identify a single unambiguous, active, company-owned loan. **Send collection accounts only, never charge-off accounts.** Your system owns the category; Finosu adds no category field and does not infer that category from stored `chargeoffDate` or `chargeoffAmount`. Those boarding fields do not block this feed and remain unchanged. Your integration must stop publishing once Finosu receives any full or partial payment or a payment plan is created. Finosu also enforces this locally: uploads return `409` while money is pending, after confirmed/returned/refunded payment activity, or after plan creation. A failed attempt that never received money does not by itself freeze accrual. Hidden/deleted history cannot remove the freeze. These checks run under the same loan lock used for direct payment reservations and plan creation; partner notification delivery is not the only protection against a late upload. The last accepted external amount becomes the enrolled loan's local calculation basis. Later successful payments reduce it exactly once; pending payments reduce only today's available-to-pay amount. Returns restore the local cash deduction without automatically authorizing interest resumption. Accepted plan totals remain fixed. The internal `totalBalance`, boarding fields and ledger transactions are not rewritten by this feed. Loans not enrolled retain their existing calculations. Staff `currentTotalBalance` remains the existing internal-ledger display; it is not relabeled as the external amount. For reconciliation, distinguish that value from the accepted `current_balance` and the borrower-payable amount after local cash. ### Ordering and retries There is **no sender timestamp or idempotency key** in this contract. Updates are applied in serialized server-receipt order, not source-effective order. Each accepted request records an audit snapshot, including equal amounts; retries can add audit rows but cannot add the amount to the balance. The response includes the latest accepted `current_balance`; `totalBalance` remains the independent internal field. Your integration must serialize uploads per loan (one outstanding request), stop and discard queued/retried uploads when a payment/plan notification arrives, and never retry an old value after a newer one. A timeout is ambiguous; do not assume the upload failed. Finosu cannot distinguish a delayed old value from a fresh one once updates are allowed again. Lifecycle protection rejects packets **during** a freeze; it is not an end-to-end freshness guarantee after resumption. ### Resumption and rollout gates The agreed resume cases are a Finosu-side plan cancellation, or a qualifying return after plan completion. These are **not generic permission to restart uploads**: * Cancellation resumption requires an explicit Finosu lifecycle signal, a durable delivery receipt, and a fresh balance that starts a new local deduction baseline. The historical `PaymentPlanCancelled` wire contract must be reconfirmed with your integration team; its new sender is disabled until that contract/rollout setting is approved. For a v2-enrolled loan with financial history linked to any payment plan, cancellation itself returns `409` for manual review **before changing the plan**. Removing that agreement without historical plan-payment/credit accounting could overstate the payable amount. Paid-plan cancellation and later return/resumption need separate v2 accounting support; merely holding uploads is not sufficient. An unpaid current plan is not by itself eligible: any transaction history linked to any of the loan's plans (including failed, returned, prior or deleted rows), or any loan-credit ledger history, still requires manual review. Cancellation also checks active servicing, company scope, other active plans, and processing or scheduled terminal payments. Non-enrolled loans are unchanged. * Return-based resumption is agreed intent, **not operationally available in this implementation**. It requires a separate implementation and confirmation of the hard/soft return mapping and which outcomes resume accrual. Neither rollout flag enables it. Existing retry recommendations are not an interest-accrual policy. Raw return codes/reasons remain unchanged. * Before any authorized resume, discard all pre-freeze pending uploads/retries. The single-field payload cannot prove a source epoch or distinguish their lateness. Until the cancellation rollout requirements are met, cancellation does not reopen balance admission; subsequent balance uploads return `409`. Returns never authorize resumption in this implementation. Do not resume solely because a plan is inactive, a payment returned, a webhook was queued, or a previous upload succeeded. Finosu must deploy compatible API and payment-worker readers before enrolling loans. Snapshot and enrollment evidence must be preserved on rollback; stop new submissions rather than deleting it. Historical enrollment requires a reviewed migration; this endpoint performs no schema migration or historical backfill. New uploads are disabled by default and require separate enablement by Finosu after reader compatibility is confirmed. Disabling uploads does not stop local payments or existing enrolled-balance readers. Cancellation-based resumption has its own separate rollout setting, which remains disabled until your integration team reconfirms the cancellation signal and the gated lifecycle is accepted. While uploads are disabled, the API returns `409` without changing the balance, enrollment, or snapshots. Publishing this documentation does not enable either capability or establish eligibility for your account. ## Fraud Use `fraud` on this endpoint because fraud belongs to one exact loan, not the customer generally. `true` records the fraud claim, stops servicing for `FRAUD_CLAIM`, blocks all communication channels, and cancels pending communications and scheduled payments for this loan. `false` clears the fraud fact and removes only fraud-owned holds; another active compliance restriction continues to control servicing and channel blocks. Repeating the current value is idempotent. Omitted or `null` makes no change. Do not combine `fraud` with `servicingStatus`, `stopServicingReason`, `noCallReason`, `noTextReason`, `noEmailReason`, or `isVisibleInBorrowerPortal`; those fields are owned by the fraud cascade for that request. If duplicate live records share the external loan ID, a fraud update returns `409` rather than choosing an arbitrary loan. ## Immutable Fields The following fields **cannot be changed** via this endpoint: * `id` -- The external loan reference (used as the path parameter) * `customerId` -- The customer linkage * `amountDue` -- The origination amount set at creation ## Servicing Status Transitions Setting `servicingStatus` to `NOT_SERVICING` via this endpoint also **cancels all scheduled payments and communications** for the loan, matching the behavior of `POST /loans/{id}/cancel-servicing`. You can optionally include `stopServicingReason` (defaults to `API_REQUEST`). For stopping servicing specifically, the dedicated `POST /loans/{id}/cancel-servicing` endpoint remains the primary path. ## Request Body Only send the fields you want to update: ```json theme={null} { "totalBalance": 300.00, "payoffAmount": 300.00, "isSettled": false } ``` Fraud on the exact loan: ```json theme={null} { "fraud": true } ``` Transition to NOT_SERVICING: ```json theme={null} { "servicingStatus": "NOT_SERVICING", "stopServicingReason": "PAID_OFF" } ``` ## Error Responses | Status Code | Description | | - | - | | 422 | Invalid enum value | | 404 | Loan not found | | 500 | Internal server error | # Record External Payment Source: https://docs.finosu.com/api-reference/endpoint/payments/external POST /external-payments Record money already collected and settled in a lender/LMS. Requires the exact company-owned loan/account identifier. This creates no Finosu processor charge. The company-scoped transactionId is the atomic idempotency identity: exact retries return 200 and the original transaction; changed payloads return 409. Only settled USD payments are supported; pending, returns, reversals, refunds, negative adjustments, and corrections are rejected. Use this endpoint when your lender or loan management system (LMS) collected a payment outside Finosu and the money has already settled. Finosu records and applies the payment; it does not create an ACH/card processor charge. This is different from [Confirm ACH Settlement](/api-reference/endpoint/ach-confirms/create), which updates a payment that Finosu already originated. ## Authentication and account identity Send the company API key in `X-API-Key`. The key determines the company scope; company or customer IDs in the request cannot widen it. `loanId` is required and must be the exact company-owned external loan/account identifier. A customer identifier is not accepted because one customer can have multiple loans. Unknown or other-company identifiers return `404`. If legacy data makes an identifier ambiguous within the authenticated company, Finosu returns `409` and records nothing. ## Request ```json theme={null} { "loanId": "ACCOUNT-1001", "transactionId": "lms-payment-001", "sourceSystem": "example-lms", "amount": "125.25", "currency": "USD", "paymentDate": "2026-10-16", "status": "settled", "settlesLoan": false } ``` * `transactionId` is the lender's stable transaction identity. It must be unique across every feed used by the authenticated company, not merely within one loan. * `sourceSystem` is a stable lowercase LMS identifier using letters, digits, `.`, `_`, or `-`, starting with a letter or digit and no longer than 50 characters. Finosu stores it as payment provenance; it is not a predefined enum. Choose an identifier for your originating system, such as `"example-lms"`. Keep it unchanged on retries: changing the source for an existing `transactionId` returns `409`. Omission is allowed only when Finosu has explicitly confirmed a fixed default source for your authenticated integration. Otherwise, supply `sourceSystem`. For an approved integration, omission and its exact configured default identify the same source. Confirm that value with Finosu; do not invent one. Explicit existing source values remain supported and must be preserved on retries of those earlier payments. `null` is not accepted. * `amount` is a positive USD decimal no greater than `21474836.47`, with at most two fractional digits. JSON strings are recommended to preserve decimal precision. * `paymentDate` is the settlement date in ISO `YYYY-MM-DD` format. * `status` must be `settled`. Pending, submitted, failed, returned, reversed, or refunded events are not accepted by this contract. * Set `settlesLoan` to `true` only after the lender has finalized this payment as full payoff or negotiated settlement. It invokes the existing external settlement flow, including stopping servicing and pending communications. CamelCase is preferred. Matching snake_case field names remain accepted. Extra fields are rejected. ## Idempotency and conflicts No separate idempotency header is needed. Finosu atomically claims `(authenticated company, transactionId)` in the payment transaction itself. * The first accepted request returns `201` and `status: "recorded"`. * An exact retry returns `200`, the original `paymentTransactionId`, and `status: "duplicate"`. It does not apply money or settlement effects again. * Reusing the same `transactionId` with a changed loan, source, amount, date, currency, status, or `settlesLoan` value returns `409`. The original payment remains unchanged. The database uniqueness claim is race-safe, so simultaneous exact retries produce one payment. ## Accounting and integration behavior The payment is stored as a successful `EXTERNAL_IMPORT` transaction and uses the same scheduled-payment allocation and external-settlement services as the canonical CSV flow. Rollover rows may be created when one payment covers multiple installments, but their total equals the request amount. Finosu does not create an `AchPayment`, payment method, gateway transaction, or processor charge. Imports dated before boarding remain pre-boarding history and are not allocated to a later Finosu payment plan. Existing balance calculations exclude that history where the transferred balance already includes it, preventing double counting. Post-boarding imports participate in normal balance, reporting, and payoff calculations. `EXTERNAL_IMPORT` payments are ineligible for LMS payment writeback. The stored source provenance also identifies the originating LMS, preventing the import from being echoed back as a new Finosu-originated payment. ## Response ```json theme={null} { "paymentTransactionId": "17f82780-3c2d-4e71-bbad-03ca7f713e4f", "transactionId": "lms-payment-001", "loanId": "ACCOUNT-1001", "amount": "125.25", "currency": "USD", "paymentDate": "2026-10-16", "status": "recorded", "replayed": false, "overpayment": false, "settledLoan": false } ``` ## Returns, reversals, and corrections Do not represent a return, reversal, or correction by sending a negative amount or by reusing `transactionId` with changed data; both are rejected. The existing `/ach-returns` API is only for ACH payments Finosu originated and is not a general reversal API. Until a separate immutable external-adjustment contract is published, contact Finosu support for a reviewed correction. This endpoint never deletes or edits an existing financial record. ## Errors * `401` — missing, invalid, or inactive `X-API-Key` * `404` — `loanId` is not owned by the authenticated company * `409` — ambiguous `loanId`, or conflicting reuse of `transactionId` * `422` — invalid identifier, amount, currency, date, status, or request shape * `500` — the atomic payment/accounting operation failed and was rolled back # Cancel a Scheduled Call Source: https://docs.finosu.com/api-reference/endpoint/scheduled-calls/cancel POST /scheduled-calls/{id}/cancel Cancels a specific scheduled call by ID Cancels a single scheduled call. Any call that has not reached a terminal status (`COMPLETED`, `FAILED`, `WILL_NOT_DO`, `SKIPPED_COMPLIANCE`, `SKIPPED_MANUAL`, `CANCELLED`) is set to `CANCELLED`. Returns the scheduled call with its updated status. ## Repeat requests The operation is idempotent. If the call is already in a terminal status — including `CANCELLED` — the request succeeds with HTTP `200` and returns the call with its current status unchanged. There is no `409` conflict response; check the `status` field in the response to confirm the outcome. ## Calls already dispatched Cancelling a call in `PENDING` or `TASK_CREATED` reliably prevents it from being dialed. A call in `PROCESSING` (actively dialing or in progress) is marked `CANCELLED`, but this does not disconnect a phone call that is already underway. ## Invalid Identifier An invalid scheduled call UUID returns HTTP `422 Unprocessable Content` with a string `detail`. A valid UUID with no matching record or no verifiable customer relationship returns `404`; access to another company’s record returns `403`. ## Parent schedule is not affected Cancelling an individual scheduled call does not stop the cadence that created it; later schedule activity can still produce new scheduled calls. To stop outreach entirely, use [Close Origination](/api-reference/origination/close) for enrolled origination applications, or [Cancel Loan Servicing](/api-reference/endpoint/loans/cancel-servicing) / [Cancel All Communications](/api-reference/endpoint/customers/cancel-communications) for collections and outreach. # Cancel All Scheduled Calls Source: https://docs.finosu.com/api-reference/endpoint/scheduled-calls/cancel-all POST /scheduled-calls/customer/{customerId}/cancel-all Cancels all pending scheduled calls for a customer Cancels calls whose current status is `PENDING` for the customer identified by their external reference within the API key's company. Calls in other statuses are not selected by this operation — including calls already dispatched (`TASK_CREATED`, `PROCESSING`). To cancel a dispatched call, use [Cancel a Scheduled Call](/api-reference/endpoint/scheduled-calls/cancel) on it individually. ## Response `canceledCount` is the number of calls cancelled by this request, and `scheduledCalls` lists those calls with status `CANCELLED`. The operation is idempotent: repeating it (or calling it for a customer with no pending calls) succeeds with `canceledCount: 0` and an empty `scheduledCalls` array. An unknown customer reference returns `404`. ## Parent cadence is not affected This operation does **not** cancel the parent cadence — later schedule activity can still create new scheduled calls for the customer. Do not use it as an assumed replacement for a funded/stop upload. See [Funded applications and stopping outreach](/api-reference/origination/overview#funded-applications-and-stopping-outreach) before retiring an existing stop process. To stop outreach entirely, use [Close Origination](/api-reference/origination/close) for enrolled origination applications, or [Cancel Loan Servicing](/api-reference/endpoint/loans/cancel-servicing) / [Cancel All Communications](/api-reference/endpoint/customers/cancel-communications) for collections and outreach. # Create Scheduled Calls Source: https://docs.finosu.com/api-reference/endpoint/scheduled-calls/create POST /scheduled-calls/{customerId} Creates scheduled calls for a customer. For origination enrollment use POST /customers/schedule/sync; for configured loan-based collections boarding use POST /loans. Existing integrations using this operation must provide their configured `scheduleType` identifier. Unsupported identifiers are rejected; the values from `GET /origination/task-types` are not identifiers for this operation. For new-application or returning-borrower outreach, use [Origination Enrollment](/api-reference/endpoint/customers/origination-enrollment). For accounts configured for loan-based collections boarding, create the customer and then use [Create Loan](/api-reference/endpoint/loans/create). ## Customer lookup `customerId` is the customer reference ID you supplied when creating the customer, not a Finosu UUID. An unknown reference ID for your company returns `404`. ## Response Returns `201` with the array of scheduled calls created. `customerId` echoes your customer reference ID, `scheduledTime` is an ISO 8601 timestamp with UTC offset, and each call starts in status `PENDING`. `callId` is `null` until a call is placed for the entry. ## Errors Invalid `scheduleType` values or a missing/invalid customer timezone or missing/blank state return `422`. Unexpected failures while creating the schedule return `500`. # List Scheduled Calls Source: https://docs.finosu.com/api-reference/endpoint/scheduled-calls/get GET /scheduled-calls/customer/{customerId} Returns all scheduled calls for a given customer ## Customer lookup `customerId` is the customer reference ID you supplied when creating the customer, not a Finosu UUID. An unknown reference ID for your company returns `404`. ## Response Returns all of the customer's scheduled calls (any status) ordered by `scheduledTime` descending, newest first. Deleted entries are excluded. There is no pagination or status filter. `status` is one of `PENDING`, `TASK_CREATED`, `PROCESSING`, `COMPLETED`, `FAILED`, `WILL_NOT_DO`, `SKIPPED_COMPLIANCE`, `SKIPPED_MANUAL`, or `CANCELLED`. `scheduledTime` is an ISO 8601 timestamp with UTC offset. `callId` is `null` until a call is placed for the entry. # Retrieve a Scheduled Call Source: https://docs.finosu.com/api-reference/endpoint/scheduled-calls/get-by-id GET /scheduled-calls/{id} Returns a specific scheduled call from the system that the user has access to `id` is the scheduled call UUID returned by [Create Scheduled Calls](/api-reference/endpoint/scheduled-calls/create) or [List Scheduled Calls](/api-reference/endpoint/scheduled-calls/get). In the response, `customerId` is your customer reference ID, `status` is one of `PENDING`, `TASK_CREATED`, `PROCESSING`, `COMPLETED`, `FAILED`, `WILL_NOT_DO`, `SKIPPED_COMPLIANCE`, `SKIPPED_MANUAL`, or `CANCELLED`, and `callId` is `null` until a call is placed for the entry. ## Invalid Identifier An invalid scheduled call UUID returns HTTP `422 Unprocessable Content` with a string `detail`. A valid UUID with no matching record or no verifiable customer relationship returns `404`; access to another company’s record returns `403`. # Create Portal Session Source: https://docs.finosu.com/api-reference/endpoint/sso/create-portal-session POST /sso/portal-sessions Return a single-use URL that opens the borrower portal already signed in, for a borrower your platform has already authenticated. Call this from your backend and redirect the borrower to the returned URL. The URL is a short-lived bearer credential: anyone holding it can exchange it once for that borrower's session, so it must not be logged, stored, or placed anywhere it can be read back. Redeeming it starts an ordinary portal session, which is not cut short by the URL's own expiry. Available only to explicitly approved integrations; contact Finosu to have it enabled for your account. ## Overview Returns a single-use URL that opens the borrower portal already signed in, for a borrower your platform has already authenticated. Your backend requests the URL; you redirect the borrower to it. This exists so a borrower who has just signed in on your side is not asked to sign in a second time. No passwords, cookies or session tokens are shared between your platform and Finosu. > [!WARNING] > > This feature is available only to explicitly approved integrations. Until it is > enabled for your account, an authenticated request returns `403`. Contact Finosu > to have it enabled and to obtain your API key. ## Flow 1. A borrower signs in on your platform. 2. Your **backend** calls this endpoint with your own identifier for that borrower. 3. You redirect the borrower's browser to the returned `url`. 4. They land on the portal dashboard, signed in. The call is server-to-server. Never make it from the browser: the response contains a credential that would then be visible to the borrower and to anything else running on the page. ## The URL is a credential The returned `url` is a **short-lived bearer credential**. Anyone holding it can exchange it once for that borrower's session. * Do not write it to logs, analytics, error trackers, or support tickets. * Do not store it, email it, or include it in a redirect you record. * Redirect the borrower to it immediately and discard your copy. It is single-use: the first redemption spends it, and every later attempt fails. It also expires shortly after issuance — see `expiresIn`. Responses are served with `Cache-Control: no-store`. ## Expiry does not limit the session `expiresIn` is how long the **URL** remains redeemable. Once redeemed, the borrower gets an ordinary portal session governed by the portal's normal session policy, and that session is not cut short when the URL expires. Request a URL at the moment you are about to redirect, rather than issuing one ahead of time and holding it. ## Identifying the borrower `externalCustomerId` is your own identifier for the borrower, the same reference you send Finosu elsewhere. The lookup is scoped to the company your API key authenticates as, so a reference belonging to another company returns `404`. `externalLoanId` is optional. A borrower's loans at one company share a single portal account, so naming a loan does not change what the session can reach. Send it when a borrower's loans span more than one of your brands, so the link opens the right branded portal. If the loan reference does not identify a live loan belonging to that borrower — whether it names another borrower's loan, a loan that has been removed, or a reference we have never seen — the request is rejected with `409` and no URL is issued. That check exists to catch a mis-keyed mapping before it hands a borrower someone else's account, so treat a `409` as a data problem on your side rather than something to retry. ## Example ```bash theme={null} curl -X POST "https://api.finosu.com/sso/portal-sessions" \ -H "X-API-Key: your_api_key_here" \ -H "Content-Type: application/json" \ -d '{"externalCustomerId": "example-customer-1"}' ``` ```json theme={null} { "url": "https://portal.example-lender.com/sso?t=hJ4k...", "expiresAt": "2026-01-15T18:04:21+00:00", "expiresIn": 60 } ``` Redirect the borrower to `url`. Nothing else in the response needs to be stored. ## Errors | Status | Meaning | What to do | | - | - | - | | `401` | Missing, invalid, or inactive API key | Provide an active key | | `403` | Partner sign-on is not enabled for your account | Contact Finosu | | `404` | No borrower matches that reference in the company your key authenticates as | Check the reference; confirm the borrower was sent to Finosu | | `409` | The loan reference does not identify a live loan belonging to that borrower | Fix the mapping; do not retry | | `422` | Malformed request body | Check the request schema | | `429` | Issuance quota exceeded | Wait for the `Retry-After` interval | | `503` | Sign-on is temporarily unavailable | Retry; no URL was issued | A `404` and a `409` are different failures. `404` means no borrower matches that reference **within the company your key authenticates as** — a borrower belonging to another company is not visible to your key. `409` means the borrower was found, but the loan reference does not resolve to a live loan of theirs. ## Redemption failures If the borrower opens a URL that has already been used, has expired, or was never issued, the portal shows one neutral message asking them to return to your platform and open a new link. Those three cases are deliberately indistinguishable, so a URL cannot be probed to learn whether it ever existed. If a borrower reports that a link did not work, issue a new one rather than asking them to retry the old one — a spent URL can never work again. # List Origination Task Types Source: https://docs.finosu.com/api-reference/endpoint/task-types/list GET /origination/task-types Returns origination task types for POST /customers/schedule/sync with scheduleMode=enroll. This catalog does not indicate account enablement. For collections use GET /collections/task-types. Use this authenticated lookup to populate origination setup screens. It returns only origination task types, as a JSON array of case-sensitive strings: ```json theme={null} ["PendingLoanNewLead", "PendingLoanReturning"] ``` * `PendingLoanNewLead`: new application outreach. * `PendingLoanReturning`: returning borrower outreach. For collections screens, use [List Collections Task Types](/api-reference/endpoint/collections/task-types). The catalogs are separate; no scope discriminator or response filtering is needed. ## Request ```bash theme={null} curl --request GET 'https://api.finosu.com/origination/task-types' \ --header 'X-API-Key: YOUR_API_KEY' ``` ## Using the selected type Send the selected `taskType` to [Origination Enrollment](/api-reference/endpoint/customers/origination-enrollment) with `scheduleMode: "enroll"`, the required customer/application fields and an `Idempotency-Key`. Enrollment creates or reuses the customer and schedules the application. Returning one-off outreach uses `PendingLoanReturning` with `oneOff: true`; it is not a separate type. This read-only catalog does not create schedules or indicate account enablement. The values are the same for every authenticated company; enrollment still enforces its validation and the company's enabled workflows. ## Response and compatibility HTTP `200` returns the string array above, with no pagination. Missing, empty, invalid, or inactive API keys return `401`. The former `GET /task-types` route is replaced by these scoped endpoints: * Origination lookup: `GET /origination/task-types`. * Collections lookup: `GET /collections/task-types`. Update the lookup URL after deployment; the string-array format is unchanged. The former route is not retained as an alias. `Collections` is not returned by the origination catalog and is not accepted by origination enrollment. Read values by name rather than position and do not assume a fixed array length. Only enable types whose documented workflow your integration supports. Use [List Call Flags](/api-reference/endpoint/calls/flags) with the selected `taskType` to retrieve the flag catalog (names and descriptions) for that workflow. # Get Texts Source: https://docs.finosu.com/api-reference/endpoint/text/get GET /texts/{customerId} Returns all texts for a given customer # Transfer Note Source: https://docs.finosu.com/api-reference/endpoint/transfer-notes/transfer-note WEBHOOK /transfer-note Submit transfer note with call summary and verification details This integration-specific outbound callback is configured separately from call result delivery. Its customer identifier is `customer_id`, not `customerId`. The generic call webhook's `Idempotency-Key` and retry contract do not apply to this callback. Confirm the destination and acknowledgment behavior with Finosu. This is a payload sent by Finosu to a configured receiver, not an inbound public request. Customer-upsert request aliases do not rename this callback’s fields. # API Basics Source: https://docs.finosu.com/api-reference/introduction Base URL, authentication, and choosing your API workflow. The base URL for all public API endpoints is `https://api.finosu.com`. ## Authentication Requests your system sends to the public API are authenticated using API keys passed in the `X-API-Key` header. Outbound callbacks are sent by Finosu to your configured receiver and follow their own delivery and authentication contracts. A missing, empty, invalid, or inactive API key returns `401 Unauthorized`. Provide an active key before retrying. With valid authentication, invalid request fields can return `422`; check the endpoint's request schema. Sample authenticated request: ```bash theme={null} curl -X GET "https://api.finosu.com/customers" \ -H "X-API-Key: your_api_key_here" ``` To export call history across your company, use [List All Calls](/api-reference/endpoint/calls/list). The endpoint supports cursor pagination, optional customer/call-type/date filters, and a complete-history export example. ## Request fields and outbound payloads Use the schema for the specific operation; request aliases do not rename response fields or outbound webhook payloads. | Contract | Direction | Field naming | | - | - | - | | [Customer upsert](/api-reference/endpoint/customers/webhook) | Your system → Finosu | Prefer camelCase inputs; legacy snake_case inputs remain accepted. The success response still uses `customer_id`. | | [ACH confirms](/api-reference/endpoint/ach-confirms/create) and [returns](/api-reference/endpoint/ach-returns/create) | Your system → Finosu | Prefer camelCase inputs; legacy snake_case inputs remain accepted. Use each endpoint’s response schema. | | [External payments](/api-reference/endpoint/payments/external) | Your LMS → Finosu | Records already-settled external money. Use a company-unique `transactionId`; exact retries are idempotent and changed payloads conflict. | | [REST call detail](/api-reference/endpoint/calls/get-by-id) | Finosu response to your GET request | Uses `customerId`, `toPhoneNumber`, and `recordingUrl`. | | [Call-result webhook](/api-reference/endpoint/calls/webhook) | Finosu → your configured receiver | Uses snake_case, including `call_id`, `customer_id`, and `recording_url`. | | [Transfer-note callback](/api-reference/endpoint/transfer-notes/transfer-note) | Finosu → a configured integration receiver | Retains its integration-specific contract, including `customer_id`. | For requests that accept both naming styles, send each field once. Consult the endpoint’s documented precedence rules if both spellings are supplied. Keys in customer-upsert `externalMetadata` are caller-defined and are not renamed. ## Response conventions Customer, text, email, and loan responses can contain null for unavailable optional values. Loan create/update responses serialize decimal amounts and percentages as JSON strings, for example `"amountDue": "100.25"`. Follow the response schema for the operation; request examples may use JSON numbers. HTTP errors use a `detail` field, typically a message: ```json theme={null} {"detail": "Customer not found"} ``` Some application errors use structured detail. Request validation errors can instead return `detail` as an array of field errors. Creating a customer returns `201 Created` on success. For customer, customer-call, text, and email lists, an optional `limit` must be an integer from 1 to 1000. Where supported, `offset` is a nonnegative integer and defaults to 0. Email pagination selects **threads** before flattening their messages, so the returned message count may exceed `limit`. The company-wide `GET /calls` endpoint uses its separate cursor pagination contract. ## Choose your workflow * **Origination:** [start here](/api-reference/origination/overview) for new leads, returning borrowers, and one-off outreach. Enrollment creates or reuses the customer; a separate customer-create call is not required. * **Collections:** create the customer, then [create the loan](/api-reference/endpoint/loans/create) for accounts configured for loan-based collections boarding. * **Existing schedule replacement:** use [Sync Customer Schedules](/api-reference/endpoint/customers/schedule-sync) only when your integration intends to replace pending schedules. # Enroll a List (Batch) Source: https://docs.finosu.com/api-reference/origination/batch Send a customer/application list in one request. Finosu processes the list in the background and reports each row’s outcome. Send the list to **`POST /customers/batch`** with **`scheduleMode: "enroll"`**. Finosu stores the upload, divides it into internal chunks, and enrolls each application using the same cadence and validation rules as [individual enrollment](/api-reference/endpoint/customers/origination-enrollment). Your integration does not need to make one request per application. Use one company API key per list. That key selects the company and its configured portfolio; body fields cannot select a different company or enable another cadence. ## Send a list Use a stable `Idempotency-Key` header for the **whole list** and a stable `idempotencyKey` in each row for that **enrollment operation**. These are different keys with different purposes. Keep customer and application references consistent across API requests. ```bash theme={null} curl --request POST 'https://api.finosu.com/customers/batch' \ --header 'X-API-Key: YOUR_API_KEY' \ --header 'Idempotency-Key: origination-list-2026-09-24-001' \ --header 'Content-Type: application/json' \ --data '{ "scheduleMode": "enroll", "customers": [ { "idempotencyKey": "application-1001-enrollment-1", "id": "customer-1001", "loanId": "application-1001", "taskType": "PendingLoanNewLead", "firstName": "Jane", "lastName": "Doe", "birthday": "1985-06-15", "ssnLastFour": "1234", "phoneNumber": "+15125550100", "mobilePhone": "+15125550101", "timezone": "America/Chicago", "daysInApplied": 3 }, { "idempotencyKey": "application-2001-enrollment-1", "id": "customer-2001", "loanId": "application-2001", "taskType": "PendingLoanReturning", "oneOff": true, "firstName": "Alex", "lastName": "Smith", "birthday": "1987-04-12", "ssnLastFour": "5678", "phoneNumber": "+15125550102", "timezone": "America/Chicago" } ] }' ``` The example combines two modes. Each must be enabled for the authenticated company. Unsupported modes fail for the affected rows; they do not enable new portfolio capabilities. Returning borrowers without `oneOff` can include `daysSincePaidOff` for the existing returning cadence. Row fields follow the [enrollment field contract](/api-reference/endpoint/customers/origination-enrollment#fields), plus the required `idempotencyKey`. Row-level `scheduleMode` can be omitted; if present it must be `"enroll"`. The outer `scheduleMode` is always required. Send `isTest` for test enrollments. An explicit `null` flag fails only the affected row. Omitting `isTest` defaults to `false`. > [!WARNING] > > Always send the outer `scheduleMode: "enroll"`. The existing customer-create > workflow uses this URL without a mode. Enrollment row keys without the outer > mode are rejected to prevent accidental customer-create processing. See [Batch API reference](/api-reference/endpoint/customers/batch) for the shared request schema and playground. ## Acceptance and progress A successful submission returns **HTTP `202`**, `Location`, and a job ID: ```json theme={null} { "jobId": "550e8400-e29b-41d4-a716-446655440000", "totalCustomers": 2, "message": "Batch accepted. Poll Location for progress and per-row results; acceptance does not mean enrollment has completed." } ``` Poll the `Location` URL with the same company's API key. Start with a few seconds between polls and increase the interval for longer-running jobs. ```bash theme={null} curl 'https://api.finosu.com/customers/batch/550e8400-e29b-41d4-a716-446655440000' \ --header 'X-API-Key: YOUR_API_KEY' ``` The [batch status endpoint](/api-reference/origination/batch-status) returns: * `status`: `pending`, `processing`, `completed`, `failed`, or `cancelled`. * `processed`: successfully handled rows, including saved receipt replays and applications that were already scheduled. * `failed`: rejected rows or rows that exhausted processing retries. * `progressPercentage`: handled rows divided by the submitted count. * `results`: outcomes ordered by the original zero-based `index`. Each includes `customerId`, `loanId`, `status`, `replayed`, and `retryable`. Successful rows include the `origination` receipt; failures include `code` and `message`. * `failures`: the failed rows with their original `index`, customer reference, and message, for compatibility with existing batch clients. Results appear as rows finish. A terminal `completed` job **can have failed rows** when at least one row succeeded; always inspect `failed` and `results`. A job with no successful rows ends as `failed`. A failure before the source can be read may have empty customer/application references; its original `index` still identifies the row in your submitted list. A saved schedule does not mean a call has connected. Use the receipt's `scheduledCallId` to [inspect the current call status](/api-reference/endpoint/scheduled-calls/get-by-id). Receipts are scheduling snapshots, not current borrower eligibility. ## Retry without duplicate enrollments * **Submission timeout or `503`:** retry the identical ordered list with the same header key. If accepted previously, the same job is returned with `Idempotency-Replayed: true`. A changed list under that key returns `409`. JSON object-key order is ignored; array order and submitted values must match. * **Worker interruption:** Finosu resumes processing and skips committed row results. Enrollment and its result are committed together. * **Retryable failed row:** submit that row in a new list with a **new header key**, retaining its original row `idempotencyKey` and payload. Replaying a terminal list returns the existing job; it does not restart failed rows. * **Invalid row:** correct the data and submit a new list. A rejected validation does not consume an enrollment receipt. If a key has already produced a saved receipt, changing its enrollment payload returns a conflict. * **Contact or application conflict:** review the reason before resubmitting. Enrollment cannot clear DNC, bypass a pause or reopen a terminal application. * **Intentional restart:** once all calls and their processing have finished, use a new list key and a new row key for the same application and outreach mode. Both the loan and captured application must still be `PENDING`. The [restart rules](/api-reference/endpoint/customers/origination-enrollment) apply to both New Lead and Returning Customer. Technical retries must retain their original keys. Row keys share the individual enrollment key namespace within the company. A row submitted through batch and the single-record endpoint with the same key and normalized enrollment fields returns the same enrollment receipt. Use a separate row key for each distinct enrollment operation; do not reuse it for unrelated customers or applications. ## Limits and processing behavior * Up to **10,000 records** per request and **10 MiB** of serialized customer data. Split larger lists into multiple batches with separate header keys. * Up to **10 batch submissions per minute per company**, including submission retries. Honor `Retry-After` on `429` and `503`. * Finosu processes internal chunks of **25 records** in the background. The single-record endpoint's 60-request/minute quota does not apply per batch row. * Rows and chunks can finish out of order. The list is not one transaction: valid rows can succeed while others fail. Do not depend on list order to apply multiple changes to the same customer. * Invalid envelopes return `422` before queuing. Oversized customer data returns `413`. Invalid enrollment fields, disabled modes and application conflicts are reported per row after acceptance. * The normal scheduler still enforces contact restrictions, calling hours, phone rotation and the configured transfer routing. Batch intake does not change those settings or imply immediate calls. Batch enrollment does not replace the funded/stop workflow or enable LMS notes and flags. See [funded applications](/api-reference/origination/overview#funded-applications-and-stopping-outreach). ## Multiple applications for one customer Rows may share the same customer `id` when each represents a distinct `loanId`. Use a different row `idempotencyKey` for each application and preserve that key when retrying the same row. Enrollment creates separate loans and cadences without closing or retargeting older applications. Contact restrictions and call spacing remain customer-wide. See [Returning customers and new applications](/api-reference/endpoint/customers/origination-enrollment#returning-customers-and-new-applications). # Batch Progress and Results Source: https://docs.finosu.com/api-reference/origination/batch-status GET /customers/batch/{jobId} Company-scoped job progress. Origination jobs return ordered per-row results and failures; customer-create jobs return failures with results empty. Partial while running. completed can include failed rows, so always inspect failed and the row outcomes. Use the `jobId` or `Location` returned by [batch enrollment](/api-reference/origination/batch). Authenticate with the company key used for submission. Another company's job returns `404`. `202` acceptance does not mean processing is complete. While a job is running, `results` contains only finished origination rows, ordered by the submitted zero-based `index`. A `completed` job can include failures; inspect `failed`, `failures`, and the per-row result before declaring the list successful. For the existing customer-create batch workflow, `results` is empty; use `failures` and the job counts. See [retry rules](/api-reference/origination/batch#retry-without-duplicate-enrollments) before resubmitting an origination row. # Close Origination Source: https://docs.finosu.com/api-reference/origination/close POST /originations/{id}/close Record the final outcome for an enrolled application and cancel its active/paused call, SMS and email cadences and pending communications atomically. No lender-side writes. Same-reason retries reassert closure; conflicting outcomes and active funded loans return 409. Queue-claimed calls remain owned by delivery/recovery and are excluded from cancelledCalls. In-progress communications cannot be recalled. Close an enrolled application's origination outreach when it has been funded, withdrawn, or rejected. Use the external application reference (`loanId` from enrollment) as `{id}`, with the same company's `X-API-Key`. Both the loan portfolio and customer must belong to that company. Loans explicitly marked as test loans are excluded from reference lookup and cannot be closed through this endpoint; a test loan on another customer does not make a real application's reference ambiguous. ```bash theme={null} curl --request POST 'https://api.finosu.com/originations/APPLICATION-123/close' \ --header 'X-API-Key: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --data '{"reason":"FUNDED"}' ``` ## Required reason | Reason | Meaning | | - | - | | `FUNDED` | The lender has funded the application. | | `WITHDRAWN` | The application has been withdrawn. | | `REJECTED` | The application has been declined or rejected. | The body and `reason` are required. Values are case-sensitive. Retrieve the catalog with [List Origination Close Reasons](/api-reference/origination/close-reasons). Collections reasons such as `PAID_OFF` and `BANKRUPTCY` are not accepted. ## Effect and response The operation records the final application outcome, closes its active or paused call/email/SMS cadences and their pending work in one transaction. Other applications and loans belonging to the customer are unaffected. This records an outcome reported by the lender; it does not fund, withdraw, or reject the application in the lender's LMS. Calls and messages already in progress cannot be recalled. Queue-claimed calls remain owned by the delivery worker and are excluded from `cancelledCalls`; the parent cadence is closed, and pending delivery is subject to the existing eligibility checks. Closure does not erase queue claims or processing leases. ```json theme={null} { "id": "APPLICATION-123", "status": "CLOSED", "reason": "FUNDED", "cancelledCallSchedules": 1, "cancelledEmailSchedules": 0, "cancelledSmsSchedules": 0, "cancelledCalls": 4, "cancelledEmails": 0, "cancelledSms": 0 } ``` Retry with the same reference and reason after an uncertain response; no `Idempotency-Key` is required. A repeat returns `CLOSED` and the same reason, with counts of items cancelled by that request (normally zero). It also closes any active or paused cadences that have reappeared. A different final reason returns `409` and does not overwrite the existing outcome. This endpoint does not reopen an application; a new enrollment cannot restart the closed application. ## Errors | Status | Meaning | | - | - | | `401` | Missing, invalid, or inactive API key. | | `404` | No non-deleted, non-test application with that reference matches both your portfolio and customer company scope. | | `409` | Ambiguous reference, missing recorded origination enrollment, a funded active loan, a changed scope, or a different existing final outcome. | | `422` | Missing body/reason, invalid reason, or unexpected fields. | | `500` | Operation failed; transaction rolled back. Retry the same request. | A funded loan that is already active in collections is rejected even if it has origination history. Use the collections API for collections lifecycle changes. # List Origination Close Reasons Source: https://docs.finosu.com/api-reference/origination/close-reasons GET /originations/close-reasons Complete unpaginated catalog of case-sensitive origination close reasons. Requires an active X-API-Key. Returns the complete, unpaginated catalog of case-sensitive reasons accepted by [Close Origination](/api-reference/origination/close). Authentication requires an active `X-API-Key`; the catalog is shared by authenticated companies. ```json theme={null} ["FUNDED", "WITHDRAWN", "REJECTED"] ``` Send the selected value as `reason`. Clients should use values by name, not array position. This catalog is separate from collections stop-servicing reasons. # Origination Examples Source: https://docs.finosu.com/api-reference/origination/examples Complete requests for new leads, returning borrowers, and one-off calls, with retry handling. All examples use `POST /customers/schedule/sync` with `scheduleMode: "enroll"`. Replace `YOUR_API_KEY` with the key for the intended company. Confirm that the mode is enabled, and use account-manager-approved test records and phone numbers before sending real customers. The identities below are fictional. The [enrollment guide](/api-reference/endpoint/customers/origination-enrollment) defines required fields, spreadsheet mappings, cadence behavior, and error codes. Each example uses a different customer and application so testing one mode does not conflict with another mode's active schedule. ## New lead Creates the configured new-lead cadence. `daysInApplied` supplies application-age context; it does not skip cadence steps. ```bash theme={null} curl --request POST 'https://api.finosu.com/customers/schedule/sync' \ --header 'X-API-Key: YOUR_API_KEY' \ --header 'Idempotency-Key: application-1001-enrollment-1' \ --header 'Content-Type: application/json' \ --data '{ "scheduleMode": "enroll", "taskType": "PendingLoanNewLead", "id": "customer-1001", "loanId": "application-1001", "firstName": "Jane", "lastName": "Doe", "birthday": "1985-06-15", "ssnLastFour": "1234", "phoneNumber": "+15125550100", "mobilePhone": "+15125550101", "timezone": "America/Chicago", "daysInApplied": 3 }' ``` ## Returning borrower / react `daysSincePaidOff` selects the returning cadence relative to the previous payoff. If you omit this field, enrollment creates an initial call using the normal returning flow, which may include a mobile fallback; it does not create the payoff-based cadence. ```bash theme={null} curl --request POST 'https://api.finosu.com/customers/schedule/sync' \ --header 'X-API-Key: YOUR_API_KEY' \ --header 'Idempotency-Key: application-2001-enrollment-1' \ --header 'Content-Type: application/json' \ --data '{ "scheduleMode": "enroll", "taskType": "PendingLoanReturning", "id": "customer-2001", "loanId": "application-2001", "firstName": "Alex", "lastName": "Doe", "birthday": "1988-04-12", "ssnLastFour": "2345", "phoneNumber": "+15125550102", "mobilePhone": "+15125550103", "timezone": "America/Chicago", "daysSincePaidOff": 15 }' ``` ## Returning borrower / one-off `oneOff: true` creates exactly one scheduled call, without mobile fallback. It is an option on `PendingLoanReturning`, not another task type. Do not use it with `PendingLoanNewLead`. ```bash theme={null} curl --request POST 'https://api.finosu.com/customers/schedule/sync' \ --header 'X-API-Key: YOUR_API_KEY' \ --header 'Idempotency-Key: application-3001-enrollment-1' \ --header 'Content-Type: application/json' \ --data '{ "scheduleMode": "enroll", "taskType": "PendingLoanReturning", "oneOff": true, "id": "customer-3001", "loanId": "application-3001", "firstName": "Sam", "lastName": "Doe", "birthday": "1990-09-20", "ssnLastFour": "3456", "phoneNumber": "+15125550104", "timezone": "America/Chicago" }' ``` ## Read the result and retry safely * **`200`, `origination.status: "scheduled"`:** save the receipt, `scheduleId`, and `scheduledCallId`. Scheduling succeeded; a connected call is not guaranteed. * **`200`, `Idempotency-Replayed: true`:** this is the saved result of the original request, not a new set of calls. Its counts are the original receipt's counts. * **`200`, `origination.status: "already_scheduled"`:** the application already has a matching active cadence. No additional calls were created and customer data was not updated. Top-level contact fields are built from your normalized request, with `phoneNumber` falling back to `mobilePhone`; they do not confirm that those changes were saved. See [Response](/api-reference/endpoint/customers/origination-enrollment#response) for the full response semantics, including the fixed `doNotCall: false` value. * **Timeout or `503`:** retry the same request with the same idempotency key; honor `Retry-After` when present and use exponential backoff with jitter. * **`429`:** wait for `Retry-After` before retrying the same request. The quota is shared across keys for the same company. * **`409` with `detail.code: "request_in_progress"`:** retry the same request after `Retry-After`. * **Other `409`:** review the conflict. Do not change keys to bypass an existing application, contact restriction, or finished/paused cadence. * **`400`, `401`, or `422`:** correct the account configuration, authentication, or invalid input before resubmitting. Do not blindly retry rejected records. Repeating the exact cURL request above demonstrates a retry. Changing its key is not a retry strategy and does not authorize restarting a completed cadence. For a list, persist each record's payload, idempotency key, and outcome on your side. Retry only unresolved records and reconcile successful, already-scheduled, and rejected records before retiring the corresponding manual upload. Funded/stop events require a separate validated workflow; see [Funded applications and stopping outreach](/api-reference/origination/overview#funded-applications-and-stopping-outreach). # Origination Overview Source: https://docs.finosu.com/api-reference/origination/overview Start new-lead, returning-borrower, and one-off outreach using your existing cadences. Use origination enrollment to replace manual customer-list uploads with API requests. Send a [whole list in one batch request](/api-reference/origination/batch) or enroll an individual application. Finosu creates or reuses each customer and enrolls the application in the configured calling cadence. A customer's existing application is not cancelled when you submit another application reference. An application with no remaining calls is not automatically closed or restarted by resubmission; use the existing explicit lifecycle operations. ## Start here 1. Obtain an API key for each company you will send records to, and confirm which outreach modes are enabled. The key determines the company; a request cannot select another company by changing a body field. 2. Choose the appropriate [task type](/api-reference/endpoint/task-types/list). New leads use `PendingLoanNewLead`. Returning borrowers use `PendingLoanReturning`; add `oneOff: true` for a single call. 3. For lists, use [Enroll a List (Batch)](/api-reference/origination/batch) and follow the returned job ID. For individual records, [enroll the application](/api-reference/endpoint/customers/origination-enrollment) with `scheduleMode: "enroll"`, the customer and application references, and a stable `Idempotency-Key`. No separate customer-create or scheduled-calls request is required. 4. For individual enrollment, save the returned receipt. Follow its `scheduledCallId` using [Retrieve a Scheduled Call](/api-reference/endpoint/scheduled-calls/get-by-id) for the current status, and retrieve [call history](/api-reference/endpoint/calls/list) for completed calls. HTTP `200` means the schedule is saved, not that a call has connected. Use the [complete request examples](/api-reference/origination/examples) to test each enabled mode with your account manager and approved test numbers. ## Which endpoint should I use? | Action | Endpoint | What to send | | - | - | - | | Enroll a whole list | `POST /customers/batch` | Outer `scheduleMode: "enroll"`, a header `Idempotency-Key`, and a row `idempotencyKey` for every application | | Track list progress and each row | `GET /customers/batch/{jobId}` | The job ID and the same company API key | | Discover origination task-type names | `GET /origination/task-types` | Your company API key; this catalog does not confirm company enablement | | Enroll a new lead | `POST /customers/schedule/sync` | `scheduleMode: "enroll"`, `taskType: "PendingLoanNewLead"`, and `Idempotency-Key` | | Enroll a returning borrower | `POST /customers/schedule/sync` | `scheduleMode: "enroll"`, `taskType: "PendingLoanReturning"`, and `Idempotency-Key` | | Enroll a returning borrower for one call | `POST /customers/schedule/sync` | The returning request with `oneOff: true` | | Read a scheduled call's current status | `GET /scheduled-calls/{id}` | The `scheduledCallId` from the enrollment receipt | The three enrollment rows are **options on one endpoint**, not three separate endpoints. [Sync Customer Schedules](/api-reference/endpoint/customers/schedule-sync) is the shared API reference and playground. Its replacement mode is for existing integrations that intentionally rebuild pending schedules; it is not the origination enrollment workflow. Always send `scheduleMode: "enroll"` here. `taskType` is not the `scheduleType` used by the separate legacy [Create Scheduled Calls](/api-reference/endpoint/scheduled-calls/create) operation. ## Sending an existing list * Keep customer and application references consistent with prior uploads so the API can recognize an existing enrollment. * Send the list in one [batch enrollment request](/api-reference/origination/batch) using the key for its company. Finosu divides and processes it internally. * Keep a stable key for the list and a stable key per enrollment row. Retry an uncertain submission with the same list and header key. * Save the job ID, monitor progress, and reconcile every row result. A rejected row does not prevent valid rows from enrolling. * Batch submission permits 10 requests/minute/company; individual enrollment permits 60. Honor `Retry-After` and the documented list-size limits. The existing scheduler continues to apply calling windows, business-day rules, contact restrictions, phone rotation, and the configured transfer routing. API enrollment does not let the sender override those settings. ## Funded applications and stopping outreach Enrollment is an **intake** operation. It does not mark an application as funded, cancel a cadence, or write call notes and flags back to your LMS. A fresh enrollment key may restart exhausted New Lead or Returning outreach only while both loan and application remain `PENDING`, subject to the [restart rules](/api-reference/endpoint/customers/origination-enrollment). It never reopens a funded, withdrawn or rejected application. Use [Close Origination](/api-reference/origination/close), `POST /originations/{id}/close`, with the application's external `loanId` and a required `reason`: `FUNDED`, `WITHDRAWN`, or `REJECTED`. It records the final outcome and cancels the application's active/paused cadences and pending work. Retrieve the accepted catalog with [List Origination Close Reasons](/api-reference/origination/close-reasons). For enrollments with an internally linked application, the outcome is recorded atomically with the existing closure. Closing one reference does not close other applications for the same customer. A conflicting recorded final outcome returns `409` without partially closing the origination. Retry an uncertain close with the same reference and reason. Do not send a new enrollment as a cancellation signal, and validate this workflow before replacing an existing funded/stop upload. Already-funded loans that are active in collections are not eligible for this endpoint and return `409`. Use the [collections lifecycle API](/api-reference/endpoint/loans/cancel-servicing) for those loans. A `FUNDED` close reports the outcome of an enrolled origination application; it does not close an active collections loan. # Upcoming API Changes Source: https://docs.finosu.com/api-reference/upcoming-changes Proposed payment-plan retrieval, public API validation changes, and customer-field migration guidance ## Summary [Payment-plan retrieval](#proposed-payment-plan-retrieval) is proposed and is not yet available. We are tightening the required-field contract on **`POST /customers`** and **`POST /customers/batch`** so that every customer we board arrives with the data needed to contact them lawfully and verify their identity. The redundant `loanId` field is being removed at the same time. The proposed required-field and `loanId` changes remain unenforced. We will notify partners before introducing those changes. Endpoints affected by the Create a Customer required-field changes: * `POST /customers` * `POST /customers/batch` customer-create rows (same per-customer payload); `scheduleMode: "enroll"` rows use [origination enrollment](/api-reference/origination/batch) and are not affected by the required-field changes `PUT /customers/{id}` and loan, call, text, and payment endpoints are not affected by the proposed required-field changes. Customer updates do participate in the validation-status migration described below. ## What is changing | Field | Enforced today | After the change | | - | - | - | | `firstName` | Required | Required — no change | | `lastName` | Required | Required — no change | | `email` / `phoneNumber` | `phoneNumber` always required; `email` required unless `sync: true` | **At least one of the two required** | | `birthday` | Optional; nonempty supplied values are validated | **Required** | | `ssnLastFour` | Optional | **Required** | | `timezone` / `zipCode` | `timezone` always required; `zipCode` required unless `sync: true` | **At least one of the two required** | | `state` | Required unless `sync: true` | **Required in all cases** | | `loanId` | Never selects loans to import; read as the LMS application reference on origination-boarding records, ignored otherwise | **Removed** — send the ID in `loanIds` | `id`, `taskType`, `streetAddress1`, and `city` are unchanged. `streetAddress2`, `doNotCall`, `externalMetadata`, and `loanIds` remain optional. ## Why each change **At least one of `email` or `phoneNumber`.** Every customer needs at least one channel we can reach them on — a record with neither cannot be worked. Today `phoneNumber` is unconditionally required, which turns away email-only accounts. Relaxing that while requiring one of the pair is both stricter in effect and more flexible in practice. **At least one of `timezone` or `zipCode`.** We may only place calls during hours permitted by the borrower's local time, so TCPA compliance depends on knowing where they are. Under the proposed contract, supplying either will be sufficient: when `timezone` is omitted we will derive it from `zipCode`. If the ZIP cannot be resolved, the proposed behavior is to reject the request with `422`. This stricter ZIP behavior is not live. Today, with `sync: true`, customer creation defaults to `America/New_York` when a supplied or fetched ZIP cannot be resolved; if both timezone and ZIP are absent, it returns `422` for missing timezone. Replacement schedule sync defaults to `America/New_York` even when the ZIP is absent. **`state` always required.** State determines which lending and collections rules apply to the account, and several states are restricted per-portfolio. We need it regardless of how the rest of the record was populated. **`birthday` and `ssnLastFour` required.** Both are used to verify a borrower's identity before discussing account details on a call. Without them, an agent cannot complete verification and the conversation cannot proceed. **`loanId` removed.** On `POST /customers` this field is accepted and then ignored — it has never had any effect. `loanIds` is the field that actually controls which loans are imported, so a single loan ID belongs there as a one-element array. ## Migrating your payload A request that is valid today: ```json theme={null} { "id": "12345", "taskType": "Collections", "firstName": "John", "lastName": "Doe", "email": "john.doe@example.com", "phoneNumber": "+14155555555", "timezone": "America/Los_Angeles", "streetAddress1": "123 Main St", "city": "San Francisco", "state": "CA", "zipCode": "94102", "isTest": false, "loanId": "67890" } ``` The same request under the new contract — `birthday` and `ssnLastFour` added, `loanId` moved into `loanIds`: ```json theme={null} { "id": "12345", "taskType": "Collections", "firstName": "John", "lastName": "Doe", "email": "john.doe@example.com", "phoneNumber": "+14155555555", "birthday": "1985-06-15", "ssnLastFour": "1234", "timezone": "America/Los_Angeles", "streetAddress1": "123 Main St", "city": "San Francisco", "state": "CA", "zipCode": "94102", "isTest": false, "loanIds": [67890] } ``` Note that `loanIds` is an array of **integers**, not strings. After the proposed field changes take effect, `email`/`phoneNumber` and `timezone`/`zipCode` will be at-least-one pairs. The following minimal payload is not valid today: ```json theme={null} { "id": "12345", "taskType": "Collections", "firstName": "John", "lastName": "Doe", "email": "john.doe@example.com", "birthday": "1985-06-15", "ssnLastFour": "1234", "streetAddress1": "123 Main St", "city": "San Francisco", "state": "CA", "zipCode": "94102" } ``` ## What you can do now vs. what to wait for Read this section carefully if you plan to migrate early — some of the new fields are not yet wired up. **Safe to do now:** * Start sending `birthday`, `ssnLastFour`, and `state` on every request. All three are already accepted and stored today. Birthday and SSN remain optional; supplied nonempty birthdays are validated, and state is already required unless `sync: true`. * Move a single `loanId` value into `loanIds`. `loanIds` is already honored; `loanId` is already ignored on this endpoint, so there is no behavior to lose. **Only after the change takes effect:** * Dropping `phoneNumber` (relying on `email` alone) or dropping `timezone` (relying on `zipCode` alone) on requests without `sync: true`. These requests return `422` today. LMS auto-fetch retains its existing enrichment and timezone fallback behavior. ## Error behavior Missing required fields return `422 Unprocessable Content` with the offending fields named. For example, today a request missing both first name and phone after any LMS enrichment returns: ```json theme={null} { "detail": "Missing required fields: firstName, phoneNumber" } ``` After the proposed field changes take effect, errors for the at-least-one pairs will name the pair. Rejecting an unresolvable ZIP with `422` is also proposed; the current `sync: true` fallback described above still applies. ### Customer validation errors moved from `400` to `422` Customer creation, updates, replacement schedule sync, servicing cancellation and batch-job UUID validation now return `422` for invalid input. Enrollment retains its structured `detail` object and other validation errors use strings or framework field-error arrays. Invalid birthday, phone or timezone inputs are rejected before writes, including cases previously reported as `500`. The customer upsert webhook validates phone, birthday and supplied timezone before persistence. Empty or whitespace-only webhook birthdays now return `422`. Endpoint-generated string validation messages omit raw phone, birthday and timezone values. Framework schema-error arrays can include submitted values in `input`; this change does not redact those arrays. These changes affect clients matching status codes or text. LMS auto-fetch failures return `502`; malformed optional provider birthdays are skipped without clearing an existing birthday. Unexpected internal failures remain `500`. Accepted customer batches retain HTTP `202`. Customer-create row validation failures use `422:` message prefixes, known provider failures use `502:`, and unexpected internal failures use `500:`. Enrollment rows retain their structured error codes. Do not confuse those prefixes with the batch HTTP status. During rollout, accept both `400` and `422` for migrated validation and update prefix matching. Company/workflow configuration and replacement-mode Do Not Call refusals retain `400`. Enrollment Do Not Call conflicts retain `409`; authentication and missing-resource statuses remain unchanged. Do not retry invalid input unchanged; follow each operation's idempotency behavior before retrying writes after server failures. ## Proposed payment-plan retrieval > [!WARNING] > > **Proposal only — not implemented or available for integration.** No release date > has been announced. All fields, examples, calculations, status meanings, error > responses, and polling behavior below describe the proposed contract and remain > subject to implementation and review. The curl examples are illustrative and > cannot be used to retrieve a payment plan today. ### Overview Two proposed read-only endpoints, both authenticated with `X-API-Key` and scoped to the company associated with that key: | Endpoint | Returns | | - | - | | `GET /loans/{id}/payment-plan` | The loan's **active** payment plan: its terms, the cadence rule it was created under, and reconciliation totals. Add `includeScheduledPayments=true` and `includePayments=true` to receive the plan's scheduled payments and the payments made against them in the same response. | | `GET /loans/{id}/payment-plans/{planId}/scheduled-payments` | The scheduled payments of one specific plan, identified by `planId`. | The intended use is to board a payment plan into your servicing system and reconcile payments collected against it. The sections below describe the proposed integration behavior, not an available endpoint. > [!TIP] > > To board or reconcile a plan, make one call: > `GET /loans/{id}/payment-plan?includeScheduledPayments=true&includePayments=true`. > `paidToDate` and `remainingAmount` are computed from the scheduled payments and payments > in the same response, so they always agree with them. Use the scheduled-payments endpoint > when you already hold a `planId`, for example one stored from an earlier poll. ### Proposed request: current plan `GET /loans/{id}/payment-plan` | Parameter | Location | Proposed behavior | | - | - | - | | `id` | Path | Required external reference ID of the loan. | | `includeScheduledPayments` | Query | Optional boolean, default `false`. Adds `scheduledPayments[]` to the plan. | | `includePayments` | Query | Optional boolean, default `false`. Adds `payments[]` to the plan. | | `includeRetired` | Query | Optional boolean, default `true`. Applies when `includeScheduledPayments=true`. Include `MISSED`, `SKIPPED`, `POSTPONED`, and `CANCELLED` installments. Filtering and its interaction with reconciliation totals must be finalized before release. | | `If-None-Match` | Header | Optional ETag from an earlier response; see proposed polling behavior below. | This endpoint always returns the loan's current plan. A plan that was replaced by a newer one is not returned here; fetch its scheduled payments by `planId` instead. ### Proposed request: scheduled payments of a plan `GET /loans/{id}/payment-plans/{planId}/scheduled-payments` | Parameter | Location | Proposed behavior | | - | - | - | | `id` | Path | Required external reference ID of the loan. | | `planId` | Path | Required. The `planId` of any plan on this loan, including one that has since been replaced by a newer plan. | | `includeRetired` | Query | Optional boolean, default `true`. Same meaning as on the current-plan endpoint. | | `If-None-Match` | Header | Optional ETag from an earlier response. | The response is an [ScheduledPaymentList](#scheduledpaymentlist). A `404` means the loan does not exist for your company, or the `planId` does not belong to that loan. ```json theme={null} { "loanId": "L-88213", "planId": "L-88213-plan-2", "planVersion": "3f9a1c07", "scheduledPayments": [ { "scheduledPaymentId": "e53c1b92-3d66-4a4c-8f20-99e1d3c4b725", "dueDate": "2026-07-10T07:00:00-05:00", "scheduledAmount": 206.67, "amountPaid": 0.0, "creditsApplied": 0.0, "amountRemaining": 206.67, "status": "PENDING" } ] } ``` The example shows one scheduled payment for brevity; the response returns every scheduled payment of the plan, ordered by due date. #### Reading across two calls `planVersion` changes whenever anything in the plan changes: a payment posts, credit is applied, or the schedule is rebuilt. Both endpoints return it. If you fetch the plan and its scheduled payments in separate calls, first check that both responses have the same `planId`. A different `planId` means the plan you asked about has been replaced, and the current-plan endpoint is describing its successor. With the same `planId`, the [identities below](#totals-you-can-verify-against-the-scheduled-payments) hold only when both responses also have the same `planVersion`. If the `planVersion` values differ, something changed in between; fetch again, or use the single-call form above. ### Which scheduled payments to board `scheduledPayments[].status` is the single field that answers this. Board a scheduled payment **only** when its status is one of: | status | meaning | | - | - | | `PENDING` | Live, not yet due. | | `PARTIALLY_PAID` | Live, partly covered by payments or credit. | | `OVERDUE` | Live, past its due date and still owed **on this scheduled payment**. | Every other status means the scheduled payment is **not** a live obligation and must not be boarded: | status | meaning | what it tells you about the borrower | | - | - | - | | `PAID` | Fully covered. | — | | `MISSED` | The installment was completely unpaid five full days after its `dueDate`, or its charge failed, and the amount was moved onto a **different** scheduled payment. | Adverse — the promised installment was not paid. | | `SKIPPED` | The borrower asked to skip this scheduled payment and it was forgiven. | Borrower-initiated relief, not a failed payment. | | `POSTPONED` | Finosu moved the scheduled payment (a schedule rebuild or an operator action). | Nothing — this is an operational change on our side. | | `CANCELLED` | The scheduled payment was cancelled and is void. | — | > [!NOTE] > > `OVERDUE` and `MISSED` both describe non-payment, and the difference matters. > With `OVERDUE` the money is still owed on that scheduled payment, so keep > collecting against it. With `MISSED` the amount has already been carried onto a > later scheduled payment, so collecting against the `MISSED` one would count the > same money twice. ### Reading the money #### `remainingAmount` is a sum over scheduled payments `totals.remainingAmount` is the sum of `amountRemaining` across scheduled payments whose status is `PENDING`, `PARTIALLY_PAID` or `OVERDUE`. > [!NOTE] > > `remainingAmount` is the balance, already computed from the scheduled payments. > > `creditsApplied` is money that `paidToDate` has already counted. It comes from > overpayments, where the excess on one scheduled payment is applied to another, so > subtracting it from `discountedTotal` alongside `paidToDate` would deduct the same > money twice. > > `remainingAmount` is summed from the scheduled payments, so it stays correct > however credit arises. #### `amountRemaining` is only meaningful on live scheduled payments Every scheduled payment reports `max(0, scheduledAmount - amountPaid - creditsApplied)`, including ones that are no longer obligations. A `MISSED` or `POSTPONED` scheduled payment therefore shows a non-zero `amountRemaining` even though that amount has moved elsewhere. Sum `amountRemaining` only across scheduled payments whose status is `PENDING`, `PARTIALLY_PAID` or `OVERDUE`, or use `totals.remainingAmount`, which does this for you. #### `offPlatformPaymentsTotal` is a portion of `paidToDate` It reports how much of what `paidToDate` already counts was collected outside Finosu (payments with `source: "EXTERNAL"`). > [!NOTE] > > This is a portion of `paidToDate`, not a separate amount to add to it. The > off-platform payments it reports are already counted there, so adding the two > together would count each of them twice. #### Totals you can verify against the scheduled payments The proposed contract requires these identities for a response from the current-plan endpoint with `includeScheduledPayments=true`, `includePayments=true`, and `includeRetired=true`. The first identity also holds across two calls when they report the same `planId` and `planVersion`: `paidToDate` from the current-plan endpoint, and the rows from the scheduled-payments endpoint with `includeRetired=true`. ``` paidToDate == sum of scheduledPayments[].amountPaid paidToDate == sum of payments[].amount where status == "SUCCESSFUL" and scheduledPaymentId is present ``` #### Credits `creditsApplied` is credit applied to a scheduled payment from the loan's credit balance. That balance comes from overpayments. When a payment covers more than the scheduled payment it was applied to, the excess is held as credit and later applied to another scheduled payment. Credit is reported separately from `amountPaid` because the money was already counted once, as a payment against the scheduled payment the overpayment landed on. Counting it again would double it. ### Dates and timing * **`scheduledPayments[].dueDate` is authoritative** for when a scheduled payment is actually due. It carries a UTC offset and reflects any rescheduling. * **`cadence` describes the rule the plan was created under**, not the current scheduled payments. Its anchor days derive from the plan's original start date, which does not change when a schedule is rebuilt — so after a reschedule `cadence` can disagree with the actual due dates. Use it to understand the intended pattern; use `dueDate` for real dates. * **`transactedAt` and `finalizedAt` are Finosu-side timestamps, not bank confirmations.** `transactedAt` is when the payment was submitted or took effect; `finalizedAt` is when Finosu considers it settled. For ACH, neither is a guarantee of when funds moved at your bank. Apply your own settlement rules. ### Identifiers * **`planId`** identifies the plan and is stable for the life of the plan. It stays valid after the plan is replaced, so you can still fetch that plan's scheduled payments. * **`planVersion`** identifies the plan's state, not the plan itself. It changes whenever the plan does, so do not store it as an identifier. * **`scheduledPaymentId`** and **`paymentId`** are stable Finosu identifiers. Store them if you want to correlate across polls. * **`reference`** on a payment echoes the external reference you supplied when recording it, so you can join back to your own ledger. ### When there is no plan A `200` response with `paymentPlan: null` means the loan exists but has no active plan. This is normal — the borrower may never have enrolled, or the plan may have completed or been cancelled. > [!WARNING] > > Do not treat `paymentPlan: null` as evidence that a plan was broken. A > completed plan and a cancelled plan both read as `null` here. If your system > holds an active plan for this loan, stop expecting drafts and flag it for > review rather than assuming default. A `404` is different: it means no loan with that reference exists **for your company**. Treat it as an integration error, not a business state. ### Polling efficiently Both endpoints return an `ETag`. Send it back as `If-None-Match` and an unchanged plan responds `304 Not Modified` with no body, which keeps a nightly sweep across a portfolio cheap. ```bash theme={null} curl -sD- 'https://api.finosu.com/loans/L-88213/payment-plan?includeScheduledPayments=true&includePayments=true' \ -H "X-API-Key: $FINOSU_API_KEY" curl -s -o /dev/null -w '%{http_code}\n' \ 'https://api.finosu.com/loans/L-88213/payment-plan?includeScheduledPayments=true&includePayments=true' \ -H "X-API-Key: $FINOSU_API_KEY" \ -H 'If-None-Match: W/""' ``` Send the same query parameters on every poll. An ETag describes one response, so an ETag taken from a call without `includeScheduledPayments` does not match a call with it. ### Example The plan originally had four installments of `$206.67`, due May 15, May 29, June 12, and June 26, for a total of `$826.68`. When the May 29 installment was missed, a **new replacement installment** for the same `$206.67` was added for July 10. It was not added to the amount of an existing installment. The response retains the missed row for history, so it shows five rows but only four obligations across the life of the plan. The response below is from `GET /loans/L-88213/payment-plan?includeScheduledPayments=true&includePayments=true`. Without the two parameters, the same call returns everything except the `scheduledPayments` and `payments` arrays. A biweekly plan viewed in late June, showing five of the eight possible statuses: `PAID` (by two payments, the second of which overpaid it), `MISSED`, `OVERDUE`, `PARTIALLY_PAID` (from the resulting credit), and `PENDING`. `SKIPPED`, `POSTPONED` and `CANCELLED` are not shown here — see the status tables above for all eight. > [!NOTE] > > `scheduledAmount` values may not sum to `discountedTotal`. `scheduledPayments` > includes scheduled payments that are no longer obligations, whose amounts were > moved onto others or forgiven, so they can total more than the plan itself. In > this example the five come to `1033.35` against a `discountedTotal` of `826.68`. > The difference is the historical `MISSED` row from May 29. Its obligation is > represented by the new July 10 `PENDING` row, not by an increase to the June rows. > > `discountedTotal` is the authorized total, and `remainingAmount` the > outstanding balance. ```json theme={null} { "loanId": "L-88213", "customerId": "C-4410", "paymentPlan": { "planId": "L-88213-plan-2", "planVersion": "3f9a1c07", "type": "CUSTOM", "standing": "PAST_DUE", "startDate": "2026-05-15", "autopayEnabled": true, "createdAt": "2026-05-08T18:22:04.001Z", "cadence": { "frequency": "BIWEEKLY", "dayOfWeek": 5, "dayOfMonth": null, "semimonthlyDays": null }, "totals": { "originalTotal": 1200.0, "discountedTotal": 826.68, "paidToDate": 300.0, "creditsApplied": 93.33, "remainingAmount": 526.68, "pendingAmount": 0.0, "offPlatformPaymentsTotal": 100.0 }, "scheduledPayments": [ { "scheduledPaymentId": "1a0b7c22-9d3e-4f10-b5a6-2c8e9f41d700", "dueDate": "2026-05-15T07:00:00-05:00", "scheduledAmount": 206.67, "amountPaid": 300.0, "creditsApplied": 0.0, "amountRemaining": 0.0, "status": "PAID" }, { "scheduledPaymentId": "2b1c8d33-ae4f-4021-c6b7-3d9f0a52e811", "dueDate": "2026-05-29T07:00:00-05:00", "scheduledAmount": 206.67, "amountPaid": 0.0, "creditsApplied": 0.0, "amountRemaining": 206.67, "status": "MISSED" }, { "scheduledPaymentId": "3c2d9e44-bf50-4132-d7c8-4e0a1b63f922", "dueDate": "2026-06-12T07:00:00-05:00", "scheduledAmount": 206.67, "amountPaid": 0.0, "creditsApplied": 0.0, "amountRemaining": 206.67, "status": "OVERDUE" }, { "scheduledPaymentId": "d42b0a81-2c55-4f3b-9e1f-88d0c2b3a614", "dueDate": "2026-06-26T07:00:00-05:00", "scheduledAmount": 206.67, "amountPaid": 0.0, "creditsApplied": 93.33, "amountRemaining": 113.34, "status": "PARTIALLY_PAID" }, { "scheduledPaymentId": "e53c1b92-3d66-4a4c-8f20-99e1d3c4b725", "dueDate": "2026-07-10T07:00:00-05:00", "scheduledAmount": 206.67, "amountPaid": 0.0, "creditsApplied": 0.0, "amountRemaining": 206.67, "status": "PENDING" } ], "payments": [ { "paymentId": "5c7e1a90-3b62-4c88-9a11-6d4f2e8b0c31", "scheduledPaymentId": "1a0b7c22-9d3e-4f10-b5a6-2c8e9f41d700", "amount": 100.0, "currency": "USD", "status": "SUCCESSFUL", "paymentType": "PARTIAL", "source": "EXTERNAL", "transactedAt": "2026-05-15T09:07:44-05:00", "finalizedAt": "2026-05-18T02:11:00Z", "reversedAt": null, "reference": "LMS-PMT-99101" }, { "paymentId": "a71f3d05-8c92-4b1e-9d43-2e6b8f0a5c17", "scheduledPaymentId": "1a0b7c22-9d3e-4f10-b5a6-2c8e9f41d700", "amount": 200.0, "currency": "USD", "status": "SUCCESSFUL", "paymentType": "OVERPAYMENT", "source": "SYSTEM", "transactedAt": "2026-05-20T14:22:10-05:00", "finalizedAt": "2026-05-21T02:07:00Z", "reversedAt": null, "reference": null }, { "paymentId": "6d8f2b01-4c73-4d99-8b22-7e5a3f9c1d42", "scheduledPaymentId": "2b1c8d33-ae4f-4021-c6b7-3d9f0a52e811", "amount": 206.67, "currency": "USD", "status": "FAILED", "paymentType": "AUTOPAY", "source": "SYSTEM", "transactedAt": "2026-05-29T09:03:12-05:00", "finalizedAt": null, "reversedAt": null, "reference": null } ] } } ``` Reading the example: **The first scheduled payment** shows `amountPaid: 300.00` against a `scheduledAmount` of `206.67`. It reports only the outcome (`PAID`) — that it took **two** payments, and that the borrower was five days late completing it, is visible only in `payments[]`. Note the first of those payments has `source: "EXTERNAL"`, which is why `offPlatformPaymentsTotal` is `100.00`: money the lender collected and uploaded, already counted inside `paidToDate`. **The `93.33` excess** (`300.00 - 206.67`) appears as `creditsApplied` on the fourth scheduled payment, which is why it is `PARTIALLY_PAID` with `amountRemaining: 113.34` despite `amountPaid: 0.00`. **The second scheduled payment is `MISSED`.** Its `FAILED` payment is in `payments[]`. The fifth row, due July 10 with status `PENDING`, is its replacement and carries the same `$206.67` obligation. The June 12 and June 26 amounts are unchanged. Do not board the historical May 29 row as well, or you would collect the same obligation twice. **Checking the balance:** `remainingAmount` (`526.68`) is the sum of `amountRemaining` across the three boardable scheduled payments (`206.67 + 113.34 + 206.67`), and equals `discountedTotal - paidToDate` (`826.68 - 300.00`). It is **not** `discountedTotal - paidToDate - creditsApplied` (`433.35`). That would deduct the `93.33` twice: once as the payment that created it, and again as the credit it became. ### Error Responses | Status Code | Description | | - | - | | 401 | Missing or invalid `X-API-Key` | | 404 | No loan with that reference exists for your company, or (scheduled-payments endpoint) the `planId` does not belong to that loan | | 500 | Unexpected server error | ### Proposed response field reference These draft fields supplement the worked example above; they are not a published runtime schema. #### PaymentPlanEnvelope | Field | Type | Required in draft | Description | | - | - | - | - | | `loanId` | string | Yes | The loan's external reference, echoing the request path. | | `customerId` | string | Yes | The customer's reference id. | | `paymentPlan` | PaymentPlan or null | No | The active payment plan, or `null` if the loan has none. A `null` plan is a normal state (never enrolled, or the plan completed or was cancelled) and is distinct from a 404, which means the loan itself was not found. | #### PaymentPlan | Field | Type | Required in draft | Description | | - | - | - | - | | `planId` | string | Yes | Identifies the plan. Stable for the life of the plan. | | `planVersion` | string | Yes | Identifies the plan's current state. Changes whenever a payment, credit, or schedule change affects the plan. Two responses with the same `planId` and equal `planVersion` describe the same state. | | `type` | string | Yes | CUSTOM, FIXED, ONE_TIME or SETTLEMENT. Detect a discount by comparing originalTotal with discountedTotal rather than relying on this value. | | `standing` | string | Yes | CURRENT if the borrower is on track, PAST_DUE if any live installment is overdue, COMPLETED if all are paid, UNKNOWN if the plan has no live installments. | | `startDate` | string or null | No | The plan's authored start date. Combined with `cadence.frequency` it reproduces the intended series. | | `autopayEnabled` | boolean | Yes | Whether Finosu will automatically draft the scheduled payments. Check this before collecting independently, to avoid double-drafting. | | `createdAt` | string | Yes | When the plan was created, i.e. when the borrower authorized it. | | `cadence` | Cadence | Yes | See the proposed example. | | `totals` | PlanTotals | Yes | See the proposed example. | | `scheduledPayments` | array of ScheduledPayment | No | Present only when `includeScheduledPayments=true`. The plan's scheduled payments, ordered by due date. | | `payments` | array of Payment | No | Present only when `includePayments=true`. Payments against this plan, ordered by transaction date. Payments made against the loan but not associated with this plan are not included. | #### ScheduledPaymentList Returned by `GET /loans/{id}/payment-plans/{planId}/scheduled-payments`. | Field | Type | Required in draft | Description | | - | - | - | - | | `loanId` | string | Yes | The loan's external reference, echoing the request path. | | `planId` | string | Yes | The plan these scheduled payments belong to, echoing the request path. | | `planVersion` | string | Yes | The plan's state when these scheduled payments were read. Compare with `paymentPlan.planVersion` from the current-plan endpoint only when the two `planId` values match. | | `scheduledPayments` | array of ScheduledPayment | Yes | The plan's installments, ordered by due date. | #### Cadence | Field | Type | Required in draft | Description | | - | - | - | - | | `frequency` | string or null | No | WEEKLY, BIWEEKLY, SEMIMONTHLY or MONTHLY. | | `dayOfWeek` | integer or null | No | ISO day of week (Monday=1). Populated for WEEKLY and BIWEEKLY. | | `dayOfMonth` | integer or null | No | Day of month, 1-31. Populated for MONTHLY. | | `semimonthlyDays` | array or null | No | The two days of month, ascending. Populated for SEMIMONTHLY. Always either both days or `null` — a partially recorded rule is reported as `null` rather than a one-element list. | #### PlanTotals | Field | Type | Required in draft | Description | | - | - | - | - | | `originalTotal` | number or string or null | No | What was owed when the plan was created. `null` means no baseline was recorded — it does not mean there was no discount. | | `discountedTotal` | number or string | Yes | What the borrower agreed to pay under this plan. | | `paidToDate` | number or string | Yes | Cash attributed to scheduled payments, any source. Equals the sum of `scheduledPayments[].amountPaid`, and the sum of successful `payments[]` that have an `scheduledPaymentId`. | | `creditsApplied` | number or string | Yes | Total credit applied across the plan's scheduled payments. Not cash. | | `remainingAmount` | number or string | Yes | What is still owed: the sum of `amountRemaining` across scheduled payments whose status is PENDING, PARTIALLY_PAID or OVERDUE. Do not compute this as discountedTotal - paidToDate - creditsApplied; that double-counts credit that originated from an overpayment. | | `pendingAmount` | number or string | Yes | Payments in flight (status PENDING) against this plan. | | `offPlatformPaymentsTotal` | number or string | Yes | The portion of `paidToDate` that was collected outside Finosu (payments with source EXTERNAL). A subset of paidToDate, never an addition to it. | #### ScheduledPayment | Field | Type | Required in draft | Description | | - | - | - | - | | `scheduledPaymentId` | string | Yes | Finosu identifier for this scheduled payment. Join target for `payments[].scheduledPaymentId`. | | `dueDate` | string | Yes | When this installment is due, with UTC offset. Authoritative for actual timing — unlike `cadence`, it reflects any rescheduling. | | `scheduledAmount` | number or string | Yes | The authorized amount for this installment. | | `amountPaid` | number or string | Yes | Cash applied to this installment. Excludes returned/refunded. | | `creditsApplied` | number or string | Yes | Credit applied to this installment from the loan's credit balance. Kept separate from cash because a credit satisfies an obligation with no money movement. | | `amountRemaining` | number or string | Yes | max(0, scheduledAmount - amountPaid - creditsApplied). Only meaningful when `status` is PENDING, PARTIALLY_PAID or OVERDUE. A MISSED or POSTPONED row reports a non-zero value whose obligation has moved elsewhere, so summing across all rows overstates the balance. | | `status` | string | Yes | PENDING, PARTIALLY_PAID, OVERDUE, PAID, CANCELLED, MISSED, SKIPPED or POSTPONED. Board only rows whose status is PENDING, PARTIALLY_PAID or OVERDUE. | #### Payment | Field | Type | Required in draft | Description | | - | - | - | - | | `paymentId` | string | Yes | Finosu identifier for this payment. | | `scheduledPaymentId` | string | Yes | The scheduled payment this was applied to. | | `amount` | number or string | Yes | Payment amount. | | `currency` | string | Yes | ISO currency code. | | `status` | string | Yes | One of PENDING, SUCCESSFUL, FAILED, REFUNDED, RETURNED. RETURNED/REFUNDED mean the money came back and does not count toward amounts paid. | | `paymentType` | string | Yes | One of REGULAR, AUTOPAY, PARTIAL, OVERPAYMENT, PAYOFF, PAY_IN_FULL. | | `source` | string | Yes | SYSTEM if collected through Finosu, EXTERNAL if collected outside it. EXTERNAL is what identifies an off-platform payment. | | `transactedAt` | string | Yes | Effective/submission date. A Finosu-side timestamp, not a bank confirmation. | | `finalizedAt` | string or null | No | When Finosu considers the payment settled. A Finosu-side timestamp, not a bank confirmation. | | `reversedAt` | string or null | No | Set when the payment was returned or refunded. | | `reference` | string or null | No | The external reference supplied with the payment, for payments the lender recorded themselves. The join key back into their ledger. | The final contract and availability will be published in the API reference when released. No integration changes are required now. ## Questions If any of these fields are not available in your system, or you need more time to adjust, contact your Finosu account manager so we can plan around it. # Event catalog Source: https://docs.finosu.com/api-reference/webhooks/events Grouped events, triggers, complete payloads, field requirements, and JSON schemas. Managed webhooks are available to integrations explicitly configured by Finosu. Contact Finosu to confirm eligibility and configure your company. Select individual subscriptions within Payments, Texts, Calls, and Emails. Setup tests are not subscriptions. This reference and the webhook editor use the same backend catalog. The sender validates the complete envelope and event data against that contract before saving a delivery. Examples below contain fictional identifiers. Receivers should tolerate additional fields for forward compatibility. The JSON schemas below are strict sender-side contracts: `additionalProperties: false` prevents accidental disclosure when Finosu creates a delivery. Receivers using these schemas must allow unknown properties at every object level, including nested objects and `$defs`, while still validating known fields, signatures, company, and environment. ## Request and acceptance Finosu sends an HTTPS `POST` with `Content-Type: application/json`, `X-Finosu-Signature: t=,v1=`, and an `Idempotency-Key` that identifies the endpoint delivery. An optional configured bearer token is sent in `Authorization`. [Verify the raw-body signature](/api-reference/webhooks/verification), check company and environment, then durably deduplicate and enqueue before returning `2xx`. Return `2xx` for an already accepted duplicate. See [delivery and retries](/api-reference/webhooks/receiving) for failures, ordering, pauses, and retry limits. These events never authorize another charge or send. `occurred_at` is consumer capture time. Text/email events separately expose `data.sent_at`; calls expose `data.started_at` for their supported source signal. A successful dispatch does not prove a text/email was delivered, a borrower answered, or content was read. Publication gaps before the delivery queue are not repaired by HTTP retries; there is no historical catch-up API. Test-customer events use the same event names and subscriptions with `test: true`. Accept and deduplicate them, but never apply them to live accounts. They do not verify endpoint setup or bypass activation/pause. The separate `webhook.test` event remains the explicit synthetic endpoint-verification signal. ## Common envelope | Field | Type | Required | Meaning | | - | - | - | - | | `id` | uuid | Yes | Event ID shared across endpoint copies; retained on retry. | | `type` | string | Yes | Event name from this catalog. | | `occurred_at` | date-time | Yes | Consumer capture time in UTC; not source commit time. | | `environment` | string | Yes | Finosu environment; validate against your configured environment. | | `company_id` | uuid | Yes | Owning company; validate against your configured company. | | `subject` | object | Yes | See the nested schema below. | | `references` | object | Yes | See the nested schema below. | | `data` | object | Yes | See the nested schema below. | | `test` | boolean | Yes | True for a test-customer event or an explicit synthetic endpoint test. Test-customer events follow ordinary subscriptions and do not verify an endpoint. | ### subject | Field | Type | Required | Meaning | | - | - | - | - | | `type` | `payment` or `text` or `call` or `email` or `webhook` | Yes | Resource category. | | `id` | uuid | Yes | Stable Finosu resource ID. Email dispatch uses an opaque send identity. | | `sequence` | integer | Yes | Compare only within the same company and subject; not a global catch-up cursor. | ### references | Field | Type | Required | Meaning | | - | - | - | - | | `customer_reference` | string or null | Yes | Your customer reference, or null. | | `loan_reference` | string or null | Yes | Your exact associated loan reference, or null. Never inferred from another loan. | ## Events | Group | Event | Description | | - | - | - | | Payments | [`payment.succeeded`](#paymentsucceeded) | A payment has a confirmed successful outcome. Pending ACH submission is excluded. | | Payments | [`payment.failed`](#paymentfailed) | A payment has a confirmed failed outcome. This does not authorize another charge. | | Payments | [`payment.returned`](#paymentreturned) | A previously recorded payment was returned. Its identity and origin are retained. | | Texts | [`text.sent`](#textsent) | An outbound text was accepted by the sending provider. | | Calls | [`call.started`](#callstarted) | An outbound call's phone leg started dialing or became active. | | Emails | [`email.sent`](#emailsent) | An outbound email was accepted by the sending provider. | | Setup | [`webhook.test`](#webhooktest) | Synthetic endpoint verification. | ## payment.succeeded **Group:** Payments. **Subscribable:** Yes. A payment has a confirmed successful outcome. Pending ACH submission is excluded. **When:** A supported payment notification is consumed and the persisted transaction is SUCCESSFUL. **Use for:** Reconcile a confirmed successful payment allocation. **Coverage and limits:** The consumer reads current committed state. A return can supersede an unconsumed success. Pending ACH, deleted records, test loans for non-test customers, and invalid customer/loan/company scope are excluded. Test-customer outcomes use normal subscriptions with test=true; never apply them to live accounts. Publication failures and exhausted consumer retries can lose notifications before enqueue. No historical backfill or catch-up API. Never initiate another debit from these events. ### Data fields | Field | Type | Required | Meaning | | - | - | - | - | | `status` | `successful` | Yes | Confirmed successful payment. | | `amount` | string | Yes | Decimal string allocated to this transaction. | | `currency` | string | Yes | Currency recorded for the transaction. | | `origin` | string | Yes | Recorded source provenance; values are not a closed catalog. | | `payment_plan_id` | uuid or null | Yes | Associated Finosu payment plan ID, or null. | | `gateway_charge_amount` | string or null | No | Grouped provider debit amount, when recorded. Never sum once per allocation. | ### Complete example ```json theme={null} { "id": "4f6519a2-9d0c-472f-903b-d451a377bef1", "type": "payment.succeeded", "occurred_at": "2026-11-04T15:00:01Z", "environment": "production", "company_id": "df29fd53-3bc0-40ef-9885-4a739f97aa10", "subject": { "type": "payment", "id": "1ce7413e-edde-47c4-b67a-388b408619ec", "sequence": 123 }, "references": { "customer_reference": "CUST-123", "loan_reference": "LOAN-456" }, "data": { "status": "successful", "amount": "100.00", "currency": "USD", "origin": "SYSTEM", "payment_plan_id": null, "gateway_charge_amount": null }, "test": false } ```
Complete JSON Schema ```json theme={null} { "$defs": { "References": { "additionalProperties": false, "properties": { "customer_reference": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "Your customer reference, or null.", "title": "Customer Reference" }, "loan_reference": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "Your exact associated loan reference, or null. Never inferred from another loan.", "title": "Loan Reference" } }, "required": [ "customer_reference", "loan_reference" ], "title": "References", "type": "object" }, "Subject": { "additionalProperties": false, "properties": { "type": { "type": "string", "const": "payment" }, "id": { "description": "Stable Finosu resource ID. Email dispatch uses an opaque send identity.", "format": "uuid", "title": "Id", "type": "string" }, "sequence": { "description": "Compare only within the same company and subject; not a global catch-up cursor.", "minimum": 1, "title": "Sequence", "type": "integer" } }, "required": [ "type", "id", "sequence" ], "title": "Subject", "type": "object" } }, "additionalProperties": false, "properties": { "id": { "description": "Event ID shared across endpoint copies; retained on retry.", "format": "uuid", "title": "Id", "type": "string" }, "type": { "description": "Event name from this catalog.", "title": "Type", "type": "string", "const": "payment.succeeded" }, "occurred_at": { "description": "Consumer capture time in UTC; not source commit time.", "format": "date-time", "title": "Occurred At", "type": "string" }, "environment": { "description": "Finosu environment; validate against your configured environment.", "title": "Environment", "type": "string" }, "company_id": { "description": "Owning company; validate against your configured company.", "format": "uuid", "title": "Company Id", "type": "string" }, "subject": { "$ref": "#/$defs/Subject" }, "references": { "$ref": "#/$defs/References" }, "data": { "additionalProperties": false, "properties": { "status": { "const": "successful", "description": "Confirmed successful payment.", "title": "Status", "type": "string" }, "amount": { "description": "Decimal string allocated to this transaction.", "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", "title": "Amount", "type": "string" }, "currency": { "description": "Currency recorded for the transaction.", "title": "Currency", "type": "string" }, "origin": { "description": "Recorded source provenance; values are not a closed catalog.", "title": "Origin", "type": "string" }, "payment_plan_id": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "description": "Associated Finosu payment plan ID, or null.", "title": "Payment Plan Id" }, "gateway_charge_amount": { "anyOf": [ { "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", "type": "string" }, { "type": "null" } ], "default": null, "description": "Grouped provider debit amount, when recorded. Never sum once per allocation.", "title": "Gateway Charge Amount" } }, "required": [ "status", "amount", "currency", "origin", "payment_plan_id" ], "title": "SuccessfulPaymentData", "type": "object" }, "test": { "description": "True for a test-customer event or an explicit synthetic endpoint test. Test-customer events follow ordinary subscriptions and do not verify an endpoint.", "title": "Test", "type": "boolean" } }, "required": [ "id", "type", "occurred_at", "environment", "company_id", "subject", "references", "data", "test" ], "title": "WebhookEnvelope", "type": "object" } ```
## payment.failed **Group:** Payments. **Subscribable:** Yes. A payment has a confirmed failed outcome. This does not authorize another charge. **When:** A supported payment notification is consumed and the persisted transaction is FAILED. **Use for:** Reconcile a failed payment attempt without submitting another charge. **Coverage and limits:** The consumer reads current committed state. A return can supersede an unconsumed success. Pending ACH, deleted records, test loans for non-test customers, and invalid customer/loan/company scope are excluded. Test-customer outcomes use normal subscriptions with test=true; never apply them to live accounts. Publication failures and exhausted consumer retries can lose notifications before enqueue. No historical backfill or catch-up API. Never initiate another debit from these events. ### Data fields | Field | Type | Required | Meaning | | - | - | - | - | | `status` | `failed` | Yes | Confirmed failed payment. | | `amount` | string | Yes | Decimal string allocated to this transaction. | | `currency` | string | Yes | Currency recorded for the transaction. | | `origin` | string | Yes | Recorded source provenance; values are not a closed catalog. | | `payment_plan_id` | uuid or null | Yes | Associated Finosu payment plan ID, or null. | | `gateway_charge_amount` | string or null | No | Grouped provider debit amount, when recorded. Never sum once per allocation. | ### Complete example ```json theme={null} { "id": "4f6519a2-9d0c-472f-903b-d451a377bef1", "type": "payment.failed", "occurred_at": "2026-11-04T15:00:01Z", "environment": "production", "company_id": "df29fd53-3bc0-40ef-9885-4a739f97aa10", "subject": { "type": "payment", "id": "1ce7413e-edde-47c4-b67a-388b408619ec", "sequence": 123 }, "references": { "customer_reference": "CUST-123", "loan_reference": "LOAN-456" }, "data": { "status": "failed", "amount": "100.00", "currency": "USD", "origin": "SYSTEM", "payment_plan_id": null, "gateway_charge_amount": null }, "test": false } ```
Complete JSON Schema ```json theme={null} { "$defs": { "References": { "additionalProperties": false, "properties": { "customer_reference": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "Your customer reference, or null.", "title": "Customer Reference" }, "loan_reference": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "Your exact associated loan reference, or null. Never inferred from another loan.", "title": "Loan Reference" } }, "required": [ "customer_reference", "loan_reference" ], "title": "References", "type": "object" }, "Subject": { "additionalProperties": false, "properties": { "type": { "type": "string", "const": "payment" }, "id": { "description": "Stable Finosu resource ID. Email dispatch uses an opaque send identity.", "format": "uuid", "title": "Id", "type": "string" }, "sequence": { "description": "Compare only within the same company and subject; not a global catch-up cursor.", "minimum": 1, "title": "Sequence", "type": "integer" } }, "required": [ "type", "id", "sequence" ], "title": "Subject", "type": "object" } }, "additionalProperties": false, "properties": { "id": { "description": "Event ID shared across endpoint copies; retained on retry.", "format": "uuid", "title": "Id", "type": "string" }, "type": { "description": "Event name from this catalog.", "title": "Type", "type": "string", "const": "payment.failed" }, "occurred_at": { "description": "Consumer capture time in UTC; not source commit time.", "format": "date-time", "title": "Occurred At", "type": "string" }, "environment": { "description": "Finosu environment; validate against your configured environment.", "title": "Environment", "type": "string" }, "company_id": { "description": "Owning company; validate against your configured company.", "format": "uuid", "title": "Company Id", "type": "string" }, "subject": { "$ref": "#/$defs/Subject" }, "references": { "$ref": "#/$defs/References" }, "data": { "additionalProperties": false, "properties": { "status": { "const": "failed", "description": "Confirmed failed payment.", "title": "Status", "type": "string" }, "amount": { "description": "Decimal string allocated to this transaction.", "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", "title": "Amount", "type": "string" }, "currency": { "description": "Currency recorded for the transaction.", "title": "Currency", "type": "string" }, "origin": { "description": "Recorded source provenance; values are not a closed catalog.", "title": "Origin", "type": "string" }, "payment_plan_id": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "description": "Associated Finosu payment plan ID, or null.", "title": "Payment Plan Id" }, "gateway_charge_amount": { "anyOf": [ { "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", "type": "string" }, { "type": "null" } ], "default": null, "description": "Grouped provider debit amount, when recorded. Never sum once per allocation.", "title": "Gateway Charge Amount" } }, "required": [ "status", "amount", "currency", "origin", "payment_plan_id" ], "title": "FailedPaymentData", "type": "object" }, "test": { "description": "True for a test-customer event or an explicit synthetic endpoint test. Test-customer events follow ordinary subscriptions and do not verify an endpoint.", "title": "Test", "type": "boolean" } }, "required": [ "id", "type", "occurred_at", "environment", "company_id", "subject", "references", "data", "test" ], "title": "WebhookEnvelope", "type": "object" } ```
## payment.returned **Group:** Payments. **Subscribable:** Yes. A previously recorded payment was returned. Its identity and origin are retained. **When:** A return notification is consumed and the persisted transaction is RETURNED. **Use for:** Update the same payment's recorded outcome to returned. **Coverage and limits:** The consumer reads current committed state. A return can supersede an unconsumed success. Pending ACH, deleted records, test loans for non-test customers, and invalid customer/loan/company scope are excluded. Test-customer outcomes use normal subscriptions with test=true; never apply them to live accounts. Publication failures and exhausted consumer retries can lose notifications before enqueue. No historical backfill or catch-up API. Never initiate another debit from these events. ### Data fields | Field | Type | Required | Meaning | | - | - | - | - | | `status` | `returned` | Yes | Confirmed returned payment. | | `amount` | string | Yes | Decimal string allocated to this transaction. | | `currency` | string | Yes | Currency recorded for the transaction. | | `origin` | string | Yes | Recorded source provenance; values are not a closed catalog. | | `payment_plan_id` | uuid or null | Yes | Associated Finosu payment plan ID, or null. | | `gateway_charge_amount` | string or null | No | Grouped provider debit amount, when recorded. Never sum once per allocation. | ### Complete example ```json theme={null} { "id": "4f6519a2-9d0c-472f-903b-d451a377bef1", "type": "payment.returned", "occurred_at": "2026-11-04T15:00:01Z", "environment": "production", "company_id": "df29fd53-3bc0-40ef-9885-4a739f97aa10", "subject": { "type": "payment", "id": "1ce7413e-edde-47c4-b67a-388b408619ec", "sequence": 123 }, "references": { "customer_reference": "CUST-123", "loan_reference": "LOAN-456" }, "data": { "status": "returned", "amount": "100.00", "currency": "USD", "origin": "SYSTEM", "payment_plan_id": null, "gateway_charge_amount": null }, "test": false } ```
Complete JSON Schema ```json theme={null} { "$defs": { "References": { "additionalProperties": false, "properties": { "customer_reference": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "Your customer reference, or null.", "title": "Customer Reference" }, "loan_reference": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "Your exact associated loan reference, or null. Never inferred from another loan.", "title": "Loan Reference" } }, "required": [ "customer_reference", "loan_reference" ], "title": "References", "type": "object" }, "Subject": { "additionalProperties": false, "properties": { "type": { "type": "string", "const": "payment" }, "id": { "description": "Stable Finosu resource ID. Email dispatch uses an opaque send identity.", "format": "uuid", "title": "Id", "type": "string" }, "sequence": { "description": "Compare only within the same company and subject; not a global catch-up cursor.", "minimum": 1, "title": "Sequence", "type": "integer" } }, "required": [ "type", "id", "sequence" ], "title": "Subject", "type": "object" } }, "additionalProperties": false, "properties": { "id": { "description": "Event ID shared across endpoint copies; retained on retry.", "format": "uuid", "title": "Id", "type": "string" }, "type": { "description": "Event name from this catalog.", "title": "Type", "type": "string", "const": "payment.returned" }, "occurred_at": { "description": "Consumer capture time in UTC; not source commit time.", "format": "date-time", "title": "Occurred At", "type": "string" }, "environment": { "description": "Finosu environment; validate against your configured environment.", "title": "Environment", "type": "string" }, "company_id": { "description": "Owning company; validate against your configured company.", "format": "uuid", "title": "Company Id", "type": "string" }, "subject": { "$ref": "#/$defs/Subject" }, "references": { "$ref": "#/$defs/References" }, "data": { "additionalProperties": false, "properties": { "status": { "const": "returned", "description": "Confirmed returned payment.", "title": "Status", "type": "string" }, "amount": { "description": "Decimal string allocated to this transaction.", "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", "title": "Amount", "type": "string" }, "currency": { "description": "Currency recorded for the transaction.", "title": "Currency", "type": "string" }, "origin": { "description": "Recorded source provenance; values are not a closed catalog.", "title": "Origin", "type": "string" }, "payment_plan_id": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "description": "Associated Finosu payment plan ID, or null.", "title": "Payment Plan Id" }, "gateway_charge_amount": { "anyOf": [ { "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", "type": "string" }, { "type": "null" } ], "default": null, "description": "Grouped provider debit amount, when recorded. Never sum once per allocation.", "title": "Gateway Charge Amount" } }, "required": [ "status", "amount", "currency", "origin", "payment_plan_id" ], "title": "ReturnedPaymentData", "type": "object" }, "test": { "description": "True for a test-customer event or an explicit synthetic endpoint test. Test-customer events follow ordinary subscriptions and do not verify an endpoint.", "title": "Test", "type": "boolean" } }, "required": [ "id", "type", "occurred_at", "environment", "company_id", "subject", "references", "data", "test" ], "title": "WebhookEnvelope", "type": "object" } ```
## text.sent **Group:** Texts. **Subscribable:** Yes. An outbound text was accepted by the sending provider. **When:** The shared outbound text send path commits a successful provider acceptance, then the listener requires a saved outbound message with a provider message ID, current sent or delivered status, and valid tenant scope. **Use for:** Track an accepted outbound text using its Finosu message ID. **Coverage and limits:** Reports dispatch only, not delivery, answer, or engagement. Deleted customers and invalid tenant/loan scope are excluded. Content, recipients, credentials, and provider responses are omitted. Only the supported producer paths emit notifications; direct database writes and historical sends do not. Test-customer events use normal subscriptions with test=true; never apply them to live accounts. Publication failures and exhausted consumer retries can lose notifications before enqueue. Successful integrations that omit a provider message ID are not covered. A later failed status can suppress a delayed notification. Text loan references are null; no loan is guessed. ### Data fields | Field | Type | Required | Meaning | | - | - | - | - | | `status` | `sent` | Yes | The sending provider accepted the message. This does not prove delivery or reading. | | `sent_at` | date-time | Yes | Time of the supported successful-send signal, in UTC. | ### Complete example ```json theme={null} { "id": "4f6519a2-9d0c-472f-903b-d451a377bef1", "type": "text.sent", "occurred_at": "2026-11-04T15:00:01Z", "environment": "production", "company_id": "df29fd53-3bc0-40ef-9885-4a739f97aa10", "subject": { "type": "text", "id": "1ce7413e-edde-47c4-b67a-388b408619ec", "sequence": 123 }, "references": { "customer_reference": "CUST-123", "loan_reference": null }, "data": { "status": "sent", "sent_at": "2026-11-04T15:00:00Z" }, "test": false } ```
Complete JSON Schema ```json theme={null} { "$defs": { "References": { "additionalProperties": false, "properties": { "customer_reference": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "Your customer reference, or null.", "title": "Customer Reference" }, "loan_reference": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "Your exact associated loan reference, or null. Never inferred from another loan.", "title": "Loan Reference" } }, "required": [ "customer_reference", "loan_reference" ], "title": "References", "type": "object" }, "Subject": { "additionalProperties": false, "properties": { "type": { "type": "string", "const": "text" }, "id": { "description": "Stable Finosu resource ID. Email dispatch uses an opaque send identity.", "format": "uuid", "title": "Id", "type": "string" }, "sequence": { "description": "Compare only within the same company and subject; not a global catch-up cursor.", "minimum": 1, "title": "Sequence", "type": "integer" } }, "required": [ "type", "id", "sequence" ], "title": "Subject", "type": "object" } }, "additionalProperties": false, "properties": { "id": { "description": "Event ID shared across endpoint copies; retained on retry.", "format": "uuid", "title": "Id", "type": "string" }, "type": { "description": "Event name from this catalog.", "title": "Type", "type": "string", "const": "text.sent" }, "occurred_at": { "description": "Consumer capture time in UTC; not source commit time.", "format": "date-time", "title": "Occurred At", "type": "string" }, "environment": { "description": "Finosu environment; validate against your configured environment.", "title": "Environment", "type": "string" }, "company_id": { "description": "Owning company; validate against your configured company.", "format": "uuid", "title": "Company Id", "type": "string" }, "subject": { "$ref": "#/$defs/Subject" }, "references": { "$ref": "#/$defs/References" }, "data": { "additionalProperties": false, "properties": { "status": { "const": "sent", "description": "The sending provider accepted the message. This does not prove delivery or reading.", "title": "Status", "type": "string" }, "sent_at": { "description": "Time of the supported successful-send signal, in UTC.", "format": "date-time", "title": "Sent At", "type": "string" } }, "required": [ "status", "sent_at" ], "title": "SentData", "type": "object" }, "test": { "description": "True for a test-customer event or an explicit synthetic endpoint test. Test-customer events follow ordinary subscriptions and do not verify an endpoint.", "title": "Test", "type": "boolean" } }, "required": [ "id", "type", "occurred_at", "environment", "company_id", "subject", "references", "data", "test" ], "title": "WebhookEnvelope", "type": "object" } ```
## call.started **Group:** Calls. **Subscribable:** Yes. An outbound call's phone leg started dialing or became active. **When:** An authenticated phone-participant join reports dialing, ringing, or active for an outbound call, matching its acknowledged or saved pre-dispatch room, trunk, and recipient. **Use for:** Track the start of the outbound phone leg using the Finosu call ID. **Coverage and limits:** Reports dispatch only, not delivery, answer, or engagement. Deleted customers and invalid tenant/loan scope are excluded. Content, recipients, credentials, and provider responses are omitted. Only the supported producer paths emit notifications; direct database writes and historical sends do not. Test-customer events use normal subscriptions with test=true; never apply them to live accounts. Publication failures and exhausted consumer retries can lose notifications before enqueue. Queueing, agent dispatch acknowledgment, browser audio, room creation, and the preliminary call status alone do not qualify. Early joins can match the saved pre-dispatch room. Notification acceptance requires durable broker acknowledgment; failures permit provider notification retries without redialing. Calls without a matching join or with exhausted provider retries are not covered. ### Data fields | Field | Type | Required | Meaning | | - | - | - | - | | `status` | `started` | Yes | The outbound phone leg started. This does not prove a human answer or completed conversation. | | `started_at` | date-time | Yes | Time of the supported phone-participant signal, in UTC. | ### Complete example ```json theme={null} { "id": "4f6519a2-9d0c-472f-903b-d451a377bef1", "type": "call.started", "occurred_at": "2026-11-04T15:00:01Z", "environment": "production", "company_id": "df29fd53-3bc0-40ef-9885-4a739f97aa10", "subject": { "type": "call", "id": "1ce7413e-edde-47c4-b67a-388b408619ec", "sequence": 123 }, "references": { "customer_reference": "CUST-123", "loan_reference": "LOAN-456" }, "data": { "status": "started", "started_at": "2026-11-04T15:00:00Z" }, "test": false } ```
Complete JSON Schema ```json theme={null} { "$defs": { "References": { "additionalProperties": false, "properties": { "customer_reference": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "Your customer reference, or null.", "title": "Customer Reference" }, "loan_reference": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "Your exact associated loan reference, or null. Never inferred from another loan.", "title": "Loan Reference" } }, "required": [ "customer_reference", "loan_reference" ], "title": "References", "type": "object" }, "Subject": { "additionalProperties": false, "properties": { "type": { "type": "string", "const": "call" }, "id": { "description": "Stable Finosu resource ID. Email dispatch uses an opaque send identity.", "format": "uuid", "title": "Id", "type": "string" }, "sequence": { "description": "Compare only within the same company and subject; not a global catch-up cursor.", "minimum": 1, "title": "Sequence", "type": "integer" } }, "required": [ "type", "id", "sequence" ], "title": "Subject", "type": "object" } }, "additionalProperties": false, "properties": { "id": { "description": "Event ID shared across endpoint copies; retained on retry.", "format": "uuid", "title": "Id", "type": "string" }, "type": { "description": "Event name from this catalog.", "title": "Type", "type": "string", "const": "call.started" }, "occurred_at": { "description": "Consumer capture time in UTC; not source commit time.", "format": "date-time", "title": "Occurred At", "type": "string" }, "environment": { "description": "Finosu environment; validate against your configured environment.", "title": "Environment", "type": "string" }, "company_id": { "description": "Owning company; validate against your configured company.", "format": "uuid", "title": "Company Id", "type": "string" }, "subject": { "$ref": "#/$defs/Subject" }, "references": { "$ref": "#/$defs/References" }, "data": { "additionalProperties": false, "properties": { "status": { "const": "started", "description": "The outbound phone leg started. This does not prove a human answer or completed conversation.", "title": "Status", "type": "string" }, "started_at": { "description": "Time of the supported phone-participant signal, in UTC.", "format": "date-time", "title": "Started At", "type": "string" } }, "required": [ "status", "started_at" ], "title": "CallStartedData", "type": "object" }, "test": { "description": "True for a test-customer event or an explicit synthetic endpoint test. Test-customer events follow ordinary subscriptions and do not verify an endpoint.", "title": "Test", "type": "boolean" } }, "required": [ "id", "type", "occurred_at", "environment", "company_id", "subject", "references", "data", "test" ], "title": "WebhookEnvelope", "type": "object" } ```
## email.sent **Group:** Emails. **Subscribable:** Yes. An outbound email was accepted by the sending provider. **When:** A successful shared email-pipeline completion notification matches a persisted successful-send audit for the same company, customer, loan, recipient, and provider message. **Use for:** Track an accepted outbound email using a stable opaque send identity. **Coverage and limits:** Reports dispatch only, not delivery, answer, or engagement. Deleted customers and invalid tenant/loan scope are excluded. Content, recipients, credentials, and provider responses are omitted. Only the supported producer paths emit notifications; direct database writes and historical sends do not. Test-customer events use normal subscriptions with test=true; never apply them to live accounts. Publication failures and exhausted consumer retries can lose notifications before enqueue. Skipped, deferred, failed, bounced, customerless, and unaudited sends are excluded. Email sends outside the shared completion-event path are not covered. ### Data fields | Field | Type | Required | Meaning | | - | - | - | - | | `status` | `sent` | Yes | The sending provider accepted the message. This does not prove delivery or reading. | | `sent_at` | date-time | Yes | Time of the supported successful-send signal, in UTC. | ### Complete example ```json theme={null} { "id": "4f6519a2-9d0c-472f-903b-d451a377bef1", "type": "email.sent", "occurred_at": "2026-11-04T15:00:01Z", "environment": "production", "company_id": "df29fd53-3bc0-40ef-9885-4a739f97aa10", "subject": { "type": "email", "id": "1ce7413e-edde-47c4-b67a-388b408619ec", "sequence": 123 }, "references": { "customer_reference": "CUST-123", "loan_reference": "LOAN-456" }, "data": { "status": "sent", "sent_at": "2026-11-04T15:00:00Z" }, "test": false } ```
Complete JSON Schema ```json theme={null} { "$defs": { "References": { "additionalProperties": false, "properties": { "customer_reference": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "Your customer reference, or null.", "title": "Customer Reference" }, "loan_reference": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "Your exact associated loan reference, or null. Never inferred from another loan.", "title": "Loan Reference" } }, "required": [ "customer_reference", "loan_reference" ], "title": "References", "type": "object" }, "Subject": { "additionalProperties": false, "properties": { "type": { "type": "string", "const": "email" }, "id": { "description": "Stable Finosu resource ID. Email dispatch uses an opaque send identity.", "format": "uuid", "title": "Id", "type": "string" }, "sequence": { "description": "Compare only within the same company and subject; not a global catch-up cursor.", "minimum": 1, "title": "Sequence", "type": "integer" } }, "required": [ "type", "id", "sequence" ], "title": "Subject", "type": "object" } }, "additionalProperties": false, "properties": { "id": { "description": "Event ID shared across endpoint copies; retained on retry.", "format": "uuid", "title": "Id", "type": "string" }, "type": { "description": "Event name from this catalog.", "title": "Type", "type": "string", "const": "email.sent" }, "occurred_at": { "description": "Consumer capture time in UTC; not source commit time.", "format": "date-time", "title": "Occurred At", "type": "string" }, "environment": { "description": "Finosu environment; validate against your configured environment.", "title": "Environment", "type": "string" }, "company_id": { "description": "Owning company; validate against your configured company.", "format": "uuid", "title": "Company Id", "type": "string" }, "subject": { "$ref": "#/$defs/Subject" }, "references": { "$ref": "#/$defs/References" }, "data": { "additionalProperties": false, "properties": { "status": { "const": "sent", "description": "The sending provider accepted the message. This does not prove delivery or reading.", "title": "Status", "type": "string" }, "sent_at": { "description": "Time of the supported successful-send signal, in UTC.", "format": "date-time", "title": "Sent At", "type": "string" } }, "required": [ "status", "sent_at" ], "title": "SentData", "type": "object" }, "test": { "description": "True for a test-customer event or an explicit synthetic endpoint test. Test-customer events follow ordinary subscriptions and do not verify an endpoint.", "title": "Test", "type": "boolean" } }, "required": [ "id", "type", "occurred_at", "environment", "company_id", "subject", "references", "data", "test" ], "title": "WebhookEnvelope", "type": "object" } ```
## webhook.test **Group:** Setup. **Subscribable:** No. Synthetic endpoint verification. **When:** Staff explicitly sends a synthetic test for the current endpoint configuration. **Use for:** Verify authentication and receiver acceptance before activation. **Coverage and limits:** Not a business subscription. Contains no borrower data. A test for an older configuration cannot verify a newer one. ### Data fields | Field | Type | Required | Meaning | | - | - | - | - | | `message` | string | Yes | Synthetic setup message containing no borrower data. | ### Complete example ```json theme={null} { "id": "4f6519a2-9d0c-472f-903b-d451a377bef1", "type": "webhook.test", "occurred_at": "2026-11-04T15:00:01Z", "environment": "production", "company_id": "df29fd53-3bc0-40ef-9885-4a739f97aa10", "subject": { "type": "webhook", "id": "1ce7413e-edde-47c4-b67a-388b408619ec", "sequence": 123 }, "references": { "customer_reference": null, "loan_reference": null }, "data": { "message": "Synthetic Finosu webhook test. No borrower data." }, "test": true } ```
Complete JSON Schema ```json theme={null} { "$defs": { "References": { "additionalProperties": false, "properties": { "customer_reference": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "Your customer reference, or null.", "title": "Customer Reference" }, "loan_reference": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "Your exact associated loan reference, or null. Never inferred from another loan.", "title": "Loan Reference" } }, "required": [ "customer_reference", "loan_reference" ], "title": "References", "type": "object" }, "Subject": { "additionalProperties": false, "properties": { "type": { "type": "string", "const": "webhook" }, "id": { "description": "Stable Finosu resource ID. Email dispatch uses an opaque send identity.", "format": "uuid", "title": "Id", "type": "string" }, "sequence": { "description": "Compare only within the same company and subject; not a global catch-up cursor.", "minimum": 1, "title": "Sequence", "type": "integer" } }, "required": [ "type", "id", "sequence" ], "title": "Subject", "type": "object" } }, "additionalProperties": false, "properties": { "id": { "description": "Event ID shared across endpoint copies; retained on retry.", "format": "uuid", "title": "Id", "type": "string" }, "type": { "description": "Event name from this catalog.", "title": "Type", "type": "string", "const": "webhook.test" }, "occurred_at": { "description": "Consumer capture time in UTC; not source commit time.", "format": "date-time", "title": "Occurred At", "type": "string" }, "environment": { "description": "Finosu environment; validate against your configured environment.", "title": "Environment", "type": "string" }, "company_id": { "description": "Owning company; validate against your configured company.", "format": "uuid", "title": "Company Id", "type": "string" }, "subject": { "$ref": "#/$defs/Subject" }, "references": { "$ref": "#/$defs/References" }, "data": { "additionalProperties": false, "properties": { "message": { "description": "Synthetic setup message containing no borrower data.", "title": "Message", "type": "string" } }, "required": [ "message" ], "title": "WebhookTestData", "type": "object" }, "test": { "description": "True for a test-customer event or an explicit synthetic endpoint test. Test-customer events follow ordinary subscriptions and do not verify an endpoint.", "title": "Test", "type": "boolean", "const": true } }, "required": [ "id", "type", "occurred_at", "environment", "company_id", "subject", "references", "data", "test" ], "title": "WebhookEnvelope", "type": "object" } ```
# Managed webhooks Source: https://docs.finosu.com/api-reference/webhooks/overview Receive signed events from Finosu. Managed webhooks send payment outcome and outbound dispatch events to an HTTPS receiver in your system. Each endpoint belongs to one company and environment and has an explicit list of subscribed event types. > [!NOTE] > > Available only for integrations explicitly configured by Finosu. Contact Finosu > to confirm availability and configure your endpoint. Endpoint management currently > requires internal staff access; it is not a public API-key management API. ## Receive your first event 1. Create a receiver that verifies the signature on incoming `POST` requests. 2. Give Finosu its public HTTPS URL and the event types you want to receive. 3. Accept a signed test event, then have Finosu activate the endpoint when your business-event handler is ready. Follow the [quickstart](/api-reference/webhooks/quickstart) for a runnable test receiver and setup instructions. ## Choose your events | Workflow | Subscribe to | | - | - | | Record confirmed payments | `payment.succeeded` | | Track failed payments | `payment.failed` | | Reconcile returned payments | `payment.returned` | | Track accepted texts | `text.sent` | | Track outbound phone legs starting | `call.started` | | Track accepted emails | `email.sent` | Subscriptions are explicit; there is no automatic subscription to future event types. See the [event catalog](/api-reference/webhooks/events) for triggers, payload fields, and examples. ## Event envelope All business events use this envelope. The `data` object depends on `type`. ```json theme={null} { "id": "4f6519a2-9d0c-472f-903b-d451a377bef1", "type": "payment.succeeded", "occurred_at": "2026-11-03T15:00:00+00:00", "environment": "production", "company_id": "df29fd53-3bc0-40ef-9885-4a739f97aa10", "subject": { "type": "payment", "id": "1ce7413e-edde-47c4-b67a-388b408619ec", "sequence": 123 }, "references": { "customer_reference": "CUST-123", "loan_reference": "LOAN-456" }, "data": { "status": "successful", "amount": "100.00", "currency": "USD", "origin": "SYSTEM", "payment_plan_id": null, "gateway_charge_amount": null }, "test": false } ``` | Field | Type | Meaning | | - | - | - | | `id` | UUID string | Event identity, stable across destinations and retries. | | `type` | string | Event name from the catalog, or `webhook.test`. | | `occurred_at` | ISO 8601 datetime | Capture time, not necessarily when the source action or settlement occurred. | | `environment` | string | Configured deployment environment. Confirm the expected value with Finosu. | | `company_id` | UUID string | Company that owns the event. | | `subject.type` | string | Resource category: `payment`, `text`, `call`, `email`, or `webhook` for a test. | | `subject.id` | UUID string | Finosu resource ID; not an external customer or loan reference. | | `subject.sequence` | integer | Ordering value within the same company, subject type, and subject ID. Gaps are allowed. | | `references.customer_reference` | string or null | Your external customer reference, when available. | | `references.loan_reference` | string or null | Your external loan reference, when available. Never infer a missing reference. | | `data` | object | Event-specific fields. | | `test` | boolean | True for test-customer events and synthetic endpoint tests. Never apply test events to live borrower records. | Decimal monetary amounts are JSON strings; use decimal arithmetic. IDs and references are opaque. Do not convert references to numbers. ## Payload compatibility Receivers should tolerate additional object fields and handle unrecognized event names without applying business effects. The `origin` string may gain new values. Retries preserve the stored event payload; they do not rebuild old events from the latest source state. See [delivery behavior](/api-reference/webhooks/receiving) for deduplication and recovery rules. ## Existing integration contracts | Contract | Direction | Documentation | | - | - | - | | Managed webhooks | Finosu → your receiver | These guides; signed events with a common envelope. | | Call-result callback | Finosu → your receiver | [Call results](/api-reference/endpoint/calls/webhook); separately configured payload and retry rules. | | Transfer-note callback | Finosu → your receiver | [Transfer notes](/api-reference/endpoint/transfer-notes/transfer-note); integration-specific delivery. | | Customer upsert | Your system → Finosu | [Customer upsert](/api-reference/endpoint/customers/webhook); an authenticated inbound API request. | Existing integrations keep their configured contracts. Creating a managed endpoint does not replace an existing callback or disable its deliveries. ## Next steps * [Quickstart](/api-reference/webhooks/quickstart): receive a signed test event. * [Event catalog](/api-reference/webhooks/events): choose events and map their data. * [Verify signatures](/api-reference/webhooks/verification): authenticate each request. * [Delivery and retries](/api-reference/webhooks/receiving): handle duplicates and failures. ## Subscription timing Subscriptions apply to future source notifications. Activating an endpoint or adding an event type does not backfill earlier events, including delayed or replayed notifications. Removing and re-adding a type starts a new subscription window. Pausing and resuming preserves existing subscriptions and queued deliveries. Events with no eligible endpoint create no delivery record. # Webhook quickstart Source: https://docs.finosu.com/api-reference/webhooks/quickstart Receive and verify your first signed test event. This walkthrough gets a draft endpoint receiving `webhook.test`. You will need Python 3.10 or later, a public HTTPS URL that reaches your receiver, and Finosu to configure the integration. Endpoint management currently requires internal staff access; no public API-key endpoint creation API is available. ## 1. Prepare your receiver Copy the verifier from [Verify signatures](/api-reference/webhooks/verification) into `verification.py`. Save this alongside it as `receiver.py`: ```python theme={null} import json import os from fastapi import FastAPI, Request, Response from verification import verify_finosu_webhook MAX_BODY_BYTES = 64 * 1024 app = FastAPI() secret = os.environ["FINOSU_WEBHOOK_SECRET"] company_id = os.environ["FINOSU_COMPANY_ID"] environment = os.environ["FINOSU_WEBHOOK_ENVIRONMENT"] @app.post("/webhooks/finosu") async def receive_webhook(request: Request) -> Response: declared_length = request.headers.get("content-length") if declared_length is not None: try: length = int(declared_length) except ValueError: return Response(status_code=400) if length < 0: return Response(status_code=400) if length > MAX_BODY_BYTES: return Response(status_code=413) raw_body = bytearray() async for chunk in request.stream(): if len(raw_body) + len(chunk) > MAX_BODY_BYTES: return Response(status_code=413) raw_body.extend(chunk) raw_body = bytes(raw_body) signature = request.headers.get("X-Finosu-Signature", "") if not verify_finosu_webhook(raw_body, signature, secret): return Response(status_code=401) try: event = json.loads(raw_body) except (ValueError, UnicodeDecodeError): return Response(status_code=400) if not isinstance(event, dict): return Response(status_code=400) if ( event.get("company_id") != company_id or event.get("environment") != environment ): return Response(status_code=400) if event.get("type") == "webhook.test" and event.get("test") is True: return Response(status_code=204) # This setup receiver has no business-event storage or processing yet. return Response(status_code=503) ``` This receiver acknowledges signed tests only. It returns `503` for business events so they are not silently discarded. Keep the endpoint in draft until you implement [durable acceptance and processing](/api-reference/webhooks/receiving). ## 2. Configure a draft endpoint Give Finosu: | Setting | Example | | - | - | | Name | Payment sync | | Receiver URL | `https://hooks.example.com/webhooks/finosu` | | Event subscriptions | `payment.succeeded`, `payment.failed`, `payment.returned` | | Company and environment | The company and deployment this integration serves. | Choose subscriptions from the [event catalog](/api-reference/webhooks/events). Finosu creates the draft endpoint and provides its signing secret, company UUID, and exact environment value. Save the secret when it is provided. The destination must use public HTTPS on port 443. Private addresses, localhost, embedded URL credentials, URL fragments, and redirects are not supported. For local development, use a public HTTPS tunnel to your local receiver. The example path `/webhooks/finosu` belongs to your server, not `api.finosu.com`. ## 3. Run the receiver Install the dependencies in a virtual environment: ```bash theme={null} python3 -m venv .venv source .venv/bin/activate python -m pip install fastapi uvicorn ``` Set `FINOSU_WEBHOOK_SECRET`, `FINOSU_COMPANY_ID`, and `FINOSU_WEBHOOK_ENVIRONMENT` in your server environment using the values Finosu provided. Do not commit them or put them in client-side code. Then run: ```bash theme={null} python -m uvicorn receiver:app --host 127.0.0.1 --port 8081 ``` Before exposing the receiver, configure your ingress with a 64 KiB request-body limit and a request timeout. The sample also bounds streamed bodies, including requests without `Content-Length`. Route your public HTTPS URL to this server. If an optional bearer token was configured, also validate its `Authorization` header at your receiver or gateway; this example uses signature authentication only. ## 4. Receive a test Ask Finosu to send a test from the draft endpoint. A successful setup has three observable results: 1. Your receiver gets a `POST /webhooks/finosu` with `X-Finosu-Signature`. 2. Signature and scope checks pass, and your receiver responds with `204`. 3. Finosu's delivery view shows an accepted test for the current configuration. The event has `type: "webhook.test"`, `test: true`, and null customer and loan references. See the [test payload](/api-reference/webhooks/events#webhooktest). A successful test verifies connectivity and signing; it does not validate your business-event processing or activate the endpoint. ## 5. Handle business events, then activate Replace the sample's `503` branch with handling for your subscribed events: 1. Validate the event's fields against the [catalog](/api-reference/webhooks/events). 2. Atomically store the event and enqueue work, deduplicating by company and event ID. Already accepted duplicates should also receive `2xx`. 3. Return `200` or `204` promptly. Process the queued event in your worker. Deploy to a stable public HTTPS URL, configure a request-body size limit suitable for your subscribed payloads, and verify both a duplicate delivery and recovery from a temporary storage failure. Read [delivery and retries](/api-reference/webhooks/receiving) for the retry budget, ordering, and manual recovery rules. When the receiver is ready, have Finosu activate the verified endpoint. It starts capturing subsequent subscribed events; activation does not backfill history. Changing the URL, credentials, or subscriptions requires a new test before activation. ## Troubleshooting | Result | Next step | | - | - | | No request arrives | Check public HTTPS routing and the exact destination path with Finosu. | | `401` | Check the endpoint secret, raw request bytes, signature header, and receiver clock. | | `400` | Check JSON validity, the configured company UUID, and environment. | | `503` from this example | A business event reached the test-only receiver. Finish durable handling before activation. | | Test accepted but endpoint inactive | Ask Finosu to activate once business-event handling is ready. | Fixing a `400` or `401` does not automatically retry that failed delivery. Request a fresh test after the fix. See [signature troubleshooting](/api-reference/webhooks/verification#troubleshooting) for verification details. # Delivery and retries Source: https://docs.finosu.com/api-reference/webhooks/receiving Accept events durably, handle duplicates, and recover failed deliveries. [Verify the signature](/api-reference/webhooks/verification) before accepting an event. Return `2xx` only after your receiver has accepted responsibility for it. Subscribed events for test customers arrive at the normal endpoint with `test: true`. Accept and deduplicate them normally, but route them to test processing and never apply them to live accounts. They retain their business event type (for example, `text.sent`) and follow ordinary activation, pause, and retry rules. Only the separate `webhook.test` event verifies endpoint setup. ## Accept durably, then process After verification: 1. Parse the JSON and validate the expected company, environment, event type, and required fields. 2. Atomically record the event identity and enqueue work in durable storage. Use a unique constraint on company plus event ID for a consumer that handles the same event across multiple endpoints. Scope deduplication separately if different consumers intentionally perform different actions. 3. Return `200` or `204` promptly, then perform downstream work from the durable queue. Coordinate deduplication with processing so concurrent deliveries cannot apply the same effect twice. An already accepted duplicate should receive `2xx` too, not `409`. If the durable store is temporarily unavailable, return `503` so delivery can retry. For an unsupported event, either durably quarantine it before acknowledging, or reject it and arrange recovery with Finosu. Never return success and silently lose work that needs processing. A `2xx` response means your endpoint accepted responsibility; it does not prove that an account update was applied. If processing fails after acknowledgment, recovery is your queue's responsibility. Finosu does not consume the response body or automatically retry successful acknowledgments. ## Retry behavior These retries apply after Finosu has queued a webhook delivery. They do not guarantee capture of every payment transition. See the [event catalog](/api-reference/webhooks/events) for current-state behavior and capture limits; reconcile missing updates with Finosu. | Result | Sender behavior | | - | - | | Any `2xx` | Accepted; no automatic retry. | | Transport failure or timeout | Retry within the attempt budget; the receiver may already have accepted the request. | | `408`, `429`, or `5xx` | Retry within the attempt budget. | | Other status, including `3xx`, `400`, `401`, `403`, `404`, `409`, `422` | Terminal failure; redirects are not followed. | Each delivery has an initial budget of eight HTTP attempts. Scheduled backoff intervals are 5 seconds, 1 minute, 5 minutes, 15 minutes, 1 hour, 3 hours, then 6 hours. Worker scheduling and endpoint pauses can delay actual attempts. The sender uses its configured backoff; it does not honor `Retry-After`. The HTTP transport timeout is at most 15 seconds and can be shorter when the worker's remaining attempt budget is lower. Return promptly after durable acceptance. Delivery is not guaranteed exactly once or indefinitely: a timeout can happen after receiver acceptance, and a terminal or exhausted delivery needs investigation. Retries retain the original event body, event ID, and delivery key. Each attempt gets a new timestamp and signature, so verify freshness against the signature's `t`, not `occurred_at`. Each delivery permits at most 32 manual retry grants; after that, contact Finosu for reconciliation. Previously used request keys remain protected against replay. Staff can manually retry eligible failed deliveries while preserving event identity and attempt history. The endpoint must be active, and a newer event for the same endpoint/subject blocks replay of stale state. Manual retry grants a new attempt budget; it does not create a new business event. Contact Finosu when reconciliation is needed instead of replay. ## Ordering and reconciliation Unresolved deliveries block newer events in the same endpoint/subject lane. Terminal failures release that lane. There is no global ordering guarantee across subjects or endpoints. When replacing a resource snapshot, compare `subject.sequence` only within the same `company_id`, `subject.type`, and `subject.id`. Persist the last applied sequence with the state update. A lower sequence must not overwrite newer state. For event-ledger or financial side effects, reconcile missing events using their identities and business semantics rather than treating the sequence as a complete ledger. Sequence gaps are normal. A sequence is not a global catch-up cursor, commit watermark, or proof that every intermediate event was received. This contract provides no historical replay or general snapshot-retrieval API. Contact Finosu to establish the appropriate reconciliation path for your integration. ## Pausing and changing endpoints Draft endpoints receive tests only. Paused endpoints retain and continue collecting subscribed events; resuming releases their backlog. Pending deliveries use the current destination and credentials. Requests already in progress may finish after pause or archive. Archived endpoints stop further dispatch and retain their delivery history. Changing configuration or rotating the secret requires pausing, updating your receiver, and passing another test before activation. Rotation replaces the secret; there is no configured overlap period accepting both secrets at the sender. # Verify signatures Source: https://docs.finosu.com/api-reference/webhooks/verification Authenticate requests using the signing secret and original request bytes. Finosu sends an HTTP `POST` containing the [event envelope](/api-reference/webhooks/overview). Read the original request body as bytes before JSON middleware changes it. ## Get your signing secret Finosu provides the endpoint's signing secret when it is created or rotated. Store it in a secret manager or server environment variable. It is not your API key and must not appear in browser code or logs. ## Request headers | Header | Value | | - | - | | `Content-Type` | `application/json` | | `X-Finosu-Signature` | `t=,v1=` | | `X-Finosu-Event-Id` | Same event UUID as the JSON body's `id`. | | `Idempotency-Key` | Opaque delivery identifier, stable across retries for this endpoint. | | `Authorization` | `Bearer `, only when configured. | The signature covers the timestamp and raw body, not the other headers. Verify company and environment using the signed body and use its `id` for event-level deduplication. If using a header identifier, confirm it matches the body or store it alongside the verified event identity. A bearer token does not replace signature verification. ## Verify the signature 1. Extract `t` and `v1` from `X-Finosu-Signature`. 2. Reject malformed headers and timestamps outside your tolerance. Five minutes is a suggested receiver policy, not a sender-enforced setting. Check both old and future timestamps and keep your server clock synchronized. 3. Compute HMAC-SHA256 using the signing secret's UTF-8 bytes as the key. The signed message is the ASCII timestamp, a period, and the original request-body bytes. Do not base64-decode the secret or parse/re-serialize the JSON before verifying. 4. Compare the hexadecimal digest in constant time. Only then parse and process the JSON. Save the following standard-library verifier as `verification.py`. The [quickstart](/api-reference/webhooks/quickstart) imports this function in a working test receiver. Business events also need [durable acceptance](/api-reference/webhooks/receiving). ```python theme={null} import hashlib import hmac import re import time def verify_finosu_webhook( raw_body: bytes, signature_header: str, secret: str, *, now: int | None = None, tolerance_seconds: int = 300, ) -> bool: if not secret or tolerance_seconds < 0 or len(signature_header) > 512: return False match = re.fullmatch(r"t=([0-9]{1,12}),v1=([0-9a-f]{64})", signature_header) if match is None: return False timestamp_text, supplied_digest = match.groups() timestamp = int(timestamp_text) current_time = int(time.time()) if now is None else now if abs(current_time - timestamp) > tolerance_seconds: return False signed_bytes = timestamp_text.encode("ascii") + b"." + raw_body expected_digest = hmac.new( secret.encode("utf-8"), signed_bytes, hashlib.sha256 ).hexdigest() return hmac.compare_digest(expected_digest, supplied_digest) ``` This example accepts the currently emitted signature format only. It does not claim support for future signature schemes or multiple simultaneous secrets. Never log the secret or authorization token. Apply a request-body size limit appropriate to your integration; this contract does not define a universal maximum event size. ## Troubleshooting | Symptom | Check | | - | - | | Signature mismatch | Read the raw bytes before JSON parsing; use the secret for this endpoint without base64 decoding it. | | Missing signature | Confirm your proxy forwards `X-Finosu-Signature`. Header names are case-insensitive. | | Expired timestamp | Synchronize the receiver clock and check the header's `t`, not the event's `occurred_at`. | | Verification fails after rotation | Update the receiver with the replacement secret, then request a new test before reactivation. | See [delivery and retries](/api-reference/webhooks/receiving) for acknowledgment, deduplication, and recovery behavior. # Common Workflows Source: https://docs.finosu.com/common-workflows Enroll applications, board loans, retrieve results, and manage servicing. Choose the business outcome you want to implement. Each workflow below explains what to submit, which references to keep, and how to check the result. For your first authenticated request, start with the [Quickstart](/concepts). ## Choose your workflow | Your goal | Guide | | - | - | | Enroll a new lead or returning borrower | [Enroll an application](#enroll-an-application) | | Import an application list | [Enroll a list](#enroll-a-list) | | Start collections for a loan | [Board a loan for collections](#board-a-loan-for-collections) | | Revoke ACH authorization for a bank account | [Revoke ACH authorization](#revoke-ach-authorization) | | Retrieve call history or configure delivery | [Monitor call results](#monitor-call-results) | | Configure actions using public flag names | [Configure flag-based actions](#configure-flag-based-actions) | | Cancel calls or stop servicing | [Stop calls or servicing](#stop-calls-or-servicing) | ## Enroll an application **Before you begin:** confirm that the origination workflow is enabled for your company and use approved test records when validating the integration. 1. Select a [task type](/api-reference/endpoint/task-types/list): `PendingLoanNewLead` or `PendingLoanReturning`. 2. [Enroll the application](/api-reference/endpoint/customers/origination-enrollment) with `scheduleMode: "enroll"`, the customer and application references, required fields, and a stable `Idempotency-Key`. Returning-borrower one-off outreach uses `PendingLoanReturning` with `oneOff: true`. 3. Save the enrollment receipt. Follow its `Location` or use its `scheduledCallId` with [Retrieve a Scheduled Call](/api-reference/endpoint/scheduled-calls/get-by-id). **Verify success:** HTTP `200` means the schedule was saved. Inspect the scheduled call's status, then retrieve call results when available. Enrollment creates or reuses the customer; no separate customer-create or scheduled-calls request is required. Use the [complete examples](/api-reference/origination/examples) for the required payloads. For an uncertain submission, follow the enrollment endpoint's idempotency rules; do not create a new key just to retry the same operation. ## Enroll a list **Before you begin:** prepare records for one company, preserving the customer and application references used in previous uploads. 1. Send the list using [Batch Enrollment](/api-reference/origination/batch) with outer `scheduleMode: "enroll"`, a stable header `Idempotency-Key` for the list, and a stable `idempotencyKey` for each enrollment row. 2. Save the `jobId` and `Location` from the `202 Accepted` response. 3. Poll the returned location with the same company's API key and reconcile every row using the [batch status guide](/api-reference/origination/batch-status). Save successful enrollment receipts and inspect rejected rows individually. **Verify success:** acceptance means the job was received, not that every application enrolled. Check per-row results and the resulting schedules. Follow the batch guide's retry rules and documented limits. ## Board a loan for collections **Before you begin:** confirm that your account is configured for loan-based collections boarding. The [collections task-type catalog](/api-reference/endpoint/collections/task-types) returns supported names; it does not confirm account enablement. 1. [Create the customer](/api-reference/endpoint/customers/create), if not already present, with `taskType: "Collections"` and the required fields. Use your external customer reference consistently. 2. [Create the loan](/api-reference/endpoint/loans/create) with the matching `customerId`, external loan `id`, `taskType: "Collections"`, required loan fields, and `servicingStatus: "ACTIVE"` for a new loan. 3. Retrieve the customer's [scheduled calls](/api-reference/endpoint/scheduled-calls/get) to inspect the resulting schedule, then monitor call results. **Verify success:** check the customer and loan references in the responses and confirm the expected schedule for your configured workflow. Follow the loan endpoint's contract when updating an existing record. See [Upcoming API Changes](/api-reference/upcoming-changes) for changes to the Create a Customer contract. Collections boarding is separate from origination enrollment. ## Revoke ACH authorization **Collections only.** Follow [Manage ACH authorization](/api-reference/collections/overview#manage-ach-authorization) to list a customer's payment methods, identify the exact bank account, and revoke its ACH authorization. Use the same customer reference and company API key for lookup and revocation. Revoked consent requires a new customer authorization; sending `false` cannot restore it. **Verify success:** inspect the revocation response for each intended payment method. If revoking multiple bank authorizations, check each response separately; the requests are not an atomic bulk action. Follow the [endpoint contract](/api-reference/endpoint/customers/update-ach-authorization) for errors and idempotent retries. ## Monitor Call Results Choose the retrieval method that matches your integration: | Need | Operation | | - | - | | Company-wide history or exports | [List All Calls](/api-reference/endpoint/calls/list), with optional customer, call-type, and date filters | | A specific call's details | [Retrieve a Call](/api-reference/endpoint/calls/get-by-id) | | One customer's call history | [List Calls for a Customer](/api-reference/endpoint/calls/get) | | Automatic result delivery | [Call Webhook](/api-reference/endpoint/calls/webhook), configured separately with Finosu | For company-wide history, persist the call `id` and follow `nextCursor` until it is `null`, keeping the company and filters consistent. The [export example](/api-reference/endpoint/calls/list#retrieve-every-page) covers pagination and the endpoint's retry behavior. For webhook delivery, use the [call webhook contract](/api-reference/endpoint/calls/webhook) and confirm the destination with your Finosu contact. Enrollment does not configure webhooks or write notes and flags to your loan management system. **Verify success:** reconcile received call references with your customer records. For webhooks, test a completed call against the agreed payload and your receiver. ## Understanding Call Data Each endpoint has its own response schema. Call detail exposes `transcript`, `recordingUrl`, and `timestamp`, which may be `null`; it does not expose flags or summaries. Company-wide call history uses a different schema and includes unsuccessful attempts and records still being processed. Scheduled-call responses describe scheduling state; their `postProcessingFlags` field is currently `null`. The [call webhook](/api-reference/endpoint/calls/webhook) is a separate object: it uses `call_id`, `customer_id`, `to_phone_number`, `recording_url`, and `flags`. Use `call_id` with [Retrieve a Call](/api-reference/endpoint/calls/get-by-id). When present, `loan_id` is the external reference of the loan linked to that call’s schedule; it is not an internal loan UUID and may be omitted. Its `timestamp` describes preparation of the delivery attempt, while REST call detail's `timestamp` is the call record's creation time. Empty webhook flags are omitted; they are not the scheduled-call `postProcessingFlags` field. Use the webhook's stable `Idempotency-Key` header for receiver-side deduplication and `call_id` for call correlation. A worker retry may refresh the delivery timestamp and recording URL, so do not use the body or timestamp as the deduplication key. See the webhook page for optional fields, recording-link expiry, and acknowledgment behavior. ## Configure flag-based actions 1. Retrieve [public call flags](/api-reference/endpoint/calls/flags) for the selected `taskType` during integration setup. 2. Use each entry's `name` as the code and `description` as its explanation when configuring supported actions. Reuse the catalog according to the endpoint's documented cache policy. 3. Confirm how actual call flags arrive through your configured result delivery, then test the mapping with representative results. **Verify success:** your integration recognizes the configured public codes and handles unrecognized codes without failing result processing. The catalog is a public subset shared across companies; it does not report flags from an individual call or enable workflows for your company. Call flags and stop-servicing reasons are separate catalogs. If an action stops servicing, choose a reason from the [stop-servicing lookup](/api-reference/endpoint/loans/stop-servicing-reasons). Do not assume a flag name is an accepted cancellation reason. ## Managing Scheduled Calls Inspect [scheduled calls](/api-reference/endpoint/scheduled-calls/get) to follow scheduling state. Use [Sync Customer Schedules](/api-reference/endpoint/customers/schedule-sync) replacement mode only when you intend to replace pending schedules. For origination intake, use `scheduleMode: "enroll"` as described above. ## Stop calls or servicing Choose the operation by its scope: | Intended change | Operation | Verification | | - | - | - | | Cancel one scheduled call | [Cancel Single Call](/api-reference/endpoint/scheduled-calls/cancel) | Inspect the target scheduled call's resulting status. | | Cancel a customer's pending calls | [Cancel All Scheduled Calls](/api-reference/endpoint/scheduled-calls/cancel-all) | Check affected scheduling records. This does not cancel the parent cadence. | | Stop servicing one loan | [Cancel Loan Servicing](/api-reference/endpoint/loans/cancel-servicing) | Check the returned servicing status, reason, and cancellation counts. | | Close an origination application | [Close Origination](/api-reference/origination/close) | Send `FUNDED`, `WITHDRAWN`, or `REJECTED`; check `status: CLOSED`, the reason, and cancellation counts. | | Stop servicing all loans for a customer | [Cancel Customer Servicing](/api-reference/endpoint/customers/cancel-servicing) | Check the returned loan and cancellation counts for the intended customer. | For servicing cancellation, retrieve the [accepted reasons](/api-reference/endpoint/loans/stop-servicing-reasons) and send the chosen case-sensitive value. Review the endpoint's full effects, including scheduled payments, before selecting this operation. For funded applications or other origination stop events, follow [Funded applications and stopping outreach](/api-reference/origination/overview#funded-applications-and-stopping-outreach). Keep the existing stop process until its replacement is validated. Cancelling pending calls does not prove that the parent cadence has stopped, and a new enrollment is not a cancellation signal. # Quickstart Source: https://docs.finosu.com/concepts Authenticate and retrieve your first Finosu API response. Make a read-only request to verify your API key, then choose the integration workflow you want to build. This walkthrough does not create customers, loans, or outreach schedules. ## Before you begin You need curl and an active API key for your company. Obtain the key and confirm your integration environment with your Finosu contact. The requests below use `https://api.finosu.com`. Keep your API key on your server. Do not put it in browser code, shared examples, or source control. ## 1. Configure authentication Set your key in the terminal where you will run the requests. Replace the placeholder with your company's key: ```bash theme={null} export FINOSU_API_KEY='YOUR_API_KEY' ``` Finosu uses the `X-API-Key` header to authenticate requests and identify your company. ## 2. Retrieve a task-type catalog Choose the catalog for your integration. Both requests are read-only. > [tab] Origination > > Retrieve task types for new-lead and returning-borrower outreach: > > ```bash theme={null} > curl --include \ > 'https://api.finosu.com/origination/task-types' \ > --header "X-API-Key: ${FINOSU_API_KEY}" > ``` > > Expected status: `200 OK`. The JSON response body is: > > ```json theme={null} > ["PendingLoanNewLead", "PendingLoanReturning"] > ``` > > `PendingLoanNewLead` identifies new application outreach; > `PendingLoanReturning` identifies returning-borrower outreach. > [tab] Collections > > Retrieve the collections task type: > > ```bash theme={null} > curl --include \ > 'https://api.finosu.com/collections/task-types' \ > --header "X-API-Key: ${FINOSU_API_KEY}" > ``` > > Expected status: `200 OK`. The JSON response body is: > > ```json theme={null} > ["Collections"] > ``` > > Use `Collections` in the configured customer-and-loan boarding workflow. A successful response confirms authentication. These catalogs are shared across companies and do not indicate which workflows your company has enabled. Treat the values as case-sensitive names, and read them by name rather than array position. ## 3. Choose your first business operation Before submitting records, confirm the enabled workflow and approved test data with your Finosu contact. Write operations can create outreach schedules. | Workflow | Next step | How to verify the result | | - | - | - | | Origination | Follow the [enrollment examples](/api-reference/origination/examples). Enrollment creates or reuses the customer; no separate customer-create request is required. | Save the enrollment receipt and inspect the returned scheduled-call reference. A saved schedule does not mean a call has completed. | | Collections | Follow [collections boarding](/api-reference/endpoint/collections/task-types): create the customer, then the loan for an account configured for loan-based boarding. | Inspect the customer's [scheduled calls](/api-reference/endpoint/scheduled-calls/get) and reconcile them with the submitted customer and loan. | For list imports, monitoring, and servicing changes, continue to [Common Workflows](/common-workflows). ## If authentication fails A missing, empty, invalid, or inactive API key returns `401 Unauthorized`. Confirm that `FINOSU_API_KEY` is set in the same terminal, that the header name is `X-API-Key`, and that the key is active for the intended company and environment. If the response is still `401`, contact Finosu to verify your credentials. For other operations, follow the endpoint's documented error responses and request schema. Validation errors and retry behavior depend on the operation. ## Concepts used in the guides | Concept | Meaning | | - | - | | Customer | The borrower record referenced by your integration. | | Loan | A loan associated with a customer, with its own servicing state. | | Task type | The workflow identifier, such as `PendingLoanNewLead` or `Collections`. | | Cadence | The configured outreach sequence into which an application is enrolled. | | Scheduled call | A scheduling record whose status you can inspect. | | Call | A record of an executed call; available fields depend on the endpoint. | See [call details](/api-reference/endpoint/calls/get-by-id) for the response schema. Call detail does not expose flags or summaries; confirm those delivery contracts separately when configuring result delivery. # Introduction Source: https://docs.finosu.com/introduction Connect your lending platform to Finosu for origination and collections. Finosu helps lenders automate borrower outreach across origination and collections. Use the API to enroll applications in configured calling cadences, submit customers and loans for collections, retrieve call history, and manage servicing. ## Start building > [card] [Make your first request](/concepts) > > Authenticate with your company API key and retrieve a task-type catalog. > [card] [Choose a workflow](/common-workflows) > > Follow the steps for enrollment, loan boarding, call results, or stopping servicing. ## Choose your integration | Your goal | Start here | | - | - | | Contact new leads or returning borrowers | [Origination overview](/api-reference/origination/overview): enroll an application or submit a list using your configured cadence. | | Board customers and loans for collections | [Collections task types](/api-reference/endpoint/collections/task-types): follow the customer-and-loan boarding flow for your account. | | Retrieve completed call history | [List All Calls](/api-reference/endpoint/calls/list): use filters and cursor pagination to retrieve company-wide results. | ## How it works Your system sends requests to `https://api.finosu.com` over HTTPS using an API key in the `X-API-Key` header. The key identifies your company; keep it on your server and out of browser applications and source control. Finosu processes submitted records using the workflows configured for your company. Origination enrollment creates or reuses the customer and saves the application's calling cadence. Collections boarding follows a separate customer-and-loan flow. Confirm the enabled workflows with your Finosu contact before submitting records. A saved schedule means outreach has been scheduled. Inspect its status and retrieve call results to follow what happens next. Call-result webhooks require separate configuration; agree on the destination and payload with your Finosu contact before building a receiver. Outbound callback names in the API reference identify delivery contracts, not endpoints to call on `api.finosu.com`. ## Integration options These guides describe integrations where your system sends records to the Finosu API. If your integration requires Finosu to retrieve records from your system, coordinate the data contract, authentication, and connection setup with your Finosu contact. Use [API Basics](/api-reference/introduction) for authentication and the base URL, or go directly to the [Quickstart](/concepts) to make your first request.