Is there any api available to create lead from external source?

Is there any api available to create lead from external source?

https://frappe.io/docs/user/en/guides/integration/rest_api

Also via Zapier it is possible.

Can you please tell me how can I use them

curl -X POST https://your.erpnext.com/api/resource/Lead \
    -u username:password \
    -d '{"lead_name":"rmeyer"}' \
    -H 'Content-Type: application/json'

This would be a minimal example that works on the command line.

Here’s some more API documentation: Build, Collaborate & Integrate APIs | SwaggerHub

In case you’re interested in Zapier, find my app here: GitHub - alyf-de/erpnext-zapier: Zapier app to automate ERPNext

4 Likes

Hey, thanks for this.
But I am getting “not permitted” on running api

<title>Not Permitted</title>


<link rel="shortcut icon" href="/assets/erpnext/images/favicon.png" type="image/x-icon">

Anyone knows regarding this??

I’ve been promoting ERPnext at every opportunity I get, but lacking Zapier is an issue.
Is ERPnext team looking into this for 2020? An official Zapier support? There’ also Integromat.

Meanwhile. Anyone know of an ERP that is OpenSource and supports Zapier other than Odoo?

contact on hello@extensionerp.com for any type of integration help,
we are erpnext partner.

Did you add?

@frappe.whitelist(allow_guest=True)