> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ndovu.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Upload one of a customer's documents

> One file per call. Uploading again for the same type and side replaces the earlier file. Only for a SHARED identityPolicy.



## OpenAPI

````yaml /api-reference/openapi.json put /api/v3/partners/{shortName}/customers/{externalUserId}/documents/{documentType}
openapi: 3.0.0
info:
  title: Ndovu Partner API
  description: API for partners distributing Ndovu investment products to their customers.
  version: '3'
  contact: {}
servers:
  - url: https://be-dev-1.dev.ndovu.co
    description: Development
security: []
tags: []
paths:
  /api/v3/partners/{shortName}/customers/{externalUserId}/documents/{documentType}:
    put:
      tags:
        - partners
      summary: Upload one of a customer's documents
      description: >-
        One file per call. Uploading again for the same type and side replaces
        the earlier file. Only for a SHARED identityPolicy.
      operationId: PartnerCustomersController_uploadDocument_v3
      parameters:
        - name: shortName
          required: true
          in: path
          description: Your partner short name
          schema:
            type: string
        - name: externalUserId
          required: true
          in: path
          description: Your own ID for the customer
          schema:
            type: string
        - name: documentType
          required: true
          in: path
          description: A document type shortName from GET document-types
          schema:
            type: string
        - name: side
          required: false
          in: query
          description: >-
            Required when the document type has required sides, e.g. front or
            back
          schema:
            type: string
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  format: binary
              required:
                - file
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerCustomerDocumentDto'
        '400':
          description: >-
            CUSTOMER_PII_NOT_ACCEPTED (identityPolicy REFERENCED: documents are
            personal data and cannot be sent)
      security:
        - bearer: []
components:
  schemas:
    PartnerCustomerDocumentDto:
      type: object
      properties:
        type:
          type: string
          example: id-card
        side:
          type: string
          nullable: true
          example: front
        uploadedAt:
          format: date-time
          type: string
          example: '2026-10-22T09:20:41.102Z'
        url:
          type: string
          example: https://ndovu-documents.s3.amazonaws.com/...
          description: >-
            Temporary link to download the file. Valid for 5 minutes; fetch the
            customer again for a fresh one.
        expiresAt:
          format: date-time
          type: string
          example: '2026-10-22T09:25:41.102Z'
          description: When `url` stops working
      required:
        - type
        - uploadedAt
        - url
        - expiresAt
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.