> This page is for NT Prop.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://partner.ninjatrader.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://partner.ninjatrader.com/_mcp/server.

# Create Master Owned Subaccount Request

POST https://live.tradovateapi.com/v1/customerApplication/createmasterownedsubaccountrequest
Content-Type: application/json

### Request a subaccount for a master account in your organization.**Available to:** Organization administrators**Environments:** Live**[Rate Limit](/prop/overview/core-concepts/rate-limits):** 350 requests per hour, 30-second back-off, counts all requestsOn Live, some organizations restrict administrators from accessing other members' accounts unless they hold an approved trading permission for that account.Submit a subaccount request for the master account named in `masterAccountName`. The master account's owner must be a user in your organization, and the master account must have an approved customer application. A successful request returns its `requestId` with `status` set to `Preapproved`.If your organization has automatic approval turned on for these requests, the request becomes `Approved` once the account review approves it and its subaccount is created.Unlike [`createPartnerSubAccountRequest`](/prop/api/rest-api-endpoints/users/create-partner-subaccount-request), this endpoint takes no user details or documents. It identifies the user through the master account.Master-owned subaccount requests are enabled per organization, so work with the NinjaTrader Support team to turn them on.**Request Fields**| Field                  | Required | Description                                                                                                                                                                                                                                                                                                                                                                                                                                |
| ---------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `masterAccountName`    | Yes      | The master account's name, up to 64 characters.                                                                                                                                                                                                                                                                                                                                                                                            |
| `marginType`           | Yes      | Stored with the request. The subaccount takes the master account's margin type, not this value.                                                                                                                                                                                                                                                                                                                                            |
| `authorizedIndividual` | Yes      | Stored with the request.                                                                                                                                                                                                                                                                                                                                                                                                                   |
| `transferAmount`       | No       | The amount to transfer from the master account to the subaccount. Checked against the master account's cash, less the transfer amounts of its subaccount requests in `Pending` status. If you omit it, the check uses 0. When the subaccount is created and `transferAmount` is greater than 0, a pending USD fund transaction for that amount is recorded on each account: outgoing on the master account and incoming on the subaccount. |
| `riskCategoryId`       | No       | The risk category for the subaccount. Must match a risk category in your organization. If you omit it, the subaccount uses the master account's risk category.                                                                                                                                                                                                                                                                             |
| `autoLiqProfileId`     | No       | The auto-liquidation profile for the subaccount. Must match an auto-liquidation profile in your organization. If you omit it, the subaccount uses your organization's default auto-liquidation profile, or the master account's profile if your organization has no default.                                                                                                                                                               |
| `externalWalletId`     | No       | Up to 128 characters, stored with the request.                                                                                                                                                                                                                                                                                                                                                                                             |**Common Failure Scenarios**- You aren't an organization administrator, or master-owned subaccount requests aren't enabled for your organization. Both return `HTTP 200` with `"Access denied"` in `errorText`.
- No account you can read has the name in `masterAccountName`, or the account is archived, restricted, or closed.
- The master account's owner isn't in your organization, or the master account has no approved customer application.
- The master account's cash, less the transfer amounts of its subaccount requests in `Pending` status, is less than `transferAmount`.
- `riskCategoryId` or `autoLiqProfileId` doesn't match a record in your organization.
- The master account's owner has reached your organization's subaccount limit. The request is created and then set to `Denied`, and the response has no `requestId`.
- A required field is missing or a value is out of range. This returns `HTTP 400`.
- You call it on Demo. This returns `HTTP 501`.This endpoint returns `HTTP 200` for both successful and rejected requests, so check the `errorText` field to confirm the result. Other failures, such as an invalid request or a call on Demo, return their own HTTP status.**Error Messages**| Message                                                           | Response             | Trigger                                                                                                                                            |
| ----------------------------------------------------------------- | -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| `"Margin Type should be one of: Speculator or Hedger"`            | 400                  | `marginType` is out of range.                                                                                                                      |
| `"Master Account Name should be specified"`                       | 400                  | `masterAccountName` is empty.                                                                                                                      |
| `"Master Account Name should be no longer than 64"`               | 400                  | `masterAccountName` is longer than 64 characters.                                                                                                  |
| `"External Wallet Id should be no longer than 128"`               | 400                  | `externalWalletId` is longer than 128 characters.                                                                                                  |
| `"Risk Category Id should be greater than 0"`                     | 400                  | `riskCategoryId` is present and isn't greater than 0.                                                                                              |
| `"Auto Liq Profile Id should be greater than 0"`                  | 400                  | `autoLiqProfileId` is present and isn't greater than 0.                                                                                            |
| `"Access is denied"`                                              | 401                  | The caller's user type, or the API key's permissions, don't include full access to the `CustomerApplications` resource.                            |
| `"This endpoint should be called on live.tradovateapi.com"`       | 501                  | Called on the Demo environment.                                                                                                                    |
| `"Access denied"`                                                 | 200 (in `errorText`) | The caller isn't an organization administrator.                                                                                                    |
| `"Access denied"`                                                 | 200 (in `errorText`) | Master-owned subaccount requests aren't enabled for the caller's organization.                                                                     |
| `"The account '{masterAccountName}' not found"`                   | 200 (in `errorText`) | No account the caller can read has that name. `{masterAccountName}` is the request value.                                                          |
| `"The account '{masterAccountName}' is not active"`               | 200 (in `errorText`) | The account is archived, restricted, or closed. `{masterAccountName}` is the request value.                                                        |
| `"The account '{accountName}' has no owner"`                      | 200 (in `errorText`) | The master account's owner can't be found. `{accountName}` is the account's stored name.                                                           |
| `"The account '{accountName}' is not owned by this organization"` | 200 (in `errorText`) | The master account's owner isn't in the caller's organization.                                                                                     |
| `"Master account must have an approved customer application"`     | 200 (in `errorText`) | The master account has no customer application the caller can read.                                                                                |
| `"The account '{accountName}' has no valid customer application"` | 200 (in `errorText`) | The master account's customer application is archived, isn't approved, or belongs to a different account.                                          |
| `"Account has insufficient funds"`                                | 200 (in `errorText`) | The master account's cash, less the transfer amounts of its subaccount requests in `Pending` status, is less than `transferAmount` (0 if omitted). |
| `"Auto-liq profile ID={autoLiqProfileId} not found"`              | 200 (in `errorText`) | `autoLiqProfileId` doesn't match an auto-liquidation profile in the caller's organization.                                                         |
| `"Risk category ID={riskCategoryId} not found"`                   | 200 (in `errorText`) | `riskCategoryId` doesn't match a risk category in the caller's organization.                                                                       |
| `"Access denied"`                                                 | 200 (in `errorText`) | Creating the subaccount request record is denied.                                                                                                  |
| `"POA has reached the maximum number of subaccounts allowed."`    | 200 (in `errorText`) | The master account's owner has reached the organization's subaccount limit. The request is created, then set to `Denied`.                          |
| `"Not found"`                                                     | 200 (in `errorText`) | A record needed to process the request can't be found.                                                                                             |
| `"Request timeout. Error ID: {id}"`                               | 200 (in `errorText`) | An internal step timed out. The error ID is generated per request.                                                                                 |
| `"Internal Error. Error ID: {id}"`                                | 200 (in `errorText`) | Any other unexpected failure. The error ID is generated per request.                                                                               |**Related Endpoints**- Use [`getPartnerSubAccountRequestStatus`](/prop/api/rest-api-endpoints/users/get-partner-subaccount-request-status) with the returned `requestId` to follow the request. Once the subaccount is created, the response includes its `accountId` and `accountName`.
- Use [`createPartnerSubAccountRequest`](/prop/api/rest-api-endpoints/users/create-partner-subaccount-request) to request a subaccount with the user's details and documents.

