Introduction
This guide describes Yasmina’s TPL Motor Insurance APIs available on Yasmina’s platform (for Multiple Insurance Providers with Price comparison, click here). These APIs cover the core operations required for working with TPL motor insurance, including issuing and managing policies, generating payment link, and handling claims. Our APIs use the RESTful standard and is structured to provide consistent inputs and outputs, making it quick and easy to integrate, test, and maintain within your systems.What you will learn
- Issuing and managing policies
- Payment link
- Starting a claim
Prerequisites
- Account in Yasmina - See the Onboarding section for details. You need to add “TPL Motor Insurance (Single Provider)” in the products field.
- Authenticated Token - Follow the Authentication guide to generate one.
- Backend server - Required to securely call Yasmina APIs.
Prerequisites
- Account in Yasmina - See the Onboarding section for details.
- Authenticated Token - Follow the Authentication guide to generate one.
- Backend server - Required to securely call Yasmina APIs.
Issue policy
In order to Issue a policy. You can head to the Issue Policy API These are the fields that you need to provide:
Example of a request
201 HTTP response code. Here is an example of the Policy object.
Understanding Payment and Policy activation
When you first make a request to the Issue Policy API. The Policy is not yet activated and thestatus is 0 (which means pending).
Also the provider_policy and provider_policy_id will both be null.
In order for the policy to be activated, the customer needs to make the purchase from the payment link. Once the customer successfully pays. The policy will be activated and the status becomes 1.
Although the payment page is provided by Yasmina, it does not display the Yasmina logo or have any mention of Yasmina.
Yasmina does not receive credit card information, instead the payment page sends card information directly to the payment vendor.
Yasmina does not receive credit card information, instead the payment page sends card information directly to the payment vendor.
Showing a policy
In order to get a status of a policy, you can use the Show Policy API. This API, takes a Yasmina Policyid and will return the policy object
This API is ideal when you want to re-fetch a specific policy after the PDF gets generated.
Example of a request

