Skip to main content

Overview

The monei.user service allows you to manage the authenticated user’s profile, verify KYC status, and retrieve account limits. This service provides:
  • Retrieve current authenticated user
  • Update user profile
  • Check KYC verification status
  • Get deposit limits

Get Current User

Retrieve details of the authenticated user.
const user = await monei.user.getCurrentUser();

console.log(user.id);
console.log(user.email);
console.log(user.status);
Endpoint
GET /api/v1/user/me

Update User

Update a user’s profile information.
const updatedUser = await monei.user.updateUser("user_123", {
  firstName: "John",
  lastName: "Doe"
});

console.log(updatedUser);
Endpoint
PATCH /api/v1/user/update/{id}

Get KYC Status

Check the user’s KYC verification status.
const kyc = await monei.user.kycStatus();

console.log(kyc.status);
console.log(kyc.level);
Endpoint
GET /api/v1/kyc/status

Get Deposit Limits

Retrieve the user’s deposit limits based on KYC level.
const limits = await monei.user.getDepositLimit();

console.log(limits);
Endpoint
GET /api/v1/kyc/limits

Response Types

UserResponseDto

{
  id: string;
  email: string;
  firstName: string;
  lastName: string;
  status: string;
  createdAt: string;
}

KycStatusDto

{
  status: string;     // pending | verified | rejected
  level: number;
}

Error Handling

All user service methods may throw an error if the request fails.
try {
  const user = await monei.user.getCurrentUser();
} catch (error) {
  console.error(error.message);
}

Service Overview

MethodDescription
getCurrentUser()Retrieve authenticated user profile
updateUser(id, data)Update user profile
kycStatus()Get KYC verification status
getDepositLimit()Retrieve deposit limits