ERPNext Conference 2019* ERPNext.com Blog

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

customization

#1

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


#2

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


#3

Also via Zapier it is possible.


#4

Can you please tell me how can I use them


#5
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: https://app.swaggerhub.com/apis-docs/alyf.de/ERPNext/11

In case you’re interested in Zapier, find my app here: github.com/alyf-de/erpnext-zapier


#6

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">

#7

Anyone knows regarding this??