POST Vending/Deduct?hash={hash}
Deduct amount from the selected badge
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
hash |
Security hash |
string |
Required |
Body Parameters
Payload
VendingDeductRequestName | Description | Type | Additional information |
---|---|---|---|
BadgeId |
Badge ID to deduct |
string |
None. |
DateTime |
Date and time in sortable format: "yyyy-MM-ddTHH:mm:ss" |
date |
None. |
MachineId |
Identifier of the vending machine |
string |
None. |
SlotId |
Identifier of the slot/cell selected by the user |
string |
None. |
Amount |
Amount to recharge |
decimal number |
None. |
WalletId |
Identifier for the wallet to deduct. |
decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{ "BadgeId": "sample string 1", "DateTime": "2025-05-10T11:37:11.5809938+02:00", "MachineId": "sample string 3", "SlotId": "sample string 4", "Amount": 5.0, "WalletId": 6.0 }
application/xml, text/xml
Sample:
<VendingDeductRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Sportrick.ApiModel.Requests"> <Amount>5</Amount> <BadgeId>sample string 1</BadgeId> <DateTime>2025-05-10T11:37:11.5809938+02:00</DateTime> <MachineId>sample string 3</MachineId> <SlotId>sample string 4</SlotId> <WalletId>6</WalletId> </VendingDeductRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
VendingResponseName | Description | Type | Additional information |
---|---|---|---|
Balance |
The balance for the current badge |
decimal number |
None. |
Status |
Result of the API call |
VendingResponseStatus |
None. |
Response Formats
application/json, text/json
Sample:
{ "Balance": 1.0, "Status": "OK" }
application/xml, text/xml
Sample:
<VendingResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Sportrick.ApiModel.Responses"> <Balance>1</Balance> <Status>OK</Status> </VendingResponse>