-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Brazilian standard require idNumber, back document and email fo… #85
Conversation
fiatconnect-api.md
Outdated
selfieDocument: `string`, | ||
identificationDocument: `string` | ||
identificationDocument: `string`, | ||
identificationDocumentBack?: `string`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you require idNumber
, email
, and identificationDocumentBack
, then they shouldn't be optional fields. The question mark indicates that the field is optional.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, I recommend that you create a new KYC schema for these fields, rather than tacking them onto an existing one. Adding a new KYC schema is a non-breaking change, since clients can incrementally add support for new schemas without breaking their existing integrations. However, changing an existing KYC schema is generally a breaking change, and something to avoid without some compelling reason for it
} | ||
``` | ||
|
||
The `selfieDocument`, `identificationDocument` and `identificationDocumentBack` fields should be base64 encoded binary blobs representing images. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you provide some more detailed information on the fields required in this schema? (For example, how phoneNumber
should be formatted, what the idNumber
represents and how it should be formatted, etc.) It might seem a bit pedantic but it's important that we document the exact syntax of these fields.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok @jophish , I will do that.
@jophish I made a new commit |
identificationDocumentFront: `string`, | ||
identificationDocumentBack: `string`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what kind of identity document is accepted? Any? Or just CPF cards? The description of the schema should probably go into this-- we're currently running into trouble with another KYC schema due to the ambiguity there on what document types are acceptable.
If it's CPF only, the schema should probably also be renamed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cajubelt the docs are those accepted as an official identification document in Brazil: RG
, CNH
, RNM
@@ -2233,6 +2234,41 @@ A KYC schema containing personal data about a user, as well as documents such as | |||
|
|||
The `selfieDocument` and `identificationDocument` fields should be base64 encoded binary blobs representing images. | |||
|
|||
#### 9.3.1.2. `PersonalDataAndDocumentsWithBack` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this schema name is misleading because it sounds more general than it actually is. Currently the constraints on document type, phone number and ID make this specific to Brazilian KYC checks.
#### 9.3.1.2. `PersonalDataAndDocumentsWithBack` | ||
|
||
A brasilian standard KYC schema containing personal data about a user, as well as documents such as an ID, photo and selfie. | ||
The accepted documents are [RG](https://en.wikipedia.org/wiki/Brazilian_identity_card), [CNH](https://en.wikipedia.org/wiki/Driving_licence_in_Brazil) and [RNM](https://en.wikipedia.org/wiki/Registro_Nacional_de_Estrangeiros) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all 3 of these documents have CPF on them, which the image would presumably include. Does idNumber still need to be its own field? Seems like it could be redundant, though I don't know the details of how you're doing KYC checks..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you can drop the idNumber field, or clarify that it needs to be CPF specifically for the case where some new field like documentType
is equal to RG, CNH, or RNM, then you could potentially make this schema more general / reusable across regions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
which could be helpful for other providers and consumers of the FC API
@cajubelt in my new commit I removed |
@ailsoncgt I believe the intent of the TLDR, |
superceded by #92 |
kyc validation