sales/create
Merchants: Generate a new sale.
A successfully created sale will automatically generate a commission. You can approve/reject commissions by following this.
POST /campaigns/{$campaign_id}/sales.xml
// Code
sale_create($campaign_id, $sale)
Parameters:
- campaign_id. Required. A Campaign ID.
- sale. Required. An array that contains "user_id" => "ID of an affiliate", "transaction_id" => "a UNIQUE transaction id", "amount" => "sale amount as an Integer", "source_ip" => "IP address of the consumer that generated the sale", "url" => "the referrer URL (optional)", "description" => "a description of the sale (optional)", "rate" => "in variable percentage commissioning you can add a specific percentage from the sale value to be given to the affiliate (like 10% for laptops, 12% for books) (optional)", "click_id" => "click id or click vtoken"
leads/create
Merchants: Generate a new lead.
A successfully created lead will automatically generate a commission. You can approve/reject commissions by following this.
POST /campaigns/{$campaign_id}/leads.xml
// Code
lead_create($campaign_id, $lead)
Parameters:
- campaign_id. Required. A Campaign ID.
- lead. Required. An array that contains "user_id" => "ID of an affiliate", "transaction_id" => "a UNIQUE transaction id", "source_ip" => "IP address of the consumer that generated the sale", "url" => "the referrer URL (optional)", "description" => "a description of the lead (optional)", "rate" => "a custom lead amount (optional)", "click_id" => "click id or click vtoken"