> ## Documentation Index
> Fetch the complete documentation index at: https://doc-test-my.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Document APIs

> Use the Document APIs to upload files and complete the mandatory KYC requirements.

Use the Document APIs to upload and fetch documents for the KYC verification process. Check the [product activation status and updates permitted](/docs/partners/aggregators/onboarding-api#product-activation-status-and-updates-permitted) for Document APIs.

<br />

The maximum supported file size for a JPG/PNG is 4MB. The maximum supported file size for a PDF is 2MB. Do not pass file URLs instead of uploading documents. If you have uploaded the document but mandatory field-level parameters are not passed in the API, you need to re-execute the Documents API with the same document and pass the fields.

<br />

<CardGroup cols={2}>
  <Card title="Upload Account Documents" href="/docs/api/partners/upload-document/upload-account-documents">
    `POST` `/v2/accounts/:account_id/documents`

    Uploads business documents for a sub-merchant's account.
  </Card>

  <Card title="Upload Stakeholder Documents" href="/docs/api/partners/upload-document/upload-stakeholder-documents">
    `POST` `/v2/accounts/:account_id/stakeholders/:stakeholder_id/documents`

    Uploads signatory documents for a stakeholder.
  </Card>

  <Card title="Fetch Account Documents" href="/docs/api/partners/upload-document/fetch-account-documents">
    `GET` `/v2/accounts/:account_id/documents`

    Retrieves the documents uploaded for an account.
  </Card>

  <Card title="Fetch Stakeholder Documents" href="/docs/api/partners/upload-document/fetch-stakeholder-documents">
    `GET` `/v2/accounts/:account_id/stakeholders/:stakeholder_id/documents`

    Retrieves the documents uploaded for a stakeholder.
  </Card>
</CardGroup>

## Related Guides

* [Sub-merchant Onboarding APIs](/docs/partners/aggregators/onboarding-api)
* [Set Up Webhooks](/docs/partners/aggregators/onboarding-api/webhooks)
* [Webhook Payloads](/docs/webhooks/partners)
