Transaction Management
Manage customer transactions by listing all transaction details or manually adding points. Track all customer activities, including rewards and deductions.
Available APIs
GET - Transactions
This API retrieves a paged list of transactions from Gameball, allowing for optional filtering. Each transaction record includes details such as type, direction, points, amount, transaction time, and balance changes, providing a comprehensive view of customer activity.
Security: Requires apikey and secretkey headers.
Channel Merging Available If your system uses different customer IDs across multiple channels (e.g., online and offline), Gameball's channel merging feature helps unify customer profiles. By including the customer’s mobile number or email (based on your merging configuration) with each request, Gameball will combine activities into a single profile.For more information, head to the Channel Merging Guide.
Request
Query Parameters
direction string
Optional
Direction of the transaction:
+
Accumulation (points or rewards added to the customer).-
Deduction (points or rewards removed from the customer).
status string
Optional
Represents the current status of the transaction. Possible values are:
Active: The transaction is fully completed, and any points or rewards have been successfully added or redeemed.
Pending: Points or rewards from the transaction are pending during the return window period. These points cannot be used or redeemed until the pending status is resolved. Example: A customer earned 100 points for a purchase, but the points are pending for 14 days to allow for the return period to expire.
Blocked: The transaction has been flagged and blocked due to suspected fraud or other security concerns. Example: A transaction was blocked because it triggered a fraud detection rule, preventing the rewards from being applied to the customer's account.
Expired: The points or rewards earned in this transaction have expired and are no longer available for redemption or use. Example: A customer earned 200 points, but they were not used within the valid time frame and have now expired.
startAfter long
Optional
Specifies the page will start after which transaction id. Defaults to 0.
limit integer
Optional
Specifies the number of transactions to be returned per page. Defaults to 50, with a maximum limit of 200 transactions per page.
customerId string
Optional
Unique identifier for the customer that you can reference across the customer’s whole lifetime. Could be a database ID, random string, email or anything that uniquely identifies the customer. This is used to filter the transactions of the specified customer.
Response
application/json
transactions array
List of transactions.
count number
The total number of transactions on the current page.
hasMore boolean
Indicating whether there are additional transactions to be fetched beyond the current page.
Sample Response
GET - Transactions Count
This API retrieves the total count of transactions from Gameball, allowing for optional filtering. It provides the number of transactions matching the specified criteria without returning detailed transaction records.
Security: Requires apikey and secretkey headers.
Channel Merging Available If your system uses different customer IDs across multiple channels (e.g., online and offline), Gameball's channel merging feature helps unify customer profiles. By including the customer’s mobile number or email (based on your merging configuration) with each request, Gameball will combine activities into a single profile.For more information, head to the Channel Merging Guide.
Request
Query Parameters
direction string
Optional
Direction of the transaction:
+
Accumulation (points or rewards added to the customer).-
Deduction (points or rewards removed from the customer).
status string
Optional
Represents the current status of the transaction. Possible values are:
Active: The transaction is fully completed, and any points or rewards have been successfully added or redeemed.
Pending: Points or rewards from the transaction are pending during the return window period. These points cannot be used or redeemed until the pending status is resolved. Example: A customer earned 100 points for a purchase, but the points are pending for 14 days to allow for the return period to expire.
Blocked: The transaction has been flagged and blocked due to suspected fraud or other security concerns. Example: A transaction was blocked because it triggered a fraud detection rule, preventing the rewards from being applied to the customer's account.
Expired: The points or rewards earned in this transaction have expired and are no longer available for redemption or use. Example: A customer earned 200 points, but they were not used within the valid time frame and have now expired.
customerId string
Optional
Unique identifier for the customer that you can reference across the customer’s whole lifetime. Could be a database ID, random string, email or anything that uniquely identifies the customer. This is used to filter the transactions of the specified customer.
Response
application/json
count number
The total number of transactions available in Gameball system.
Sample Response
POST - Manual Transaction
This API allows for the manual addition or deduction of points for a customer in Gameball. It provides flexibility in managing loyalty points, enabling adjustments based on specific needs or circumstances.
Security: Requires apikey and secretkey headers.
Channel Merging Available If your system uses different customer IDs across multiple channels (e.g., online and offline), Gameball's channel merging feature helps unify customer profiles. By including the customer’s mobile number or email (based on your merging configuration) with each request, Gameball will combine activities into a single profile.For more information, head to the Channel Merging Guide.
Request
Body
application/json
customerId string
Required
Unique identifier for the customer that you can reference across the customer’s whole lifetime. Could be a database ID, random string, email, or anything that uniquely identifies the customer.
email string
Optional
Customer's email address.
Note: This is required if your account uses email-based channel merging.
mobile string
Optional
Customer's mobile number.
Note: This is required if your account uses mobile-based channel merging.
transactionId string
Required
A unique identifier for a transaction in your system (e.g., order number or invoice number). This ID can be used to reverse, cancel, or refund any reward or redemption transactions in Gameball.
transactionTime string
Required
The time of the transaction in your system (e.g., order datetime, invoice datetime).
username string
Required
The username of the admin performing the manual transaction.
reason string
Required
Reason for manually rewarding or deducting points (e.g., "Referral bonus").
points integer
Required
The number of points to be rewarded or deducted (should be positive for rewards and negative for deductions).
amount float
Optional
The monetary value (in system currency) associated with the transaction.
Sample Request
Response
application/json
Here is the updated list of attributes with the required and optional tags:
customerId string
Unique identifier for the customer that you can reference across the customer’s whole lifetime. Could be a database ID, random string, email, or anything that uniquely identifies the customer.
gameballTransactionId number
The unique identifier for the transaction within Gameball.
transactionId string
A unique identifier for a transaction in your system (e.g., order number or invoice number). This ID can be used to reverse, cancel, or refund any reward or redemption transactions in Gameball.
points number
The number of points rewarded or deducted in the transaction.
amount number
The monetary value processed in the transaction.
Sample Response
Last updated