eCommerce

Integrate Giftoin into your e-commerce platform to enhance customer experience and drive sales through strategic rewards.

Post-Purchase Rewards

Send a digital reward immediately after purchase completion:

<?php
// After order confirmation
function sendPostPurchaseReward($customerEmail, $orderAmount, $orderNumber) {
  $curl = curl_init();
  
  $payload = [
    "contacts" => [$customerEmail],
    "title" => "Thank You for Your Purchase!",
    "description" => "Enjoy this special gift as a token of our appreciation.",
    "metadata" => [
      "orderNumber" => $orderNumber,
      "orderAmount" => $orderAmount
    ]
  ];
  
  curl_setopt_array($curl, array(
    CURLOPT_URL => 'https://api.giftoin.org/api/v1/gcm/reseller/campaign/YOUR_CAMPAIGN_ID/order',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POST => true,
    CURLOPT_POSTFIELDS => json_encode($payload),
    CURLOPT_HTTPHEADER => array(
      'x-gft_api_key: YOUR_API_KEY',
      'Content-Type: application/json'
    ),
  ));
  
  $response = curl_exec($curl);
  curl_close($curl);
  return json_decode($response, true);
}
?>

Abandoned Cart Recovery

Send a special offer to customers who abandoned their shopping carts:

  1. Track cart abandonment in your e-commerce system

  2. After 24 hours, send a gift with a discount coupon:

Seasonal Promotions

Create limited-time campaigns for holidays and special events:

  1. Design themed digital collectibles or coupons

  2. Set campaign start and end dates

  3. Create urgency with limited quantities

  4. Promote across email, social media, and your website

  5. Track redemption rates compared to normal promotions

Integration Tips

  • Connect Giftoin with your CRM to personalize rewards

  • Use order data to segment customers and tailor rewards

  • A/B test different reward types to optimize conversion

  • Implement reward progress indicators at checkout

  • Create exclusive membership tiers with special rewards

Last updated

Was this helpful?