cURL
curl --request POST \ --url https://apigw.bienport.com/api/lead/add \ --header 'Content-Type: application/json' \ --data ' { "name": "Test3 Name", "prospectContact": [ { "characteristic": { "phoneNumber": "5XXXXXXXXXX (phoneNumber must be 10 characters. phoneNumber must not be start 0.)", "city": "İstanbul", "mobileAppId": "1231-4654-6564-6498-99", "subscriptionId": "551", "panelNo": "EA-560" } } ] } '
{ "id": 89839, "totalPages": 1, "href": "FN-3***", "totalItems": 1, "creationDate": "2020-07-06T00:00:00.000Z", "currentPage": 1, "description": "****", "leads": "<array>", "name": "KAMER T****", "rating": 50, "referredDate": "2020-07-06T00:00:00.000Z", "category": { "id": 123, "name": "Alarm" }, "marketSegment": { "id": 1, "name": "Alarm" }, "prospectContact": [ { "characteristic": { "phoneNumber": "5XXXXXXXXXX (phoneNumber must be 10 characters. phoneNumber must not be start 0.)", "city": "İstanbul", "mobileAppId": "1231-4654-6564-6498-99", "subscriptionId": "551", "panelNo": "EA-560" } } ], "relatedParty": [ { "name": "<string>", "id": "456789" } ], "status": "Randevu Alındı" }
addLeadRequest
Request Model for add lead
Customer Name
"Test3 Name"
Show child attributes
Characteristic for get lead
Customer phone number
"5XXXXXXXXXX (phoneNumber must be 10 characters. phoneNumber must not be start 0.)"
"İstanbul"
"1231-4654-6564-6498-99"
"551"
"EA-560"
Lead Adding Success.
Response Model for get lead
89839
1
"FN-3***"
"2020-07-06T00:00:00.000Z"
"****"
"KAMER T****"
50
Category for get lead
"Alarm"
MarketSegment for get lead
Name of the related entity.
"456789"
"Randevu Alındı"