---
title: "Create an agreement"
method: POST
path: "/v1/api/accounts/{accountId}/agreements"
tags: ["Agreements"]
---

# Create an agreement

`POST /v1/api/accounts/{accountId}/agreements`

## Request

- The document declares no server URL.
- Auth: none declared

## Path parameters

- `accountId` integer, required

## Request body

- AgreementCreateRequest
  - `description` string, required
  - `reference` string, required
  - `user_identifier` string

## Response `200`

OK

- AgreementResponse
  - `agreement_id` string
  - `created_date` string, date-time
  - `description` string
  - `live` boolean
  - `reference` string
  - `service_id` string
  - `user_identifier` string

## Other responses

- `404`: Not found
- `422`: Missing required fields

## Changes

- **2026-10-02** `042ba06d9017`: 1 info
  - removed the `AMOUNT_BELOW_MINIMUM` enum value from the `error_identifier` response property for the response status `422`
- **2026-10-01** `4e93196bd6aa`: 2 warning
  - added the new `AMOUNT_BELOW_MINIMUM_FOR_ADYEN` enum value to the `error_identifier` response property for the response status `422`
  - added the new `AMOUNT_BELOW_MINIMUM_FOR_STRIPE` enum value to the `error_identifier` response property for the response status `422`
- **2025-01-16** `c12941ae518b`: 1 warning
  - added the new `AMOUNT_BELOW_MINIMUM` enum value to the `error_identifier` response property for the response status `422`
- **2024-11-25** `414b11cd97c0`: 1 warning
  - added the new `NON_HTTPS_RETURN_URL_NOT_ALLOWED_FOR_A_LIVE_ACCOUNT` enum value to the `error_identifier` response property for the response status `422`

[Operation history](https://skmtc.dev/government-digital-service/apis/connector-api/changes/v1/api/accounts/:accountId/agreements/post.md)

---

[API](https://skmtc.dev/government-digital-service/apis/connector-api.md) - [All operations](https://skmtc.dev/government-digital-service/apis/connector-api/llms.txt) - [OpenAPI document](https://skmtc.dev/government-digital-service/apis/connector-api/revisions/7f294e492d3c?raw)
