Installment Sale

Author: Accord Project

installment-sale@6.0.1 Clause ^2.0.0 9331e70445ebe0fd30c912ad669a0a1c6eb162add500996b8692c0ad61e23f58

This is a clause for a simple installment sale.

Download Archive Download Compiled Archive Open in Template Playground Open in VSCode Web

Installment Sale

A simple clause for a sale paid in installments.

Template Text

"Dan" agrees to pay to "Ned" the total sum 10,000.00 EUR, in the manner following:

500.00 EUR is to be paid at closing, and the remaining balance of 9,500.00 EUR shall be paid as follows:

500.00 EUR or more per month on the first day of each and every month, and continuing until the entire balance, including both principal and interest, shall be paid in full -- provided, however, that the entire balance due plus accrued interest and any other amounts due here-under shall be paid in full on or before 24 months.

Monthly payments, which shall start on month 3, include both principal and interest with interest at the rate of 1.5%, computed monthly on the remaining balance from time to time unpaid.

"Dan" agrees to pay to "Ned" the total sum 10,000.00 EUR, in the manner following:

500.00 EUR is to be paid at closing, and the remaining balance of 9,500.00 EUR shall be paid as follows:

500.00 EUR or more per month on the first day of each and every month, and continuing until the entire balance, including both principal and interest, shall be paid in full -- provided, however, that the entire balance due plus accrued interest and any other amounts due here-under shall be paid in full on or before 24 months.

Monthly payments, which shall start on month 3, include both principal and interest with interest at the rate of 1.5%, computed monthly on the remaining balance from time to time unpaid.
{{BUYER}} agrees to pay to {{SELLER}} the total sum {{INITIAL_DUE as "0,0.00 CCC"}}, in the manner following:

{{DUE_AT_CLOSING as "0,0.00 CCC"}} is to be paid at closing, and the remaining balance of {{TOTAL_DUE_BEFORE_CLOSING as "0,0.00 CCC"}} shall be paid as follows:

{{MIN_PAYMENT as "0,0.00 CCC"}} or more per month on the first day of each and every month, and continuing until the entire balance, including both principal and interest, shall be paid in full -- provided, however, that the entire balance due plus accrued interest and any other amounts due here-under shall be paid in full on or before 24 months.

Monthly payments, which shall start on month {{FIRST_MONTH}}, include both principal and interest with interest at the rate of {{INTEREST_RATE}}%, computed monthly on the remaining balance from time to time unpaid.
{
  "$class": "org.accordproject.installmentsale@0.2.0.TemplateModel",
  "BUYER": "Dan",
  "SELLER": "Ned",
  "INITIAL_DUE": {
    "$class": "org.accordproject.money@0.3.0.MonetaryAmount",
    "doubleValue": 10000,
    "currencyCode": "EUR"
  },
  "INTEREST_RATE": 1.5,
  "TOTAL_DUE_BEFORE_CLOSING": {
    "$class": "org.accordproject.money@0.3.0.MonetaryAmount",
    "doubleValue": 9500,
    "currencyCode": "EUR"
  },
  "MIN_PAYMENT": {
    "$class": "org.accordproject.money@0.3.0.MonetaryAmount",
    "doubleValue": 500,
    "currencyCode": "EUR"
  },
  "DUE_AT_CLOSING": {
    "$class": "org.accordproject.money@0.3.0.MonetaryAmount",
    "doubleValue": 500,
    "currencyCode": "EUR"
  },
  "FIRST_MONTH": 3,
  "$identifier": "ae1b4bc2-e558-47d2-9694-39ce42819783",
  "contractId": "ae1b4bc2-e558-47d2-9694-39ce42819783"
}

Template Model

namespace org.accordproject.installmentsale@0.2.0

import org.accordproject.contract@0.2.0.Contract from https://models.accordproject.org/accordproject/contract@0.2.0.cto
import org.accordproject.runtime@0.2.0.{Request,Response,State,Obligation} from https://models.accordproject.org/accordproject/runtime@0.2.0.cto
import org.accordproject.money@0.3.0.MonetaryAmount from https://models.accordproject.org/money@0.3.0.cto

transaction Installment extends Request {
  o MonetaryAmount amount
}

transaction ClosingPayment extends Request {
  o MonetaryAmount amount
}

