PiggyVest Business MCP by usefulapi
v1.6.0Read 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.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Pagination cursor from the previous response's endCursor. |
customer_id | string | Only wallets of this customer id. |
limit | integer | Page size (default 20, maximum 100). |
orderBy | string | Sort 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}.
| Parameter | Type | Description |
|---|---|---|
wallet_id * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
wallet_id * | string | The 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}.
| Parameter | Type | Description |
|---|---|---|
wallet_id * | string | The wallet id. |
cursor | string | Pagination cursor from the previous response's endCursor. |
end_date | string | End of the accrual filter, YYYY-MM-DD. |
interest_type | string | Accrual type (default original). |
limit | integer | Page size (default 31, maximum 100). |
search | string | Case-insensitive filter on the differential wallet name. |
start_date | string | Start 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.
| Parameter | Type | Description |
|---|---|---|
account_number * | string | |
bank_code * | string | Bank 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.
| Parameter | Type | Description |
|---|---|---|
reference * | string | Your transaction reference (the reference you sent with the transfer). |
wallet_id | string | Narrow 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}.
| Parameter | Type | Description |
|---|---|---|
transaction_id * | string | The PiggyVest transaction id (from piggyvest_list_transactions). |
wallet_id | string | If 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.
| Parameter | Type | Description |
|---|---|---|
batch_transaction_id | string | A batch transaction id to summarise. |
category | string | Category, for example "p2p", "bank-outflow" or "pocket-inflow". |
collapse_batch | string | Set to "1" to merge batch rows for the list. |
cursor | string | Pagination cursor from the previous response's endCursor. |
end_date | string | Filter end date. |
get_batch_info | string | Set to "1" with batch_transaction_id to add the batch summary. |
limit | integer | Page size (default 20, maximum 100). |
start_date | string | Filter start date. |
status | string | |
type | string | |
wallet_id | string | Only 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.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Pagination cursor from the previous response's endCursor. |
customer_id | string | Filter by the PiggyVest customer id. |
limit | integer | Page size (default 20, maximum 100). |
third_party_identifier | string | Filter 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.
| Parameter | Type | Description |
|---|---|---|
reserve_virtual_account * | boolean | True to create a funding virtual account for the wallet. |
subaccount_name * | string | Unique wallet name. |
customer_id | string | The customer that owns the wallet (required for API wallets). |
enable_interest_accrual | boolean | True (default) to accrue interest. |
interest_payout_wallet | string | Wallet 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.
| Parameter | Type | Description |
|---|---|---|
bvn * | string | The customer's Bank Verification Number, exactly 11 digits. |
email * | string | Customer email. |
name * | string | Customer name. |
phone * | string | Customer phone, international format. |
enable_interest_accrual | boolean | False disables interest on the new customer. |
interest_payout_wallet | string | Wallet id that receives interest payouts. |
returnIfExist | boolean | True: return the existing customer instead of an error when one matches. |
third_party_identifier | string | Your 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Account name shown to the payer. |
type * | string | regular or disposable. |
wallet_id * | string | The wallet to fund. |
amount | integer | Disposable only: expected amount in kobo. |
code | string | Bank code for the account, if the business needs one. |
error_margin | integer | Disposable only: allowed difference from amount, in kobo. |
expiry | integer | Disposable only: expiry in minutes. |
payment_policy | string | Disposable only: how to handle payments that differ from amount. |
reference | string | Disposable 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.
| Parameter | Type | Description |
|---|---|---|
amount * | integer | Amount in kobo (NGN x 100), a positive integer. 100000 kobo = NGN 1,000. |
confirm * | boolean | Must be true. Set it only after the user approves this exact transfer. The tool refuses to run without it. |
currency * | string | Currency. Must be "NGN". |
destination * | string | Destination wallet id. This wallet is credited. |
reference * | string | Your unique reference for this transfer. Keep it to check the status. |
source * | string | Source wallet id. This wallet is debited. |
narration | string | Description 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.
| Parameter | Type | Description |
|---|---|---|
accountNumber * | string | Destination bank account number. |
amount * | integer | Amount in kobo (NGN x 100), a positive integer. 100000 kobo = NGN 1,000. |
bankCode * | string | Destination bank code from piggyvest_list_banks. |
confirm * | boolean | Must be true. Set it only after the user approves this exact transfer. The tool refuses to run without it. |
currency * | string | Currency. Must be "NGN". |
reference * | string | Your unique reference for this transfer. Keep it to check the status. |
source * | string | Source wallet id. This wallet is debited. |
narration | string | Description 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.
| Parameter | Type | Description |
|---|---|---|
amount * | integer | Amount in kobo (NGN x 100), a positive integer. 100000 kobo = NGN 1,000. |
confirm * | boolean | Must be true. Set it only after the user approves this exact transfer. The tool refuses to run without it. |
destination_id * | string | Destination wallet id, or the bank account number when destination_type is bank. |
destination_type * | string | |
frequency * | string | How often the payment runs. Required by the API. |
payout_type * | string | |
source_wallet_id * | string | Wallet to debit. |
description | string | Narration. |
destination_code | string | Bank code, required when destination_type is bank. |
end_date | string | Last run for a recurring payment, YYYY-MM-DD HH:mm:ss. |
start_date | string | First 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}.
| Parameter | Type | Description |
|---|---|---|
is_active * | boolean | false to cancel, true to reactivate. |
schedule_payment_id * | string | The schedule payment id returned by piggyvest_schedule_payment. |
confirm | boolean | Required only to reactivate (is_active=true): reactivation schedules future transfers. Not needed to cancel. |
next_charge_attempt | string | Next attempt, YYYY-MM-DD HH:mm:ss. |