• Home
  • Developer
  • English
    • ไทย
    • English
  • Home
  • Developer
  • English
    • ไทย
    • English
  • Api Usage Document
    • Campaign Detail
    • Common redemption api journey
    • Redemption Rewards

Common redemption api journey

1 Login

Firstly user should login into system to get access token.
this example is called "Device login". this api use "UUID" for the identical key for user.

curl --location --request POST 'https://buzzebees-dev.azure-api.net/api/auth/device_login?uuid=abcdfghijk1234&app_id=1241672023424881&device_app_id=1241672023424881&os=ios&platform=iphone&mac_address=abcdfghijk1234&device_noti_enable=true&client_version=coop_marketing&device_token=abcdfghijk1234' \
--header 'App-Id:  1241672023424881' \
--header 'Ocp-Apim-Subscription-Key:  64666e24c64345ea9f2511a0e89f8d54'

note. All api following can add header "Authorization: token {{access-token}}" access token from login to deliver specificly data to user.

anyway this is an example access-token

.pnFSxNJAwA_m8Oat--9M9mwuE7Kh_ZM6JbuH0nqyvklPuGMb9Ao1diXvpNHPDzUIPSLkeN6GP_F0WHlDOKuIaCIV7L6c1YK7Nc7ATAcCTbMHN_ZILo1w7RitMJdDa3A46k_c8RNnYN-JqlVxvotEuoShQuDZ4-QJOQgSkBhU5u0yqb3qlCf69d9G_7ZAZafsN8eCVdhEZ6EAIYDxKdZquF'

2 Get category List

this is campaign category list.

curl --location 'https://buzzebees-dev.azure-api.net/api/campaigncat/menu?byConfig=true&config=menu_coopmarketing&app_id=1241672023424881&device_app_id=1241672023424881&top=0' \
--header 'App-Id:  1241672023424881' \
--header 'Ocp-Apim-Subscription-Key:  64666e24c64345ea9f2511a0e89f8d54'

3 Get campaign List

this is campaign list api.

curl --location 'https://buzzebees-dev.azure-api.net/api/campaign/?device_app_id=1241672023424881&byConfig=True&config=campaign_coopmarketing&%24skip=0' \
--header 'App-Id:  1241672023424881' \
--header 'Ocp-Apim-Subscription-Key:  64666e24c64345ea9f2511a0e89f8d54'

4 Get campaign detail

this is campaign detail api, using campaign id from campaign list or anywhere you can get.

curl --location 'https://buzzebees-dev.azure-api.net/api/campaign/212199' \
--header 'App-Id:  1241672023424881' \
--header 'Ocp-Apim-Subscription-Key:  64666e24c64345ea9f2511a0e89f8d54'

5 Redeem campaign

this is campaign redeem api. user can redeem reward that you already setup in our backoffice.

curl --location --request POST 'https://buzzebees-dev.azure-api.net/api/campaign/212199/redeem' \
--header 'App-Id:  1241672023424881' \
--header 'Ocp-Apim-Subscription-Key:  64666e24c64345ea9f2511a0e89f8d54' \
--header 'Authorization:  token {{access-token}}'

after redeem, if success the api response will return some doctionary object that containing "Serial" which user can use on POS system.

6 Redemption history

finally after redeem you can see history of redemption

curl --location 'https://buzzebees-dev.azure-api.net/api/redeem/' \
--header 'App-Id:  1241672023424881' \
--header 'Ocp-Apim-Subscription-Key:  64666e24c64345ea9f2511a0e89f8d54' \
--header 'Authorization:  token {{access-token}}'

This is a sample of redeem flow. There are a lot of not metioned details. We have "https://docs.buzzebees.com/api-list/" filling with api description and "https://docs.buzzebees.com/th/api-explorer/" to explore our api in GUI
Anyway if you has any question, please tell me to explain it.

Previous
Campaign Detail
Next
Redemption Rewards
  • FAQ
  • Help
  • Privacy
  • Copyright 2022 Buzzebees Co.,Ltd. All Rights Reserved