sale_from_stock_batch_invoice


POST /sale_from_stock_batch_invoice

To create a sale from an exiting batch invoice.

            {
                "api_credentials": {
                    "token": "XXXX"
                },
                "batch_invoice": {
                    "batch_invoice_code_365": "9991001B5",
                    "list_invoice_payments": [
                        {
                            "payment_number": "PAYNUM9991001B5",
                            "payment_type_code_365": "JCC",
                            "payment_amount": 12.80,
                            "payment_description": "",
                            "payment_comments": ""
                        }
                    ]
                }
            }
        


field type description
api_credentials
token string Credentials provided by Powersoft that allow access to the API
batch_invoice
batch_invoice_code_365 string The batch invoice code as is in 365.
list_invoice_payments
payment_number string Payment number on your side
payment_type_code_365 string 365 payment type code (e.g. CASH, JCC and so on)
payment_amount decimal Payment amount
payment_description string Payment description
payment_comments string Payment comments

Returns

Returns the standard api_response object. The Powersoft 365 sale invoice code is returned in the response_id field.