Transaction Details Object

"transaction_details": {
    "order_id": "A87551",
    "gross_amount": 145000
}
JSON AttributeDescriptionTypeRequired
order_idOrder Id of the transaction.
Note: Allowed Symbols are dash(-), underscore(_), tilde (~), and dot (.)
String(50)Required
gross_amountTotal transaction amount in IDR.
Note: Do not add decimal.
LongRequired

📘

Note

Midtrans is sanitizing order id characters for MPGS to make sure it's URL safe. Allowed symbols in order id are dash(-), underscore(_), tilde(~), and dot(.).

On Midtrans MAP (Merchant Portal), order id shown will be the same with the one sent by Merchant. but order id shown on MPGS portal or Bank settlement report could be different because of order id sanitization.