The following Api should be called in CRM Service
CRM Dev Instance : (https://crm-api-dev.10npay.com/)
Please call this endpoint once per document. 10 Documents mean post 10 documents by calling it 10 time.
Endpoints
/api/v1/enrollment/document
Post
{
"correlationId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"fileName": "string",
"fileData": "string",
"type": "string"
}
correlationId
should be the response of the POST Individual endpoint,
fileName
should be the name of document with extension.
fileData
should be the BASE64 encoded data of the document itself.
type
should be a valid type from endpoint /api/v1/MerchantDocument/documentTypes. for example OTH
which stands for Other.
Response
Success: Code 201 with User data which includes it's unique Id, Store that for future communication
BadInput : Code 400 with error messages.
Server Failure: Code 500 with no error message
Additional Explanation
Listing of Document Types can be obtained from GET /api/v1/MerchantDocument/documentTypes
Listing of Source of Funds can be obtained from GET /api/v1/Individual/source-of-funds
Testing Requirements (for QA)
- Please verify all corner cases for input, User should not be allowed to create data without addresses, contacts or documents.