PiggyVest Business MCP by usefulapi

v1.6.0
io.usefulapi/piggyvest-business-api Checked 1 day ago Published 1 hour ago

Read wallets and transactions, check payees, and send or schedule transfers in PiggyVest Business.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

piggyvest_list_wallets List API wallets

List the business's API wallets with the total balance (kobo) and a page of wallets. Good first call to find wallet ids. GET /api/v1/wallet/api/wallet-type.

ParameterTypeDescription
cursorstringPagination cursor from the previous response's endCursor.
customer_idstringOnly wallets of this customer id.
limitintegerPage size (default 20, maximum 100).
orderBystringSort order (default DESC).

piggyvest_get_wallet Get a wallet

Get one wallet: name, status, balance (kobo), interest rates and virtual account id. GET /api/v1/wallet/{wallet_id}.

ParameterTypeDescription
wallet_id *stringThe wallet id (from piggyvest_list_wallets).

piggyvest_get_wallet_accounts Get wallet funding accounts

List the bank account numbers that fund a wallet (virtual accounts with bank names). GET /api/v1/wallet/{wallet_id}/accounts.

ParameterTypeDescription
wallet_id *stringThe wallet id.

piggyvest_get_wallet_interest Get wallet interest accruals

List stored interest accruals for a wallet over a date range (defaults to the current calendar month). GET /api/v1/wallet/interests/accrued/{wallet_id}.

ParameterTypeDescription
wallet_id *stringThe wallet id.
cursorstringPagination cursor from the previous response's endCursor.
end_datestringEnd of the accrual filter, YYYY-MM-DD.
interest_typestringAccrual type (default original).
limitintegerPage size (default 31, maximum 100).
searchstringCase-insensitive filter on the differential wallet name.
start_datestringStart of the accrual filter, YYYY-MM-DD.

piggyvest_list_banks List supported banks

List the banks supported for transfers, with each bank's code. Use the code as bankCode in piggyvest_transfer_to_bank. GET /api/v1/transfer/bank-list.

piggyvest_name_enquiry Resolve an account name

Check the account holder name for a bank account before a transfer. Use it to confirm the payee. GET /api/v1/transfer/name-enquiry.

ParameterTypeDescription
account_number *string
bank_code *stringBank code from piggyvest_list_banks.

piggyvest_get_transaction_status Check a transaction by reference

Check the status (success, pending or failed) of a transfer by the reference you sent. Use it after a transfer to confirm the final result. GET /api/v1/transaction/verify.

ParameterTypeDescription
reference *stringYour transaction reference (the reference you sent with the transfer).
wallet_idstringNarrow the lookup to one wallet.

piggyvest_get_transaction Get a transaction

Get one transaction by its PiggyVest id: amount, fee, status, wallets and balances after the move. GET /api/v1/transaction/{transaction_id}.

ParameterTypeDescription
transaction_id *stringThe PiggyVest transaction id (from piggyvest_list_transactions).
wallet_idstringIf set, the transaction must belong to this wallet.

piggyvest_list_transactions List transactions

List the business's transactions, newest first, with filters for wallet, status, direction, category and dates. GET /api/v1/transaction.

ParameterTypeDescription
batch_transaction_idstringA batch transaction id to summarise.
categorystringCategory, for example "p2p", "bank-outflow" or "pocket-inflow".
collapse_batchstringSet to "1" to merge batch rows for the list.
cursorstringPagination cursor from the previous response's endCursor.
end_datestringFilter end date.
get_batch_infostringSet to "1" with batch_transaction_id to add the batch summary.
limitintegerPage size (default 20, maximum 100).
start_datestringFilter start date.
statusstring
typestring
wallet_idstringOnly transactions of this wallet.

piggyvest_list_customers List customers

List the customers created through this API, with optional filters by your own id or the PiggyVest customer id. GET /api/v1/customers.

ParameterTypeDescription
cursorstringPagination cursor from the previous response's endCursor.
customer_idstringFilter by the PiggyVest customer id.
limitintegerPage size (default 20, maximum 100).
third_party_identifierstringFilter by your own internal customer id.

piggyvest_create_wallet Create an API wallet

Create a new API wallet for a customer. Creation is asynchronous: the reply is only a wallet id, and the wallet is ready after a few minutes. POST /api/v1/wallet/sub-account.

ParameterTypeDescription
reserve_virtual_account *booleanTrue to create a funding virtual account for the wallet.
subaccount_name *stringUnique wallet name.
customer_idstringThe customer that owns the wallet (required for API wallets).
enable_interest_accrualbooleanTrue (default) to accrue interest.
interest_payout_walletstringWallet id that receives interest payouts.

piggyvest_create_customer Create a customer

