# Cozeni Docs > Cozeni の販売者と、販売者の AI エージェント向けの開発者ドキュメント。 ## Docs - [Cozeni とは](https://docs.cozeni.net/): 自分のサイトやアプリを売り場に。決済の仕組みを自分で作らずに、デジタル商品やサブスクリプションをあなたのサイトで売ることができます。 ## 機能 - [商品](https://docs.cozeni.net/features/products): 販売するものと価格を登録する。 - [注文](https://docs.cozeni.net/features/orders): お客様の支払い1回分の記録。 - [返金](https://docs.cozeni.net/features/refunds): 購入を取り消して代金を戻す。 - [ホーム](https://docs.cozeni.net/features/dashboard): 管理画面のホームで、販売の準備と最近の動きを確かめる。 - [販売者アカウント](https://docs.cozeni.net/features/account): 管理画面へのサインイン、パスキー、2段階認証。 - [通知とメール](https://docs.cozeni.net/features/notifications): Cozeni から届くメールと、その設定。 - [購入者の入場とアクセス判定](https://docs.cozeni.net/features/customer-access): お客様がアカウントを作らずにコンテンツへ入るしくみ。 - [購入者ポータル](https://docs.cozeni.net/features/customer-portal): お客様が買ったものを開き直す画面。 - [売上の受け取り](https://docs.cozeni.net/features/payouts): 売上を受け取る口座を Stripe で登録する。 ### 商品の種類 - [商品の種類の概要](https://docs.cozeni.net/features/benefits): 商品ごとに1つ選ぶ、お客様に配布するもの。 - [購入者限定ページ](https://docs.cozeni.net/features/benefits/gated-page): 自分のサイトに限定ページを作る。 - [機能フラグ](https://docs.cozeni.net/features/benefits/feature-flags): 自分のアプリに限定機能を作る。 - [ファイル](https://docs.cozeni.net/features/benefits/file-downloads): 購入者ポータルでファイルを渡す。 ### 購入 - [購入リンク](https://docs.cozeni.net/features/checkout/links): 商品ごとに1本ある、購入画面を開くための URL。 - [購入画面の API](https://docs.cozeni.net/features/checkout/session): メールアドレスを固定した購入画面を、サーバーから作る。 - [支払い方法](https://docs.cozeni.net/features/checkout/payment-methods): 購入画面で使える支払い方法。 ## 組み込む - [認証](https://docs.cozeni.net/integrate/authentication): API キーと購入者の認証を使い分ける。 - [サンドボックス](https://docs.cozeni.net/integrate/sandbox): 実際の決済をせずに、組み込みを試す環境。 - [購入者の状態](https://docs.cozeni.net/integrate/customer-state): メールアドレスから、お客様に付いている機能フラグを照会する。 - [AI エージェントで組み込む](https://docs.cozeni.net/integrate/ai-agents): 導入プロンプトを AI エージェントに渡して、サイトに組み込ませる。 - [Webhook](https://docs.cozeni.net/integrate/webhooks): 購入や返金を自分のサーバーへ知らせる Webhook はまだ提供していません。 ### SDK - [SDK の概要](https://docs.cozeni.net/integrate/sdk): Cozeni の公式 SDK(JavaScript / TypeScript)。 - [JavaScript / TypeScript](https://docs.cozeni.net/integrate/sdk/javascript): フレームワークを問わずサーバーで使う SDK。 - [Next.js](https://docs.cozeni.net/integrate/sdk/nextjs): Next.js(App Router)用のヘルパー。 ### CLI - [CLI の概要](https://docs.cozeni.net/integrate/cli): ターミナルと AI エージェントから Cozeni を操作する `cozeni` コマンド。 - [ログイン](https://docs.cozeni.net/integrate/cli/authentication): ブラウザで承認して、CLI 用のキーを受け取る。 - [コマンド一覧](https://docs.cozeni.net/integrate/cli/reference): `cozeni` の全コマンドとオプション。 ### フレームワーク別ガイド - [Next.js に組み込む](https://docs.cozeni.net/integrate/guides/nextjs): 購入リンクと購入者限定ページを、Next.js のサイトに手で組み込む。 ## 料金と審査 - [決済のしくみ](https://docs.cozeni.net/pricing/how-payments-work): 売り手は販売者で、お客様の代金は販売者の Stripe アカウントに直接計上されます。 - [料金](https://docs.cozeni.net/pricing/fees): 売上ごとにかかる取引手数料と、月額利用料の有無。 - [販売者の審査](https://docs.cozeni.net/pricing/account-review): 本番で販売するための Stripe の接続と事業者審査、その状態の確かめ方。 - [販売できるもの](https://docs.cozeni.net/pricing/acceptable-use): Cozeni で販売できるものと、販売できないもの。 ## API Reference - [Cozeni 外部 API](https://docs.cozeni.net/api-reference): Cozeni の外部 API は、販売者のサーバーから商品・購入リンク・購入画面を操作し、購入者のアクセス権を確かめるための API です。API… - [エラー](https://docs.cozeni.net/api-reference/errors): エラーの形式と、API ごとのエラーコードと HTTP ステータスの一覧。 - [バージョン](https://docs.cozeni.net/api-reference/versioning): 外部 API のバージョンの表し方、バージョンを上げる変更、互換性の方針。 - [ページ送り](https://docs.cozeni.net/api-reference/pagination): 一覧の API で、件数を指定して結果を複数のページに分けて取得する方法。 - [レート制限](https://docs.cozeni.net/api-reference/rate-limits): API の種類ごとの呼び出し回数の上限と、超えたときの対応。 ### アカウント - [接続中のアカウントと販売できる状態を取得する](https://docs.cozeni.net/api-reference/account/external-get-account): 接続中のアカウントと販売できる状態を取得する. Reference for the GET /account endpoint in the Cozeni 外部 API. ### 商品 - [商品の一覧を取得する](https://docs.cozeni.net/api-reference/products/external-list-products): 必要なスコープ: products:read。 Reference for the GET /products endpoint in the Cozeni 外部 API. - [商品を作る](https://docs.cozeni.net/api-reference/products/external-create-product): 必要なスコープ: products:write。サブスクを提供していない環境で recurring_interval… Reference for the POST /products endpoint in the Cozeni 外部 API. - [商品を1件取得する](https://docs.cozeni.net/api-reference/products/external-get-product): 必要なスコープ: products:read。 Reference for the GET /products/{product_id} endpoint in the Cozeni 外部 API. - [商品を更新する](https://docs.cozeni.net/api-reference/products/external-update-product): 必要なスコープ: products:write。 Reference for the PATCH /products/{product_id} endpoint in the Cozeni 外部 API. - [商品の画像を設定する](https://docs.cozeni.net/api-reference/products/external-put-product-image): 必要なスコープ: products:write。multipart/form-data の file… Reference for the PUT /products/{product_id}/image endpoint in the Cozeni 外部 API. - [商品の画像を削除する](https://docs.cozeni.net/api-reference/products/external-delete-product-image): 必要なスコープ: products:write。画像が無くても200を返す。 Reference for the DELETE /products/{product_id}/image endpoint in the Cozeni 外部 API. ### 購入リンク - [商品の購入リンクを取得する](https://docs.cozeni.net/api-reference/checkout-links/external-get-checkout-link): 必要なスコープ: checkout_links:read。 Reference for the GET /products/{product_id}/checkout-link endpoint in the Cozeni 外部 API. - [商品の購入リンクを取得し、無ければ発行する](https://docs.cozeni.net/api-reference/checkout-links/external-ensure-checkout-link): 必要なスコープ: checkout_links:write。 Reference for the PUT /products/{product_id}/checkout-link endpoint in the Cozeni 外部 API. ### 購入画面 - [メールアドレスを固定した購入画面を作る](https://docs.cozeni.net/api-reference/checkout/external-create-checkout-session): 必要なスコープ: checkouts:write。販売者のサーバーが、ログイン中のユーザーのメールア… Reference for the POST /checkout/sessions endpoint in the Cozeni 外部 API. ### 購入者 - [60秒・単回コードを購入者JWTへ交換する](https://docs.cozeni.net/api-reference/customer/external-exchange-handoff): 60秒・単回コードを購入者JWTへ交換する. Reference for the POST /customer/handoff/exchange endpoint in the Cozeni 外部 API. - [購入者の商品アクセス権を判定する](https://docs.cozeni.net/api-reference/customer/external-check-entitlements): 購入者の商品アクセス権を判定する. Reference for the POST /customer/entitlements/check endpoint in the Cozeni 外部 API. - [購入者ポータルを開く1回限り・60秒のURLを発行する](https://docs.cozeni.net/api-reference/customer/external-create-portal-link): 購入者ポータルを開く1回限り・60秒のURLを発行する. Reference for the POST /customer/portal-link endpoint in the Cozeni 外部 API. - [購入者の機能フラグを照会する](https://docs.cozeni.net/api-reference/customer/external-get-customer-state): 必要なスコープ: customers:read。購入者のメールアドレスで、付与済みの機能フラグと設定… Reference for the POST /customers/state endpoint in the Cozeni 外部 API. ### テスト購入 - [テスト購入を行う(サンドボックスのみ)](https://docs.cozeni.net/api-reference/test-purchases/external-start-test-purchase): サンドボックス専用(それ以外は404)。必要なスコープ:… Reference for the POST /products/{product_id}/test-purchase endpoint in the Cozeni 外部 API. - [テスト購入を返金する(サンドボックスのみ)](https://docs.cozeni.net/api-reference/test-purchases/external-refund-test-purchase): サンドボックス専用(それ以外は404)。必要なスコープ:… Reference for the POST /products/{product_id}/test-purchase/refund endpoint in the Cozeni 外部 API. ### CLI - [CLIのログインを始め、承認用のコードを発行する](https://docs.cozeni.net/api-reference/cli/external-create-cli-device-code): CLIのログインを始め、承認用のコードを発行する. Reference for the POST /cli/device-codes endpoint in the Cozeni 外部 API. - [承認を確かめ、承認済みならCLI用のAPIキーを発行する](https://docs.cozeni.net/api-reference/cli/external-create-cli-token): RFC 8628 §3.5 のエラー名を error.code に返す。キーは成功した1回の応答にだけ載り、再取得で… Reference for the POST /cli/tokens endpoint in the Cozeni 外部 API. - [CLIで発行したキーを失効する](https://docs.cozeni.net/api-reference/cli/external-cli-logout): Authorization のキーが cozeni login で発行したものなら失効する。管理画面で発行したキー・失… Reference for the POST /cli/logout endpoint in the Cozeni 外部 API. ## Agent skills - [cozeni-docs](https://docs.cozeni.net/.well-known/agent-skills/cozeni-docs/SKILL.md): Read the Cozeni Docs instead of answering from memory. Cozeni の販売者と、販売者の AI エージェント向けの開発者ドキュメント。 Use when a task involves Cozeni Docs: how it works, how to set it up or configure it, or its API. ## Agent resources - [llms-full.txt](https://docs.cozeni.net/llms-full.txt): The full Markdown of every page in one file. - [Page Markdown](https://docs.cozeni.net/index.md): Append `.md` to any page URL to fetch that page as raw Markdown. - [JSON API](https://docs.cozeni.net/api/docs/pages.json): Page index of the JSON docs API; each entry links the page's JSON and Markdown forms. Described by the OpenAPI document at https://docs.cozeni.net/openapi.json. - [Agent skills](https://docs.cozeni.net/.well-known/agent-skills/index.json): Agent Skills discovery index of the skills this site publishes. - [API catalog](https://docs.cozeni.net/.well-known/api-catalog): RFC 9727 linkset of the APIs documented here. - [AI catalog](https://docs.cozeni.net/.well-known/ai-catalog.json): ARD manifest of the agent-facing resources on this site (MCP server, skills, APIs). - [agent-readability.json](https://docs.cozeni.net/agent-readability.json): Manifest of every agent-facing artifact on this site. - [Sitemap](https://docs.cozeni.net/sitemap.xml): Every indexable page URL with its last-modified date.