m2pfintech
API LibraryTransaction

Fetch Transaction by External ID

Looks up a specific transaction using its external transaction ID. This is the unique identifier assigned to the transaction when it was created.

When to Use

  • Check the status of a specific transaction
  • Validate that a credit/debit was processed
  • Retrieve transaction details for a webhook callback reference
GET
/v1/transactions/status/{id}

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

Path Parameters

id*string

External Transaction ID

Header Parameters

X-TENANT-ID*string

Your unique tenant identifier

Response Body

application/json

application/json

application/json

curl -X GET "https://sandbox-api.m2pprepaid.com/prepaid/customer/v1/transactions/status/fcf9497aeb7943d7abb8b48696e129f8" \  -H "X-TENANT-ID: ACME_CORP"
{
  "result": {
    "amount": "500.00",
    "preBalance": "8500.00",
    "postBalance": "8000.00",
    "transactionType": "POS",
    "txnOrigin": "POS",
    "transactionStatus": "SUCCESS",
    "time": "2025-04-15T10:30:00.000Z",
    "merchantName": "Flipkart Online",
    "externalTransactionId": "fcf9497aeb7943d7abb8b48696e129f8",
    "retrievalReferenceNo": "337786787811",
    "crDr": "D"
  },
  "pagination": null
}
{
  "type": "https://www.m2pfintech.com/problem/problem-with-message",
  "title": "Bad Request",
  "status": 400,
  "detail": "Unable to convert http message",
  "message": "error.http.400"
}

{
  "type": "https://www.m2pfintech.com/problem/problem-with-message",
  "title": "Customer does not exist",
  "status": 409,
  "detail": "Customer does not exists for id",
  "message": "error.business",
  "businessCode": "PPCUST_002"
}