# BRI Direct Debit

## Binding Card Token

This process is card information data from the merchant to Faspay. The post data (binding) process is carried out when the merchant requests parameters and then Faspay will respond to the request.

<table><thead><tr><th width="163">Environment</th><th>URL</th></tr></thead><tbody><tr><td>Development</td><td><a href="https://debit-sandbox.faspay.co.id/pws/bridd/inputNumberPage">https://debit-sandbox.faspay.co.id/pws/bridd/inputNumberPage</a></td></tr></tbody></table>

### Request Binding Card Token

The following are the parameters of the request that must be sent by the merchant system to the Faspay system.

{% tabs %}
{% tab title="Request Parameter" %}

<table><thead><tr><th width="140">Parameter</th><th width="142">Data Type</th><th width="69">M/O/C</th><th width="256">Description</th></tr></thead><tbody><tr><td>passw</td><td>Alphanumeric</td><td>M</td><td>merchant password</td></tr><tr><td>boi_uid</td><td>Numeric</td><td>M</td><td>merchant id from Faspay credential</td></tr><tr><td>email</td><td>Alphanumeric</td><td>M</td><td>Email customer</td></tr><tr><td>signature</td><td>Alphanumeric</td><td>M</td><td>sha1(md5(user_id+password+bill_no))</td></tr><tr><td>user_id</td><td>Alphanumeric</td><td>M</td><td>user id that has been registered with Faspay</td></tr></tbody></table>
{% endtab %}

{% tab title="Sample Request Code" %}

```php
<?php
$user_id = 'bot99999';
$passw = 'p@ssw0rd';
$data =  array
                'boi_uid' => '99999',
                'email' => 'john@gmail.com'
              );
$signature = sha1(md5($user_id.$passw.json_encode($data)));
$post =  array(
                'boi_uid' => '99999',
                'email' => 'john@gmail.com',
                'signature' => $signature
              );
$string = '<form method="post" name="form" action="https://web.faspay.co.id/pws/bridd/inputNumberPage">';
if ($post != null) {
         foreach ($post as $name=>$value) {
         $string .= '<input type="hidden" name="'.$name.'" value="'.$value.'">';
    }
}

$string .= '</form>';
$string .= '<script> document.form.submit();</script>';

echo $string;
exit;
?>
```

{% endtab %}
{% endtabs %}

### Response Binding Card Token

Response parameters are parameters that will be sent by the Faspay system in response to parameter requests that have been sent by the merchant system. If there are parameters that do not match / the value is wrong then the transaction will be rejected by Faspay's system.

{% tabs %}
{% tab title="Response Parameter" %}

<table><thead><tr><th width="171">Parameter</th><th width="147">Data Type</th><th width="85">M/O/C</th><th>Description</th></tr></thead><tbody><tr><td>card_token</td><td>Alphanumeric</td><td>M</td><td>It is a representation of the user / customer's card information that is used to make transactions</td></tr><tr><td>cardholder_email</td><td>Alphanumeric</td><td>M</td><td>Email customer</td></tr><tr><td>cardholder_phone</td><td>Numeric</td><td>M</td><td>Phone number customer</td></tr><tr><td>response_code</td><td>Numeric</td><td>M</td><td>Response code (sample <strong>00</strong> for success)</td></tr></tbody></table>
{% endtab %}

{% tab title="Sample Response Code" %}

```php
(
   [card_token] => card_.eyJleHAiOjE2Mjk3NjkyMTUsImlhdCI6MTU5ODIzMzIxNSwiaXNzIjoiQmFuayBCUkkgLSBEQ0UiLCJqdGkiOiIyNTRiZDY2MS01MGQ3LTQ2YWUtODczZi05ZDFlYTdjOTBiNzciLCJwYXJ0bmVySWQiOiLvv70iLCJzZXJ2aWNlTmFtZSI6IkREX0VYVEVSTkFMX1NFUlZJQ0UifQ.Lvaz-lPHgiW8GW0VrGdG5BpwW1JZhD171-KulkEpGxLihPLdaBGKy0rRyb2KOeuD0lrTv04kS9Gt-ODaqJKvQYtrdLJ-htmQ8GUsvUn3pxiTUiTw4EOfYcSfRRx7xyyFb1KS2cn_ngvaNwq3HFqExHl6x9rpIba7_yCOx66O8AnaDjIZ8M-3ZBAdHityTb72JIuBbVD7EGfG7gZrm4dXhu9vLi-C2YjM3ItLCRIHpELmfYIXcgYry27OVLpMCzfPibgCiKCB2GJ4YAlSbHgde51zcxDR_h0JYHzF2abSAa41WzH076c1yc_Ygob4wOrfFnLUJOGHbkDrReFCankFYA
   [cardholder_email] => john@gmail.com
   [cardholder_phone] => 6281382829999
   [response_code] => 00
)
```

