6. Decrease Balance
You can decrease the balances of your cards.
Card - Decrease Balance
POST
{{Base Address}}/api/paywall/card/production/balance/decrease
Simply sending a request to the address provided above will suffice. You can use the 'Base Address' as you wish for both the Testing Environment and the Production Environment.
The header information that needs to be sent to the service is as follows:
apikeyprivate
string
Yes
The Private Key obtained from the merchant panel.
apiclientprivate
string
Yes
The Private Client obtained from the merchant panel.
The parameters that need to be sent to the service are as follows:
CardId
int
Yes
The Id information of the card in Paywall. Returned during creation.
Amount
decimal
Yes
The balance amount.
{
"CardId": 144353,
"Amount": 10
}
The response from the service:
Body
object
It returns null. No details provided.
ErrorCode
int
Error code. If the transaction is successful, it returns '0'.
Result
bool
It returns either true or false. If the transaction is successful, it returns 'true'.
Message
string
If the transaction is unsuccessful, this is the specified error message, providing language support according to the locale parameter.
{
"ErrorCode": 0,
"Result": true,
"Message": "",
"Body": null
}
Last updated