Show / Hide Table of Contents

    Simulate/Validate

    The API provides simulation/validation of command requests so that you can invoke one or more commands with the intent of performing a rollback after the commands have been invoked.

    Simulate

    Simulate works exactly like normal command invokation except that it rolls back the transaction it was executed in. This means that the commands invoked won't have any effect on the persistent state of the system outside of the transaction it is invoked in.

    To simulate a command request, append /Simulate to the command request URL.

    Validate

    Validate works a bit different from Simulate. Like Simulate, it will roll back the transaction. In addition however, it also changes the return type of the request to a ValidationCommandResponse.

    The ValidationCommandResponse object returned will contain validation information about the command(s) that were invoked for the transaction.

    To validate a command request, append /Validate to the command request URL.

    Back to top Copyright © 2023 Monitor ERP System AB