Verify Transaction
Verify the status of a transaction by reference.
Endpoint
GET /v1/transactions/:reference/verifyAuthentication
Path parameters
Parameter
Type
Description
Example request
curl -X GET https://ramp-api.ivorypay.io/api/v1/transactions/550e8400-e29b-41d4-a716-446655440000/verifyconst reference = "550e8400-e29b-41d4-a716-446655440000";
const response = await fetch(`https://ramp-api.ivorypay.io/api/v1/transactions/${reference}/verify`, {
method: "GET",
});
const data = await response.json();
console.log(data);import requests
reference = "550e8400-e29b-41d4-a716-446655440000"
response = requests.get(
f"https://ramp-api.ivorypay.io/api/v1/transactions/{reference}/verify",
)
print(response.json())package main
import (
"fmt"
"io"
"net/http"
)
func main() {
reference := "550e8400-e29b-41d4-a716-446655440000"
req, _ := http.NewRequest("GET", "https://ramp-api.ivorypay.io/api/v1/transactions/"+reference+"/verify", nil)
resp, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}Example response
{
"success": true,
"message": "Verification successful",
"data": {
"reference": "550e8400-e29b-41d4-a716-446655440000",
"status": "SUCCESS",
"feature": "ON_RAMP",
"token": "USDT",
"fiatCurrency": "NGN",
"fiatAmount": 50000,
"cryptoAmount": 31.25,
"transactionHash": "0xabc123..."
}
}Last updated