Hello Team,
I want to apply a payment to the Invoice. To do it I use the following endpoint: POST ARPostReceiptsAndAdjustments
Example of the request:
{
"BatchRecordType": "CA",
"BatchNumber": 77,
"BatchDate": "2021-06-27",
"Description": "prepay",
"NumberOfEntries": 1,
"BankCode": "CCB",
"DefaultBankCurrency": "CAD",
"ReceiptsAdjustments": [
{
"BatchType": "CA",
"BatchNumber": 77,
"EntryNumber": 1,
"CustomerNumber": "SAGE 300 T1",
"ReceiptDateAdjustmentDate": "2021-06-27",
"EntryDescription": "1",
"EntryReference": "",
"BankReceiptAmount": 66,
"CustomerReceiptAmount": 66,
"TotalCustomerAmountApplied": 66,
"ReceiptTransactionType": "Prepayment",
"MatchingDocumentNumber": "SAGE2021",
"DocumentType": "Invoice",
"CustomerUnappliedAmount": 0,
"AppliedReceiptsAdjustments": [
{
"BatchType": "CA",
"BatchNumber": 77,
"EntryNumber": 1,
"LineNumber": 1,
"CustomerNumber": "SAGE 300 T1",
"PaymentNumber": 2,
"CustomerReceiptAmount": 66
}
]
}
]
}
But, Sage 300 returned the error:
{
"error": {
"code": "InvalidPayload",
"message": {
"lang": "en-US",
"value": "The payload is invalid for this resource. Requested value 'Invoice' was not found."
}
}
}
Could you help me with the request that I should use to apply the payment to the Invoice?
But, Sage 300 returned the error:
{
"error": {
"code": "InvalidPayload",
"message": {
"lang": "en-US",
"value": "The payload is invalid for this resource. Requested value 'Invoice' was not found."
}
}
}
Could you help me with the request that I should use to apply the payment to the Invoice?