cURL
curl --request POST \ --url https://api.example.com/api/v1/wallets/fiat/create \ --header 'Content-Type: application/json' \ --header 'x-api-key: <x-api-key>' \ --data ' { "customerId": "<string>", "walletName": "<string>", "walletReference": "<string>" } '
{ "success": true, "message": "Fiat wallet created successfully", "data": { "walletId": "wal_abc123xyz", "bankName": "Wema Bank", "bankCode": "035", "accountNumber": "1234567890" } }
Create a fiat wallet for a customer
curl -X POST https://api-staging.fossapay.com/api/v1/wallets/fiat/create \ -H "x-api-key: fp_live_sk_xxxxxxxx" \ -H "Content-Type: application/json" \ -d '{ "customerId": "cus_123456789", "walletName": "Main Wallet", "walletReference": "wallet_ref_001" }'
const fossapay = require('fossapay-node'); const client = new fossapay('fp_live_sk_xxxxxxxx'); const wallet = await client.wallets.createFiatWallet({ customerId: 'cus_123456789', walletName: 'Main Wallet', walletReference: 'wallet_ref_001' });
from fossapay import Fossapay client = Fossapay('fp_live_sk_xxxxxxxx') wallet = client.wallets.create_fiat_wallet( customerId='cus_123456789', walletName='Main Wallet', walletReference='wallet_ref_001' )
Show properties
INVALID_CUSTOMER
MISSING_FIELDS
UNAUTHORIZED
walletId