---
title: "Create a Transaction"
method: POST
path: "/transactions"
tags: ["Transactions"]
---

# Create a Transaction

`POST /transactions`

Create an accounting transaction

### Parameters

**type** `REQUIRED`

A value to indicate if the transaction is an income (revenue) or expense transaction. Supported values are:

> "Expense", "Income"

* * *

**amount** `REQUIRED`

A positive numeric value (in your account currency) representing the transaction amount.

* * *

**date** `REQUIRED`

The date of the transaction

* * *

**vendor** `OPTIONAL`

A string representing the vendor or payee for the transaction

* * *

**category** `OPTIONAL`

Either a custom string value to represent the category of the transaction **or** the IRS Schedule F code/link number. If using the schedule F items, supported values are the keys listed below:

**Expense Categories:**

| **Key** | **Category** |
| --- | --- |
| 10 | Car and truck expenses |
| 11 | Chemicals |
| 12 | Conservation expenses |
| 13 | Custom hire (machine work) |
| 14 | Depreciation |
| 15 | Employee benefit programs |
| 16 | Feed |
| 17 | Fertilizers and lime |
| 18 | Freight and trucking |
| 19 | Gasoline, fuel, and oil |
| 20 | Insurance (other than health) |
| 21a | Interest Mortgage (paid to banks, etc.) |
| 21b | Interest Other |
| 22 | Labor hired (less employment credits) |
| 23 | Pension and profit-sharing plans" |
| 32a | Purchase of livestock" |
| 24a | Rent or Lease of Vehicles, machinery, equipment |
| 24b | Rent or Lease of Other (land, animals, etc.) |
| 25 | Repairs and maintenance |
| 26 | Seeds and plants |
| 27 | Storage and warehousing |
| 28 | Supplies |
| 29 | Taxes |
| 30 | Utilities |
| 31 | Veterinary, breeding, and medicine |
| 32 | Other expenses |

**Income Categories:**

| **Key** | **Category** |
| --- | --- |
| 1a | Sales of livestock and other resale items |
| 1b | Cost or other basis of livestock |
| 2 | Sales of livestock, produce, grains, and other products you raised |
| 3a | Cooperative distributions |
| 4a | Agricultural program payments |
| 5a | Commodity Credit Corporation (CCC) loans reported under election |
| 5b | CCC loans forfeited |
| 6 | Crop insurance proceeds and federal crop disaster payments |
| 7 | Custom hire (machine work) income |
| 8 | Other income |

* * *

**ref_id** `OPTIONAL`

The Farmbrite record id to associate this transaction to, used with the `ref_type` property.

* * *

**ref_type** `OPTIONAL`

A value used with the `ref_id` property to associate this transaction to a record in Farmbrite. Support values are:

> "animal", "equipment", "plant", "location"

* * *

**check_number** `OPTIONAL`

Optional text containing the check number or other payment identifier

* * *

**keywords** `OPTIONAL`

A comma delimited list of keywords, tags, or labels to easily search for similar transactions.

* * *

**description** `OPTIONAL`

A text description or summary of the transaction.

## Headers

- `Content-Type` string

## Request body

- object

## Response `200`

Successful response

---

[API](https://skmtc.net/farmbrite/apis/farmbrite-api-developers-documentation.md) · [All operations](https://skmtc.net/farmbrite/apis/farmbrite-api-developers-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/farmbrite/farmbrite-api-developers-documentation/revisions/b33a389fa2c0/schema)
