PUT api/reasoncode/return
Please use Put: /return/update and Post: /return/ instead Provides true if reason code is updated or inserted false otherwise
Request Information
URI Parameters
None.
Body Parameters
The new description for the return reason
PublicAPI.Models.ReasonCodeDTOModelName | Description | Type | Additional 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:
Response Information
Resource Description
booleanResponse Formats
application/json, text/json
Sample:
true
application/xml, text/xml
Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>