This is INVALID_STATE_TRANSITION. The response includes current_state, allowed_from_states and a remediation hint you can show in your UI. Check the status code, success: false and the error text, because the error can surface in any of those three places. GET /api/v1/services/transactional-catalog lists every state machine and its transitions. A shipped order normally goes through returns and refunds rather than cancel.
"Cannot cancel from state 'shipped'"
Common question, written up by the Supero team.
Error message
INVALID_STATE_TRANSITIONLinkrev 1
1 answer
Accepted answer
Accepted answer
Linkrev 1
Your answer
Know the answer? Sign in to post it. It takes an email address and a 6-digit code.
Sign in to answer