customer_receipt


POST /customer_receipt

To create a new customer receipt.

            {
                "api_credentials": {
                    "token": "XXX"
                },
                "customer_receipt": {
                    "customer_code_365": "10001800",
                    "receipt_date_local": "2020-10-02",
                    "receipt_date_utc0": "2020-10-02 10:45:00",
                    "reference_number": "REC20201001003",
                    "receipt_description": "Receipt from API",
                    "amount": 100,
                    "agent_code_365": "CT",
                    "payment_type_code_365": "CHEQ",
                    "cheque_number": "CHQ123456",
                    "cheque_date": "2020-10-05",
                    "comments": "here some additional comments, if any",
                    "user_code": "your_user_code"
                }
            }
        


field type description
api_credentials
token string Credentials provided by Powersoft that allow access to the API
customer_receipt
customer_code_365 string 365 customer code. Required.
receipt_date_local string The receipt local date. Required.
receipt_date_utc0 string The receipt session date time, Coordinated Universal Time (UTC). Required.
reference_number string Your receipt reference number. Required and unique. The system validates if the reference number already exists in 365.
receipt_description string Your receipt description. Required. Maximum length accepted is 20 characters.
amount decimal Your receipt amount. Required.
agent_code_365 string 365 agent code. Not required. Pass empty string if not known.
payment_type_code_365 string 365 payment type code. Required.
cheque_number string The cheque number in case that payment has been done by cheque. Not required. Pass empty string if no cheque payment is done.
cheque_date string The cheque date in case that payment has been done by cheque. Not required. Pass empty string if no cheque payment is done.
comments string Additional comments. Not required. Pass empty string if you don't have any additional comments.
comments string Your user code that entered the receipt in your system. Not required. Pass empty string if you don't have any user code.

Returns

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