accounting_batch_invoice


POST /accounting_batch_invoice

To create an accounting batch invoice with split vat and payments.

Create an accounting Sale Invoice


batch_invoice
transaction_type_code_365 string Transaction type code as registered in 365. Allowed values 'BI' - sale invoice, 'BC' - sale return invoice, 'BP' - purchase invoice, 'BE' - purchase return invoice. Required.
cs_code_365 string Customer or supplier code as registered in 365. For sale and sale return invoice the customer code is required. For purchase and purchase return invoice the supplier code is required. Required.
reference_number string Transaction reference number. Maximum length: 20 characters. Required.
agent_code_365 string 365 Agent code. Optionally.
asset_expense_account_code_365 string 365 asset/expense account. If the value is provided then a transaction 'PA -Assets & Expenses Purchases Invoices' is created if the transaction_type_code_365 is 'BP' or a transaction 'EA- Assets & Expenses Purchases Returns Invoice' if the transaction_type_code_365 is 'BE', For transaction_type_code_365 'BI' and 'BE' the value is ignored. Optionally.
is_euc boolean If value is true, it indicates the transaction is for any country belong to EU and split vat is not allowed.
import_export_flag boolean If value is true, it indicates the transaction is for import/export.
law11E_flag boolean If the value is true, it indicates that the transaction falls under Law 11E and split vat is not allowed.
transaction_date string Transaction date in format yyyy-mm-dd. Required.
transaction_description string Transaction description. Maximum length: 50 characters. Required.
euc_vat_amount decimal If the transaction is flagged as EUC and is type 'BP' or 'BE' the EUC vat amount is required.
law11E_vat_amount decimal If the transaction is flagged as Law11E and is type 'BP' or 'BE' the Law11E vat amount is required.
user_code string A user-defined code identifying the source of the transaction. This can be the code or name of your application. Maximum length: 35 characters. Required.
list_vat_amounts
transaction_type_code_365 string 365 VAT code. Required.
net_amount decimal Net amount. The value cannot be negative or zero.
vat_amount decimal VAT amount.
total_amount decimal Total amount including VAT. The value cannot be negative or zero.
list_payments
payment_type_code_365 string 365 payment code. Required.
bank_code_365 string 365 bank code. Required.
cheque_number string Cheque number. Maximum length: 20 characters. Optionally.
cheque_date string Cheque date in format yyyy-mm-dd. Optionally.
payment_amount decimal Payment amount. The value cannot be negative or zero.

Create an accounting Sale Return Invoice


Create an accounting Purchase Invoice


Create an accounting Purchase Return Invoice


Create an accounting Assets & Expenses Purchase Invoice


Create an accounting Assets & Expenses Purchase Return Invoice


Returns

Returns the standard api_response object. The Powersoft365 transaction code is returned in the response_id field.