---
title: "Govern child apps with policies"
description: "Turn parent authority into versioned operating settings for child apps without silently changing existing children."
canonical: "https://studio.inttegro.dev/guides/govern-child-apps-with-policies"
format: inttegro-machine-docs/v1
language: "PHP"
sdk_version: "v15.0.0"
reader_profile: optional
reader_manifest: "https://studio.inttegro.dev/machine/php/readers/index.json"
reader_identification: "Optional: declare your client only if known and your current-session capabilities; use reader_manifest for supplemental recommendations."
preamble_estimated_tokens: 601
model_token_report: "https://studio.inttegro.dev/machine/token-report.json"
preamble_questions: 5
preamble_source: "general"
recommended_mcp_tools: ["get_integration_guide","check_integration_readiness"]
estimated_tokens: 4133
token_estimate_method: "utf8_bytes_divided_by_4"
---

## Machine preamble

**Summary:** Turn parent authority into versioned operating settings for child apps without silently changing existing children. This PHP representation uses the selected SDK's native names wherever Studio has a verified mapping.

### Five questions

#### Q1. When should the reader use Govern child apps with policies?

Use this guide when implementing the complete business outcome rather than an isolated request.

#### Q2. What is authoritative on this page?

The guide owns the business sequence and verification logic. Its linked API references own the exact request, response, state, and error contracts.

#### Q3. What page-specific constraint matters most?

Keep the documented ordering, trust boundary, idempotency behavior, and authoritative read-after-write verification intact.

#### Q4. Can Inttegro MCP materially help with this task?

Yes, when the reader has an authenticated MCP connection and the task needs live context, guided planning, or a supported operation. The strongest matches are `get_integration_guide`, `check_integration_readiness`; their exact roles and boundaries are listed below.

#### Q5. How should the reader verify the answer and continue?

