POST api/Online/SaveNewVoucher

Request Information

URI Parameters

None.

Body Parameters

Online_Voucher
NameDescriptionTypeAdditional information
ID

integer

None.

MerchantId

integer

None.

PIN

string

None.

Amount

string

None.

Notes

string

None.

CreatedDate

date

None.

ExpireDate

date

None.

Status

integer

None.

MinimumAmount

integer

None.

MaxUsage

integer

None.

Deactivated

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "MerchantId": 1,
  "PIN": "sample string 2",
  "Amount": "sample string 3",
  "Notes": "sample string 4",
  "CreatedDate": "2021-12-09T04:51:06.2629256+00:00",
  "ExpireDate": "2021-12-09T04:51:06.2629256+00:00",
  "Status": 1,
  "MinimumAmount": 1,
  "MaxUsage": 1,
  "Deactivated": 1
}

application/xml, text/xml

Sample:
<Online_Voucher xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LP.WebAPI.Models">
  <Amount>sample string 3</Amount>
  <CreatedDate>2021-12-09T04:51:06.2629256+00:00</CreatedDate>
  <Deactivated>1</Deactivated>
  <ExpireDate>2021-12-09T04:51:06.2629256+00:00</ExpireDate>
  <ID>1</ID>
  <MaxUsage>1</MaxUsage>
  <MerchantId>1</MerchantId>
  <MinimumAmount>1</MinimumAmount>
  <Notes>sample string 4</Notes>
  <PIN>sample string 2</PIN>
  <Status>1</Status>
</Online_Voucher>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.