> ## Documentation Index
> Fetch the complete documentation index at: https://razorpay-60c89f9a-mintlify-audit-missing-sections-1778528421.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Fetch Account Documents

> **GET** `/v2/accounts/:account_id/documents`

Use this endpoint to fetch the documents uploaded for an account. Know about the [various error responses](/api/partners/errors) for this API.

### Request

````cURL: Curl theme={null}
curl -X GET https://api.razorpay.com/v2/accounts/acc_GP4lfNA0iIMn5B/documents \
-u  \

```java: Java
RazorpayClient razorpay = new RazorpayClient("[ACCESS_TOKEN]");

String accountId = "acc_LryDIBIjBDbOWy";

Account account = instance.account.fetchAccountDoc(accountId);

```php: PHP
$api = new Api(null, null, "");

$accountId = "acc_M83Uw27KXuC7c8";
$api->account->fetch($accoundId)->fetchAccountDoc();

```javascript: Node.js

const instance = new Razorpay({
  oauthToken: "",

const accountId = "acc_GP4lfNA0iIMn5B";
instance.accounts.fetchAccountDoc(accountId);

```ruby: Ruby
require "razorpay"
Razorpay.setup('ACCESS_TOKEN')
account_id = "acc_0000000000001"

Razorpay::Account.fetch_account_doc(account_id)
````

### Response

```json: Success theme={null}
{
  "business_proof_of_identification": [
    {
      "type": "shop_establishment_certificate",
      "document_id": "doc_GMh9oIJuoCcjdT"
    }
  ]
}
```

### Parameters

`account_id` *mandatory*
: `string` The unique identifier of a sub-merchant account generated by Razorpay. For example, `acc_GP4lfNA0iIMn5B`.

### Parameters

`business_proof_of_identification`
: `array` The business proof document. For more details, refer the [Appendix](/partners/aggregators/onboarding-api/appendix).

`type`
: `string` The type of document uploaded. Check the list of [Document Types](/partners/aggregators/onboarding-api/appendix#document-type).

`document_id`
: `string` The id generated once the business proof document is uploaded.