Reference: https://partner.ninjatrader.com/prop/api/rest-api-endpoints/users/create-master-owned-subaccount-request

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Body (application/json)

This endpoint expects a CreateMasterOwnedSubAccountRequest.

- `marginType` (enum, required) — Hedger, Speculator
  - Allowed values: `Hedger`, `Speculator`
- `authorizedIndividual` (boolean, required)
- `masterAccountName` (string, required)
- `externalWalletId` (string, optional)
- `transferAmount` (double, optional)
- `riskCategoryId` (long, optional)
- `autoLiqProfileId` (long, optional)

## Response

### 200

CreateMasterOwnedSubAccountRequestResponse

- `errorText` (string, optional) — Non-empty if the request failed
- `requestId` (long, optional)
- `status` (enum, optional) — Approved, Denied, InAMLReview, InReview, Pending, Preapproved
  - Allowed values: `Approved`, `Denied`, `InAMLReview`, `InReview`, `Pending`, `Preapproved`

## Examples

**Request**

```json
{
  "marginType": "Hedger",
  "authorizedIndividual": true,
  "masterAccountName": "string"
}
```

**Response**

```json
{
  "errorText": "string",
  "requestId": 1,
  "status": "Approved"
}
```

**SDK Code**

```python
import requests

url = "https://live.tradovateapi.com/v1/customerApplication/createmasterownedsubaccountrequest"

payload = {
    "marginType": "Hedger",
    "authorizedIndividual": True,
    "masterAccountName": "string"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://live.tradovateapi.com/v1/customerApplication/createmasterownedsubaccountrequest';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"marginType":"Hedger","authorizedIndividual":true,"masterAccountName":"string"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://live.tradovateapi.com/v1/customerApplication/createmasterownedsubaccountrequest"

	payload := strings.NewReader("{\n  \"marginType\": \"Hedger\",\n  \"authorizedIndividual\": true,\n  \"masterAccountName\": \"string\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://live.tradovateapi.com/v1/customerApplication/createmasterownedsubaccountrequest")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"marginType\": \"Hedger\",\n  \"authorizedIndividual\": true,\n  \"masterAccountName\": \"string\"\n}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://live.tradovateapi.com/v1/customerApplication/createmasterownedsubaccountrequest")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"marginType\": \"Hedger\",\n  \"authorizedIndividual\": true,\n  \"masterAccountName\": \"string\"\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://live.tradovateapi.com/v1/customerApplication/createmasterownedsubaccountrequest', [
  'body' => '{
  "marginType": "Hedger",
  "authorizedIndividual": true,
  "masterAccountName": "string"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://live.tradovateapi.com/v1/customerApplication/createmasterownedsubaccountrequest");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"marginType\": \"Hedger\",\n  \"authorizedIndividual\": true,\n  \"masterAccountName\": \"string\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "marginType": "Hedger",
  "authorizedIndividual": true,
  "masterAccountName": "string"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://live.tradovateapi.com/v1/customerApplication/createmasterownedsubaccountrequest")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```