Home / API / ASP.NET Web API Details

POST api/v1/Account/PostCreateAccountAndEstimate

Description

Create Account with site and Estimate

Request Information

Parameters

NameDescriptionAdditional information
accountmodel
No documentation available.

Define this parameter in the request body.

estimatemodel
No documentation available.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "accountmodel": {
    "companyid": 1,
    "branchid": 2,
    "localeid": 1,
    "email": "sample string 3",
    "streetnumber": "sample string 4",
    "streetname": "sample string 5",
    "city": "sample string 6",
    "state": "sample string 7",
    "postalcode": "sample string 8",
    "postalcodeex": "sample string 9",
    "firstname": "sample string 10",
    "lastname": "sample string 11",
    "businessname": "sample string 12",
    "phonenum": "sample string 13",
    "phoneext": "sample string 14",
    "latitude": 15.0,
    "longitude": 16.0,
    "paperless": 17,
    "phonetype": 64,
    "taxtypeid": 19,
    "sendcompletedwomethod": 20,
    "sendcompletedwoto": 21,
    "propertytype": 22
  },
  "estimatemodel": {
    "accountid": 1,
    "siteid": 2,
    "branchid": 3,
    "routeid": 4,
    "estimatetypeid": 5,
    "sourceid": "sample string 6",
    "targetid": "sample string 7",
    "name": "sample string 8",
    "scheduleddate": "2025-04-20T02:53:12.3238045+00:00",
    "duration": 1,
    "price": 1.0,
    "instructions": "sample string 9",
    "salespersonid": 10
  }
}

application/xml, text/xml

Sample:
<createaccountandestimatemodel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APICOMMON">
  <accountmodel>
    <branchid>2</branchid>
    <businessname>sample string 12</businessname>
    <city>sample string 6</city>
    <companyid>1</companyid>
    <email>sample string 3</email>
    <firstname>sample string 10</firstname>
    <lastname>sample string 11</lastname>
    <latitude>15</latitude>
    <localeid>1</localeid>
    <longitude>16</longitude>
    <paperless>17</paperless>
    <phoneext>sample string 14</phoneext>
    <phonenum>sample string 13</phonenum>
    <phonetype>64</phonetype>
    <postalcode>sample string 8</postalcode>
    <postalcodeex>sample string 9</postalcodeex>
    <propertytype>22</propertytype>
    <sendcompletedwomethod>20</sendcompletedwomethod>
    <sendcompletedwoto>21</sendcompletedwoto>
    <state>sample string 7</state>
    <streetname>sample string 5</streetname>
    <streetnumber>sample string 4</streetnumber>
    <taxtypeid>19</taxtypeid>
  </accountmodel>
  <estimatemodel>
    <accountid>1</accountid>
    <branchid>3</branchid>
    <duration>1</duration>
    <estimatetypeid>5</estimatetypeid>
    <instructions>sample string 9</instructions>
    <name>sample string 8</name>
    <price>1</price>
    <routeid>4</routeid>
    <salespersonid>10</salespersonid>
    <scheduleddate>2025-04-20T02:53:12.3238045+00:00</scheduleddate>
    <siteid>2</siteid>
    <sourceid>sample string 6</sourceid>
    <targetid>sample string 7</targetid>
  </estimatemodel>
</createaccountandestimatemodel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

{ "returnaccount": { "accountid": 646282, "accountnum": "646282", "siteid": 637261, "message": "Successful" }, "returnestimate": { "estimateid": 1216837, "message": "Successful" } }

Response body formats

application/json, text/json

Sample:
{
  "returnaccount": {
    "accountid": 1,
    "accountnum": "sample string 2",
    "siteid": 3,
    "message": "sample string 4"
  },
  "returnestimate": {
    "estimateid": 1,
    "message": "sample string 2"
  }
}

application/xml, text/xml

Sample:
<returnaccountestimatemodel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APICOMMON">
  <returnaccount>
    <accountid>1</accountid>
    <accountnum>sample string 2</accountnum>
    <message>sample string 4</message>
    <siteid>3</siteid>
  </returnaccount>
  <returnestimate>
    <estimateid>1</estimateid>
    <message>sample string 2</message>
  </returnestimate>
</returnaccountestimatemodel>