Create a business customer and its default wallet. Sends personal identity data (BVN) to PiggyVest for verification: send only what the customer agreed to share. POST /api/v1/customers.

ParameterTypeDescription
bvn *stringThe customer's Bank Verification Number, exactly 11 digits.
email *stringCustomer email.
name *stringCustomer name.
phone *stringCustomer phone, international format.
enable_interest_accrualbooleanFalse disables interest on the new customer.
interest_payout_walletstringWallet id that receives interest payouts.
returnIfExistbooleanTrue: return the existing customer instead of an error when one matches.
third_party_identifierstringYour own stable id for this customer.

piggyvest_reserve_account Reserve a virtual account

Reserve a bank account number for a wallet. A regular account stays active; a disposable account expires after the expiry minutes. POST /api/v1/wallet/reserve-account.

ParameterTypeDescription
name *stringAccount name shown to the payer.
type *stringregular or disposable.
wallet_id *stringThe wallet to fund.
amountintegerDisposable only: expected amount in kobo.
codestringBank code for the account, if the business needs one.
error_marginintegerDisposable only: allowed difference from amount, in kobo.
expiryintegerDisposable only: expiry in minutes.
payment_policystringDisposable only: how to handle payments that differ from amount.
referencestringDisposable only: your reference.

piggyvest_transfer_between_wallets Transfer between wallets

MOVES MONEY: transfer kobo from one of this business's wallets to another. Needs confirm=true. The reply is 202 (processing): check the result with piggyvest_get_transaction_status. Do not retry with the same reference; check it first. POST /api/v1/transfer/wallet.

ParameterTypeDescription
amount *integerAmount in kobo (NGN x 100), a positive integer. 100000 kobo = NGN 1,000.
confirm *booleanMust be true. Set it only after the user approves this exact transfer. The tool refuses to run without it.
currency *stringCurrency. Must be "NGN".
destination *stringDestination wallet id. This wallet is credited.
reference *stringYour unique reference for this transfer. Keep it to check the status.
source *stringSource wallet id. This wallet is debited.
narrationstringDescription of the transfer.

piggyvest_transfer_to_bank Transfer to a bank account

MOVES MONEY: send kobo from a wallet to an external bank account. Call piggyvest_name_enquiry first. Needs confirm=true. The reply is 202 (processing): check the result with piggyvest_get_transaction_status. Do not retry with the same reference; check it first. POST /api/v1/transfer/bank.

ParameterTypeDescription
accountNumber *stringDestination bank account number.
amount *integerAmount in kobo (NGN x 100), a positive integer. 100000 kobo = NGN 1,000.
bankCode *stringDestination bank code from piggyvest_list_banks.
confirm *booleanMust be true. Set it only after the user approves this exact transfer. The tool refuses to run without it.
currency *stringCurrency. Must be "NGN".
reference *stringYour unique reference for this transfer. Keep it to check the status.
source *stringSource wallet id. This wallet is debited.
narrationstringDescription of the transfer.

piggyvest_schedule_payment Schedule a payment

SCHEDULES A FUTURE PAYMENT: a one-time or recurring transfer from a wallet to a wallet or bank account. Needs confirm=true. Cancel it later with piggyvest_set_schedule_payment_active. POST /api/v1/transfer/schedule-payment.

ParameterTypeDescription
amount *integerAmount in kobo (NGN x 100), a positive integer. 100000 kobo = NGN 1,000.
confirm *booleanMust be true. Set it only after the user approves this exact transfer. The tool refuses to run without it.
destination_id *stringDestination wallet id, or the bank account number when destination_type is bank.
destination_type *string
frequency *stringHow often the payment runs. Required by the API.
payout_type *string
source_wallet_id *stringWallet to debit.
descriptionstringNarration.
destination_codestringBank code, required when destination_type is bank.
end_datestringLast run for a recurring payment, YYYY-MM-DD HH:mm:ss.
start_datestringFirst run, YYYY-MM-DD HH:mm:ss, in the future.

piggyvest_set_schedule_payment_active Cancel or reactivate a scheduled payment

Set a scheduled payment active or inactive. is_active=false cancels it (no more runs). is_active=true reactivates it and needs confirm=true. A payment whose end date has passed cannot be reactivated. PATCH /api/v1/transfer/schedule-payment/{schedule_payment_id}.

ParameterTypeDescription
is_active *booleanfalse to cancel, true to reactivate.
schedule_payment_id *stringThe schedule payment id returned by piggyvest_schedule_payment.
confirmbooleanRequired only to reactivate (is_active=true): reactivation schedules future transfers. Not needed to cancel.
next_charge_attemptstringNext attempt, YYYY-MM-DD HH:mm:ss.