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
"Company LIBERTY CENTER"
External reference for the transaction type such as purchase, return, or exchange (Configurable as per requirement).
1 - 100
"Supplements"
Activity date (in UTC format). An activity could be enrolling a member, making a transaction, etc.
"2020-02-08 09:30:26"
Order ID or receipt ID for a transaction (received from the store). It is needed to cancel or return an order.
1 - 100
"123321abc"
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
200
0 indicates the system allows duplicates and 1 indicates there is a validation in place to identity duplicate.
1
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.
0
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.
180
Discount value on the transaction, if applicable
20
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.
20
Net transaction amount based on the total items in the transaction, after subtracting taxes and discounts.
x >= 0
160
Profile ID of the member. In an ecosystem, it acts as a primary ID to keep the various systems (apps, websites, etc.) in sync.
"67460e74-02e3-11e8-b443-00163e990bdb"
Representative who issued the earn transaction
1 - 200
"Joe"
Representative who cancelled the earn transaction
1 - 200
"John"
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.
["67460e74-02e3-11e8-b443-00163e990bdb"]
Reason code to categorize transactions. A parent company can configure custom codes for their stores as required.
1 - 30
"9393"
When reason codes are not configured, store can make use of the reason description to add notes on the transaction.
1 - 300
"earning item"
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.