KDPika Licensing Sign inStart free
API v1
Show all languages
Browse documentation

Choose a page in the navigation drawer.

KDPika Licensing · API v1 Beginner

Environments

Keep Sandbox and Live credentials, customer licenses and webhook traffic separate without confusing payment-provider mode.

On this page
Updated 2026-10-17 UTCDownload Markdown

Sandbox tests your integration; Live serves your real software customers.

What you will learn

  • Which records are environment-specific and which configuration is shared.
  • How the API chooses an environment.
  • How platform allowances and payment modes differ from licensing environments.

Prerequisites

Isolation rules

Record or operationBehaviour
Product, product plan, feature definitionsShared within your organization
Customer and licenseStored in Sandbox or Live
Device and activation tokenInherit the associated license's environment
Developer API keyBound to one product, organization and environment
Outgoing webhook endpointHas its own environment selection
Workspace usageCounted across the organization, not a fresh allowance per environment

Request selection

Activation reads X-Environment, trims and uppercases it, accepts SANDBOX or LIVE, and defaults a missing header to SANDBOX. Send it explicitly to avoid relying on a default.

Developer management endpoints derive the environment from the authenticated developer API key. X-Environment does not override the key.

Validation and deactivation derive the environment from the activation token's license. They do not select a different license from an X-Environment header.

Dashboard switch

The dashboard environment switch changes the current viewing/creation context. It does not convert an existing license or customer. Products and plans remain shared.

Free is Sandbox evaluation only. Live key, webhook and license creation needs the appropriate paid entitlement and eligible subscription. Existing customer-license validation is handled separately from creation limits.

Payment modes are separate

Stripe or Mollie Test/Live mode controls platform subscription payments. It is not the licensing environment. A test subscription payment is not a real-money sale; changing payment mode does not migrate a Sandbox license.

Safe testing

  1. Select Sandbox before creating the test license.
  2. Use synthetic customer data and a test mailbox you control.
  3. Set SANDBOX explicitly in the client.
  4. Keep Sandbox server keys separate from Live secrets.
  5. Label test state directories so they cannot overwrite production client state.

Expected result: your tests create and modify only Sandbox records.

Expected result

You know which environment each credential and record belongs to, and do not expect two independent monthly usage pools.

Common mistakes

  • Sending a Sandbox key with LIVE: it cannot activate that Live license.
  • Sending X-Environment: LIVE beside a Sandbox developer key: the key remains Sandbox.
  • Assuming an environment switch migrates data: issue the intended Live records deliberately.

Security notes

Do not print either environment's secret keys in logs. Environment names are not a substitute for secret scoping and authorization. Do not run validation experiments against real customer credentials.

Troubleshooting

SymptomCauseFix
INVALID_LICENSE 404 during activationKey, supplied email, product or environment did not matchCheck all four privately; the response deliberately does not disclose which identifier exists
LICENSE_NOT_FOUND 404 on managementThe key's organization/product/environment does not match the resourceUse the correctly scoped key and license ID
Live option is unavailableThe workspace lacks eligible paid Live accessReview Billing; do not bypass the dashboard gate
Dashboard appears to have no licensesYou selected the other environmentSwitch viewing context without modifying records

Next steps

Complete the Sandbox quickstart, then the go live checklist.

Was this page helpful?

Choose an answer

Do not include personal data, license keys or credentials. Retained for up to 30 days. This is not a support inbox.

Search documentation

Arrow keys to move, Enter to open, Escape to close. Search stays in your browser.

Cookie settings