Code 4xx

StatusDescription
400Validation Error. You have sent bad request data like invalid transaction type, invalid payment card format, and so on.
401Access denied due to unauthorized transaction. Please check Client Key or Server Key.
402No access for this payment type.
403The requested resource is not capable of generating content in the format specified in the request headers.
404The requested resource/transaction is not found. Please check order_id or other details sent in the request.
405HTTP method is not allowed.
406Duplicate order ID. order_id has already been utilized previously.
407Expired transaction.
408Wrong data type.
409You have sent too many transactions for the same card number.
410Your account is deactivated. Please contact Midtrans support.
411token_id is missing, invalid, or timed out.
412You cannot modify status of the transaction.
413The request cannot be processed due to syntax error in the request body.
414Refund request is rejected due to merchant insufficient funds.
429API rate limit exceeded. The global rate limit is applied to Create Pay Account API and Charge API