> ## Documentation Index
> Fetch the complete documentation index at: https://razorpay-881012b3.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.

<div style={{display:"flex",flexWrap:"wrap",alignItems:"center",gap:"0.35rem 0.9rem",border:"1px solid rgba(128,128,128,0.28)",borderRadius:"0.5rem",padding:"0.45rem 0.75rem",margin:"0 0 1.25rem",fontSize:"0.875rem"}}>
  <span style={{fontWeight:600}}>Available in</span>
  <span>🇮🇳 India</span>
  <span>🇸🇬 Singapore</span>
</div>

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 />

Fork the Razorpay Postman Public Workspace and try the Document APIs using your [Test API Keys](/docs/partners/aggregators/onboarding-api#api-authentication/).

<a href="https://www.postman.com/razorpaydev/workspace/razorpay-public-workspace/folder/12492020-91288595-d910-4f84-822d-808de103aeba" target="_blank">![Run in Postman](https://run.pstmn.io/button.svg)</a>

<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)