Use the guide’s explicit completion condition and verify the final resource through the documented lookup or lifecycle state; a successful redirect or accepted request may be intermediate. Continue with [Testing Inttegro APIs](https://studio.inttegro.dev/machine/php/api/testing.md) and [Onboard child apps](https://studio.inttegro.dev/machine/php/guides/onboard-child-apps.md) when those concerns enter scope.

### Recommended MCP assistance

Use these through an authenticated Inttegro MCP connection. This document remains the contract source.

- [`get_integration_guide`](https://studio.inttegro.dev/machine/php/inttegro-mcp/tools.md#get_integration_guide) — read-only integration guidance. Returns a focused implementation sequence and canonical Studio links for authentication, checkout, orders, catalog, messaging, idempotency, or testing.
- [`check_integration_readiness`](https://studio.inttegro.dev/machine/php/inttegro-mcp/tools.md#check_integration_readiness) — read-only integration guidance. Audits platform secret storage, server-runtime compatibility, idempotency, errors, state verification, checkout returns, and messaging consent without receiving source code or credentials.

## Document content

# Govern child apps with policies

Children policies and operating policies solve different problems. A children policy is the authority available to a parent; an operating policy selects concrete settings for a child. Use both deliberately so onboarding is repeatable, changes are reviewable, and an update cannot silently broaden every existing child.

> **Note:**
>
> Children and operating policies are available to selected accounts during private beta. The public Children Policies API supports lookup and version history; it does not publish self-service create or update operations. Confirm enablement and the authority assigned to your account with Inttegro before making policies a production dependency.

## Prerequisites

- Complete [Design app boundaries](https://studio.inttegro.dev/machine/php/guides/design-app-boundaries.md).
- Use the direct parent's server-side credential.
- Confirm private-beta access and retrieve the active [children policy](https://studio.inttegro.dev/machine/php/api/children-policies.md#look-up-a-children-policy-version).
- Decide whether the configuration is a reusable organizational profile or a one-child exception.

## Separate authority from configuration

| Concept                   | Purpose                                                                                                                              | Version behavior                                                                                 |
| ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ |
| Children policy           | Lists permitted currencies, amount ranges, payout choices, aging specifications, and payment-method booleans that a parent may grant | Versions are immutable. Lookup without a version returns the latest active version.              |
| Reusable operating policy | Names one concrete configuration within that authority                                                                               | Each update creates a new immutable version. Existing children are not changed automatically.    |
| Inline operating policy   | Supplies one concrete configuration directly when creating or updating a child                                                       | The child receives an immutable inline snapshot; there is no reusable policy ID to update later. |
| Child snapshot            | Records the exact resolved configuration applied to one app                                                                          | Remains unchanged until that child is explicitly updated.                                        |

This separation is a safety property. Updating a template is not a bulk rollout, and changing the parent's authority is not an instruction to rewrite every child.

## Choose reusable or inline

Use a reusable operating policy when several children should follow the same reviewed profile—for example, a standard merchant tier. Its stable `op_` ID gives onboarding code one selection while immutable versions preserve the exact historical configuration.

Use inline capabilities when the configuration is genuinely specific to one child or generated from an external approval. Inline selection avoids creating a reusable object that no other child should inherit.

| Question                                               | Reusable policy        | Inline selection                   |
| ------------------------------------------------------ | ---------------------- | ---------------------------------- |
| Will multiple children use it?                         | Usually yes            | Usually no                         |
| Does it need a named review and version history?       | Yes                    | The child's snapshot is the record |
| Should a later template edit affect existing children? | No; reapply explicitly | Not applicable                     |
| Can the selection exceed parent authority?             | No                     | No                                 |

Do not create a broad reusable policy as a shortcut for unknown future needs. Grant the smallest payment, payout, and payment-method configuration the child requires today.

## Apply a policy safely

Use this sequence for both creation and later changes:

1. [Look up the active children policy](https://studio.inttegro.dev/machine/php/api/children-policies.md#look-up-a-children-policy-version) immediately before planning the change. Record its ID and version with your change request.
2. Build a concrete capability selection entirely inside that authority. Amounts use minor currency units; booleans and aging IDs must be among the permitted values.
3. For a shared profile, [create an operating policy](https://studio.inttegro.dev/machine/php/api/operating-policies.md#create-an-operating-policy) or look up its latest reviewed version. For a one-child profile, prepare inline capabilities.
4. Apply exactly one selection form through [Create an app](https://studio.inttegro.dev/machine/php/api/apps.md#create-an-app) or [Update an app](https://studio.inttegro.dev/machine/php/api/apps.md#update-an-app): an operating-policy ID or inline capabilities, never both.
5. Read the returned `app.operating_policy` snapshot. Confirm every capability and inspect `source.type`. A reusable selection returns the selected ID and exact version; an inline or derived selection reports an inline source.
6. Store the snapshot beside your approval record. Do not infer the applied version later from whatever template is currently active.

When no operating policy is supplied, Inttegro may derive a restrictive configuration from the governing children policy. That is safe as a default, but it is not proof that the resulting settings match your product plan. Read and approve the returned snapshot before enabling the child.

## Change a reusable policy without losing updates

[Create a new operating-policy version](https://studio.inttegro.dev/machine/php/api/operating-policies.md#create-a-new-operating-policy-version) requires `expected_version`. Read the latest version, review the change, and send that exact active version. If another operator wins the race, Inttegro returns a conflict instead of overwriting their work.

On a conflict:

1. Read the latest operating policy and active children policy again.
2. Compare their versions with the approval record that produced your request.
3. Re-evaluate the desired capabilities; do not merely replace `expected_version` and retry.
4. Submit a new change only after the merged intent is approved.

A conflict can also mean the governing children policy changed during validation. Treat that as an authority change, not a transient network failure.

## Roll out a new version deliberately

Activating a reusable policy version does not update children already using an older snapshot. A controlled rollout should:

1. Identify the children that your own registry says should receive the change.
2. Apply the reusable policy ID to one non-production or low-risk child through [Update an app](https://studio.inttegro.dev/machine/php/api/apps.md#update-an-app).
3. Verify the returned snapshot's capabilities and source version.
4. Exercise the affected payment and payout paths in the appropriate test boundary.
5. Continue in measured batches and record each child's returned snapshot.

The public Apps API does not provide a bulk policy-application endpoint or a child-app listing operation. Do not build rollout safety around an assumed all-children update. Maintain the target set in your own tenant registry and make each app update observable and retryable.

## Test at the correct boundary

The published Simfile can validate policy request shapes, error parsing, and synthetic responses against the public contract. Use it to catch malformed capability selections and client assumptions before live testing. Simile does not prove private-beta enrollment, production authority, concurrent operator intent, or the financial effect of a live policy.

For production readiness, verify the actual returned children-policy version, operating-policy version, and child snapshot with non-production Inttegro credentials first. Never put production keys or real customer data into Simile.

## Acceptance checklist

- The account's private-beta enablement is confirmed.
- The active children-policy ID and version are recorded.
- Every selected value is within the active authority.
- Exactly one operating-policy selection form is sent.
- The returned child snapshot matches the approved configuration.
- Reusable policy updates use the latest `expected_version` and receive human review after conflicts.
- Existing children are updated only through an explicit, observable rollout.

## Review a policy as a public contract

Policy approval should answer what a child can actually do, not merely whether a payload validates. Review each capability group separately:

| Capability              | Review question                                                                        | Evidence after application                                                 |
| ----------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
| Payment currencies      | Does the child need every selected currency?                                           | Returned snapshot lists only approved currency codes.                      |
| Payment amount limits   | Are minimum and maximum values expressed in minor units and appropriate for the child? | Snapshot matches the approved inclusive range.                             |
| Payment methods         | Should each method be enabled, and must customer use be confirmed?                     | Each returned method has the expected `enabled` and `confirms_use` values. |
| Payouts                 | Should the child be able to use payouts at all?                                        | Returned `enabled` value matches the decision.                             |
| Payout limits and aging | Do the approved amount range and public aging specification fit the use case?          | Snapshot contains the selected range and resolved aging value.             |

An omitted capability group and a permissive capability group are not interchangeable. Build the request from the approved policy model, then compare the complete returned snapshot rather than checking only one field.

## Reject policy anti-patterns

- Do not copy the full children-policy authority into every operating policy. Authority describes the outer limit; a child configuration should still use least privilege.
- Do not update a reusable policy and announce that every child is changed. Existing snapshots are immutable until explicitly reapplied.
- Do not retry `409 Conflict` by replacing `expected_version` without reviewing the intervening change.
- Do not use an inline selection for a profile that must be reviewed and rolled out consistently across many children.
- Do not create a reusable policy for a one-off exception merely to avoid recording why that child differs.
- Do not treat a policy's name or description as enforcement. Only the returned capability values define the applied configuration.
- Do not call a child “policy compliant” from your registry alone. Compare the live app snapshot with the version your registry expects.

If your desired control cannot be expressed by the documented capability fields, keep it in your own product authorization layer and label it clearly as your rule. Do not invent policy fields or imply that Inttegro enforces a private convention.

## Audit without exposing secrets

Policy review records need IDs, versions, capability selections, approvers, target app IDs, request IDs, and outcomes. They do not need bearer tokens, authorization headers, financial-account details, or customer data. Keep the audit record useful enough to reconstruct why a child received a configuration while preserving the separate credential and customer-data boundaries.

Periodically compare your expected policy source and version with each child snapshot. A mismatch should block automated rollout for that child until an operator determines whether the app or the registry is stale. This makes configuration drift visible without assuming a bulk reconciliation endpoint.

## Related resources

- [Children policies](https://studio.inttegro.dev/machine/php/api/children-policies.md) - Inspect active authority and immutable history.
- [Operating policies](https://studio.inttegro.dev/machine/php/api/operating-policies.md) - Create, look up, page, and version reusable configurations.
- [Onboard child apps](https://studio.inttegro.dev/machine/php/guides/onboard-child-apps.md) - Create and verify the app that receives a policy snapshot.
- [Testing Inttegro APIs](https://studio.inttegro.dev/machine/php/api/testing.md) - Separate local contract testing from live account verification.
