To determine the state value of an app, check it against the following rules:
- If the AppVersion has zero contracts, it is in Setup state.
- If the AppVersion is using a Sandbox implementation and has one or more API contracts for the Live implementation that are not yet fully approved, it is in Sandbox state.
- If the AppVersion has corresponding Live implementation API access (contract) requests for all APIs for which it currently has access in the Sandbox implementation, and if all implementation contracts are in the Approved state, the AppVersion is in Approved state.
- If the AppVersion is connected and running in the Live implementation, the AppVersion is in Live state.