...
In the output preview, you can see the customer invoice reference ID that is canceled.
...
Handling an Error After an Attempted
...
Cancellation
The second example showcases error handling. Invoice cancelation can only happen once per invoice. This example shows an error when we try to cancel an object that was already canceled.
...