---
title: "POST /termOfPayment"
method: POST
path: "/termOfPayment"
tags: ["termOfPayment"]
---

# POST /termOfPayment

`POST /termOfPayment`

## Request

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

create a termOfPayment

## 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 `201`

termOfPayment create 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/post.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)
