soeru B2B Documents API
The B2B Documents API from soeru — 3 operation(s) for b2b documents.
The B2B Documents API from soeru — 3 operation(s) for b2b documents.
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/soeru-biz:soeru-biz-b2b-documents-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: soeru B2B Documents API
description: AIパーソナライズ明細書メッセージ自動生成SaaS
version: 0.1.0
tags:
- name: B2B Documents
paths:
/api/b2b/settings:
get:
tags:
- B2B Documents
summary: Get B2B Settings
description: Get current B2B settings for the shop.
operationId: get_b2b_settings_api_b2b_settings_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'
put:
tags:
- B2B Documents
summary: Update B2B Settings
description: Update B2B settings.
operationId: update_b2b_settings_api_b2b_settings_put
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/B2BSettingsUpdate'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/b2b/generate:
post:
tags:
- B2B Documents
summary: Generate B2B Documents
description: '一般注文と卸注文が混在した選択を、1本のPDFにまとめて出力する。
ハイブリッド運用 (2026-08-03):
B2B帳票機能を ON にしているショップでも、出荷キューには一般消費者の注文が
普通に並ぶ。ここでは注文ごとに卸かどうかを DB から確定させ、卸だけを法人
書式 (納品書/請求書/…) に回し、一般のお客様には従来の明細書を出す。
Rate limit: 20 requests per minute per user.'
operationId: generate_b2b_documents_api_b2b_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/B2BDocumentRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/b2b/preview:
post:
tags:
- B2B Documents
summary: Preview B2B Document
description: 'Generate a preview (base64) of a B2B document.
Typically called with a single order and single document_type for preview.'
operationId: preview_b2b_document_api_b2b_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/B2BDocumentRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
BankTransferInfo:
properties:
bank_name:
type: string
title: Bank Name
default: ''
branch_name:
type: string
title: Branch Name
default: ''
account_type:
type: string
enum:
- 普通
- 当座
title: Account Type
default: 普通
account_number:
type: string
title: Account Number
default: ''
account_holder:
type: string
title: Account Holder
default: ''
type: object
title: BankTransferInfo
description: 振込先情報
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
B2BSettingsUpdate:
properties:
shopify_b2b_enabled:
anyOf:
- type: boolean
- type: 'null'
title: Shopify B2B Enabled
shopify_b2b_ai_message:
anyOf:
- type: boolean
- type: 'null'
title: Shopify B2B Ai Message
invoice_registration_number:
anyOf:
- type: string
- type: 'null'
title: Invoice Registration Number
invoice_payment_terms:
anyOf:
- type: string
- type: 'null'
title: Invoice Payment Terms
invoice_notes:
anyOf:
- type: string
- type: 'null'
title: Invoice Notes
stamp_image:
anyOf:
- type: string
- type: 'null'
title: Stamp Image
stamp_width_cm:
anyOf:
- type: number
- type: 'null'
title: Stamp Width Cm
stamp_position_top_cm:
anyOf:
- type: number
- type: 'null'
title: Stamp Position Top Cm
stamp_position_right_cm:
anyOf:
- type: number
- type: 'null'
title: Stamp Position Right Cm
bank_transfer_info:
anyOf:
- $ref: '#/components/schemas/BankTransferInfo'
- type: 'null'
b2b_addressee_format:
anyOf:
- type: string
enum:
- company_name_御中
- company_name_person_様
- person_様
- type: 'null'
title: B2B Addressee Format
quotation_validity_days:
anyOf:
- type: integer
- type: 'null'
title: Quotation Validity Days
type: object
title: B2BSettingsUpdate
description: B2B設定更新リクエスト
B2BDocumentRequest:
properties:
document_types:
items:
type: string
enum:
- packing_slip
- invoice
- receipt
- quotation
type: array
title: Document Types
description: グローバルの帳票タイプ(注文別指定がない場合のフォールバック)
default:
- packing_slip
orders:
items:
additionalProperties: true
type: object
type: array
minItems: 1
title: Orders
description: 注文データ配列。各注文は document_types を含めることが可能
include_ai_message:
anyOf:
- type: boolean
- type: 'null'
title: Include Ai Message
type: object
required:
- orders
title: B2BDocumentRequest
description: 'B2B帳票生成リクエスト — 注文別帳票タイプ選択対応.
orders: 注文データ配列。各注文は document_types フィールドを含めることが可能。
document_types: グローバルのフォールバック(注文に個別指定がない場合に使用)
include_ai_message: AIメッセージを含めるか(設定のオーバーライド用)'
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