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_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"
},
{
"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_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
}
],
"pagination": {
"total": 3,
"page": 1,
"limit": 50,
"pages": 1
}
}
Retrieve all debts associated with a specific 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_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"
},
{
"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_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
}
],
"pagination": {
"total": 3,
"page": 1,
"limit": 50,
"pages": 1
}
}
debts:read scope.
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"
false for successful requestsShow debt object
{
"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_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"
},
{
"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_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
}
],
"pagination": {
"total": 3,
"page": 1,
"limit": 50,
"pages": 1
}
}
{
"error": true,
"message": "Authentication credentials are missing or invalid",
"code": 401
}