soeru PDF API

The PDF API from soeru — 7 operation(s) for pdf.

GitHub OpenAPI

Operations 7

POST /api/pdf/generate Generate Pdf #
POST /api/pdf/generate-batch Generate Batch #
POST /api/pdf/generate-slip Generate Slip #
POST /api/pdf/preview Preview Pdf #
POST /api/pdf/regenerate-from-history Regenerate From History #
GET /api/pdf/templates List Templates #
POST /api/pdf/templates/apply Apply Template #

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/soeru-biz:soeru-biz-pdf-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

soeru-biz-pdf-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: soeru PDF API
  description: AIパーソナライズ明細書メッセージ自動生成SaaS
  version: 0.1.0
tags:
- name: PDF
paths:
  /api/pdf/generate:
    post:
      tags:
      - PDF
      summary: Generate Pdf
      description: Generate a single message card PDF (legacy).
      operationId: generate_pdf_api_pdf_generate_post
      parameters:
      - name: x-shop-id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Optional shop ID
          title: X-Shop-Id
        description: Optional shop ID
      - name: authorization
        in: header
        required: true
        schema:
          type: string
          description: Bearer <token>
          title: Authorization
        description: Bearer <token>
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PdfSingleRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/pdf/generate-batch:
    post:
      tags:
      - PDF
      summary: Generate Batch
      description: Generate a multi-page message card PDF (legacy).
      operationId: generate_batch_api_pdf_generate_batch_post
      parameters:
      - name: x-shop-id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Optional shop ID
          title: X-Shop-Id
        description: Optional shop ID
      - name: authorization
        in: header
        required: true
        schema:
          type: string
          description: Bearer <token>
          title: Authorization
        description: Bearer <token>
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PdfBatchRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/pdf/generate-slip:
    post:
      tags:
      - PDF
      summary: Generate Slip
      description: 'Generate packing slip PDFs (明細書).


        メッセージカード単体 PDF は 2026-04-22 に廃止。本エンドポイントは

        full_slip のみを扱う (Literal で担保)。


        Rate limit: 20 requests per minute per user.'
      operationId: generate_slip_api_pdf_generate_slip_post
      parameters:
      - name: x-shop-id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Optional shop ID
          title: X-Shop-Id
        description: Optional shop ID
      - name: authorization
        in: header
        required: true
        schema:
          type: string
          description: Bearer <token>
          title: Authorization
        description: Bearer <token>
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FullSlipRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/pdf/preview:
    post:
      tags:
      - PDF
      summary: Preview Pdf
      description: Generate a PDF preview and return as base64.
      operationId: preview_pdf_api_pdf_preview_post
      parameters:
      - name: x-shop-id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Optional shop ID
          title: X-Shop-Id
        description: Optional shop ID
      - name: authorization
        in: header
        required: true
        schema:
          type: string
          description: Bearer <token>
          title: Authorization
        description: Bearer <token>
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PdfSingleRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/pdf/regenerate-from-history:
    post:
      tags:
      - PDF
      summary: Regenerate From History
      description: 'Re-generate a PDF from a saved message in history.


        Looks up the message text from message_history and the order details

        from order_history.order_data JSONB. No AI API call needed.'
      operationId: regenerate_from_history_api_pdf_regenerate_from_history_post
      parameters:
      - name: x-shop-id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Optional shop ID
          title: X-Shop-Id
        description: Optional shop ID
      - name: authorization
        in: header
        required: true
        schema:
          type: string
          description: Bearer <token>
          title: Authorization
        description: Bearer <token>
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RegenerateFromHistoryRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/pdf/templates:
    get:
      tags:
      - PDF
      summary: List Templates
      description: List all available slip design templates.
      operationId: list_templates_api_pdf_templates_get
      parameters:
      - name: x-shop-id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Optional shop ID
          title: X-Shop-Id
        description: Optional shop ID
      - name: authorization
        in: header
        required: true
        schema:
          type: string
          description: Bearer <token>
          title: Authorization
        description: Bearer <token>
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/pdf/templates/apply:
    post:
      tags:
      - PDF
      summary: Apply Template
      description: Apply a design template to the shop's slip settings.
      operationId: apply_template_api_pdf_templates_apply_post
      parameters:
      - name: x-shop-id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Optional shop ID
          title: X-Shop-Id
        description: Optional shop ID
      - name: authorization
        in: header
        required: true
        schema:
          type: string
          description: Bearer <token>
          title: Authorization
        description: Bearer <token>
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ApplyTemplateRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ApplyTemplateRequest:
      properties:
        template_id:
          type: string
          title: Template Id
      type: object
      required:
      - template_id
      title: ApplyTemplateRequest
    PdfSingleRequest:
      properties:
        message_id:
          type: string
          title: Message Id
        customer_name:
          type: string
          title: Customer Name
        message:
          type: string
          title: Message
      type: object
      required:
      - message_id
      - customer_name
      - message
      title: PdfSingleRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PdfBatchRequest:
      properties:
        messages:
          items:
            $ref: '#/components/schemas/PdfSingleRequest'
          type: array
          title: Messages
      type: object
      required:
      - messages
      title: PdfBatchRequest
    RegenerateFromHistoryRequest:
      properties:
        message_id:
          type: string
          title: Message Id
        output_mode:
          type: string
          const: full_slip
          title: Output Mode
          default: full_slip
      type: object
      required:
      - message_id
      title: RegenerateFromHistoryRequest
      description: 'Request to re-generate PDF from message history.


        output_mode は Literal["full_slip"] のみ許容 (2026-04-22 メッセージカード廃止)。

        order_data に items / delivery が欠けているレガシー注文については、

        backend が内部的に generate_batch_pdf (カード PDF) にフォールバックするが、

        UI からは選択不可。'
    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
    FullSlipRequest:
      properties:
        output_mode:
          type: string
          const: full_slip
          title: Output Mode
          default: full_slip
        orders:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Orders
      type: object
      required:
      - orders
      title: FullSlipRequest
      description: 'Request for full packing slip PDF (明細書).


        メッセージカード単体 PDF は 2026-04-22 に UI から削除したため、

        output_mode は現在 "full_slip" のみ受け付ける (後方互換のため

        Literal で残している)。'