Can I charge service fees to my customers?

Standard Midtrans procedure, transaction fees will be charged to merchants who carry out the collaboration process to use Midtrans services.

If you want the transaction fee to be charged to your customer, then please add the transaction fee to the final value (gross_amount parameter) that you want to send to Midtrans API.
An example of the API can be seen below:

{
    "transaction_details": {
       "order_id": "CustOrder-102",
       "gross_amount": 8000
},
"item_details": [
    {
      "id": "a01",
      "price": 7000,
      "quantity": 1,
      "name": "Apple"
    },
    {
     "id": "b02",
     "price": 1000,
     "quantity": 1,
     "name": "Biaya Transaksi"
     }
]
{

Make sure the total amount in item_details is the same as the gross_amount to avoid errors.

For the details, you can see in our technical documentation here.

Was this article helpful?
1 out of 1 found this helpful
Can't find your answer? How about looking at our Tech Docs?

Tech docs

Our API and plug-ins play well with platforms from PHP, Shopify, Woo Commerce to Android and many more.

Learn more