# Get Referral Program

Reads a referral program (contacts recommend the account through a personal link, a number field counts their successful recommendations, reaching the threshold tags them) with target URL, threshold, counter field and app link. Without an ID it returns the creation defaults, which, like creating, need referral program access; existing programs stay readable without it.

## Input schema:

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": [
        "null",
        "integer"
      ],
      "description": "ID of the program, from search-referral-programs; omit for the creation defaults",
      "default": null,
      "minimum": 1
    },
    "accountId": {
      "type": [
        "null",
        "integer"
      ],
      "description": "User ID of the account; omit for the account of the access token",
      "default": null,
      "minimum": 1
    }
  },
  "additionalProperties": false
}
```

## Output schema:

```json
{
  "type": "object",
  "required": [
    "accountId",
    "id",
    "name",
    "notes",
    "metaLabels",
    "targetUrl",
    "threshold",
    "counterCustomFieldId",
    "editUrl"
  ],
  "properties": {
    "accountId": {
      "type": "integer"
    },
    "id": {
      "type": "integer"
    },
    "name": {
      "type": "string"
    },
    "notes": {
      "type": "string"
    },
    "metaLabels": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "targetUrl": {
      "type": "string"
    },
    "threshold": {
      "type": "integer"
    },
    "counterCustomFieldId": {
      "type": "string"
    },
    "editUrl": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
```

