---
title: "Link accounts to agreement"
method: POST
path: "/v1/priceagreement/{id}/link"
tags: ["Create repricing agreements"]
---

# Link accounts to agreement

`POST /v1/priceagreement/{id}/link`

This operation will link the given list of accounts to a given agreement

## Path parameters

- `id` string, required

## Query parameters

- `auditUser` string, required

## Request body

- PostPriceAgreementAccountV1ResourceBody[]
  - `accountId` string — The id of the card that you want to connect to a price agreement
  - `validFrom` string, date-time — The RFC 3339 format date and time from what time the price list should be active. Cannot be null
  - `validTo` string, date-time — The RFC 3339 format date and time when this price list should stop to be active. Cannot be greater than 'validFrom' of any other price list with the same 'code'. Can be null, which means this price list is active until this field is set

## Response `201`

Successfully created

- ConnectAccountsResponse
  - `description` string — Short description of the result of the action
  - `links` object[], required — Will contain the IDs of the resources that have been created or updated
    - `accountId` string, required
    - `id` string, required

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal server error

---

[API](https://skmtc.net/enfuce/apis/transfer-api.md) · [All operations](https://skmtc.net/enfuce/apis/transfer-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/enfuce/transfer-api/revisions/dc4a41118f80/schema)