transaction Balance extends Response {
  o MonetaryAmount balance
  o String balanceCurrency
  o MonetaryAmount total_paid
  o String totalPaidCurrency
}

enum ContractStatus {
  o WaitingForFirstDayOfNextMonth
  o Fulfilled
}

asset InstallmentSaleState extends State {
  o ContractStatus status
  o MonetaryAmount balance_remaining
  o Integer next_payment_month
  o MonetaryAmount total_paid
}

event InstallmentSalePaymentEvent extends Obligation {
  o MonetaryAmount amount
  o String description
}

/**
 * The template model
 */
@template
asset TemplateModel extends Contract {
  o String BUYER
  o String SELLER
  o MonetaryAmount INITIAL_DUE
  o Double INTEREST_RATE
  o MonetaryAmount TOTAL_DUE_BEFORE_CLOSING
  o MonetaryAmount MIN_PAYMENT
  o MonetaryAmount DUE_AT_CLOSING
  o Integer FIRST_MONTH
}

Model Dependencies

Template Logic

Find the full logic for this template on on GitHub.

State Types

Type Sample JSON
org.accordproject.installmentsale@0.2.0.InstallmentSaleState
{
    "$class": "org.accordproject.installmentsale@0.2.0.InstallmentSaleState",
    "status": "Fulfilled",
    "balance_remaining": {
        "$class": "org.accordproject.money@0.3.0.MonetaryAmount",
        "doubleValue": 104.685,
        "currencyCode": "TOP"
    },
    "next_payment_month": 39372,
    "total_paid": {
        "$class": "org.accordproject.money@0.3.0.MonetaryAmount",
        "doubleValue": 50.26,
        "currencyCode": "TND"
    },
    "$identifier": "4d3f36e1-97d6-11f1-9df3-81e11c024ca9"
}
org.accordproject.runtime@0.2.0.State
{
    "$class": "org.accordproject.runtime@0.2.0.State",
    "$identifier": "4d3f36e0-97d6-11f1-9df3-81e11c024ca9"
}

Request Types

Type Sample JSON
org.accordproject.installmentsale@0.2.0.ClosingPayment
{
    "$class": "org.accordproject.installmentsale@0.2.0.ClosingPayment",
    "amount": {
        "$class": "org.accordproject.money@0.3.0.MonetaryAmount",
        "doubleValue": 107.379,
        "currencyCode": "MXV"
    },
    "$timestamp": "2026-08-14T11:50:09.997Z"
}
org.accordproject.installmentsale@0.2.0.Installment
{
    "$class": "org.accordproject.installmentsale@0.2.0.Installment",
    "amount": {
        "$class": "org.accordproject.money@0.3.0.MonetaryAmount",
        "doubleValue": 235.844,
        "currencyCode": "SHP"
    },
    "$timestamp": "2026-08-14T11:50:09.996Z"
}
org.accordproject.runtime@0.2.0.Request
{
    "$class": "org.accordproject.runtime@0.2.0.Request",
    "$timestamp": "2026-08-14T11:50:09.996Z"
}

Response Types

Type Sample JSON
org.accordproject.installmentsale@0.2.0.Balance
{
    "$class": "org.accordproject.installmentsale@0.2.0.Balance",
    "balance": {
        "$class": "org.accordproject.money@0.3.0.MonetaryAmount",
        "doubleValue": 227.169,
        "currencyCode": "MGA"
    },
    "balanceCurrency": "Tempor.",
    "total_paid": {
        "$class": "org.accordproject.money@0.3.0.MonetaryAmount",
        "doubleValue": 33.189,
        "currencyCode": "BOB"
    },
    "totalPaidCurrency": "Fugiat.",
    "$timestamp": "2026-08-14T11:50:09.997Z"
}
org.accordproject.runtime@0.2.0.Response
{
    "$class": "org.accordproject.runtime@0.2.0.Response",
    "$timestamp": "2026-08-14T11:50:09.997Z"
}

Events Types

Type Sample JSON
org.accordproject.installmentsale@0.2.0.InstallmentSalePaymentEvent
// sample generation failed: No concrete extending type for "concerto@1.0.0.Participant".

Technical Integration

Please refer to the Accord Project documentation for how to use a template or integrate it within your application.

View the Latest code for this template on GitHub.