Providing information related to a customer identity stored the account data bound to the customer's phone number.
client.knowyourcustomerfillIn.create(KnowyourcustomerfillInCreateParams { phoneNumber, xCorrelator } params, RequestOptionsoptions?): KnowyourcustomerfillInCreateResponse { address, birthdate, cityOfBirth, 22 more }
POST/knowyourcustomerfill-in/fill-in
Providing information related to a customer identity stored the account data bound to the customer’s phone number.
Providing information related to a customer identity stored the account data bound to the customer's phone number.
import Camara from 'camara-sdk';
const client = new Camara({
bearerToken: process.env['CAMARA_BEARER_TOKEN'], // This is the default and can be omitted
});
const knowyourcustomerfillIn = await client.knowyourcustomerfillIn.create({
phoneNumber: '+34629255833',
});
console.log(knowyourcustomerfillIn.idDocument);{
"phoneNumber": "+34629255833",
"idDocument": "66666666q",
"idDocumentType": "passport",
"idDocumentExpiryDate": "2027-07-12",
"name": "Federica Sanchez Arjona",
"givenName": "Federica",
"familyName": "Sanchez Arjona",
"nameKanaHankaku": "federica",
"nameKanaZenkaku": "Federica",
"middleNames": "Sanchez",
"familyNameAtBirth": "YYYY",
"address": "Tokyo-to Chiyoda-ku Iidabashi 3-10-10",
"streetName": "Nicolas Salmeron",
"streetNumber": "4",
"postalCode": "1028460",
"region": "Tokyo",
"locality": "ZZZZ",
"country": "JP",
"houseNumberExtension": "36",
"birthdate": "1978-08-22",
"email": "abc@example.com",
"gender": "MALE",
"cityOfBirth": "Madrid",
"countryOfBirth": "ES",
"nationality": "ES"
}{
"status": 400,
"code": "INVALID_ARGUMENT",
"message": "Client specified an invalid argument, request body or query param."
}{
"status": 401,
"code": "UNAUTHENTICATED",
"message": "Request not authenticated due to missing, invalid, or expired credentials. A new authentication is required."
}{
"status": 403,
"code": "PERMISSION_DENIED",
"message": "Client does not have sufficient permissions to perform this action."
}{
"status": 404,
"code": "IDENTIFIER_NOT_FOUND",
"message": "The phone number provided is not associated with a customer account"
}{
"status": 422,
"code": "SERVICE_NOT_APPLICABLE",
"message": "The service is not applicable for the provided phone number"
}{
"status": 422,
"code": "MISSING_IDENTIFIER",
"message": "No phone number has been provided"
}{
"status": 422,
"code": "UNNECESSARY_IDENTIFIER",
"message": "An explicit phone number has been provided when one is already associated with the access token"
}Returns Examples
{
"phoneNumber": "+34629255833",
"idDocument": "66666666q",
"idDocumentType": "passport",
"idDocumentExpiryDate": "2027-07-12",
"name": "Federica Sanchez Arjona",
"givenName": "Federica",
"familyName": "Sanchez Arjona",
"nameKanaHankaku": "federica",
"nameKanaZenkaku": "Federica",
"middleNames": "Sanchez",
"familyNameAtBirth": "YYYY",
"address": "Tokyo-to Chiyoda-ku Iidabashi 3-10-10",
"streetName": "Nicolas Salmeron",
"streetNumber": "4",
"postalCode": "1028460",
"region": "Tokyo",
"locality": "ZZZZ",
"country": "JP",
"houseNumberExtension": "36",
"birthdate": "1978-08-22",
"email": "abc@example.com",
"gender": "MALE",
"cityOfBirth": "Madrid",
"countryOfBirth": "ES",
"nationality": "ES"
}{
"status": 400,
"code": "INVALID_ARGUMENT",
"message": "Client specified an invalid argument, request body or query param."
}{
"status": 401,
"code": "UNAUTHENTICATED",
"message": "Request not authenticated due to missing, invalid, or expired credentials. A new authentication is required."
}{
"status": 403,
"code": "PERMISSION_DENIED",
"message": "Client does not have sufficient permissions to perform this action."
}{
"status": 404,
"code": "IDENTIFIER_NOT_FOUND",
"message": "The phone number provided is not associated with a customer account"
}{
"status": 422,
"code": "SERVICE_NOT_APPLICABLE",
"message": "The service is not applicable for the provided phone number"
}{
"status": 422,
"code": "MISSING_IDENTIFIER",
"message": "No phone number has been provided"
}{
"status": 422,
"code": "UNNECESSARY_IDENTIFIER",
"message": "An explicit phone number has been provided when one is already associated with the access token"
}