2. Balance/Main Account
You can authorize Paywall with your own access credentials through the supported PayOut providers to perform balance checks (Main Account).
Balance Check (Main Account)
GET
{{Base Address}}/api/paywall/payout/balance/main
Simply sending a request to the provided address 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 response returned from the service:
Body
object
JSON containing details about the payment (optional).
ErrorCode
int
Error code. Returns '0' if the operation is successful.
Result
bool
It returns a true or false value. If the operation is successful, it returns 'true'.
Message
string
If the operation is unsuccessful, this is the specified error message, providing language support according to the locale parameter.
{
"ErrorCode": 0,
"Result": true,
"Message": "",
"Body": {
"Balances": [
{
"TotalBalance": 249961.82,
"LockedBalance": 0.0,
"AvailableBalance": 249961.82
}
],
"ProviderDump": "{PROVIDERJSONDUMP}",
"ProviderHttpStatus": 200,
"ProviderConnectedId": 17,
"ProviderId": 2,
"ProviderKey": "ProviderKey",
"CurrencyId": 1
}
}
Last updated