POST api/Customer/Import

Request Information

URI Parameters

None.

Body Parameters

Collection of CustomerImportRecord
NameDescriptionTypeAdditional information
RowID

integer

None.

ShowDupCheck

boolean

None.

InsertIntoDuplicate

boolean

None.

CustomerName

string

None.

PrimaryIndustry

PrimaryIndustry

None.

SecondaryIndustry

SecondaryIndustry

None.

FirstName

string

None.

LastName

string

None.

ContactFunction

ContactFunction

None.

ContactEmail

string

None.

ContactWorkPhone

string

None.

ContactCellPhone

string

None.

ContactFax

string

None.

AddressDescription

string

None.

AddressLine1

string

None.

AddressLine2

string

None.

City

string

None.

State

StateViewModel

None.

Zip

string

None.

LocationNotes

string

None.

LocationPhone

string

None.

LocationFax

string

None.

StatusType

string

None.

SalesPerson

SalesAssociate

None.

TaxRate

decimal number

None.

PrimaryLeadSource

PrimaryLeadSource

None.

PrimaryLeadType

PrimaryLeadType

None.

SubLeadType

SubLeadType

None.

LeadTypeOther

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "rowID": 1,
    "showDupCheck": true,
    "insertIntoDuplicate": true,
    "customerName": "sample string 4",
    "primaryIndustry": {
      "primaryIndustryID": 1,
      "primaryIndustryName": "sample string 2",
      "primaryIndustryIcon": "sample string 3"
    },
    "secondaryIndustry": {
      "secondaryIndustryID": 1,
      "secondaryIndustryName": "sample string 2",
      "primaryIndustryID": 3
    },
    "firstName": "sample string 5",
    "lastName": "sample string 6",
    "contactFunction": {
      "contactFunctionID": 1,
      "contactFunctionName": "sample string 2",
      "primaryIndustryID": 3
    },
    "contactEmail": "sample string 7",
    "contactWorkPhone": "sample string 8",
    "contactCellPhone": "sample string 9",
    "contactFax": "sample string 10",
    "addressDescription": "sample string 11",
    "addressLine1": "sample string 12",
    "addressLine2": "sample string 13",
    "city": "sample string 14",
    "state": {
      "stateID": 1,
      "stateName": "sample string 2",
      "stateAbvr": "sample string 3",
      "countryID": 4
    },
    "zip": "sample string 15",
    "locationNotes": "sample string 16",
    "locationPhone": "sample string 17",
    "locationFax": "sample string 18",
    "statusType": "sample string 19",
    "salesPerson": {
      "salesAssociateID": 1,
      "salesAssociateName": "sample string 2"
    },
    "taxRate": 20.0,
    "primaryLeadSource": {
      "primaryLeadSourceID": 1,
      "primaryLeadSourceName": "sample string 2",
      "isWeb": true
    },
    "primaryLeadType": {
      "primaryLeadTypeID": 1,
      "primaryLeadTypeName": "sample string 2",
      "primaryLeadSourceID": 3
    },
    "subLeadType": {
      "subLeadTypeID": 1,
      "subLeadTypeName": "sample string 2",
      "primaryLeadTypeID": 3
    },
    "leadTypeOther": "sample string 21"
  },
  {
    "rowID": 1,
    "showDupCheck": true,
    "insertIntoDuplicate": true,
    "customerName": "sample string 4",
    "primaryIndustry": {
      "primaryIndustryID": 1,
      "primaryIndustryName": "sample string 2",
      "primaryIndustryIcon": "sample string 3"
    },
    "secondaryIndustry": {
      "secondaryIndustryID": 1,
      "secondaryIndustryName": "sample string 2",
      "primaryIndustryID": 3
    },
    "firstName": "sample string 5",
    "lastName": "sample string 6",
    "contactFunction": {
      "contactFunctionID": 1,
      "contactFunctionName": "sample string 2",
      "primaryIndustryID": 3
    },
    "contactEmail": "sample string 7",
    "contactWorkPhone": "sample string 8",
    "contactCellPhone": "sample string 9",
    "contactFax": "sample string 10",
    "addressDescription": "sample string 11",
    "addressLine1": "sample string 12",
    "addressLine2": "sample string 13",
    "city": "sample string 14",
    "state": {
      "stateID": 1,
      "stateName": "sample string 2",
      "stateAbvr": "sample string 3",
      "countryID": 4
    },
    "zip": "sample string 15",
    "locationNotes": "sample string 16",
    "locationPhone": "sample string 17",
    "locationFax": "sample string 18",
    "statusType": "sample string 19",
    "salesPerson": {
      "salesAssociateID": 1,
      "salesAssociateName": "sample string 2"
    },
    "taxRate": 20.0,
    "primaryLeadSource": {
      "primaryLeadSourceID": 1,
      "primaryLeadSourceName": "sample string 2",
      "isWeb": true
    },
    "primaryLeadType": {
      "primaryLeadTypeID": 1,
      "primaryLeadTypeName": "sample string 2",
      "primaryLeadSourceID": 3
    },
    "subLeadType": {
      "subLeadTypeID": 1,
      "subLeadTypeName": "sample string 2",
      "primaryLeadTypeID": 3
    },
    "leadTypeOther": "sample string 21"
  }
]

