Skip to main content
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.
Request amounts are in kobo (1 NGN = 100 kobo). The returned wallet also reports amounts in integer kobo.

Body

enabled
boolean
required
Whether auto top-up is active.
triggerBelowKobo
integer
required
Balance in kobo at which auto top-up triggers. Nullable.
rechargeAmountKobo
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"
  }
}
The data object is the full wallet DTO described in Get wallet (values in integer kobo).