Request Demo

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

$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.''.$secretKey.'&bid='.$bid.'&campaignID='.$campaignID.'&orderID='.$orderID.'&status='.$status.'&event='.$event);

Parameter Description Value
secretKey *
secret key for authentication 3B8DXXXXXXXXXXXXXXXXXXXXXXX
bid *
unique brand id 52X
campaignID *
campaign id of the running campaign 10XX
orderID *
orderID value associated with the conversion ABXHXXXXX
status *
status of the order, 1 for approval and 2 for rejection 1
event *
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