Confirm Conversion API

Conversion API

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.

<?php 
$bid = '29XX8'; 
$secretKey = '980C88C29E0E2D5XXXXD1D30046B4837'; 
$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);
?>
ParameterDescriptionValue
secretKey *
(string)
secret Key for authentication3B8DXXXXXXXXXXXXXXXXXXXXXXX
bid*
(string)
unique brand id29108
campaignID*
(string)
campaign id of the running campaign10XX
orderID*
(string)
orderID value associated with the conversionABXHXXXXX
status*
(string)
status of the order, 1 for approval and 2 for rejection1
event*
(string)
whether event is register or salesale

Json Response

ResponseMessage
successOrder successfully approved / Order successfully canceled
failconversion does not exist
failAccess Denied
failAccount Inactive
failParameters missing