---
title: "POST /v1/ledger_transactions"
method: POST
path: "/v1/ledger_transactions"
---

# POST /v1/ledger_transactions

`POST /v1/ledger_transactions`

## Request body

- object
  - `status` string — To immediately post a ledger transaction upon creation, set the status to posted.
  - `description` string — (Optional) A free-form internal description, up to 1000 characters.
  - `ledger_entries` object[], required — An array of ledger entries. A maximum of 1000 entries is allowed per transaction.
    - `amount` integer, required — Supports any integer value up to 10³⁶.
    - `direction` string, required — Must be either credit or debit.
    - `ledger_account_id` string, required
    - `metadata` object
      - `any_key` string
  - `effective_at` string, date — Timestamp in ISO 8601 format with up to 6 decimal places. Defaults to the time of database insertion if not provided.
  - `external_id` string — (Optional) A user-defined unique identifier.
  - `metadata` object — Metadata to attach to the ledger transaction. Must be a JSON object containing string keys and values.
    - `any_key` string

## Response `201`

Created

---

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