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

ActionWhat it does
Add call logLog a contact with a customer or prospect: a call, an email or a visit, with its reason and a note.
Add flag to customerPut a flag on a customer's account, such as Dog on property.
Add leadAdd 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 phoneFind the customers with a phone number on their account, such as a caller's.
Get customerGet one customer with their address, phones, balance and notes.
Get customer flagsList the flags on a customer's account.
Get programGet one program with its price, status and schedule.
Get serviceGet one service with its status, price, schedule and completion.
List branchesList the business's branches (RealGreen calls them companies) with their numbers and phones.
List call reasonsList the call reasons call logs and leads are filed under.
List employeesList active employees with their IDs, positions and departments.
List flagsList the flags that can be put on customer accounts.
List service codesList the service codes in use (the kinds of service you sell).
List source codesList the source codes (how customers heard of you).
Remove flag from customerTake a flag off a customer's account.
Search call logsFind call logs for a customer, added after a time, assigned to an employee or with a status.
Search customersFind customers by name, company, email, ZIP, or when they were added or changed.
Search programsFind programs and special jobs (what a customer has bought), for one customer or sold or added after a time.
Search servicesFind services (the visits of a program), for one customer or program, of one service code, or posted (completed) in a time range.
Update customerChange 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

Employeeemployee_idtextRequired
The employee logging it.
Call reasoncall_reason_idtextRequired
Why the contact happened, as set up in Service Assistant.
NotenotetextRequired
What happened.
Customer numbercustomer_numbertext
The customer it is about.
Statusstatustext
The call log's status, as named in Service Assistant.
Namenametext
The caller's name, if not a customer.
Phone numberphone_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 numbercustomer_numbertextRequired
The customer's number, from 'Search customers' or an earlier step.
Flagflag_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 namefirst_nametextRequired
The lead's first name.
Last namelast_nametextRequired
The lead's last name.
ZIP codezip_codetextRequired
The property's ZIP code.
Call reasoncall_reason_idtextRequired
Why the contact happened, as set up in Service Assistant.
Street addressstreettext
The property's street number and name.
Emailemailtext
The lead's email address.
Cell phonecell_phonetext
The lead's cell phone number.
Home phonehome_phonetext
The lead's home phone number.
Sourcesource_code_idtext
How they heard of you.
Employeeemployee_idtext
The employee.
Notesnotestext
Notes saved on the lead's call log.
Branchbranch_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 numberphone_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 numbercustomer_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 numbercustomer_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 IDprogram_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 IDservice_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 numbercustomer_numbertextRequired
The customer's number, from 'Search customers' or an earlier step.
Flagflag_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 numbercustomer_numbertext
Only this customer's call logs.
Added aftercreated_afterdate and time
Only call logs added after this time.
Assigned toassigned_totext
Only call logs assigned to this employee.
Statusstatustext
Only call logs with this status.
Page sizerecordsnumber
How many to return, 1 to 1,000. Defaults to 100.From 1 to 1000.
Skipoffsetnumber
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 namefirst_nametext
The customer's first name.
Last namelast_nametext
The customer's last name.
Companycompany_nametext
The company name.
Emailemailtext
The customer's email address.
ZIP codezip_codetext
The customer's ZIP code.
Added aftercreated_afterdate and time
Only customers added after this time.
Changed afterupdated_afterdate and time
Only customers changed after this time.
Page sizerecordsnumber
How many to return, 1 to 1,000. Defaults to 100.From 1 to 1000.
Skipoffsetnumber
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 numbercustomer_numbertext
Only this customer's programs.
Sold aftersold_afterdate and time
Only programs sold after this time.
Added aftercreated_afterdate and time
Only programs added after this time.
Page sizerecordsnumber
How many to return, 1 to 1,000. Defaults to 100.From 1 to 1000.
Skipoffsetnumber
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 numbercustomer_numbertext
Only this customer's services.
Program IDprogram_idtext
Only this program's services.
Service codeservice_codetext
Only services with this code.
Posted afterposted_afterdate and time
Only services posted (done) after this time.
Posted beforeposted_beforedate and time
Only services posted before this time.
Added aftercreated_afterdate and time
Only services added after this time.
Page sizerecordsnumber
How many to return, 1 to 1,000. Defaults to 100.From 1 to 1000.
Skipoffsetnumber
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 numbercustomer_numbertextRequired
The customer's number, from 'Search customers' or an earlier step.
Emailemailtext
A new email address.
First namefirst_nametext
A new first name.
Last namelast_nametext
A new last name.
Companycompany_nametext
A new company name.
Technician notetechnician_notetext
A note technicians see on the account.
Memomemotext
The account memo.
Directionsdirectionstext
Directions to the property.
Changed byemployee_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"
  }
}

On this page