Reversing documents
Only available for documents where:
- The doc type is GL, and not of reversal type.
- The doc type setup allows reversal.
- The document is in a posted state and has no allocations.
Reversing a document is done by POST
.
Example
POST /api/document/{docRef}/reverse
{
"PeriodId" : "0f8fad5b-d9cb-469f-a165-70867728950e",
"Reason": "Test"
}
Creates a reversal document, and allocates to the document specified in the request.