Case Previews#

Case Previews let you check eligibility and get pricing estimates before submitting a collection case. This helps you understand fees and requirements upfront.

The Case Preview object#

AttributeTypeDescription
is_eligiblebooleanWhether the case can be submitted
ineligibility_reasonstringWhy the case is not eligible (if applicable)
partner_assignmentobjectAssigned collection partner details
partner_assignment.partner_idstringPartner ID
partner_assignment.partner_namestringPartner name
partner_assignment.partner_countrystringPartner country
required_actionsarrayActions required before submission
required_actions[].typestringAction type
required_actions[].messagestringAction description
required_actions[].solution_urlstringURL to resolve the action
required_actions[].is_blockingbooleanWhether this blocks submission
pricing_previewobjectFee structure
pricing_preview.base_success_fee_pctnumberBase success fee percentage
pricing_preview.age_surcharge_pctnumberSurcharge for aged debts
pricing_preview.total_success_fee_pctnumberTotal success fee percentage
{
  "is_eligible": true,
  "ineligibility_reason": null,
  "partner_assignment": {
    "partner_id": "cp_partner_de_01",
    "partner_name": "CollectMax GmbH",
    "partner_country": "DE"
  },
  "required_actions": [],
  "pricing_preview": {
    "base_success_fee_pct": 12.5,
    "age_surcharge_pct": 2.0,
    "total_success_fee_pct": 14.5
  }
}

Create a Case Preview#

POST /v1/collection_case_previews

ParameterTypeRequiredDescription
amount_to_recoverintegerYesDebt amount
currencystringYesISO 4217 currency code
debtorobjectYesDebtor info (type, name, country)
due_datestringYesOriginal due date
curl https://api.casapay.com/v1/collection_case_previews \
  -H "Authorization: Bearer sk_test_4eC39HqLyjWDarjtT1zdp7dc" \
  -H "Content-Type: application/json" \
  -d '{
    "amount_to_recover": 360000,
    "currency": "eur",
    "debtor": {
      "type": "private",
      "name": "John Smith",
      "country": "DE"
    },
    "due_date": "2024-11-01"
  }'

Ineligible Response Example#

{
  "is_eligible": false,
  "ineligibility_reason": "No collection partner available for the specified jurisdiction",
  "partner_assignment": null,
  "required_actions": [
    {
      "type": "contract_signing",
      "message": "You need to sign the collection agreement first",
      "solution_url": "https://dashboard.casapay.com/contracts/sign",
      "is_blocking": true
    }
  ],
  "pricing_preview": null
}