# BNC VA Static Integration

## API Service

### POST Data Static Transaction

POST data service in the static transaction is the same as dynamic Post-Data. However, there are differences in `bill_no` parameter.

If the static transaction, Faspay will generate a Virtual Account number when sending POST data to the BNC System.

#### EndPoint URL Post-Data&#x20;

<table><thead><tr><th width="99.33333333333331">Type</th><th>Development</th></tr></thead><tbody><tr><td><strong>XML</strong></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><tr><td><strong>JSON</strong></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>

#### Static Transaction Request

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

<table><thead><tr><th width="292">Parameter</th><th width="215">Data Type</th><th width="100">M/O/C</th><th width="195">Description</th></tr></thead><tbody><tr><td>request</td><td>Alphanumeric (50)</td><td>M</td><td>Request description</td></tr><tr><td>merchant_id</td><td>Numeric (5)</td><td>M</td><td>Merchant code from Faspay= BOI</td></tr><tr><td>merchant</td><td>Alphanumeric (32)</td><td>M</td><td>Merchant name</td></tr><tr><td>bill_no</td><td>Numeric (19)</td><td>M</td><td><p>VA format: </p><p>Prefix from Faspay (11 digits) + free digits (8 digits)</p></td></tr><tr><td>bill_reff</td><td>Alphanumeric (32)</td><td>O</td><td>Booking Number/reference (can fill same with order no)</td></tr><tr><td>bill_date</td><td>Datetime YYYY-MM-DD HH:MM:SS</td><td>M</td><td>Transaction/ Order Date</td></tr><tr><td>bill_expired</td><td>Datetime YYYY-MM-DD HH:MM:SS</td><td>M</td><td>Payment Expiring Date (max 30 days)</td></tr><tr><td>bill_desc</td><td>Alphanumeric (128)</td><td>M</td><td>Transaction Description</td></tr><tr><td>bill_currency</td><td>Char (3)</td><td>M</td><td>Currency, Must be 'IDR'</td></tr><tr><td>bill_gross</td><td>Numeric (15)</td><td>O</td><td>Order Nominal without tax</td></tr><tr><td>bill_tax</td><td>Numeric (15)</td><td>O</td><td>Tax (IDR)</td></tr><tr><td>bill_miscfee</td><td>Numeric (15)</td><td>O</td><td>Miscellaneous fee</td></tr><tr><td>bill_total</td><td>Numeric (15)</td><td>M</td><td>Total Nominal. If transaction is <strong>Open Amount</strong>, will be set to 0</td></tr><tr><td>cust_no</td><td>Alphanumeric (32)</td><td>M</td><td>Customer Number</td></tr><tr><td>cust_name</td><td>Alphanumeric (128)</td><td>M</td><td>Customer Name</td></tr><tr><td>cust_lastname</td><td>Alphanumeric (128)</td><td>M</td><td>Customer Last Name</td></tr><tr><td>payment_channel</td><td>Numeric (3)</td><td>M</td><td>Payment Channel Code</td></tr><tr><td>pay_type</td><td>Alphanumeric (1)</td><td>M</td><td><p>Payment code: </p><ul><li>1: Full Settlement </li><li>2: Installment </li><li>3: Mixed 1 &#x26; 2</li></ul></td></tr><tr><td>bank_user_id</td><td>Alphanumeric (128)</td><td>O</td><td>Customer User ID on bank’s services (ex : KlikBCA User Id)</td></tr><tr><td>msisdn</td><td>Numeric (64)</td><td>M</td><td>Customer Mobile Phone</td></tr><tr><td>email</td><td>Alphanumeric (128)</td><td>M</td><td>Email</td></tr><tr><td>terminal</td><td>Numeric (2)</td><td>M</td><td><p>Terminal Origin </p><p>10. Web </p><p>20. MobApp Blackberry </p><p>21. MobApp Android </p><p>22. MobAppiOS </p><p>23. MobApp Windows </p><p>24. MobApp Symbian </p><p>30. TabApp BlackBerry </p><p>31. TabApp Android 32. TabAppiOS </p><p>33. TabApp Windows</p></td></tr><tr><td>billing_name</td><td>Alphanumeric</td><td>C</td><td>Billing name</td></tr><tr><td>billing_lastname</td><td>Alphanumeric</td><td>C</td><td>Billing last name</td></tr><tr><td>billing_address</td><td>Alphanumeric (200)</td><td>O</td><td>Billing address</td></tr><tr><td>billing_address_city</td><td>Alphanumeric (50)</td><td>O</td><td>Billing City</td></tr><tr><td>billing_address_region</td><td>Alphanumeric (100)</td><td>O</td><td>Billing Addres Region</td></tr><tr><td>billing_address_state</td><td>Alphanumeric (100)</td><td>O</td><td>Billing Address State</td></tr><tr><td>billing_address_poscode</td><td>Alphanumeric (10)</td><td>O</td><td>Billing Address Pos Code</td></tr><tr><td>billing_msisdn</td><td>Alphanumeric (10)</td><td>O</td><td>Billing number phone</td></tr><tr><td>billing_address_country_code</td><td>Alphanumeric (10)</td><td>O</td><td>Billing Address Country Code</td></tr><tr><td>receiver_name_for_shipping</td><td>Alphanumeric (100)</td><td>O</td><td>Receiver Name</td></tr><tr><td>shipping_lastname</td><td>Alphanumeric (100)</td><td>O</td><td>Shipping Last Name</td></tr><tr><td>shipping_address</td><td>Alphanumeric (200)</td><td>O</td><td>Shipping Address</td></tr><tr><td>shipping_address_city</td><td>Alphanumeric (50)</td><td>O</td><td>Shipping Address City</td></tr><tr><td>shipping_address_region</td><td>Alphanumeric (100)</td><td>O</td><td>Shipping Address Region</td></tr><tr><td>shipping_address_state</td><td>Alphanumeric (100)</td><td>O</td><td>Shipping Address State</td></tr><tr><td>shipping_address_poscode</td><td>Alphanumeric (10)</td><td>O</td><td>Shipping Address Pos Code</td></tr><tr><td>shipping_msisdn</td><td>Numeric</td><td>O</td><td>Shipping number phone</td></tr><tr><td>shipping_address_country_code</td><td>Alphanumeric (10)</td><td>O</td><td>Shipping Address Country Code</td></tr><tr><td>reserve1</td><td>Alphanumeric (50)</td><td>O</td><td></td></tr><tr><td>reserve2</td><td>Alphanumeric (50)</td><td>C</td><td></td></tr><tr><td>signature</td><td>Alphanumeric (100)</td><td>M</td><td>sha1(md5(user_id merchant + password merchant + bill_no))</td></tr></tbody></table>
{% endtab %}

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

