Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
curl --request GET \
--url https://staging.yasmina.ai/api/v1/car-comp/quote-requests \
--header 'Authorization: Bearer <token>'
{
"current_page": 123,
"data": [
{
"owner_id": 123,
"phone": "<string>",
"birthdate": "2023-12-25",
"car_sequence_number": 123,
"is_ownership_transfer": true,
"car_estimated_cost": 123,
"car_model_year": 123,
"quotes": [
{
"company_name": "<string>",
"prices": [
{
"quote_price_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"deductible": 123,
"subtotal": 123,
"vat_percentage": 15,
"vat": 123,
"total": 123
}
],
"benefits": [
{
"quote_benefit_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"id": "<string>",
"name": "<string>",
"amount": 123,
"vat": 123,
"url": "<string>"
}
]
}
],
"client_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updated_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"id": 123
}
],
"first_page_url": "<string>",
"from": 123,
"last_page": 123,
"last_page_url": "<string>",
"links": [
{
"url": "<string>",
"label": "<string>",
"active": true
}
],
"next_page_url": "<string>",
"path": "<string>",
"per_page": 123,
"prev_page_url": "<string>",
"to": 123,
"total": 123
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Paginated list of quotes
Hide child attributes
The owner’s national ID or Iqama ID
The owner's phone number
The owner's birthdate. Hijri for Saudi nationals, Gregorian for others
The car sequence number from 9 digits
Whether it was a car transfer or not
The estimated cost of the car
The car model year
An array representing each insurance company quote. Each item has the company name, the prices, and the benefits.
Hide child attributes
Your own client ID
In case of an update on this quote, this date will change
When was the quote requested
Yasmina ID for the quote. You can use it to delete items or showing it again to the customer
curl --request GET \
--url https://staging.yasmina.ai/api/v1/car-comp/quote-requests \
--header 'Authorization: Bearer <token>'
{
"current_page": 123,
"data": [
{
"owner_id": 123,
"phone": "<string>",
"birthdate": "2023-12-25",
"car_sequence_number": 123,
"is_ownership_transfer": true,
"car_estimated_cost": 123,
"car_model_year": 123,
"quotes": [
{
"company_name": "<string>",
"prices": [
{
"quote_price_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"deductible": 123,
"subtotal": 123,
"vat_percentage": 15,
"vat": 123,
"total": 123
}
],
"benefits": [
{
"quote_benefit_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"id": "<string>",
"name": "<string>",
"amount": 123,
"vat": 123,
"url": "<string>"
}
]
}
],
"client_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updated_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"id": 123
}
],
"first_page_url": "<string>",
"from": 123,
"last_page": 123,
"last_page_url": "<string>",
"links": [
{
"url": "<string>",
"label": "<string>",
"active": true
}
],
"next_page_url": "<string>",
"path": "<string>",
"per_page": 123,
"prev_page_url": "<string>",
"to": 123,
"total": 123
}