5. Increase Balance
You can increase the balances of your cards.
Card - Increase Balance
POST
{{Base Address}}/api/paywall/card/production/balance/increase
Simply send a request to the address provided above. 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
Private Key obtained from the merchant dashboard.
apiclientprivate
string
Yes
Private Client obtained from the merchant dashboard.
The parameters that need to be sent to the service are as follows:
CardId
int
Yes
The Id information of the card in Paywall. Returns at creation time.
Amount
decimal
Yes
The balance amount.
{
"CardId": 144353,
"Amount": 10
}
The response returned 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