---
title: "addAccount"
method: POST
path: "/v2/distributors/resellers/{resellerId}/accounts"
tags: ["Partner Portal"]
---

# addAccount

`POST /v2/distributors/resellers/{resellerId}/accounts`

## Request

- Base URL: `https://api.cloudally.com`
- URL: `https://api.cloudally.com/v2/distributors/resellers/{resellerId}/accounts`
- Auth: none declared. Required headers: `client-id`, `client-secret`
- TypeScript: <https://skmtc.dev/cloudally/apis/cloudally-rest-api/docs/v2/distributors/resellers/:resellerId/accounts/post.ts> (a function with typed inputs; its response is checked against the schema)

Create a Cloudally account (trial status).

## Path parameters

- `resellerId` string, required

## Headers

- `client-id` string, required
- `client-secret` string, required

## Request body

- CreatePartnerAccountForResellerDTO: Payload
  - `email` string: Account email
  - `password` string, required: Account password
  - `displayName` string: Account name
  - `region` 'US_EST' | 'US_EST_OHIO' | 'US_WEST_OREGON' | 'US_WEST_CAL' | 'EU' | 'EU_FRANKFURT' | 'ASIA_HONG_KONG' | 'ASIA_MUMBAI' | 'ASIA_SEOUL' | 'ASIA_SINGAPORE' | 'ASIA_SIDNEY' | 'ASIA_TOKYO' | 'SOUTH_AMERICA' | 'AFRICA_CAPE_TOWN' | 'ASIA_CHINA' | 'CANADA' | 'LONDON' | 'EU_PARIS' | 'EU_STOCKHOLM' | 'EU_ZURICH': Account data center
  - `customStorage` CustomStorage
    - `type` 'S3' | 'S3_COMPATIBLE' | 'GCP' | 'AZURE' | 'DISTRIBUTOR_CLOUD': Cloud storage type
    - `s3Key` string: Amazon S3 account key
    - `s3Secret` string: Amazon S3 account secret
    - `s3Region` 'US_EST' | 'EU' | 'EU_FRANKFURT' | 'CANADA' | 'ASIA_SIDNEY' | 'ASIA_TOKYO' | 'LONDON' | 'EU_PARIS' | 'AFRICA_CAPE_TOWN' | 'ASIA_MUMBAI' | 'EU_ZURICH': Amazon S3 region
    - `s3Bucket` string: Amazon S3 bucket name
    - `endPoint` string: Amazon S3 compatible endpoint

## Response `200`

Successful retrieval of the information.

- UserView
  - `id` string: Account access level
  - `name` string: Account friendly name
  - `email` string: Account email
  - `status` 'ACTIVE' | 'NOTACTIVE' | 'BLOCKED' | 'DELETED' | 'TRIAL' | 'UNSUBSCRIBED': Account status
  - `date` integer: Subscription date
  - `dailyReport` boolean: Toggle send daily report
  - `region` 'US_EST' | 'US_EST_OHIO' | 'US_WEST_OREGON' | 'US_WEST_CAL' | 'EU' | 'EU_FRANKFURT' | 'ASIA_HONG_KONG' | 'ASIA_MUMBAI' | 'ASIA_SEOUL' | 'ASIA_SINGAPORE' | 'ASIA_SIDNEY' | 'ASIA_TOKYO' | 'SOUTH_AMERICA' | 'AFRICA_CAPE_TOWN' | 'ASIA_CHINA' | 'CANADA' | 'LONDON' | 'EU_PARIS' | 'EU_STOCKHOLM' | 'EU_ZURICH': Account data center
  - `discount` integer: Account discount
  - `reportEmails` string[]: Email list to send reports to
  - `partnerID` string: Account partner ID
  - `currency` 'USD' | 'EUR' | 'AUD' | 'GBP' | 'ILS' | 'CAD' | 'JPY': Account billing currency
  - `customStorage` CustomStorageView
    - `type` 'S3' | 'S3_COMPATIBLE' | 'GCP' | 'AZURE' | 'DISTRIBUTOR_CLOUD'
  - `ms365EnterprisePlan` boolean: MS 365 Bundle plan
  - `gsuiteEnterprisePlan` boolean: Google Workspace Bundle plan
  - `externalId` string: External ID of the user

## Other responses

- `401`: The user is not logged in.
- `403`: The user does not have an access to view the account activity.

---

[API](https://skmtc.dev/cloudally/apis/cloudally-rest-api.md) - [All operations](https://skmtc.dev/cloudally/apis/cloudally-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cloudally/apis/cloudally-rest-api/revisions/97e3a3740b5b?raw)
