RealGreen Service Assistant
App · 20 actions
Work with RealGreen Service Assistant: add leads, find and update customers, flag accounts, read programs and services, and log calls.
Actions
| Action | What it does |
|---|---|
| Add call log | Log a contact with a customer or prospect: a call, an email or a visit, with its reason and a note. |
| Add flag to customer | Put a flag on a customer's account, such as Dog on property. |
| Add lead | Add a lead the way RealGreen's web lead form does: a new prospect, or an update to the customer it matches, with a call log. |
| Find customers by phone | Find the customers with a phone number on their account, such as a caller's. |
| Get customer | Get one customer with their address, phones, balance and notes. |
| Get customer flags | List the flags on a customer's account. |
| Get program | Get one program with its price, status and schedule. |
| Get service | Get one service with its status, price, schedule and completion. |
| List branches | List the business's branches (RealGreen calls them companies) with their numbers and phones. |
| List call reasons | List the call reasons call logs and leads are filed under. |
| List employees | List active employees with their IDs, positions and departments. |
| List flags | List the flags that can be put on customer accounts. |
| List service codes | List the service codes in use (the kinds of service you sell). |
| List source codes | List the source codes (how customers heard of you). |
| Remove flag from customer | Take a flag off a customer's account. |
| Search call logs | Find call logs for a customer, added after a time, assigned to an employee or with a status. |
| Search customers | Find customers by name, company, email, ZIP, or when they were added or changed. |
| Search programs | Find programs and special jobs (what a customer has bought), for one customer or sold or added after a time. |
| Search services | Find services (the visits of a program), for one customer or program, of one service code, or posted (completed) in a time range. |
| Update customer | Change a customer's name, company, email, technician note, memo or directions. |
Add call log
Log a contact with a customer or prospect: a call, an email or a visit, with its reason and a note.
Inputs
- Employee
employee_idtextRequired - The employee logging it.
- Call reason
call_reason_idtextRequired - Why the contact happened, as set up in Service Assistant.
- Note
notetextRequired - What happened.
- Customer number
customer_numbertext - The customer it is about.
- Status
statustext - The call log's status, as named in Service Assistant.
- Name
nametext - The caller's name, if not a customer.
- Phone number
phone_numbertext - The caller's phone number.
Outputs
call_log_idtext- The new call log's ID
Example output
{
"call_log_id": "77301"
}Add flag to customer
Put a flag on a customer's account, such as Dog on property.
Inputs
- Customer number
customer_numbertextRequired - The customer's number, from 'Search customers' or an earlier step.
- Flag
flag_idtextRequired - The flag. Pick one, or give its ID.
Outputs
addedtrue/false- True once added
customer_numbertext- The customer
flag_idtext- The flag
Example output
{
"added": true,
"customer_number": "10452",
"flag_id": "3"
}Add lead
Add a lead the way RealGreen's web lead form does: a new prospect, or an update to the customer it matches, with a call log.
Inputs
- First name
first_nametextRequired - The lead's first name.
- Last name
last_nametextRequired - The lead's last name.
- ZIP code
zip_codetextRequired - The property's ZIP code.
- Call reason
call_reason_idtextRequired - Why the contact happened, as set up in Service Assistant.
- Street address
streettext - The property's street number and name.
- Email
emailtext - The lead's email address.
- Cell phone
cell_phonetext - The lead's cell phone number.
- Home phone
home_phonetext - The lead's home phone number.
- Source
source_code_idtext - How they heard of you.
- Employee
employee_idtext - The employee.
- Notes
notestext - Notes saved on the lead's call log.
- Branch
branch_idtext - The branch the lead belongs to.
Outputs
customer_numbertext- The lead's customer number
matching_customer_numberslist- Existing customers the lead matched, if any
messagetext- What RealGreen said
Example output
{
"customer_number": "10452",
"matching_customer_numbers": [],
"message": "Lead added"
}Find customers by phone
Find the customers with a phone number on their account, such as a caller's.
Inputs
- Phone number
phone_numbertextRequired - The phone number to look up.
Outputs
countnumber- How many were returned
customerslist- The customers with that number
Example output
{
"count": 1,
"customers": [
{
"address": {
"addressLine1": "100 Main St",
"city": "Toledo",
"state": "OH",
"zip": "43604"
},
"branchNumber": 1,
"companyName": "",
"displayName": "Jane Doe",
"email": "jane@example.com",
"firstName": "Jane",
"id": 10452,
"lastName": "Doe",
"memo": "",
"netBalance": 0,
"phones": [
{
"isPreferred": true,
"number": "4195550100",
"phoneType": "Cell"
}
],
"since": "2026-04-02T00:00:00",
"statusCharacter": "A",
"techNote": "Gate on left side"
}
]
}Get customer
Get one customer with their address, phones, balance and notes.
Inputs
- Customer number
customer_numbertextRequired - The customer's number, from 'Search customers' or an earlier step.
Outputs
customerobject- The customer
Example output
{
"customer": {
"address": {
"addressLine1": "100 Main St",
"city": "Toledo",
"state": "OH",
"zip": "43604"
},
"branchNumber": 1,
"companyName": "",
"displayName": "Jane Doe",
"email": "jane@example.com",
"firstName": "Jane",
"id": 10452,
"lastName": "Doe",
"memo": "",
"netBalance": 0,
"phones": [
{
"isPreferred": true,
"number": "4195550100",
"phoneType": "Cell"
}
],
"since": "2026-04-02T00:00:00",
"statusCharacter": "A",
"techNote": "Gate on left side"
}
}Get customer flags
List the flags on a customer's account.
Inputs
- Customer number
customer_numbertextRequired - The customer's number, from 'Search customers' or an earlier step.
Outputs
countnumber- How many were returned
flagslist- The customer's flags
Example output
{
"count": 1,
"flags": [
{
"customerNumber": 10452,
"descriptions": "Dog on property",
"flag": 3,
"id": 901
}
]
}Get program
Get one program with its price, status and schedule.
Inputs
- Program ID
program_idtextRequired - The program's ID, from 'Search programs'.
Outputs
programobject- The program
Example output
{
"program": {
"created": "2026-11-30T15:04:05",
"customerNumber": 10452,
"dateSold": "2026-11-30T00:00:00",
"id": 88101,
"isComplete": false,
"price": 289.0,
"programCode": "LAWN6",
"programDescription": "6-step lawn program",
"status": "Active",
"updated": "2026-11-30T15:04:05"
}
}Get service
Get one service with its status, price, schedule and completion.
Inputs
- Service ID
service_idtextRequired - The service's ID, from 'Search services'.
Outputs
serviceobject- The service
Example output
{
"service": {
"customerNumber": 10452,
"dateCompleted": "2026-11-30T00:00:00",
"id": 551200,
"isPaid": false,
"postedDate": "2026-11-30T00:00:00",
"programID": 88101,
"scheduledTime": "2026-11-30T09:00:00",
"serviceCode": "R1",
"serviceLongName": "Round 1 fertilizer",
"serviceStatus": "S",
"totalAmount": 48.17
}
}List branches
List the business's branches (RealGreen calls them companies) with their numbers and phones.
Inputs
None.
Outputs
brancheslist- The branches
countnumber- How many were returned
Example output
{
"branches": [
{
"branchNumber": 1,
"companyName": "Toledo",
"id": 1,
"isDefaultCompany": true,
"phone1": "4195550000",
"state": "OH"
}
],
"count": 1
}List call reasons
List the call reasons call logs and leads are filed under.
Inputs
None.
Outputs
call_reasonslist- The call reasons
countnumber- How many were returned
Example output
{
"call_reasons": [
{
"actionReason": "New lead",
"actionReasonID": 12,
"status": "A"
}
],
"count": 1
}List employees
List active employees with their IDs, positions and departments.
Inputs
None.
Outputs
countnumber- How many were returned
employeeslist- The employees
Example output
{
"count": 1,
"employees": [
{
"active": true,
"department": "Lawn",
"email": "jo@example.com",
"id": "JSMITH",
"name": "Jo Smith",
"position": "Tech"
}
]
}List flags
List the flags that can be put on customer accounts.
Inputs
None.
Outputs
countnumber- How many were returned
flagslist- The flags
Example output
{
"count": 1,
"flags": [
{
"available": true,
"flagDescription": "Dog on property",
"id": 3,
"symbol": "D"
}
]
}List service codes
List the service codes in use (the kinds of service you sell).
Inputs
None.
Outputs
countnumber- How many were returned
service_codeslist- The service codes
Example output
{
"count": 1,
"service_codes": [
{
"basePrice": 45.0,
"id": "R1",
"longName": "Round 1 fertilizer",
"name": "R1",
"programType": "L"
}
]
}List source codes
List the source codes (how customers heard of you).
Inputs
None.
Outputs
countnumber- How many were returned
source_codeslist- The source codes
Example output
{
"count": 1,
"source_codes": [
{
"available": true,
"id": 4,
"sourceDescription": "Website"
}
]
}Remove flag from customer
Take a flag off a customer's account.
Inputs
- Customer number
customer_numbertextRequired - The customer's number, from 'Search customers' or an earlier step.
- Flag
flag_idtextRequired - The flag. Pick one, or give its ID.
Outputs
customer_numbertext- The customer
flag_idtext- The flag
removedtrue/false- True once removed
Example output
{
"customer_number": "10452",
"flag_id": "3",
"removed": true
}Search call logs
Find call logs for a customer, added after a time, assigned to an employee or with a status.
Inputs
- Customer number
customer_numbertext - Only this customer's call logs.
- Added after
created_afterdate and time - Only call logs added after this time.
- Assigned to
assigned_totext - Only call logs assigned to this employee.
- Status
statustext - Only call logs with this status.
- Page size
recordsnumber - How many to return, 1 to 1,000. Defaults to 100.From 1 to 1000.
- Skip
offsetnumber - How many to skip, such as the next offset an earlier page gave.At least 0.
Outputs
call_logslist- The call logs
countnumber- How many were returned
next_offsetnumber- The Skip value for the next page, or -1 if this was the last
Example output
{
"call_logs": [
{
"assignedTo": "JSMITH",
"customerNumber": 10452,
"dueDate": "2026-12-01T00:00:00",
"enterDate": "2026-11-30T15:04:05",
"enteredBy": "JSMITH",
"id": 77301,
"name": "Jane Doe",
"phone": "4195550100",
"resolved": false,
"status": "Open"
}
],
"count": 1,
"next_offset": -1
}Search customers
Find customers by name, company, email, ZIP, or when they were added or changed. Gets one page; to see more, run it again with the next offset.
Inputs
- First name
first_nametext - The customer's first name.
- Last name
last_nametext - The customer's last name.
- Company
company_nametext - The company name.
- Email
emailtext - The customer's email address.
- ZIP code
zip_codetext - The customer's ZIP code.
- Added after
created_afterdate and time - Only customers added after this time.
- Changed after
updated_afterdate and time - Only customers changed after this time.
- Page size
recordsnumber - How many to return, 1 to 1,000. Defaults to 100.From 1 to 1000.
- Skip
offsetnumber - How many to skip, such as the next offset an earlier page gave.At least 0.
Outputs
countnumber- How many were returned
customerslist- The customers
next_offsetnumber- The Skip value for the next page, or -1 if this was the last
Example output
{
"count": 1,
"customers": [
{
"address": {
"addressLine1": "100 Main St",
"city": "Toledo",
"state": "OH",
"zip": "43604"
},
"branchNumber": 1,
"companyName": "",
"displayName": "Jane Doe",
"email": "jane@example.com",
"firstName": "Jane",
"id": 10452,
"lastName": "Doe",
"memo": "",
"netBalance": 0,
"phones": [
{
"isPreferred": true,
"number": "4195550100",
"phoneType": "Cell"
}
],
"since": "2026-04-02T00:00:00",
"statusCharacter": "A",
"techNote": "Gate on left side"
}
],
"next_offset": -1
}Search programs
Find programs and special jobs (what a customer has bought), for one customer or sold or added after a time.
Inputs
- Customer number
customer_numbertext - Only this customer's programs.
- Sold after
sold_afterdate and time - Only programs sold after this time.
- Added after
created_afterdate and time - Only programs added after this time.
- Page size
recordsnumber - How many to return, 1 to 1,000. Defaults to 100.From 1 to 1000.
- Skip
offsetnumber - How many to skip, such as the next offset an earlier page gave.At least 0.
Outputs
countnumber- How many were returned
next_offsetnumber- The Skip value for the next page, or -1 if this was the last
programslist- The programs
Example output
{
"count": 1,
"next_offset": -1,
"programs": [
{
"created": "2026-11-30T15:04:05",
"customerNumber": 10452,
"dateSold": "2026-11-30T00:00:00",
"id": 88101,
"isComplete": false,
"price": 289.0,
"programCode": "LAWN6",
"programDescription": "6-step lawn program",
"status": "Active",
"updated": "2026-11-30T15:04:05"
}
]
}Search services
Find services (the visits of a program), for one customer or program, of one service code, or posted (completed) in a time range.
Inputs
- Customer number
customer_numbertext - Only this customer's services.
- Program ID
program_idtext - Only this program's services.
- Service code
service_codetext - Only services with this code.
- Posted after
posted_afterdate and time - Only services posted (done) after this time.
- Posted before
posted_beforedate and time - Only services posted before this time.
- Added after
created_afterdate and time - Only services added after this time.
- Page size
recordsnumber - How many to return, 1 to 1,000. Defaults to 100.From 1 to 1000.
- Skip
offsetnumber - How many to skip, such as the next offset an earlier page gave.At least 0.
Outputs
countnumber- How many were returned
next_offsetnumber- The Skip value for the next page, or -1 if this was the last
serviceslist- The services
Example output
{
"count": 1,
"next_offset": -1,
"services": [
{
"customerNumber": 10452,
"dateCompleted": "2026-11-30T00:00:00",
"id": 551200,
"isPaid": false,
"postedDate": "2026-11-30T00:00:00",
"programID": 88101,
"scheduledTime": "2026-11-30T09:00:00",
"serviceCode": "R1",
"serviceLongName": "Round 1 fertilizer",
"serviceStatus": "S",
"totalAmount": 48.17
}
]
}Update customer
Change a customer's name, company, email, technician note, memo or directions. Only the fields given change.
Inputs
- Customer number
customer_numbertextRequired - The customer's number, from 'Search customers' or an earlier step.
- Email
emailtext - A new email address.
- First name
first_nametext - A new first name.
- Last name
last_nametext - A new last name.
- Company
company_nametext - A new company name.
- Technician note
technician_notetext - A note technicians see on the account.
- Memo
memotext - The account memo.
- Directions
directionstext - Directions to the property.
- Changed by
employee_idtext - The employee the change is recorded against.
Outputs
customerobject- The customer
Example output
{
"customer": {
"address": {
"addressLine1": "100 Main St",
"city": "Toledo",
"state": "OH",
"zip": "43604"
},
"branchNumber": 1,
"companyName": "",
"displayName": "Jane Doe",
"email": "jane@example.com",
"firstName": "Jane",
"id": 10452,
"lastName": "Doe",
"memo": "",
"netBalance": 0,
"phones": [
{
"isPreferred": true,
"number": "4195550100",
"phoneType": "Cell"
}
],
"since": "2026-04-02T00:00:00",
"statusCharacter": "A",
"techNote": "Gate code 1234"
}
}