---
title: "Create in app subscriptions"
method: POST
path: "/api/v5/InApp Subscriptions/app-store"
tags: ["InApp Subscriptions"]
---

# Create in app subscriptions

`POST /api/v5/InApp Subscriptions/app-store`

## Request

- Base URL: `https://api.pavlok.com`
- URL: `https://api.pavlok.com/api/v5/InApp Subscriptions/app-store`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/pavlok/apis/pavlok-api-v5/docs/api/v5/InApp%20Subscriptions/app-store/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- BodyInAppSubscriptionAppStoreCreateApiV5InAppSubscriptionsAppStorePost
  - `in_app_subscription` AppStoreInAppSubscriptionInCreate, required: Apple app store in app subscription
    - `receiptData` string, required

## Response `201`

Successful Response

- InAppSubscriptionInResponse
  - `inAppSubscription` InAppSubscription, required
    - `createdAt` string, date-time
    - `updatedAt` string, date-time
    - `deletedAt` string, date-time
    - `id` integer
    - `os` string, required
    - `purchaseToken` string
    - `productId` string
    - `packageName` string
    - `receiptData` string
    - `newProductId` string
    - `subscriptionGroup` string
    - `secretKey` string
    - `userId` integer
    - `userEmail` string
    - `expiryDate` string, date-time
    - `purchaseDate` string, date-time
    - `lastCheckedAt` string, date-time
    - `lastCheckedStatus` string
    - `statusCode` string
    - `errorMessage` string

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pavlok/apis/pavlok-api-v5.md) - [All operations](https://skmtc.dev/pavlok/apis/pavlok-api-v5/llms.txt) - [OpenAPI document](https://skmtc.dev/pavlok/apis/pavlok-api-v5/revisions/3d192098b1ac?raw)
