Balance
Retrieve balance
- Documentation
- API Reference
- Community
- The Customer object
- POSTCreate a customer
- POSTUpdate a customer
- GETRetrieve a customer
- GETList all customers
- DELDelete a customer
- The Product object
- POSTCreate a product
- POSTUpdate a Product
- GETRetrieve a product
- GETList all products
- DELDelete a product
- GETRetrieve a products's prices
Customers
Products
Balance
Retrieve balance
Retrieves the current account (based the API Secret Key employed in the request) balance for the three wallets (DZD, EUR, and USD).
GET
/
balance
Authorization
string
*
Bearer
Authorization
Required
string
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
curl --request GET \
--url https://pay.chargily.net/test/api/v2/balance \
--header 'Authorization: Bearer <token>'
{
"entity": "balance",
"livemode": false,
"wallets": [
{
"currency": "dzd",
"balance": 50000,
"ready_for_payout": "40000",
"on_hold": 10000
},
{
"currency": "usd",
"balance": 2000,
"ready_for_payout": "1800",
"on_hold": 200
},
{
"currency": "eur",
"balance": 500,
"ready_for_payout": "250",
"on_hold": 250
}
]
}
Returns
Returns an object of type balance
containing the current balance information.
curl --request GET \
--url https://pay.chargily.net/test/api/v2/balance \
--header 'Authorization: Bearer <token>'
{
"entity": "balance",
"livemode": false,
"wallets": [
{
"currency": "dzd",
"balance": 50000,
"ready_for_payout": "40000",
"on_hold": 10000
},
{
"currency": "usd",
"balance": 2000,
"ready_for_payout": "1800",
"on_hold": 200
},
{
"currency": "eur",
"balance": 500,
"ready_for_payout": "250",
"on_hold": 250
}
]
}