{% endtab %}
{% endtabs %}

## Unbinding Card Token

This service functions to delete user/customer card information data of BRI bank customers.

<table><thead><tr><th width="234">Environment</th><th>URL</th></tr></thead><tbody><tr><td>Development </td><td><a href="https://debit-sandbox.faspay.co.id/pws/bridd/deletecard">https://debit-sandbox.faspay.co.id/pws/bridd/deletecard</a></td></tr></tbody></table>

### Request Unbinding Card Token

The following are the parameters of the unbinding request that must be sent by the merchant system to the Faspay system.

{% tabs %}
{% tab title="Request Parameter" %}

<table><thead><tr><th width="137">Parameter</th><th width="171">Data Type</th><th width="86">M/O/C</th><th width="390">Description</th></tr></thead><tbody><tr><td>user_id</td><td>Alphanumeric</td><td>M</td><td>user id that has been registered with Faspay</td></tr><tr><td>passw</td><td>Alphanumeric</td><td>M</td><td>Merchant password</td></tr><tr><td>boi_uid</td><td>Numeric</td><td>M</td><td>Merchant id</td></tr><tr><td>card_token</td><td>Alphanumeric</td><td>M</td><td>It is a representation of the user / customer's card information that is used to make transactions</td></tr><tr><td>signature</td><td>Alphanumeric</td><td>M</td><td>sha1(md5($user_id+$passw+$bill_no))</td></tr></tbody></table>
{% endtab %}

{% tab title="Sample  Request" %}

```php
<?php
$user_id = 'bot99999';
$passw = 'p@ssw0rd';
$data =  array(
                'boi_uid' => '99999',
                'card_token' => 'card_.eyJleHAiOjE2MjU2MzkwOTUsImlhdCI6MTU5NDEwMzA5NSwiaXNzIjoiQmFuayBCUkkgLSBEQ0UiLCJqdGkiOiJkOTdlYjE5OC0zODA1LTRmNjYtYjNlMi01YTBiYWEyMWRlNzciLCJwYXJ0bmVySWQiOiLvv70iLCJzZXJ2aWNlTmFtZSI6IkREX0VYVEVSTkFMX1NFUlZJQ0UifQ.itwgLHgIPxdVAF25Ttzw6vDGxFrm7Qchj4RgGeP4ZE4bJppPIwNz-zVQNRe7yba5qGt7DflQMvp9JR5YiGRa_vk8wIZxntG-UiI6p_9e7bOny_OcvW_q5RxwyqD0lswyGglejSbeFDmOsSgXrSFgOcaj0kxUuWX5o9B32lcTzeICGrxJhnKsCh40LKvS0YhEJRoSyEJL1MjJbEeencjkbfgL59dD6ez131XgI6k3jqa4IzqQMyefk6AcLuqzzq_DbLeiJjBpilUUSOPxTocsNThEX4vdgXMOp80NVA1EO3Jqca7X1rPssyu6Xp2RdXrZp032E8QrtnYIOYvPjFOApQ'
              );
$signature = sha1(md5($user_id.$passw.json_encode($data)));
$post =  array(
                'boi_uid' => '99999',
                'card_token' => 'card_.eyJleHAiOjE2MjU2MzkwOTUsImlhdCI6MTU5NDEwMzA5NSwiaXNzIjoiQmFuayBCUkkgLSBEQ0UiLCJqdGkiOiJkOTdlYjE5OC0zODA1LTRmNjYtYjNlMi01YTBiYWEyMWRlNzciLCJwYXJ0bmVySWQiOiLvv70iLCJzZXJ2aWNlTmFtZSI6IkREX0VYVEVSTkFMX1NFUlZJQ0UifQ.itwgLHgIPxdVAF25Ttzw6vDGxFrm7Qchj4RgGeP4ZE4bJppPIwNz-zVQNRe7yba5qGt7DflQMvp9JR5YiGRa_vk8wIZxntG-UiI6p_9e7bOny_OcvW_q5RxwyqD0lswyGglejSbeFDmOsSgXrSFgOcaj0kxUuWX5o9B32lcTzeICGrxJhnKsCh40LKvS0YhEJRoSyEJL1MjJbEeencjkbfgL59dD6ez131XgI6k3jqa4IzqQMyefk6AcLuqzzq_DbLeiJjBpilUUSOPxTocsNThEX4vdgXMOp80NVA1EO3Jqca7X1rPssyu6Xp2RdXrZp032E8QrtnYIOYvPjFOApQ',
                'signature' => $signature
              );
              
              $curl_connection = curl_init('https://web.faspay.co.id/pws/bridd/deletecard');
     //set options
      curl_setopt($curl_connection, CURLOPT_CONNECTTIMEOUT, 100);
      curl_setopt($curl_connection, CURLOPT_USERAGENT, 
            'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)'); 
      curl_setopt($curl_connection, CURLOPT_RETURNTRANSFER, true); 
      curl_setopt($curl_connection, CURLOPT_SSL_VERIFYPEER, false);
      curl_setopt($curl_connection, CURLOPT_FOLLOWLOCATION, 1); 
      curl_setopt($curl_connection, CURLOPT_COOKIEFILE, "cookie2.txt"); 
      //set data to be posted
      curl_setopt($curl_connection, CURLOPT_POSTFIELDS, http_build_query($post));
     //perform our request
      $result=curl_exec($curl_connection);
     $data= json_decode($result);
      print_r($result);
     curl_close($curl_connection);
?>

```

