Custom Validation Before Account Creation in Kill Bill

46 views
Skip to first unread message

Ahmed Elwan

unread,
Jul 29, 2026, 2:48:30 PMJul 29
to Kill Bill users mailing-list

Hello Team,

I would like to ask if it is possible to add custom validation logic before account creation in Kill Bill. If so, could you please advise on the recommended approach or extension points to achieve this?

Best regards,

Ahmed

karan bansal

unread,
Jul 31, 2026, 7:10:13 AMJul 31
to Kill Bill users mailing-list
Hi Ahmed,

Could you please provide more details OR examples of what custom validation are you looking for. 

Regards
Karan

Ahmed Elwan

unread,
Aug 4, 2026, 3:42:23 AMAug 4
to Kill Bill users mailing-list

Hi Karan,

For example, I need to add a validation step to verify whether the externalKey already exists in the third-party system and, based on that, determine whether it should be created.

Thanks for your support.

Best regards,
Ahmed

karan bansal

unread,
Aug 12, 2026, 4:03:54 AMAug 12
to Kill Bill users mailing-list
Hi Ahmed,

What is your flow of account creation, like are you using API to pull the details and create account in KB? The validation would lie before the KB api is invoked. On KB side, it just checks if external key is mentioned, if not, then it uses the account ID as external key.

Regards
Karan

Ahmed Elwan

unread,
Aug 31, 2026, 9:26:08 AMAug 31
to Kill Bill users mailing-list

Hi Karan,

Thanks for your great support!

Yes, creating a custom endpoint and applying our validation before calling the Kill Bill Account API is the last solution I’m considering.

However, what I’m looking for is whether Kill Bill provides any pre-call hooks or extension points that allow us to apply custom validation before the Account API is invoked, similar to EntitlementPluginApi or PaymentControlPluginApi.

Thanks again for your guidance.

Best regards,
Ahmed

karan bansal

unread,
Sep 1, 2026, 9:25:03 AMSep 1
to Kill Bill users mailing-list
Hi Ahmed,
 
The prior calls that are present for EntitlementPluginApi OR PaymentControlPluginApi, their equivalents are not available for the accounts creation. Though there are account creation events available, but these are generated after the account is created. 

I believe the only option would be to build a plugin with its own custom endpoint exposed. That way you can run any validation inside it and at the end call the Kill Bill create account API on success. 

Regards
Karan

Ahmed Elwan

unread,
Sep 26, 2026, 4:32:30 AM (3 days ago) Sep 26
to Kill Bill users mailing-list
Thanks, Karan for your support.
Reply all
Reply to author
Forward
0 new messages