> This page is for Unified.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.merge.dev/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.merge.dev/_mcp/server.

The `PaymentTerm` object is the agreed-upon conditions between a buyer and a seller that define the timing,
amount, and conditions under which payment for goods or services must be made.

### The PaymentTerm Object

```json
{
  "id": "string",
  "remote_id": "string",
  "created_at": "2023-01-01T00:00:00Z",
  "modified_at": "2023-01-01T00:00:00Z",
  "name": "string",
  "is_active": true,
  "company": "string",
  "days_until_due": 0,
  "discount_days": 0,
  "remote_last_modified_at": "2023-01-01T00:00:00Z",
  "payment_term_url": "string",
  "field_mappings": {
    "organization_defined_targets": {
      "string": {}
    },
    "linked_account_defined_targets": {
      "string": {}
    }
  },
  "remote_data": [
    {
      "path": "string",
      "data": {}
    }
  ]
}
```

### Schema (`PaymentTerm`)

```yaml
components:
  schemas:
    PaymentTermFieldMappings:
      type: object
      properties:
        organization_defined_targets:
          type: object
          additionalProperties:
            description: Any type
        linked_account_defined_targets:
          type: object
          additionalProperties:
            description: Any type
      title: PaymentTermFieldMappings
    RemoteData:
      type: object
      properties:
        path:
          type: string
          description: The third-party API path that is being called.
        data:
          description: >-
            The data returned from the third-party for this object in its
            original, unnormalized format.
      required:
        - path
      description: >-
        # The RemoteData Object

        ### Description

        The `RemoteData` object is used to represent the full data pulled from
        the third-party API for an object.


        ### Usage Example

        TODO
      title: RemoteData
    PaymentTerm:
      type: object
      properties:
        id:
          type: string
          format: uuid
        remote_id:
          type:
            - string
            - 'null'
          description: The third-party API ID of the matching object.
        created_at:
          type: string
          format: date-time
          description: The datetime that this object was created by Merge.
        modified_at:
          type: string
          format: date-time
          description: The datetime that this object was modified by Merge.
        name:
          type: string
          maxLength: 255
          description: The name of the payment term.
        is_active:
          type: boolean
          description: '`True` if the payment term is active, `False` if not.'
        company:
          type:
            - string
            - 'null'
          format: uuid
          description: The subsidiary that the payment term belongs to.
        days_until_due:
          type:
            - integer
            - 'null'
          minimum: -2147483648
          maximum: 2147483647
          description: The number of days after the invoice date that payment is due.
        discount_days:
          type:
            - integer
            - 'null'
          minimum: -2147483648
          maximum: 2147483647
          description: The number of days the invoice must be paid before discounts expire.
        remote_last_modified_at:
          type:
            - string
            - 'null'
          format: date-time
          description: When the third party's payment term was modified.
        payment_term_url:
          type:
            - string
            - 'null'
          format: uri
          maxLength: 2000
          description: The 3rd party URL of the payment term.
        field_mappings:
          oneOf:
            - $ref: '#/components/schemas/PaymentTermFieldMappings'
            - type: 'null'
        remote_data:
          type:
            - array
            - 'null'
          items:
            $ref: '#/components/schemas/RemoteData'
      required:
        - name
      title: PaymentTerm
```