{% endtab %}
{% endtabs %}

### Response Unbinding Card Token

Response parameters will be sent by the Faspay system in response to parameter requests that have been sent by the merchant system. If there are parameters that do not match / the value is wrong then the transaction will be rejected by Faspay's system.

{% tabs %}
{% tab title="Response Parameter" %}

<table><thead><tr><th>Parameter</th><th width="140">Data Type</th><th width="103">M/O/C</th><th>Description</th></tr></thead><tbody><tr><td>request_id</td><td>Numeric</td><td>M</td><td>ID request to delete card information</td></tr><tr><td>response_code</td><td>Alphanumeric</td><td>M</td><td>Response code</td></tr><tr><td>response_desc</td><td>Numeric</td><td>M</td><td>Description of <code>response_code</code> parameter</td></tr></tbody></table>
{% endtab %}

{% tab title="Sample Response JSON" %}
{% code overflow="wrap" %}

```json
{
  "request_id":80330411,
  "response_code":"00",
  "response_desc":"Complete Delete Card"
}
```

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

## Post Data Transaction

This process is used to send transaction data from merchants to Faspay.

### URL Endpoint Post Data&#x20;

This endpoint URL is a return URL that will process the data posted from the merchant system. 2 URLs need to be used, namely Production and Development. For testing or UAT implementation, you can use the development URL.

{% tabs %}
{% tab title="XML " %}

<table><thead><tr><th width="177">Environment</th><th>URL</th></tr></thead><tbody><tr><td>Development</td><td><a href="https://debit-sandbox.faspay.co.id/pws/300011/183xx00010100000">https://debit-sandbox.faspay.co.id/pws/300011/183xx00010100000</a></td></tr></tbody></table>
{% endtab %}

{% tab title="JSON" %}

<table><thead><tr><th width="216">Environment</th><th>URL</th></tr></thead><tbody><tr><td>Development</td><td><a href="https://debit-sandbox.faspay.co.id/cvr/300011/10">https://debit-sandbox.faspay.co.id/cvr/300011/10</a></td></tr></tbody></table>
{% endtab %}
{% endtabs %}

#### Request Parameter Post Data

The following are the parameters that must be sent by the merchant system to the Faspay system.

{% tabs %}
{% tab title="XML" %}

