POST api/v1/SyncData/SyncMaterial

Request Information

URI Parameters

None.

Body Parameters

SyncDataParamModel
NameDescriptionTypeAdditional information
Id

string

None.

CounterId

string

None.

POSCode

string

None.

SyncTableName

string

None.

IsNeedRunImmediately

boolean

None.

FilterQuery

Dictionary of string [key] and Object [value]

None.

ScreenGUID

string

None.

DocumentWidth

integer

None.

Url

string

None.

OptionConfigsMore

Dictionary of string [key] and Object [value]

None.

QuerySearch

Dictionary of string [key] and Object [value]

None.

IsTestCase

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "sample string 1",
  "CounterId": "sample string 2",
  "POSCode": "sample string 3",
  "SyncTableName": "sample string 4",
  "IsNeedRunImmediately": true,
  "FilterQuery": null,
  "ScreenGUID": "sample string 6",
  "DocumentWidth": 7,
  "Url": "sample string 8",
  "OptionConfigsMore": null,
  "QuerySearch": null,
  "IsTestCase": true
}

application/xml, text/xml

Sample:
<SyncDataParamModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AllianceSolidAPI.Shared.Models">
  <DocumentWidth xmlns="http://schemas.datacontract.org/2004/07/Ezy.Module.BaseData.Models">7</DocumentWidth>
  <FilterQuery xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/Ezy.Module.BaseData.Models" />
  <IsTestCase xmlns="http://schemas.datacontract.org/2004/07/Ezy.Module.BaseData.Models">true</IsTestCase>
  <OptionConfigsMore xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/Ezy.Module.BaseData.Models" />
  <QuerySearch xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/Ezy.Module.BaseData.Models" />
  <ScreenGUID xmlns="http://schemas.datacontract.org/2004/07/Ezy.Module.BaseData.Models">sample string 6</ScreenGUID>
  <Url xmlns="http://schemas.datacontract.org/2004/07/Ezy.Module.BaseData.Models">sample string 8</Url>
  <CounterId>sample string 2</CounterId>
  <Id>sample string 1</Id>
  <IsNeedRunImmediately>true</IsNeedRunImmediately>
  <POSCode>sample string 3</POSCode>
  <SyncTableName>sample string 4</SyncTableName>
</SyncDataParamModel>

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

Response Information

Resource Description

EzyResultObjectOfSyncDataModel
NameDescriptionTypeAdditional information
Data

SyncDataModel

None.

ExtraData

Dictionary of string [key] and Object [value]

None.

StartTime

decimal number

None.

EndTime

decimal number

None.

TotalMili

decimal number

None.

StatusCode

integer

None.

Msg

string

None.

MsgShowInUI

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": {
    "Id": "sample string 1",
    "POSName": "sample string 2",
    "POSCode": "sample string 3",
    "CatName": "sample string 4",
    "btn_SyncBill": "sample string 5",
    "ResultData": "sample string 6",
    "btn_SyncMaterial": "sample string 7",
    "ResultData_SyncMaterial": "sample string 8",
    "btn_SyncQuantum": "sample string 9",
    "ResultData_SyncQuantum": "sample string 10",
    "btn_SyncCatOther": "sample string 11",
    "ResultData_SyncCatOther": "sample string 12",
    "btn_SyncCustomerVoucherByPoint_POS": "sample string 13",
    "btn_SyncCustomerVoucherByPoint_Server": "sample string 14",
    "btn_SyncCustomerReward4M_Notification_POS": "sample string 15",
    "btn_SyncCustomerReward4M_Notification_Server": "sample string 16",
    "ResultData_SyncCusVoucherByPoint": "sample string 17",
    "ResultData_SyncCusVoucherByPoint_POS": "sample string 18",
    "ResultData_SyncCusVoucherByPoint_Server": "sample string 19",
    "ResultData_SyncCustomerReward4M_Notification": "sample string 20",
    "ResultData_SyncCustomerReward4M_Notification_POS": "sample string 21",
    "ResultData_SyncCustomerReward4M_Notification_Server": "sample string 22",
    "btn_SyncDataType": "sample string 23",
    "SyncAt": 1.1,
    "SyncBy": "sample string 24",
    "IsSyncSuccess": true,
    "Color_SyncFail": "sample string 26",
    "IsConnectPOSAndServer": true,
    "MessageConnectError": "sample string 28",
    "IsLastSyncSuccess": true,
    "FromDate": 1.1,
    "ToDate": 1.1
  },
  "ExtraData": null,
  "StartTime": 1.1,
  "EndTime": 2.1,
  "TotalMili": 3.1,
  "StatusCode": 4,
  "Msg": "sample string 5",
  "MsgShowInUI": "sample string 6"
}

