POST api/ChangeModeOfSale

Request Information

URI Parameters

None.

Body Parameters

ChangeModeOfSaleRequest
NameDescriptionTypeAdditional information
SessionKey

string

Required

NewModeOfSale

integer

Required

Request Formats

application/json, text/json

Sample:
{
  "SessionKey": "sample string 1",
  "NewModeOfSale": 2
}

application/xml, text/xml

Sample:
<ChangeModeOfSaleRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Entities.Session">
  <NewModeOfSale>2</NewModeOfSale>
  <SessionKey>sample string 1</SessionKey>
</ChangeModeOfSaleRequest>

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

Response Information

Resource Description

ApiSuccessOfChangeModeOfSaleResult
NameDescriptionTypeAdditional information
Success

boolean
Data

ChangeModeOfSaleResult

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Data": {
    "NewModeOfSale": 1
  }
}

application/xml, text/xml

Sample:
<ApiSuccessOfChangeModeOfSaleResult5WS87vwN xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Api">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Entities.Session">
    <d2p1:NewModeOfSale>1</d2p1:NewModeOfSale>
  </Data>
</ApiSuccessOfChangeModeOfSaleResult5WS87vwN>