---
search:
  tags:
    - Commerce and CPQ
    - POST
seo:
  description: >-
    Create a price agreement. Reference for the POST /api/v1/price-agreements
    endpoint in the Taylorz CRM API.
sidebar:
  label: Create a price agreement
  badge: POST
title: Create a price agreement
type: openapi-operation
---
`POST /api/v1/price-agreements`

**Request body** (`application/json`, required)

- `accountRecordId` (string, required)
- `priceBookId` (string, required)
- `priority` (integer)
- `validFrom` (string<date>, required)
- `validUntil` (string<date> | null)

Request body example:

```json
{
  "accountRecordId": "string",
  "priceBookId": "string",
  "priority": 0,
  "validFrom": "2019-08-24",
  "validUntil": null
}
```

**Responses**

- `201` — The agreement was created
- `400` — The request body, query or parameters were refused
- `401` — The access token is missing, invalid or revoked
- `403` — The tenant's module is off, or the token's scope or the member's role does not permit the action
- `404` — No such record, or none the caller may read
- `409` — The operation conflicts with the current state
- `413` — The request exceeds the route's body limit
- `500` — An unexpected failure

Response example, 201:

```json
{
  "id": "string"
}
```
