# Get All Affiliates

## Get all the affiliates of an app

<mark style="color:blue;">`GET`</mark> `https://platform.shoffi.app/API/affiliate/getAll`

#### Request Body

| Name                                     | Type    | Description             |
| ---------------------------------------- | ------- | ----------------------- |
| apiKey<mark style="color:red;">\*</mark> | String  | Your Shoffi app API Key |
| appId<mark style="color:red;">\*</mark>  | Integer | Your app ID             |

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

```json
[
    {
        "affiliateDetails": {
            "email": "tobias@lutke.com",
            "firstName": "Tobias",
            "lastName": "Lütke",
            "nickName": "tobi"
        }
    },
    {
        "affiliateDetails": {
            "email": "harley@finkelstein.com",
            "firstName": "Harley",
            "lastName": "Finkelstein",
            "nickName": "President"
        }
    }
]
```

{% endtab %}

{% tab title="400: Bad Request " %}

```javascript
{
    "status": 400,
    "message": "Error details"
}
```

{% endtab %}
{% endtabs %}

```
curl -X POST \
  https://platform.shoffi.app/API/affiliate/getAll \
  -H 'Content-Type: application/json' \
  -d '{
    "apiKey": "YourKey",
    "appId": 00000000
  }'

```

## Response example

```json
200 OK
Content-Type: application/json
```

```json
[
    {
        "affiliateDetails": {
            "email": "tobias@lutke.com",
            "firstName": "Tobias",
            "lastName": "Lütke",
            "nickName": "tobi"
        }
    },
    {
        "affiliateDetails": {
            "email": "harley@finkelstein.com",
            "firstName": "Harley",
            "lastName": "Finkelstein",
            "nickName": "President"
        }
    }
]
```
