Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

To get detail of detail of coupon and also validate status of a coupon.

Method :

Status
colourGreen
titlePost
/api/v1/store/validate-coupons

Aura button
paramseyJocmVmIjoiaHR0cDovL2FwaS5kZXYubWliby5jbG91ZDo5Mi9zd2FnZ2VyL2luZGV4Lmh0bWwiLCJocmVmVHlwZSI6ImxpbmsiLCJocmVmVGFyZ2V0IjoiX2JsYW5rIiwiYmFja2dyb3VuZCI6IiMzNDQ1NjMiLCJjb2xvciI6IiNGRkZGRkYiLCJsYWJlbCI6IlRyeSBpdCBvdXQiLCJib3JkZXJSYWRpdXMiOiIyNCIsIm91dGxpbmVkIjoib3V0bGluZWQiLCJpY29uUG9zaXRpb24iOiJsZWZ0Iiwic2l6ZSI6Im1lZGl1bSIsImVsZXZhdGlvbiI6ImZsYXQiLCJhbGlnbm1lbnQiOiJsZWZ0In0=
Aura tab collection
paramseyJ0YWIiOjEsInNldHRpbmdzIjoie1wiZ2VuZXJhbFNldHRpbmdzXCI6e1widGFiU3BhY2luZ1wiOjAsXCJ0YWJXaWR0aFwiOjEwMCxcInRhYkhlaWdodFwiOjQ1LFwiZGlyZWN0aW9uXCI6XCJob3Jpem9udGFsXCJ9LFwiYWN0aXZlU2V0dGluZ3NcIjp7XCJiYWNrZ3JvdW5kQ29sb3JcIjp7XCJjb2xvclwiOlwiIzI2ODRmZmI4XCJ9LFwidGV4dFwiOntcImZvbnRTaXplXCI6MTYsXCJjb2xvclwiOlwiI2ZmZmZmZlwiLFwidGV4dEFsaWduXCI6XCJsZWZ0XCIsXCJmb250V2VpZ2h0XCI6XCJib2xkXCJ9fSxcImluYWN0aXZlU2V0dGluZ3NcIjp7XCJiYWNrZ3JvdW5kQ29sb3JcIjp7XCJjb2xvclwiOlwiI2ZmZmZmZlwifSxcInRleHRcIjp7XCJmb250U2l6ZVwiOjE2LFwiY29sb3JcIjpcIiM1ZTZjODRcIixcInRleHRBbGlnblwiOlwibGVmdFwiLFwiZm9udFdlaWdodFwiOlwibGlnaHRlclwifX0sXCJjb250ZW50U2V0dGluZ3NcIjp7XCJiYWNrZ3JvdW5kQ29sb3JcIjp7XCJjb2xvclwiOlwiI2ZmZlwifSxcInBhZGRpbmdcIjp7XCJ0b3BcIjoxMCxcInJpZ2h0XCI6MTAsXCJib3R0b21cIjoxMCxcImxlZnRcIjoxMH0sXCJib3JkZXJcIjp7XCJzdHlsZVwiOlwic29saWRcIixcIndpZHRoXCI6MixcInRvcFwiOnRydWUsXCJib3R0b21cIjp0cnVlLFwibGVmdFwiOnRydWUsXCJyaWdodFwiOnRydWUsXCJjb2xvclwiOlwiI2Y0ZjVmN1wifX0sXCJob3ZlclNldHRpbmdzXCI6e1wiYmFja2dyb3VuZENvbG9yXCI6e1wiY29sb3JcIjpcIiNmNGY1ZjdcIn0sXCJ0ZXh0XCI6e1wiZm9udFNpemVcIjoxNixcImNvbG9yXCI6XCIjNWU2Yzg0XCIsXCJ0ZXh0QWxpZ25cIjpcImxlZnRcIixcImZvbnRXZWlnaHRcIjpcImJvbGRcIn19fSJ9
Aura tab
paramseyJ0aXRsZSI6IlJlcXVlc3QgIn0=

Param

Required

Type

Default Value & Description

apiId

Y

string

apiKey

Y

string

authenticationType

Y

Enum

  • Sys2Sys integration value must be 1 → i.e. POS, ERP

  • For client system integration value must be 2 → Customer portal

sessionId

Y

string

To get session id refer to → Authenticate

voucherText

Y

string

coupon text can be fetch from QR code that has been send to customer by email or sms

Aura tab
paramseyJ0aXRsZSI6IkV4YW1wbGUgUmVxIn0=
Code Block
{
  "apiId": "d7bb1d04-8cbb-4b02-a252-555554fa8eeb",
  "apiKey": "K96fWH1zjZrI7tt1rBTEgP06Zs0laaMEW5f6h1Jmk1YgYwPMdbB865LxTvrwm+IJ",
  "authenticationType": 1,
  "sessionId": "7GSZN6LWCB9L1V2SVGL5S5A7UZ12NKBM6GZII0ILI3NBU56XAG",
"voucherText": "{\"MB\":\"7NUKP/oFYgdUX4c+uvqS2w==\",\"CD\":\"RjcMy9+g0pZ7aWh4E+Ls8g==\",\"FreeText\":null}"
}
Aura tab
paramseyJ0aXRsZSI6IlJlc3BvbnNlIn0=

Param

Type

Description

voucherName

string

Name of coupon

voucherCode

string

short code of voucher

voucherAmount

number($double)

Voucher amount

voucherDescription

string

voucherFreeText

string

voucherImageUrl

string

voucherImageGallery

string

customerName

string

Customer name that coupon belong to

customerEmail

string

customerMobile

string

valueType

integer

value

number($double)

isValid


boolean

true = coupon can be used now

false = coupon cant be used anymore due to expired or has been used already

Aura tab
paramseyJ0aXRsZSI6IkV4YW1wbGUgUmVzcCJ9
Code Block
{
    "voucherName": "DM Coupon1",
    "voucherCode": "MiboAPIDMCoupon1",
    "voucherAmount": null,
    "voucherDescription": "<p>Here you go, Enjoy RM 50&nbsp;off on your next purchase&nbsp;</p>\n",
    "voucherFreeText": null,
    "voucherImageUrl": "http://backend.lsv4.dexperien.com:6789/images/index/DE737CCA-27C1-4200-82E7-8089195EA785",
    "voucherImageGallery": [],
    "customerName": "Tescustomer1update1",
    "customerEmail": "testcustomer@arsia.33mail.com",
    "customerMobile": "60176668702",
    "valueType": 0,
    "value": 50.00,
    "isValid": true
}