Reference
INVALID_STATUS_TRANSITION
Status transition not allowed
Status transition not allowed
HTTP status 409 Conflict, code INVALID_STATUS_TRANSITION.
What it means#
The order's current status does not allow the transition requested. The message names both.
What to do#
Follow the order lifecycle: pending, then paid or cancelled, then refunded. Read the current status before transitioning.
On the wire#
Every error response carrying this code names this page in error.moreInfo,
with the request id in the query string. See Error codes for
the response shape and the list of every code.