POST api/CustomerReview

Save Customer Review

Request Information

URI Parameters

None.

Body Parameters

CustomerReviewSaveRequestModel
NameDescriptionTypeAdditional information
ItemType

integer

Required

ItemID

integer

Required

CustomerName

string

Required

CustomerEmail

string

Required

CustomerPhoneNo

string

None.

CustomerRating

decimal number

None.

CustomerReview

string

Required

CompanyID

integer

None.

CustomerPhoneCode

string

None.

CustomerID

integer

None.

BBAICustomerID

integer

None.

Request Formats

application/json, text/json, text/plain, text/html

Sample:
{
  "itemType": 1,
  "itemID": 2,
  "customerName": "sample string 3",
  "customerEmail": "sample string 4",
  "customerPhoneNo": "sample string 5",
  "customerRating": 6.0,
  "customerReview": "sample string 7",
  "companyID": 8,
  "customerPhoneCode": "sample string 9",
  "customerID": 10,
  "bbaiCustomerID": 11
}

application/xml, text/xml

Sample:
<CustomerReviewSaveRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMMS_V2.Core.RequestModel">
  <BBAICustomerID>11</BBAICustomerID>
  <CompanyID>8</CompanyID>
  <CustomerEmail>sample string 4</CustomerEmail>
  <CustomerID>10</CustomerID>
  <CustomerName>sample string 3</CustomerName>
  <CustomerPhoneCode>sample string 9</CustomerPhoneCode>
  <CustomerPhoneNo>sample string 5</CustomerPhoneNo>
  <CustomerRating>6</CustomerRating>
  <CustomerReview>sample string 7</CustomerReview>
  <ItemID>2</ItemID>
  <ItemType>1</ItemType>
</CustomerReviewSaveRequestModel>

multipart/form-data

Sample:
<CustomerReviewSaveRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMMS_V2.Core.RequestModel"><BBAICustomerID>11</BBAICustomerID><CompanyID>8</CompanyID><CustomerEmail>sample string 4</CustomerEmail><CustomerID>10</CustomerID><CustomerName>sample string 3</CustomerName><CustomerPhoneCode>sample string 9</CustomerPhoneCode><CustomerPhoneNo>sample string 5</CustomerPhoneNo><CustomerRating>6</CustomerRating><CustomerReview>sample string 7</CustomerReview><ItemID>2</ItemID><ItemType>1</ItemType></CustomerReviewSaveRequestModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CommonResponseDataModel
NameDescriptionTypeAdditional information
ReturnID

integer

Required

Message

string

Required

Successful

boolean

Required

Code

integer

None.

TotalRecord

integer

None.

Response Formats

application/json, text/json, text/plain, text/html

Sample:
{
  "returnID": 1,
  "message": "sample string 2",
  "successful": true,
  "code": 4,
  "totalRecord": 5
}

application/xml, text/xml

Sample:
<CommonResponseDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">
  <Code>4</Code>
  <Message>sample string 2</Message>
  <ReturnID>1</ReturnID>
  <Successful>true</Successful>
  <TotalRecord>5</TotalRecord>
</CommonResponseDataModel>

multipart/form-data

Sample:
<CommonResponseDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel"><Code>4</Code><Message>sample string 2</Message><ReturnID>1</ReturnID><Successful>true</Successful><TotalRecord>5</TotalRecord></CommonResponseDataModel>