Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

ZeroSettle User Offer API

Unified offer + subscription-state resolver (SDK 1.2+)

ZeroSettle User Offer API is one of 12 APIs that ZeroSettle publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include User Offer. The published artifact set on APIs.io includes an OpenAPI specification.

This API exposes 1 operation across 1 path, and defines 12 schemas. It is described by OpenAPI 3.0.3, at version 1.0.0.

Requests are made against a single base URL, https://api.zerosettle.io/v1.

1 operations 1 paths 12 schemas 1 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
API Version
1.0.0
Base URL
https://api.zerosettle.io/v1
Authentication
API Key
Resource Areas
1

Authentication & Security 1

ZeroSettle User Offer API declares 1 security scheme for authenticating requests. An API key is passed in the header as X-ZeroSettle-Key (ApiKeyAuth). By default, every request must be authenticated.

  • ApiKeyAuth — Your publishable API key. Use zspktest for sandbox or zspklive for production.

Paths & Operations 1

Across 1 path, the API surfaces 1 operation — 1 GET. Each is listed below with its method, path, parameters, and response codes.

User Offer 1

Unified offer + subscription-state resolver (SDK 1.2+)

GET
/iap/user-offer
Get User Offer
getUserOffer 1 param → 200400401404

Schemas 12

The contract defines 12 schemas that model the data the API accepts and returns. The most detailed are OfferEligibility (13 properties), SubscriptionStateActiveWeb (10 properties), SubscriptionStateActiveStorekit (10 properties), SubscriptionStateMigrationTrial (9 properties). Each schema is shown below with its type and property counts.

SubscriptionStateActiveWeb
object
User has an active web-sourced subscription (may be in grace period, past due, or paused).
10 properties 7 required
SubscriptionStateCancelledActive
object
Subscription is cancelled but access remains until expiresat.
8 properties 5 required
SubscriptionStateMigrationTrial
object
Dual-active migration trial window: the user has a web subscription inside its free trial plus an overlapping StoreKit entitlement that has not yet expired.
9 properties 8 required
SubscriptionStateActiveStorekit
object
User has an active StoreKit-sourced subscription.
10 properties 8 required
UserOfferResponse
object
Canonical response from GET /iap/user-offer/. Wraps the user's current subscription state (as a tagged union keyed by subscription.type) together with exactly…
6 properties 6 required
UserOfferSubscription
Tagged-union describing the user's current subscription state. Discriminated by the type field. Exactly one variant is returned per request.
AppleSubscriptionSummary
object
Normalized view of the user's Apple (StoreKit) subscription. Present only when the user currently has — or recently had — a StoreKit entitlement. Clients shoul…
4 properties 3 required
SubscriptionStateNone
object
User has no active subscription entitlement from any source.
1 property 1 required
OfferProration
object
Stripe proration preview for web-to-web upgrades. Present only when actiontype is upgradewebtoweb.
3 properties 2 required
OfferEligibility
object
The offer decision. Exactly one actiontype is returned per user per request. iseligible is false iff actiontype is noaction.
13 properties 7 required
Error
object
Error response.
2 properties 1 required
OfferDisplayV2
object
Presentation copy for the user-offer card. Distinct from the legacy OfferDisplay schema used by /iap/products/ offer config — field names are simplified and th…
9 properties 8 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

zerosettle-user-offer-api-openapi.yml Raw ↑

Other APIs ZeroSettle publishes across the network.

ZeroSettle Cancel Flow API
ZeroSettle Checkout API
ZeroSettle Entitlements API
ZeroSettle Events API
ZeroSettle Migration API
ZeroSettle Products API
ZeroSettle Restore API
ZeroSettle StoreKit API
ZeroSettle Subscriptions API
ZeroSettle Transactions API
ZeroSettle Upgrade Offers API