cURL
curl --request PUT \ --url https://getbill.io/external-api/v1/debtors/{id} \ --header 'Authorization: <authorization>' \ --header 'Content-Type: application/json' \ --data ' { "firstName": "<string>", "lastName": "<string>", "email": "<string>", "phone": "<string>", "address": "<string>", "dateOfBirth": "<string>" } '
{ "error": false, "message": "Success", "data": { "data": { "id": "def456ghi789", "firstName": "John", "lastName": "Doe", "email": "john.newemail@example.com", "phone": "+33699999999", "address": "456 New Street, 75002 Paris, France", "dateOfBirth": "1985-03-15", "firstSeenAt": "2024-01-15 10:30:00", "lastSeenAt": "2024-01-20 14:22:00", "lastUpdatedAt": "2024-02-01 15:45:00", "totalDebtAmount": 2500.00, "totalPaidAmount": 750.00, "averageRepaymentScore": 65, "debtsCount": 3 }, "message": "Debtor updated successfully" } }
Update information for a specific debtor
debtors:write
curl -X PUT "/external-api/v1/debtors/def456ghi789" \ -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "email": "john.newemail@example.com", "phone": "+33699999999", "address": "456 New Street, 75002 Paris, France" }'
false
Show data object
Show debtor object
{ "error": true, "message": "Invalid dateOfBirth format. Use YYYY-MM-DD", "code": 400 }