> For the complete documentation index, see [llms.txt](https://milonics.gitbook.io/api-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://milonics.gitbook.io/api-documentation/insurpass-api-reference/okada-insurance.md).

# Okada Insurance

The following endpoints will allow a merchant to subscribe their customer to the Okada insurance plan and request claims for their customers.

## List All Okada Products

## This endpoint returns a list of all the okada insurance products

<mark style="color:blue;">`GET`</mark> `https://sandbox.insurpass.com/api/merchant/okada_pass_product`

#### Headers

| Name                                            | Type   | Description                     |
| ----------------------------------------------- | ------ | ------------------------------- |
| Authorization<mark style="color:red;">\*</mark> | String | Bearer {$secret-key}/{$api-key} |
| Content-Type<mark style="color:red;">\*</mark>  | String | application/json                |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
   "success":true,
   "response_message":"Okada pass product get successful",
   "response_code":"",
   "data":[
      {
         "id":15,
         "name":"JEJE COVER",
         "details":"JEJE COVER",
         "beneficiaries":true,
         "max_beneficiaries":3,
         "provider_id":2,
         "logo_url":"logo.png",
         "enable":true,
         "created_at":"2022-02-16T10:36:09.000000Z",
         "updated_at":"2022-02-16T10:36:09.000000Z",
         "service_id":8,
         "product_class_id":0,
         "price_config":[
            {
               "id":21,
               "product_id":15,
               "no_of_users":1,
               "provider_price":"2300.00",
               "coverdor_commission":"400.00",
               "total_price":"2700.00",
               "product_code":"jeje-cover-OKADA",
               "product_short_code":"JJ_COVER",
               "created_at":"2022-02-16T10:36:10.000000Z",
               "updated_at":"2022-02-16T10:36:10.000000Z",
               "system_commission":"400.00",
               "amount_insured":"400000.00",
               "commission_type":"fixed"
            }
         ]
      },
      {
         "id":16,
         "name":"CARRY-GO COVER",
         "details":"CARRY-GO COVER",
         "beneficiaries":true,
         "max_beneficiaries":3,
         "provider_id":2,
         "logo_url":"logo.png",
         "enable":true,
         "created_at":"2022-02-16T10:36:09.000000Z",
         "updated_at":"2022-02-16T10:36:09.000000Z",
         "service_id":8,
         "product_class_id":0,
         "price_config":[
            {
               "id":22,
               "product_id":16,
               "no_of_users":4,
               "provider_price":"3400.00",
               "coverdor_commission":"400.00",
               "total_price":"3400.00",
               "product_code":"carry_go_cover_OKADA",
               "product_short_code":"CG_COVER_OKADA",
               "created_at":"2022-02-16T10:36:10.000000Z",
               "updated_at":"2022-02-16T10:36:10.000000Z",
               "system_commission":"400.00",
               "amount_insured":"500000.00",
               "commission_type":"fixed"
            }
         ]
      },
      {
         "id":17,
         "name":"NO-SHAKING COVER",
         "details":"NO-SHAKING COVER",
         "beneficiaries":true,
         "max_beneficiaries":3,
         "provider_id":2,
         "logo_url":"logo.png",
         "enable":true,
         "created_at":"2022-02-16T10:36:09.000000Z",
         "updated_at":"2022-02-16T10:36:09.000000Z",
         "service_id":8,
         "product_class_id":0,
         "price_config":[
            {
               "id":23,
               "product_id":17,
               "no_of_users":4,
               "provider_price":"3300.00",
               "coverdor_commission":"400.00",
               "total_price":"3700.00",
               "product_code":"no_shaking_OKADA",
               "product_short_code":"NK_OKADA",
               "created_at":"2022-02-16T10:36:10.000000Z",
               "updated_at":"2022-02-16T10:36:10.000000Z",
               "system_commission":"400.00",
               "amount_insured":"60000.00",
               "commission_type":"fixed"
            }
         ]
      },
      {
         "id":18,
         "name":"CONFAAM COVER",
         "details":"CONFAAM COVER",
         "beneficiaries":true,
         "max_beneficiaries":3,
         "provider_id":2,
         "logo_url":"logo.png",
         "enable":true,
         "created_at":"2022-02-16T10:36:09.000000Z",
         "updated_at":"2022-02-16T10:36:09.000000Z",
         "service_id":8,
         "product_class_id":0,
         "price_config":[
            {
               "id":24,
               "product_id":18,
               "no_of_users":4,
               "provider_price":"4300.00",
               "coverdor_commission":"400.00",
               "total_price":"4700.00",
               "product_code":"confam_cover_OKADA",
               "product_short_code":"CF_COVER_OKADA",
               "created_at":"2022-02-16T10:36:10.000000Z",
               "updated_at":"2022-02-16T10:36:10.000000Z",
               "system_commission":"400.00",
               "amount_insured":"600000.00",
               "commission_type":"fixed"
            }
         ]
      },
      {
         "id":19,
         "name":"DIGITAL BIKE COVER",
         "details":"DIGITAL BIKE COVER",
         "beneficiaries":true,
         "max_beneficiaries":3,
         "provider_id":2,
         "logo_url":"logo.png",
         "enable":true,
         "created_at":"2022-02-16T10:36:09.000000Z",
         "updated_at":"2022-02-16T10:36:09.000000Z",
         "service_id":8,
         "product_class_id":0,
         "price_config":[
            {
               "id":25,
               "product_id":19,
               "no_of_users":4,
               "provider_price":"10400.00",
               "coverdor_commission":"400.00",
               "total_price":"10400.00",
               "product_code":"digital_bike_OKADA",
               "product_short_code":"DIGITTAL_BIKE_BUS",
               "created_at":"2022-02-16T10:36:10.000000Z",
               "updated_at":"2022-02-16T10:36:10.000000Z",
               "system_commission":"400.00",
               "amount_insured":"600000.00",
               "commission_type":"fixed"
            }
         ]
      }
   ]
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="PHP" %}
{% code overflow="wrap" lineNumbers="true" %}

```php
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://sandbox.insurpass.com/api/merchant/okada_pass_product',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'Authorization: Bearer {{SECRETKEY}}'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
```

{% endcode %}
{% endtab %}

{% tab title="NODE JS" %}
{% code overflow="wrap" lineNumbers="true" %}

```javascript
var axios = require('axios');
var data = '';

var config = {
  method: 'get',
  url: 'https://sandbox.insurpass.com/api/merchant/okada_pass_product',
  headers: { 
    'Authorization': 'Bearer {{SECRETKEY}}'
  },
  data: data
};
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
```

{% endcode %}
{% endtab %}

{% tab title="CURL" %}
{% code overflow="wrap" %}

```clike
curl --location --request GET https://sandbox.insurpass.com/api/merchant/okada_pass_product' \
--header 'Authorization: Bearer {{SECRETKEY}}' \
--header 'Accept: application/json' \
--data-raw ''
```

{% endcode %}
{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://milonics.gitbook.io/api-documentation/insurpass-api-reference/okada-insurance.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
