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

RevenueCat Purchases API

v1 receipt validation and transaction lifecycle operations.

RevenueCat Purchases API is one of 12 APIs that RevenueCat 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 3 operations across 3 paths, and defines 4 schemas. It is described by OpenAPI 3.0.1, at version 1.0.

Requests are made against 2 base URLs: https://api.revenuecat.com/v1, https://api.revenuecat.com/v2.

3 operations 3 paths 4 schemas 3 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.1
API Version
1.0
Base URL
https://api.revenuecat.com/v1
Authentication
HTTP Bearer
Terms of Service
Resource Areas
1

Authentication & Security 1

RevenueCat Purchases API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (bearerAuth).

  • bearerAuth — RevenueCat API key passed as an HTTP Bearer token. v1 accepts public (client) or secret (server) keys; v2 uses dedicated v2 API keys.

Paths & Operations 3

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

Purchases 3

v1 receipt validation and transaction lifecycle operations.

POST
/receipts
Create a purchase (validate a receipt)
createReceipt 1 param body → 200201
POST
/subscribers/{app_user_id}/transactions/{store_transaction_identifier}/refund
Refund a transaction
refundTransaction 2 params → 200
POST
/subscribers/{app_user_id}/subscriptions/{product_identifier}/defer
Defer a Google subscription
deferSubscription 2 params body → 200

Schemas 4

The contract defines 4 schemas that model the data the API accepts and returns. The most detailed are Subscriber (8 properties), ReceiptRequest (7 properties), EntitlementInfo (3 properties), SubscriberResponse (3 properties). Each schema is shown below with its type and property counts.

SubscriberResponse
object
3 properties
EntitlementInfo
object
3 properties
Subscriber
object
8 properties
ReceiptRequest
object
7 properties 2 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

revenuecat-purchases-api-openapi.yml Raw ↑

Other APIs RevenueCat publishes across the network.

RevenueCat Webhooks
RevenueCat Apps API
RevenueCat Customers API
RevenueCat Entitlements (v1) API
RevenueCat Entitlements (v2) API
RevenueCat Offerings (v1) API
RevenueCat Offerings (v2) API
RevenueCat Packages API
RevenueCat Products API
RevenueCat Projects API
RevenueCat Subscribers API