OuiPay
Guides

Read account data

List wallets and transactions with your server credentials.

1. Authenticate

Store your secret or API key in the environment (never in source control):

export OUIPAY_SECRET_KEY=sk_test_...

2. List wallets

curl https://api.ouipay.africa/api/v1/external/wallets \
  -H "Authorization: Bearer $OUIPAY_SECRET_KEY"

3. List recent transactions

curl "https://api.ouipay.africa/api/v1/external/transactions?limit=20" \
  -H "Authorization: Bearer $OUIPAY_SECRET_KEY"

4. Fetch one transaction

curl https://api.ouipay.africa/api/v1/external/transactions/01M2S18... \
  -H "Authorization: Bearer $OUIPAY_SECRET_KEY"

Combine this with webhooks so you react to status changes instead of polling alone.