POST api/Spend/SpendAmount

Request Information

URI Parameters

None.

Body Parameters

BonusProvisionRequest
NameDescriptionTypeAdditional information
TransactionNo

string

None.

QRCode

string

None.

Amount

decimal number

None.

ATAExpressId

string

None.

WalletNo

string

None.

BonusAmount

decimal number

None.

WalletAmount

decimal number

None.

Type

Type

None.

Request Formats

application/json, text/json

Sample:
{
  "TransactionNo": "sample string 1",
  "QRCode": "sample string 2",
  "Amount": 3.1,
  "ATAExpressId": "sample string 4",
  "WalletNo": "sample string 5",
  "BonusAmount": 6.1,
  "WalletAmount": 7.1,
  "Type": 0
}

application/xml, text/xml

Sample:
<BonusProvisionRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TabPromo.TabletPos.Web.Service.Models.Api.Bonus.BonusProvision.Request">
  <ATAExpressId>sample string 4</ATAExpressId>
  <Amount>3.1</Amount>
  <BonusAmount>6.1</BonusAmount>
  <QRCode>sample string 2</QRCode>
  <TransactionNo>sample string 1</TransactionNo>
  <Type>Free</Type>
  <WalletAmount>7.1</WalletAmount>
  <WalletNo>sample string 5</WalletNo>
</BonusProvisionRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

BonusProvisionResponse
NameDescriptionTypeAdditional information
ResponseResult

ResponseResult

None.

Response

BonusProvisionDataResponse

None.

Response Formats

application/json, text/json

Sample:
{
  "ResponseResult": {
    "Result": true,
    "ExceptionDetail": "sample string 2"
  },
  "Response": {
    "TransactionNo": "sample string 1",
    "BonusProvisionId": "sample string 2",
    "WalletProvisionId": "sample string 3"
  }
}

application/xml, text/xml

Sample:
<BonusProvisionResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TabPromo.TabletPos.Web.Service.Models.Api.Bonus.BonusProvision.Response">
  <Response>
    <BonusProvisionId>sample string 2</BonusProvisionId>
    <TransactionNo>sample string 1</TransactionNo>
    <WalletProvisionId>sample string 3</WalletProvisionId>
  </Response>
  <ResponseResult xmlns:d2p1="http://schemas.datacontract.org/2004/07/TabPromo.TabletPos.Web.Service.Models.Api">
    <d2p1:ExceptionDetail>sample string 2</d2p1:ExceptionDetail>
    <d2p1:Result>true</d2p1:Result>
  </ResponseResult>
</BonusProvisionResponse>