| Method | Path | Format | Authentication |
|---|
| POST | /api/v1.0/disbursement/{account_id}/check-fee | json | OAuth 2.0 with Access Token |
| Field | Value | Type | Mandatory | Length | Description | Example |
|---|
| X-PARTNER-ID | api_key | Alphanumeric | Mandatory | | API key obtained from the merchant dashboard. | b3ed7d4b-a96c-6c08-b3c7-12c3124242d9 |
| Accept | application/json | Alphabetic | Mandatory | | Specifies JSON as the expected response format. | application/json |
| Authorization | Bearer {bearerToken} | Alphanumeric | Mandatory | | Bearer token obtained from the get access token endpoint. | Bearer eyJ0eXAiOiJKV1{…} |
| Field | Type | Mandatory | Length | Description | Example |
|---|
| amount | Numeric | Mandatory | - | The transaction amount to check the fee for. | 50000 |
| bank_swift_code | Alphanumeric | Mandatory | - | The SWIFT code of the destination bank. | BRINIDJA |
{
"amount": 50000,
"bank_swift_code": "BRINIDJA"
}
| Field | Type | Mandatory | Length | Description | Example |
|---|
| status | Numeric | Mandatory | 3 | HTTP Status Code. | 200 |
| success | Boolean | Mandatory | - | Indicates if the request was successful. true for 2xx, false otherwise. | true |
| data | Object | Conditional | - | Contains the response data if the request is successful. | |
| > gross_amount | String | Mandatory | - | The initial transaction amount. | “50000” |
| > transfer_fee | String | Mandatory | - | The fee for the transfer. | “3000.00” |
| > net_amount | String | Mandatory | - | The amount after deducting the transfer fee | “47000” |
| > currency | String | Mandatory | 3 | The currency code | “IDR” |
| > beneficiary | Object | Mandatory | - | Details of the beneficiary bank. | |
| >> full_name | String | Mandatory | - | The full name of the beneficiary bank. | “Bank Rakyat Indonesia” |
| >> short_name | String | Mandatory | - | The short name or abbreviation of the beneficiary bank. | “BRI” |
Success: Here’s an example of a successful response.
{
"status": 200,
"success": true,
"data": {
"gross_amount": "50000",
"transfer_fee": "3000.00",
"net_amount": "47000",
"currency": "IDR",
"beneficiary": {
"full_name": "Bank Rakyat Indonesia",
"short_name": "BRI"
}
}
}