# Payout request for buyer and seller

<div drawio-diagram="66"><img src="https://documentation.onindonesia.id/uploads/images/drawio/2024-02/drawing-3-1708932005.png" alt=""/></div>

##### Notes

- There is additional fee Rp 2.500 in [this page](https://www.xendit.co/en-id/pricing/?utm_source=google&utm_medium=cpc&utm_campaign=BKWS-Exact-ID-EN&utm_content=onboarding&utm_term=xendit%20pricing&gclid=Cj0KCQiAw6yuBhDrARIsACf94RUCuOcFXMmocbjeh-8r39r8ZdgH0_wNvL09ga8gcmrneNkHvLn8kqcaAuGREALw_wcB), but at the time we test, there is no additional cuts to recipient nor from xendit.

##### Endpoint

<table border="1" id="bkmrk-endpoint-method-auth" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 20.0279%;"></col><col style="width: 20.0279%;"></col><col style="width: 40.0558%;"></col><col style="width: 20.0279%;"></col></colgroup><tbody><tr><td>**Endpoint**</td><td>**Source**</td><td>**Method**  
</td><td>**Authentication**</td></tr><tr><td><div><div><div><div>/payout/request</div></div></div></div></td><td><div><div><div><div>USAPI</div></div></div></div></td><td>POST</td><td>Yes</td></tr></tbody></table>

##### Authentication

<table border="1" id="bkmrk-endpoint-method-serv" style="border-collapse: collapse; width: 100%; height: 59.757px;"><colgroup><col style="width: 29.5467%;"></col><col style="width: 45.5054%;"></col><col style="width: 24.9617%;"></col></colgroup><tbody><tr style="height: 29.8785px;"><td style="height: 29.8785px;">**Type**  
</td><td style="height: 29.8785px;">**Token source**  
</td><td style="height: 29.8785px;">**Usage**  
</td></tr><tr style="height: 29.8785px;"><td style="height: 29.8785px;">Bearer</td><td style="height: 29.8785px;">argon2id encryption

vlskdfgn&gt;iow358u2rlwnfe!@23q58qwegdf

</td><td style="height: 29.8785px;">"Bearer &lt;string&gt;"

</td></tr></tbody></table>

##### Body request

```json
{
  "username": <string>,
  "amount": <integer>,
  "platform" : <string>,
  "bank_channel": <string>,
  "bank_account_name": <string>,
  "bank_account_number": <string>
}
```

<table border="1" id="bkmrk-properties-propertie" style="border-collapse: collapse; width: 100%; height: 60.5938px;"><colgroup><col style="width: 22.7478%;"></col><col style="width: 14.8295%;"></col><col style="width: 15.3276%;"></col><col style="width: 11.0012%;"></col><col style="width: 36.0939%;"></col></colgroup><tbody><tr style="height: 30.7969px;"><td style="height: 30.7969px;">**Properties**  
</td><td style="height: 30.7969px;">**Properties of**</td><td style="height: 30.7969px;">**Data type**</td><td style="height: 30.7969px;">**Required**</td><td>**notes**</td></tr><tr><td>username</td><td>  
</td><td>string</td><td>yes</td><td>Username affiliated for payout from USAPI</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">amount</td><td style="height: 29.7969px;">  
</td><td style="height: 29.7969px;">integer</td><td style="height: 29.7969px;">yes</td><td>minimum amount is 50000</td></tr><tr><td>platform</td><td>  
</td><td>string</td><td>yes</td><td>Platform lists:  
<div><div>- ONDELIVERY
- ONMARKET

</div></div></td></tr><tr><td>bank\_channel</td><td>  
</td><td>string</td><td>yes</td><td>ID of Bank channel. Click the provided link for the list

[Bank List Link](https://documentation.onindonesia.id/books/xendittransaction/page/bank-list "Bank List Link")

</td></tr><tr><td>bank\_account\_name</td><td>  
</td><td>string</td><td>yes</td><td>Bank account holder name.</td></tr><tr><td>bank\_account\_number</td><td>  
</td><td>string</td><td>yes</td><td>Bank account number.</td></tr></tbody></table>

<details id="bkmrk-request-example-body"><summary>Request example</summary>

  
```json
{
    "username": "usernew1",
    "amount": 60000,
    "platform": "ONMARKET",
    "bank_channel": "ID_BCA",
    "bank_account_name": "TEST",
    "bank_account_number": "000000"
}
```

</details><details id="bkmrk-result-example-body-"><summary>Result example</summary>

<p class="callout info">200 (OK)</p>

```javascript
{
    "message": "PAYOUT PROCESSED"
}
```

</details><details id="bkmrk-error-example-body-r"><summary>Error example</summary>

<p class="callout danger">400 Bad Request</p>

<p class="callout warning">User balance is less than requested amount</p>

```json
{
    "message": "Insufficient Fund"
}
```

<p class="callout warning">Requested amount is less than minimum amount</p>

```json
{
    "message": "must be >= 10000"
}
```

<p class="callout warning">Parameter(s) required</p>

```json
{
    "message": "Must have required property <parameter>"
}
```

<p class="callout warning"><span style="color: rgb(232, 92, 91);">500 </span><span style="color: rgb(232, 92, 91);">Internal Server Error</span>  
</p>

```json
{
    "message": "Internal Error"
}
```

</details>