Create a reseller organization

Creates a new reseller organization.

POST/v3/resellers/{resellerId}/organizations
JWT
reseller:organization:create

Parameters

NameTypeInDescription
resellerId*stringpath

Request Body Schema

PropertyTypeDescriptionConstraints
name*stringName of the organization.min: 1, max: 256
email*stringNotification email of the organization.min: 1, max: 256, format: email
descriptionstringDescription for the organization.min: 0, max: 256
allowedUsers*integerMax number of users the organization is allowed to create. Set to -1 to allow unlimited users.min: -1, max: 2147483647, format: int32
addressobject
addressLine1stringAddress line1.min: 0, max: 256
addressLine2stringAddress line2.min: 0, max: 256
citystringAddress city.min: 0, max: 256
statestringAddress state.min: 0, max: 256
countrystringAddress country.min: 0, max: 256
postalCodestringAddress postal code.min: 0, max: 256
resellerIdstringUnique identifier for the reseller.min: 0, max: 256

Request Example

{
  "name": "string",
  "email": "user@example.com",
  "description": "string",
  "allowedUsers": -1,
  "address": {
    "addressLine1": "string",
    "addressLine2": "string",
    "city": "string",
    "state": "string",
    "country": "string",
    "postalCode": "string"
  },
  "resellerId": "string"
}
Triggers webhook: reseller.organization.created
POST <your-webhook-url>
{
  "event": "reseller.organization.created",
  "data": {
    "id": "string",
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z",
    "name": "string",
    "email": "string",
    "description": "string",
    "allowedUsers": 0,
    "address": {
      "addressLine1": "string",
      "addressLine2": "string",
      "city": "string",
      "state": "string",
      "country": "string",
      "postalCode": "string"
    }
  },
  "triggeredAt": "string"
}

Responses

201 Created
{
  "id": "string",
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z",
  "name": "string",
  "email": "string",
  "description": "string",
  "allowedUsers": 0,
  "address": {
    "addressLine1": "string",
    "addressLine2": "string",
    "city": "string",
    "state": "string",
    "country": "string",
    "postalCode": "string"
  }
}