Points2currency - Coupon

Edited

In order to use the points2currency coupon there are some minor additions needed to support the usage.

Keep existing logic for existing coupons, but treat the new coupon differently on the add transaction call.

There is a new coupon. "type":"PointBased" (NB : This type will be changed to "PointsToCurrency" )

When doing

GET {{RootURL}}/api/v2.0/stores/{{StoreId}}/members/{{MemberId}}/coupons/

from the POS - Diller API will respond, and calculate dynamically the current available currency for the member to redeem in the POS on the purchase in "discount_value"

If "discount_value":"935" - You can deduct 935 (your currency) from the purchase.

When sending the transaction you insert the coupon, and the redeemed value on the transaction payload on header level like this :

Diller will then make sure to deduct available points, and add new points when applicable.

If the total of the purchase is below the available discount_value : Discount the total purchase, and send the redeemed_value in the transaction to Diller. The member will keep the remaining points.

This coupon can be combined with a OTP function in order to make sure that the correct member is utilizing the coupon.

We reccomend that this is optional, and the otp-function kicks in above a certain threshold-amount (1000 SEK / 100 euro)

This ensures that most transactions are hassle-free but the bigger ones have a safeguard.

POST /api/v2.0/stores/{storeId}/members/{memberId}/login-otp (this sends an sms to the customer)

The customer gives this to the clerk which enters it into the pos.

POST /api/v2.0/stores/{storeId}/members/{memberId}/login-otp-verification

Diller API responds with  "is_ok": true, and the transaction can continue

Was this article helpful?

Sorry about that! Care to tell us more?

Thanks for the feedback!

There was an issue submitting your feedback
Please check your connection and try again.