ThaiProps Subscriptions API

The Subscriptions API from ThaiProps — 22 operation(s) for subscriptions.

GitHub OpenAPI

Operations 23

GET /v1/subscriptions/plans Subscription Plans #
POST /v1/subscriptions/promo-code/validate Validate Subscription Promo #
GET /v1/subscriptions/renewal-emails/unsubscribe Renewal Unsubscribe Confirm #
POST /v1/subscriptions/renewal-emails/unsubscribe Renewal Unsubscribe Submit #
GET /v1/subscriptions/me Subscription Me #
GET /v1/subscriptions/access-check Access Check #
POST /v1/subscriptions/checkout-session Create Checkout Session #
GET /v1/subscriptions/checkout-session-status Checkout Session Status #
POST /v1/subscriptions/consume-view Consume View #
POST /v1/subscriptions/stripe/webhook Stripe Webhook #
POST /v1/subscriptions/crypto/charge Crypto Charge #
GET /v1/subscriptions/crypto/charge-status Crypto Charge Status #
POST /v1/subscriptions/moonpay/webhook Moonpay Webhook #
GET /v1/subscriptions/topup-status Topup Status #
POST /v1/subscriptions/topup-checkout-session Topup Checkout Session #
GET /v1/subscriptions/topup-checkout-session-status Topup Checkout Session Status #
POST /v1/subscriptions/consume-topup-view Consume Topup View #
POST /v1/subscriptions/consume-admin-trial-view Consume Admin Trial View V214 #
GET /v1/subscriptions/ios/catalog Ios Subscription Catalog #
POST /v1/subscriptions/ios/revenuecat-webhook Ios Revenuecat Webhook #
GET /v1/subscriptions/catalog-unified Subscriptions Catalog Unified #
GET /v1/subscriptions/store/health Unified Store Health #
POST /v1/subscriptions/store/revenuecat-webhook Unified Revenuecat Webhook #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/thaiprops-com:thaiprops-com-subscriptions-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

thaiprops-com-subscriptions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ThaiProps Admin Subscriptions API
  version: 0.1.0
