Stay AI Subscriptions API

The Subscriptions API from Stay AI — 9 operation(s) for subscriptions.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).
Business capability
Subscription Lifecycle Management BC-4240

Operations 9

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /subscriptions List customer subscriptions · Query All Subscriptions #
Ask an LLM
“Which of my subscribers have paused or cancelled?”
“Can I list subscriptions created within a date range?”
Tell an agent
List subscriptions with status {status}.
Show subscriptions created between {createdAtMin} and {createdAtMax}.
GET /subscriptions/{subscriptionId} Get a subscription · Query Subscription by ID #
Ask an LLM
“What are the details of one subscription?”
“Can I look up a subscription by its ID?”
Tell an agent
Get subscription {subscriptionId}.
Show the details of subscription {subscriptionId}.
POST /subscriptions/{subscriptionId}/cancel Cancel a subscription · Cancel Subscription #
Ask an LLM
“How do I cancel a customer's subscription?”
“Can I record reasons when cancelling a subscription?”
Tell an agent destructive · confirm first
Cancel subscription {subscriptionId}.
Cancel subscription {subscriptionId} with reasons {cancellationReasons}.
POST /subscriptions/{subscriptionId}/change-frequency Change a subscription's frequency · Change Frequency #
Ask an LLM
“Can I switch a subscription to a different billing frequency?”
“How do I change how often a subscription charges?”
Tell an agent
Change the frequency of subscription {subscriptionId}.
Switch subscription {subscriptionId} to a new billing frequency.
PUT /subscriptions/{subscriptionId}/lines/{lineId} Update a subscription line · Update Line #
Ask an LLM
“Can I change the product or quantity on a subscription line?”
“How do I edit one item in a subscription?”
Tell an agent
Update line {lineId} on subscription {subscriptionId}.
Change the product on line {lineId} of subscription {subscriptionId}.
POST /subscriptions/{subscriptionId}/remove-lines Remove lines from a subscription · Remove Lines #
Ask an LLM
“How do I remove items from a subscription?”
“Can I delete lines from a subscription without cancelling it?”
Tell an agent destructive · confirm first
Remove lines from subscription {subscriptionId}.
Delete items on subscription {subscriptionId}.
PUT /subscriptions/{subscriptionId}/order-notes Update a subscription's order notes · Update Order Notes #
Ask an LLM
“Can I add notes to a subscription's order?”
“How do I update order notes on a subscription?”
Tell an agent
Update the order notes on subscription {subscriptionId}.
Add notes to the order for subscription {subscriptionId}.
POST /subscriptions/{subscriptionId}/meta-data Add a meta data field to a subscription · Add Meta Data Field #
Ask an LLM
“Can I attach custom metadata to a subscription?”
“How do I store extra data on a subscription?”
Tell an agent
Add a meta data field to subscription {subscriptionId}.
Attach custom metadata to subscription {subscriptionId}.
POST /subscriptions/{subscriptionId}/set-shipping-address Set a subscription's shipping address · Set Shipping Address #
Ask an LLM
“How do I change the shipping address on a subscription?”
“Can I update a subscription's delivery address?”
Tell an agent
Set the shipping address on subscription {subscriptionId}.
Change the delivery address for subscription {subscriptionId}.

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/stay-ai:stay-ai-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

stay-ai-subscriptions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Stay AI Subscriptions API
  version: '2.0'
  description: Documented public REST API for Stay AI (formerly Retextion), a subscription retention and growth platform for Shopify DTC brands. All endpoints are authenticated with an API key sent in the X-RETEXTION-ACCESS-TOKEN header. Paths, methods, and query/path parameters are taken from the Stay AI developer documentation at https://docs.stay.ai; request and response body schemas are simplified representations - consult the live reference for full payload details.
  contact:
    name: Stay AI
    url: https://docs.stay.ai
servers:
- url: https://api.retextion.com/api/v2
security:
- accessToken: []
tags:
- name: Subscriptions
paths:
  /subscriptions:
    get:
      operationId: query-all-subscriptions
      summary: Query All Subscriptions
      tags:
      - Subscriptions
      parameters:
      - name: email
        in: query
        description: Customer email
        schema:
          type: string
      - name: status
        in: query
        description: Subscription status (ACTIVE or PAUSED or CANCELLED)
        schema:
          type: string
      - name: createdAtMin
        in: query
        description: Created date min timestamp
        schema:
          type: integer
          format: int64
      - name: createdAtMax
        in: query
        description: Created date max timestamp
        schema:
          type: integer
          format: int64
      responses:
        '200':
          description: A list of subscriptions
  /subscriptions/{subscriptionId}:
    get:
      operationId: query-subscription-by-id
      summary: Query Subscription by ID
      tags:
      - Subscriptions
      parameters:
      - name: subscriptionId
        in: path
        required: true
        description: Internal or external subscription ID
        schema:
          type: string
      responses:
        '200':
          description: The requested subscription
  /subscriptions/{subscriptionId}/cancel:
    post:
      operationId: cancel-subscription
      summary: Cancel Subscription
      tags:
      - Subscriptions
      parameters:
      - name: subscriptionId
        in: path
        required: true
        description: Internal or external subscription ID
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                cancellationReasons:
                  type: array
                  description: A list of reasons for cancellation of the subscription
                  items:
                    type: string
      responses:
        '200':
          description: Cancellation result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Success'
  /subscriptions/{subscriptionId}/change-frequency:
    post:
      operationId: change-frequency
      summary: Change Frequency
      tags:
      - Subscriptions
      parameters:
      - name: subscriptionId
        in: path
        required: true
        description: Internal or external subscription ID
        schema:
          type: string
      responses:
        '200':
          description: Frequency updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Success'
  /subscriptions/{subscriptionId}/lines/{lineId}:
    put:
      operationId: update-line
      summary: Update Line
      tags:
      - Subscriptions
      parameters:
      - name: subscriptionId
        in: path
        required: true
        schema:
          type: string
      - name: lineId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Line item updated
  /subscriptions/{subscriptionId}/remove-lines:
    post:
      operationId: remove-lines
      summary: Remove Lines
      tags:
      - Subscriptions
      parameters:
      - name: subscriptionId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Line items removed
  /subscriptions/{subscriptionId}/order-notes:
    put:
      operationId: update-order-notes
      summary: Update Order Notes
      tags:
      - Subscriptions
      parameters:
      - name: subscriptionId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Order notes updated
  /subscriptions/{subscriptionId}/meta-data:
    post:
      operationId: add-meta-data
      summary: Add Meta Data Field
      tags:
      - Subscriptions
      parameters:
      - name: subscriptionId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Metadata field added
  /subscriptions/{subscriptionId}/set-shipping-address:
    post:
      operationId: set-shipping-address
      summary: Set Shipping Address
      tags:
      - Subscriptions
      parameters:
      - name: subscriptionId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Shipping address updated
components:
  schemas:
    Success:
      type: object
      properties:
        success:
          type: boolean
  securitySchemes:
    accessToken:
      type: apiKey
      in: header
      name: X-RETEXTION-ACCESS-TOKEN