Earn Points
Earns and accumulates points based on core (earn and burn) rules, promotional rules, etc. set at the club level. It is possible, for instance, to set rules that a member will earn 10 points for every 2. Rules are customizable based on the requirement.
Points are categorized as:
1) Base points: Earned in any purchase transaction based on the core rule.
2) Bonus points: Earned as a bonus for example on a large purchase.
3) Promotional Points: Earned as part of promotional events.
4) Restricted Points: Points to be used only on specified stores.
Earn
endpoint uses the following formula for validating Payload:
1) Amount Paid = Gross Amount - Discounts
2) Net Amount = Gross Amount - Taxes - Discounts
3) At the Transaction Item level: Item Price - (Discount/Quantity) = Net Amount / Quantity
4) Total of all Transaction Items' Gross Amount = Total Gross Amount
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
Details required to earn points
Name or ID for the store (or entity) where the transaction took place.
1 - 100
External reference for the transaction type such as purchase, return, or exchange (Configurable as per requirement).
1 - 100
Activity date (in UTC format). An activity could be enrolling a member, making a transaction, etc.
Order ID or receipt ID for a transaction (received from the store). It is needed to cancel or return an order.
1 - 100
Gross transaction amount (in currency unit) of the total items earn. For example the gross amount of item1 is 50.00 and gross amount of item2 is 100.00. The transactionGrossAmount
is 150.00.
x > 0
0 indicates the system allows duplicates and 1 indicates there is a validation in place to identity duplicate.
1 indicates the total points are calculated and shown to the member. 0 indicates the total points are not calculated and the member is only notified the earn is successful. Note: The response is faster when the value is 0 because the total points are not calculated on the fly.
Total amount paid for the items. For example, the amount paid for item1 is 100.00 and the amount of item2 is 200.00 so the total amount paid is 300.00.
Discount value on the transaction, if applicable
Total tax based on the number of items in the transaction. For example, the tax amount of item1 is 2.00 and tax amount of item2 is 1.00. The totalTax is 3.00.
Net transaction amount based on the total items in the transaction, after subtracting taxes and discounts.
x > 0
Profile ID of the member. In an ecosystem, it acts as a primary ID to keep the various systems (apps, websites, etc.) in sync.
Representative who issued the earn transaction
1 - 200
Representative who cancelled the earn transaction
1 - 200
Redemption code to identify and link the rewards used in a specific transaction. This is generated in the response of the Issue Variable Rewards
endpoint - POST /api/v1/redeem/reward/issue.
Reason code to categorize transactions. A parent company can configure custom codes for their stores as required.
1 - 30
When reason codes are not configured, store can make use of the reason description to add notes on the transaction.
1 - 300
Represents the discounts on the item.
Details of the items in the transaction.
true: Points in Pending status <br /> false: Points in Active status. <br />Note:The time period for Pending state is configurable.
Response
Metadata for the Earn points
response
Status code of call
Message corresponding to status code.
1
In a successful response, this is always a blank object.
Earn details
Was this page helpful?