# Programs

## Lista de todos os programas de fidelidade disponíveis.

<mark style="color:blue;">`GET`</mark> `https://{account}.myhubdelivery.io/loyalty/api/v1/{merchantId}/programs`

#### Request Body

| Name                                         | Type   | Description |
| -------------------------------------------- | ------ | ----------- |
| merchantId<mark style="color:red;">\*</mark> | String |             |

{% tabs %}
{% tab title="200: OK " %}

```javascript
[
    {
        "id": "JWzgNngV9Z",
        "name": "Cliente Fiel",
        "affiliated": true
    },
    {
        "id": "2bYl6wgM9Z",
        "name": "Default",
        "affiliated": false
    }
]
```

{% endtab %}

{% tab title="401: Unauthorized " %}

```javascript
{
    "type": "https://tools.ietf.org/html/rfc7235#section-3.1",
    "title": "Unauthorized",
    "status": 401,
    "traceId": "00-cd0c0257a67e9a3fe57dc8c160e01607-b5994934dd13d84f-01"
}
```

{% endtab %}
{% endtabs %}
