StoreInspect Billing API
Read subscription state and create short-lived Stripe-hosted subscription or management links.
Read subscription state and create short-lived Stripe-hosted subscription or management links.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/storeinspect-com:storeinspect-com-billing-api"
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.
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: 3.2.0
info:
title: StoreInspect Billing API
version: 1.0.0
description: Database-backed Shopify store and contact intelligence API. Store and contact data require a paid StoreInspect plan; existing keys can still access billing recovery endpoints after paid access lapses.
servers:
- url: https://storeinspect.com/api/v1
tags:
- name: Billing
x-displayName: Billing
x-group: Billing
description: Read subscription state and create short-lived Stripe-hosted subscription or management links.
paths:
/billing/status:
get:
tags:
- Billing
operationId: getBillingStatus
x-route-path: /api/v1/billing/status
summary: Get billing status
description: Returns the current plan, subscription state, billing cadence, contact credits, and whether paid API access is active. Existing valid API keys can use this endpoint while billing is inactive.
security:
- bearerAuth: []
responses:
'200':
description: Current billing state for the API key owner.
content:
application/json:
schema:
$ref: '#/components/schemas/BillingStatusResponse'
'401':
description: Missing, invalid, revoked, or suspended API key.
'403':
description: The API key does not have billing:read.
'429':
description: Too many billing status requests.
/billing/subscription-link:
post:
tags:
- Billing
operationId: createSubscriptionLink
x-route-path: /api/v1/billing/subscription-link
summary: Create subscription link
description: Creates a short-lived Stripe-hosted paid Checkout, exact upgrade-confirmation, or billing-recovery link for the selected plan. API-created Checkout does not include a free trial. Creating the link never changes or charges the subscription; a human must open and confirm it in Stripe.
security:
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SubscriptionLinkRequest'
responses:
'200':
description: Short-lived Stripe-hosted billing link.
content:
application/json:
schema:
$ref: '#/components/schemas/BillingLinkResponse'
'400':
description: Invalid plan or billing cadence.
'401':
description: Missing, invalid, revoked, or suspended API key.
'403':
description: The API key does not have billing:manage.
'409':
description: The requested change is not a supported upgrade or billing state requires support.
'429':
description: Too many billing links were requested.
'503':
description: Stripe billing is temporarily unavailable.
/billing/portal-link:
post:
tags:
- Billing
operationId: createBillingPortalLink
x-route-path: /api/v1/billing/portal-link
summary: Create billing portal link
description: Creates a short-lived Stripe-hosted link for payment details, invoices, plan changes, and billing recovery. Creating the link does not itself change billing. To cancel, use Settings > Subscription in the StoreInspect dashboard.
security:
- bearerAuth: []
responses:
'200':
description: Short-lived Stripe-hosted billing portal link.
content:
application/json:
schema:
$ref: '#/components/schemas/BillingLinkResponse'
'401':
description: Missing, invalid, revoked, or suspended API key.
'403':
description: The API key does not have billing:manage.
'404':
description: The account does not have a Stripe billing account yet.
'429':
description: Too many billing links were requested.
'503':
description: Stripe billing is temporarily unavailable.
components:
schemas:
BillingStatusResponse:
type: object
properties:
object:
type: string
const: billing_status
plan:
type: object
properties:
slug:
type: string
enum:
- free
- pro
- business
- enterprise
name:
type: string
status:
type: string
billing:
type:
- string
- 'null'
enum:
- monthly
- annual
- null
trial:
type: object
properties:
active:
type: boolean
ends_at:
type:
- string
- 'null'
format: date-time
required:
- active
- ends_at
cancel_at_period_end:
type: boolean
current_period_end:
type:
- string
- 'null'
format: date-time
required:
- slug
- name
- status
- billing
- trial
- cancel_at_period_end
- current_period_end
api_access:
type: object
properties:
enabled:
type: boolean
required:
- enabled
contact_credits:
type: object
properties:
total:
type: integer
minimum: 0
used:
type: integer
minimum: 0
remaining:
type: integer
minimum: 0
required:
- total
- used
- remaining
has_billing_account:
type: boolean
actions:
type: object
properties:
can_create_subscription_link:
type: boolean
can_manage_billing:
type: boolean
required:
- can_create_subscription_link
- can_manage_billing
request_id:
type: string
required:
- object
- plan
- api_access
- contact_credits
- has_billing_account
- actions
- request_id
BillingLinkResponse:
type: object
properties:
object:
type: string
const: billing_link
kind:
type: string
enum:
- checkout
- subscription_update_confirm
- billing_portal
url:
type: string
format: uri
target_plan:
type:
- string
- 'null'
enum:
- pro
- business
- enterprise
- null
target_billing:
type:
- string
- 'null'
enum:
- monthly
- annual
- null
expires_at:
type:
- string
- 'null'
format: date-time
requires_customer_confirmation:
type: boolean
const: true
request_id:
type: string
required:
- object
- kind
- url
- target_plan
- target_billing
- expires_at
- requires_customer_confirmation
- request_id
SubscriptionLinkRequest:
type: object
additionalProperties: false
properties:
plan:
type: string
enum:
- pro
- business
- enterprise
billing:
type: string
enum:
- monthly
- annual
default: monthly
required:
- plan
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: StoreInspect API key