Please refer the following document for the detailed prefill API specification
curl --location --request POST 'http://{host}/affiliates/{AFILLIATE_NAME}/pre_filled_link' \ |
{ “url”: “https://track.nextinsurance.com/links?serial=91419&channel=affiliation&affiliate_id={numerical_id}&coverages=[%22GL%22,%22WC%22]&pft={pft_token_generated_by_NEXT}&pre_fill_request={prefill_request_id_string_issued_by_NEXT}”, “status”: “SUCCESS” } |
On performing the below launch request in browser, Partner will be redirected to the Next Connect funnel.
Please refer to the signature generation section for further information about generating the signature parameter.
https://{host}/affiliates/PARTNER/secure/launch?partner_request_id=<partnerRequestId>&partner_source=email&signature=24205a1d0it76011y9a6867898f41e4da8e71ad3c1fa2398df7fb597c9e5087a×tamp=1651679352 |
NEXT funnel will be launched as an HTML page |
Partner will have an POST API that accepts the status updates from NEXT. Following will be the payload that NEXT will send to PARTNER for status updates on the policy.
{ “partnerRequestId”: <unique partnerRequestId used in pre fill app generation>, “status”: “<STATUS_ENUM_VALUE>” } |
Response code of 200 should be returned for Success For failure, please follow standard the HTTP status codes |
Following are the values that statuses can assume
<div class=“next-insurance-button” data-signature=“#Signature key#” data-timestamp=“#Long timestamp#” data-affiliate-name=“AffiliateName” data-embed=“true” data-env=“sandbox” data-pft=“#pft token received from prefill api response#” – this is optional data-pfr=“#pre_fill_request received from prefill api response#” – this is optional data-partner-request-id=“#LegalZoom’s customer id which gets sent in prefill request#”> <script src=“https://uat.nextinsurance.com/ni-sdk.bundle.js”></script> </div> |
Next will provide api keys specific to each environment that can be used for signature generation. Signature is passed in the api headers. Please follow the instructions in this doc to generate the signature.
We will review and follow Partner’s security implementation for status updates
Staging: api-stg.next-insurance.com
Production: api.next-insurance.com