application/xml, text/xml

Sample:
<ArrayOfCustomerImportRecord xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GameTimeBAL.ViewModels">
  <CustomerImportRecord>
    <AddressDescription>sample string 11</AddressDescription>
    <AddressLine1>sample string 12</AddressLine1>
    <AddressLine2>sample string 13</AddressLine2>
    <City>sample string 14</City>
    <ContactCellPhone>sample string 9</ContactCellPhone>
    <ContactEmail>sample string 7</ContactEmail>
    <ContactFax>sample string 10</ContactFax>
    <ContactFunction>
      <ContactFunctionID>1</ContactFunctionID>
      <ContactFunctionName>sample string 2</ContactFunctionName>
      <PrimaryIndustryID>3</PrimaryIndustryID>
    </ContactFunction>
    <ContactWorkPhone>sample string 8</ContactWorkPhone>
    <CustomerName>sample string 4</CustomerName>
    <FirstName>sample string 5</FirstName>
    <InsertIntoDuplicate>true</InsertIntoDuplicate>
    <LastName>sample string 6</LastName>
    <LeadTypeOther>sample string 21</LeadTypeOther>
    <LocationFax>sample string 18</LocationFax>
    <LocationNotes>sample string 16</LocationNotes>
    <LocationPhone>sample string 17</LocationPhone>
    <PrimaryIndustry>
      <PrimaryIndustryID>1</PrimaryIndustryID>
      <PrimaryIndustryIcon>sample string 3</PrimaryIndustryIcon>
      <PrimaryIndustryName>sample string 2</PrimaryIndustryName>
    </PrimaryIndustry>
    <PrimaryLeadSource>
      <IsWeb>true</IsWeb>
      <PrimaryLeadSourceID>1</PrimaryLeadSourceID>
      <PrimaryLeadSourceName>sample string 2</PrimaryLeadSourceName>
    </PrimaryLeadSource>
    <PrimaryLeadType>
      <PrimaryLeadSourceID>3</PrimaryLeadSourceID>
      <PrimaryLeadTypeID>1</PrimaryLeadTypeID>
      <PrimaryLeadTypeName>sample string 2</PrimaryLeadTypeName>
    </PrimaryLeadType>
    <RowID>1</RowID>
    <SalesPerson>
      <SalesAssociateID>1</SalesAssociateID>
      <SalesAssociateName>sample string 2</SalesAssociateName>
    </SalesPerson>
    <SecondaryIndustry>
      <PrimaryIndustryID>3</PrimaryIndustryID>
      <SecondaryIndustryID>1</SecondaryIndustryID>
      <SecondaryIndustryName>sample string 2</SecondaryIndustryName>
    </SecondaryIndustry>
    <ShowDupCheck>true</ShowDupCheck>
    <State>
      <CountryID>4</CountryID>
      <StateAbvr>sample string 3</StateAbvr>
      <StateID>1</StateID>
      <StateName>sample string 2</StateName>
    </State>
    <StatusType>sample string 19</StatusType>
    <SubLeadType>
      <PrimaryLeadTypeID>3</PrimaryLeadTypeID>
      <SubLeadTypeID>1</SubLeadTypeID>
      <SubLeadTypeName>sample string 2</SubLeadTypeName>
    </SubLeadType>
    <TaxRate>20</TaxRate>
    <Zip>sample string 15</Zip>
  </CustomerImportRecord>
  <CustomerImportRecord>
    <AddressDescription>sample string 11</AddressDescription>
    <AddressLine1>sample string 12</AddressLine1>
    <AddressLine2>sample string 13</AddressLine2>
    <City>sample string 14</City>
    <ContactCellPhone>sample string 9</ContactCellPhone>
    <ContactEmail>sample string 7</ContactEmail>
    <ContactFax>sample string 10</ContactFax>
    <ContactFunction>
      <ContactFunctionID>1</ContactFunctionID>
      <ContactFunctionName>sample string 2</ContactFunctionName>
      <PrimaryIndustryID>3</PrimaryIndustryID>
    </ContactFunction>
    <ContactWorkPhone>sample string 8</ContactWorkPhone>
    <CustomerName>sample string 4</CustomerName>
    <FirstName>sample string 5</FirstName>
    <InsertIntoDuplicate>true</InsertIntoDuplicate>
    <LastName>sample string 6</LastName>
    <LeadTypeOther>sample string 21</LeadTypeOther>
    <LocationFax>sample string 18</LocationFax>
    <LocationNotes>sample string 16</LocationNotes>
    <LocationPhone>sample string 17</LocationPhone>
    <PrimaryIndustry>
      <PrimaryIndustryID>1</PrimaryIndustryID>
      <PrimaryIndustryIcon>sample string 3</PrimaryIndustryIcon>
      <PrimaryIndustryName>sample string 2</PrimaryIndustryName>
    </PrimaryIndustry>
    <PrimaryLeadSource>
      <IsWeb>true</IsWeb>
      <PrimaryLeadSourceID>1</PrimaryLeadSourceID>
      <PrimaryLeadSourceName>sample string 2</PrimaryLeadSourceName>
    </PrimaryLeadSource>
    <PrimaryLeadType>
      <PrimaryLeadSourceID>3</PrimaryLeadSourceID>
      <PrimaryLeadTypeID>1</PrimaryLeadTypeID>
      <PrimaryLeadTypeName>sample string 2</PrimaryLeadTypeName>
    </PrimaryLeadType>
    <RowID>1</RowID>
    <SalesPerson>
      <SalesAssociateID>1</SalesAssociateID>
      <SalesAssociateName>sample string 2</SalesAssociateName>
    </SalesPerson>
    <SecondaryIndustry>
      <PrimaryIndustryID>3</PrimaryIndustryID>
      <SecondaryIndustryID>1</SecondaryIndustryID>
      <SecondaryIndustryName>sample string 2</SecondaryIndustryName>
    </SecondaryIndustry>
    <ShowDupCheck>true</ShowDupCheck>
    <State>
      <CountryID>4</CountryID>
      <StateAbvr>sample string 3</StateAbvr>
      <StateID>1</StateID>
      <StateName>sample string 2</StateName>
    </State>
    <StatusType>sample string 19</StatusType>
    <SubLeadType>
      <PrimaryLeadTypeID>3</PrimaryLeadTypeID>
      <SubLeadTypeID>1</SubLeadTypeID>
      <SubLeadTypeName>sample string 2</SubLeadTypeName>
    </SubLeadType>
    <TaxRate>20</TaxRate>
    <Zip>sample string 15</Zip>
  </CustomerImportRecord>
</ArrayOfCustomerImportRecord>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.