POST api/Owners

Request Information

URI Parameters

None.

Body Parameters

Owner
NameDescriptionTypeAdditional information
OwnerId

integer

None.

LegacyElectricOwnerId

integer

None.

LegacyWaterOwnerId

integer

None.

OwnerName

string

Max length: 200

ContactName

string

Max length: 200

Address1

string

Max length: 80

Address2

string

Max length: 80

City

string

Max length: 50

State

string

Max length: 2

ZIP

string

Max length: 10

Phone

string

Max length: 20

EmailAddress

string

Max length: 200

MailingName

string

Max length: 200

MailingContact

string

Max length: 200

MailingAddress1

string

Max length: 80

MailingAddress2

string

Max length: 80

MailingCity

string

Max length: 50

MailingState

string

Max length: 2

MailingZIP

string

Max length: 10

MailingPhone

string

Max length: 20

MailingEmailAddress

string

Max length: 200

PrivateOwner

string

Max length: 200

Status

string

Max length: 20

CustServiceAmt

decimal number

None.

DistFeeAmt

decimal number

None.

ProfitSharePerc

decimal number

None.

LastStatementDate

date

None.

DateCreated

date

None.

DateUpdated

date

None.

CreatedBy

integer

None.

UpdatedBy

integer

None.

GLCode

string

None.

GLCodes

Collection of OwnerGLCode

None.

Request Formats

application/json, text/json

Sample:
{
  "OwnerId": 1,
  "LegacyElectricOwnerId": 1,
  "LegacyWaterOwnerId": 1,
  "OwnerName": "sample string 2",
  "ContactName": "sample string 3",
  "Address1": "sample string 4",
  "Address2": "sample string 5",
  "City": "sample string 6",
  "State": "sample string 7",
  "ZIP": "sample string 8",
  "Phone": "sample string 9",
  "EmailAddress": "sample string 10",
  "MailingName": "sample string 11",
  "MailingContact": "sample string 12",
  "MailingAddress1": "sample string 13",
  "MailingAddress2": "sample string 14",
  "MailingCity": "sample string 15",
  "MailingState": "sample string 16",
  "MailingZIP": "sample string 17",
  "MailingPhone": "sample string 18",
  "MailingEmailAddress": "sample string 19",
  "PrivateOwner": "sample string 20",
  "Status": "sample string 21",
  "CustServiceAmt": 1.0,
  "DistFeeAmt": 1.0,
  "ProfitSharePerc": 1.1,
  "LastStatementDate": "2020-07-02T08:02:42.6252542+00:00",
  "DateCreated": "2020-07-02T08:02:42.6252542+00:00",
  "DateUpdated": "2020-07-02T08:02:42.6252542+00:00",
  "CreatedBy": 1,
  "UpdatedBy": 1,
  "GLCode": "sample string 22",
  "GLCodes": [
    {
      "RecordId": 1,
      "OwnerId": 2,
      "UtilityId": 3,
      "GLCode": "sample string 4",
      "GLDescription": "sample string 5"
    },
    {
      "RecordId": 1,
      "OwnerId": 2,
      "UtilityId": 3,
      "GLCode": "sample string 4",
      "GLDescription": "sample string 5"
    }
  ]
}

application/xml, text/xml

Sample:
<Owner xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APL.Models">
  <Address1>sample string 4</Address1>
  <Address2>sample string 5</Address2>
  <City>sample string 6</City>
  <ContactName>sample string 3</ContactName>
  <CreatedBy>1</CreatedBy>
  <CustServiceAmt>1</CustServiceAmt>
  <DateCreated>2020-07-02T08:02:42.6252542+00:00</DateCreated>
  <DateUpdated>2020-07-02T08:02:42.6252542+00:00</DateUpdated>
  <DistFeeAmt>1</DistFeeAmt>
  <EmailAddress>sample string 10</EmailAddress>
  <GLCode>sample string 22</GLCode>
  <GLCodes>
    <OwnerGLCode>
      <GLCode>sample string 4</GLCode>
      <GLDescription>sample string 5</GLDescription>
      <OwnerId>2</OwnerId>
      <RecordId>1</RecordId>
      <UtilityId>3</UtilityId>
    </OwnerGLCode>
    <OwnerGLCode>
      <GLCode>sample string 4</GLCode>
      <GLDescription>sample string 5</GLDescription>
      <OwnerId>2</OwnerId>
      <RecordId>1</RecordId>
      <UtilityId>3</UtilityId>
    </OwnerGLCode>
  </GLCodes>
  <LastStatementDate>2020-07-02T08:02:42.6252542+00:00</LastStatementDate>
  <LegacyElectricOwnerId>1</LegacyElectricOwnerId>
  <LegacyWaterOwnerId>1</LegacyWaterOwnerId>
  <MailingAddress1>sample string 13</MailingAddress1>
  <MailingAddress2>sample string 14</MailingAddress2>
  <MailingCity>sample string 15</MailingCity>
  <MailingContact>sample string 12</MailingContact>
  <MailingEmailAddress>sample string 19</MailingEmailAddress>
  <MailingName>sample string 11</MailingName>
  <MailingPhone>sample string 18</MailingPhone>
  <MailingState>sample string 16</MailingState>
  <MailingZIP>sample string 17</MailingZIP>
  <OwnerId>1</OwnerId>
  <OwnerName>sample string 2</OwnerName>
  <Phone>sample string 9</Phone>
  <PrivateOwner>sample string 20</PrivateOwner>
  <ProfitSharePerc>1.1</ProfitSharePerc>
  <State>sample string 7</State>
  <Status>sample string 21</Status>
  <UpdatedBy>1</UpdatedBy>
  <ZIP>sample string 8</ZIP>
