> ## 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 have been added, follow these steps to test the CHIP Send features.
This flow walks you through checking the convertible balance and completing a payout to a recipient bank.

<Steps>
  <Step title="Check convertible balance">
    Check the convertible balance using the [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 Send Limit">
    Allocate balance using the [Create Send Limit API](/chip-send/api-reference/send-limits/create).

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

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

    ```js theme={null}
    {
        "name" : "Ahmad Razali",
        "account_number" : "157380112229",
        "bank_code" : "MBBEMYKL",
        "reference" : "VENDOR-EMP-001"
    }
    ```
  </Step>

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

    ```js theme={null}
    {
        "bank_account_id" : 1,
        "amount" : 1000,
        "email" : "recipient@example.com",
        "description" : "Vendor payout for invoice INV-2024-0892",
        "reference" : "INV-2024-0892",
        "send_recipient_receipt" : true
    }
    ```

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