Skip to main content

Get Transaction By RefNumber

Use this endpoint to retrieve transaction details using refNumber aka reference number as a query parameter. This is the value specified in the purchase request and should match the one provided in the purchase request exactly. This helps fetch transaction-specific data for auditing, reconciliation, support, or record-keeping purposes.

GETbaseUrl/api/v1/transactions/

Headers

  • Authorization: Bearer {{accessToken}} (Include the token obtained from the Authentication API)
  • Content-Type: application/json

You can use refNumber as a query parameter to fetch the transaction:

ParameterTypeRequiredDescription
refNumberstringNoThe unique reference number for the transaction

Error Handling

If the transaction is not found or another error occurs, you may receive an error response:

Example Error

{
"status": "failed",
"msg": "Transaction not found"
}

Usage Tips

  1. Token Authorization: Always ensure your token is valid before making a request. Include it in the Authorization header in the format: Authorization: Bearer <accessToken>.
  2. Reference Number: Should match the one passed during the original purchase request.
  3. Reference: For more details on the response fields, refer to the Purchase API.