POST api/Customer/SyncData/{secret}/{companyId}/{customerId}
This api is used for sync data when app in online mood
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
secret |
secret is the company secret code |
string |
Required |
companyId |
company Guid to defines the compnay of customer |
string |
Required |
customerId |
customer Guid defines which customer it is |
string |
Required |
Body Parameters
data is model of accept list of accept and redeem models
SyncDataModelName | Description | Type | Additional information |
---|---|---|---|
favourite | Collection of SyncModel |
None. |
|
redeem | Collection of SyncModel |
None. |
Request Formats
application/json, text/json
Sample:
{ "favourite": [ { "contentId": "sample string 1", "keyValue": 2 }, { "contentId": "sample string 1", "keyValue": 2 } ], "redeem": [ { "contentId": "sample string 1", "keyValue": 2 }, { "contentId": "sample string 1", "keyValue": 2 } ] }
application/xml, text/xml
Sample:
<SyncData.SyncDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mofr.API.Models"> <favourite> <SyncData.SyncModel> <contentId>sample string 1</contentId> <keyValue>2</keyValue> </SyncData.SyncModel> <SyncData.SyncModel> <contentId>sample string 1</contentId> <keyValue>2</keyValue> </SyncData.SyncModel> </favourite> <redeem> <SyncData.SyncModel> <contentId>sample string 1</contentId> <keyValue>2</keyValue> </SyncData.SyncModel> <SyncData.SyncModel> <contentId>sample string 1</contentId> <keyValue>2</keyValue> </SyncData.SyncModel> </redeem> </SyncData.SyncDataModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |