Midtrans Status Codes

Status Codes used by Midtrans API are categorized into 2xx, 3xx, 4xx dan 5xx.


Code 2xx


StatusDescription
200Credit Card: Success. Request is successful, and transaction is successful (authorize, capture, settlement, cancel, get order, approve challenge transactions), accepted by Midtrans and bank.
Other payment methods: Success. Transaction is successful/settlement.
201Credit Card: Pending. Transaction is successfully made but the 3D secure process has yet to be completed. Transaction will expire expire within 10 minutes. Bank Transfer: Pending. Transaction successfully sent to bank but the process has not been completed by the customer. By default the transaction will expire within 24 hours.
CIMB Clicks: Pending. Transaction successfully sent to bank but the process has not been completed by the customer. By default the transaction will expire within 2 hours.
BRImo: Pending. Transaction successfully sent to bank but the process has not been completed by the customer. By default the transaction will expire within 2 hours.
Klik BCA: Pending. Transaction successfully sent to bank but the process has not been completed by the customer. By default the transaction will expire within 2 hours.
BCA Klikpay: Pending. Transaction successfully sent to bank but the process has not been completed by the customer. By default the transaction will expire within 2 hours.
Mandiri Bill Payment: Pending. Transaction successfully sent to bank but the process has not been completed by the customer. By default the transaction will expire within 2 hours.
XL Tunai: Pending. Transaction successfully sent to provider but the process has not been completed by the customer. By default the transaction will expire within 2 hours.
Indomaret: Pending. Transaction successfully sent to provider but the process has not been completed by the customer. By default the transaction will expire within 2 hours.
202Credit Card: Denied. Transaction has been processed but is denied by payment provider or Midtrans’ fraud detection system.
Other payment methods: Denied. Transaction has been processed but is denied by payment provider.



Code 3xx


StatusDescription
300Move Permanently, current and all future requests should be directed to the new URL



Code 4xx


StatusDescription
400Validation Error, merchant sent bad request data example; validation error, invalid transaction type, invalid credit card format, etc.
401Access denied due to unauthorized transaction, please check client key or server key
402Merchant doesn’t have access for this payment type
403The requested resource is only capable of generating content not acceptable according to the accepting headers that sent in the request
404The requested resource is not found
405HTTP method is not allowed
406Duplicate order ID. Order ID has already been utilized previously
407Expired transaction
408Merchant sent the wrong data type
409Merchant has sent too many transactions for the same card number
410Merchant account is deactivated. Please contact Midtrans support
411Token id is missing, invalid, or timed out
412Merchant cannot modify status of the transaction
413The request cannot be processed due to malformed syntax in the request body



Code 5xx


StatusDescription
500Internal Server Error
501The feature has not finished yet, it will be available soon
502Internal Server Error: Bank Connection Problem
503Internal Server Error
504Internal Server Error: Fraud detection is unavailable