PUT api/reasoncode/discount/update

Provides true if reason code is updated, false otherwise

Request Information

URI Parameters

None.

Body Parameters

The new description for the discount reason code.

PublicAPI.Models.ReasonCodeDTOModel
NameDescriptionTypeAdditional information
Id

The Id and primary key of the reason code

integer

Range: inclusive between 0 and 2

Description

The description shown on the POS

string

Required

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Description": "sample string 2"
}

application/xml, text/xml

Sample:
<ReasonCodeDTOModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PublicAPI.Models">
  <Description>sample string 2</Description>
  <Id>1</Id>
</ReasonCodeDTOModel>

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

Response Information

Resource Description

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>