done it before … you go to the hook and point the event to your custom app method path
i used frappe client library which is a python lib make your life awesome to integrate with erpnext i have use it in django and frappe for them to send data to Destination Server
This will send a POST request to your-api-server every time a Sales Invoice is submitted.
For authentication, you can add your credentials with the authorization header. You can also specify custom keys for each ERPNext fieldname, so your API will understand the request.
If you really need to, you can create webhook from python with something like this:
Dear @rmeyer i read ur post regarding post data through api to other server, in which u said that using webhook we can post different fields ,
I am looking for same solution can u plz let me know that how i can send specific fields of sale invoice to other server through API having different fields names,
For example : in erpnext sale invoice we have totalbillamount field name but in my online server it have totalsalevalue.
Now i want to know that how i can send totalbillamount value to totalsalevale field using json through API.
Secondly plz help in another issue that when i m sending Post request my ERPnext server to Online Api server (on asp.net with Sql) in response Api server sends me unique invoice number , but i don’t know how to get that response/number and how to sale it against sale invoice.
E.g : i am sending post request through webhoock to my Api server on submission of sale invoice with my sale invoice data , in response my Api server send 0011223344-55 serial number .
In erpnext i dont know where i can see response and ho to get that response and how to save it in my erpnext db against sale invoice.
Waiting for your kind response . Thanx in advance bro.