Payout Management

Process affiliate payouts and track payment history

Generate Payout Batch

POST /api/v1/affiliate/payouts/generate/

Request Body

{
  "affiliate_ids": [123, 456, 789],
  "minimum_amount": 50.00,
  "payment_method": "paypal",
  "description": "January 2024 Payouts",
  "payment_date": "2024-02-01T00:00:00Z"
}

Example Response

{
  "success": true,
  "data": {
    "batch_id": "PAYOUT_2024_01_001",
    "total_affiliates": 3,
    "total_amount": 2456.78,
    "payment_method": "paypal",
    "created_date": "2024-01-31T15:30:00Z",
    "scheduled_date": "2024-02-01T00:00:00Z",
    "status": "pending",
    "payouts": [
      {
        "affiliate_id": 123,
        "affiliate_name": "John Smith",
        "amount": 1245.50,
        "commission_count": 8
      }
    ]
  }
}

Process Payout

POST /api/v1/affiliate/payouts/{id}/process/

Process a pending payout and send payment to affiliate.

List Payouts

GET /api/v1/affiliate/payouts/

Retrieve list of all payouts with filtering and pagination support.