> ## Documentation Index
> Fetch the complete documentation index at: https://docs.erp.arukz.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create payment due term

> Create a new payment due term for a specific payment term



## OpenAPI

````yaml /api-reference/openapi.json post /admin/api/v1/accounts/payment-terms/{payment_term_id}/due-terms
openapi: 3.0.3
info:
  title: ARUKZ ERP API
  version: v1
  description: >-
    The REST API of ARUKZ ERP: sales, purchases, inventory, products, partners,
    accounts, projects and reference data. Every call acts as the user whose
    token it carries and sees only that user's company.
servers:
  - url: https://erp.arukz.com
    description: ARUKZ ERP (hosted)
security:
  - bearerAuth: []
tags:
  - name: Authentication
    description: Sign in for a token and sign out.
  - name: Sales
    description: Quotations, sales orders and their lines, deliveries and invoices.
  - name: Purchases
    description: Purchase orders, receipts, bills, agreements and vendor price lists.
  - name: Inventory
    description: >-
      Warehouses, locations, lots, stock quantities, receipts, deliveries,
      transfers and scrap.
  - name: Products
    description: 'The product catalogue: categories, attributes, variants and packaging.'
  - name: Partners
    description: Customers, vendors, contacts, addresses and bank accounts.
  - name: Accounts
    description: >-
      Invoices, bills, credit notes, refunds, taxes, journals and the chart of
      accounts.
  - name: Projects
    description: Projects, tasks, stages and milestones.
  - name: Reference data
    description: Currencies and rates, banks, countries, states and units of measure.
paths:
  /admin/api/v1/accounts/payment-terms/{payment_term_id}/due-terms:
    post:
      tags:
        - Accounts
      summary: Create payment due term
      description: Create a new payment due term for a specific payment term
      operationId: accounts-payment-due-terms-create-payment-due-term
      parameters:
        - name: payment_term_id
          in: path
          required: true
          schema:
            type: integer
            description: The payment term ID
            example: 1
          description: The payment term ID
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                value:
                  type: string
                  description: Due term value type.
                  enum:
                    - percent
                    - fixed
                  example: percent
                value_amount:
                  type: number
                  description: >-
                    Value amount (percentage or fixed amount). Must be at least
                    0. Must not be greater than 100.
                  example: 100
                delay_type:
                  type: string
                  description: Delay type.
                  enum:
                    - days_after
                    - days_after_end_of_month
                    - days_after_end_of_next_month
                    - days_end_of_month_no_the
                  example: days_after
                nb_days:
                  type: integer
                  description: Number of days. Must be at least 0.
                  example: 30
                days_next_month:
                  type: integer
                  description: >-
                    Day of next month (1-31). Must be at least 1. Must not be
                    greater than 31.
                  nullable: true
                  example: 15
              required:
                - delay_type
                - nb_days
                - value
                - value_amount
      responses:
        '201':
          description: Created
          content:
            application/json:
              example:
                data:
                  id: 1
                  value: percent
                  value_amount: '100.0000'
                  delay_type: days_after
                  nb_days: 0
                  days_next_month: '10'
                  payment_id: 1
                  creator_id: 1
                  created_at: '2026-01-07T11:08:43.000000Z'
                  updated_at: '2026-01-07T11:08:43.000000Z'
                message: Payment due term created successfully.
        '401':
          description: Unauthenticated
          content:
            application/json:
              example:
                message: Unauthenticated.
        '422':
          description: Validation error
          content:
            application/json:
              example:
                message: The given data was invalid.
                errors:
                  value:
                    - The value field is required.
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        An API token from [Sign in](/api-reference/authentication), sent as
        `Authorization: Bearer <token>`. Tokens last 30 days.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.