POST api/Chatbot/SaveConnectManyChatInfor

Request Information

URI Parameters

None.

Body Parameters

ChatbotManychatSetting
NameDescriptionTypeAdditional information
RestaurantId

integer

None.

Token

string

None.

ManychatToken

string

None.

FlowIDSignUpSuccess

string

None.

FlowIDChangePoint

string

None.

FieldIDCurrentPoint

string

None.

FlowIDChangeMembershipCard

string

None.

FieldIDCurrentMembershipCard

string

None.

FieldIDNewMembershipCard

string

None.

Request Formats

application/json, text/json

Sample:
{
  "RestaurantId": 1,
  "Token": "sample string 2",
  "ManychatToken": "sample string 3",
  "FlowIDSignUpSuccess": "sample string 4",
  "FlowIDChangePoint": "sample string 5",
  "FieldIDCurrentPoint": "sample string 6",
  "FlowIDChangeMembershipCard": "sample string 7",
  "FieldIDCurrentMembershipCard": "sample string 8",
  "FieldIDNewMembershipCard": "sample string 9"
}

text/xml

Sample:
<ChatbotManychatSetting xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MISA.CUK5FOOD.BO">
  <FieldIDCurrentMembershipCard>sample string 8</FieldIDCurrentMembershipCard>
  <FieldIDCurrentPoint>sample string 6</FieldIDCurrentPoint>
  <FieldIDNewMembershipCard>sample string 9</FieldIDNewMembershipCard>
  <FlowIDChangeMembershipCard>sample string 7</FlowIDChangeMembershipCard>
  <FlowIDChangePoint>sample string 5</FlowIDChangePoint>
  <FlowIDSignUpSuccess>sample string 4</FlowIDSignUpSuccess>
  <ManychatToken>sample string 3</ManychatToken>
  <RestaurantId>1</RestaurantId>
  <Token>sample string 2</Token>
</ChatbotManychatSetting>

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 'ChatbotManychatSetting'.

Response Information

Resource Description

ServiceResult
NameDescriptionTypeAdditional information
ErrorType

Loại lỗi

EnumServiceErrorType

None.

ErrorMessage

Thông tin lỗi

string

None.

Data

Dữ liệu trả về cho client

Object

None.

SummaryData

Dữ liệu dòng tổng trên grid trả về client

Object

None.

Total

Tổng số bản ghi trên grid

integer

None.

Success

Thực thi Service thành công

boolean

None.

NewId

Trả về ID của đối tượng khi cất thành công

Object

None.

LastSyncDate

Thời gian truy cập lấy dữ liệu tính đến thời điểm hiện tại, Lưu dạng long để truyền qua webapi

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "ErrorType": 1,
  "ErrorMessage": "sample string 1",
  "Data": {},
  "SummaryData": {},
  "Total": 1,
  "Success": true,
  "NewId": {},
  "LastSyncDate": 1
}

text/xml

Sample:
<ServiceResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MISA.CUK5FOOD.BO">
  <Data />
  <ErrorMessage>sample string 1</ErrorMessage>
  <ErrorType>CUKCUKSeflOrderPaid</ErrorType>
  <LastSyncDate>1</LastSyncDate>
  <NewId />
  <Success>true</Success>
  <SummaryData />
  <Total>1</Total>
</ServiceResult>