Preview Case (Pricing & Eligibility)
preview_caseDry-run a collection case BEFORE creating it: returns eligibility, the assigned collection partner, pricing (success fee), and any contracts that would need signing. Nothing is persisted. ALWAYS call this before create_case and show the user the pricing and requirements.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dueDate | No | Invoice due date (ISO 8601) — used to compute debt age for pricing | |
| claimLines | No | Unpaid invoices making up the claim. Use instead of amountToRecover and age buckets; Debitura derives the total and aging. | |
| debtorType | Yes | Company (B2B) or Private individual (B2C) | |
| currencyCode | Yes | ISO 4217 currency code, e.g. "EUR", "USD", "DKK" | |
| amountToRecover | No | Total principal amount. Omit when sending claimLines | |
| debtorStateAlpha2 | No | US state code, e.g. "CA" — REQUIRED when the debtor is in the United States | |
| debtorCountryAlpha2 | Yes | Debtor country, ISO 3166-1 alpha-2, e.g. "DE", "US" | |
| amountToRecoverOver6Months | No | Cumulative principal more than 180 days overdue | |
| amountToRecoverOver12Months | No | Cumulative principal more than 365 days overdue | |
| amountToRecoverOver24Months | No | Cumulative principal more than 730 days overdue |