Home / API Documentation

Creating Account, Site, Estimate, Program, Event and WO

Method: POST api/v1/Account/PostCreateAllInAccount

Response Format:

application/json

Required Parameters Description Additional information
CompanyId
No documentation available.

Define this parameter in the request body.

BranchId
No documentation available.

Define this parameter in the request body.

LocaleId
No documentation available.

Define this parameter in the request body.

Email
No documentation available.

Define this parameter in the request body.

FirstName
No documentation available.

Define this parameter in the request body.

LastName
No documentation available.

Define this parameter in the request body.

AutoPay
No documentation available.

Define this parameter in the request body.

BusinessName
No documentation available.

Define this parameter in the request body.

paperless
No documentation available.

Define this parameter in the request body.

Site
No documentation available.

Define this parameter in the request body.

Estimate
No documentation available.

Define this parameter in the request body.

AccountAddress
No documentation available.

Define this parameter in the request body.

BillingAddress
No documentation available.

Define this parameter in the request body.

Contact
No documentation available.

Define this parameter in the request body.

ProgramTypeId
No documentation available.

Define this parameter in the request body.

ExpectedTimeOfArrival
No documentation available.

Define this parameter in the request body.

PestAgreementLength
No documentation available.

Define this parameter in the request body.

Events
No documentation available.

Define this parameter in the request body.

Note
No documentation available.

Define this parameter in the request body.

application/json, text/json

Sample Request:
                        {
  "CompanyId": 1,
  "BranchId": 2,
  "LocaleId": 3,
  "Email": "sample string 4",
  "FirstName": "sample string 5",
  "LastName": "sample string 6",
  "AutoPay": true,
  "BusinessName": "sample string 8",
  "paperless": 9,
  "Site": {
    "TaxTypeId": 1,
    "ShowSendingCompletedWOPrint": 2,
    "ShowSendingCompletedWOEmail": 3,
    "PropertyTypeId": 4
  },
  "Estimate": {
    "BranchId": 1,
    "RouteId": 2,
    "EstimateTypeId": 3,
    "SourceId": 4,
    "TargetId": 5,
    "Name": "sample string 6",
    "ScheduledDate": "sample string 7",
    "Duration": 8,
    "Price": 9.0,
    "Instructions": "sample string 10",
    "SalesPersonId": 11
  },
  "AccountAddress": {
    "StreetNumber": "sample string 1",
    "Predirection": "sample string 2",
    "StreetName": "sample string 3",
    "StreetSuffix": "sample string 4",
    "PostDirection": "sample string 5",
    "SecondaryAddress": "sample string 6",
    "City": "sample string 7",
    "State": "sample string 8",
    "PostalCode": "sample string 9",
    "PostalCodeEx": "sample string 10",
    "CountryId": 11,
    "Latitude": 12.1,
    "Longitude": 13.1
  },
  "BillingAddress": {
    "StreetNumber": "sample string 1",
    "Predirection": "sample string 2",
    "StreetName": "sample string 3",
    "StreetSuffix": "sample string 4",
    "PostDirection": "sample string 5",
    "SecondaryAddress": "sample string 6",
    "City": "sample string 7",
    "State": "sample string 8",
    "PostalCode": "sample string 9",
    "PostalCodeEx": "sample string 10",
    "CountryId": 11,
    "Latitude": 12.1,
    "Longitude": 13.1
  },
  "Contact": {
    "Email": "sample string 1",
    "Phone": "sample string 2",
    "PhoneExt": "sample string 3",
    "phonetype": 64
  },
  "ProgramTypeId": 10,
  "ExpectedTimeOfArrival": "2025-02-23T06:01:18.8539176+00:00",
  "PestAgreementLength": 12.0,
  "Events": [
    {
      "RouteId": 1,
      "Note": "sample string 2",
      "Instructions": "sample string 3",
      "ScheduleTimeType": "sample string 4",
      "ScheduleTime": 5,
      "Confirmed": true,
      "EventTypeId": 7,
      "InvoiceAmount": 8.1,
      "ProdAmount": 9.1,
      "SalesCommisionAmount": 10.1,
      "WorkPool": 11,
      "ScheduleDate": "sample string 12",
      "SaleDate": "sample string 13"
    },
    {
      "RouteId": 1,
      "Note": "sample string 2",
      "Instructions": "sample string 3",
      "ScheduleTimeType": "sample string 4",
      "ScheduleTime": 5,
      "Confirmed": true,
      "EventTypeId": 7,
      "InvoiceAmount": 8.1,
      "ProdAmount": 9.1,
      "SalesCommisionAmount": 10.1,
      "WorkPool": 11,
      "ScheduleDate": "sample string 12",
      "SaleDate": "sample string 13"
    }
  ],
  "Note": "sample string 13"
};