batch_invoice


POST /batch_invoice

To create a new batch invoice.

        "api_credentials": {
            "token": "XXXXX"
        },
            "batch": {
            "reference_number": "C01102016002",
            "type_code_365" : "BP",
            "is_euc" : false,
            "transaction_date":"2016-10-01 00:00:00",
            "cs_code_365":"10000006",
            "vat_code_365":"019",
            "net_amount":100,
            "vat_amount":19,
            "total_amount":119,
            "euc_vat_amount":0,
            "payment_type_code_365":"CHEQ",
            "bank_code_365":"111-222-333",
            "cheque_number": "CHQ12345",
            "cheque_date" : "2016-10-05 00:00:00"
        }
        


field type description
api_credentials
token string Credentials provided by Powersoft that allow access to the API
batch
reference_number string reference Number of the transaction
type_code_365 string 365 transaction type. Values allowed: BI - sales invoice, BC - sales return, BP - purchase order, BE - purchase order return
is_euc boolean If the transaction is from an EU country
transaction_date datetime Transaction value date
cs_code_365 string 365 code for the customer/supplier involved in the transaction
vat_code_365 string 365 VAT code
net_amount decimal Net Amount
vat_amount decimal VAT Amount
total_amount decimal Total Amount
euc_vat_amount decimal EUC VAT amount in case that the transaction is a purchase or a purchase return and the transaction is from an EU country
payment_type_code_365 string 365 payment type code
bank_code_365 string 365 bank code
cheque_number string Cheque number in case the payment is done by cheque
cheque_date datetime Posted cheque date in case the payment is done by cheque

Returns

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