curl --request POST \
--url https://api.fossapay.com/v1/wallets \
--header 'Content-Type: application/json' \
--data '
{
"type": "<string>",
"customer_id": "<string>",
"customer_name": "<string>",
"customer_email": "<string>",
"currencies": [
{}
],
"metadata": {}
}
'{
"status": "success",
"message": "Wallet created successfully",
"data": {
"wallet_id": "wal_abc123",
"type": "customer",
"customer_name": "John Doe",
"customer_email": "[email protected]",
"currencies": ["NGN", "USDT"],
"status": "active",
"balances": [
{
"currency": "NGN",
"available_balance": 0,
"ledger_balance": 0
},
{
"currency": "USDT",
"available_balance": 0,
"ledger_balance": 0
}
],
"metadata": {
"user_id": "12345"
},
"created_at": "2024-01-15T10:00:00Z"
}
}
Create a new wallet for a customer
curl --request POST \
--url https://api.fossapay.com/v1/wallets \
--header 'Content-Type: application/json' \
--data '
{
"type": "<string>",
"customer_id": "<string>",
"customer_name": "<string>",
"customer_email": "<string>",
"currencies": [
{}
],
"metadata": {}
}
'{
"status": "success",
"message": "Wallet created successfully",
"data": {
"wallet_id": "wal_abc123",
"type": "customer",
"customer_name": "John Doe",
"customer_email": "[email protected]",
"currencies": ["NGN", "USDT"],
"status": "active",
"balances": [
{
"currency": "NGN",
"available_balance": 0,
"ledger_balance": 0
},
{
"currency": "USDT",
"available_balance": 0,
"ledger_balance": 0
}
],
"metadata": {
"user_id": "12345"
},
"created_at": "2024-01-15T10:00:00Z"
}
}
customer, merchant, or systemcurl -X POST https://api.fossapay.com/v1/wallets \
-H "Authorization: Bearer fp_live_sk_xxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"type": "customer",
"customer_id": "cus_123",
"customer_name": "John Doe",
"customer_email": "[email protected]",
"currencies": ["NGN", "USDT"],
"metadata": {
"user_id": "12345"
}
}'
const wallet = await client.wallets.create({
type: 'customer',
customer_name: 'John Doe',
customer_email: '[email protected]',
currencies: ['NGN', 'USDT']
});
{
"status": "success",
"message": "Wallet created successfully",
"data": {
"wallet_id": "wal_abc123",
"type": "customer",
"customer_name": "John Doe",
"customer_email": "[email protected]",
"currencies": ["NGN", "USDT"],
"status": "active",
"balances": [
{
"currency": "NGN",
"available_balance": 0,
"ledger_balance": 0
},
{
"currency": "USDT",
"available_balance": 0,
"ledger_balance": 0
}
],
"metadata": {
"user_id": "12345"
},
"created_at": "2024-01-15T10:00:00Z"
}
}