> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chip-in.asia/llms.txt
> Use this file to discover all available pages before exploring further.

# Test Integration

> Test integration tutorial

# Requirements

<Card title="Bearer token" icon="key" horizontal>
  Refer here for [bearer token](/chip-send/api-reference/introduction#credentials)
</Card>

<Card title="Pre-Request Script" icon="code" horizontal>
  Refer here for [pre-request script](/chip-send/api-reference/script)
</Card>

# Flows

After the bearer token and pre-request script has been added, follow this steps to test CHIP Send features.
This is the flow from checking the convertible balance to completing the payout to the recipient bank.

<Steps>
  <Step title="Check convertible balance">
    Check convertible balance using [Accounts API](/chip-send/api-reference/accounts/list). <br />
    The convertible balance can be found in the response body under the parameter `convertible_balance_from_statement`
    <Info>Virtual RM1,000 is available for conversion daily in staging mode</Info>
  </Step>

  <Step title="Allocate balance to CHIP Limit">
    Allocate balance using [Create Send Limit API](#/Send%20Limits/send_limits_create).

    ```js theme={null}
    {
        "amount" : 2000
    }
    ```
  </Step>

  <Step title="Add recipient bank">
    Add recipient bank using [Add Bank Account API](/chip-send/api-reference/bank-accounts/create).

    ```js theme={null}
    {
        "name" : "Vendor bank",
        "account_number" : "5861122242",
        "bank_code" : "OCBCMYKL"
    }
    ```
  </Step>

  <Step title="Send funds to the recipient bank">
    Send funds to the recipient bank using [Create Send Instruction API](/chip-send/api-reference/send-instructions/create).

    ```js theme={null}
    {
        "bank_account_id" : 1,
        "amount" : 1000,
        "email" : "vendor@gmail.com",
        "description" : "supplies",
        "reference" : "invoice-123"
    }
    ```

    Get bank account id using [Bank Accounts List API](/chip-send/api-reference/bank-accounts/list).
    <Warning>Reference must be unique</Warning>
  </Step>
</Steps>
