RETM | REST API
  1. Loyalty Webhooks
RETM | REST API
  • Developer guide
  • New to our DevPortal 🤔
  • Authentication
    • Token
      POST
  • Webhook
    • Overview
    • Invoice Webhooks
      • Webhook Events
      • Invoice Created
    • Orders Webhooks
      • Webhook Events
      • Order Triggeres
    • Menu Webhooks
      • Menu Updates
      • Menu Changed
    • Loyalty Webhooks
      • Promotional Coupon
      • Check Reward
        POST
      • Redeem Reward
        POST
    • Customer webhook
      • Customer Data
      • Customer hook
    • Error webhook
      • Stay Alert to Connectivity Issues
      • Error webhook
  • Orders
    • Orders
      GET
    • Create Order
      POST
    • Cancel Order
      POST
    • Update delivery order status
      POST
  • Menu
    • Categories
      • List Categories
      • Single Categoy
    • Products
      • Products
      • Single Product
      • Simple List
    • Menu
      GET
  • Branches
    • Branches
      GET
  • Devices
    • Devices
      GET
  • Order type
    • Order types
      GET
    • Create order type
      POST
  • Price Lists
    • Price Lists
  • Payment Methods
    • Payment methods
    • Create pay method
  • Order Charges
    • order charges
    • Create order charges
  • Taxes
    • Tax list
    • Create tax
  • Customers
    • Customers
  1. Loyalty Webhooks

Check Reward

POST
https://{serviceID}.retm.sa{{YOUR_END_POINT}}
This webhook is triggered when the user inputs a Promotional Coupon from the POS 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:
PropertyTypeDescription
reward_codeStringPromotion reward Code
business_refrenceStringBusiness Name
Example Response:
1- Valid response: [2xx OK]
{
    "data":{
        "type": "1:for order,2:for product",
        "is_percentage": "boolean",
        "customer_number": "",
        "discount_amount": "",
        "max_discount_amount": "0:unlimit",
        "allowed_products": {
                "product_id": [],
                "quantity": number
        },
        "button": {
            "label": { 
                "ar": "string",
                "en": "string"
            },
            "url": "",
            "close_modal": "boolean"
        }
    },
     "errors": []
 }
2- Invalid responde [400 BAD REQUEST]
{
    "data":[], // optional
    "message": "Reward 1234 has been used", // either message or errors
    "errors": ["merchant doesn't exist"]
}

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json

Example
{
    "reward_code": "",
    "business_refrence": ""
}

Responses

🟢200Valid Response
application/json
Body

Example
{
    "data": {
        "type": "1:for order,2:for product",
        "is_percentage": "boolean",
        "customer_number": "",
        "discount_amount": "",
        "max_discount_amount": "0:unlimit",
        "allowed_products": {
            "product_id": [
                "01hq5nrmegrsked61pj7c261k7",
                "01HX4FQD0AW610ERN8R2524VGW"
            ],
            "quantity": 1
        },
        "button": {
            "label": {
                "ar": "string",
                "en": "string"
            },
            "url": "",
            "close_modal": "boolean"
        }
    },
    "errors": []
}
🟠400Invalid response
Modified at 2025-05-12 11:48:08
Previous
Promotional Coupon
Next
Redeem Reward
Built with