In this part of the code sample, you can get the operation status of the optimisation run.
You can generate a valid unique plan ID in the step Round Trip - Create a Plan.
To get to the already optimised plan in the next step, use the code sample Round Trip - Get a Plan.
Make sure that the operation status is SUCCEEDED to continue with the next step.
To delete the previously created plan, use the code sample Round Trip - Delete a Plan.