POST api/RewardVoucher?companycode={companycode}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| companycode | string |
Required |
Body Parameters
RewardVoucher| Name | Description | Type | Additional 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": "2025-11-18T00:17:36.5455734+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>2025-11-18T00:17:36.5455734+08:00</IssueDateTime> <NumberOfStamps>2</NumberOfStamps> <PosTerminalId>sample string 5</PosTerminalId> <VoucherId>sample string 1</VoucherId> </RewardVoucher>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |