Based on the API fields wise Request and Responses are as follows;
Request
Respond
Customer (ERP customer code)
Update using Invoice-number
Sales & Booking ID
Update using Invoice-number
Invoice Number (for receipts)
Invoice-number
Credit Note Number (for refunds, with negative amounts)
Credit Note Number
Amount
amount
Receipt Types (including REFUND)
receiptType
Receipt Date
Update as current date by default
Payment Type
paymentTypeId
Company Payor
payerName
Based on the data sent from the ERP standard functionality of the standard receipt function should be triggered via the system.
The payment type selected the required information should be checked against the information sent from the ERP and API will pass a error code to ERP mentioning the missing information.
If a receipt is canceled or void in integrated system, Rece_Status will be marked as "Voided". If a canceled receipt was settled against repayment plan the installment status will be reversed back to original status as per Repayment Plan rules.
E.g. - Installment value - 1000
Paid Amount - 1000
Cancel Receipt Amount - 500
Change Status - Unpaid
Receipt created by the receipt API will identify receipt set-off against repayment plans installment where receipt date and payment status. Refer to Receipts - Recurring Payment for rules on how to apply $ against installments in byondpro.