POST apis/1/user/CustomerAttachwithServer

Request Information

URI Parameters

None.

Body Parameters

AttachCustomerRequest
NameDescriptionTypeAdditional information
UserId

string

None.

SessionToken

string

None.

CustomerId

string

None.

TableNumber

string

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": "sample string 1",
  "SessionToken": "sample string 2",
  "CustomerId": "sample string 3",
  "TableNumber": "sample string 4"
}

application/xml, text/xml

Sample:
<AttachCustomerRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AtYourServiceModel.Models">
  <CustomerId>sample string 3</CustomerId>
  <SessionToken>sample string 2</SessionToken>
  <TableNumber>sample string 4</TableNumber>
  <UserId>sample string 1</UserId>
</AttachCustomerRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'AttachCustomerRequest'.

Response Information

Resource Description

CustomerListResponse
NameDescriptionTypeAdditional information
ReturnCode

string

None.

ReturnMessage

string

None.

AttachedCUstomerList

Collection of AttachedCustomerList

None.

Response Formats

application/json, text/json

Sample:
{
  "ReturnCode": "sample string 1",
  "ReturnMessage": "sample string 2",
  "AttachedCUstomerList": [
    {
      "MobileNumber": "sample string 1",
      "CustomerId": "sample string 2",
      "CustomerName": "sample string 3",
      "TotalOrder": "sample string 4",
      "Email": "sample string 5",
      "TableNumber": "sample string 6"
    },
    {
      "MobileNumber": "sample string 1",
      "CustomerId": "sample string 2",
      "CustomerName": "sample string 3",
      "TotalOrder": "sample string 4",
      "Email": "sample string 5",
      "TableNumber": "sample string 6"
    }
  ]
}

application/xml, text/xml

Sample:
<CustomerListResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AtYourServiceModel.Models">
  <AttachedCUstomerList>
    <AttachedCustomerList>
      <CustomerId>sample string 2</CustomerId>
      <CustomerName>sample string 3</CustomerName>
      <Email>sample string 5</Email>
      <MobileNumber>sample string 1</MobileNumber>
      <TableNumber>sample string 6</TableNumber>
      <TotalOrder>sample string 4</TotalOrder>
    </AttachedCustomerList>
    <AttachedCustomerList>
      <CustomerId>sample string 2</CustomerId>
      <CustomerName>sample string 3</CustomerName>
      <Email>sample string 5</Email>
      <MobileNumber>sample string 1</MobileNumber>
      <TableNumber>sample string 6</TableNumber>
      <TotalOrder>sample string 4</TotalOrder>
    </AttachedCustomerList>
  </AttachedCUstomerList>
  <ReturnCode>sample string 1</ReturnCode>
  <ReturnMessage>sample string 2</ReturnMessage>
</CustomerListResponse>