# Create a transaction

> POST /transactions

Source: https://docs.trykintsugi.com/reference/2026-12-03/create-a-transaction

API version: Tenanted API release 2026-12-03, latest, default in the docs

POST /transactions

Create a transaction

Create a transaction for the resolved organization. Accepted rather than created: tax is calculated asynchronously, so `totalTaxAmountCalculated` and the per-line `taxItems` populate shortly after this returns. `GET /transactions/{id}` can answer `404` for a short time after this returns. Once the transaction can be read, tax may still be calculating (`processingStatus` `QUEUED`); poll for the amounts rather than treating that first `404` as failure.

Set `type` to `FULL_CREDIT_NOTE` or `PARTIAL_CREDIT_NOTE` and send `originalTransactionId` to reverse a pending, committed, or partially refunded sale. The credit note inherits the original transaction's customer, addresses and source; send the line items to credit in `items`, each carrying the `externalId` of the original line. Reversing a transaction you do not own answers `404`, identical to a transaction that does not exist. Re-POSTing the same credit-note external id against the same parent returns the stored credit note (same as a successful create) rather than a conflict. The same external id against a different parent still conflicts. A credit note whose parent sale is locked by another request answers `503` with `Retry-After`; retry rather than treating it as a permanent failure.

Category: Transactions

Request body:
externalId (string, required) - Your stable identifier for the transaction. Re-sending the same one updates the existing transaction rather than creating a second.
date (string, required) - When the transaction occurred. This drives which filing period it lands in, so send the real transaction time, not the time of the call.
direction (PublicTransactionDirectionEnum) - Whether you made the sale (`SALE`) or the purchase (`PURCHASE`). Omit it, or send `null`, for `SALE`. A credit note takes the direction of the transaction it reverses, and a different one returns 400. Re-sending an existing `externalId` keeps the stored direction.
  allowed values: SALE, PURCHASE
type (PublicTransactionTypeEnum) - Kind of transaction. `SALE` records a sale; `FULL_CREDIT_NOTE` or `PARTIAL_CREDIT_NOTE` with `originalTransactionId` reverses a pending, committed, or partially refunded sale. The stored type is derived from the amount credited, so it can differ from the one you send.
[truncated, see the reference page]

---

Index of every page: https://docs.trykintsugi.com/llms.txt
