POST api/BackOffice/HandleInventoryCheck

Receive an inventory check

Request Information

URI Parameters

None.

Body Parameters

Inventory check request object

InventoryCheckRequest
NameDescriptionTypeAdditional information
UserName

The provided user name.

string

Required

Salt

A random number(at least 9 digits)

integer

Required

Digest

A digest of the user credentials and the request

string

Required

ListOfTours

Collection of Tour

None.

Request Formats

application/json, text/json

Sample:
{
  "ListOfTours": [
    {
      "index": 1,
      "TourId": "sample string 2",
      "NumberOfAvailableSeats": 3
    },
    {
      "index": 1,
      "TourId": "sample string 2",
      "NumberOfAvailableSeats": 3
    }
  ],
  "UserName": "sample string 1",
  "Salt": 2,
  "Digest": "sample string 3"
}

application/xml, text/xml

Sample:
<InventoryCheckRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UserName="sample string 1" Salt="2" Digest="sample string 3">
  <ListOfTours>
    <Tour>
      <index>1</index>
      <TourId>sample string 2</TourId>
      <NumberOfAvailableSeats>3</NumberOfAvailableSeats>
    </Tour>
    <Tour>
      <index>1</index>
      <TourId>sample string 2</TourId>
      <NumberOfAvailableSeats>3</NumberOfAvailableSeats>
    </Tour>
  </ListOfTours>
</InventoryCheckRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Inventory check response

InventoryCheckResponse
NameDescriptionTypeAdditional information
ListOfTours

Collection of Tour

None.

Response Formats

application/json, text/json

Sample:
{
  "ListOfTours": [
    {
      "index": 1,
      "TourId": "sample string 2",
      "NumberOfAvailableSeats": 3
    },
    {
      "index": 1,
      "TourId": "sample string 2",
      "NumberOfAvailableSeats": 3
    }
  ]
}

application/xml, text/xml

Sample:
<InventoryCheckResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ListOfTours>
    <Tour>
      <index>1</index>
      <TourId>sample string 2</TourId>
      <NumberOfAvailableSeats>3</NumberOfAvailableSeats>
    </Tour>
    <Tour>
      <index>1</index>
      <TourId>sample string 2</TourId>
      <NumberOfAvailableSeats>3</NumberOfAvailableSeats>
    </Tour>
  </ListOfTours>
</InventoryCheckResponse>