Skip to main content
GET
/
transactions-history
/
{id}
Retrieve a transaction by order ID
curl --request GET \
  --url https://sandbox.omnispay.com/api/transactions-history/{id} \
  --header 'X-HMAC-Signature: <api-key>' \
  --header 'accountId: <api-key>' \
  --header 'apiKey: <api-key>'
{
  "status": "<string>",
  "message": "<string>",
  "response": {}
}

Retrieve Transaction By Order ID

This endpoint retrieves transaction details from the database based on the provided order ID.

Path Parameters

  • id (string, required):
    The unique identifier of the transaction record to be retrieved.
    • Example: 123457
    • If a valid ID is provided, the API will return the transaction details.
📌 How it Works
The system fetches transaction data for the given ID and returns transaction details.

Request Headers

  • User-Agent (string, optional): The User-Agent header, which is not mandatory.

Example Request

GET /transaction/123457
User-Agent: Mozilla/5.0

Authorizations

apiKey
string
header
required
X-HMAC-Signature
string
header
required
accountId
string
header
required

Headers

User-Agent
string

Path Parameters

id
string
required

Order ID for retrieving the transactions

Response

OK. Transaction details retrieved successfully

status
string
message
string
response
object