tags:
- name: Subscriptions
paths:
  /v1/subscriptions/plans:
    get:
      tags:
      - Subscriptions
      summary: Subscription Plans
      operationId: subscription_plans_v1_subscriptions_plans_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /v1/subscriptions/promo-code/validate:
    post:
      tags:
      - Subscriptions
      summary: Validate Subscription Promo
      operationId: validate_subscription_promo_v1_subscriptions_promo_code_validate_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PromoValidateBody'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/subscriptions/renewal-emails/unsubscribe:
    get:
      tags:
      - Subscriptions
      summary: Renewal Unsubscribe Confirm
      operationId: renewal_unsubscribe_confirm_v1_subscriptions_renewal_emails_unsubscribe_get
      parameters:
      - name: token
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Token
      responses:
        '200':
          description: Successful Response
          content:
            text/html:
              schema:
                type: string
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    post:
      tags:
      - Subscriptions
      summary: Renewal Unsubscribe Submit
      operationId: renewal_unsubscribe_submit_v1_subscriptions_renewal_emails_unsubscribe_post
      parameters:
      - name: token
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Token
      responses:
        '200':
          description: Successful Response
          content:
            text/html:
              schema:
                type: string
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/subscriptions/me:
    get:
      tags:
      - Subscriptions
      summary: Subscription Me
      operationId: subscription_me_v1_subscriptions_me_get
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/subscriptions/access-check:
    get:
      tags:
      - Subscriptions
      summary: Access Check
      description: 'Backend-authoritative access decision for a property.


        Frontend calls this BEFORE opening checkout. If checkout_required is

        false the frontend reveals or shows View instead of plans.'
      operationId: access_check_v1_subscriptions_access_check_get
      parameters:
      - name: property_id
        in: query
        required: false
        schema:
          type: integer
          default: 0
          title: Property Id
      - name: plan_code
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Plan Code
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/subscriptions/checkout-session:
    post:
      tags:
      - Subscriptions
      summary: Create Checkout Session
      operationId: create_checkout_session_v1_subscriptions_checkout_session_post
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CheckoutBody'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/subscriptions/checkout-session-status:
    get:
      tags:
      - Subscriptions
      summary: Checkout Session Status
      operationId: checkout_session_status_v1_subscriptions_checkout_session_status_get
      parameters:
      - name: session_id
        in: query
        required: true
        schema:
          type: string
          minLength: 10
          title: Session Id
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/subscriptions/consume-view:
    post:
      tags:
      - Subscriptions
      summary: Consume View
      operationId: consume_view_v1_subscriptions_consume_view_post
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConsumeViewBody'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/subscriptions/stripe/webhook:
    post:
      tags:
      - Subscriptions
      summary: Stripe Webhook
      operationId: stripe_webhook_v1_subscriptions_stripe_webhook_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /v1/subscriptions/crypto/charge:
    post:
      tags:
      - Subscriptions
      summary: Crypto Charge
      operationId: crypto_charge_v1_subscriptions_crypto_charge_post
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CryptoChargeBody'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/subscriptions/crypto/charge-status:
    get:
      tags:
      - Subscriptions
      summary: Crypto Charge Status
      operationId: crypto_charge_status_v1_subscriptions_crypto_charge_status_get
      parameters:
      - name: checkout_id
        in: query
        required: true
        schema:
          type: string
          minLength: 10
          title: Checkout Id
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/subscriptions/moonpay/webhook:
    post:
      tags:
      - Subscriptions
      summary: Moonpay Webhook
      operationId: moonpay_webhook_v1_subscriptions_moonpay_webhook_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /v1/subscriptions/topup-status:
    get:
      tags:
      - Subscriptions
      summary: Topup Status
      operationId: topup_status_v1_subscriptions_topup_status_get
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/subscriptions/topup-checkout-session:
    post:
      tags:
      - Subscriptions
      summary: Topup Checkout Session
      operationId: topup_checkout_session_v1_subscriptions_topup_checkout_session_post
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TopupCheckoutBody'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/subscriptions/topup-checkout-session-status:
    get:
      tags:
      - Subscriptions
      summary: Topup Checkout Session Status
      operationId: topup_checkout_session_status_v1_subscriptions_topup_checkout_session_status_get
      parameters:
      - name: session_id
        in: query
        required: true
        schema:
          type: string
          minLength: 10
          title: Session Id
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/subscriptions/consume-topup-view:
    post:
      tags:
      - Subscriptions
      summary: Consume Topup View
      operationId: consume_topup_view_v1_subscriptions_consume_topup_view_post
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConsumeViewBody'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/subscriptions/consume-admin-trial-view:
    post:
      tags:
      - Subscriptions
      summary: Consume Admin Trial View V214
      operationId: consume_admin_trial_view_v214_v1_subscriptions_consume_admin_trial_view_post
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConsumeViewBody'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/subscriptions/ios/catalog:
    get:
      tags:
      - Subscriptions
      summary: Ios Subscription Catalog
      operationId: ios_subscription_catalog_v1_subscriptions_ios_catalog_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /v1/subscriptions/ios/revenuecat-webhook:
    post:
      tags:
      - Subscriptions
      summary: Ios Revenuecat Webhook
      operationId: ios_revenuecat_webhook_v1_subscriptions_ios_revenuecat_webhook_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /v1/subscriptions/catalog-unified:
    get:
      tags:
      - Subscriptions
      summary: Subscriptions Catalog Unified
      operationId: subscriptions_catalog_unified_v1_subscriptions_catalog_unified_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /v1/subscriptions/store/health:
    get:
      tags:
      - Subscriptions
      summary: Unified Store Health
      operationId: unified_store_health_v1_subscriptions_store_health_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /v1/subscriptions/store/revenuecat-webhook:
    post:
      tags:
      - Subscriptions
      summary: Unified Revenuecat Webhook
      operationId: unified_revenuecat_webhook_v1_subscriptions_store_revenuecat_webhook_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
components:
  schemas:
    CheckoutBody:
      properties:
        plan_code:
          type: string
          title: Plan Code
        promo_code:
          anyOf:
          - type: string
          - type: 'null'
          title: Promo Code
        property_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Property Id
        source:
          anyOf:
          - type: string
          - type: 'null'
          title: Source
        success_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Success Url
        cancel_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Cancel Url
        return_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Return Url
        ui_mode:
          anyOf:
          - type: string
          - type: 'null'
          title: Ui Mode
      type: object
      required:
      - plan_code
      title: CheckoutBody
    TopupCheckoutBody:
      properties:
        ui_mode:
          anyOf:
          - type: string
          - type: 'null'
          title: Ui Mode
        return_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Return Url
        success_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Success Url
        cancel_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Cancel Url
        property_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Property Id
        source:
          anyOf:
          - type: string
          - type: 'null'
          title: Source
        product_code:
          anyOf:
          - type: string
          - type: 'null'
          title: Product Code
      type: object
      title: TopupCheckoutBody
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    CryptoChargeBody:
      properties:
        plan_key:
          type: string
          title: Plan Key
        promo_code:
          anyOf:
          - type: string
          - type: 'null'
          title: Promo Code
        property_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Property Id
      type: object
      required:
      - plan_key
      title: CryptoChargeBody
    PromoValidateBody:
      properties:
        plan_code:
          type: string
          title: Plan Code
        promo_code:
          type: string
          title: Promo Code
      type: object
      required:
      - plan_code
      - promo_code
      title: PromoValidateBody
    ConsumeViewBody:
      properties:
        property_id:
          type: integer
          title: Property Id
      type: object
      required:
      - property_id
      title: ConsumeViewBody
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError