Lightweight integration
Overview
This document covers a lightweight integration guide to get the MVP of Ascend up and running.
Definitions
These are the core resources required to build out the MVP.
Entity | Description |
---|---|
Insured | Represents the individual or business. |
Program | Represents a collection of billables and encapsulates a session for each checkout. |
Billable | Represents the premium & fees that represent a quote/policy or endorsement. |
CoverageType | Represents the business line or coverage of the quote/policy. Required to create a billable. |
Carriers | Represents a carrier. Required to create a quote/policy. |
Wholesalers | Represents a wholesaler or MGA. Optional to create a quote/policy. |
Integration Guide
Steps to build out a simple integrated experience through the dashboard.
Headers
Please note, all API calls require the following headers:
Accept: application/json
Content-Type: application/json
Authorization: Bearer {token}
Please note, you should have received the API token via email. If you require it again: please reach out to [email protected]
Mapping Wholesalers/Carriers
Before you get started, Ascend requires both wholesalers & carriers to create checkout links. These are static entities therefore if you work with a limited set of wholesalers or carriers you can store or map the ids provided in this section.
- Fetch Carriers: Fetch all the carriers using this endpoint. Store the
identifier
attribute to use in the next section.- Here’s a test identifier you can use for testing purposes in the next step:
acuity
- Here’s a test identifier you can use for testing purposes in the next step:
- Fetch Wholesalers: Fetch the wholesalers or MGAs using this endpoint. Store the
identifier
attribute to use in the next section.- Here’s a test identifier you can use for testing purposes in the next step:
rt_specialty
- Here’s a test identifier you can use for testing purposes in the next step:
Note that if you are unable to find the carrier/wholesaler with the above endpoints - you can request them at [email protected]. Sandbox has a subset of production carriers/wholesalers.
Steps to Create Checkout
- Create an /insured.
- Once created, you will need
insured.id
for the next step.
- Once created, you will need
- Create a /program
- Create a /program
- Store or cache the following attributes from the response:
- Once created, you will need
program.id
for the next steps. - You might also want to store in memory or cache
program_url
which is your session URL.
- Once created, you will need
- Some notes on parameters during this call:
return_url
: Set this to determine the back behavior when user exits the session.success_callback_url
: Set this url to determine the redirect that happens post successful checkout.
- Store or cache the following attributes from the response:
- Create a /program
- Create 1 or many /billables:
- Create 1 or many billables as needed with all the required parameters using the
program_id
from the previous steps. - For
wholesaler_id
&carrier_id
you can use the ones from the section above.
- Create 1 or many billables as needed with all the required parameters using the
- Use the
program_url
from step 2 as the session URL for your CTA/button which should have the checkout session ready to go.
Updated almost 2 years ago