# Use Cases
source: https://developer.mastercard.com/mastercard-insurance-programs/documentation/use-cases/index.md

Below listed are the different usecases of Loyalty Insurance service offerings.

## View Benefits Redirect {#view-benefits-redirect}

In your web or mobile UX, you will need to build a URL redirecting the card holder to the benefits page as shown in the example HTML form below.

```html
<form method="Post" action="<sandbox or production URL here>" name="HiddenForm">
  <input type="hidden" name="CardholderData" value="<generated token from the response to POST /user-data-tokens>"/>
  <input type="hidden" name="LanguageCode" value="en"/>
  <input type="hidden" name="CountryCode" value="BRA"/>
</form>
```

* Below are the URLs to be used in the action attribute of the form, corresponding to each environment -
  * Sandbox : <https://api.trymycardbenefits.com/api/cardholder/v1/sso_redirect/>
  * Production : <https://api.mycardbenefits.com/api/cardholder/v1/sso_redirect/>

Diagram InsuranceBenefitsRedirect

## Claim Submission Redirect {#claim-submission-redirect}

In your web or mobile UX, you will need to build a URL redirecting the card holder to the claim submission website using the generated token and additional benefit context
as shown in the example HTML form below.

```html
<form method="Post" action="<sandbox or production URL here>" name="HiddenForm">
  <input type="hidden" name="CardholderData" value="<generated token from the response to POST /user-data-tokens>"/>
  <input type="hidden" name="BenefitCode" value="PRO"/>
  <input type="hidden" name="LanguageCode" value="en"/>
  <input type="hidden" name="CountryCode" value="BRA"/>
</form>
```

The consumer will enter their claim information on the target website rendered in a webview and the website will
display the generated Claim ID and postal code which the card holder can later use to input into a form within the Issuer mobile app.
The Issuer will then call claim status API to retrieve status information for this claim.
The retrieved status information will be displayed to the consumer within the Issuer mobile app.

* Below are the URLs to be used in the action attribute of the form, corresponding to each environment -
  * Sandbox : <https://api.trymycardbenefits.com/api/cardholder/v1/prefill_redirect/>
  * Production : <https://api.mycardbenefits.com/api/cardholder/v1/prefill_redirect/>

Here is the API reference for further details of the exact information to be sent / received.

API Reference: `GET /user-data-tokens`

The following sequence diagram shows the sequence of API calls between the different entities in this scenario.
Diagram SubmitInsuranceClaim

## Retrieve Insurance claim status {#retrieve-insurance-claim-status}

This API is to track an insurance claim status.

Here is the API reference for further details of the exact information to be sent / received.

API Reference: `GET /claim-searches`

The following sequence diagram shows the sequence of API calls between the different entities in this scenario.
Diagram ClaimSearch