</Owner>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Owner'.

Response Information

Resource Description

Owner
NameDescriptionTypeAdditional information
OwnerId

integer

None.

LegacyElectricOwnerId

integer

None.

LegacyWaterOwnerId

integer

None.

OwnerName

string

Max length: 200

ContactName

string

Max length: 200

Address1

string

Max length: 80

Address2

string

Max length: 80

City

string

Max length: 50

State

string

Max length: 2

ZIP

string

Max length: 10

Phone

string

Max length: 20

EmailAddress

string

Max length: 200

MailingName

string

Max length: 200

MailingContact

string

Max length: 200

MailingAddress1

string

Max length: 80

MailingAddress2

string

Max length: 80

MailingCity

string

Max length: 50

MailingState

string

Max length: 2

MailingZIP

string

Max length: 10

MailingPhone

string

Max length: 20

MailingEmailAddress

string

Max length: 200

PrivateOwner

string

Max length: 200

Status

string

Max length: 20

CustServiceAmt

decimal number

None.

DistFeeAmt

decimal number

None.

ProfitSharePerc

decimal number

None.

LastStatementDate

date

None.

DateCreated

date

None.

DateUpdated

date

None.

CreatedBy

integer

None.

UpdatedBy

integer

None.

GLCode

string

None.

GLCodes

Collection of OwnerGLCode

None.

Response Formats

application/json, text/json

Sample:
{
  "OwnerId": 1,
  "LegacyElectricOwnerId": 1,
  "LegacyWaterOwnerId": 1,
  "OwnerName": "sample string 2",
  "ContactName": "sample string 3",
  "Address1": "sample string 4",
  "Address2": "sample string 5",
  "City": "sample string 6",
  "State": "sample string 7",
  "ZIP": "sample string 8",
  "Phone": "sample string 9",
  "EmailAddress": "sample string 10",
  "MailingName": "sample string 11",
  "MailingContact": "sample string 12",
  "MailingAddress1": "sample string 13",
  "MailingAddress2": "sample string 14",
  "MailingCity": "sample string 15",
  "MailingState": "sample string 16",
  "MailingZIP": "sample string 17",
  "MailingPhone": "sample string 18",
  "MailingEmailAddress": "sample string 19",
  "PrivateOwner": "sample string 20",
  "Status": "sample string 21",
  "CustServiceAmt": 1.0,
  "DistFeeAmt": 1.0,
  "ProfitSharePerc": 1.1,
  "LastStatementDate": "2020-07-02T08:02:42.6423831+00:00",
  "DateCreated": "2020-07-02T08:02:42.6423831+00:00",
  "DateUpdated": "2020-07-02T08:02:42.6423831+00:00",
  "CreatedBy": 1,
  "UpdatedBy": 1,
  "GLCode": "sample string 22",
  "GLCodes": [
    {
      "RecordId": 1,
      "OwnerId": 2,
      "UtilityId": 3,
      "GLCode": "sample string 4",
      "GLDescription": "sample string 5"
    },
    {
      "RecordId": 1,
      "OwnerId": 2,
      "UtilityId": 3,
      "GLCode": "sample string 4",
      "GLDescription": "sample string 5"
    }
  ]
}

application/xml, text/xml

Sample:
<Owner xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APL.Models">
  <Address1>sample string 4</Address1>
  <Address2>sample string 5</Address2>
  <City>sample string 6</City>
  <ContactName>sample string 3</ContactName>
  <CreatedBy>1</CreatedBy>
  <CustServiceAmt>1</CustServiceAmt>
  <DateCreated>2020-07-02T08:02:42.6423831+00:00</DateCreated>
  <DateUpdated>2020-07-02T08:02:42.6423831+00:00</DateUpdated>
  <DistFeeAmt>1</DistFeeAmt>
  <EmailAddress>sample string 10</EmailAddress>
  <GLCode>sample string 22</GLCode>
  <GLCodes>
    <OwnerGLCode>
      <GLCode>sample string 4</GLCode>
      <GLDescription>sample string 5</GLDescription>
      <OwnerId>2</OwnerId>
      <RecordId>1</RecordId>
      <UtilityId>3</UtilityId>
    </OwnerGLCode>
    <OwnerGLCode>
      <GLCode>sample string 4</GLCode>
      <GLDescription>sample string 5</GLDescription>
      <OwnerId>2</OwnerId>
      <RecordId>1</RecordId>
      <UtilityId>3</UtilityId>
    </OwnerGLCode>
  </GLCodes>
  <LastStatementDate>2020-07-02T08:02:42.6423831+00:00</LastStatementDate>
  <LegacyElectricOwnerId>1</LegacyElectricOwnerId>
  <LegacyWaterOwnerId>1</LegacyWaterOwnerId>
  <MailingAddress1>sample string 13</MailingAddress1>
  <MailingAddress2>sample string 14</MailingAddress2>
  <MailingCity>sample string 15</MailingCity>
  <MailingContact>sample string 12</MailingContact>
  <MailingEmailAddress>sample string 19</MailingEmailAddress>
  <MailingName>sample string 11</MailingName>
  <MailingPhone>sample string 18</MailingPhone>
  <MailingState>sample string 16</MailingState>
  <MailingZIP>sample string 17</MailingZIP>
  <OwnerId>1</OwnerId>
  <OwnerName>sample string 2</OwnerName>
  <Phone>sample string 9</Phone>
  <PrivateOwner>sample string 20</PrivateOwner>
  <ProfitSharePerc>1.1</ProfitSharePerc>
  <State>sample string 7</State>
  <Status>sample string 21</Status>
  <UpdatedBy>1</UpdatedBy>
  <ZIP>sample string 8</ZIP>
</Owner>