SubscriptionsExperimental
Start a profile subscription
One pending, active or suspended subscription is permitted per profile. The eSIM must not be suspended or terminated.
The subscription is returned pending, with no period or packages. It starts once the eSIM has network service, typically shortly after creation, or later, for example after a port-in completes. subscription.created confirms acceptance; subscription.activated confirms the start with the first period and its package orders. Read the subscription or consume subscription.activated to observe the start.
Package references remain stable across retries. The package.created webhook confirms each order; package.activated confirms its complete provisioning.
/profiles/{profileReference}/subscriptionsAuthorization
Authorization: Bearer {token} — an OAuth2 access token from the client-credentials flow. How authentication works
Path parameters
profileReferencestringrequiredProfile reference
Headers
X-Idempotency-KeystringOptional idempotency key for requests that change state. If provided, duplicate requests with the same key within 48 hours will return the cached original response without duplicating side effects.
Behavior:
- Same key + same method, path and request body → returns cached response (prevents duplicate operations)
- Same key + different method, path or request body → returns 422 error
- Same key + in-flight request → returns 423 error
- Keys are held for at least 48 hours; use a fresh key for every new request
Request Body Matching: Request bodies are compared by their JSON content. Object key order, including in nested objects, and whitespace do not affect matching. This means:
{"a":1,"b":2}and{"b":2,"a":1}are treated as identical ✓- Whitespace differences are ignored ✓
- The method and the full path, query included, must match as well; headers are not compared
Best Practices:
- Use UUIDs or client-generated unique strings
- Store keys on your side to support retries
- Don't reuse keys across different operations
Request body
application/json · required
subscriptionPlanReferencestringrequiredSubscription-plan reference.
esimReferencestringrequiredeSIM reference
Responses
200Current post-mutation subscription stateapplication/jsonShow response bodyHide response body
dataobjectShow propertiesHide properties
subscriptionReferencestringSubscription reference, stable across plan changes.
profileReferencestringProfile reference
esimReferencestringeSIM reference
subscriptionPlanReferencestringSubscription-plan reference.
statusstringpending until the eSIM has network service; a pending subscription has no period or packages.
pendingactivesuspendedterminatedstartedAtstring | null · date-timeStart of the first period; null while the subscription has not started.
lastRenewedAtstring · date-timeoptionalLast calendar renewal processing time; omitted before the first renewal and unchanged by plan changes.
nextRenewalAtstring | null · date-timeNull while the subscription is pending or suspended and once it is terminated.
terminatedAtstring · date-timeoptionalcurrentPeriodobject | nullNull while the subscription has not started.
Show propertiesHide properties
periodNumberintegersubscriptionPlanReferencestringSubscription-plan reference.
revisionintegerstartsAtstring · date-timeendsAtstring · date-timescheduledActionsarray of SubscriptionScheduledActionPending actions ordered by effectiveAt; empty when no actions are pending.
Show propertiesHide properties
actionReferencestring · uuidReference of a scheduled subscription action.
actionstringsuspendresumeterminatechange_planeffectiveAtstring · date-timecreatedAtstring · date-timesubscriptionPlanReferencestringoptionalSubscription-plan reference.
400Bad request - invalid parameters401Unauthorized - missing or invalid API key404Resource not found409The profile already has a subscription that is not terminated (`conflict`), the eSIM is suspended (`esim_suspended`), or its lifecycle doesn't allow a subscription, such as a terminated eSIM (`invalid_state_transition`).