cURL
curl --request GET \ --url https://getbill.io/external-api/v1/debtors \ --header 'Authorization: <authorization>'
{ "error": false, "data": [ { "id": "def456ghi789", "firstName": "John", "lastName": "Doe", "email": "john.doe@example.com", "phone": "+33612345678", "address": "123 Main Street, 75001 Paris, France", "dateOfBirth": "1985-03-15", "firstSeenAt": "2024-01-15 10:30:00", "lastSeenAt": "2024-01-20 14:22:00", "lastUpdatedAt": "2024-01-20 14:22:00" }, { "id": "jkl012mno345", "firstName": "Jane", "lastName": "Smith", "email": "jane.smith@example.com", "phone": "+33698765432", "address": "456 Oak Avenue, 69001 Lyon, France", "dateOfBirth": "1990-07-22", "firstSeenAt": "2024-01-10 09:15:00", "lastSeenAt": "2024-01-18 11:45:00", "lastUpdatedAt": "2024-01-18 11:45:00" } ], "pagination": { "total": 512, "page": 1, "limit": 50, "pages": 11 } }
Retrieve a paginated list of debtors for the authenticated company
debtors:read
curl -X GET "/external-api/v1/debtors?page=1&limit=50" \ -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \ -H "Content-Type: application/json"
false
Show debtor object
Show pagination
{ "error": true, "message": "Authentication credentials are missing or invalid", "code": 401 }