1. Introduction

    Lead Posting Specifications


    This document will explain the posting method, provide sample requests, sample responses, and the sample code to help you with posting. This information is subject to change without notice. This document contains confidential and proprietary business information and is only distributed in accordance with a signed confidentiality agreement. Any use or distribution not expressly allowed by the confidentiality agreement is strictly prohibited.


  2. Overview

    Method: Phonexa accepts leads through the HTTP POST process. Lead generators are asked to send leads via HTTP POST to the URL specified in the Leads Specs section.


    Format/Data Type: JSON or FORM


    Fields: Phonexa API contains both required and optional fields. Phonexa will not accept a lead when any of the required fields are omitted, or the value of those fields is null or blank. Phonexa also has some specific formatting for particular fields. If the formatting is incorrect, the lead will be rejected. Data can be sent in the request in any order, but all of the field names are case sensitive and must match examples in the specifications, including capitalization (e.g., cApiTaLiZaTioN).


    Testing: To enable the test mode, add the testMode=1 parameter in the request. You can use the live credentials for testing. When sending leads in the test mode, Phonexa will provide valid responses to help you with the integration set up process. Responses will indicate the status of the lead as well as possible errors. Test leads must contain data similar to real leads, and you can send as many test leads as needed. Make sure you remove the testMode=1 parameter once you are done testing to start sending live leads.


    Ping/Post Method: The Ping/Post method allows lead generators to ping the system with partial lead data first and get a response from the system before submitting the full data. Use the PING + POST strategy to submit a ping first to get a response from the system and then, based on the response, post the full lead data. You can also use the Full Post strategy to post the full lead data in one request. Please note that Phonexa will still process the request as a ping and a post when using the Full Post strategy.


  3. Inbounds_Internal_MVA FIELDS

    Use either PING + POST strategy, or Full Post strategy


    1. PING

      Posting Url:


      https://example.leadprosper.tech/phonexa/ping


      Field Name

      Required

      Description

      Format

      Example


      apiId


      YES

      Your API authentication ID:

      456915D3E3134A67B0F39BE84

      52A24EC (should be unique to each channel)


      Length 1-64


      myusername

      apiPassword

      YES

      Your API authentication password: ef64610fc

      String


      productId

      YES

      Please set this value to 45

      Integer

      45

      have_attorney

      YES

      Are you currently represented by a motor vehicle attorney?

      One of the following: [YES, NO]

      YES

      comments

      NO

      Describe your situation.

      Length 1-1000

      John

      email_address

      NO

      email

      Length 5-100

      [email protected]

      phone_home

      NO

      Phone home.

      Length 10-11

      5416194112

      phone_cell

      NO

      Phone cell.

      Length 10-11

      5416194112

      phone_work

      NO

      Phone work.

      Length 10-11

      5416194112

      phone_ext

      NO

      Phone ext.

      Length 10-11

      5416194112

      zip_code

      YES

      ZIP

      Length 5

      97321

      state

      YES

      State

      String

      OR

      city

      NO

      City

      String

      Albany

      county

      NO

      County

      String

      County

      country

      NO

      Country

      String

      Country

      dob

      NO

      Date of Birth

      Date

      Date of Birth

      type_of_legal_problem

      NO

      Type Of Legal Problem

      String

      Type Of Legal Problem

      owns_real_estate

      NO

      Owns Real Estate

      String

      Owns real Estate

      total_assets_value

      NO

      Total Assets Value

      Number

      Total Assets Value

      monthly_income

      NO

      Monthly Income

      Number

      Monthly Income

      total_debt

      NO

      Total Debt

      Number

      Total Debt

      injury

      YES

      Injury

      String

      Injury

      trusted_form_certid

      NO

      Trusted form cert id

      String

      Trusted form cert id

      injury_type

      NO

      Injury Type

      String

      Injury Type

      gender

      NO

      Gender

      String

      Gender

      trustedform_url

      NO

      Trustedform Url

      String

      Trustedform Url

      fault

      NO

      Fault

      String

      Fault

      attorney

      NO

      Attorney

      String

      Attorney

      doctor_treatment

      NO

      Doctor Treatment

      String

      Doctor Treatment

      incident_date

      NO

      Incident Date

      YYYY-MM-DD

      2020-01-01

      ip_address

      YES

      IP of the customer.


      10.128.15.203


      user_agent


      NO


      User's web-browser Agent


      Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64;

      Trident/6.0)


      Field Name

      Required

      Description

      Format

      Example

      tcpa

      NO

      Telephone Consumer Protection Act Text

      Length 1-2000

      agreement text

      universal_leadid

      NO

      Jornaya Lead ID

      Length 1-64

      12345678-1234-1234-1234-

      123456789012

      trustedform_url

      NO

      Trusted Form URL

      Length 1-255

      https://cert.trustedform.com/[Trust ed Form ID]

      address

      NO

      Address

      Length 1-255

      my address

      address2

      NO

      Address

      Length 1-255

      my address

      emailHash

      NO

      email Hash

      Length 32

      12c90344ae847fe2d6b864373dd b1119

      phoneHash

      NO

      phone Hash

      Length 32

      9c985fe8dda5f256149c5b365564 48b0

      language

      NO

      Language: (EN) English, (SP) Spanish

      One of the following: [EN, SP]

      EN


    2. POST

      Posting Url:


      https://example.leadprosper.tech/phonexa/post


      Field Name

      Required

      Description

      Format

      Example

      promise

      YES

      The "Promise Code" received from ping

      Length 6-10

      W_YJX3Z


      apiId


      YES

      Your API authentication ID:

      456915D3E3134A67B0F39BE84

      52A24EC (should be unique to each channel)


      Length 1-64


      myusername

      apiPassword

      YES

      Your API authentication password: ef64610fc

      String



      testMode


      NO

      1 to enable test mode. DO NOT send this parameter at all when sending live leads.


      Integer


      1

      productId

      YES

      Please set this value to 45

      Integer

      45

      have_attorney

      YES

      Are you currently represented by a motor vehicle attorney?

      One of the following: [YES, NO]

      YES

      comments

      NO

      Describe your situation.

      Length 1-1000

      John

      first_name

      NO

      First name of the customer.

      Length 1-64

      John

      last_name

      NO

      Last name of the customer.

      Length 1-64

      Smith

      email_address

      NO

      email

      Length 5-100

      [email protected]

      phone_home

      NO

      Phone home.

      Length 10-11

      5416194112

      phone_cell

      NO

      Phone cell.

      Length 10-11

      5416194112

      phone_work

      NO

      Phone work.

      Length 10-11

      5416194112

      phone_ext

      NO

      Phone ext.

      Length 10-11

      5416194112

      zip_code

      YES

      ZIP

      Length 5

      97321

      state

      YES

      State

      String

      OR

      city

      NO

      City

      String

      Albany

      county

      NO

      County

      String

      County

      country

      NO

      Country

      String

      Country

      dob

      NO

      Date of Birth

      Date

      Date of Birth

      type_of_legal_problem

      NO

      Type Of Legal Problem

      String

      Type Of Legal Problem

      owns_real_estate

      NO

      Owns Real Estate

      String

      Owns Real Estat

      total_assets_value

      NO

      Total Assets Value

      Number

      Total Assets Value

      monthly_income

      NO

      Monthly Income

      Number

      Monthly Income

      total_debt

      NO

      Total Debt

      Number

      Total Debt

      injury

      YES

      Injury

      String

      Injury

      trusted_form_certid

      NO

      Trusted form cert id

      String

      Trusted form cert id

      injury_type

      NO

      Injury Type

      String

      Injury Type

      gender

      NO

      Gender

      String

      Gender

      trustedform_url

      NO

      Trustedform Url

      String

      Trustedform Url

      fault

      NO

      Fault

      String

      Fault

      attorney

      NO

      Attorney

      String

      Attorney

      doctor_treatment

      NO

      doctor_treatment

      String

      doctor_treatment

      incident_date

      NO

      Incident Date

      YYYY-MM-DD

      2020-01-01

      landing_url

      NO

      Website URL


      http://www.mysite.com

      ip_address

      YES

      IP of the customer.


      10.128.15.203


      user_agent


      NO


      User's web-browser Agent


      Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64;

      Trident/6.0)

      tcpa

      NO

      Telephone Consumer Protection Act Text

      Length 1-2000

      agreement text


      Field Name

      Required

      Description

      Format

      Example

      universal_leadid

      NO

      Jornaya Lead ID

      Length 1-64

      12345678-1234-1234-1234-

      123456789012

      trustedform_url

      NO

      Trusted Form URL

      Length 1-255

      https://cert.trustedform.com/[Trust ed Form ID]

      address

      NO

      Address

      Length 1-255

      my address

      address2

      NO

      Address

      Length 1-255

      my address

      emailHash

      NO

      email Hash

      Length 32

      12c90344ae847fe2d6b864373dd b1119

      phoneHash

      NO

      phone Hash

      Length 32

      9c985fe8dda5f256149c5b365564 48b0

      language

      NO

      Language: (EN) English, (SP) Spanish

      One of the following: [EN, SP]

      EN


      clickid


      NO

      The data from this field is not stored anywhere in our system. It will only be used to pass as an additional parameter in buyer integrations and pixel tracking.

      This parameter can be seen in lead details and can be used for outbound API posting or to Fire a Pixel.


      String


      XXX871CF-333E-4B97-A1A3-3C921A61EXXX


      tPar


      NO

      URLTrack parameters are used to track information about the lead. By adding these parameters to your posts/forms and campaigns, you can learn if people who clicked on your post/form came from mobile devices, where they were located when they clicked your ads, and much more.

      This parameter will be used only for transaction purposes for outbound API posting or to Fire a Pixel.


      Array


      tPar[affiliateId]=123&tPar[affiliate SubId]=123_444&tPar[transaction Id]=123456&tPar[offerId]=offer-2234


      landing_url


      NO

      Option to post either website name or affiliate source (subID). Website name needs to be in the format specified in the example. SubID can be any alphanumeric symbol, in any format. This field should not be unique.

      This parameter can be seen in lead details and can be used for outbound API posting or to Fire a Pixel.


      String


      http://webiste.xxx


    3. Full Post

      Posting Url:


      https://example.leadprosper.tech/phonexa/fullpost


      Field Name

      Required

      Description

      Format

      Example


      apiId


      YES

      Your API authentication ID:

      456915D3E3134A67B0F39BE84

      52A24EC (should be unique to each channel)


      Length 1-64


      myusername

      apiPassword

      YES

      Your API authentication password: ef64610fc

      String



      testMode


      NO

      1 to enable test mode. DO NOT send this parameter at all when sending live leads.


      Integer


      1

      productId

      YES

      Please set this value to 45

      Integer

      45


      Field Name

      Required

      Description

      Format

      Example


      price


      YES

      The minimum price the lead should be sold for. Leave blank or 0 for any price.


      Decimal


      15

      have_attorney

      YES

      Are you currently represented by a motor vehicle attorney?

      One of the following: [YES, NO]

      YES

      comments

      NO

      Describe your situation.

      Length 1-1000

      John

      first_name

      NO

      First name of the customer.

      Length 1-64

      John

      last_name

      NO

      Last name of the customer.

      Length 1-64

      Smith

      email_address

      NO

      email

      Length 5-100

      [email protected]

      phone_home

      NO

      Phone home.

      Length 10-11

      5416194112

      phone_cell

      NO

      Phone cell.

      Length 10-11

      5416194112

      phone_work

      NO

      Phone work.

      Length 10-11

      5416194112

      phone_ext

      NO

      Phone ext.

      Length 10-11

      5416194112

      zip_code

      YES

      ZIP

      Length 5

      97321

      state

      YES

      State

      String

      OR

      city

      NO

      City

      String

      Albany

      county

      NO

      County

      String

      County

      country

      NO

      Country

      String

      Country

      dob

      NO

      Date of Birth

      Date

      Date of Birth

      type_of_legal_problem

      NO

      Type Of Legal Problem

      String

      Type Of Legal Problem

      owns_real_estate

      NO

      Owns Real Estate

      String

      Owns Real Estate

      total_assets_value

      NO

      Total Assets Value

      Number

      Total Assets Value

      monthly_income

      NO

      Monthly Income

      Number

      Monthly Income

      total_debt

      NO

      Total Debt

      Number

      Total Debt

      injury

      YES

      Injury

      String

      Injury

      trusted_form_certid

      NO

      Trusted form cert id

      String

      Trusted form cert id

      injury_type

      NO

      Injury Type

      String

      Injury Type

      gender

      NO

      Gender

      String

      Gender

      trustedform_url

      NO

      Trustedform Url

      String

      Trustedform Url

      trustedform_url

      NO

      Trustedform Url

      String

      Trustedform Url

      fault

      NO

      Fault

      String

      Fault

      attorney

      NO

      Attorney

      String

      Attorney

      doctor_treatment

      NO

      doctor_treatment

      String

      doctor_treatment

      incident_date

      NO

      Incident Date

      YYYY-MM-DD

      2020-01-01

      landing_url

      NO

      Website URL


      http://www.mysite.com

      ip_address

      YES

      IP of the customer.


      10.128.15.203


      user_agent


      NO


      User's web-browser Agent


      Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64;

      Trident/6.0)

      tcpa

      NO

      Telephone Consumer Protection Act Text

      Length 1-2000

      agreement text

      universal_leadid

      NO

      Jornaya Lead ID

      Length 1-64

      12345678-1234-1234-1234-

      123456789012

      trustedform_url

      NO

      Trusted Form URL

      Length 1-255

      https://cert.trustedform.com/[Trust ed Form ID]

      address

      NO

      Address

      Length 1-255

      my address

      address2

      NO

      Address

      Length 1-255

      my address

      emailHash

      NO

      email Hash

      Length 32

      12c90344ae847fe2d6b864373dd b1119

      phoneHash

      NO

      phone Hash

      Length 32

      9c985fe8dda5f256149c5b365564 48b0

      language

      NO

      Language: (EN) English, (SP) Spanish

      One of the following: [EN, SP]

      EN


      clickid


      NO

      The data from this field is not stored anywhere in our system. It will only be used to pass as an additional parameter in buyer integrations and pixel tracking.

      This parameter can be seen in lead details and can be used for outbound API posting or to Fire a Pixel.


      String


      XXX871CF-333E-4B97-A1A3-3C921A61EXXX


      Field Name

      Required

      Description

      Format

      Example


      tPar


      NO

      URLTrack parameters are used to track information about the lead. By adding these parameters to your posts/forms and campaigns, you can learn if people who clicked on your post/form came from mobile devices, where they were located when they clicked your ads, and much more.

      This parameter will be used only for transaction purposes for outbound API posting or to Fire a Pixel.


      Array


      tPar[affiliateId]=123&tPar[affiliate SubId]=123_444&tPar[transaction Id]=123456&tPar[offerId]=offer-2234


      landing_url


      NO

      Option to post either website name or affiliate source (subID). Website name needs to be in the format specified in the example. SubID can be any alphanumeric symbol, in any format. This field should not be unique.

      This parameter can be seen in lead details and can be used for outbound API posting or to Fire a Pixel.


      String


      http://webiste.xxx


  4. Sample Code

    Use either PING + POST strategy, or Full Post strategy


    1. PING


      PHP FORM


      <?php

      $mapped = array();

      $mapped['apiId'] = '456915D3E3134A67B0F39BE8452A24EC';

      $mapped['apiPassword'] = 'ef64610fc';

      $mapped['productId'] = '45';

      $mapped['have_attorney'] = 'YES';

      $mapped['comments'] = 'John';

      $mapped['email_address'] = '[email protected]';

      $mapped['phone_home'] = '5416194112';

      $mapped['phone_cell'] = '5416194112';

      $mapped['phone_work'] = '5416194112';

      $mapped['phone_ext'] = '5416194112';

      $mapped['zip_code'] = '97321';

      $mapped['state'] = 'OR';

      $mapped['city'] = 'Albany';

      $mapped['county'] = 'County';

      $mapped['country'] = 'Country';

      $mapped['dob'] = 'Date of Birth';

      $mapped['type_of_legal_problem'] = 'Type Of Legal Problem';

      $mapped['owns_real_estate'] = 'Owns Real Estate';

      $mapped['total_assets_value'] = 'Total Assets Value';

      $mapped['monthly_income'] = 'Monthly Income';

      $mapped['total_debt'] = 'Total Debt';

      $mapped['injury'] = 'Injury';

      $mapped['trusted_form_certid'] = 'Trusted form cert id';

      $mapped['injury_type'] = 'Injury Type';

      $mapped['gender'] = 'Gender';

      $mapped['trustedform_url'] = 'Trustedform Url';

      $mapped['fault'] = 'Fault';

      $mapped['attorney'] = 'Attorney';

      $mapped['doctor_treatment'] = 'Doctor Treatment';

      $mapped['incident_date'] = '2020-01-01';

      $mapped['ip_address'] = 'IP will be here';

      $mapped['user_agent'] = 'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)';

      $mapped['tcpa'] = 'agreement text';

      $mapped['universal_leadid'] = '12345678-1234-1234-1234-123456789012';

      $mapped['trustedform_url'] = 'https://cert.trustedform.com/[Trusted Form ID]';

      $mapped['address'] = 'my address';

      $mapped['address2'] = 'my address';

      $mapped['emailHash'] = '12c90344ae847fe2d6b864373ddb1119';

      $mapped['phoneHash'] = '9c985fe8dda5f256149c5b36556448b0';

      $mapped['language'] = 'EN';


      $server_url = "https://example.leadprosper.tech/phonexa/ping";


      $ch = curl_init($server_url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $mapped);

      curl_setopt($ch, CURLOPT_HTTPHEADER, array("Expect:")); curl_setopt($ch, CURLOPT_FAILONERROR, 1);

      curl_setopt($ch, CURLOPT_HEADER, 1);

      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true); curl_setopt($ch, CURLOPT_TIMEOUT, 120); curl_setopt($ch, CURLINFO_HEADER_OUT, true);

      curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); if (curl_errno($ch)) {

      // Error

      } else {

      // Send Success

      $Response = curl_exec($ch); curl_close($ch);

      }

      ?>

      Python FORM

      import requests mapped = {

      'apiId':'456915D3E3134A67B0F39BE8452A24EC',

      'apiPassword':'ef64610fc', 'productId':'45', 'have_attorney':'YES', 'comments':'John', 'email_address':'[email protected]',

      'phone_home':'5416194112',

      'phone_cell':'5416194112',

      'phone_work':'5416194112',

      'phone_ext':'5416194112',

      'zip_code':'97321',

      'state':'OR',

      'city':'Albany',

      'county':'County',

      'country':'Country',

      'dob':'Date of Birth',

      'type_of_legal_problem':'Type Of Legal Problem',

      'owns_real_estate':'Owns Real Estate',

      'total_assets_value':'Total Assets Value',

      'monthly_income':'Monthly Income',

      'total_debt':'Total Debt',

      'injury':'Injury',

      'trusted_form_certid':'Trusted form cert id',

      'injury_type':'Injury Type',

      'gender':'Gender',

      'trustedform_url':'Trustedform Url',

      'fault':'Fault',

      'attorney':'Attorney',

      'doctor_treatment':'Doctor Treatment',

      'incident_date':'2020-01-01',

      'ip_address':'IP will be here',

      'user_agent':'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)', 'tcpa':'agreement text',

      'universal_leadid':'12345678-1234-1234-1234-123456789012',

      'trustedform_url':'https://cert.trustedform.com/[Trusted Form ID]', 'address':'my address', 'address2':'my address', 'emailHash':'12c90344ae847fe2d6b864373ddb1119', 'phoneHash':'9c985fe8dda5f256149c5b36556448b0',

      'language':'EN'

      }

      headers = {'Expect:': '100-continue'}

      server_url = 'https://example.leadprosper.tech/phonexa/ping'


      response = requests.post(server_url, data=mapped, headers=headers, timeout=120, verify=True) if response.ok:

      # status_code is less than 400 response_body = response.text

      ...

      else:

      # error

      ...


      Java FORM


      public void sendLeadByPost() {

      String url = "https://example.leadprosper.tech/phonexa/ping";


      Map formParams = new HashMap() {

      {

      put("apiId", "456915D3E3134A67B0F39BE8452A24EC");

      put("apiPassword", "ef64610fc"); put("productId", "45");

      put("have_attorney", "YES"); put("comments", "John"); put("email_address", "[email protected]"); put("phone_home", "5416194112"); put("phone_cell", "5416194112"); put("phone_work", "5416194112"); put("phone_ext", "5416194112");

      put("zip_code", "97321");

      put("state", "OR");

      put("city", "Albany");

      put("county", "County");

      put("country", "Country");

      put("dob", "Date of Birth");

      put("type_of_legal_problem", "Type Of Legal Problem");

      put("owns_real_estate", "Owns Real Estate");

      put("total_assets_value", "Total Assets Value");

      put("monthly_income", "Monthly Income");

      put("total_debt", "Total Debt");

      put("injury", "Injury");

      put("trusted_form_certid", "Trusted form cert id");

      put("injury_type", "Injury Type");

      put("gender", "Gender");

      put("trustedform_url", "Trustedform Url");

      put("fault", "Fault");

      put("attorney", "Attorney");

      put("doctor_treatment", "Doctor Treatment");

      put("incident_date", "2020-01-01");

      put("ip_address", "IP will be here");

      put("user_agent", "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)"); put("tcpa", "agreement text");

      put("universal_leadid", "12345678-1234-1234-1234-123456789012");

      put("trustedform_url", "https://cert.trustedform.com/[Trusted Form ID]"); put("address", "my address"); put("address2", "my address");

      put("emailHash", "12c90344ae847fe2d6b864373ddb1119"); put("phoneHash", "9c985fe8dda5f256149c5b36556448b0");

      put("language", "EN");

      }

      };

      // use import io.restassured.response.Response; Response response = given()

      .accept(ContentType.JSON)

      .with()

      .params(formParams)

      .when()

      .post(url)

      .then()

      .extract().response();


      System.out.println(response.asString());

      }


      Bash FORM

      curl -X POST \

      https://example.leadprosper.tech/phonexa/ping \

      -H 'accept: application/json' \

      -H 'cache-control: no-cache' \

      -H 'content-type: multipart/form-data' \

      -F apiId=456915D3E3134A67B0F39BE8452A24EC \

      -F apiPassword=ef64610fc \

      -F productId=45 \

      -F have_attorney=YES \

      -F comments=John \

      -F [email protected] \

      -F phone_home=5416194112 \

      -F phone_cell=5416194112 \

      -F phone_work=5416194112 \

      -F phone_ext=5416194112 \

      -F zip_code=97321 \

      -F state=OR \

      -F city=Albany \

      -F county=County \

      -F country=Country \

      -F dob=Date of Birth \

      -F type_of_legal_problem=Type Of Legal Problem \

      -F owns_real_estate=Owns Real Estate \

      -F total_assets_value=Total Assets Value \

      -F monthly_income=Monthly Income \

      -F total_debt=Total Debt \

      -F injury=Injury \

      -F trusted_form_certid=Trusted form cert id \

      -F injury_type=Injury Type \

      -F gender=Gender \

      -F trustedform_url=Trustedform Url \

      -F fault=Fault \

      -F attorney=Attorney \

      -F doctor_treatment=Doctor Treatment \

      -F incident_date=2020-01-01 \

      -F ip_address=IP will be here \

      -F user_agent=Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0) \

      -F tcpa=agreement text \

      -F universal_leadid=12345678-1234-1234-1234-123456789012 \

      -F trustedform_url=https://cert.trustedform.com/[Trusted Form ID] \

      -F address=my address \

      -F address2=my address \

      -F emailHash=12c90344ae847fe2d6b864373ddb1119 \

      -F phoneHash=9c985fe8dda5f256149c5b36556448b0 \

      -F language=EN


      PHP JSON


      <?php

      $mapped = array();

      $mapped['apiId'] = '456915D3E3134A67B0F39BE8452A24EC';

      $mapped['apiPassword'] = 'ef64610fc';

      $mapped['productId'] = '45';

      $mapped['have_attorney'] = 'YES';

      $mapped['comments'] = 'John';

      $mapped['email_address'] = '[email protected]';

      $mapped['phone_home'] = '5416194112';

      $mapped['phone_cell'] = '5416194112';

      $mapped['phone_work'] = '5416194112';

      $mapped['phone_ext'] = '5416194112';

      $mapped['zip_code'] = '97321';

      $mapped['state'] = 'OR';

      $mapped['city'] = 'Albany';

      $mapped['county'] = 'County';

      $mapped['country'] = 'Country';

      $mapped['dob'] = 'Date of Birth';

      $mapped['type_of_legal_problem'] = 'Type Of Legal Problem';

      $mapped['owns_real_estate'] = 'Owns Real Estate';

      $mapped['total_assets_value'] = 'Total Assets Value';

      $mapped['monthly_income'] = 'Monthly Income';

      $mapped['total_debt'] = 'Total Debt';

      $mapped['injury'] = 'Injury';

      $mapped['trusted_form_certid'] = 'Trusted form cert id';

      $mapped['injury_type'] = 'Injury Type';

      $mapped['gender'] = 'Gender';

      $mapped['trustedform_url'] = 'Trustedform Url';

      $mapped['fault'] = 'Fault';

      $mapped['attorney'] = 'Attorney';

      $mapped['doctor_treatment'] = 'Doctor Treatment';

      $mapped['incident_date'] = '2020-01-01';

      $mapped['ip_address'] = 'IP will be here';

      $mapped['user_agent'] = 'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)';

      $mapped['tcpa'] = 'agreement text';

      $mapped['universal_leadid'] = '12345678-1234-1234-1234-123456789012';

      $mapped['trustedform_url'] = 'https://cert.trustedform.com/[Trusted Form ID]';

      $mapped['address'] = 'my address';

      $mapped['address2'] = 'my address';

      $mapped['emailHash'] = '12c90344ae847fe2d6b864373ddb1119';

      $mapped['phoneHash'] = '9c985fe8dda5f256149c5b36556448b0';

      $mapped['language'] = 'EN';


      $server_url = "https://example.leadprosper.tech/phonexa/ping";


      $ch = curl_init($server_url); curl_setopt($ch, CURLOPT_POST, true);

      curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($mapped));

      curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type:application/json")); curl_setopt($ch, CURLOPT_FAILONERROR, 1);

      curl_setopt($ch, CURLOPT_HEADER, 1);

      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true); curl_setopt($ch, CURLOPT_TIMEOUT, 120); curl_setopt($ch, CURLINFO_HEADER_OUT, true);

      curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); if (curl_errno($ch)) {

      // Error

      } else {

      // Send Success

      $Response = curl_exec($ch); curl_close($ch);

      }

      ?>


      Python JSON

      import requests mapped = {

      'apiId':'456915D3E3134A67B0F39BE8452A24EC',

      'apiPassword':'ef64610fc', 'productId':'45', 'have_attorney':'YES', 'comments':'John', 'email_address':'[email protected]',

      'phone_home':'5416194112',

      'phone_cell':'5416194112',

      'phone_work':'5416194112',

      'phone_ext':'5416194112',

      'zip_code':'97321',

      'state':'OR',

      'city':'Albany',

      'county':'County',

      'country':'Country',

      'dob':'Date of Birth',

      'type_of_legal_problem':'Type Of Legal Problem',

      'owns_real_estate':'Owns Real Estate',

      'total_assets_value':'Total Assets Value',

      'monthly_income':'Monthly Income',

      'total_debt':'Total Debt',

      'injury':'Injury',

      'trusted_form_certid':'Trusted form cert id',

      'injury_type':'Injury Type',

      'gender':'Gender',

      'trustedform_url':'Trustedform Url',

      'fault':'Fault',

      'attorney':'Attorney',

      'doctor_treatment':'Doctor Treatment',

      'incident_date':'2020-01-01',

      'ip_address':'IP will be here',

      'user_agent':'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)', 'tcpa':'agreement text',

      'universal_leadid':'12345678-1234-1234-1234-123456789012',

      'trustedform_url':'https://cert.trustedform.com/[Trusted Form ID]', 'address':'my address', 'address2':'my address', 'emailHash':'12c90344ae847fe2d6b864373ddb1119', 'phoneHash':'9c985fe8dda5f256149c5b36556448b0',

      'language':'EN'

      }

      headers = {'Content-Type': 'application/json'}

      server_url = 'https://example.leadprosper.tech/phonexa/ping'


      response = requests.post(server_url, data=mapped, headers=headers, timeout=120, verify=True) if response.ok:

      # status_code is less than 400 response_body = response.text

      ...

      else:

      # error

      ...


      Java JSON


      public void sendLeadByPost() {

      String url = "https://example.leadprosper.tech/phonexa/ping";


      String jsonBody = "{" +

      "\"apiId\":\"456915D3E3134A67B0F39BE8452A24EC\"," +

      "\"apiPassword\":\"ef64610fc\"," + "\"productId\":\"45\"," + "\"have_attorney\":\"YES\"," + "\"comments\":\"John\"," + "\"email_address\":\"[email protected]\"," + "\"phone_home\":\"5416194112\"," + "\"phone_cell\":\"5416194112\"," + "\"phone_work\":\"5416194112\"," + "\"phone_ext\":\"5416194112\"," + "\"zip_code\":\"97321\"," +

      "\"state\":\"OR\"," +

      "\"city\":\"Albany\"," + \"county\":\"County\"," + \"country\":\"Country\"," +

      "\"dob\":\"Date of Birth\"," +

      "\"type_of_legal_problem\":\"Type Of Legal Problem\"," +

      "\"owns_real_estate\":\"Owns Real Estate\"," +

      "\"total_assets_value\":\"Total Assets Value\"," +

      "\"monthly_income\":\"Monthly Income\"," +

      "\"total_debt\":\"Total Debt\"," +

      "\"injury\":\"Injury\"," +

      "\"trusted_form_certid\":\"Trusted form cert id\"," +

      "\"injury_type\":\"Injury Type\"," +

      "\"gender\":\"Gender\"," +

      "\"trustedform_url\":\"Trustedform Url\"," +

      "\"fault\":\"Fault\","+

      "\"attorney\":\"Attorney\","+

      "\"doctor_treatment\":\"Doctor Treatment\","+

      "\"incident_date\":\"2020-01-01\"," +

      "\"ip_address\":\"IP will be here\"," +

      "\"user_agent\":\"Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)\"," + "\"tcpa\":\"agreement text\"," +

      "\"universal_leadid\":\"12345678-1234-1234-1234-123456789012\"," +

      "\"trustedform_url\":\"https://cert.trustedform.com/[Trusted Form ID]\"," + "\"address\":\"my address\"," + "\"address2\":\"my address\"," + "\"emailHash\":\"12c90344ae847fe2d6b864373ddb1119\"," + "\"phoneHash\":\"9c985fe8dda5f256149c5b36556448b0\"," +

      "\"language\":\"EN\"," +

      "}";

      // use import io.restassured.response.Response; Response response = given()

      .contentType(ContentType.JSON)

      .accept(ContentType.JSON)

      .with()

      .body(jsonBody)

      .when()

      .post(url)

      .then()

      .extract().response();


      System.out.println(response.asString());

      }


      Bash JSON


      curl -X POST \

      https://example.leadprosper.tech/phonexa/ping \

      -H 'accept: application/json' \

      -H 'cache-control: no-cache' \

      -H 'content-type: application/json' \

      --data '{"apiId":"456915D3E3134A67B0F39BE8452A24EC","apiPassword":"ef64610fc","productId":"45","have_attorney":"YES","comments":"J


    2. POST

      PHP FORM

      <?php

      $mapped = array();

      $mapped['promise'] = 'W_YJX3Z';

      $mapped['apiId'] = '456915D3E3134A67B0F39BE8452A24EC';

      $mapped['apiPassword'] = 'ef64610fc';

      $mapped['testMode'] = '1';

      $mapped['productId'] = '45';

      $mapped['have_attorney'] = 'YES';

      $mapped['comments'] = 'John';

      $mapped['first_name'] = 'John';

      $mapped['last_name'] = 'Smith';

      $mapped['email_address'] = '[email protected]';

      $mapped['phone_home'] = '5416194112';

      $mapped['phone_cell'] = '5416194112';

      $mapped['phone_work'] = '5416194112';

      $mapped['phone_ext'] = '5416194112';

      $mapped['zip_code'] = '97321';

      $mapped['state'] = 'OR';

      $mapped['city'] = 'Albany';

      $mapped['county'] = 'County';

      $mapped['country'] = 'Country';

      $mapped['dob'] = 'Date of Birth';

      $mapped['type_of_legal_problem'] = 'Type Of Legal Problem';

      $mapped['owns_real_estate'] = 'Owns Real Estate';

      $mapped['total_assets_value'] = 'Total Assets Value';

      $mapped['monthly_income'] = 'Monthly Income';

      $mapped['total_debt'] = 'Total Debt';

      $mapped['interestScale'] = 'SCALE3';

      $mapped['injury'] = 'Injury';

      $mapped['trusted_form_certid'] = 'Trusted form cert id';

      $mapped['injury_type'] = 'Injury Type';

      $mapped['gender'] = 'Gender';

      $mapped['trustedform_url'] = 'Trustedform Url';

      $mapped['fault'] = 'Fault';

      $mapped['attorney'] = 'Attorney';

      $mapped['doctor_treatment'] = 'Doctor Treatment';

      $mapped['incident_date'] = '2020-01-01';

      $mapped['landing_url'] = 'http://www.mysite.com';

      $mapped['ip_address'] = 'IP will be here';

      $mapped['user_agent'] = 'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)';

      $mapped['tcpa'] = 'agreement text';

      $mapped['universal_leadid'] = '12345678-1234-1234-1234-123456789012';

      $mapped['trustedform_url'] = 'https://cert.trustedform.com/[Trusted Form ID]';

      $mapped['address'] = 'my address';

      $mapped['address2'] = 'my address';

      $mapped['emailHash'] = '12c90344ae847fe2d6b864373ddb1119';

      $mapped['phoneHash'] = '9c985fe8dda5f256149c5b36556448b0';

      $mapped['language'] = 'EN';

      $mapped['clickid'] = 'XXX871CF-333E-4B97-A1A3-3C921A61EXXX';

      $mapped['tPar'] = 'tPar[affiliateId]=123&tPar[affiliateSubId]=123_444&tPar[transactionId]=123456&tPar[offerId]=offer-2234';

      $mapped['landing_url'] = 'http://webiste.xxx';


      $server_url = "https://example.leadprosper.tech/phonexa/post";


      $ch = curl_init($server_url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $mapped);

      curl_setopt($ch, CURLOPT_HTTPHEADER, array("Expect:")); curl_setopt($ch, CURLOPT_FAILONERROR, 1);

      curl_setopt($ch, CURLOPT_HEADER, 1);

      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true); curl_setopt($ch, CURLOPT_TIMEOUT, 120); curl_setopt($ch, CURLINFO_HEADER_OUT, true);

      curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); if (curl_errno($ch)) {

      // Error

      } else {

      // Send Success

      $Response = curl_exec($ch); curl_close($ch);

      }

      ?>


      Python FORM

      import requests mapped = {

      'promise':'W_YJX3Z', 'apiId':'456915D3E3134A67B0F39BE8452A24EC',

      'apiPassword':'ef64610fc', 'testMode':'1',

      'productId':'45', 'have_attorney':'YES', 'comments':'John', 'first_name':'John',

      'last_name':'Smith', 'email_address':'[email protected]',

      'phone_home':'5416194112',

      'phone_cell':'5416194112',

      'phone_work':'5416194112',

      'phone_ext':'5416194112',

      'zip_code':'97321',

      'state':'OR',

      'city':'Albany', 'county':'County', 'country':'Country',

      'dob':'Date of Birth',

      'type_of_legal_problem':'Type Of Legal Problem',

      'owns_real_estate':'Owns Real Estate',

      'total_assets_value':'Total Assets Value',

      'monthly_income':'Monthly Income',

      'total_debt':'Total Debt',

      'injury':'Injury',

      'trusted_form_certid':'Trusted form cert id',

      'injury_type':'Injury Type',

      'gender':'Gender',

      'trustedform_url':'Trustedform Url',

      'fault':'Fault',

      'attorney':'Attorney',

      'doctor_treatment':'Doctor Treatment',

      'incident_date':'2020-01-01',

      'landing_url':'http://www.mysite.com', 'ip_address':'IP will be here',

      'user_agent':'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)',

      'tcpa':'agreement text',

      'universal_leadid':'12345678-1234-1234-1234-123456789012',

      'trustedform_url':'https://cert.trustedform.com/[Trusted Form ID]',

      'address':'my address', 'address2':'my address', 'emailHash':'12c90344ae847fe2d6b864373ddb1119', 'phoneHash':'9c985fe8dda5f256149c5b36556448b0',

      'language':'EN',

      'clickid':'XXX871CF-333E-4B97-A1A3-3C921A61EXXX',

      'tPar':'tPar[affiliateId]=123&tPar[affiliateSubId]=123_444&tPar[transactionId]=123456&tPar[offerId]=offer-2234', 'landing_url':'http://webiste.xxx'

      }

      headers = {'Expect:': '100-continue'}

      server_url = 'https://example.leadprosper.tech/phonexa/post'


      response = requests.post(server_url, data=mapped, headers=headers, timeout=120, verify=True) if response.ok:

      # status_code is less than 400 response_body = response.text

      ...

      else:

      # error

      ...


      Java FORM


      public void sendLeadByPost() {

      String url = "https://example.leadprosper.tech/phonexa/post";


      Map formParams = new HashMap() {

      {

      put("promise", "W_YJX3Z");

      put("apiId", "456915D3E3134A67B0F39BE8452A24EC");

      put("apiPassword", "ef64610fc"); put("testMode", "1");

      put("productId", "45");

      put("have_attorney", "YES"); put("comments", "John"); put("first_name", "John");

      put("last_name", "Smith"); put("email_address", "[email protected]"); put("phone_home", "5416194112"); put("phone_cell", "5416194112"); put("phone_work", "5416194112"); put("phone_ext", "5416194112");

      put("zip_code", "97321");

      put("state", "OR");

      put("city", "Albany"); put("county", "County"); put("country", "Country");

      put("dob", "Date of Birth");

      put("type_of_legal_problem", "Type Of Legal Problem");

      put("owns_real_estate", "Owns Real Estate");

      put("total_assets_value", "Total Assets Value");

      put("monthly_income", "Monthly Income");

      put("total_debt", "Total Debt");

      put("injury", "Injury");

      put("trusted_form_certid", "Trusted form cert id");

      put("injury_type", "Injury Type");

      put("gender", "Gender");

      put("trustedform_url", "Trustedform Url");

      put("fault", "Fault");

      put("attorney", "Attorney");

      put("doctor_treatment", "Doctor Treatment");

      put("incident_date", "2020-01-01");

      put("landing_url", "http://www.mysite.com"); put("ip_address", "IP will be here");

      put("user_agent", "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)");

      put("tcpa", "agreement text");

      put("universal_leadid", "12345678-1234-1234-1234-123456789012");

      put("trustedform_url", "https://cert.trustedform.com/[Trusted Form ID]"); put("address", "my address"); put("address2", "my address");

      put("emailHash", "12c90344ae847fe2d6b864373ddb1119"); put("phoneHash", "9c985fe8dda5f256149c5b36556448b0");

      put("language", "EN");

      put("clickid", "XXX871CF-333E-4B97-A1A3-3C921A61EXXX");

      put("tPar", "tPar[affiliateId]=123&tPar[affiliateSubId]=123_444&tPar[transactionId]=123456&tPar[offerId]=offer-2234"); put("landing_url", "http://webiste.xxx");

      }

      };

      // use import io.restassured.response.Response; Response response = given()

      .accept(ContentType.JSON)

      .with()

      .params(formParams)

      .when()

      .post(url)

      .then()

      .extract().response();


      System.out.println(response.asString());

      }


      Bash FORM


      curl -X POST \

      https://example.leadprosper.tech/phonexa/post \

      -H 'accept: application/json' \

      -H 'cache-control: no-cache' \

      -H 'content-type: multipart/form-data' \

      -F promise=W_YJX3Z \

      -F apiId=456915D3E3134A67B0F39BE8452A24EC \

      -F apiPassword=ef64610fc \

      -F testMode=1 \

      -F productId=45 \

      -F have_attorney=YES \

      -F comments=John \

      -F first_name=John \

      -F last_name=Smith \

      -F [email protected] \

      -F phone_home=5416194112 \

      -F phone_cell=5416194112 \

      -F phone_work=5416194112 \

      -F phone_ext=5416194112 \

      -F zip_code=97321 \

      -F state=OR \

      -F city=Albany \

      -F county=County \

      -F country=Country \

      -F dob=Date of Birth \

      -F type_of_legal_problem=Type Of Legal Problem \

      -F owns_real_estate=Owns Real Estate \

      -F total_assets_value=Total Assets Value \

      -F monthly_income=Monthly Income \

      -F total_debt=Total Debt \

      -F interestScale=SCALE3 \

      -F injury=Injury \

      -F trusted_form_certid=Trusted form cert id \

      -F injury_type=Injury Type \

      -F gender=Gender \

      -F trustedform_url=Trustedform Url \

      -F fault=Fault \

      -F attorney=Attorney \

      -F doctor_treatment=Doctor Treatment \

      -F incident_date=2020-01-01 \

      -F landing_url=http://www.mysite.com \

      -F ip_address=IP will be here \

      -F user_agent=Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0) \

      -F tcpa=agreement text \

      -F universal_leadid=12345678-1234-1234-1234-123456789012 \

      -F trustedform_url=https://cert.trustedform.com/[Trusted Form ID] \

      -F address=my address \

      -F address2=my address \

      -F emailHash=12c90344ae847fe2d6b864373ddb1119 \

      -F phoneHash=9c985fe8dda5f256149c5b36556448b0 \

      -F language=EN \

      -F clickid=XXX871CF-333E-4B97-A1A3-3C921A61EXXX \

      -F tPar=tPar[affiliateId]=123&tPar[affiliateSubId]=123_444&tPar[transactionId]=123456&tPar[offerId]=offer-2234 \

      -F landing_url=http://webiste.xxx


      PHP JSON


      <?php

      $mapped = array();

      $mapped['promise'] = 'W_YJX3Z';

      $mapped['apiId'] = '456915D3E3134A67B0F39BE8452A24EC';

      $mapped['apiPassword'] = 'ef64610fc';

      $mapped['testMode'] = '1';

      $mapped['productId'] = '45';

      $mapped['have_attorney'] = 'YES';

      $mapped['comments'] = 'John';

      $mapped['first_name'] = 'John';

      $mapped['last_name'] = 'Smith';

      $mapped['email_address'] = '[email protected]';

      $mapped['phone_home'] = '5416194112';

      $mapped['phone_cell'] = '5416194112';

      $mapped['phone_work'] = '5416194112';

      $mapped['phone_ext'] = '5416194112';

      $mapped['zip_code'] = '97321';

      $mapped['state'] = 'OR';

      $mapped['city'] = 'Albany';

      $mapped['county'] = 'County';

      $mapped['country'] = 'Country';

      $mapped['dob'] = 'Date of Birth';

      $mapped['type_of_legal_problem'] = 'Type Of Legal Problem';

      $mapped['owns_real_estate'] = 'Owns Real Estate';

      $mapped['interestScale'] = 'SCALE3';

      $mapped['injury'] = 'Injury';

      $mapped['trusted_form_certid'] = 'Trusted form cert id';

      $mapped['injury_type'] = 'Injury Type';

      $mapped['gender'] = 'Gender';

      $mapped['trustedform_url'] = 'Trustedform Url';

      $mapped['fault'] = 'Fault';

      $mapped['attorney'] = 'Attorney';

      $mapped['doctor_treatment'] = 'Doctor Treatment';

      $mapped['incident_date'] = '2020-01-01';

      $mapped['landing_url'] = 'http://www.mysite.com';

      $mapped['ip_address'] = 'IP will be here';

      $mapped['user_agent'] = 'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)';

      $mapped['tcpa'] = 'agreement text';

      $mapped['universal_leadid'] = '12345678-1234-1234-1234-123456789012';

      $mapped['trustedform_url'] = 'https://cert.trustedform.com/[Trusted Form ID]';

      $mapped['address'] = 'my address';

      $mapped['address2'] = 'my address';

      $mapped['emailHash'] = '12c90344ae847fe2d6b864373ddb1119';

      $mapped['phoneHash'] = '9c985fe8dda5f256149c5b36556448b0';

      $mapped['language'] = 'EN';

      $mapped['clickid'] = 'XXX871CF-333E-4B97-A1A3-3C921A61EXXX';

      $mapped['tPar'] = 'tPar[affiliateId]=123&tPar[affiliateSubId]=123_444&tPar[transactionId]=123456&tPar[offerId]=offer-2234';

      $mapped['landing_url'] = 'http://webiste.xxx';


      $server_url = "https://example.leadprosper.tech/phonexa/post";


      $ch = curl_init($server_url); curl_setopt($ch, CURLOPT_POST, true);

      curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($mapped));

      curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type:application/json")); curl_setopt($ch, CURLOPT_FAILONERROR, 1);

      curl_setopt($ch, CURLOPT_HEADER, 1);

      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true); curl_setopt($ch, CURLOPT_TIMEOUT, 120); curl_setopt($ch, CURLINFO_HEADER_OUT, true);

      curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); if (curl_errno($ch)) {

      // Error

      } else {

      // Send Success

      $Response = curl_exec($ch); curl_close($ch);

      }

      ?>


      Python JSON

      import requests mapped = {

      'promise':'W_YJX3Z', 'apiId':'456915D3E3134A67B0F39BE8452A24EC',

      'apiPassword':'ef64610fc', 'testMode':'1',

      'productId':'45', 'have_attorney':'YES', 'comments':'John', 'first_name':'John',

      'last_name':'Smith', 'email_address':'[email protected]',

      'phone_home':'5416194112',

      'phone_cell':'5416194112',

      'phone_work':'5416194112',

      'phone_ext':'5416194112',

      'zip_code':'97321',

      'state':'OR',

      'city':'Albany',

      'county':'County',

      'country':'Country',

      'dob':'Date of Birth',

      'type_of_legal_problem':'Type Of Legal Problem',

      'owns_real_estate':'Owns Real Estate',

      'total_assets_value':'Total Assets Value',

      'monthly_income':'Monthly Income',

      'total_debt':'Total Debt',

      'injury':'Injury',

      'trusted_form_certid':'Trusted form cert id',

      'injury_type':'Injury Type',

      'gender':'Gender',

      'trustedform_url':'Trustedform Url',

      'fault':'Fault',

      'attorney':'Attorney',

      'doctor_treatment':'Doctor Treatment',

      'incident_date':'2020-01-01',

      'landing_url':'http://www.mysite.com', 'ip_address':'IP will be here',

      'tcpa':'agreement text',

      'universal_leadid':'12345678-1234-1234-1234-123456789012',

      'trustedform_url':'https://cert.trustedform.com/[Trusted Form ID]', 'address':'my address', 'address2':'my address', 'emailHash':'12c90344ae847fe2d6b864373ddb1119', 'phoneHash':'9c985fe8dda5f256149c5b36556448b0',

      'language':'EN',

      'clickid':'XXX871CF-333E-4B97-A1A3-3C921A61EXXX',

      'tPar':'tPar[affiliateId]=123&tPar[affiliateSubId]=123_444&tPar[transactionId]=123456&tPar[offerId]=offer-2234', 'landing_url':'http://webiste.xxx'

      }

      headers = {'Content-Type': 'application/json'}

      server_url = 'https://example.leadprosper.tech/phonexa/post'


      response = requests.post(server_url, data=mapped, headers=headers, timeout=120, verify=True) if response.ok:

      # status_code is less than 400 response_body = response.text

      ...

      else:

      # error

      ...


      Java JSON


      public void sendLeadByPost() {

      String url = "https://example.leadprosper.tech/phonexa/post";


      String jsonBody = "{" +

      "\"promise\":\"W_YJX3Z\"," + "\"apiId\":\"456915D3E3134A67B0F39BE8452A24EC\"," +

      "\"apiPassword\":\"ef64610fc\"," + "\"testMode\":\"1\"," +

      "\"productId\":\"45\"," + "\"have_attorney\":\"YES\"," + "\"comments\":\"John\"," +

      "\"first_name\":\"John\"," +

      "\"last_name\":\"Smith\"," + "\"email_address\":\"[email protected]\"," +

      "\"phone_home\":\"5416194112\"," + "\"phone_cell\":\"5416194112\"," + "\"phone_work\":\"5416194112\"," + "\"phone_ext\":\"5416194112\"," + "\"zip_code\":\"97321\"," +

      "\"state\":\"OR\"," +

      "\"city\":\"Albany\"," + "\"county\":\"County\"," + "\"country\":\"Country\"," +

      "\"dob\":\"Date of Birth\"," +

      "\"type_of_legal_problem\":\"Type Of Legal Problem\"," +

      "\"owns_real_estate\":\"Owns Real Estate\"," +

      "\"total_assets_value\":\"Total Assets Value\"," +

      "\"monthly_income\":\"Monthly Income\"," +

      "\"total_debt\":\"Total Debt\"," +

      "\"injury\":\"Injury\"," +

      "\"trusted_form_certid\":\"Trusted form cert id\"," +

      "\"injury_type\":\"Injury Type\"," +

      "\"gender\":\"Gender\"," +

      "\"trustedform_url\":\"Trustedform Url\"," +

      "\"fault\":\"Fault\"," +

      "\"attorney\":\"Attorney\"," +

      "\"doctor_treatment\":\"Doctor Treatment\"," +

      "\"incident_date\":\"2020-01-01\"," +

      "\"landing_url\":\"http://www.mysite.com\"," + "\"ip_address\":\"IP will be here\"," +

      "\"user_agent\":\"Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)\"," +

      "\"tcpa\":\"agreement text\"," + "\"universal_leadid\":\"12345678-1234-1234-1234-123456789012\"," +

      "\"trustedform_url\":\"https://cert.trustedform.com/[Trusted Form ID]\"," + "\"address\":\"my address\"," + "\"address2\":\"my address\"," + "\"emailHash\":\"12c90344ae847fe2d6b864373ddb1119\"," + "\"phoneHash\":\"9c985fe8dda5f256149c5b36556448b0\","+


      "}";

      "\"language\":\"EN\"," +

      "\"clickid\":\"XXX871CF-333E-4B97-A1A3-3C921A61EXXX\"," +

      "\"tPar\":\"tPar[affiliateId]=123&tPar[affiliateSubId]=123_444&tPar[transactionId]=123456&tPar[offerId]=offer-2234\"," + "\"landing_url\":\"http://webiste.xxx\"," +

      // use import io.restassured.response.Response; Response response = given()

      .contentType(ContentType.JSON)

      .accept(ContentType.JSON)

      .with()

      .body(jsonBody)

      .when()

      .post(url)

      .then()

      .extract().response();


      System.out.println(response.asString());

      }


      Bash JSON


      curl -X POST \

      https://example.leadprosper.tech/phonexa/post \

      -H 'accept: application/json' \

      -H 'cache-control: no-cache' \

      -H 'content-type: application/json' \

      --data '{"promise":"W_YJX3Z","apiId":"456915D3E3134A67B0F39BE8452A24EC","apiPassword":"ef64610fc","testMode":"1","productId":"45","hasA


    3. Full Post


      PHP FORM


      <?php

      $mapped = array();

      $mapped['apiId'] = '456915D3E3134A67B0F39BE8452A24EC';

      $mapped['apiPassword'] = 'ef64610fc';

      $mapped['testMode'] = '1';

      $mapped['productId'] = '45';

      $mapped['price'] = '15';

      $mapped['have_attorney'] = 'YES';

      $mapped['comments'] = 'John';

      $mapped['first_name'] = 'John';

      $mapped['last_name'] = 'Smith';

      $mapped['email_address'] = '[email protected]';

      $mapped['phone_home'] = '5416194112';

      $mapped['phone_cell'] = '5416194112';

      $mapped['phone_work'] = '5416194112';

      $mapped['phone_ext'] = '5416194112';

      $mapped['zip_code'] = '97321';

      $mapped['state'] = 'OR';

      $mapped['city'] = 'Albany';

      $mapped['county'] = 'County';

      $mapped['country'] = 'Country';

      $mapped['dob'] = 'Date of Birth';

      $mapped['type_of_legal_problem'] = 'Type Of Legal Problem';

      $mapped['owns_real_estate'] = 'Owns Real Estate';

      $mapped['total_assets_value'] = 'Total Assets Value';

      $mapped['monthly_income'] = 'Monthly Income';

      $mapped['total_debt'] = 'Total Debt';

      $mapped['interestScale'] = 'SCALE3';

      $mapped['injury'] = 'Injury';

      $mapped['trusted_form_certid'] = 'Trusted form cert id';

      $mapped['injury_type'] = 'Injury Type';

      $mapped['gender'] = 'Gender';

      $mapped['trustedform_url'] = 'Trustedform Url';

      $mapped['fault'] = 'Fault';

      $mapped['attorney'] = 'Attorney';

      $mapped['doctor_treatment'] = 'Doctor Treatment';

      $mapped['incident_date'] = '2020-01-01';

      $mapped['landing_url'] = 'http://www.mysite.com';

      $mapped['ip_address'] = 'IP will be here';

      $mapped['user_agent'] = 'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)';

      $mapped['tcpa'] = 'agreement text';

      $mapped['universal_leadid'] = '12345678-1234-1234-1234-123456789012';

      $mapped['trustedform_url'] = 'https://cert.trustedform.com/[Trusted Form ID]';

      $mapped['address'] = 'my address';

      $mapped['address2'] = 'my address';

      $mapped['emailHash'] = '12c90344ae847fe2d6b864373ddb1119';

      $mapped['phoneHash'] = '9c985fe8dda5f256149c5b36556448b0';

      $mapped['language'] = 'EN';

      $mapped['clickid'] = 'XXX871CF-333E-4B97-A1A3-3C921A61EXXX';

      $mapped['tPar'] = 'tPar[affiliateId]=123&tPar[affiliateSubId]=123_444&tPar[transactionId]=123456&tPar[offerId]=offer-2234';

      $mapped['landing_url'] = 'http://webiste.xxx';


      $server_url = "https://example.leadprosper.tech/phonexa/fullpost;


      $ch = curl_init($server_url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $mapped);

      curl_setopt($ch, CURLOPT_HTTPHEADER, array("Expect:")); curl_setopt($ch, CURLOPT_FAILONERROR, 1);

      curl_setopt($ch, CURLOPT_HEADER, 1);

      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true); curl_setopt($ch, CURLOPT_TIMEOUT, 120); curl_setopt($ch, CURLINFO_HEADER_OUT, true);

      curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); if (curl_errno($ch)) {

      // Error

      } else {

      // Send Success

      $Response = curl_exec($ch); curl_close($ch);

      }

      ?>


      Python FORM

      import requests mapped = {

      'apiId':'456915D3E3134A67B0F39BE8452A24EC',

      'apiPassword':'ef64610fc', 'testMode':'1',

      'productId':'45',

      'price':'15', 'have_attorney':'YES', 'comments':'John', 'first_name':'John',

      'last_name':'Smith', 'email_address':'[email protected]',

      'phone_home':'5416194112',

      'phone_cell':'5416194112',

      'phone_work':'5416194112',

      'phone_ext':'5416194112',

      'zip_code':'97321',

      'state':'OR',

      'city':'Albany',

      'county':'County',

      'country':'Country',

      'dob':'Date of Birth',

      'type_of_legal_problem':'Type Of Legal Problem',

      'owns_real_estate':'Owns Real Estate',

      'total_assets_value':'Total Assets Value',

      'monthly_income':'Monthly Income',

      'total_debt':'Total Debt',

      'injury':'Injury',

      'trusted_form_certid':'Trusted form cert id',

      'injury_type':'Injury Type',

      'gender':'Gender',

      'trustedform_url':'Trustedform Url',

      'fault':'Fault',

      'attorney':'Attorney',

      'doctor_treatment':'Doctor Treatment',

      'incident_date':'2020-01-01',

      'landing_url':'http://www.mysite.com', 'ip_address':'IP will be here',

      'user_agent':'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)',

      'tcpa':'agreement text',

      'universal_leadid':'12345678-1234-1234-1234-123456789012',

      'trustedform_url':'https://cert.trustedform.com/[Trusted Form ID]', 'address':'my address', 'address2':'my address', 'emailHash':'12c90344ae847fe2d6b864373ddb1119', 'phoneHash':'9c985fe8dda5f256149c5b36556448b0',

      'language':'EN',

      'clickid':'XXX871CF-333E-4B97-A1A3-3C921A61EXXX',

      'tPar':'tPar[affiliateId]=123&tPar[affiliateSubId]=123_444&tPar[transactionId]=123456&tPar[offerId]=offer-2234', 'landing_url':'http://webiste.xxx'

      }

      headers = {'Expect:': '100-continue'}

      server_url = 'https://example.leadprosper.tech/phonexa/fullpost/'


      response = requests.post(server_url, data=mapped, headers=headers, timeout=120, verify=True) if response.ok:

      # status_code is less than 400 response_body = response.text

      ...

      else:

      # error

      ...


      Java FORM


      public void sendLeadByPost() {

      String url = "https://example.leadprosper.tech/phonexa/fullpost/";


      Map formParams = new HashMap() {

      {

      put("apiId", "456915D3E3134A67B0F39BE8452A24EC");

      put("apiPassword", "ef64610fc"); put("testMode", "1");

      put("productId", "45");

      put("price", "15");

      put("have_attorney", "YES"); put("comments", "John"); put("first_name", "John");

      put("last_name", "Smith"); put("email_address", "[email protected]"); put("phone_home", "5416194112"); put("phone_cell","5416194112"); put("phone_work","5416194112"); put("phone_ext","5416194112");

      put("zip_code", "97321");

      put("state", "OR");

      put("city", "Albany"); put("county", "County"); put("county", "County");

      put("dob", "Date of Birth");

      put("type_of_legal_problem", "Type Of Legal Problem");

      put("owns_real_estate", "Owns Real Estate");

      put("total_assets_value", "Total Assets Value");

      put("monthly_income", "Monthly Income");

      put("total_debt", "Total Debt");

      put("injury", "Injury");

      put("trusted_form_certid", "Trusted form cert id");

      put("injury_type", "Injury Type");

      put("gender", "Gender");

      put("trustedform_url", "Trustedform Url");

      put("fault", "Fault");

      put("attorney", "Attorney");

      put("doctor_treatment", "Doctor Treatment");

      put("incident_date", "2020-01-01");

      put("landing_url", "http://www.mysite.com"); put("ip_address", "IP will be here");

      put("user_agent", "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)");

      put("tcpa", "agreement text");

      put("universal_leadid", "12345678-1234-1234-1234-123456789012");

      put("trustedform_url", "https://cert.trustedform.com/[Trusted Form ID]");

      put("address", "my address");

      put("address2", "my address");

      put("emailHash", "12c90344ae847fe2d6b864373ddb1119"); put("phoneHash", "9c985fe8dda5f256149c5b36556448b0");

      put("language", "EN");

      put("clickid", "XXX871CF-333E-4B97-A1A3-3C921A61EXXX");

      put("tPar", "tPar[affiliateId]=123&tPar[affiliateSubId]=123_444&tPar[transactionId]=123456&tPar[offerId]=offer-2234"); put("landing_url", "http://webiste.xxx");

      }

      };

      // use import io.restassured.response.Response; Response response = given()

      .accept(ContentType.JSON)

      .with()

      .params(formParams)

      .when()

      .post(url)

      .then()

      .extract().response();


      System.out.println(response.asString());

      }


      Bash FORM


      curl -X POST \

      https://example.leadprosper.tech/phonexa/fullpost/ \

      -H 'accept: application/json' \

      -H 'cache-control: no-cache' \

      -H 'content-type: multipart/form-data' \

      -F apiId=456915D3E3134A67B0F39BE8452A24EC \

      -F apiPassword=ef64610fc \

      -F testMode=1 \

      -F productId=45 \

      -F price=15 \

      -F have_attorney=YES \

      -F comments=John \

      -F first_name=John \

      -F last_name=Smith \

      -F [email protected] \

      -F phone_home=5416194112 \

      -F phone_cell=5416194112 \

      -F phone_work=5416194112 \

      -F phone_ext=5416194112 \

      -F zip_code=97321 \

      -F state=OR \

      -F city=Albany \

      -F county=County \

      -F country=Country \

      -F dob=Date of Birth \

      -F type_of_legal_problem=Type Of Legal Problem \

      -F owns_real_estate=Owns Real Estate \

      -F total_assets_value=Total Assets Value \

      -F monthly_income=Monthly Income \

      -F total_debt=Total Debt \

      -F interestScale=SCALE3 \

      -F injury=Injury \

      -F trusted_form_certid=Trusted form cert id \

      -F injury_type=Injury Type \

      -F gender=Gender \

      -F trustedform_url=Trustedform Url \

      -F fault=Fault \

      -F attorney=Attorney \

      -F doctor_treatment=Doctor Treatment \

      -F incident_date=2020-01-01 \

      -F landing_url=http://www.mysite.com \

      -F ip_address=IP will be here \

      -F user_agent=Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0) \

      -F tcpa=agreement text \

      -F universal_leadid=12345678-1234-1234-1234-123456789012 \

      -F trustedform_url=https://cert.trustedform.com/[Trusted Form ID] \

      -F address=my address \

      -F address2=my address \

      -F emailHash=12c90344ae847fe2d6b864373ddb1119 \

      -F phoneHash=9c985fe8dda5f256149c5b36556448b0 \

      -F language=EN \

      -F clickid=XXX871CF-333E-4B97-A1A3-3C921A61EXXX \

      -F tPar=tPar[affiliateId]=123&tPar[affiliateSubId]=123_444&tPar[transactionId]=123456&tPar[offerId]=offer-2234 \

      -F landing_url=http://webiste.xxx


      PHP JSON


      <?php

      $mapped = array();

      $mapped['apiId'] = '456915D3E3134A67B0F39BE8452A24EC';

      $mapped['apiPassword'] = 'ef64610fc';

      $mapped['testMode'] = '1';

      $mapped['productId'] = '45';

      $mapped['price'] = '15';

      $mapped['have_attorney'] = 'YES';

      $mapped['comments'] = 'John';

      $mapped['first_name'] = 'John';

      $mapped['last_name'] = 'Smith';

      $mapped['email_address'] = '[email protected]';

      $mapped['phone_home'] = '5416194112';

      $mapped['phone_cell'] = '5416194112';

      $mapped['phone_work'] = '5416194112';

      $mapped['phone_ext'] = '5416194112';

      $mapped['zip_code'] = '97321';

      $mapped['state'] = 'OR';

      $mapped['city'] = 'Albany';

      $mapped['county'] = 'County';

      $mapped['country'] = 'Country';

      $mapped['dob'] = 'Date of Birth';

      $mapped['type_of_legal_problem'] = 'Type Of Legal Problem';

      $mapped['owns_real_estate'] = 'Owns Real Estate';

      $mapped['total_assets_value'] = 'Total Assets Value';

      $mapped['monthly_income'] = 'Monthly Income';

      $mapped['total_debt'] = 'Total Debt';

      $mapped['interestScale'] = 'SCALE3';

      $mapped['injury'] = 'Injury';

      $mapped['trusted_form_certid'] = 'Trusted form cert id';

      $mapped['injury_type'] = 'Injury Type';

      $mapped['gender'] = 'Gender';

      $mapped['trustedform_url'] = 'Trustedform Url';

      $mapped['fault'] = 'Fault';

      $mapped['attorney'] = 'Attorney';

      $mapped['doctor_treatment'] = 'Doctor Treatment';

      $mapped['incident_date'] = '2020-01-01';

      $mapped['landing_url'] = 'http://www.mysite.com';

      $mapped['ip_address'] = 'IP will be here';

      $mapped['user_agent'] = 'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)';

      $mapped['tcpa'] = 'agreement text';

      $mapped['universal_leadid'] = '12345678-1234-1234-1234-123456789012';

      $mapped['trustedform_url'] = 'https://cert.trustedform.com/[Trusted Form ID]';

      $mapped['address'] = 'my address';

      $mapped['address2'] = 'my address';

      $mapped['emailHash'] = '12c90344ae847fe2d6b864373ddb1119';

      $mapped['phoneHash'] = '9c985fe8dda5f256149c5b36556448b0';

      $mapped['language'] = 'EN';

      $mapped['clickid'] = 'XXX871CF-333E-4B97-A1A3-3C921A61EXXX';

      $mapped['tPar'] = 'tPar[affiliateId]=123&tPar[affiliateSubId]=123_444&tPar[transactionId]=123456&tPar[offerId]=offer-2234';

      $mapped['landing_url'] = 'http://webiste.xxx';


      $server_url = "https://example.leadprosper.tech/phonexa/fullpost/";


      $ch = curl_init($server_url); curl_setopt($ch, CURLOPT_POST, true);

      curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($mapped));

      curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type:application/json")); curl_setopt($ch, CURLOPT_FAILONERROR, 1);

      curl_setopt($ch, CURLOPT_HEADER, 1);

      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true); curl_setopt($ch, CURLOPT_TIMEOUT, 120); curl_setopt($ch, CURLINFO_HEADER_OUT, true);

      curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); if (curl_errno($ch)) {

      // Error

      } else {

      // Send Success

      $Response = curl_exec($ch); curl_close($ch);

      }

      ?>


      Python JSON

      import requests mapped = {

      'apiId':'456915D3E3134A67B0F39BE8452A24EC',

      'apiPassword':'ef64610fc', 'testMode':'1',

      'productId':'45',

      'price':'15', 'have_attorney':'YES', 'comments':'John', 'first_name':'John',

      'last_name':'Smith', 'email_address':'[email protected]',

      'phone_home':'5416194112',

      'phone_cell':'5416194112',

      'phone_work':'5416194112',

      'phone_ext':'5416194112',

      'zip_code':'97321',

      'state':'OR',

      'city':'Albany',

      'county':'County',

      'country':'County',

      'dob':'Date of Birth',

      'type_of_legal_problem':'Type Of Legal Problem',

      'owns_real_estate':'Owns Real Estate',

      'total_assets_value':'Total Assets Value',

      'monthly_income':'Monthly Income',

      'total_debt':'Total Debt',

      'injury':'Injury',

      'trusted_form_certid':'Trusted form cert id',

      'injury_type':'Injury Type',

      'gender':'Gender',

      'trustedform_url':'Trustedform Url',

      'fault':'Fault',

      'attorney':'Attorney',

      'doctor_treatment':'Doctor Treatment',

      'incident_date':'2020-01-01',

      'landing_url':'http://www.mysite.com', 'ip_address':'IP will be here',

      'user_agent':'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)',

      'tcpa':'agreement text',

      'universal_leadid':'12345678-1234-1234-1234-123456789012',

      'trustedform_url':'https://cert.trustedform.com/[Trusted Form ID]', 'address':'my address', 'address2':'my address', 'emailHash':'12c90344ae847fe2d6b864373ddb1119', 'phoneHash':'9c985fe8dda5f256149c5b36556448b0',

      'language':'EN',

      'clickid':'XXX871CF-333E-4B97-A1A3-3C921A61EXXX',

      'tPar':'tPar[affiliateId]=123&tPar[affiliateSubId]=123_444&tPar[transactionId]=123456&tPar[offerId]=offer-2234', 'landing_url':'http://webiste.xxx'

      }

      headers = {'Content-Type': 'application/json'}

      server_url = 'https://example.leadprosper.tech/phonexa/fullpost/'


      response = requests.post(server_url, data=mapped, headers=headers, timeout=120, verify=True) if response.ok:

      # status_code is less than 400 response_body = response.text

      ...

      else:

      # error

      ...

      Java JSON


      public void sendLeadByPost() {

      String url = "https://example.leadprosper.tech/phonexa/fullpost/";


      String jsonBody = "{" +

      "\"apiId\":\"456915D3E3134A67B0F39BE8452A24EC\"," +

      "\"apiPassword\":\"ef64610fc\"," + "\"testMode\":\"1\"," +

      "\"productId\":\"45\"," +

      "\"price\":\"15\"," + "\"have_attorney\":\"YES\"," + "\"comments\":\"John\"," + "\"first_name\":\"John\"," +

      "\"last_name\":\"Smith\"," + "\"email_address\":\"[email protected]\"," +

      "\"phone_home\":\"5416194112\"," + "\"phone_cell\":\"5416194112\"," + "\"phone_work\":\"5416194112\"," + "\"phone_ext\":\"5416194112\"," + "\"zip_code\":\"97321\"," +

      "\"state\":\"OR\"," +

      "\"city\":\"Albany\"," + "\"county\":\"County\"," + "\"country\":\"Country\","

      "\"dob\":\"Date of Birth\"," +

      "\"type_of_legal_problem\":\"Type Of Legal Problem\"," +

      "\"owns_real_estate\":\"Owns Real Estate\"," +

      "\"total_assets_value\":\"Total Assets Value\"," +

      "\"monthly_income\":\"Monthly Income\"," +

      "\"total_debt\":\"Total Debt\"," +

      "\"injury\":\"Injury\"," +

      "\"trusted_form_certid\":\"Trusted form cert id\"," +

      "\"injury_type\":\"Injury Type\"," +

      "\"gender\":\"Gender\"," +

      "\"trustedform_url\":\"Trustedform Url\"," +

      "\"fault\":\"Fault\"," +

      "\"attorney\":\"Attorney\"," +

      "\"doctor_treatment\":\"Doctor Treatment\"," +

      "\"incident_date\":\"2020-01-01\"," +

      "\"landing_url\":\"http://www.mysite.com\"," + "\"ip_address\":\"IP will be here\"," +

      "\"user_agent\":\"Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)\"," +

      "\"tcpa\":\"agreement text\"," + "\"universal_leadid\":\"12345678-1234-1234-1234-123456789012\"," +

      "\"trustedform_url\":\"https://cert.trustedform.com/[Trusted Form ID]\"," + "\"address\":\"my address\"," + "\"address2\":\"my address\"," + "\"emailHash\":\"12c90344ae847fe2d6b864373ddb1119\"," + "\"phoneHash\":\"9c985fe8dda5f256149c5b36556448b0\"," +

      "\"language\":\"EN\"," +

      "\"clickid\":\"XXX871CF-333E-4B97-A1A3-3C921A61EXXX\"," +

      "\"tPar\":\"tPar[affiliateId]=123&tPar[affiliateSubId]=123_444&tPar[transactionId]=123456&tPar[offerId]=offer-2234\"," + "\"landing_url\":\"http://webiste.xxx\"," +

      "}";

      // use import io.restassured.response.Response; Response response = given()

      .contentType(ContentType.JSON)

      .accept(ContentType.JSON)

      .with()

      .body(jsonBody)

      .when()

      .post(url)

      .then()

      .extract().response();


      System.out.println(response.asString());

      }


      Bash JSON


      curl -X POST \

      https://example.leadprosper.tech/phonexa/fullpost/ \

      -H 'accept: application/json' \

      -H 'cache-control: no-cache' \

      -H 'content-type: application/json' \

      --data '{"apiId":"456915D3E3134A67B0F39BE8452A24EC","apiPassword":"ef64610fc","testMode":"1","productId":"45","price":"15","have_attorney


  5. Response Samples

    1. Ping Accept Response


      {

      "status": "continue", "price": 20, "promise": "W_ERY60"

      }


    2. Ping Reject Response


      {

      "status": "reject", "reason": "No buyer found."

      }


    3. Sold Lead (Accepted Customer from Lead Generator)


      {

      "lead_id": "W_O0QO",

      "status": 1, "status_text": "sold",

      "redirect_url": "https:\/\/leads-inst225-client.phonexa.com\/redirect?id=a5bfc9e07964f8dddeb95fc584cd965d", "price": "1.0000",

      "timestamp": 1464879427.2253,

      "processing_time": 0.0475

      }


    4. Reject Lead (Rejected Customer from Lead Generator)


      {

      "lead_id": "23",

      "status": 2, "status_text": "reject", "timestamp": 1464871644,

      "processing_time": 0.0105

      }


    5. Error


      {

      "status": 4,

      "errors": [

      {

      "loanAmount": "required", "first_name": "required"

      }

      ]

      }


  6. Test Mode

For testing Reject, please use the same live credentials but add testMode=1 in parameter list.


For testing Sold, use the same live credentials but add testMode=1 and testSold=1 in parameter list.


WARNING: make sure to remove it once you are done testing and start sending live leads.