v9

latestOpenAPI 3.0.0raw.githubusercontent.com2026-07-071292691.1 MB
state-machines

Create state machine

Creates a new state machine within the caller account. The transition graph is validated against the Kruzer mandatory skeleton (mandatory statuses present, cancellation route, no post-invoice cancellation, arrow integrity, custom status placement, nature composition).

post/api/v1/state-machines

Request body

entityType'ORDER' | 'FULFILLMENT_ORDER' required
codestring required
namestring required

Response

State machine created.

idstring required
entity_type'ORDER' | 'FULFILLMENT_ORDER' required
codestring required
namestring required
activeboolean required
is_defaultboolean required
versionnumber required
created_atstring required
updated_atstring required