KYC & VerificationKYC documents
Upload a KYC document for a merchant
post
/api/v1/documents/upload-document/{merchantId}Uploads one onboarding (KYC) document for a merchant as multipart/form-data. The new document replaces any earlier document of the same type and is set to need approval. Only merchants created through the merchant association API can receive documents.
Endpoint destination URL
https://portal-api-sandbox.datmancrm.com/documents/sandbox/api/v1/documents/upload-document/{merchantId}DocumentUploadApiKeyheader
api_key<token>Document upload API key issued by Datman for the document upload endpoint. It is a different key from the partner API key.
Request Parameters
merchantId*stringDatman merchant ID.
Match
^\d+$multipart/form-data- body
file*fileThe document (JPG, JPEG, PNG or PDF, 100 KB to 10 MB). The part must have a Content-Type of image/jpeg, image/png or application/pdf. Send exactly one file, in a form field named file.
Format
binarydocumentTypeId*integerDatman document type ID.
Range
1 <= value <= 15Response parameters & Errors
Document uploaded. The body is JSON-encoded twice: it decodes to the JSON string "success" (including the quote characters).
response?stringapplication/json
