POST Vending/Recharge?hash={hash}
Recharge the selected badge
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
hash |
Security hash |
string |
Required |
Body Parameters
Payload
VendingRechargeRequestName | Description | Type | Additional information |
---|---|---|---|
BadgeId |
Badge ID to Recharge |
string |
None. |
DateTime |
Date and time in sortable format: "yyyy-MM-ddTHH:mm:ss" |
date |
None. |
MachineId |
Identifier of the recharging machine |
string |
None. |
Amount |
Amount to recharge |
decimal number |
None. |
WalletId |
Identifier for the wallet to charge. |
decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{ "BadgeId": "sample string 1", "DateTime": "2025-05-10T11:47:58.0778305+02:00", "MachineId": "sample string 3", "Amount": 4.0, "WalletId": 5.0 }
application/xml, text/xml
Sample:
<VendingRechargeRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Sportrick.ApiModel.Requests"> <Amount>4</Amount> <BadgeId>sample string 1</BadgeId> <DateTime>2025-05-10T11:47:58.0778305+02:00</DateTime> <MachineId>sample string 3</MachineId> <WalletId>5</WalletId> </VendingRechargeRequest>
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>