Fenestratio Integration

Updated January 15, 2020

Fenestratio page ".../api.jsp" is designed to process requests from other software. All methods on api.jsp must be invoked by https requests.

Fenestratio's active login server can be located by reading the file:

...which will contain something like sv10.fenestratio.com

api.jsp methods

findCustomers

findCustomers will search Fenestratio customers in the name and phone fields for the passed string.
example (some url encoding omitted):
https://.../api.jsp?fn=findCustomers&sv=Smith&mr=20
or
https://.../api.jsp?fn=findCustomers&sv=555-555-1212&mr=20

Https Parameters:

Return JSON:

Rules:

↑ top

listContacts

..will return the contacts for a customer.

example (some url encoding omitted):
https://.../api.jsp?fn=listContacts&Customer=11

Https Parameters:

Return JSON:

Rules:

↑ top

listUsers

listUsers will list all internal Fenestratio users. Dealers and contractors will not be listed.
example (some url encoding omitted):
https://.../api.jsp?fn=listUsers

Https Parameters:

Return JSON:

↑ top

selectCustomer

selectCustomer will retrieve a customer by its Fenestratio id or OtherSystemCode.
example (some url encoding omitted):
https://.../api.jsp?fn=selectCustomer&Customer=10
or
https://.../api.jsp?fn=selectCustomer&OtherSystemCode=abc128

Https Parameters:

Return JSON:

↑ top

upsertContact

upsertContact will create or update a contact in Fenestratio for the passed customer other system code or Fenestratio customer id

example (some url encoding omitted):
https://.../api.jsp?fn=upsertContact&co=Mary&cc=5555551213&em=mary@nospam.org&os=ae39239ds832ff
or
https://.../api.jsp?fn=upsertContact&co=Mary&cc=5555551213&em=mary@nospam.org&ro=11

If the name or email or cell phone passed matches an existing contact for the customer, Fenestratio will update the other values, otherwise Fenestratio will create a new contact. Https Parameters:

Return JSON:

Rules:

↑ top

upsertCustomer

..will create or update a customer in Fenestratio for the passed other system code, and return the Fenestratio customer id.

example (some url encoding omitted):
https://.../api.jsp?fn=createCustomer&nm=Smith, Mary %26 John&ad=123 some street&ct=Chicago &st=IL&cn=USA&pc=22456&p1=555-555-1252&fx=555-555-1213&em=mary@nospam.org &tc=HST&ls=Yellow Pages&os=ae39239ds832ff

Https Parameters:

Return JSON:

Rules:

↑ top