Creates a new commission record for an affiliate referral under a specific campaign.This endpoint records the commission amount earned by the affiliate, the amount earned by the admin, the current commission status, and related metadata such as the referred user and commission date.
pending – Commission is created but not yet processed
processing – Commission is due and under processing
paid – Commission has been successfully paid
refunded – Commission has been reversed or refunded
Request
Header Params
Body Params application/json
Example
{"campaignId":"a4845c6c-297b-4e1f-92d6-db7ca2ac5200","affiliateId":"d3a1153d-cb87-4644-8429-7ecf1a7c3257","referredUser":"user@example.com","amount":50.00,"adminEarnedAmount":5.00,"status":"pending","commissionDate":"2025-01-15T00:00:00.000Z","remarks":"Manual commission for referral"}
{"status":201,"message":"Commission created successfully","data":{"commissionId":"25e187c1-d732-4d7e-9245-a52253f65a7e","campaignId":"a4845c6c-297b-4e1f-92d6-db7ca2ac5200","workspaceId":"5bb8cbe6-67dc-4b07-853e-7ca5454f8512","affiliateId":"d3a1153d-cb87-4644-8429-7ecf1a7c3257","referredUser":"user@example.com","amount":"50.00","adminEarnedAmount":"5.00","status":"pending","createdAt":"2025-12-30T03:00:04.440Z","updatedAt":"2025-12-30T03:00:04.440Z"}}