POST api/admin/update-code
Request Information
URI Parameters
None.
Body Parameters
AdminVoucherUpdateModel| Name | Description | Type | Additional information |
|---|---|---|---|
| VoucherCode | string |
None. |
|
| NewValidTill | date |
None. |
|
| NewValue | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"VoucherCode": "sample string 1",
"NewValidTill": "2026-04-08T18:10:59.5624882+05:30",
"NewValue": 3.0
}
application/xml, text/xml
Sample:
<AdminVoucherUpdateModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketalayAPI.Models"> <NewValidTill>2026-04-08T18:10:59.5624882+05:30</NewValidTill> <NewValue>3</NewValue> <VoucherCode>sample string 1</VoucherCode> </AdminVoucherUpdateModel>
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. |