Endpoints
Create Lead
/create-leadThis API creates a new lead in the system by submitting customer and sales representative information.
Body Params
application/json
firstNamestringrequiredlastNamestringrequiredemailstringrequiredphoneNumberstringrequiredaddressstringrequiredsalesRepEmailstringrequired1curl -X POST "https://pipe.solar/api/1.1/wf/create-lead" \2 -H "Authorization: Bearer ps_live_..." \3 -H "Content-Type: application/json" \4 -d '{5 "firstName": "First name of the customer",6 "lastName": "Last name of the customer",7 "email": "Email address of the customer",8 "phoneNumber": "Phone number of the customer",9 "address": "Full address of the customer",10 "salesRepEmail": "Email address of the assigned sales representative"11}'1{2 "status": 200,3 "leaduid": "USFHSH"4}Update Lead
/update_leadUpdates an existing lead record. This call modifies contact details for the primary applicant and co-applicant.
Body Params
application/json
idstringrequiredA unique 10-character alphanumeric string used to identify this specific lead record.
home_improvementbooleanrequiredA boolean flag used for lead routing: True indicates a Home Improvement lead; False indicates a Solar lead.
primary_first_namestringThe first name of the main applicant for the project.
primary_last_namestringThe last name of the main applicant for the project.
primary_emailstringThe main contact email address for the primary applicant.
primary_phonenumberThe main contact phone number for the primary applicant.
secondary_first_namestringThe first name of the co-applicant (e.g., a spouse or business partner).
secondary_last_namestringThe last name of the co-applicant associated with the lead.
1curl -X POST "https://pipe.solar/api/1.1/wf/update_lead" \2 -H "Authorization: Bearer ps_live_..." \3 -H "Content-Type: application/json" \4 -d '{5 "id": "example",6 "home_improvement": true,7 "primary_first_name": "example",8 "primary_last_name": "example",9 "primary_email": "example",10 "primary_phone": 1,11 "secondary_first_name": "example",12 "secondary_last_name": "example",13 "secondary_email": "example",14 "secondary_phone": 115}'1{2 "id": "ABCDE12345",3 "home_improvement": true,4 "primary_first_name": "Alex",5 "primary_last_name": "Rivers",6 "primary_email": "alex.rivers@example.com",7 "primary_phone": 5550101234,8 "secondary_first_name": "Jordan",9 "secondary_last_name": "Rivers",10 "secondary_email": "j.rivers@example.com",11 "secondary_phone": 555010567812}Retrieve Lead by ID
/fetch_leadQuery Params
idstringqueryrequired1curl -X GET "https://pipe.solar/api/1.1/wf/fetch_lead?id=value" \2 -H "Authorization: Bearer ps_live_..." \3 -H "Content-Type: application/json"Fetch All Lead (org)
/fetch_all_leadQuery Params
org_idstringqueryrequiredpagenumberquery1curl -X GET "https://pipe.solar/api/1.1/wf/fetch_all_lead?org_id=value" \2 -H "Authorization: Bearer ps_live_..." \3 -H "Content-Type: application/json"Fetch All Lead (Installer)
/fetch_all_lead_installerQuery Params
installer_idstringqueryrequiredpagenumberquery1curl -X GET "https://pipe.solar/api/1.1/wf/fetch_all_lead_installer?installer_id=value" \2 -H "Authorization: Bearer ps_live_..." \3 -H "Content-Type: application/json"