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

Adapty Purchases API

Set transactions and validate store/Stripe purchases.

Adapty Purchases API is one of 6 APIs that Adapty publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Purchases. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and an API reference.

This API exposes 2 operations across 2 paths, and defines 7 schemas. It is described by OpenAPI 3.0.3, at version 2.0.

Requests are made against a single base URL, https://api.adapty.io/api/v2/server-side-api.

2 operations 2 paths 7 schemas 2 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
API Version
2.0
Base URL
https://api.adapty.io/api/v2/server-side-api
Authentication
API Key
Terms of Service
Resource Areas
1

Authentication & Security 1

Adapty Purchases API declares 1 security scheme for authenticating requests. An API key is passed in the header as Authorization (ApiKeyAuth). By default, every request must be authenticated.

  • ApiKeyAuth — Secret API key passed as Authorization: Api-Key . Find your secret key in the Adapty dashboard under App Settings API keys.

Paths & Operations 2

Across 2 paths, the API surfaces 2 operations — 2 POST. Each is listed below with its method, path, parameters, and response codes.

Purchases 2

Set transactions and validate store/Stripe purchases.

POST
/purchase/set-transaction/
Set transaction
setTransaction 2 params body → 200
POST
/purchase/stripe/
Validate Stripe purchase and import transaction history
validateStripePurchase 2 params body → 200

Schemas 7

The contract defines 7 schemas that model the data the API accepts and returns. The most detailed are AccessLevel (8 properties), SetTransactionRequest (7 properties), Profile (7 properties), Subscription (7 properties). Each schema is shown below with its type and property counts.

Subscription
object
7 properties
AccessLevel
object
8 properties
ProfileResponse
object
1 property
Profile
object
7 properties
StripePurchaseRequest
object
3 properties 1 required
NonSubscription
object
6 properties
SetTransactionRequest
object
7 properties 3 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

adapty-purchases-api-openapi.yml Raw ↑

Other APIs Adapty publishes across the network.

Adapty Webhooks
Adapty Access Levels API
Adapty Integrations API
Adapty Paywalls API
Adapty Profiles API