Authorization: Bearer ********************
curl --location --request GET 'https://api.upbooks.io/api/v1/lead?searchText&country&type&status' \
--header 'pageNo;' \
--header 'pageSize;' \
--header 'sortBy;' \
--header 'sortOrder;' \
--header 'ORGANIZATION-ID: 00000'
{
"data": [
{
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"__v": 0,
"_id": "string",
"organizationId": "string",
"leadType": "business",
"name": "string",
"status": "new",
"source": "string",
"expectedValue": {
"currency": {
"name": "string",
"symbol": "string"
},
"amount": 0
},
"primaryContactId": "string",
"notes": "string",
"contacts": [
{
"isPrimary": true,
"salutation": "Mr.",
"firstName": "string",
"lastName": "string",
"email": "string",
"workPhone": "string",
"mobilePhone": "string",
"designation": "string",
"department": "string"
}
],
"billingAddress": {
"locationName": "string",
"street1": "string",
"street2": "string",
"pincode": "string",
"city": "string",
"state": "string",
"country": "string"
},
"shippingAddress": {
"locationName": "string",
"street1": "string",
"street2": "string",
"pincode": "string",
"city": "string",
"state": "string",
"country": "string"
},
"leadNumber": "string"
}
],
"totalCount": 0,
"filteredCount": 0,
"message": "string"
}