Login

Query float balance

The BEEP.queryFloatBalance API function is invoked by Clients to query the float balance for a particular service within the payment gateway.

Request

ParameterTypeDescriptionRequired
countryCodestringCountry ISO code letter, i.e., KE,GH,TZyes
payloadobject
payload.credentialsobject
payload.credentials.usernamestringThe user name you created on sign-inyes
payload.credentials.passwordstringThe Password you created on signinyes
payload.packetarray
payload.packet.serviceCodestringThis is the product code used in identifying the service the customer is consuming e.g. TIGOAIRTIMEyes
payload.packet.narrationstringText to be appended to the requestno
{
    "countryCode": "KE",
    "payload": {
        "credentials": {
            "username": "sandboxUser",
            "password": "sandboxPassword!"
        },
        "packet": [
            {
                "serviceCode": "KE-REMITTANCE-BANK-PAYOUT",
                "narration": "Kenya remittance query float"
            }
        ]
    }
}

Response

Once the request has been received by the Beep Payment gateway, the BEEP.queryFloatBalance function will return a multidimensional array consisting of two parts, an authStatus, and a results section. The parameters returned are shown in the table below.

ParameterTypeDescriptionRequired
authStatusObject
authStatus.authStatusCodeIntegerAuthentication status code.Yes
authStatus.authStatusDescriptionStringA narration/ description for the status code above.Yes
resultsArray
results.statusCodeIntegerThe status of this transaction within the Beep systemYes
results.statusDescriptionStringA narration/ description for the status code aboveYes
results.balanceDoubleFloat balance available.Yes
results.floatAccountNameStringThe name of the service float accountYes
results.currencyCodestringThe ISO code for the transaction currency.Yes
{
    "statusCode": 418,
    "success": true,
    "message": "Processing was successful",
    "data": {
        "floatAccountName": "Payouts Demo CFA",
        "balance": 45346.8,
        "currencyID": 70,
        "currencyCode": "KES"
    }
}
Language
Click Try It! to start a request and see the response here!