# List a supplier's agreements

Requires the `supplier:read` scope.

`GET /suppliers/{supplierId}/agreements`

Scope `supplier:read`

Requires the `supplier:read` scope.

## Path parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `supplierId` | string | yes |  |

## Query parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `limit` | integer | no | Page size. minimum 1, maximum 100, default 25 |
| `offset` | integer | no | Rows to skip (offset mode). Cannot be combined with cursor. minimum 0, maximum 10000, default 0 |
| `cursor` | string | no | An opaque cursor taken from meta.nextCursor of the previous page (cursor mode). Valid for 24 hours and bound to the token and the query; do not parse or construct it. |
| `sort[id]` | string | no | Sort direction for id. One of `asc`, `desc`. |
| `sort[updatedAt]` | string | no | Sort direction for updatedAt. One of `asc`, `desc`. |
| `filter[contractEnd][gte]` | string (date-time) | no | Filter contractEnd (gte). |
| `filter[contractEnd][lt]` | string (date-time) | no | Filter contractEnd (lt). |
| `filter[id][eq]` | string | no | Filter id (eq). |
| `filter[id][in]` | string | no | Filter id (in). Comma-separated, at most 50 values. |
| `filter[updatedAt][gte]` | string (date-time) | no | Filter updatedAt (gte). |
| `filter[updatedAt][lt]` | string (date-time) | no | Filter updatedAt (lt). |

## Returns

The `data` field of the standard `{ data, error, meta }` envelope:

An array of object:
- `breachNoticeHours`: optional integer or null Contractual breach notice period in hours, when set.
- `contractEnd`: optional string (date-time) or null Contract end (UTC), when set.
- `contractStart`: optional string (date-time) or null Contract start (UTC), when set.
- `createdAt`: string (date-time) Creation time (UTC).
- `dataDeletionTimelineDays`: optional integer or null Contractual data deletion timeline in days, when set.
- `dpaSigned`: boolean A data processing agreement is signed.
- `id`: string Agreement id (sagr_).
- `rightToAudit`: boolean The contract grants a right to audit.
- `sccsVersion`: optional string Standard contractual clauses version (2021-c2c, 2021-c2p, 2021-p2p), when set.
- `securityAddendumSigned`: boolean A security addendum is signed.
- `supplierId`: string Supplier id (sup_).
- `transferImpactAssessmentRequired`: boolean A transfer impact assessment is required.
- `updatedAt`: string (date-time) Last update time (UTC).
- No other fields.

## Errors

| Status | Code | Retry | Meaning |
|---|---|---|---|
| 400 | - | no | The request is invalid. |
| 401 | - | no | The token is missing, malformed, expired or revoked. |
| 402 | - | no | The organisation's plan does not include the feature this route needs. |
| 403 | - | no | The token may not use this route. |
| 404 | - | no | The resource does not exist in this organisation. |
| 429 | - | yes | Rate limit or row budget exceeded; retry after the time in Retry-After. |
| 500 | - | no | Unexpected server error. |
| 503 | - | yes | A dependency is temporarily unavailable; retry later. |

## Example

### curl

```bash
curl "https://api.autociso.io/api/v1/suppliers/<supplierId>/agreements" \
  -H "Authorization: Bearer <your-api-token>"
```

### Python

```python
import requests

response = requests.get(
    "https://api.autociso.io/api/v1/suppliers/<supplierId>/agreements",
    headers={"Authorization": "Bearer <your-api-token>"},
)
print(response.json())
```

### JavaScript

```javascript
const response = await fetch("https://api.autociso.io/api/v1/suppliers/<supplierId>/agreements", {
  method: "GET",
  headers: { "Authorization": "Bearer <your-api-token>" },
});
console.log(await response.json());
```

## Response (200)

```json
{
  "data": [
    {
      "breachNoticeHours": 48,
      "contractEnd": "2027-05-31T00:00:00Z",
      "contractStart": "2025-06-01T00:00:00Z",
      "createdAt": "2026-02-12T09:30:00Z",
      "dataDeletionTimelineDays": 30,
      "dpaSigned": true,
      "id": "sagr_1hd9a0x3m7qp",
      "rightToAudit": true,
      "sccsVersion": "2021-c2p",
      "securityAddendumSigned": true,
      "supplierId": "sup_1hd8c2x7q0wn",
      "transferImpactAssessmentRequired": true,
      "updatedAt": "2026-06-03T10:00:00Z"
    }
  ],
  "error": null,
  "meta": {
    "limit": 25,
    "offset": 0,
    "total": 1
  }
}
```