<pre class="language-markup"><code class="lang-markup">&#x3C;faspay>
<strong>    &#x3C;request> Transmission of Purchase Detail Info &#x3C;/request>
</strong>    &#x3C;merchant_id>99999&#x3C;/merchant_id>
    &#x3C;merchant>Sophia Store&#x3C;/merchant>
    &#x3C;bill_no>849389422312&#x3C;/bill_no>
    &#x3C;bill_reff> schlbg &#x3C;/bill_reff>
    &#x3C;bill_date>2021-02-11 07:25:00&#x3C;/bill_date>
    &#x3C;bill_expired>2021-02-28 20:04:10&#x3C;/bill_expired>
    &#x3C;bill_desc> Payment #12345678&#x3C;/bill_desc>
    &#x3C;bill_currency>IDR&#x3C;/bill_currency>
    &#x3C;bill_gross>000&#x3C;/bill_gross>
    &#x3C;bill_tax>000&#x3C;/bill_tax>
    &#x3C;bill_miscfee>000&#x3C;/bill_miscfee>
    &#x3C;bill_total>100000&#x3C;/bill_total>
    &#x3C;bill_miscdata>card_.eyJleHAiOjE2NDQ0NzI5NDAsImlhdCI6MTYxMjkzNjk0MCwiaXNzIjoiQmFuayBCUkkgLSBEQ0UiLCJqdGkiOiJkMGQ2ZWM4OS1mNzNhLTQzZjItOGE5ZS1kMWIwNThhODA1ZDkiLCJwYXJ0bmVySWQiOiLvv70iLCJzZXJ2aWNlTmFtZSI6IkREX0VYVEVSTkFMX1NFUlZJQ0UifQ.Dp3I8Cl1IcVtPNdHFWAUZpchEnK_8r6SkbDB4XhLyt8Awitq9Hr2MHPsrp6yJG3D9DDrZAnmi2CgRumj7RqNKdAO6jt7zkS4asomy4Bapstd4Y_kMzWkXWMZCLUQJjakKu4mB1IDv89dDV2-thB9QgZkWx7asMCQG-QQO4hSwo6lAEN_cg5PEknI7mbwKCWIzR26QbXfytgH4yYwhdfQcg_HELCCQ1TeMOdfo3QP2qg-RgdkdgMZIkYC3JS_1wDenjduGq-MPRSbBDwhVkUKqvSssQn2iaErR8Q5KM2yYMIVSjaYTSyau9MFwV5Br7t7aLs5ssSyCixolrxa1GHCQg&#x3C;/bill_miscdata>
    &#x3C;cust_no>1&#x3C;/cust_no>
    &#x3C;cust_name>John Doe&#x3C;/cust_name>
    &#x3C;cust_lastname> Doe &#x3C;/cust_lastname>
    &#x3C;payment_channel>714&#x3C;/payment_channel>
    &#x3C;pay_type>1&#x3C;/pay_type>
    &#x3C;bank_userid> &#x3C;/bank_userid>
    &#x3C;msisdn>081382826301&#x3C;/msisdn>
    &#x3C;email> john@gmail.com &#x3C;/email>
    &#x3C;terminal>10&#x3C;/terminal>
    &#x3C;billing_name>John&#x3C;/billing_name>
    &#x3C;billing_lastname>0&#x3C;/billing_lastname)>
    &#x3C;billing_address>Kawasan jalan pintu air raya &#x3C;/billing_address>
    &#x3C;billing_address_city> Jakarta Pusat &#x3C;/billing_address_city>
    &#x3C;billing_address_region> DKI Jakarta &#x3C;/billing_address_region>
    &#x3C;billing_address_state> Indonesia &#x3C;/billing_address_state>
    &#x3C;billing_address_poscode>10710&#x3C;/billing_address_poscode>
    &#x3C;billing_address_country_code>ID&#x3C;/billing_address_country_code>
    &#x3C;receiver_name_for_shipping>John Doe&#x3C;/receiver_name_for_shipping>
    &#x3C;shipping_address>Kawasan industri sentul.jl.olympic raya kav.b8 sentul bogor&#x3C;/shipping_address>
    &#x3C;shipping_address_city>Bogor&#x3C;/shipping_address_city>
    &#x3C;shipping_address_region>Bogor&#x3C;/shipping_address_region>
    &#x3C;shipping_address_state>Jawa Barat&#x3C;/shipping_address_state>
    &#x3C;shipping_address_poscode>16810&#x3C;/shipping_address_poscode>
    &#x3C;shipping_msisdn>08766688686&#x3C;/shipping_msisdn>
    &#x3C;shipping_address_country_code>ID&#x3C;/shipping_address_country_code>
    &#x3C;item>
        &#x3C;id>123&#x3C;/id>
    &#x3C;product> Xiaomi &#x3C;/product>
    &#x3C;qty>1&#x3C;/qty>
    &#x3C;amount>100000&#x3C;/amount>
    &#x3C;payment_plan>1&#x3C;/payment_plan>
    &#x3C;merchant_id>99999&#x3C;/merchant_id>
    &#x3C;tenor>00&#x3C;/tenor>
    &#x3C;type>Smartphone&#x3C;/type>
    &#x3C;url> http://localhost:8088/kredivo&#x3C;/url>
    &#x3C;image_url> https://cdn.mos.cms.futurecdn.net/Mffc35PH77Dq7USrHb4qNm-1200-80.jpg&#x3C;/image_url>
    &#x3C;/item>
    &#x3C;item>
    &#x3C;id>234&#x3C;/id>
    &#x3C;product> Oppo&#x3C;/product>
    &#x3C;qty>1&#x3C;/qty>
    &#x3C;amount>100000&#x3C;/amount>
    &#x3C;payment_plan>1&#x3C;/payment_plan>
    &#x3C;merchant_id>99999&#x3C;/merchant_id>
    &#x3C;tenor>00&#x3C;/tenor>
    &#x3C;type>Smartphone&#x3C;/type>
    &#x3C;url> http://localhost:8088/kredivo&#x3C;/url>
    &#x3C;image_url> https://cdn.mos.cms.futurecdn.net/Mffc35PH77Dq7USrHb4qNm-1200-80.jpg&#x3C;/image_url>
    &#x3C;/item>
    &#x3C;reserve1>0&#x3C;/reserve1 >
    &#x3C;reserve2 >&#x3C;/reserve1>
    &#x3C;signature>0d8a326853f3090251fb81b1a56f5c4d5b5f2639&#x3C;/signature>
