---
title: "PUT /termOfPayment/id/{id}"
method: PUT
path: "/termOfPayment/id/{id}"
tags: ["termOfPayment"]
---

# PUT /termOfPayment/id/{id}

`PUT /termOfPayment/id/{id}`

## Request

- Base URL: `https://www.weclapp.com/api/nullapi/v2`
- URL: `https://www.weclapp.com/api/nullapi/v2/termOfPayment/id/{id}`
- Auth: API key in header `AuthenticationToken`
- TypeScript: <https://skmtc.dev/weclapp/apis/weclapp-api/docs/termOfPayment/id/:id/put.ts> (a function with typed inputs; its response is checked against the schema)

update termOfPayment

## Path parameters

- `id` string, required

## Query parameters

- `dryRun` boolean

## Request body

- TermOfPayment
  - `id` string
  - `version` string
  - `conditions` TermOfPaymentCondition[]
    - `id` string
    - `version` string
    - `createdDate` integer
    - `discountPercentage` string, number
    - `lastModifiedDate` integer
    - `name` string
    - `numberOfDays` integer
  - `createdDate` integer
  - `datevTermOfPaymentNumber` integer
  - `description` string
  - `dueDateOption` 'END_OF_MONTH' | 'FIX' | 'IMMEDIATE' | 'PERIOD', required
  - `fixedDay` integer
  - `lastModifiedDate` integer
  - `name` string
  - `numberOfDays` integer
  - `reference` string
  - `validFrom` integer
  - `validTo` integer

## Response `200`

termOfPayment update response

- TermOfPayment
  - `id` string
  - `version` string
  - `conditions` TermOfPaymentCondition[]
    - `id` string
    - `version` string
    - `createdDate` integer
    - `discountPercentage` string, number
    - `lastModifiedDate` integer
    - `name` string
    - `numberOfDays` integer
  - `createdDate` integer
  - `datevTermOfPaymentNumber` integer
  - `description` string
  - `dueDateOption` 'END_OF_MONTH' | 'FIX' | 'IMMEDIATE' | 'PERIOD', required
  - `fixedDay` integer
  - `lastModifiedDate` integer
  - `name` string
  - `numberOfDays` integer
  - `reference` string
  - `validFrom` integer
  - `validTo` integer

## Other responses

- `default`: error response

## Changes

- **2026-11-07** `0e021229755d`: 1 info
  - added the new optional `query` request parameter `dryRun`

[Operation history](https://skmtc.dev/weclapp/apis/weclapp-api/changes/termOfPayment/id/:id/put.md)

---

[API](https://skmtc.dev/weclapp/apis/weclapp-api.md) - [All operations](https://skmtc.dev/weclapp/apis/weclapp-api/llms.txt) - [OpenAPI document](https://skmtc.dev/weclapp/apis/weclapp-api/revisions/0e021229755d?raw)
