POST api/Voucher/ChangeBalance

POST api/Voucher/ChangeBalance

Change the balance of a voucher by adding or deducting money from it

Request Information

URI Parameters

None.

Body Parameters

VoucherNumber, InventoryNumber

Voucher
NameDescriptionTypeAdditional information
VoucherNumber

Number of the Voucher

string

None.

InventoryNumber

Number of the Inventory where the voucher was sold

string

None.

Amount

Amount of money that will be taken in a sale Decimal

decimal number

None.

GUID

GUID of the transaction Decimal

string

None.

Request Formats

application/json, text/json

Sample:
{
  "VoucherNumber": "sample string 1",
  "InventoryNumber": "sample string 2",
  "Amount": 3.0,
  "GUID": "sample string 4"
}

application/xml, text/xml

Sample:
<Voucher xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KOSTIFC">
  <Amount>3</Amount>
  <GUID>sample string 4</GUID>
  <InventoryNumber>sample string 2</InventoryNumber>
  <VoucherNumber>sample string 1</VoucherNumber>
</Voucher>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Voucher Infos

VoucherResponse
NameDescriptionTypeAdditional information
Success

Was the request answered successfully

boolean

None.

Message

Additional details

string

None.

PLU

PLU

integer

None.

GUID

GUID for the transaction

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Message": "sample string 2",
  "PLU": 3,
  "GUID": "sample string 4"
}

application/xml, text/xml

Sample:
<VoucherResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KOSTIFC">
  <GUID>sample string 4</GUID>
  <Message>sample string 2</Message>
  <PLU>3</PLU>
  <Success>true</Success>
</VoucherResponse>