&#x3C;/faspay>
</code></pre>

{% endtab %}

{% tab title="JSON" %}

```json
{
    "request":" Transmission of Purchase Detail Info ",
    "merchant_id":"99999",
    "merchant":"Sophia Store",
    "bill_no":"849389422312",
    "bill_reff":"schlbg",
    "bill_date":"2021-02-11 07:25:00",
    "bill_expired":"2021-02-28 20:04:10",
    "bill_desc":"Payment #12345678",
    "bill_currency":"IDR",
    "bill_gross":"0",
    "bill_tax":"0",
    "bill_miscfee":"0",
    "bill_total":"100000",
    "bill_miscdata": "card_.eyJleHAiOjE2NDQ0NzI5NDAsImlhdCI6MTYxMjkzNjk0MCwiaXNzIjoiQmFuayBCUkkgLSBEQ0UiLCJqdGkiOiJkMGQ2ZWM4OS1mNzNhLTQzZjItOGE5ZS1kMWIwNThhODA1ZDkiLCJwYXJ0bmVySWQiOiLvv70iLCJzZXJ2aWNlTmFtZSI6IkREX0VYVEVSTkFMX1NFUlZJQ0UifQ.Dp3I8Cl1IcVtPNdHFWAUZpchEnK_8r6SkbDB4XhLyt8Awitq9Hr2MHPsrp6yJG3D9DDrZAnmi2CgRumj7RqNKdAO6jt7zkS4asomy4Bapstd4Y_kMzWkXWMZCLUQJjakKu4mB1IDv89dDV2-thB9QgZkWx7asMCQG-QQO4hSwo6lAEN_cg5PEknI7mbwKCWIzR26QbXfytgH4yYwhdfQcg_HELCCQ1TeMOdfo3QP2qg-RgdkdgMZIkYC3JS_1wDenjduGq-MPRSbBDwhVkUKqvSssQn2iaErR8Q5KM2yYMIVSjaYTSyau9MFwV5Br7t7aLs5ssSyCixolrxa1GHCQg",
    "cust_no":"1",
    "cust_name":"John Doe",
    "cust_lastname":"Doe",
    "payment_channel":"714",
    "pay_type":"1",
    "bank_userid":"",
    "msisdn":"081382829999",
    "email":"john@gmail.com",
    "terminal":"10",
    "billing_name":"John",
    "billing_lastname":"0",
    "billing_address":"jalan pintu air raya",
    "billing_address_city":"Jakarta Pusat",
    "billing_address_region":"DKI Jakarta",
    "billing_address_state":"Indonesia",
    "billing_address_poscode":"10710",
    "billing_msisdn":"",
    "billing_address_country_code":"ID",
    "receiver_name_for_shipping":"John Doe",
    "shipping_lastname":"",
    "shipping_address":" Kawasan industri sentul.jl.olympic raya kav.b8 sentul bogor ",
    "shipping_address_city":"Bogor",
    "shipping_address_region":"Bogor",
    "shipping_address_state":"Jawa Barat",
    "shipping_address_poscode":"16810",
    "shipping_msisdn":"08766688686",
    "shipping_address_country_code":"ID",
    "item":[{   
            "id":"123",
            "product":"Xiaomi",
            "qty":"1",
            "amount":"100000",
            "payment_plan":"01",
            "merchant_id":"99999",
            "tenor":"00",
            "type":"Smartphone",
            "url":"http://localhost:8088/kredivo",
            "image_url":"https://cdn.mos.cms.futurecdn.net/Mffc35PH77Dq7USrHb4qNm-1200-80.jpg"
  
    },
    {   
            "id":"234",
            "product":"Oppo",
            "qty":"1",
            "amount":"100000",
            "payment_plan":"01",
            "merchant_id":"99999",
            "tenor":"00",
            "type":"Smartphone",
            "url":"http://localhost:8088/kredivo",
            "image_url":"https://cdn.mos.cms.futurecdn.net/Mffc35PH77Dq7USrHb4qNm-1200-80.jpg"
    }],
    "reserve1":"0",
    "reserve2":"",
    "signature":"0d8a326853f3090251fb81b1a56f5c4d5b5f2639"
}
```

