Web API - Sage 300 2020 - ARReceiptAndAdjustmentBatches

I may not be processing this correctly. Send the request below creates a new batch everytime.

POST: http://localhost/Sage300WebApi/v1.0/-/TESTCOM/AR/ARReceiptAndAdjustmentBatches

{
   "BatchRecordType":"CA",
   "BatchNumber":100,
   "BatchType": "Entered",
   "BatchStatus": "Open",
   "ReceiptsAdjustments":[
      {
        "BatchType":"CA",
        "BatchNumber":100,
        "EntryDescription":"Cash Sales - 10001070",
        "EntryReference":"Cash 10001070",
        "CustomerNumber":"6030",
        "ReceiptDateAdjustmentDate":"2021-12-20T00:00:00Z",
        "ReceiptTransactionType": "Prepayment",
        "DocumentNumber": "RC10001070",
        "PaymentCode": "CARD",
        "BankReceiptAmount":210.00,
        "CustomerReceiptAmount":210.00,
        "CustomerUnappliedAmount":0
      }
   ]
}
Parents
  • There would need to be a PATCH (to update an existing batch) available for ARPostReceiptsAndAdjustments which there is not. Just as an FYI, in your code above you were trying with a POST. You can see all of the available calls in Swagger on the server where Sage Web API is installed.

Reply
  • There would need to be a PATCH (to update an existing batch) available for ARPostReceiptsAndAdjustments which there is not. Just as an FYI, in your code above you were trying with a POST. You can see all of the available calls in Swagger on the server where Sage Web API is installed.

Children