application/xml, text/xml

Sample:
<EzyResultObjectOfSyncDataModel3BwjWE5f xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ezy.Module.Library.Message">
  <Msg>sample string 5</Msg>
  <MsgShowInUI>sample string 6</MsgShowInUI>
  <StatusCode>4</StatusCode>
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/AllianceSolidAPI.Shared.Models">
    <d2p1:CatName>sample string 4</d2p1:CatName>
    <d2p1:Color_SyncFail>sample string 26</d2p1:Color_SyncFail>
    <d2p1:FromDate>1.1</d2p1:FromDate>
    <d2p1:Id>sample string 1</d2p1:Id>
    <d2p1:IsConnectPOSAndServer>true</d2p1:IsConnectPOSAndServer>
    <d2p1:IsLastSyncSuccess>true</d2p1:IsLastSyncSuccess>
    <d2p1:IsSyncSuccess>true</d2p1:IsSyncSuccess>
    <d2p1:MessageConnectError>sample string 28</d2p1:MessageConnectError>
    <d2p1:POSCode>sample string 3</d2p1:POSCode>
    <d2p1:POSName>sample string 2</d2p1:POSName>
    <d2p1:ResultData>sample string 6</d2p1:ResultData>
    <d2p1:ResultData_SyncCatOther>sample string 12</d2p1:ResultData_SyncCatOther>
    <d2p1:ResultData_SyncCusVoucherByPoint>sample string 17</d2p1:ResultData_SyncCusVoucherByPoint>
    <d2p1:ResultData_SyncCusVoucherByPoint_POS>sample string 18</d2p1:ResultData_SyncCusVoucherByPoint_POS>
    <d2p1:ResultData_SyncCusVoucherByPoint_Server>sample string 19</d2p1:ResultData_SyncCusVoucherByPoint_Server>
    <d2p1:ResultData_SyncCustomerReward4M_Notification>sample string 20</d2p1:ResultData_SyncCustomerReward4M_Notification>
    <d2p1:ResultData_SyncCustomerReward4M_Notification_POS>sample string 21</d2p1:ResultData_SyncCustomerReward4M_Notification_POS>
    <d2p1:ResultData_SyncCustomerReward4M_Notification_Server>sample string 22</d2p1:ResultData_SyncCustomerReward4M_Notification_Server>
    <d2p1:ResultData_SyncMaterial>sample string 8</d2p1:ResultData_SyncMaterial>
    <d2p1:ResultData_SyncQuantum>sample string 10</d2p1:ResultData_SyncQuantum>
    <d2p1:SyncAt>1.1</d2p1:SyncAt>
    <d2p1:SyncBy>sample string 24</d2p1:SyncBy>
    <d2p1:ToDate>1.1</d2p1:ToDate>
    <d2p1:btn_SyncBill>sample string 5</d2p1:btn_SyncBill>
    <d2p1:btn_SyncCatOther>sample string 11</d2p1:btn_SyncCatOther>
    <d2p1:btn_SyncCustomerReward4M_Notification_POS>sample string 15</d2p1:btn_SyncCustomerReward4M_Notification_POS>
    <d2p1:btn_SyncCustomerReward4M_Notification_Server>sample string 16</d2p1:btn_SyncCustomerReward4M_Notification_Server>
    <d2p1:btn_SyncCustomerVoucherByPoint_POS>sample string 13</d2p1:btn_SyncCustomerVoucherByPoint_POS>
    <d2p1:btn_SyncCustomerVoucherByPoint_Server>sample string 14</d2p1:btn_SyncCustomerVoucherByPoint_Server>
    <d2p1:btn_SyncDataType>sample string 23</d2p1:btn_SyncDataType>
    <d2p1:btn_SyncMaterial>sample string 7</d2p1:btn_SyncMaterial>
    <d2p1:btn_SyncQuantum>sample string 9</d2p1:btn_SyncQuantum>
  </Data>
  <EndTime>2.1</EndTime>
  <ExtraData xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
  <StartTime>1.1</StartTime>
  <TotalMili>3.1</TotalMili>
</EzyResultObjectOfSyncDataModel3BwjWE5f>