LyricPatch Checkout API

The Checkout API from LyricPatch — 2 operation(s) for checkout.

GitHub OpenAPI

Operations 2

POST /v1/checkout Checkout #
GET /v1/checkout/{checkout_session_id} Checkout Status #

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/lyricpatch-com:lyricpatch-com-checkout-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

lyricpatch-com-checkout-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: LyricPatch Checkout API
  version: 0.1.0
tags:
- name: Checkout
paths:
  /v1/checkout:
    post:
      summary: Checkout
      operationId: checkout_v1_checkout_post
      security:
      - HTTPBearer: []
      parameters:
      - name: x-dev-user-id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Dev-User-Id
      - name: x-dev-email
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Dev-Email
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CheckoutRequest'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CheckoutResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Checkout
  /v1/checkout/{checkout_session_id}:
    get:
      summary: Checkout Status
      operationId: checkout_status_v1_checkout__checkout_session_id__get
      security:
      - HTTPBearer: []
      parameters:
      - name: checkout_session_id
        in: path
        required: true
        schema:
          type: string
          title: Checkout Session Id
      - name: x-dev-user-id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Dev-User-Id
      - name: x-dev-email
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Dev-Email
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CheckoutStatusResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Checkout
components:
  schemas:
    CheckoutResponse:
      properties:
        checkout_url:
          type: string
          title: Checkout Url
        session_id:
          type: string
          title: Session Id
      type: object
      required:
      - checkout_url
      - session_id
      title: CheckoutResponse
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    CheckoutStatusResponse:
      properties:
        session_id:
          type: string
          title: Session Id
        status:
          type: string
          enum:
          - pending
          - paid
          - failed
          - refunded
          - disputed
          title: Status
        pack_id:
          anyOf:
          - type: string
            enum:
            - credits_40
            - credits_100
            - credits_400
            - credits_1000
          - type: 'null'
          title: Pack Id
        credits:
          type: integer
          minimum: 0.0
          title: Credits
        amount_cents:
          anyOf:
          - type: integer
            minimum: 0.0
          - type: 'null'
          title: Amount Cents
        currency:
          anyOf:
          - type: string
            const: USD
          - type: 'null'
          title: Currency
        conversion_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Conversion Id
      type: object
      required:
      - session_id
      - status
      - pack_id
      - credits
      title: CheckoutStatusResponse
    CheckoutRequest:
      properties:
        pack_id:
          type: string
          enum:
          - credits_40
          - credits_100
          - credits_400
          - credits_1000
          title: Pack Id
        turnstile_token:
          type: string
          maxLength: 4096
          minLength: 1
          title: Turnstile Token
        meta_context:
          anyOf:
          - type: string
            maxLength: 5000
          - type: 'null'
          title: Meta Context
        journey_session_id:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Journey Session Id
        journey_consent:
          type: boolean
          title: Journey Consent
          default: false
      type: object
      required:
      - pack_id
      - turnstile_token
      title: CheckoutRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer