Unable to post receipt using the swagger documentation endpoint

SOLVED

Hi,
I'm trying to create a receipt adjustment batch with one of the data in the payload "BatchStatus": "Posted" but I get this error "Batch status cannot be manually changed to POSTINPROGRESS or POSTED. (3620 ARBTA1.C)."

How can I resolve this?

Also is there any endpoint that works for posting receipts alone and take the status of the batch from "Open" to "Posted" because taking the BatchStatus: "Open" or not putting the "BatchStatus" data at all as a payload works but the receipt is not posted.

Pls how do i resolve this?


Thanks