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.- cURL
- JavaScript
- Python
Save the customer ID: You will need the
id from the response to link claims to this customer.Customer Fields
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 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