Documentation Index
Fetch the complete documentation index at: https://docs.fossapay.com/llms.txt
Use this file to discover all available pages before exploring further.
Request
API Key for authentication
Unique identifier for the customer
Request Example
curl -X POST https://api-production.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-production.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-production.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"]
Response
Indicates if the request was successful
Human-readable response message
Unique identifier for the wallet
Response Example
{
"success": true,
"message": "Fiat wallet created successfully",
"data": {
"walletId": "wal_abc123xyz",
"bankName": "Wema Bank",
"bankCode": "035",
"accountNumber": "1234567890"
}
}
Error Codes
| Code | Description |
|---|
INVALID_CUSTOMER | Customer ID is invalid |
MISSING_FIELDS | Required fields are missing |
UNAUTHORIZED | Invalid API key or insufficient permissions |
Rate Limit: 100 requests per minute
Store the walletId in your database for future reference and transaction matching.