cURL
curl --request GET \ --url https://base_url/v1/service/balance \ --header 'Authorization: Basic <encoded-value>'
{ "code": "0x0200", "status": "SUCCESS", "message": "Balance fetched successfully", "data": { "balance": 40, "status": "active" } }
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Basic <encoded-value>
<encoded-value>
username:password
OK
The response is of type Balance · object.
Balance · object
Was this page helpful?