Install tracking script and integrate with your payment system
<head>
section of your website.
Script Parameters:
data-program-id
- Your affiliate program ID (required)refindie_metadata.program_id
(string | number)refindie_metadata.ref_code
(string)refindie_metadata.is_new_visit
(boolean)metadata
field (exactly the object from window.refindie_metadata
)POST /api/referral
x-api-key: <YOUR_PROGRAM_API_KEY>
ref_code
(string)program_id
(string | number)spent_amount
(number, in cents)currency
(string, e.g. “USD”)transaction_id
(string, unique)window.refindie_metadata
. You should see the referral data.