Search

getUsedRewardPointRecords

Retrive all reward point subtraction transactions.

This API call is for building custom loyalty programs. For other related calls, see addCustomerRewardPoints (to add points to a customer manually) and getEarnedRewardPointRecords (to retrieve transactions where customers have earned reward points}.

For simpler integrations, you will more likely need getCustomerRewardPoints to retrieve a customer’s point balance, and subtractCustomerRewardPoints to subtract points from customer.

To edit one specific record, use editUsedRewardPointRecord. (Under normal circumstances, you should not use that method; this is only for transfering points history from one customer to another, or for correcting errors in points history. To add or remove points, use subtractCustomerRewardPoints and addCustomerRewardPoints instead.)

Input parameters

Parameter nameDescriptionPossible valueRequired
customerIDCustomer ID.Integer
customerIDsComma-separated list of customer IDs. Retrieve transactions associated with multiple customers.String
createdUnixTimeFromUnix timestamp
createdUnixTimeToUnix timestamp

Response

Field nameTypeDescription
transactionIDIntegerTransaction ID.
customerIDIntegerCustomer ID.
customerCardNumberStringCode of customer's loyalty/membership card.
invoiceIDIntegerInvoice ID.
invoiceNoStringInvoice number.
campaignIDInteger
warehouseIDInteger
pointOfSaleIDIntegerRegister ID.
pointOfSaleNameString
employeeIDInteger
employeeNameString
usedPointsInteger
createdUnixTimeUnix timestampTransaction timestamp.
issuedCouponIDIntegerAvailable only if "Reward point extras" module is enabled on your account.
descriptionStringAvailable only if "Reward point extras" module is enabled on your account.

This API call returns error 1006 if "Reward points" module is not enabled on your account.