Flavours API Documentation
  1. Bonat
Flavours API Documentation
  • Readme
  • Developer Guide
  • Authorization
  • Includables
  • Pagination
  • Sorting
  • Retrieve Market Information
  • Retrieve Branch Information
  • Me
    • Overview
    • Detail
      GET
  • Branches
    • Overview
    • List
      GET
    • Detail
      GET
    • Create
      POST
    • Update
      POST
    • Delete
      DELETE
  • Orders
    • Overview
    • List
    • Detail
    • Create
    • Calculate
    • Checkout
    • Update
    • Sync
  • Customers
    • Overview
    • List
    • Detail
    • Create
    • Update
  • Products
    • Overview
    • List
    • Detail
    • Create
    • Update
    • Delete
  • Product Categories
    • Overview
    • List
    • Detail
  • Discounts
    • Overview
    • List
    • Detail
    • Verify
  • Payment Methods
    • Overview
    • List
    • Detail
  • Table
    • Overview
    • List
    • Detail
    • Create
    • Update
    • Delete
  • Printer
  • Webhook
    • Orders Webhooks
      • Webhook Events
      • Payload
    • Product Webhooks
      • Webhook Events
      • Payload
    • Loyalty Webhooks
      • Promotional Coupon
    • Customers Webhooks
      • Webhook Events
      • Payload
    • Error Webhook
      • Stay Alert to Connectivity Issues
    • Third-Party
      • Ballurh
        • Install Ballurh
      • Loyapro
        • Loyalty
          • Check Reward
          • Redeem Reward
      • Bonat
        • Check Reward
          GET
        • Redeem Reward
          POST
      • Fai
        • Register Entity
  1. Bonat

Check Reward

Developing
DEVELOPMENT
https://api.flavours.sa/dev/api/v2
DEVELOPMENT
https://api.flavours.sa/dev/api/v2
GET
https://api.flavours.sa/dev/api/v2
/api/v2/app/reward
This webhook is triggered when the user inputs a Promotional Coupon from the Flavours App.
You are able to customize a button with the success callback, the URL within the button will act as a GET request with all the parameters.

Request

Authorization
Add parameter in header
api-token
Example:
api-token: ********************
Body Params application/json
reward_code
string 
required
app
string 
required
bonat || loyapro
Example
{
  "reward_code": "12345",
  "app": "bonat"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.flavours.sa/dev/api/v2/api/v2/app/reward' \
--header 'Content-Type: application/json' \
--header 'api-token;' \
--data-raw '{
    "reward_code": "12345",
    "app": "bonat"
}'

Responses

🟢200OK
application/json
Body
object {0}
Examples
{
  "type": 1,
  "discount_amount": 10,
  "is_percent": true,
  "customer_mobile_number": "548548545",
  "mobile_country_code": "SA",
  "reward_code": "24564955",
  "business_reference": "255214",
  "max_discount_amount": 25,
  "discount_includes_modifiers": false,
  "allowed_products": null
}
Previous
Redeem Reward
Next
Redeem Reward
Built with