Get Customer
Retrieve a customer by ID, email, or reference code.
Endpoint
GET /v1/customers/:propAuthentication
Header
Value
Path parameters
Parameter
Type
Description
Example requests
# By UUID
curl -X GET https://ramp-api.ivorypay.io/api/v1/customers/c3d4e5f6-a7b8-9012-cdef-a12345678901 \
-H "x-api-key: your_api_key"
# By email
curl -X GET https://ramp-api.ivorypay.io/api/v1/customers/amina@example.com \
-H "x-api-key: your_api_key"
# By refCode
curl -X GET https://ramp-api.ivorypay.io/api/v1/customers/abc123def4 \
-H "x-api-key: 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: {
"x-api-key": "your_api_key",
},
});
const data = await response.json();
console.log(data);Example response
Error cases
Error code
Description
Last updated