```xml
<faspay>
  <request>Transmission of Purchase Detail Info</request>
  <merchant_id>99999</merchant_id>
  <merchant>Sophia Store</merchant>
  <bill_no>9022222298758909234</bill_no>
  <bill_reff>fspytrx</bill_reff>
  <bill_date>2022-07-01 10:00:00</bill_date>
  <bill_expired>2022-07-21 06:04:10</bill_expired>
  <bill_desc>Payment #12345678</bill_desc>
  <bill_currency>IDR</bill_currency>
  <bill_gross>0</bill_gross>
  <bill_tax>0</bill_tax>
  <bill_miscfee>0</bill_miscfee>
  <bill_total>1000000</bill_total>
  <cust_no>1</cust_no>
  <cust_name>John Doe</cust_name>
  <cust_lastname>Doe</cust_lastname>
  <payment_channel>718</payment_channel>
  <pay_type>1</pay_type>
  <bank_userid></bank_userid>
  <msisdn></msisdn>
  <email></email>
  <terminal>10</terminal>
  <billing_name>John Doe</billing_name>
  <billing_lastname>Doe</billing_lastname>
  <billing_address>jalan pintu air raya</billing_address>
  <billing_address_city>Jakarta Pusat</billing_address_city>
  <billing_address_region>DKI Jakarta</billing_address_region>
  <billing_address_state>Indonesia</billing_address_state>
  <billing_address_poscode>10710</billing_address_poscode>
  <billing_msisdn>08766688686</billing_msisdn>
  <billing_address_country_code>ID</billing_address_country_code>
  <receiver_name_for_shipping>John Doe</receiver_name_for_shipping>
  <shipping_lastname></shipping_lastname>
  <shipping_address>jalan pintu air raya</shipping_address>
  <shipping_address_city>Jakarta Pusat</shipping_address_city>
  <shipping_address_region>DKI Jakarta</shipping_address_region>
  <shipping_address_state>Indonesia</shipping_address_state>
  <shipping_address_poscode>10710</shipping_address_poscode>
  <shipping_msisdn>08766688686</shipping_msisdn>
  <shipping_address_country_code>ID</shipping_address_country_code>
  <reserve1>0</reserve1>
  <reserve2></reserve2>
  <signature>053c77aa2341feb7df385b0efdde1e7a42a5a238</signature>
</faspay>
```

