---
# System prepended metadata

title: Untitled

---

**Request top up credit line service flow**
```plantuml
actor "user" as u
participant "everpro-ads-credit" as api
database "database" as db
participant "everpro wallet " as pc
participant "slack-admin" as slack

u -> api: \nrequest topup
api -> api: validate and process \ntop up data
api -> db: save request topup \nwith "pending" status
u <-- api: return

u -> api: \n\ntrigger pay top up \n(pay using everpro-wallet)
api -> pc: get current balance
api <- pc: return data balace

group check everpro wallet
else if sufficient balance
api -> pc: deduct balance
api <-- pc: return 
api -> slack: send notification to admin
api -> db: update topup status
api <-- db: return

else if insufficient balance 
u <- api: send message \ninsufficient balance

end
