Expire API

Expire transaction is triggered to update the transaction_status to expire, when the customer fails to complete the payment. The expired order_id can be reused for the same or different payment methods.

Endpoints: /api/v1/core/{{transaction_id}}/expire

HTTP Method: POST

Response Body

{
  "status_code": "407",
  "status_message": "Success, transaction has expired",
  "transaction_id": "447e846a-403e-47db-a5da-d7f3f06375d6",
  "order_id": "vtmbill05",
  "payment_type": "echannel",
  "transaction_time": "2015-06-15 13:36:24",
  "transaction_status": "expire",
  "gross_amount": "10000.00"
}
{
  "status_code" : "412",
  "status_message" : "Merchant cannot modify the status of the transaction"
}
FieldTypeDescription
status_codeStringStatus code of transaction expire result.
status_messageStringDescription of transaction expire result.
transaction_idStringTransaction ID given by Midtrans.
order_idStringOrder ID specified by you.
payment_typeStringThe payment method used by the customer.
transaction_timeStringTimestamp of transaction in ISO 8601 format. Time Zone: GMT+7.
transaction_statusStringStatus of the transaction.
gross_amountStringTotal amount of transaction in IDR.