For the complete documentation index, see llms.txt. This page is also available as Markdown.

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/:prop

Authentication

Accepts either a merchant API key or a business-user JWT.

Header
Value

Authorization

<api_key> or Bearer <jwt>

A sibling endpoint GET /v1/customers/me exists for customer self-lookup. It is authenticated with a customer JWT (Authorization: Bearer <customer_jwt>) and returns the currently authenticated customer's own record (including KYC data).

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