Example URL to POST to:
https://ezzycrm.com/api/savelead
Example Request:
{
"ContactModel":
{
"FirstName": "John",
"LastName": "Roy",
"Email": "Johnroy@ezzycrm.com",
"Title": "",
"Phone": "0123456789",
"PhoneType": "Work",
"Remark": ""
},
"OrganizationModel":
{
"OrganizationName": "Organization",
"Address1": "Add1",
"Address2": "Add2",
"City": "Mumbai",
"ZipCode": "400084",
"StateName": "Maharashtra",
"CountryName": "India",
"IndustryName": "Software"
},
"UserId": 872,
"DealTitle": "Deal title",
"DealValue": "415.00",
"DealCurrencyId": 101,
"NoteModel": [
"Note1",
"Note2"
],
"PipelineId": 764,
"StageCode": "LIN",
"ExpectedCloseDate": "06/10/2022",
"CustomField1": "",
"CustomField2": "",
"CustomField3": "",
"CustomField4": "",
"CustomField5": "",
"CustomField6": "",
"CustomField7": "",
"CustomField8": "",
"CustomField9": "",
"CustomField10": ""
}
Returns a 200 on success with the data for
the create lead status in the response:
{
"isSuccess": "true",
"data": [
{
"AccountId": 174,
"UserId": 872,
"DealId": 30489,
"PipelineId": 764,
"DealTitle": "Deal title",
"DealValue": "415.00"
}
],
"error": []
}
If there are any issues regarding the create lead status,
you will still get a 200 response,
but the response will include an additional 'errors` field
with details about the created lead.
{
"isSuccess": "false",
"data": [],
"error": [
{
"errorField": "Error Field Name",
"errorMessage": "Error Message"
}
]
}