Contract v1 · generated reference
Sandbox
UAT and local proof use test-mode providers and synthetic identities only.
The sandbox is a separate Firebase project. It holds no Production data and its credentials grant nothing in Production. A client configuration, App Check debug token, Auth token or provider fixture from one environment must never be reused in another.
Required isolation checks
- Project id, Auth issuer, Functions origin and App Check audience agree.
- Payment provider events are test mode in local and UAT.
- Webhook signing secrets are environment-specific and server-side only.
- Fixture identities contain no copied customer or provider data.
- Evidence redacts tokens, secrets, raw payment data and free-form sensitive content.
No Production fallback
If sandbox configuration is unavailable or mismatched, stop. Never fall back to a Production host, credential, dataset or provider console.
Common integration contract
Sandbox and Production are isolated
Run examples only in a governed sandbox or local emulator. Sandbox identities, App Check tokens, payment fixtures and data do not grant Production access. The typed ports do not ratify a public numeric quota; enforcement may be stricter. Honor RATE_LIMITED and the server's retry-after value.
Authentication and authorization
Firebase Auth proves identity. App Check proves the approved app where a callable requires it. Roles, organization membership, requester identity and resource ownership are derived and rechecked by the server.
Authentication guideErrors and recovery
Stable error codes distinguish validation, denial, conflict, expiry, authority pending, rate limiting and temporary unavailability. Never infer success from an HTTP redirect or a browser state.
Error catalogueIdempotency, concurrency and retry
Reuse an idempotency key only for an identical retry. A new intent needs a new key. Preserve version preconditions and reload after a conflict.
Retry guidanceChanges and escalation
Check compatibility before adopting a new contract version. Review the changelog, service status and support guidance before retrying a persistent failure.
| Family | Client decision |
|---|---|
| Authentication / authorization | Refresh or step up only when instructed; do not retry a denial unchanged. |
| Validation / conflict / expiry | Correct or reload state, then obtain confirmation for a new intent. |
| Rate limited / unavailable | Honor retry-after and use bounded backoff; inspect service status. |
| Unknown / server | Fail closed and escalate with a privacy-safe correlation id. |
Executable network examples are published only when the exact wire schema is producer-proven. Check the selected operation's example-availability status; an unresolved schema is a release blocker, not permission to guess.
Verified examples and local-only recovery snippets