List Debts by Debtor
curl --request GET \
--url https://getbill.io/external-api/v1/debts/by-debtor/{debtorId} \
--header 'Authorization: <authorization>'{
"error": false,
"data": [
{
"id": "xyz789abc123",
"civility": "Mr",
"firstname": "John",
"lastname": "Doe",
"phone": "+33123456789",
"email": "john.doe@example.com",
"birthdate": "1985-03-15",
"amount": 1250.00,
"amount_text": "1250.00",
"currency": "EUR",
"object": "Outstanding invoice #INV-2024-001",
"internal_id": "DEBT-2024-001",
"invoice_reference": "INV-2024-001",
"debtor_reference": "DEB-DOE-001",
"invoice_date": "2023-12-01",
"due_date": "2023-12-31",
"address": "123 Main Street, 75001 Paris, France",
"street_address": "Main Street",
"street_number": "123",
"postal_code": "75001",
"city": "Paris",
"country": "FR",
"status": "status.default.in_progress",
"timeline_id": "abc123def456",
"nb_reminders": 3,
"nb_answered": 1,
"summary": "Customer acknowledged debt, payment plan in discussion",
"iban": "FR1420041010050500013M02606",
"followups_count": 5,
"company": "Acme Corp",
"debtor_company": null,
"payment_link": null,
"import_date": "2024-01-15T10:30:00+00:00",
"last_timeline_restart": "2024-01-15T10:30:00+00:00",
"payment_plan_active": false,
"plan_start_date": null,
"contacts": []
},
{
"id": "def789xyz456",
"civility": "Mr",
"firstname": "John",
"lastname": "Doe",
"phone": "+33123456789",
"email": "john.doe@example.com",
"birthdate": "1985-03-15",
"amount": 750.00,
"amount_text": "750.00",
"currency": "EUR",
"object": "Service contract penalty",
"internal_id": "DEBT-2024-025",
"invoice_reference": "INV-2024-025",
"debtor_reference": null,
"invoice_date": "2024-01-01",
"due_date": "2024-01-31",
"address": null,
"street_address": "Main Street",
"street_number": "123",
"postal_code": "75001",
"city": "Paris",
"country": "FR",
"status": "status.default.pending",
"timeline_id": null,
"nb_reminders": 1,
"nb_answered": 0,
"summary": null,
"iban": "FR1420041010050500013M02606",
"followups_count": 2,
"company": "Service Plus SARL",
"debtor_company": null,
"payment_link": null,
"import_date": "2024-01-20T09:15:00+00:00",
"last_timeline_restart": null,
"payment_plan_active": false,
"plan_start_date": null,
"contacts": []
}
],
"pagination": {
"total": 3,
"page": 1,
"limit": 50,
"pages": 1
}
}
Debts API
List Debts by Debtor
Retrieve all debts associated with a specific debtor
GET
/
external-api
/
v1
/
debts
/
by-debtor
/
{debtorId}
List Debts by Debtor
curl --request GET \
--url https://getbill.io/external-api/v1/debts/by-debtor/{debtorId} \
--header 'Authorization: <authorization>'{
"error": false,
"data": [
{
"id": "xyz789abc123",
"civility": "Mr",
"firstname": "John",
"lastname": "Doe",
"phone": "+33123456789",
"email": "john.doe@example.com",
"birthdate": "1985-03-15",
"amount": 1250.00,
"amount_text": "1250.00",
"currency": "EUR",
"object": "Outstanding invoice #INV-2024-001",
"internal_id": "DEBT-2024-001",
"invoice_reference": "INV-2024-001",
"debtor_reference": "DEB-DOE-001",
"invoice_date": "2023-12-01",
"due_date": "2023-12-31",
"address": "123 Main Street, 75001 Paris, France",
"street_address": "Main Street",
"street_number": "123",
"postal_code": "75001",
"city": "Paris",
"country": "FR",
"status": "status.default.in_progress",
"timeline_id": "abc123def456",
"nb_reminders": 3,
"nb_answered": 1,
"summary": "Customer acknowledged debt, payment plan in discussion",
"iban": "FR1420041010050500013M02606",
"followups_count": 5,
"company": "Acme Corp",
"debtor_company": null,
"payment_link": null,
"import_date": "2024-01-15T10:30:00+00:00",
"last_timeline_restart": "2024-01-15T10:30:00+00:00",
"payment_plan_active": false,
"plan_start_date": null,
"contacts": []
},
{
"id": "def789xyz456",
"civility": "Mr",
"firstname": "John",
"lastname": "Doe",
"phone": "+33123456789",
"email": "john.doe@example.com",
"birthdate": "1985-03-15",
"amount": 750.00,
"amount_text": "750.00",
"currency": "EUR",
"object": "Service contract penalty",
"internal_id": "DEBT-2024-025",
"invoice_reference": "INV-2024-025",
"debtor_reference": null,
"invoice_date": "2024-01-01",
"due_date": "2024-01-31",
"address": null,
"street_address": "Main Street",
"street_number": "123",
"postal_code": "75001",
"city": "Paris",
"country": "FR",
"status": "status.default.pending",
"timeline_id": null,
"nb_reminders": 1,
"nb_answered": 0,
"summary": null,
"iban": "FR1420041010050500013M02606",
"followups_count": 2,
"company": "Service Plus SARL",
"debtor_company": null,
"payment_link": null,
"import_date": "2024-01-20T09:15:00+00:00",
"last_timeline_restart": null,
"payment_plan_active": false,
"plan_start_date": null,
"contacts": []
}
],
"pagination": {
"total": 3,
"page": 1,
"limit": 50,
"pages": 1
}
}
Overview
This endpoint returns a paginated list of all debts owed by a specific debtor. You can filter and search the results using query parameters.Authentication
Requires a valid OAuth 2.0 access token with thedebts:read scope.
Request
Bearer token for authentication
Path Parameters
The encrypted debtor ID
Query Parameters
Page number for pagination (starts at 1)
Number of items per page (maximum 100)
Filter by debt status (e.g., “active”, “paid”, “disputed”)
Filter by currency code (e.g., “EUR”, “USD”)
Minimum debt amount filter
Maximum debt amount filter
Filter debts created after this date (ISO 8601 format)
Filter debts created before this date (ISO 8601 format)
Search in internal_id or amount_text fields
Example Request
curl -X GET "/external-api/v1/debts/by-debtor/def456ghi789?page=1&limit=50&status=active" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json"
Response
Always
false for successful requestsArray of debt objects
Show debt object
Show debt object
Encrypted debt identifier
Civility/title (e.g., “Mr”, “Ms”)
Debtor’s first name
Debtor’s last name
Debtor’s phone number (E.164 format)
Debtor’s email address
Debtor’s birth date (YYYY-MM-DD format)
Debt amount
Debt amount as text
Currency code (e.g., “EUR”, “USD”)
Description of the debt object/reason
Your internal reference ID for this debt
Invoice reference number
Your reference for the debtor
Original invoice date (YYYY-MM-DD format)
Payment due date (YYYY-MM-DD format)
Full address (legacy field)
Street name and type
Street number
Postal/ZIP code
City name
Country code or name
Current debt status (read-only)
Encrypted timeline ID associated with this debt
Number of reminders sent
Number of responses received
Brief summary or notes about the debt
IBAN for payment
Number of followups for this debt
Creditor company name (only present for debt collection agencies collecting on behalf of other companies)
Debtor’s company name (for B2B debts)
Custom payment link URL
Creation/import timestamp (ISO 8601 format). Read-only.
Timestamp of last timeline restart (ISO 8601 format). Read-only.
Whether the debt has an active payment plan
Payment plan start date (YYYY-MM-DD format), null if no plan
Additional contacts associated with this debt
Success Response
{
"error": false,
"data": [
{
"id": "xyz789abc123",
"civility": "Mr",
"firstname": "John",
"lastname": "Doe",
"phone": "+33123456789",
"email": "john.doe@example.com",
"birthdate": "1985-03-15",
"amount": 1250.00,
"amount_text": "1250.00",
"currency": "EUR",
"object": "Outstanding invoice #INV-2024-001",
"internal_id": "DEBT-2024-001",
"invoice_reference": "INV-2024-001",
"debtor_reference": "DEB-DOE-001",
"invoice_date": "2023-12-01",
"due_date": "2023-12-31",
"address": "123 Main Street, 75001 Paris, France",
"street_address": "Main Street",
"street_number": "123",
"postal_code": "75001",
"city": "Paris",
"country": "FR",
"status": "status.default.in_progress",
"timeline_id": "abc123def456",
"nb_reminders": 3,
"nb_answered": 1,
"summary": "Customer acknowledged debt, payment plan in discussion",
"iban": "FR1420041010050500013M02606",
"followups_count": 5,
"company": "Acme Corp",
"debtor_company": null,
"payment_link": null,
"import_date": "2024-01-15T10:30:00+00:00",
"last_timeline_restart": "2024-01-15T10:30:00+00:00",
"payment_plan_active": false,
"plan_start_date": null,
"contacts": []
},
{
"id": "def789xyz456",
"civility": "Mr",
"firstname": "John",
"lastname": "Doe",
"phone": "+33123456789",
"email": "john.doe@example.com",
"birthdate": "1985-03-15",
"amount": 750.00,
"amount_text": "750.00",
"currency": "EUR",
"object": "Service contract penalty",
"internal_id": "DEBT-2024-025",
"invoice_reference": "INV-2024-025",
"debtor_reference": null,
"invoice_date": "2024-01-01",
"due_date": "2024-01-31",
"address": null,
"street_address": "Main Street",
"street_number": "123",
"postal_code": "75001",
"city": "Paris",
"country": "FR",
"status": "status.default.pending",
"timeline_id": null,
"nb_reminders": 1,
"nb_answered": 0,
"summary": null,
"iban": "FR1420041010050500013M02606",
"followups_count": 2,
"company": "Service Plus SARL",
"debtor_company": null,
"payment_link": null,
"import_date": "2024-01-20T09:15:00+00:00",
"last_timeline_restart": null,
"payment_plan_active": false,
"plan_start_date": null,
"contacts": []
}
],
"pagination": {
"total": 3,
"page": 1,
"limit": 50,
"pages": 1
}
}
Error Responses
{
"error": true,
"message": "Authentication credentials are missing or invalid",
"code": 401
}
Rate Limiting
This endpoint is subject to rate limiting. See the Rate Limits documentation for details. Rate Limit: 1,000 requests per hourRelated Endpoints
- List All Debts - Get all debts for your company
- Get Debtor - Get debtor information
- List Debts by Creditor - Get all debts for a specific creditor
⌘I