Create a Bookkeeping Entry Set

post/bookkeeping_entry_sets

Request body

datestring date-time

The date of the transaction. Optional if transaction_id is provided, in which case we use the date of that transaction. Required otherwise.

transaction_idstring

The identifier of the Transaction related to this entry set, if any.

Example request

{
  "date": "2020-01-31T23:59:59Z",
  "entries": [
    {
      "account_id": "bookkeeping_account_9husfpw68pzmve9dvvc7",
      "amount": 100
    },
    {
      "account_id": "bookkeeping_account_t2obldz1rcu15zr54umg",
      "amount": -100
    }
  ],
  "transaction_id": "transaction_uyrp7fld2ium70oa7oi"
}

Response

Bookkeeping Entry Set

created_atstring date-time required

When the entry set was created.

datestring date-time required

The timestamp of the entry set.

idstring required

The entry set identifier.

idempotency_keystring nullable required

The idempotency key you chose for this object. This value is unique across Increase and is used to ensure that a request is only processed once. Learn more about idempotency.

transaction_idstring nullable required

The transaction identifier, if any.

type'bookkeeping_entry_set' required

A constant representing the object's type. For this resource it will always be bookkeeping_entry_set.

Example response

{
  "created_at": "2023-02-11T02:11:59Z",
  "date": "2020-01-31T23:59:59Z",
  "entries": [
    {
      "account_id": "bookkeeping_account_e37p1f1iuocw5intf35v",
      "amount": 1750,
      "id": "bookkeeping_entry_ctjpajsj3ks2blx10375"
    },
    {
      "account_id": "bookkeeping_account_e37p1f1iuocw5intf35v",
      "amount": -1750,
      "id": "bookkeeping_entry_ctjpajsj3ks2blx10375"
    }
  ],
  "id": "bookkeeping_entry_set_n80c6wr2p8gtc6p4ingf",
  "idempotency_key": null,
  "transaction_id": null,
  "type": "bookkeeping_entry_set"
}

Changes