# Post a transaction to the general ledger **POST /transactions** ## Servers - https://rest.api.24sevenoffice.com/v1: https://rest.api.24sevenoffice.com/v1 () ## Authentication methods - Tfso ## Parameters ### Headers - **Authorization** (string) Authorization header ### Body: application/json (object) - **transactionTypeNumber** (integer) Type of transaction (as defined by the accounting system). Only types with number > 0 are allowed (negative numbers are reserved for system transaction types). TransactionType controls which number-series is used for the transaction. - **date** (string(date)) Date of the transaction in ISO 8601 format - NB there must be a financial period open for this date. This may be overridden by individual transaction lines. - **comment** (string) General comment of the transaction. Will be applied to all lines unless overridden at line level. - **documentId** (integer) Optional identifier (Document number) for a document/attachment associated with this transaction. - **lines** (array[object]) List of transaction lines. Each line must have an account number and an amount. All lines must balance to zero per date. ## Responses ### 201 The transaction has been posted #### Headers - **Access-Control-Allow-Origin** (string) - **Access-Control-Allow-Credentials** (string) - **X-Trace-Id** (string) #### Body: application/json (object) - **transactionId** (string) Unique identifier assigned to the posted transaction ### 400 The input provided was invalid #### Headers - **Access-Control-Allow-Origin** (string) - **Access-Control-Allow-Credentials** (string) - **X-Trace-Id** (string) ### 401 Unauthorized - Bearer token missing or invalid #### Headers - **Access-Control-Allow-Origin** (string) - **Access-Control-Allow-Credentials** (string) - **X-Trace-Id** (string) ### 403 Forbidden - User does not have access to post transactions #### Headers - **Access-Control-Allow-Origin** (string) - **Access-Control-Allow-Credentials** (string) - **X-Trace-Id** (string) [Powered by Bump.sh](https://bump.sh)