Create Reseller Account

Create Reseller Account #

Creates a new Account tenant

POST /v1.0/accounts

Example #

This request will create a new Account with the following details:

  • Name: "New account"
  • Description: "This is my new account"
  • Reference: "XYZ00001"
  • Enabled: false
  • TimeZone : "America/Los_Angeles",
  • CountryCode: "US"

Request #

POST <https://api.na.myreports.cloud/api/v1.0/accounts> HTTP/1.1
Content-Type: application/json
accept-charges: true
Authorisation: Bearer {TOKEN}
Connection: keep-alive
{
	"name": "New account",
	"description": "XYZ00001 is my new account",
	"reference" : "ABC00001",
	"enabled": false,
	"timezone": "America/Los_Angeles",
	"countryCode": "US",
}

Response #

HTTP/1.1 201 Created
Content-Type: application/json; charset=utf-8
Content-Length: xx
Location: <https://api.na.myreports.cloud/api/v1.0/accounts/{NEW_ACCOUNT_TENANT_ID}>
{
	"data": {
		"id": "{NEW_ACCOUNT_TENANT_ID}",
		"name": "New account",
		"description": "This is my new account",
		"enabled": false,
		"parentTenantId": "{PARENT_ENTERPRISE_TENANT_ID}"
	},
	"status": "success",
	"timestamp": "2019-01-01T10:00:00.6829447Z"
}

Errors #

Unauthorised #

When the token is not provided, invalid or expired

HTTP/1.1 401 Unauthorised