build_get_service_contract
Fetch the AUTHORITATIVE contract for a transactional/stateful platform service (cart, order, payment, booking, appointment, membership, approval, document_signature, recurring_plan, inventory, task, ticket, loyalty_points, rental, comment, attachment, feedback, notification, product, service, customer, workflows). Returns the service's state machine (initial_state + transitions), its operations (op ids + input fields + resulting state), the base schemas + mandatory fields you must supply, AND the platform's DEFAULT UI SCHEMAS for that service — the bulletproof reference for building a correct, sophisticated transactional UI. ALWAYS call this for any service your app extends BEFORE authoring its UI — do not guess op names, states, or mandatory fields from prose. service_id='index' (default) lists all services.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parts | No | What to return (default 'both'): 'contract' = state machine/ops/schemas; 'ui_schemas' = default UI only. | |
| service_id | No | The service id (e.g. 'cart', 'booking', 'payment'); 'index' (default) lists all. |