> ## Documentation Index
> Fetch the complete documentation index at: https://docs.yuko.so/llms.txt
> Use this file to discover all available pages before exploring further.

# Get referral program

Retrieves the referral program configuration for your organisation, including referrer and friend reward settings, qualifying rules, and fraud protection rules.

**GET /public/referrals/program**

#### **Authorizations**

**Authorization**

**string**

**header**

**required**

Bearer authentication header of the form `Bearer <token>`, where `<token>` is your REST API token.

#### **Response**

**200 - application/json**

**data**

**object**

Hide child attributes

**data.id**

**string\<uuid>**

Unique UUID identifier for the referral program.

Example:

`"c3d4e5f6-a7b8-9012-cdef-a01234567890"`

**data.referrer\_reward**

**object**

The reward configuration for the customer who makes the referral (the advocate).

Show child attributes

**data.referrer\_reward.type**

**enum\<string>**

The type of reward issued to the referrer.

Available options:

`points`,

`fixed_discount`,

`percentage_discount`,

`free_shipping`

Example:

`"points"`

**data.referrer\_reward.value**

**number**

The reward value (points or discount amount).

Example:

`500`

**data.friend\_reward**

**object**

The reward configuration for the referred friend.

Show child attributes

**data.friend\_reward.type**

**enum\<string>**

The type of reward issued to the referred friend.

Available options:

`points`,

`fixed_discount`,

`percentage_discount`,

`free_shipping`

Example:

`"fixed_discount"`

**data.friend\_reward.value**

**number**

The reward value (points or discount amount).

Example:

`10`

**data.qualifying\_rules**

**object | null**

Rules that determine whether a referral qualifies for a reward (e.g. minimum order value).

Example:

`{ "min_order_value": 50 }`

**data.fraud\_rules**

**object | null**

Rules used to detect and prevent fraudulent referrals.

Example:

`{ "same_ip_block": true, "same_email_domain_block": false }`

**data.display\_config**

**object | null**

Display configuration for the referral widget.

**data.created\_at**

**string\<date-time>**

Example:

`"2025-10-01T00:00:00.000Z"`

**data.updated\_at**

**string\<date-time>**

Example:

`"2026-01-15T10:00:00.000Z"`

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    --url "https://api.yukoapp.com/api/v1/public/referrals/program" \
    --header "Authorization: Bearer py_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch(
    "https://api.yukoapp.com/api/v1/public/referrals/program",
    {
      method: "GET",
      headers: {
        Authorization: "Bearer py_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
      },
    }
  );

  const data = await response.json();
  ```

  ```php PHP theme={null}
  $ch = curl_init();
  curl_setopt($ch, CURLOPT_URL, "https://api.yukoapp.com/api/v1/public/referrals/program");
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($ch, CURLOPT_HTTPHEADER, [
      "Authorization: Bearer py_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  ]);

  $response = curl_exec($ch);
  curl_close($ch);

  $data = json_decode($response, true);
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "data": {
      "id": "c3d4e5f6-a7b8-9012-cdef-a01234567890",
      "referrer_reward": {
        "type": "points",
        "value": 500
      },
      "friend_reward": {
        "type": "fixed_discount",
        "value": 10
      },
      "qualifying_rules": {
        "min_order_value": 50
      },
      "fraud_rules": {
        "same_ip_block": true,
        "same_email_domain_block": false
      },
      "display_config": null,
      "created_at": "2025-10-01T00:00:00.000Z",
      "updated_at": "2026-01-15T10:00:00.000Z"
    }
  }
  ```

  ```json 404 theme={null}
  {
    "error": {
      "code": "not_found",
      "message": "Referral program not found"
    }
  }
  ```

  ```json 401 theme={null}
  {
    "error": {
      "code": "invalid_token",
      "message": "Invalid or revoked API token"
    }
  }
  ```
</ResponseExample>
