Confirm (Accept/reject) Conversion Api

Learn more about review and approve method for conversions here.You can use the confirm conversion api to approve/reject the referral conversion based on orderID value associated with the conversion. This is useful when you have exported list of referral conversions and want to approve/reject conversions together through api.

Select All


<?php 
$bid = '52X'; 
$secretKey = '7ABZC3XXXXXXXXXXXXX'; 
$campaignID = '';
$orderID = ''; //set order id
$status = ''; //status of the order
$event = '';
$http_val = ((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') || $_SERVER['SERVER_PORT'] == 443) ? 'https://' : 'http://';
$result = file_get_contents($http_val.'www.ref-r.com/campaign/t1/confirmConversion?secretKey='.$secretKey.'&bid='.$bid.'&campaignID='.$campaignID.'&orderID='.$orderID.'&status='.$status.'&event='.$event);
print_r($result);
?>

Parameter Description Value
secretKey *
(string)
secret key for authentication 3B8DXXXXXXXXXXXXXXXXXXXXXXX
bid *
(string)
unique brand id 52X
campaignID *
(string)
campaign id of the running campaign 10XX
orderID *
(string)
orderID value associated with the conversion ABXHXXXXX
status *
(string)
status of the order, 1 for approval and 2 for rejection 1
event *
(string)
whether event is register or sale sale

Json Response

response message
success Order successfully approved / Order successfully canceled
fail conversion does not exist
fail Access Denied
fail Account Inactive
fail Parameters missing