/quotes
Quote API is for creating priced quotes from Swallow pricing projects, and returning quote data at volume.
Create a quote
This is a public API endpoint. You can hit this endpoint for client-side code by just providing client_id_key in the header. View authentication to find out more. Public APIs have /public/ within the endpoint url.
This is a private API endpoint. You have to hit it with both client_id_key and client_secret_key in the header. You should only hit this POST endpoint server-side.
The request body should match the inputs that are defined within your Swallow pricing project. You can see the desired payload by looking at the Try page of any project or project version. For example:
The response body will return the priced quote with the outputs that are defined within your Swallow pricing project.
To respond with debugging details, provide ?debug=true as a query parameter within the endpoint. This will return an additional parameter called debug with granular detail of how the quote was created. This will not work on the public quote endpoint.
Retrieve quotes
Quotes can be fetched in bulk or filtered (via a ?search query) on indicators that are defined in the inputs of Swallow pricing models. Indicators are up to 4 defined input parameters that can be searched (e.g. name, password, registration, zip code, postcode).
Quotes can also be filtered on a specific version_reference or project_reference.
Retrieve quote detail
Each quote has a unique quote_reference that is used within the quote request.
To respond with debugging details, provide ?debug=true as a query parameter within the endpoint. This will return an additional parameter called debug with granular detail of how the quote was created.
Quote storage period
Different account types will store quotes for different periods of time.
Last updated