Dear KillBill developers,
current custom field API requires at least 2 API call to be made in order to retrieve Account data and Custom fields for specific account.
In order to decrease number of API calls I have modified KillBill Account REST API and now JSON includes list of custom fields(customFieldId, name and value).
Example response is below:
{"accountId":"85d6d2e7-5d1d-4200-a8bf-0874bcd6df50"
,"externalKey":"123456.2","accountCBA":0,"accountBalance":0
,"billCycleDayLocal":0,"currency":"BGN","paymentMethodId":null
,"timeZone":"+02:00","address1":"","address2":"","postalCode":"9999"
,"company":"","city":"Sofia","state":"Sofia","country":"Bulgaria","locale":"BG"
,"phone":""
,"isNotifiedForInvoices":false,"isMigrated":false
,"customFields":[
{"customFieldId":"a09faa85-7ded-4e3a-a169-b6dad5b34bb0","key":"MOL","value":"MOL-Value"}
,{"customFieldId":"a09faa85-7ded-4e3a-a169-b6dad5b34bb1","key":"VAT-ID","value":"VAT-ID-Value"}
]
}
I have also added Query parameter (accountWithCF) to the account request:
Another idea which I have is to allow update of CustomField. Right now I can't find PUT request for customFields.
I will be happy to know your comments.
Kind regards,
Trifon