Gameball Developers Guide
v3.0
v3.0
  • Introduction
  • What's New in V3.0
  • Installing Gameball
    • Web
      • Show Gameball Customer Widget
      • Track Customer Events
      • Track Orders & Cashback Reward
      • Integrate Redemption
      • Track Referrals
      • Go-Live Checklist
    • iOS
      • Getting Started
      • Initialize Gameball Customer Profile
      • Track Customer Events
      • Track Orders & Cashback Reward
      • Integrate Redemption
      • Track Referrals
      • Push Notifications
      • Go-Live Checklist
    • Android
      • Getting Started
      • Initialize Gameball SDK
      • Initialize Gameball Customer Profile
      • Track Customer Events
      • Track Referrals
      • Push Notifications
      • Go-Live Checklist
    • React Native
      • Getting Started
      • Initialize Gameball Customer Profile
      • Track Customer Events
      • Track Orders & Cashback Reward
      • Integrate Redemption
      • Track Referrals
      • Push Notifications
      • Go-Live Checklist
      • Migration from v1 to v2
    • Flutter
      • Getting Started
      • Initialize Gameball SDK
      • Initialize Gameball Customer Profile
      • Track Customer Events
      • Track Referrals
      • Go-Live Checklist
    • Generic Mobile App
      • Initialize Gameball Customer Profile
      • Track Customer Events
      • Track Orders & Cashback Reward
      • Integrate Redemption
      • Track Referrals
      • Push Notifications
    • Retail & Modern POS
      • Initialize Gameball Customer Profile
      • Track Orders & Cashback Reward
      • Track Refunds
      • Enable Redemption
        • Prepare POS for Redemption
        • Using Virtual ID
          • Using Virtual Card
  • REST API
    • Overview
      • Server-Side SDKs
    • Authentication
    • API Reference
      • Customer
      • Event
      • Transactions
      • Order
      • Coupons
      • Leaderboard 👑
      • Notifications 👑
      • Configurations 👑
      • Batches 👑
        • Batch Operations Data
      • OTP
      • Partner 🤝
        • Client 🤝
        • Redemption Rule 🤝
        • Cashback Rule 🤝
    • Webhooks
      • Notifications Webhook
      • Customer Profile Webhook
    • Errors
    • Object Reference
  • Tutorials
    • Build Custom UI Elements 👑
      • Display Reward Campaign Progress
      • Show VIP Tiers
      • Show Customer Points Balance
      • Build Leaderboards
      • Show Notifications Inbox
      • Adapt UI to Configurations
      • Advanced UI Techniques
        • Increase Sales with Cashback UI Elements
        • Derive Engagement with Rewards Campaigns UI Elements
    • Tracking Customer Events
    • Build your Own Notification System
    • Checkout Integration Example
    • Redemption Integration Options
      • Redeem with coupon system
        • Integrate your coupon system
          • Example using e-commerce platform(WooCommerce)
          • Example using a custom coupon system
        • Build couponing experience
          • Using Gameball widget
          • Build custom experience
            • Showing customers available points
            • Allowing customers to create coupons
            • Apply the discount code to your cart
        • Coupon integration reference
      • Redeem with direct debt
        • Get customers points balance
        • Redeem customer points
  • Third Party Integrations
    • Segment Integration
Powered by GitBook
On this page
  1. Tutorials
  2. Redemption Integration Options
  3. Redeem with coupon system

Coupon integration reference

The table below contains information about main configurations needed to integrate with Gameball.

Main Configuration attributes

Name
Required
Description

Coupon system url

Yes

Your coupon system endpoint responsible for creating coupons.

Method

Yes

Http Method type, i.e: POST, GET, PUT. (usually it is a POST method)

Authentication

Yes

API authentication, i.e: basic auth, no authentication, etc..

Query parameters

No

List of key value pairs of query params. Can contain API keys or other data

Headers

No

Request headers can contain values like API key, bearer token, etc..

Payload

Yes

Request body that contains the coupon details, i.e: coupon code, expiry date.

Payload attributes

Name
Type
Description

playerUniqueId

String

Customer unique id at your system that was used to create the customer at Gameball

entitledProductIds

Array of string

Array of product id (at your system) in which this voucher can be applied for, this should contain id's of product in case of free product voucher.

entitledCollectionIds

Array of string

Array of Categories Ids (At your system) that the generated coupon can be applied to.

oncePerCustomer

boolean

How many times the coupon can be used per customer, it is always sent by true since it is supported only to use one coupon once per customer.

code

String

The coupon code.

usageLimit

int

How many times the coupon can be used in total, for now it is always set to 1 because coupon can be only used once.

value

double

The value of discount.

couponType

object

Type of coupon, currently Gameball supports the following coupons only :

  1. fixed amount voucher

  2. percentage voucher

  3. free shipping

  4. free product

expiresAfter

int

Amount in days that the coupon will be expired after

minOrderValue

int

The minimum order value that the coupon can work with.

source

string

Defines which Gameball module created this coupon. Possible Values:

  • Referral Reward - Customer

  • Referral Reward - Friend

  • Rewards Campaign Reward- Place Order 3 Times

  • VIP Tier - Gold - Life time

  • VIP Tier - Gold - Entry Reward

  • Points Redemption

  • Automation Flow

PreviousApply the discount code to your cartNextRedeem with direct debt

Last updated 1 year ago