---
title: Customer Agreements endpoints
slug: customer-agreements-endpoints
description: This document serves as a comprehensive guide to two essential API endpoints focused on agreements. Learn how to effectively utilize the first endpoint, a POST request, which enables the hassle-free creation or modification of multiple agreements simultan
icon: 📔
docTags: 
createdAt: 2023-03-15T13:14:56.000Z
---

# Quick reference

| Verb  | Path                                       | Method              |
| ----- | ------------------------------------------ | ------------------- |
| POST  | /api/v1/agreement/bulk\_create\_or\_update | Upsert agreements   |
| PATCH | /api/v1/agreement/\<id>                    | Update an Agreement |

# Upsert agreements

## Description

```shell
# Generate a token
curl --location --request POST 'https:/api.pricemoov.com/v1/api/agreement/bulk_create_or_udpate' \
--header 'Content-Type: application/json' \
--data-raw '[
   {
      "name":"",
      "client_code":"1345",
      "price_line":{
         "product_code":"ELE100",
         "attribute_1":"xyz",
         "attribute_2":"skd"
      },
      "price_list_code":"",
      "prices":{
         "x":"y"
      }
   }
]'
```

## Parameters

::::VerticalSplit{layout="left"}
:::VerticalSplitItem
name

client\_code

price\_line

price\_list\_code

prices
:::

:::VerticalSplitItem
`type: string`, `default: unknown`, `Required`

`type: string`, `default: unknown`, `Required`

`type: dict`, `default: unknown`, `Required`

`type: string`, `default: unknown`, `Required`

`type: dict`, `default: unknown`, `Required`
:::
::::

## Example

Upon success, the response is 200 OK and returns

```json
{}
```

