POST api/codes/removeCodeRedeemedApp
Method that is used to reset the code as not used (Special and limited edition only for Riki :) )
Request Information
URI Parameters
None.
Body Parameters
model.Code: The code that should be revoked OR model.ProductID(int?): The book that should be removed
RemoveCodeRedeemedAppModelName | Description | Type | Additional information |
---|---|---|---|
Code | string |
None. |
|
ProductID | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "Code": "sample string 1", "ProductID": 1 }
application/xml, text/xml
Sample:
<RemoveCodeRedeemedAppModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CSAeReader.Common.Models"> <Code>sample string 1</Code> <ProductID>1</ProductID> </RemoveCodeRedeemedAppModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ApiResult[bool] whether the revoke was successful
ApiResultOfBooleanName | Description | Type | Additional information |
---|---|---|---|
Errors | ErrorModel |
None. |
|
Result | boolean |
None. |
|
IsSuccess | boolean |
None. |
|
StatusCode | HttpStatusCode |
None. |
Response Formats
application/json, text/json
Sample:
{ "Errors": { "ErrorsNumber": 1, "Messages": [ "sample string 1", "sample string 2" ], "MessagesString": "sample string 2" }, "Result": true, "IsSuccess": false, "StatusCode": 100 }
application/xml, text/xml
Sample:
<ApiResultOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CSAeReader.Common.API"> <Errors> <ErrorsNumber>1</ErrorsNumber> <Messages xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:string>sample string 1</d3p1:string> <d3p1:string>sample string 2</d3p1:string> </Messages> <MessagesString>sample string 2</MessagesString> </Errors> <Result>true</Result> <StatusCode>Continue</StatusCode> </ApiResultOfboolean>