Good morning.
We want to set up a single application to process webhooks for different companies in IN. We can configure the single webhooks for all the applications. But when we receive a request for clients from different company its failing because IN url is different for different companies. So, we want to know how can we figure out the company and url of the company based on the client field from the webhook request. Once we have url for the company, we can call clients API using url for the specific company.
{
"body": {
"context":"is_eligible",
"subscription":"kQBexxxxxx",
"recurring_invoice":null,
"client":"Jxboxxxxxx",
"contact":"olejxxxxxx",
"invoice":"ZdPNxxxxxx",
"account_key":null,
"db":"db-ninja-01"
}
}
I hope you understood the question. Please let me know if this is not the case.
Thanks,
Amitkumar