POST voucher/update

Request Information

URI Parameters

None.

Body Parameters

Request_Voucher_Update
NameDescriptionTypeAdditional information
id

integer

None.

id_parent

string

None.

from_date

date

None.

due

date

None.

content

string

None.

valid

decimal number

None.

blocked

boolean

None.

token

string

Required

secret_key

string

Required

id_staff_action

integer

Required

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "id_parent": "sample string 1",
  "from_date": "2026-01-22T12:23:57.871456+07:00",
  "due": "2026-01-22T12:23:57.871456+07:00",
  "content": "sample string 2",
  "valid": 1.0,
  "blocked": true,
  "token": "sample string 3",
  "secret_key": "sample string 4",
  "id_staff_action": 5
}

application/xml, text/xml

Sample:
<Request_Voucher_Update xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code.Directory.Models.Voucher.Request">
  <id_staff_action xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code">5</id_staff_action>
  <secret_key xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code">sample string 4</secret_key>
  <token xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code">sample string 3</token>
  <blocked>true</blocked>
  <content>sample string 2</content>
  <due>2026-01-22T12:23:57.871456+07:00</due>
  <from_date>2026-01-22T12:23:57.871456+07:00</from_date>
  <id>1</id>
  <id_parent>sample string 1</id_parent>
  <valid>1</valid>
</Request_Voucher_Update>

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

Response Information

Resource Description

Result
NameDescriptionTypeAdditional information
status

integer

None.

error_code

string

None.

content

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "status": 1,
  "error_code": "sample string 2",
  "content": {}
}

application/xml, text/xml

Sample:
<Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code">
  <content />
  <error_code>sample string 2</error_code>
  <status>1</status>
</Result>