Integrate SmartCircuit
A SmartCircuit integration has three parts: a reference to the hosted SmartCircuit JavaScript bundle, an HTML element where the offer is displayed, and partner scripting that exchanges events with the component.
Reference the SmartCircuit bundle
AzP hosts the bundle on the AWS CDN. A static inclusion is usually enough because the bundle is small; use a dynamic inclusion to load it only when the page flow needs it.
Static inclusion
Dynamic inclusion
Reference the bundle in the head of each page where a quote or purchase happens.
On a single-page application, moving between pages that each initialize SmartCircuit leaves two listeners for the same event, and the customer can receive a different quote for their search criteria.
Get an access token
Your server calls the SmartCircuit authorize endpoint. The access token is valid for 1 hour, and the refresh token renews it for 24 hours. Once the access token expires, call the authorize endpoint again with the refresh token.
Example: get a token in PHP
Place the allianz-insurance element
Put the element where the offer should appear. SmartCircuit injects the offer into it.
Access token from the server-side authentication call. SmartCircuit uses it to authenticate the page.
Which of the partner’s ACCAMs to use when the partner has more than one.
Whether the quote is for travel or an event.
Verify the quoted price before a purchase. On a mismatch, SmartCircuit returns Price in Purchase Request does not match price was returned in quote request. TotalPrice should be XXX passed as YYY.
How much SmartCircuit logs to the console, from debug (most) to error (errors only). Use debug during development and warn or error in production.
Listen for and send events
Wire your checkout to the SmartCircuit events: wait for azpComponentReady, send azpQuoteRequest, track the customer’s choice, then send a purchase or note decline.
Residency of the insured
US travel insurance is regulated by each state, so benefits, limits and pricing depend on the insured’s state of residence. Every quote request must include:

