Presta-Zoho API for creating a lead

The following are the fields to add to the JSON payload upon your request

Field NameExampleDescription
Email[email protected]
Websitewww.test.com
First_NameJohn
Last_NameDoeThis field is Mandatory.
Lead_StatusLoan Inquiry
Mobile2547208798955
Desired_Amount50000.00
Desired_Period5
Lead_SourceUSSD
Desired_SecurityLogbook

The following shows a curl request

curl --location --request POST 'http://localhost:9000/api/v1/zoho/leads' \
--header 'Content-Type: application/json' \
--data-raw '{
    
    "Email": "[email protected]",
    "Website": "www.prestacapital.com",
    "First_Name": "George",
    "Last_Name": "Gitau",
    "Lead_Status": "Loan Inquiry",
    "Mobile": "2547208798955",
    "Desired_Amount": "50000.00",
    "Desired_Period" : "5",
    "Lead_Source" : "USSD",
    "Desired_Security": "Logbook"


}'

The following shows a successful response

{
    "data": [
        {
            "code": "SUCCESS",
            "details": {
                "Modified_Time": "2021-09-08T12:11:37-07:00",
                "Modified_By": {
                    "name": "Tom Kimani",
                    "id": "4951413000000328001"
                },
                "Created_Time": "2021-09-08T12:11:37-07:00",
                "id": "4951413000000442002",
                "Created_By": {
                    "name": "Tom Kimani",
                    "id": "4951413000000328001"
                }
            },
            "message": "record added",
            "status": "success"
        }
    ]
}