Get Customer
Retrieve a customer by ID, email, or reference code.
Retrieves a customer's details by their ID, email address, or IvoryPay reference code.
Endpoint
GET /v1/customers/:propAuthentication
Accepts either a merchant API key or a business-user JWT.
Header
Value
Authorization
<api_key> or Bearer <jwt>
Path parameters
Parameter
Type
Description
prop
string
Customer UUID, email address, or refCode
Example requests
# By UUID
curl -X GET https://ramp-api.ivorypay.io/api/v1/customers/c3d4e5f6-a7b8-9012-cdef-a12345678901 \
-H "Authorization: your_api_key"
# By email
curl -X GET https://ramp-api.ivorypay.io/api/v1/customers/amina@example.com \
-H "Authorization: your_api_key"
# By refCode
curl -X GET https://ramp-api.ivorypay.io/api/v1/customers/abc123def4 \
-H "Authorization: your_api_key"// By UUID, email, or refCode
const prop = "c3d4e5f6-a7b8-9012-cdef-a12345678901";
const response = await fetch(`https://ramp-api.ivorypay.io/api/v1/customers/${prop}`, {
method: "GET",
headers: {
"Authorization": "your_api_key",
},
});
const data = await response.json();
console.log(data);Example response
Error cases
Error code
Description
ONOFFRAMP0053
Customer not found
Last updated