cURL
curl --request PUT \ --url https://getbill.io/external-api/v1/creditors/{id} \ --header 'Authorization: <authorization>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "email": "<string>", "phone": "<string>", "address": "<string>", "city": "<string>", "postalCode": "<string>", "country": "<string>", "registrationNumber": "<string>", "taxNumber": "<string>", "contactPerson": "<string>" } '
{ "error": false, "message": "Creditor updated successfully", "data": { "id": "abc123def456", "name": "Acme Corporation Updated", "email": "newbilling@acmecorp.com", "phone": "+33142123456", "address": "123 Business Street", "city": "Paris", "postalCode": "75001", "country": "France", "registrationNumber": "B123456789", "taxNumber": "FR12345678901", "contactPerson": "Jane Doe", "createdAt": "2024-01-15 10:30:00", "updatedAt": "2024-02-01 15:45:00" } }
Update information for a specific creditor
creditors:write
curl -X PUT "/external-api/v1/creditors/abc123def456" \ -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "name": "Acme Corporation Updated", "email": "newbilling@acmecorp.com", "contactPerson": "Jane Doe" }'
false
Show creditor object
{ "error": true, "message": "Validation failed", "code": 400, "errors": [ { "property": "email", "message": "This value is not a valid email address." } ] }