Skip to main content
POST
Create Company

Authorizations

X-API-KEY
string
header
required

Body

Serializer for creating a new Company object.

name
string
required

Name of the company.

Required string length: 1 - 200
externalId
string | null

External identifier for the company. Used to associate company in Nectar with company within your database.

dataCollectionStartDate
string<date>

Date when data collection for the company begins. This is the date from which Nectar will pull historical data. Similar fields at the site and workflow level can override this date. Defaults to January 1st of the previous year.

isImpliedMeteringEnabled
boolean
default:false

Whether implied sewer metering is enabled: when a bill has no sewer meter, sewer usage is estimated from water usage using impliedMeteringFraction. Defaults to false.

impliedMeteringFraction
string<decimal>

Fraction used to estimate sewer usage from water usage for implied metering. If a sewage charge is found in the data without water usage, this fraction is used to estimate the waste water usage that corresponds to the sewage charge. Defaults to 1.0.

Pattern: ^-?\d{0,1}(?:\.\d{0,2})?$
isDemandEnabled
boolean
deprecated

Deprecated. Demand meters are tracked for every company. Ignored on input; always true.

isBasicIdentifierMappingEnabled
boolean
deprecated

Deprecated. Every company uses the full set of identifier types. Ignored on input; always false.

isLowAccuracyModeEnabled
boolean
deprecated

Deprecated. Every bill gets the standard accuracy review. Ignored on input; always false.

users
string<email>[]

List of email addresses of users to set as company admins. If provided, these users will be added as admins along with the authenticated user. If not provided, only the authenticated user will be set as admin.

Minimum string length: 1

Response

Serializer for externally available fields of a Company object including related sites.

id
string<uuid>
required

Unique identifier for the company.

name
string
required

Name of the company.

Maximum string length: 200
isImpliedMeteringEnabled
boolean
required

Whether implied sewer metering is enabled: when a bill has no sewer meter, sewer usage is estimated from water usage using impliedMeteringFraction.

isDemandEnabled
boolean
required
deprecated

Deprecated. Demand meters are tracked for every company. Ignored on input; always true.

isBasicIdentifierMappingEnabled
boolean
required
deprecated

Deprecated. Every company uses the full set of identifier types. Ignored on input; always false.

isLowAccuracyModeEnabled
boolean
required
deprecated

Deprecated. Every bill gets the standard accuracy review. Ignored on input; always false.

sites
object[]
required
users
string[]
required

List of user email addresses associated with the company.

externalId
string | null

External identifier for the company. Used to associate company in Nectar with company within your database.

dataCollectionStartDate
string<date>

Date when data collection for the company begins. This is the date from which Nectar will pull historical data. Similar fields at the site and workflow level can override this date. Defaults to January 1st of the previous year.

impliedMeteringFraction
string<decimal>

Fraction used to estimate sewer usage from water usage for implied metering. If a sewage charge is found in the data without water usage, this fraction is used to estimate the waste water usage that corresponds to the sewage charge. Defaults to 1.0.

Pattern: ^-?\d{0,1}(?:\.\d{0,2})?$