Home / API / ASP.NET Web API Details

POST api/v1/Account/PostBatchCreateProspects

Description

Create Multiple Prospects

Request Information

Parameters

NameDescriptionAdditional information
prospects
List of prospects

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
[
  {
    "businessname": "sample string 1",
    "firstname": "sample string 2",
    "lastname": "sample string 3",
    "middlename": "sample string 4",
    "saludationid": 1,
    "email": "sample string 5",
    "phonenumber": "sample string 6",
    "streetnumber": "sample string 7",
    "streetname": "sample string 8",
    "streetsufixid": 1,
    "city": "sample string 9",
    "state": "sample string 10",
    "postalcode": "sample string 11",
    "enterlocation": "sample string 12",
    "rankid": 1,
    "rank": "sample string 13",
    "statusid": 1,
    "status": "sample string 14",
    "servicecenterid": 1,
    "servicecenter": "sample string 15",
    "salespersonid": 1,
    "salesperson": "sample string 16",
    "propertytypeid": 1,
    "propertytype": "sample string 17",
    "instructions": "sample string 18",
    "routeid": 1,
    "route": "sample string 19"
  },
  {
    "businessname": "sample string 1",
    "firstname": "sample string 2",
    "lastname": "sample string 3",
    "middlename": "sample string 4",
    "saludationid": 1,
    "email": "sample string 5",
    "phonenumber": "sample string 6",
    "streetnumber": "sample string 7",
    "streetname": "sample string 8",
    "streetsufixid": 1,
    "city": "sample string 9",
    "state": "sample string 10",
    "postalcode": "sample string 11",
    "enterlocation": "sample string 12",
    "rankid": 1,
    "rank": "sample string 13",
    "statusid": 1,
    "status": "sample string 14",
    "servicecenterid": 1,
    "servicecenter": "sample string 15",
    "salespersonid": 1,
    "salesperson": "sample string 16",
    "propertytypeid": 1,
    "propertytype": "sample string 17",
    "instructions": "sample string 18",
    "routeid": 1,
    "route": "sample string 19"
  }
]

application/xml, text/xml

Sample:
<ArrayOfprospectmodel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APICOMMON">
  <prospectmodel>
    <businessname>sample string 1</businessname>
    <city>sample string 9</city>
    <email>sample string 5</email>
    <enterlocation>sample string 12</enterlocation>
    <firstname>sample string 2</firstname>
    <instructions>sample string 18</instructions>
    <lastname>sample string 3</lastname>
    <middlename>sample string 4</middlename>
    <phonenumber>sample string 6</phonenumber>
    <postalcode>sample string 11</postalcode>
    <propertytype>sample string 17</propertytype>
    <propertytypeid>1</propertytypeid>
    <rank>sample string 13</rank>
    <rankid>1</rankid>
    <route>sample string 19</route>
    <routeid>1</routeid>
    <salesperson>sample string 16</salesperson>
    <salespersonid>1</salespersonid>
    <saludationid>1</saludationid>
    <servicecenter>sample string 15</servicecenter>
    <servicecenterid>1</servicecenterid>
    <state>sample string 10</state>
    <status>sample string 14</status>
    <statusid>1</statusid>
    <streetname>sample string 8</streetname>
    <streetnumber>sample string 7</streetnumber>
    <streetsufixid>1</streetsufixid>
  </prospectmodel>
  <prospectmodel>
    <businessname>sample string 1</businessname>
    <city>sample string 9</city>
    <email>sample string 5</email>
    <enterlocation>sample string 12</enterlocation>
    <firstname>sample string 2</firstname>
    <instructions>sample string 18</instructions>
    <lastname>sample string 3</lastname>
    <middlename>sample string 4</middlename>
    <phonenumber>sample string 6</phonenumber>
    <postalcode>sample string 11</postalcode>
    <propertytype>sample string 17</propertytype>
    <propertytypeid>1</propertytypeid>
    <rank>sample string 13</rank>
    <rankid>1</rankid>
    <route>sample string 19</route>
    <routeid>1</routeid>
    <salesperson>sample string 16</salesperson>
    <salespersonid>1</salespersonid>
    <saludationid>1</saludationid>
    <servicecenter>sample string 15</servicecenter>
    <servicecenterid>1</servicecenterid>
    <state>sample string 10</state>
    <status>sample string 14</status>
    <statusid>1</statusid>
    <streetname>sample string 8</streetname>
    <streetnumber>sample string 7</streetnumber>
    <streetsufixid>1</streetsufixid>
  </prospectmodel>
</ArrayOfprospectmodel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

No documentation available.

Response body formats

application/json, text/json

Sample:
[
  {
    "customerid": 1,
    "prospectid": 2,
    "error": {
      "status": 1,
      "message": "sample string 2"
    }
  },
  {
    "customerid": 1,
    "prospectid": 2,
    "error": {
      "status": 1,
      "message": "sample string 2"
    }
  }
]

application/xml, text/xml

Sample:
<ArrayOfcustomerprospect xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APICOMMON">
  <customerprospect>
    <customerid>1</customerid>
    <error>
      <message>sample string 2</message>
      <status>1</status>
    </error>
    <prospectid>2</prospectid>
  </customerprospect>
  <customerprospect>
    <customerid>1</customerid>
    <error>
      <message>sample string 2</message>
      <status>1</status>
    </error>
    <prospectid>2</prospectid>
  </customerprospect>
</ArrayOfcustomerprospect>