# Add a new transaction **POST /transaction** ## Servers - API Auto Mocking: https://YOURSITE.infoodle.com/apiv2 (API Auto Mocking) ## Authentication methods - O auth2 ## Parameters ## Body parameters Content-type: application/json New transaction parameters - **user_id** (integer) Required. CORE user id - **amount** (number) Required. the amount of this transaction including any taxes - **date** (string) Required. the local date of the transaction - **transaction_type** (string) What does this transaction relate to. This determines what other fields are required - **accountcode_id** (integer) Required. Must link to an Accountcode that the user is able to see. - **taxable** (integer) Whether this is a taxable item (1) or not (0) - **batch_id** (integer) Required. The transaction Batch that this transaction is a part of - **campaign_id** (integer) If supplied, must link to a Campaign the user can see - **location_id** (integer) If supplied, must link to a Location - **stockcode_id** (integer) If supplied, must link to a Stock item the user can see - **stock_qty** (integer) Required for transaction_type S. How many stock items were purchased - **inkind_description** (string) Required for transaction_type I. Text to describe the donation - **who_to_receipt** (string) Whether to identify which entity the transaction is to be receipted to, Individual (ind) or Organisation/Household (hh) - **salestax** (integer) Referenced when showing tax (VAT, GST). Sales tax is included when its 1, no sales tax applies when its 0 - **receipt_annually** (integer) Identify whether this should be receipted as a One-off (0) or combined (1) - **pledge_drive_id** (integer) If supplied must link to a valid PledgeDrive - **note** (string) A short text note to add to the transaction ## Responses ### 200: Item has been saved successfully #### Body Parameters: application/json (object) - **id** (integer) ### 401: Authentication unauthorised #### Body Parameters: application/json (object) - **error** (string) ### 403: Invalid permission #### Body Parameters: application/json (object) - **error** (string) [Powered by Bump.sh](https://bump.sh)