πŸ’·Payout (Withdrawal) Integration

This document describes how to integrate Xixapay Payout API to transfer funds from your platform to Nigerian bank accounts. πŸ” Authentication

All payout requests to Xixapay require API credentials.

Required Headers

Header
Value

api-key

Your Xixapay API Key

Authorization

Bearer {XIXAPAY_SECRET_KEY}

Content-Type

application/json

πŸ“ Payout Endpoint

POST https://api.xixapay.com/api/v1/transfer

πŸ“¦ Payout Request Payload (JSON)

{
  "businessId": "string",
  "amount": 0,
  "bank": "string",
  "accountNumber": "string",
  "narration": "string"
}

Field Description

Field
Type
Required
Description

businessId

string

βœ…

Xixapay business ID

amount

number

βœ…

Amount to transfer (NGN)

bank

string

βœ…

Bank code or bank name

accountNumber

string

βœ…

10-digit Nigerian account number

narration

string

❌

Transfer narration

Example Payout Request


Before initiating a payout, verify bank details.

Endpoint

Request Body


Verification Response (Example)

⚠️ Always verify account details before sending a payout.


βœ… Successful Payout Response


❌ Failed Payout Response

  1. Fetch supported banks

  2. Verify bank account

  3. Deduct user balance (lock row)

  4. Initiate Xixapay payout

  5. Store provider response

  6. Mark payout as success or failed

  7. Refund on failure if required

🏦 Get Supported Banks

Endpoint


Example Response


πŸ” Security Best Practices

  • Store API keys securely

  • Never expose secret keys on frontend

  • Validate payout amounts server-side

  • Implement idempotency using reference

  • Log and monitor failed payouts


πŸ“Œ Notes

  • All amounts are in NGN

  • Account number must be 10 digits

  • Payouts are instant


Last updated