Merchant Documents

Upload a document for a merchant. Requires multipart/form-data with fields: file (binary) and documentType (string)

Changed on

Upload a document for a merchant. Requires multipart/form-data with fields: file (binary) and documentType (string)

post/api/v1/merchants/{id}/documents

Request

Path parameters

idstring uuid required

The unique identifier of the merchant

Example:123e4567-e89b-12d3-a456-426614174000

Request body multipart/form-data

filestring binary required

The document file to upload (PDF, JPG, PNG, DOC, or DOCX)

Response

Created

successboolean required

Indicates if the request was successful

Example response

{
  "success": true,
  "data": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "documentType": "CERTIFICATE_OF_INCORPORATION",
    "fileName": "certificate.pdf",
    "uploadedAt": "2024-01-15T10:30:00.000Z"
  }
}

Changes