curl -X PATCH https://api.vouchmark.com/v1/wallet/auto-top-up \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"enabled": true,
"triggerBelowKobo": 500000,
"rechargeAmountKobo": 10000000
}'
{
"success": true,
"message": "Auto top-up updated successfully",
"data": {
"balanceKobo": 5000000,
"paymentThresholdKobo": 1000000,
"autoTopUp": {
"enabled": true,
"triggerBelowKobo": 500000,
"rechargeAmountKobo": 10000000
},
"hasSavedCard": true,
"currency": "NGN"
}
}
Wallet & Billing
Update auto top-up
Enable or configure automatic wallet top-up.
PATCH
/
v1
/
wallet
/
auto-top-up
curl -X PATCH https://api.vouchmark.com/v1/wallet/auto-top-up \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"enabled": true,
"triggerBelowKobo": 500000,
"rechargeAmountKobo": 10000000
}'
{
"success": true,
"message": "Auto top-up updated successfully",
"data": {
"balanceKobo": 5000000,
"paymentThresholdKobo": 1000000,
"autoTopUp": {
"enabled": true,
"triggerBelowKobo": 500000,
"rechargeAmountKobo": 10000000
},
"hasSavedCard": true,
"currency": "NGN"
}
}
Configure automatic top-up so your wallet is recharged when the balance drops below a trigger. Requires a saved card on file.
The
Request amounts are in kobo (1 NGN = 100 kobo). The returned wallet also reports amounts in integer kobo.
Body
boolean
required
Whether auto top-up is active.
integer
required
Balance in kobo at which auto top-up triggers. Nullable.
integer
required
Amount in kobo to recharge when triggered. Nullable.
curl -X PATCH https://api.vouchmark.com/v1/wallet/auto-top-up \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"enabled": true,
"triggerBelowKobo": 500000,
"rechargeAmountKobo": 10000000
}'
{
"success": true,
"message": "Auto top-up updated successfully",
"data": {
"balanceKobo": 5000000,
"paymentThresholdKobo": 1000000,
"autoTopUp": {
"enabled": true,
"triggerBelowKobo": 500000,
"rechargeAmountKobo": 10000000
},
"hasSavedCard": true,
"currency": "NGN"
}
}
data object is the full wallet DTO described in Get wallet (values in integer kobo).