---
title: "Creates an invoice payment"
method: POST
path: "/invoices/{invoice_id}/payments"
tags: ["Invoice payments"]
---

# Creates an invoice payment

`POST /invoices/{invoice_id}/payments`

Records a manual cash receipt against an open invoice by amount, effective date, and a GL account code that maps to a funded cash account.
Rillet resolves the account code to a cash account before posting, so verify chart-of-accounts mapping when automations fail validation.

## Path parameters

- `invoice_id` string, required

## Request body

- InvoicePaymentRequest
  - `amount` RoundedMonetaryAmount, required — A monetary amount that must be rounded to the currency's default decimal places (e.g., 2 decimal places for USD).
    - `amount` string, required — Monetary amount in decimal format, using a period (.) as the decimal separator. Must be rounded to the currency's default decimal places (e.g. '1.01' in USD represents 1 dollar and 1 cent).
    - `currency` string, required — Currency code following ISO-4217
  - `date` string, date, required
  - `account_code` string, required — The account code found in the Chart of Accounts

## Response `200`

OK

- InvoicePayment
  - `id` string, uuid, required
  - `status` 'SUCCESSFUL' | 'FAILED' | 'UNCLEARED', required
  - `invoice_id` string, uuid, required
  - `amount` RoundedMonetaryAmount, required — A monetary amount that must be rounded to the currency's default decimal places (e.g., 2 decimal places for USD).
    - `amount` string, required — Monetary amount in decimal format, using a period (.) as the decimal separator. Must be rounded to the currency's default decimal places (e.g. '1.01' in USD represents 1 dollar and 1 cent).
    - `currency` string, required — Currency code following ISO-4217
  - `date` string, date
  - `account_code` string — The account code found in the Chart of Accounts
  - `updated_at` string, date-time, required — ISO 8601 timestamp in UTC timezone (must end with 'Z')

## Other responses

- `default` — Error

---

[API](https://skmtc.net/rillet/apis/rillet-accounting-api.md) · [All operations](https://skmtc.net/rillet/apis/rillet-accounting-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rillet/rillet-accounting-api/versions/a2ab794dd5f2/schema)
