Bank Response Codes

Denied by Bank - Response Codes

When a charge request for Credit Card is received, there are layers of security that it has to go through. The last one would be the Bank’s automated authorization system. The bank’s authorization system take various factors into account, such as spending habits, account balance, card information, etc.

In cases where your customers’ transactions are declined by the banks, Midtrans shares as much information as what we receive from the bank, through HTTP notification and within the dashboard (Merchant Administration Portal). Information through API is in the form of codes, while information on Dashboard is in the form of words (more user friendly).

While in some cases the banks may provide helpful explanation such as “insufficient funds”, “stolen cards”, “expired cards”, unfortunately some other explanation such as “do not honour” are rather generic where it is less likely to know the exact reason for decline of payment. Please see the meaning of "do not honour" here.

After logging into the dashboard, go to “transactions” tab and click on the denied transaction that you would like to find out more about and you will be redirected to the page below. Click on the “See Why” to see the “Insufficient funds (51)” bubble.

Here is the an example of how the charge response API sent by Midtrans. Please refer to the “status_message” field below.

 "transaction_id": "d005eb64-4fb4-4f59-b52c-66e77f62343d",
 "merchant_id": "A100000000000002222322",
 "payment_type": "credit_card",
 "order_id": "166722004",
 "body": {
   "status_code": "202",
   "status_message": "Deny by Bank [MANDIRI] with code [05]",
   "transaction_id": "d00tyb64-4fb4-4f59-b52c-66e77f62343d",
   "order_id": "166722004",
   "gross_amount": "502546.00",
   "payment_type": "credit_card",
   "transaction_time": "2017-08-16 16:22:14",
   "transaction_status": "deny",
   "fraud_status": "accept",
   "approval_code": "454315",
   "eci": "06",
   "masked_card": "409766-0047",
   "bank": "mandiri"
 "transcript_type": "Charge",
 "body_type": "Response"

In this example, we can see that the denied by bank code is 05.

You may refer to the list of codes here for more explanation for meaning of each codes.

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