POST api/InvalidateVoucherCode

Request Information

URI Parameters

None.

Body Parameters

InvalidateVoucherCodeRequest
NameDescriptionTypeAdditional information
SessionKey

string

Required

OrderNumber

string

Required

Request Formats

application/json, text/json

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

application/xml, text/xml

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

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

Response Information

Resource Description

ApiSuccessOfInvalidateVoucherCodeResult
NameDescriptionTypeAdditional information
Success

boolean
Data

InvalidateVoucherCodeResult

Response Formats

application/json, text/json

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

application/xml, text/xml

Sample:
<ApiSuccessOfInvalidateVoucherCodeResultvBj55QbV 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.Voucher" />
</ApiSuccessOfInvalidateVoucherCodeResultvBj55QbV>