{% endtab %}
{% endtabs %}

#### Response Post Data&#x20;

Response parameters are parameters that will be sent by the Faspay system in response to parameter requests that have been sent by the merchant system. If there are parameters that do not match / the value is wrong then the transaction will be rejected by Faspay's system.

{% tabs %}
{% tab title="XML" %}

```markup
<?xml version="1.0" encoding="UTF-8"?>
<faspay>
    <response>Transmission of Detail Info</response>
    <trx_id>9999971430152848</trx_id>
    <merchant_id>99999</merchant_id> 
    <merchant> Sophia Store </merchant>
    <bill_no>849389422312</bill_no>
    <bill_items>
<id>123</id>
<product> Xiaomi </product>
<qty>1</qty>
<amount>100000</amount>
<payment_plan>1</payment_plan>
<merchant_id>99999</merchant_id>
<tenor>00</tenor>
<type>Smartphone</type>
<url> http://localhost:8088/kredivo</url>
<image_url> https://cdn.mos.cms.futurecdn.net/Mffc35PH77Dq7USrHb4qNm-1200-80.jpg</image_url>
    </bill_items>
    <bill_items>
<id>234</id>
<product> Oppo</product>
<qty>1</qty>
<amount>100000</amount>
<payment_plan>1</payment_plan>
<merchant_id>99999</merchant_id>
<tenor>00</tenor>
<type>Smartphone</type>
<url> http://localhost:8088/kredivo</url>
<image_url> https://cdn.mos.cms.futurecdn.net/Mffc35PH77Dq7USrHb4qNm-1200-80.jpg</image_url>
    </bill_items>
    <response_code>00</response_code>
    <response_desc>Success</response_desc>
</faspay>
```

{% endtab %}

{% tab title="JSON" %}

```json
{
   "response":" Transmission of Purchase Detail Info",
   "trx_id":"9999971430152848",
   "merchant_id":"99999",
   "merchant":"Sophia Store",
   "bill_no":"849389422312",
   "bill_items":[
      {
         "id":"123",
         "product":"Xiaomi",
         "qty":"1",
         "amount":"100000",
         "payment_plan":"01",
         "merchant_id":"99999",
         "tenor":"00",
         "type":"Smartphone",
         "url":"http://localhost:8088/kredivo",
         "image_url":"https://cdn.mos.cms.futurecdn.net/Mffc35PH77Dq7USrHb4qNm-1200-80.jpg"
      },
      {
         "id":"234",
         "product":"Oppo",
         "qty":"1",
         "amount":"100000",
         "payment_plan":"01",
         "merchant_id":"99999",
         "tenor":"00",
         "type":"Smartphone",
         "url":"http://localhost:8088/kredivo",
         "image_url":"https://cdn.mos.cms.futurecdn.net/Mffc35PH77Dq7USrHb4qNm-1200-80.jpg"
      }
   ],
   "response_code":"00",
   "response_desc":"Success",
   "redirect_url":"https://web.faspay.co.id/pws/100003/2830000010100000/0d8a326853f3090251fb81b1a56f5c4d5b5f2639?trx_id=9999971430152848&merchant_id=99999&bill_no=849389422312"
}
```

{% endtab %}
{% endtabs %}

#### Redirect Process&#x20;

For the BRI Direct Debit channel redirect process API is basically like any other debit channel, To redirect a customer to the online debit website, use `redirect_url` that retrieved from Post Data Transaction response (JSON Format)


---

# Agent Instructions: 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:

```
GET https://docs.faspay.co.id/merchant-integration/api-reference-1/debit-transaction/online-debit/bri-direct-debit.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
