Skip to main content
Importing your existing data into Stigg is a key milestone in the integration process. This guide will walk you through the process step-by-step, ensuring a smooth transition and uninterrupted operations.

Entities that can be imported

  1. Customers
  2. Subscriptions
  3. Usage data
Data should be imported to Stigg according to the above order.

How imports are processed

Customer and usage imports finish before the API responds. Subscription imports run in the background and finish later. The REST endpoint for importing customers (POST /api/v1/customers/import) allows 400 requests per minute. Rate limits apply per API key.

Subscription import stages

Each importSubscriptionsBulk request goes through these stages:
  1. Stigg validates the request. If any plan, add-on, or feature ID doesn’t exist, or an entitlement is invalid, the whole request fails and nothing is queued.
  2. Stigg queues an import task and returns its taskId. Subscriptions for customers that don’t exist in Stigg, or whose billing ID already belongs to a subscription of a different customer or resource, are left out of the task without an error.
  3. A background worker creates the subscriptions. Stigg processes a limited number of import tasks per environment at a time, so a new task can wait behind earlier ones. Subscriptions that fail validation at this stage are left out. If the import would exceed your Stigg plan’s subscription limits, the whole task fails and none of its subscriptions are created.
  4. Stigg recalculates each imported customer’s entitlements in a separate background step, then updates its cache and connected SDKs.
Between stages 2 and 4, the customer exists in Stigg but has no subscription or entitlements yet. Subscription lookups return no subscription, and entitlement checks deny access. Fallback entitlements don’t cover this gap. The SDK applies them only when it can’t reach Stigg, and it answers a customer with no entitlement with no access.

Expected duration

Small imports usually finish within minutes. Duration depends on how many tasks are already queued in the environment, so a migration that sends hundreds of import requests in a short window can take several hours to finish processing.

Tracking subscription imports

The API doesn’t expose import task status, and imported subscriptions don’t trigger subscription.created webhooks. Use these signals instead: A task can finish with some subscriptions left out, or fail as a whole, without any signal to your application. Verify the results as described in best practices, and keep every taskId you receive so Stigg support can look up a task’s progress and the subscriptions it left out or skipped.

Best practices

  • Import a customer before importing that customer’s subscriptions, and wait for the customer import request to succeed first. Stigg leaves out subscriptions for missing customers without returning an error.
  • Run the full import in a development environment first and time it. Use that time to plan the production import window.
  • Keep your existing system as the source of truth for access until the import is verified. Only switch a customer’s entitlement checks and subscription lookups to Stigg once that customer’s imported subscription appears in Stigg, so customers keep access while the import is processed.
  • After the import finishes, compare subscription counts per plan in Stigg against your existing system, and re-import any subscriptions that are missing.
  • Contact Stigg support before importing a large volume of subscriptions into production. The team can plan for the load and issue a dedicated API key, so the import doesn’t count against your production rate limits.

Re-importing subscriptions

You can safely send the same subscription more than once. Stigg compares each imported subscription with the customer’s active subscription for the same resource (or with no resource). Billing period, billing ID, and end date are compared only when you send them.