# Create Disbursement

Send money at scale to all bank accounts & eWallets in Indonesia using Xendit’s Disbursements. We currently support disbursements to 140+ local banks, virtual accounts of the biggest banks (BRI, BNI, Mandiri, CIMB Niaga, Permata, BTN, and NOBU Bank) and eWallets (e.g. Gopay, OVO, DANA, LinkAja & Shopee Pay). View all supported destination [here](https://docs.xendit.co/xendisburse/channel-codes).

<mark style="color:green;">`POST`</mark> `https://us-central1-appgregator.cloudfunctions.net/xendit/disbursement/`

#### Query Parameters

| Name                                               | Type   | Description     |
| -------------------------------------------------- | ------ | --------------- |
| name<mark style="color:red;">\*</mark>             | String | ft-4            |
| connection\_name<mark style="color:red;">\*</mark> | String | xendit-sanbox-1 |

#### Headers

| Name      | Type   | Description |
| --------- | ------ | ----------- |
| x-api-key | String | U2Fsd...    |

{% tabs %}
{% tab title="201: Created Success" %}

```javascript
{
    "status": "PENDING",
    "user_id": "6279ce4495d10c9afc3171b8",
    "external_id": "INV002-DISB",
    "amount": 10090000,
    "bank_code": "BNI",
    "account_holder_name": "MUHAMMAD RIZAL ASSHIDIEQY",
    "disbursement_description": "Reimbursement for shoes",
    "id": "62f4c8878dbbf6cb3d9b22c6",
    "project_name": "ft-4",
    "connection_name": "xendit-sanbox-1"
}
```

{% endtab %}
{% endtabs %}

<details>

<summary>Body JSON</summary>

```
{
    "external_id": "INV002-DISB",
    "amount": "90000",
    "bank_code": "BCA",
    "account_holder_name": "MUHAMMAD RIZAL ASSHIDIEQY",
    "account_number": "6041013521",
    "description": "Reimbursement for shoes"
}
```

</details>

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

<pre class="language-shell"><code class="lang-shell"><strong>curl --location --request POST 'https://us-central1-appgregator.cloudfunctions.net/xendit/disbursement?name=ft-4&#x26;connection_name=xendit-sanbox-1' \
</strong>--header 'x-api-key: U2Fsd...' \
--header 'Content-Type: application/json' \
--data-raw '{
    "external_id": "INV002-DISB",
    "amount": "90000",
    "bank_code": "BCA",
    "account_holder_name": "MUHAMMAD RIZAL ASSHIDIEQY",
    "account_number": "6041013521",
    "description": "Reimbursement for shoes"
}'
</code></pre>

{% endtab %}

{% tab title="NodeJs - Axios" %}

```javascript
var axios = require('axios');
var data = JSON.stringify({
  "external_id": "INV002-DISB",
  "amount": "90000",
  "bank_code": "BCA",
  "account_holder_name": "MUHAMMAD RIZAL ASSHIDIEQY",
  "account_number": "6041013521",
  "description": "Reimbursement for shoes"
});

var config = {
  method: 'post',
  url: 'https://us-central1-appgregator.cloudfunctions.net/xendit/disbursement?name=ft-4&connection_name=xendit-sanbox-1',
  headers: { 
    'x-api-key': 'U2Fsd...', 
    'Content-Type': 'application/json'
  },
  data : data
};

axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
vas
```

{% 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://edrus.gitbook.io/appgregator-api-docs/appgregators/payment-gateway/xendit-indonesia-final-version/api/disbursements/create-disbursement.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.
