POST api/RewardVoucher?companycode={companycode}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
companycode

string

Required

Body Parameters

RewardVoucher
NameDescriptionTypeAdditional information
VoucherId

string

None.

NumberOfStamps

integer

None.

ClaimedCustomerId

string

None.

IssueDateTime

date

None.

PosTerminalId

string

None.

InvoiceId

string

None.

Request Formats

application/json, text/json

Sample:
{
  "VoucherId": "sample string 1",
  "NumberOfStamps": 2,
  "ClaimedCustomerId": "sample string 3",
  "IssueDateTime": "2024-05-11T12:20:06.7332236+08:00",
  "PosTerminalId": "sample string 5",
  "InvoiceId": "sample string 6"
}

text/xml

Sample:
<RewardVoucher xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CloudSysPOSWeb.Models">
  <ClaimedCustomerId>sample string 3</ClaimedCustomerId>
  <InvoiceId>sample string 6</InvoiceId>
  <IssueDateTime>2024-05-11T12:20:06.7332236+08:00</IssueDateTime>
  <NumberOfStamps>2</NumberOfStamps>
  <PosTerminalId>sample string 5</PosTerminalId>
  <VoucherId>sample string 1</VoucherId>
</RewardVoucher>

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

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.