Now, triPOS Cloud can modify cashback flags, isCashbackAllowed
and cashbackOptions
, using PATCH /cloudapi/v1/lanes/{{laneId}}/configuration
endpoint.
The isCashbackAllowed
allows you to enable or disable cashback for all debit transactions.
The cashbackOptions
contains selectionAmounts
and manualEntry
. selectionAmounts
is a set of comma-separated list of whole numbers or ‘other’ in configuration allows you to:
selectionAmounts
parameter of the request. If you'd like to provide an 'other' option for manual entry, include the manualEntry
section as well.
To skip selection buttons and go straight to manual entry, provide only the manualEntry
section in the request.
For more information please visit here.
Following behavior should be exhibited by cashback configurations in PATCH /cloudapi/v1/lanes/{{laneId}}/configuration
endpoint:
isCashbackAllowed
=
true, cashback is enabled for all debit transactions.amountIncrement
is set to any value, that value is used to set increments you want customers to be able to get back. Common values include 1, 5, 10 or 20.maximumAmount
is set to any value, that value is used to set the maximum cashback amount you want to allow cardholders to get back.selectionAmounts
is set to an improper value, the error is Selection values must be a comma-separated list of whole numbers or ‘other’
.amountIncrement
is set to a value which is less than 0, the error is When manual entry is allowed for cashback options, amountIncrement must be provided and must be greater than 0
.maximumAmount
is set to a value which is less than 0, the error is When manual entry is allowed for cashback options, maximumAmount must be provided and must be greater than 0
.Here is an example request modifying cashback configurations:
{ "isCashbackAllowed": true, "cashbackOptions": { "selectionAmounts": "1,2,other", "manualEntry": { "amountIncrement": 10, "maximumAmount": 100 } } }