POST api/Customer/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
CustomerViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| CustomerID | integer |
None. |
|
| AccountName | string |
None. |
|
| IsTargetAccount | boolean |
None. |
|
| AccountType | string |
None. |
|
| Phone | string |
None. |
|
| LeadSourceOther | string |
None. |
|
| Website | string |
None. |
|
| string |
None. |
||
| Fax | string |
None. |
|
| TaxRate | decimal number |
None. |
|
| IsTaxExempt | boolean |
None. |
|
| TaxExemptNumber | string |
None. |
|
| UsCommunitiesContactNumber | string |
None. |
|
| Comments | string |
None. |
|
| Prospect | ProspectStatus |
None. |
|
| PrimaryIndustry | PrimaryIndustry |
None. |
|
| SecondaryIndustry | SecondaryIndustry |
None. |
|
| SalesAssociate | SalesAssociate |
None. |
|
| PrimaryLeadSource | PrimaryLeadSource |
None. |
|
| PrimaryLeadType | PrimaryLeadType |
None. |
|
| SubLeadType | SubLeadType |
None. |
Request Formats
application/json, text/json
Sample:
{
"customerID": 1,
"accountName": "sample string 2",
"isTargetAccount": true,
"accountType": "sample string 3",
"phone": "sample string 4",
"leadSourceOther": "sample string 5",
"website": "sample string 6",
"email": "sample string 7",
"fax": "sample string 8",
"taxRate": 1.1,
"isTaxExempt": true,
"taxExemptNumber": "sample string 9",
"usCommunitiesContactNumber": "sample string 10",
"comments": "sample string 11",
"prospect": {
"prospectStatusID": 1,
"prospectStatusName": "sample string 2"
},
"primaryIndustry": {
"primaryIndustryID": 1,
"primaryIndustryName": "sample string 2",
"primaryIndustryIcon": "sample string 3"
},
"secondaryIndustry": {
"secondaryIndustryID": 1,
"secondaryIndustryName": "sample string 2",
"primaryIndustryID": 3
},
"salesAssociate": {
"salesAssociateID": 1,
"salesAssociateName": "sample string 2"
},
"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
}
}
application/xml, text/xml
Sample:
<CustomerViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GameTimeBAL.ViewModels">
<AccountName>sample string 2</AccountName>
<AccountType>sample string 3</AccountType>
<Comments>sample string 11</Comments>
<CustomerID>1</CustomerID>
<Email>sample string 7</Email>
<Fax>sample string 8</Fax>
<IsTargetAccount>true</IsTargetAccount>
<IsTaxExempt>true</IsTaxExempt>
<LeadSourceOther>sample string 5</LeadSourceOther>
<Phone>sample string 4</Phone>
<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>
<Prospect>
<ProspectStatusID>1</ProspectStatusID>
<ProspectStatusName>sample string 2</ProspectStatusName>
</Prospect>
<SalesAssociate>
<SalesAssociateID>1</SalesAssociateID>
<SalesAssociateName>sample string 2</SalesAssociateName>
</SalesAssociate>
<SecondaryIndustry>
<PrimaryIndustryID>3</PrimaryIndustryID>
<SecondaryIndustryID>1</SecondaryIndustryID>
<SecondaryIndustryName>sample string 2</SecondaryIndustryName>
</SecondaryIndustry>
<SubLeadType>
<PrimaryLeadTypeID>3</PrimaryLeadTypeID>
<SubLeadTypeID>1</SubLeadTypeID>
<SubLeadTypeName>sample string 2</SubLeadTypeName>
</SubLeadType>
<TaxExemptNumber>sample string 9</TaxExemptNumber>
<TaxRate>1.1</TaxRate>
<UsCommunitiesContactNumber>sample string 10</UsCommunitiesContactNumber>
<Website>sample string 6</Website>
</CustomerViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.