{% endtab %}

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

```json
{
   "faspay": {
      "request": "Transmission of Purchase Detail Info",
      "merchant_id": "99999",
      "merchant": "Sophia Store",
      "bill_no": "9022222298758909234",
      "bill_reff": "fspytrx",
      "bill_date": "2022-07-01 10:00:00",
      "bill_expired": "2022-07-21 06:04:10",
      "bill_desc": "Payment #12345678",
      "bill_currency": "IDR",
      "bill_gross": "0",
      "bill_tax": "0",
      "bill_miscfee": "0",
      "bill_total": "1000000",
      "cust_no": "1",
      "cust_name": "John Doe",
      "cust_lastname": "Doe",
      "payment_channel": "718",
      "pay_type": "1",
      "bank_userid": "",
      "msisdn": "",
      "email": "",
      "terminal": "10",
      "billing_name": "John Doe",
      "billing_lastname": "Doe",
      "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": "08766688686",
      "billing_address_country_code": "ID",
      "receiver_name_for_shipping": "John Doe",
      "shipping_lastname": "",
      "shipping_address": "jalan pintu air raya",
      "shipping_address_city": "Jakarta Pusat",
      "shipping_address_region": "DKI Jakarta",
      "shipping_address_state": "Indonesia",
      "shipping_address_poscode": "10710",
      "shipping_msisdn": "08766688686",
      "shipping_address_country_code": "ID",
      "reserve1": "0",
      "reserve2": "",
      "signature": "053c77aa2341feb7df385b0efdde1e7a42a5a238"
   }
}
```

{% endtab %}
{% endtabs %}

#### Static Transaction Response

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

<table><thead><tr><th width="167">Parameter</th><th width="171">Data Type</th><th width="126">M/O/C</th><th>Description</th></tr></thead><tbody><tr><td>response</td><td>Alphanumeric (50)</td><td>O</td><td>Response description</td></tr><tr><td>trx_id</td><td>Numeric (16)</td><td>M</td><td>Transaction ID (generated by Faspay)</td></tr><tr><td>merchant_id</td><td>Numeric (5)</td><td>M</td><td>Merchant Code From Faspay = BOI</td></tr><tr><td>merchant</td><td>Alphanumeric (32)</td><td>M</td><td>Merchant’s name</td></tr><tr><td>bill_no</td><td>Numeric (19)</td><td>M</td><td>Virtual account number</td></tr><tr><td>bill_items</td><td>Object</td><td>O</td><td>Billing items / purchase items</td></tr><tr><td>     product</td><td>Alphanumeric (50)</td><td>M</td><td>Item Name</td></tr><tr><td>     amount</td><td>Numeric</td><td>M</td><td>Item Price</td></tr><tr><td>     qty</td><td>Numeric</td><td>M</td><td>Item Quantity</td></tr><tr><td>response_code</td><td>Numeric (2)</td><td>M</td><td><p>Response code<br>00 : Success</p><p>01 : Failed</p></td></tr><tr><td>response_desc</td><td>Alphanumeric (32)</td><td>M</td><td>Response decription of code</td></tr><tr><td>redirect_url</td><td>Alphanumeric</td><td>M</td><td>Direct to BNC's Payment Page</td></tr></tbody></table>
{% endtab %}

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

```xml
<faspay>
	<response>Transmission of Purchase Detail Info</response>
	<trx_id>9999971887488335</trx_id>
	<merchant_id>99999</merchant_id>
	<merchant>Sophia Store</merchant>
	<bill_no>9022222298758909234</bill_no>
	<bill_items></bill_items>
	<response_code>00</response_code>
	<response_desc> Success</response_desc>
</faspay>

```

{% endtab %}

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

```json
{
    "response": "Transmission of Purchase Detail Info",
    "trx_id": "9999971887488335",
    "merchant_id": "99999",
    "merchant": "Sophia Store",
    "bill_no": "9022222298758909234",
    "bill_items": [
        {
            "product": "Cooking Oil",
            "amount": "5000000",
            "qty": "1"
        },

        {
            "product": "Children's Books",
            "amount": "5000000",
            "qty": "1"
        }
    ],
    "response_code": "00",
    "response_desc": "Success",
    "redirect_url": "https://debit-dev.faspay.co.id/pws/100003/0830000010100000/09b2a8ed8e6bfe936cd24e69c12f675779ea240d?trx_id=9999972133133756&merchant_id=99999&bill_no=84938942"
}
```

{% endtab %}
{% endtabs %}


---

# 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/features/static-transaction/bnc-va-static-integration.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.
