Submitting a franchise enquiry with the WebAPI

A franchise enquiry collected from a Facebook lead form (or any other form) can be submit to FMS through Jim’s Public WebAPI.

The Jim’s Public WebAPI is protected with an API key called a bearer token. If you need to request an API key, please contact infotech@jims.net.

Please note that if any of the details do not pass validation, an email will be sent to the email address provided asking the user to complete their request in an online form.

1. Details to collect

The franchise enquiry endpoint requires the following data for a franchise enquiry to be submit to FMS. Please ensure all details are collected prior to submitting the request to the WebAPI

FieldTypeNotes
First NameString
Last NameString
AddressStringThe address needs to be include a street number, street name, suburb, and postcode. If the house is a unit or flat, the details should be included too.

For example: 2/36 Karingal Street North Croydon 3136
EmailEmail AddressA valid email address
PhonePhone NumberArea code required

For example 03 9876 5432

A phone of 9876 5432 will not be
accepted

2. Sending the data to FMS

The easiest way to send data to FMS is with an intermediary like Zapier, as Zapier is already connected to many other platforms.

To configure Zapier to send a franchise enquiry to FMS, please complete the following:

2.1. Create a Webhook using “Webhooks by Zapier”

Sending the franchise data to FMS is achieved by configuring a Zap with two steps:

  1. Facebook Lead Ad,
  2. and a Webhook

2.2. The Facebook Leads Ad step should be configured with “New Lead” as the trigger event

2.3. A web hook step should then be added to the Zap

2.4: The webhook should be configured to have an “action event” of “Custom Request”

2.5: Configure the Webhook with

2.6: Congure the Data for the POST with the following template, and update the values with variables from Zapier with the data from Facebook data.

  • The Country needs to be set to either AU or NZ
  • Division needs to be the ID of the division the franchise enquiry is for
  • first_name, last_name, address, email, and phone need to be updated with variables representing the data from facebook
{
    "country": "au",
    "division": 1,
    "first_name": "xxxx",
    "last_name": "xxxx",
    "address": "2/36 Karingal Street North Croydon 3136",
    "email": "xxx@xxx.xxx",
    "phone": "xxxxxxxxxx"
}

2.7: Adjust the following settings under the data that is send

  • Configure unflatten as no
  • In the headers area set the following
    • Authorization with a value of “Bearer xxx” where xxx represents the API key provided by infotech
    • Accept with a value of application/json
    • Content-Type with a value of application/json
    • Return Raw Response should be set to No

2.8: On the final screen of the Webhook step, you can test the integration with FMS.

There is currently no way to test the franchise enquiry endpoint with submitting a real test. It is recommended that a test be complete using your personal details to the enquiry can be easily recognised and disregarded.

If you would like to test the integration with other details, without the concern of the production environment, you can use the hotfix environment by changing the URL on the configure screen to https://hf.webapi.jims.net/api/v1/prospects-open and requesting an API key for the hotfix environment from infotech@jims.net.