---
title: "PUT /api/v2/agreements/enduser/{id}/accept/"
method: PUT
path: "/api/v2/agreements/enduser/{id}/accept/"
tags: ["agreements"]
---

# PUT /api/v2/agreements/enduser/{id}/accept/

`PUT /api/v2/agreements/enduser/{id}/accept/`

## Request

- Base URL: `https://bankaccountdata.gocardless.com`
- URL: `https://bankaccountdata.gocardless.com/api/v2/agreements/enduser/{id}/accept/`
- Auth: HTTP bearer

Accept an end-user agreement via the API

## Path parameters

- `id` string, uuid, required

## Request body

- EnduserAcceptanceDetailsRequest: Represents end-user details.
  - `user_agent` string, required
  - `ip_address` string, required

## Response `200`

Accept end user agreement

- EndUserAgreement: Represents an end-user agreement.
  - `id` string, uuid: The ID of this End User Agreement, used to refer to this end user agreement in other API calls.
  - `created` string, date-time: The date & time at which the end user agreement was created.
  - `institution_id` string, required: an Institution ID for this EUA
  - `max_historical_days` integer: Maximum number of days of transaction data to retrieve.
  - `access_valid_for_days` integer: Number of days from acceptance that the access can be used.
  - `access_scope` unknown[]: Array containing one or several values of ['balances', 'details', 'transactions']
    - unknown
  - `accepted` string, date-time, nullable: The date & time at which the end user accepted the agreement.
  - `reconfirmation` boolean: if this agreement can be extended. Supported by GB banks only.

## Other responses

- `400`: Invalid ID
- `401`: Token is invalid or expired
- `403`: IP address not whitelisted
- `404`: Not found error
- `405`: End User Agreements cannot be accepted more than once
- `429`: Rate limit exceeded

---

[API](https://skmtc.dev/gocardless/apis/gocardless-bank-account-data-api.md) - [All operations](https://skmtc.dev/gocardless/apis/gocardless-bank-account-data-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gocardless/apis/gocardless-bank-account-data-api/revisions/01fd14b88051?raw)
