POST Api/Service/CreateSync

Request Information

URI Parameters

None.

Body Parameters

SyncRequest
NameDescriptionTypeAdditional information
Visit

Visit

None.

VisitSales

Collection of VisitSale

None.

VisitPhotos

Collection of PhotoRequest

None.

Request Formats

application/json, text/json

Sample:
{
  "Visit": {
    "VisitId": 1,
    "VisitKey": "102a57fb-a86f-4042-8d92-b868e428b187",
    "VisitCode": "sample string 3",
    "CreationDate": "2021-07-25T22:59:26.4920579-05:00",
    "VisitMont": 1,
    "WorkWeek": 1,
    "SemanaFull": "ww01",
    "Latitude": 5.1,
    "Longitude": 6.1,
    "UserId": 7,
    "RetailId": 8,
    "StoreId": 9,
    "IsValid": true
  },
  "VisitSales": [
    {
      "VisitSaleId": 1,
      "VisitId": 2,
      "ProductId": 3,
      "TotalSale": 4,
      "Inventory": 5,
      "Price": 6.0,
      "IsAvailable": true,
      "ValidationDate": "2021-07-25T22:59:26.4920579-05:00"
    },
    {
      "VisitSaleId": 1,
      "VisitId": 2,
      "ProductId": 3,
      "TotalSale": 4,
      "Inventory": 5,
      "Price": 6.0,
      "IsAvailable": true,
      "ValidationDate": "2021-07-25T22:59:26.4920579-05:00"
    }
  ],
  "VisitPhotos": [
    {
      "ImageArray": "QEA=",
      "VisitPhotoId": 1,
      "VisitId": 2,
      "PhotoRoute": "sample string 3",
      "FullPath": "http://api-betrade.bemkt.com.mxample string 3",
      "Remarks": "sample string 4",
      "IsAvailable": true,
      "ValidationDate": "2021-07-25T22:59:26.4920579-05:00"
    },
    {
      "ImageArray": "QEA=",
      "VisitPhotoId": 1,
      "VisitId": 2,
      "PhotoRoute": "sample string 3",
      "FullPath": "http://api-betrade.bemkt.com.mxample string 3",
      "Remarks": "sample string 4",
      "IsAvailable": true,
      "ValidationDate": "2021-07-25T22:59:26.4920579-05:00"
    }
  ]
}

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.