Skip to main content

Información de Cuenta

Endpoint

https://api.verifik.co/v2/clients/me

Con este servicio, puedes obtener la información de tu cliente junto con más información sobre tus créditos, plan de suscripción y configuraciones.

Headers

NameValue
Content-Typeapplication/json
AuthorizationBearer <token>

Parámetros de Consulta

ParamValueDescripción
populates[]=clientSubscriptionPlan, clientSubscriptionPlan.subscriptionPlan, clientSettingsCon esta opción puedes incluir populates para conocer más información vinculada a tu cuenta de cliente.

Solicitud

const axios = require('axios');

let config = {
method: 'get',
maxBodyLength: Infinity,
url: 'https://api.verifik.co/v2/clients/me?populates[]=clientSubscriptionPlan.subscriptionPlan',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer eyJhbGciOiJ9.eyJjbGllbnRJZCI6Ij...plt4Cw'
}
};

axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});

Respuesta

{
"data": {
"avatar": null,
"initialIpAddress": null,
"secretKey": null,
"deletedAt": null,
"_id": "613a3a48f2c84b454153add7",
"active": true,
"isEmailVerified": true,
"isPhoneVerified": true,
"isVerified": true,
"otpSentAt": null,
"requestsCount": 0,
"subscriptionPlan": "61337217cbbb97a96877e984",
"email": "jorgemanuel@verifik.co",
"phone": "7809843183",
"countryCode": "+1",
"name": "JORGE MANUEL SANCHEZ",
"updatedAt": "2025-03-12T17:37:13.526Z",
"createdAt": "2021-09-09T16:46:01.334Z",
"__v": 0,
"totalRequestsCount": 1403,
"credits": 114.03000000000034,
"emailOTPCount": 0,
"isBiometricVerified": false,
"language": "es",
"otp": "$2a$10$Q3wDasZgVWLuhEoYatVun.RBdItctOPNZ5lnXNWisZI0L.cFqM5b.",
"phoneOTPCount": 0,
"emailOTPSentAt": "2023-08-03T05:21:42.000Z",
"status": "joined",
"workSpace": "6647c29855503eb3e836449d",
"clientSettings": "64cbd0717ae61d030ba39195",
"JWTPhrase": "123456",
"stripeCustomer": "cus_Q6iF3XDQgBQ8ZA",
"clientSubscriptionPlan": {
"projects": {
"smartLinkLimit": 5,
"smartAccessLimit": 5,
"smartEnrollLimit": 5,
"datAPILimit": 20,
"globally": 20
},
"_id": "67c0d39dd4b3dec0fc4c81a7",
"client": "613a3a48f2c84b454153add7",
"name": "Plus",
"subscriptionPlan": {
"projects": {
"datAPILimit": 20,
"globally": 20,
"smartAccessLimit": 5,
"smartEnrollLimit": 5,
"smartLinkLimit": 5
},
"_id": "644f2a3ef19094d3b3f66b7f",
"amount": 249,
"trialDays": 0,
"active": true,
"visible": true,
"name": "Plus",
"code": "smart_check_plus_plan",
"limit": 100,
"interval": "month",
"intervalCount": 1,
"currency": "USD",
"stripeProduct": "prod_Nlo8FqIrzIfTkS",
"stripePrice": "price_1N0GWgFO6i3ofqGHOOUioaUt"
},
"stripeSubscription": "sub_1QxEGqFO6i3ofqGH0fyDzHNJ",
"category": "credits",
"code": "smart_check_plus_plan",
"interval": "month",
"intervalCount": 1,
"active": true,
"lastFour": "4242",
"cardBrand": "visa",
"cardExpMonth": "2",
"cardExpYear": "2027",
"startDate": "2025-02-27T21:05:28.000Z",
"endDate": "2025-03-27T21:05:28.000Z",
"autoRenew": true,
"notes": "new subscription -> sub_1QxEGqFO6i3ofqGH0fyDzHNJ"
},
"person": null
}
}

Campos de Respuesta

CampoTipoDescripción
_idStringID del cliente
emailStringDirección de correo electrónico del cliente
phoneStringNúmero de teléfono del cliente
nameStringNombre completo del cliente
creditsNumberCréditos disponibles
totalRequestsCountNumberTotal de solicitudes API realizadas
isEmailVerifiedBooleanEstado de verificación de correo electrónico
isPhoneVerifiedBooleanEstado de verificación de teléfono
isBiometricVerifiedBooleanEstado de verificación biométrica
clientSubscriptionPlanObjectDetalles del plan de suscripción