Quote

Create Quote Request

Before trying to create a quote, you must create a quote_request to “prepare” the process of quotation, receiving useful data for the rest of the process and to help proponent select desired configurations.

POST /v1/quotes/request

Body Parameters

The request has the following parameters in body:

ParameterDescription
broker_product_idThe ID of the broker productRequired
broker_channel_idThe ID of the broker channelOptional
lead_idThe ID of the leadOptional
{
  "broker_product_id": "string",
  "broker_channel_id": "string",
  "lead_id": "string"
}
Response

The above request returns JSON structured like this:

ParameterDescription
idThe ID of the Quote Request
assistsList of assists available to quote
coveragesList of coverages available to quote
plansList of plans available to quote
{
  "id": "string",
  "assists": [],
  "coverages": [],
  "plans": []
}

Create Quote

POST /v1/quotes

Body Parameters

The request has the following parameters in body:

ParameterDescription
quote_request_idThe ID of the quote requestRequired
lifetime_startThe lifetime start dateRequired
lifetime_endThe lifetime end dateRequired
policy_holderThe policy holder dataOptional
itemsThe list of items for quoteOptional

The policy_holder and items parameters from Create Quote can vary depending on which type of insurance product your are quoting. See our guides to understand the possible values for each product.

{
  "quote_request_id": "string",
  "lifetime_start": "string",
  "lifetime_end": "string",
  "policy_holder": {},
  "items": []
}
Response

The above request returns JSON structured like this:

ParameterDescription
idThe ID of the Quote
items.installmentsThe installments and result of the quote itself for each item
items.installments.idThe installment ID
items.installments.amountThe installment amount
items.installments.total_amountThe installment total amount
items.installments.installment_quantityThe quantity of installments, that the amount is represented divided by the total_amount
items.installments.payment_methodsThe installment payment method available
items.installments.taxesThe installment taxes information
items.installments.recurrenceThe installment recurrence information
statusThe status of quote
The installments payment methods can be:
Many Of
Billet, CreditCard, DebitCard, WireTransfer, AccountDebit, Pix
The quote status can be:
StatusName
1Started
2Pending
3Failed
4Finished
5Rejected
{
  "id": "string",
  "status": 0,
  "items": [
    {
      "installments": [
        {
          "id": "string",
          "amount": 0,
          "total_amount": 0,
          "installment_quantity": 0,
          "payment_methods": ["string"],
          "taxes": {},
          "recurrence": {}
        }
      ]
    }
  ]
}