> ## 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.

# Account

> Use the Account APIs to onboard sub-merchants.

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

You can use the Account APIs to create a sub-merchant account. After an account gets created, an `account_id` is assigned. Check the [account activation flow and states](/docs/partners/aggregators/onboarding-api#account-activation).

<br />

Fork the Razorpay Postman Public Workspace and try the Account APIs using your [Test API Keys](/docs/api/authentication#generate-api-keys).

<a href="https://www.postman.com/razorpaydev/workspace/razorpay-public-workspace/folder/12492020-51a4958d-ae00-4717-9ec4-64cb7c1bf7fb" target="_blank">![Run in Postman](https://run.pstmn.io/button.svg)</a>

<CardGroup cols={2}>
  <Card title="Create an Account" href="/docs/api/partners/account-onboarding/create">
    `POST` `/v2/accounts`

    Creates a sub-merchant account.
  </Card>

  <Card title="Fetch an Account" href="/docs/api/partners/account-onboarding/fetch">
    `GET` `/v2/accounts/:account_id`

    Retrieves the details of an account.
  </Card>

  <Card title="Update an Account" href="/docs/api/partners/account-onboarding/update">
    `PATCH` `/v2/accounts/:account_id`

    Updates an account for different product activation statuses.
  </Card>

  <Card title="Delete an Account" href="/docs/api/partners/account-onboarding/delete">
    `DELETE` `/v2/accounts/:account_id`

    Deletes a sub-merchant account.
  </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)
