This flow uses the consumer application endpoints. For a corporate application, upload documents through the company document endpoint and the UBO document endpoint instead.
400 means you fix that document and upload it again before submitting the application.
1
Verify document validity
Before uploading, verify that the documents you have collected are acceptable KYC documents. Using unsupported documents may result in delays or rejection during the verification process.The upload endpoints offer more document types than compliance accepts, so check the accepted list rather than the endpoint’s options.
2
Initiate the application
Before uploading documents, you must initiate an application. Initiating requires the user’s email and at least one wallet address (the wallet is not needed if your program self-manages authorizations); you can optionally include details such as the user’s name.Once initiated, the application’s
applicationStatus will be set to notStarted. For more details, see the application states guide.3
Upload pre-collected documents
Use the endpoint to upload a consumer document. This endpoint is synchronous and returns a
type, side, and countryCode are required, and must be within a subset of allowed values.- The
typemust correspond to the type of document being uploaded. Currently, we only accept types ofselfie,idCard,passport,driversandresidencePermit. - The
sidemust correspond to the side of the document (frontorback) where applicable. - The
countryCodeis the alpha-2 country code of the country that the ID is from (for example, “US”).
Backward compatibility:The legacy
country parameter (3-digit codes only) is still supported but deprecated. We recommend using countryCode for new integrations.204 on success. If a document fails validation, the endpoint returns a 400 with rejection tags. See Fastfail checks for details.4
Submit the application
Once the documents are uploaded, you can submit the complete application.The application status will change to
pending while under review.Best practices
- Upload all required documents before submission to avoid delays.
- Ensure selfies meet quality guidelines for optimal matching.
- Test the integration thoroughly in the sandbox environment before going live.
What’s next
Application states
Track the application after you submit.
KYC/KYB documents
Which documents Rain accepts.
Rejection reasons
What to do if the application comes back rejected.