{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/brevo/main/json-schema/brevo-master-account-get-the-details-of-requested-master-account-response-200-schema.json",
  "title": "Master account_getTheDetailsOfRequestedMasterAccount_Response_200",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/brevo-master-account-api-openapi.yml#/components/schemas/Master_account_getTheDetailsOfRequestedMasterAccount_Response_200",
  "type": "object",
  "properties": {
    "billingInfo": {
      "$ref": "#/$defs/CorporateMasterAccountGetResponsesContentApplicationJsonSchemaBillingInfo",
      "description": "Billing details of the master account organization"
    },
    "companyName": {
      "type": "string",
      "description": "Company name of master account organization"
    },
    "currencyCode": {
      "type": "string",
      "description": "Currency code of the master account organization"
    },
    "email": {
      "type": "string",
      "description": "Email id of master account"
    },
    "id": {
      "type": "integer",
      "format": "int64",
      "description": "Unique identifier of the master account organization"
    },
    "planInfo": {
      "$ref": "#/$defs/CorporateMasterAccountGetResponsesContentApplicationJsonSchemaPlanInfo",
      "description": "Plan details"
    },
    "timezone": {
      "type": "string",
      "description": "Timezone of the master account organization"
    }
  },
  "$defs": {
    "CorporateMasterAccountGetResponsesContentApplicationJsonSchemaBillingInfo": {
      "type": "object",
      "properties": {
        "address": {
          "$ref": "#/$defs/CorporateMasterAccountGetResponsesContentApplicationJsonSchemaBillingInfoAddress",
          "description": "Billing address of master account"
        },
        "companyName": {
          "type": "string",
          "description": "Company name of master account"
        },
        "email": {
          "type": "string",
          "description": "Billing email id of master account"
        },
        "name": {
          "$ref": "#/$defs/CorporateMasterAccountGetResponsesContentApplicationJsonSchemaBillingInfoName",
          "description": "Billing name of master account holder"
        }
      },
      "description": "Billing details of the master account organization",
      "title": "CorporateMasterAccountGetResponsesContentApplicationJsonSchemaBillingInfo"
    },
    "CorporateMasterAccountGetResponsesContentApplicationJsonSchemaBillingInfoAddress": {
      "type": "object",
      "properties": {
        "countryCode": {
          "type": "string",
          "description": "Country code"
        },
        "locality": {
          "type": "string",
          "description": "Locality"
        },
        "postalCode": {
          "type": "string",
          "description": "Postal code"
        },
        "stateCode": {
          "type": "string",
          "description": "State code"
        },
        "streetAddress": {
          "type": "string",
          "description": "Street address"
        }
      },
      "description": "Billing address of master account",
      "title": "CorporateMasterAccountGetResponsesContentApplicationJsonSchemaBillingInfoAddress"
    },
    "CorporateMasterAccountGetResponsesContentApplicationJsonSchemaBillingInfoName": {
      "type": "object",
      "properties": {
        "familyName": {
          "type": "string",
          "description": "Last name for billing"
        },
        "givenName": {
          "type": "string",
          "description": "First name for billing"
        }
      },
      "description": "Billing name of master account holder",
      "title": "CorporateMasterAccountGetResponsesContentApplicationJsonSchemaBillingInfoName"
    },
    "CorporateMasterAccountGetResponsesContentApplicationJsonSchemaPlanInfo": {
      "type": "object",
      "properties": {
        "currencyCode": {
          "type": "string",
          "description": "Plan currency"
        },
        "features": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CorporateMasterAccountGetResponsesContentApplicationJsonSchemaPlanInfoFeaturesItems"
          },
          "description": "List of provided features in the plan"
        },
        "nextBillingAt": {
          "type": "integer",
          "format": "int64",
          "description": "Timestamp of next billing date"
        },
        "planPeriod": {
          "$ref": "#/$defs/CorporateMasterAccountGetResponsesContentApplicationJsonSchemaPlanInfoPlanPeriod",
          "description": "Plan period type"
        },
        "price": {
          "type": "number",
          "format": "double",
          "description": "Plan amount"
        },
        "subAccounts": {
          "type": "integer",
          "description": "Number of sub-accounts"
        }
      },
      "description": "Plan details",
      "title": "CorporateMasterAccountGetResponsesContentApplicationJsonSchemaPlanInfo"
    },
    "CorporateMasterAccountGetResponsesContentApplicationJsonSchemaPlanInfoFeaturesItems": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the feature"
        },
        "quantity": {
          "type": "integer",
          "format": "int64",
          "description": "Quantity provided in the plan"
        },
        "quantityWithOverages": {
          "type": "integer",
          "format": "int64",
          "description": "Quantity with overages provided in the plan (only\napplicable on ENTv2)"
        },
        "remaining": {
          "type": "integer",
          "format": "int64",
          "description": "Quantity remaining in the plan"
        },
        "unitValue": {
          "type": "string",
          "description": "Unit value of the feature"
        },
        "used": {
          "type": "integer",
          "format": "int64",
          "description": "Quantity consumed by master"
        },
        "usedOverages": {
          "type": "integer",
          "format": "int64",
          "description": "Quantity consumed by sub-organizations over the\nadmin plan limit (only applicable on ENTv2)"
        }
      },
      "title": "CorporateMasterAccountGetResponsesContentApplicationJsonSchemaPlanInfoFeaturesItems"
    },
    "CorporateMasterAccountGetResponsesContentApplicationJsonSchemaPlanInfoPlanPeriod": {
      "type": "string",
      "enum": [
        "month",
        "year"
      ],
      "description": "Plan period type",
      "title": "CorporateMasterAccountGetResponsesContentApplicationJsonSchemaPlanInfoPlanPeriod"
    }
  }
}