Wallet
The Wallet endpoint allows you to get the Wallet balance details of your Gratero account.
GET
https://sandbox.gratero.com/v1/wallet
Parameters
No parameters are required to access this API.
Example
Response
JSON
{
"success": true,
"wallet": 2000.00
}
Code
import { Instance } from "gratero";
const gratero = new Instance({
api_key: "YOUR_API_KEY",
secret_key: "YOUR_SECRET_KEY",
environment: 'test'
});
gratero.wallet()
.then(data => console.log(data))
.catch(error => console.log(error))