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.
openapi: 3.2.0
info:
title: AcuiQ Checkout API
version: 2.1.0
description: 'Acupuncture protocol matching API. Search symptoms, browse meridians, find treatment protocols and search the reference wiki – no account and no API key. Two bulk exports carry a per-request charge over MPP (Machine Payments Protocol), paid through Stripe; every per-query endpoint is free. Licence scope: AcuiQ-authored prose (symptom and meridian descriptions, the wiki, the auricular crosswalk) is licensed CC-BY-4.0: https://creativecommons.org/licenses/by/4.0/. The assembled protocol compilation is not: build on it with attribution, but do not redistribute it whole as a dataset – https://acuiq.com/terms. The underlying findings are the cited sources'' claims – each entry carries its citation; verify against the source before relying on it. Not medical advice: https://acuiq.com/terms'
contact:
name: AcuiQ
url: https://acuiq.com
license:
name: Creative Commons Attribution 4.0 International
identifier: CC-BY-4.0
servers:
- url: https://acuiq.com
description: Production
tags:
- name: Checkout
paths:
/api/checkout:
post:
operationId: createCheckout
summary: Create a Stripe checkout session
description: Initiates a purchase of one AcuiQ product. Agents should prefer the create_checkout MCP tool, which wraps this handler and returns the Checkout URL for a human to complete.
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- product
properties:
product:
type: string
enum:
- press-needles
- treatment-guide
- practitioner-edition
- point-reference
- atlas-charts
- corpus-licence
- mini-headache
- mini-back
- mini-neck-joints
- mini-sleep-mood
- mini-digestion
- mini-ear-eye
- mini-skin-nerves
- mini-womens
- mini-heart
- mini-urinary
description: Product to purchase
quantity:
type: integer
minimum: 1
maximum: 20
default: 1
description: Quantity (physical products only; a digital product is always 1)
source:
type: string
description: 'Optional: the page path the buyer came from, recorded in the session metadata so the sale can be attributed. Never personal data.'
responses:
'200':
description: Checkout session URL
content:
application/json:
schema:
type: object
properties:
data:
type: object
properties:
url:
type: string
format: uri
nullable: true
sessionId:
type: string
description: Stripe Checkout session id; pass to the get_order MCP tool to confirm payment and retrieve the delivery link
'400':
description: Invalid product
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
tags:
- Checkout
components:
schemas:
ErrorResponse:
type: object
properties:
error:
type: string
code:
type: string
enum:
- RATE_LIMITED
- INVALID_PARAMS
- NOT_FOUND
- SERVICE_ERROR
- PAYMENT_REQUIRED
required:
- error
securitySchemes:
payment:
type: http
scheme: Payment
description: 'MPP (Machine Payments Protocol) (https://mpp.dev), method "stripe", paid with a Stripe shared payment token (SPT), single use scoped to Stripe profile profile_61VcHMvCI7idwYC2zA6VcHMv8oE9roGsBkZRtDHSi0ng. Request the resource without it, answer the WWW-Authenticate challenge from the 402, and retry with Authorization: Payment. Only the two bulk exports use this; everything else on this spec is free and anonymous.'