How It Works
- Partner: The referral entity (e.g. a law firm) with a configured commission rate
- Customer: A client brought in by a partner - automatically linked via your API key
- Debtor: The person or company that owes the debt to the customer
- Claim: A debt collection case - linked to a debtor and a customer via
customer_id - Revenue Share: Automatically created when incaseof.law earns fees on a claim linked to a customer
Step 1: Create a Partner
Partners are created by organization admins via the Admin Dashboard (Settings → Partners) or via the API. Partners are created internally by incaseof.law. If you are interested in becoming a partner, contact us at [email protected]. Once confirmed, you will receive an API key to start integrating.Step 2: Create a Customer
Create a customer. The customer is automatically linked to your partner account via your API key. Send your own ID for the business aspartner_client_reference and its VAT ID as uid on every case. If your partner account already has a customer with that reference or UID, the API returns it instead of creating a new one — see Reusing an existing customer.
- cURL
- JavaScript
- Python
Save the customer ID: You will need the
id from the response to link claims to this customer.Customer Fields
Reusing an existing customer
Each business you work for should be one customer. Before creating, the API looks for a customer of your partner account — first bypartner_client_reference, then by uid:
nullfor either key is treated as not given. Withoutpartner_client_referenceanduid, every call creates a new customer — store the returnedidyourself in that case.- Customers created before you sent these keys can be linked with
PATCH /openapi/customers/{id}({"partner_client_reference": "ACME-001", "uid": "ATU12345678"}); a key already used by another of your customers returns409. - The keys are scoped to your partner account: another partner sending the same UID gets its own customer.
- The customer’s onboarding invitation is sent once, with the first claim filed for that customer — reusing the customer does not send it again.
Step 3: Create a Debtor
Create the debtor (person or company) that owes the debt to your customer. You must include thecustomer_id so the system knows which organization this debtor belongs to.
- cURL
Save the debtor ID: You will need the
id from the response when creating the claim.Step 4: Create a Claim with Customer ID
When creating a claim, pass thecustomer_id to link it to a partner’s customer. This enables automatic revenue share tracking.
- cURL
- JavaScript
- Python
Step 4b: Decide on the court step
When out-of-court collection is exhausted, the claim moves todunning_action_recommended (you receive the webhook
claim.collection_stage_changed). The creditor decides whether to take the claim to court — through your integration:
GET /openapi/claims/{claim_id}/lawsuit-decision/estimate— the court fee, and whether a lawyer is required (Austria) or not allowed (Germany).decision_openistruewhile a decision can still be sent; once one is recorded (by you or by the creditor in the portal) it turnsfalseanddecidedturnstrue.POST /openapi/claims/{claim_id}/lawsuit-decisionwith{ "decision": "sue" }or{ "decision": "decline" }.
Step 5: Automatic Revenue Sharing
When incaseof.law earns fees on a claim linked to a customer, the system automatically calculates the partner’s commission based on those fees - not the payment amount. No additional API calls are needed - revenue shares are created automatically.Revenue Share Statuses
Complete Partner Workflow Example
- JavaScript
- Python
Managing Customers
List Customers
- cURL
Update a Customer
- cURL
Delete a Customer
- cURL
Next Steps
- Use the Customer API to create customers
- Link claims to customers using
customer_idwhen creating claims - Revenue shares are tracked automatically