0Bit Documentation

Environments

Understand sandbox, production, endpoint, credential, and deployment configuration.

Understand sandbox, production, endpoint, credential, and deployment configuration.

Documentation boundary

Configuration pages explain how to separate environments, keys, SDK setup, webhook signing, and idempotent retry behavior. They should make integration safer without publishing internal infrastructure, secrets, or privileged operational procedures.

What this page covers

  • Environments
  • Environment, credential, webhook, and deployment setup
  • Environment status, webhook delivery, and retry boundaries

How it fits

Configuration pages explain how to separate environments, keys, SDK setup, webhook signing, and idempotent retry behavior. They should make integration safer without publishing internal infrastructure, secrets, or privileged operational procedures.

Workflow

  1. Separate sandbox and live configuration in code and deployment secrets.
  2. Store server-only values in a secret manager and expose only browser-safe values to clients.
  3. Configure allowed origins, redirect URLs, and webhook endpoints for deployed domains.
  4. Verify webhooks against raw request bodies and handle duplicate event ids.
  5. Monitor API errors, webhook failures, reconciliation gaps, and unexpected status transitions.

Status and data signals

SignalUse it forDo not use it for
EnvironmentSandbox or live mode.Mixed keys and hosts.
Credential typePublishable, secret, webhook secret, or session-scoped value.Secret in browser bundles.
Idempotency keyWrite deduplication across retries.New key for same logical write.
Webhook signatureAuthenticity check.Parsed unsigned payload.

Implementation notes

  • Start in sandbox or test mode with fake data.
  • Keep server-only credentials, webhook secrets, PII, provider payloads, and internal runbooks out of public docs and browser code.
  • Use documented ids, request ids, event ids, timestamps, status fields, asset symbols, and environment names for support and reconciliation.
  • Treat browser callbacks as user-experience signals; use signed webhooks, API reads, scan records, or settlement reports for durable backend state.
  • Confirm product access, entitlement, regional availability, and review status before presenting the workflow as live.

Example trace

A configuration issue usually shows up as a mode mismatch, missing entitlement, failed webhook verification, duplicate write, or unreachable redirect/origin. Start by confirming the host, key prefix, deployment environment, allowed origin, webhook URL, webhook secret, and idempotency key behavior. Then reproduce in sandbox with fake data before changing live configuration. Configuration docs should make those checks obvious so developers do not debug product logic when the problem is environment setup.

On this page