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}

Authorization

DocumentUploadApiKey
headerapi_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

Path Parameters

merchantId*string

Datman merchant ID.

Match^\d+$

Request Body

multipart/form-data
  1. body
file*file

The 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.

Formatbinary
documentTypeId*integer

Datman document type ID.

Range1 <= value <= 15

Response parameters & Errors

Response Body

Document uploaded. The body is JSON-encoded twice: it decodes to the JSON string "success" (including the quote characters).

response?stringapplication/json