m2pfintech
API LibraryTransactions

Fetch Transaction Status

Fetches the current status of a transaction by RRN, transaction ID, or UPI account number. isReversal is mandatory.

GET
/v1/transactions/fetch-status

Authorization

bearerAuth tenantId
AuthorizationBearer <token>

JWT Bearer token from the Authentication API

In: header

X-TENANT-ID<token>

Your unique tenant identifier assigned during onboarding

In: header

Query Parameters

rrn?string

Retrieval Reference Number

txnId?string

Transaction ID

transactionType?string

Transaction type

isReversal*string

Required. Whether to check for reversal transactions

upiAccountNumber?string

UPI account number

Header Parameters

X-TENANT-ID*string

Your unique tenant identifier

Response Body

application/json

application/json

curl -X GET "https://sandbox-api.m2pprepaid.com/prepaid/customer/v1/transactions/fetch-status?isReversal=string" \  -H "X-TENANT-ID: ACME_CORP"
{
  "result": {
    "status": "string",
    "rrn": "string",
    "externalTxnId": "string",
    "description": "string"
  },
  "pagination": {
    "list": true,
    "pageSize": 0,
    "pageNo": 0,
    "totalPages": 0,
    "totalElements": 0
  }
}
{
  "type": "https://www.m2pfintech.com/problem/problem-with-message",
  "title": "Bad Request",
  "status": 400,
  "detail": "Unable to convert http message",
  "message": "error.http.400"
}