i want to send data from erpnext to external system

i want send the customer group and the credit or debit amount and customer when gl entry create for party type cusomer how could i did this?

Webhooks?

https://docs.frappe.io/framework/user/en/guides/integration/webhooks

Whitelisted methods through REST

i want to send customer group that not found in gl entry when i use webhook @peterg

that can do query and i prepare data in array now i want to send them
how?
@Yamen_Zakhour

You might be able to do what you want with a Link field pointing at the customer document, but I’m not certain. If that’s not possible, you’ll have to create a custom event hook.

https://docs.frappe.io/framework/user/en/python-api/hooks