POST api/RetailerSync/Sync

Request Information

URI Parameters

None.

Body Parameters

SyncRequest
NameDescriptionTypeAdditional information
MessageName

string

None.

Message

Collection of Object

None.

SourceId

Object

None.

RequestReference

string

None.

Source

SyncEventSource

None.

RetryCount

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "MessageName": "sample string 1",
  "Message": null,
  "SourceId": {},
  "RequestReference": "sample string 3",
  "Source": 1,
  "RetryCount": 4
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Type 'Newtonsoft.Json.Linq.JToken' is a recursive collection data contract which is not supported. Consider modifying the definition of collection 'Newtonsoft.Json.Linq.JToken' to remove references to itself.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Type 'Newtonsoft.Json.Linq.JToken' is a recursive collection data contract which is not supported. Consider modifying the definition of collection 'Newtonsoft.Json.Linq.JToken' to remove references to itself.

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

Response Information

Resource Description

SyncResponse
NameDescriptionTypeAdditional information
StatusCode

HttpStatusCode

None.

Message

string

None.

SourceId

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "StatusCode": 100,
  "Message": "sample string 1",
  "SourceId": {}
}

application/xml, text/xml

Sample:
<SyncResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Omnibiz.RetailerSync.Message.Response">
  <Message>sample string 1</Message>
  <SourceId />
  <StatusCode>Continue</StatusCode>
</SyncResponse>