> ## Documentation Index
> Fetch the complete documentation index at: https://docs.locusmedical.fr/llms.txt
> Use this file to discover all available pages before exploring further.

# Ouvrir un Checkout Stripe (pack ou abonnement)

> Rend l'URL d'une session Checkout hébergée par Stripe — rediriger le navigateur dessus, aucune donnée de carte ne transite par nous. `pack` crédite au `checkout.session.completed` ; `sub` crédite à CHAQUE `invoice.paid` (la première période comme les renouvellements).



## OpenAPI

````yaml /openapi.json post /v2/billing/checkout
openapi: 3.1.0
info:
  title: Locus API
  description: >-
    Locus knowledge layer — REST over a clinical knowledge graph.


    Two categories of surface:

    - **query** (read) — `/v2/retrieve` and `/v2/retrieve/stream`
    (knowledge-graph retrieval, MKF 0.1.3), `/v2/drugs/*` (the full text of an
    SmPC section a retrieval truncated) and `/v2/feedback` (a thumb on a traced
    answer);

    - **ops** — `/health`.


    The write plane (PDF → Neo4j graph: ingest, summarize, MKU extraction) is
    NOT exposed over HTTP — it is a batch pipeline driven by the `locus` CLI,
    which runs where the source PDFs are.
  version: 0.5.0
servers:
  - url: https://core.locusmedical.fr
    description: Production
security: []
paths:
  /v2/billing/checkout:
    post:
      tags:
        - query
      summary: Ouvrir un Checkout Stripe (pack ou abonnement)
      description: >-
        Rend l'URL d'une session Checkout hébergée par Stripe — rediriger le
        navigateur dessus, aucune donnée de carte ne transite par nous. `pack`
        crédite au `checkout.session.completed` ; `sub` crédite à CHAQUE
        `invoice.paid` (la première période comme les renouvellements).
      operationId: create_checkout_v2_billing_checkout_post
      parameters:
        - name: X-Locus-User-Ref
          in: header
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 200
            description: >-
              Le compte, tel que l'intégrateur le nomme — pour l'app Locus,
              l'identifiant Clerk. Affirmé par l'intégrateur, qui en répond ;
              core ne peut pas le vérifier et cloisonne dessus.
            title: X-Locus-User-Ref
          description: >-
            Le compte, tel que l'intégrateur le nomme — pour l'app Locus,
            l'identifiant Clerk. Affirmé par l'intégrateur, qui en répond ; core
            ne peut pas le vérifier et cloisonne dessus.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CheckoutRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingUrl'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - lsk: []
components:
  schemas:
    CheckoutRequest:
      properties:
        offer:
          type: string
          enum:
            - pack
            - sub
          title: Offer
      type: object
      required:
        - offer
      title: CheckoutRequest
    BillingUrl:
      properties:
        url:
          type: string
          title: Url
      type: object
      required:
        - url
      title: BillingUrl
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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
  securitySchemes:
    lsk:
      type: http
      description: Locus API key — paste the raw `lsk_…` value (no 'Bearer ' prefix).
      scheme: bearer

````