GET Referral Program

​

Returns the brand's refer-a-friend settings: whether the programme is running, how many people one customer may refer, and what each side gets.

Check is_enabled before showing any referral UI — the record can exist while the programme is switched off. A brand that has never set one up returns null.

Each benefit describes one reward. type_id says who it is for and properties carries the reward itself, whose shape depends on the type.

Path Parameters

  • Brand UUID

Headers

  • Type of content accepted by the API (application/json in most cases)

  • Application key for specific client app

  • Version of the API to be used

  • Authorization header

  • Unique request identifier

Responses

  • application/json
  • Unknown brand.

Request Example for get/brands/{brand_id}/referral-program
curl 'https://api-public-demo.menu.app/api/brands/{brand_id}/referral-program' \
  --header 'Accept: application/json' \
  --header 'Application: application-key' \
  --header 'API-VERSION: ' \
  --header 'X-Request-ID: c10b4a70-6274-490d-80a0-03e7bb826937'
{
  "status": "OK",
  "code": 200,
  "data": {
    "referral_program": {
      "id": 7,
      "brand_id": 450,
      "is_enabled": true,
      "referral_limit": 10,
      "referral_program_benefits": [
        {
          "id": 14,
          "referral_program_id": 7,
          "type_id": 1,
          "reference_type": "ReferrerBenefit",
          "properties": {
            "discount_id": 10005906790
          }
        }
      ]
    }
  }
}