Dark Mode

MDR Fees Calculation API


The following endpoint retrieves the calculated MDR fees for each payment method

/merchants/mdr_fees

Run in Postman

Request Attributes

Following are the parameters to be sent in the request body:

amount

String
Mandatory

The amount paid by the customer

payment_method

String
Optional

The payment method by which you want to calculate the MDR fees | If left blank, the response will return calculation of all payment methods. To get a specific payment method fee, you can use any of the value listed: GOPAY, DD_CIMB, QRIS, SHOPEEPAY, OTHERS, INDOMARET, BRI, ALFAMART, JENIUSPAY, BCA, DD_BRI, CARD, BNI, OVO, DANA, MANDIRI, PERMATA, LINKAJA, DANAMON, CIMB, SYARIAH

Response Attributes

For each of the payment method we will get a key representing payment_method_id and the value will be an object listed below:

actual_amount

Float

The total amount which has been added to the topup balance

fees

Float

The amount to be paid as a service fee for the top up

total_amount

Float

The complete amount which was paid by the customer

Example
curl -u [Base64({Your_Server_Key}:)] \
-X GET https://api.durianpay.id/v1/merchants/mdr_fees?amount=500000&payment_method=all \
-H "content-type: application/json"'

Response Code

200 - Success

1
2
3
4
5
6
7
8
9
10
11
12
13
14
{
    "data": {
        "OVO": {
            "actual_amount": 492500,
            "fees": 7500,
            "total_amount": 500000
        },
        "SHOPEEPAY": {
            "actual_amount": 492500,
            "fees": 7500,
            "total_amount": 500000
        }
    }
}

401 - Unauthorized Access