Home / API / ASP.NET Web API Details

POST api/v1/Estimate/PostCreateEstimate

Description

Create Estimate

Request Information

Parameters

NameDescriptionAdditional information
accountid
AccountId

Define this parameter in the request body.

siteid
SiteId

Define this parameter in the request body.

branchid
BranchId

Define this parameter in the request body.

routeid
RouteId

Define this parameter in the request body.

estimatetypeid
EstimateTypeId

Define this parameter in the request body.

sourceid
Optional: Source. If a text string is provided, the system will try to resolve the sourceId with it.

Define this parameter in the request body.

targetid
Optional: Target. If a text string is provided, the system will try to resolve the targetId with it.

Define this parameter in the request body.

name
Optional: The name/description of the estimate.

Define this parameter in the request body.

scheduleddate
Optional: The estimate schedule date (yyyy/MM/dd), the time part of the value won't be used.

Define this parameter in the request body.

duration
Optional: Service duration.

Define this parameter in the request body.

price
Optional: Estimate price.

Define this parameter in the request body.

instructions
Optional: Estimate instructions.

Define this parameter in the request body.

salespersonid
No documentation available.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "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:51:32.9879108+00:00",
  "duration": 1,
  "price": 1.0,
  "instructions": "sample string 9",
  "salespersonid": 10
}

application/xml, text/xml

Sample:
<createestimatemodel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APICOMMON">
  <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:51:32.9879108+00:00</scheduleddate>
  <siteid>2</siteid>
  <sourceid>sample string 6</sourceid>
  <targetid>sample string 7</targetid>
</createestimatemodel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

{ "estimateid": 26882 "message": "Successful" }

Response body formats

application/json, text/json

Sample:
{
  "estimateid": 1,
  "message": "sample string 2"
}

application/xml, text/xml

Sample:
<returnestimatemodel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APICOMMON">
  <estimateid>1</estimateid>
  <message>sample string 2</message>
</returnestimatemodel>