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 response = await fetch('https://api-staging.fossapay.com/api/v1/wallets/fiat/create', { method: 'POST', headers: { 'x-api-key': 'fp_live_sk_xxxxxxxx', 'Content-Type': 'application/json' }, body: JSON.stringify({ customerId: 'cus_123456789', walletName: 'Main Wallet', walletReference: 'wallet_ref_001' }) }); const data = await response.json(); const wallet = data.data;
import requests url = "https://api-staging.fossapay.com/api/v1/wallets/fiat/create" headers = { "x-api-key": "fp_live_sk_xxxxxxxx", "Content-Type": "application/json" } data = { "customerId": "cus_123456789", "walletName": "Main Wallet", "walletReference": "wallet_ref_001" } response = requests.post(url, headers=headers, json=data) data = response.json() wallet = data["data"]
Show properties
INVALID_CUSTOMER
MISSING_FIELDS
UNAUTHORIZED
walletId