InviteReferrals

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);
?>

Parameter

Description

Value

secretKey *
(string)

secret Key for authentication

3B8DXXXXXXXXXXXXXXXXXXXXXXX

bid*
(string)

unique brand id

29108

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

Updated 28 days ago

Confirm Conversion API


Conversion API

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.