---
title: "Get Default Payment Amount"
method: POST
path: "/coa/api/v1/invoice/{invoice_id}/default-payment"
tags: ["Accounts Receivable"]
---

# Get Default Payment Amount

`POST /coa/api/v1/invoice/{invoice_id}/default-payment`

Get the default payment amount for an invoice based on when payment is posted.

        If the invoice has discount terms and the posted date is within the discount period,
        the discounted amount is returned. Otherwise, the full amount is returned.

## Path parameters

- `invoice_id` integer, required

## Request body

- GetDefaultPaymentInput
  - `posted_at` string, date, required — Date when payment would be posted
  - `transaction_amount` number, double, nullable — Optional transaction amount

## Response `200`

- GetDefaultPaymentOutput
  - `default_payment_amount` number, double, required
  - `payment_term_discount_note` string, nullable

## Other responses

- `400`
- `404`

---

[API](https://skmtc.net/campfire/apis/campfire-developer-apis.md) · [All operations](https://skmtc.net/campfire/apis/campfire-developer-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/campfire/campfire-developer-apis/revisions/6945ebc3180e/schema)
