{
  "openapi": "3.0.2",
  "info": {
    "title": "M's PayBridge API",
    "description": "M's PayBridgeのAPIリファレンスです。\\\nM's PayBridgeは決済情報のほか様々なリソースを管理できるため、リソース指向なREST APIをベースとしたインターフェイス設計のもとでAPIを提供しています。\\\nAPIの呼び出しにはAPIキーによる認証が必要であり、リクエストの際に`Authorization`ヘッダーに有効なAPIキーをセットすることで認証できます。\n",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.fincode.jp",
      "description": "本番環境"
    },
    {
      "url": "https://api.test.fincode.jp",
      "description": "テスト環境"
    }
  ],
  "tags": [
    {
      "name": "文字コード",
      "description": "M's PayBridgeのリクエスト・レスポンスの文字コードはUTF-8が使用されます。\n| 文字コード | 備考 |\n| --- | --- |\n| UTF-8 | M's PayBridgeのリクエスト・レスポンスの文字コードはUTF-8が使用されます。 |\n",
      "x-trailTag": true,
      "file": "guides/guide-1.md"
    },
    {
      "name": "リクエストヘッダー",
      "description": "M's PayBridgeのAPIリクエストを行う際に指定可能なリクエストヘッダーの一覧です。\n| ヘッダー | 指定方法 | 説明 |\n| --- | --- | --- |\n| `Api-Version` | YYYYMMDD | APIのマイナーバージョンを指定できます。（現在は`20211001`）<br />指定が無い場合は最新のものが自動で使用されます。 |\n| `Authorization` | Bearer {{API キー}} <br />または Basic {{Base64エンコード済みAPIキー}} | APIキーを指定します。Bearer認証またはBasic認証が使用できます。|\n| `Content-Type` | application/json;charset=UTF-8 | リクエストボディのContent-Typeを指定します。 |\n| `idempotent_key`| UUID v4 | リクエストの冪等性を担保するためのキーを指定します。詳しくは[冪等処理](https://mpb-mizuhobank-docs.fincode.jp/api#tag/%E5%86%AA%E7%AD%89%E5%87%A6%E7%90%86)で解説されています。 |\n| `Tenant-Shop-Id` | テナントのショップID | ※プラットフォーム向け<br />テナントショップの決済を行うときなど、プラットフォームショップがテナントショップとしてAPIを実行する場合、そのテナントのショップIDを指定します。|\n",
      "file": "guides/guide-2.md"
    },
    {
      "name": "ページネーション",
      "description": "一覧取得系のAPIは大量データの送信を防ぐためにページング機能が実装されています。\\\n取得対象の件数が10件以上の場合、デフォルトでは最大10件まで取得します。\\\n以降のデータを取得したい場合や10件以上のデータを取得したい場合、クエリパラメータでpageやlimitを指定することで取得できます。\\\nまた、取得したいデータを絞るために検索条件を指定することができます。検索できる項目は各APIによって異なります。\n\n| No | 項目名               | パラメータ    | 内容                               | デフォルト             | 範囲       | 処理条件                                                                                                       |\n|----|----------------------|---------------|------------------------------------|------------------------|------------|---------------------------------------------------------------------------------------------------------------|\n| 1  | 取得件数             | limit         | 1ページの最大件数                 | 10                     | 10-100     | 指定されない場合デフォルト値が適用されます。<br>データ範囲外はエラーになります。                                                                    |\n| 2  | ページ               | page          | ページ数                           | 1                      | 1-9999     | 指定されない場合デフォルト値が適用されます。<br>レスポンスのlast_page（最終ページ）より大きい数字を指定した場合はエラーを返却します。             |\n| 3  | 総件数のみフラグ     | count_only    | 総件数のみを取得する               | false                  | -          | trueが指定された場合は、指定された条件に合致するレコード総件数のみをレスポンスとして返却します。                                                    |\n| 4  | ソート               | sort          | ソート順の定義                     | APIのデフォルト値      | -          | sort=項目名1 [asc \\| desc], 項目名2 [asc \\| desc], …<br>例) sort=customer_id asc, customer_name asc, customer_email desc<br>指定がない場合は各API デフォルトのソート順となります。<br>指定された項目がないまたはフォーマットが不正な場合はエラーになります。<br>総件数のみフラグがtrueの場合、このリクエストは無視されます。 |\n\n### サンプル①\n[顧客 一覧取得API](https://mpb-mizuhobank-docs.fincode.jp/api#tag/%E9%A1%A7%E5%AE%A2/operation/retrieveCustomerList)で顧客IDを昇順にソートして、2ページ目のデータを取得する例\n```txt\nhttps://api.test.fincode.jp/v1/customers?page=2&sort=id asc\n```\n\n### サンプル②\n[顧客 一覧取得API](https://mpb-mizuhobank-docs.fincode.jp/api#tag/%E9%A1%A7%E5%AE%A2/operation/retrieveCustomerList)で検索条件で作成日を2023/06/28に限定して、2ページ目のデータを取得する例\n```txt\nhttps://api.test.fincode.jp/v1/customers?page=2&created_from=2023/06/28&created_to=2023/06/28\n```\n\n### サンプル③\n[顧客 一覧取得API](https://mpb-mizuhobank-docs.fincode.jp/api#tag/%E9%A1%A7%E5%AE%A2/operation/retrieveCustomerList)で顧客の総件数のみを取得する例\n```txt\nhttps://api.test.fincode.jp/v1/customers?count_only=true\n```\n",
      "file": "guides/guide-3.md"
    },
    {
      "name": "冪等処理",
      "description": "加盟店様がAPIリクエストのリクエストヘッダー`idempotent_key`に冪等キー（任意）を設定することで、リクエストを一意に特定し、2回目以降のリクエストで同じ結果を返却します。\n本機能を利用すると同じリソースが誤って二重に作られてしまうような事態を避けることができます。\n\nUUIDv4形式で、リクエスト毎にユニークになるよう値を指定してください。  \n冪等キーの有効期限は30分です。\n\n### サンプル\n```txt\nidempotent_key: 1003d6af-9e68-4f4e-a916-663e29db5377\n```\n",
      "file": "guides/guide-4.md"
    },
    {
      "name": "エラーオブジェクト",
      "description": "HTTPステータスコード`4xx`系と`5xx`系のエラーが発生した場合、API共通のエラーオブジェクトを返します。\\\n`error_message`の値がエラー原因に該当します。内容に応じて修正してください。 \\\n※`error_message`は予告無く変更される場合があります。開発時の問題解決の為にご利用下さい。\\\n\\\n[DOCSのエラーコード一覧](https://mpb-mizuhobank-docs.fincode.jp/develop_support/error)からも詳細を確認できます。\n\n### サンプル, エラーは`errors`の値として配列形式でレスポンスされます。\n```json\n{\n    \"errors\": [\n        {\n            \"error_code\": \"E123456789\",\n            \"error_message\": \"エラー内容1\"\n        },\n        {\n            \"error_code\": \"E012345678\",\n            \"error_message\": \"エラー内容2\"\n        },\n    ]\n}\n```\n\n| パラメータ | | 説明 |\n| --- | --- | ---|\n| errors | | エラーオブジェクトの配列です。 |\n| | error_code | エラーコードです。プログラムで判定する場合はこちらを利用することが推奨されます。<br />詳細は[Docs > エラーコード一覧](https://mpb-mizuhobank-docs.fincode.jp/develop_support/error)を参照してください。|\n| | error_message | エラーメッセージです。エラーの内容を示します。<br />この値は予告なく変更される可能性があります。|\n",
      "file": "guides/guide-5.md"
    },
    {
      "name": "エラー",
      "description": "APIリクエスト後、以下のHTTPステータスコードとともにレスポンスがされます。\n| ステータスコード | 意味 | 説明 |\n| --- | --- | --- |\n| 200              | OK                       | リクエストが成功しました。                                                                       |\n| 400              | Bad Request              | 不正なリクエストです。リクエストパラメータとJSONの形式を確認してください。                      |\n| 401              | Unauthorized             | 認証されていません。APIキーを確認してください。                                                  |\n| 403              | Forbidden                | APIを使用する権限がありません。アクセス先を確認してください。または流量制限を超えている可能性があります。リクエストレートを減らしてください。 |\n| 404              | Not Found                | 指定したAPIが存在しません。アクセス先を確認してください。                                        |\n| 405              | Method Not Allowed       | 無効なHTTPメソッドへの要求です。HTTPメソッドを確認してください。                                 |\n| 406              | Not Acceptable           | 要求されたリソースが受け入れられないコンテンツしか生成できないことを意味します。Acceptヘッダーを確認してください。 |\n| 409              | Conflict                 | リソースの競合が発生しています。要求を処理できませんでした。                                      |\n| 413              | Payload Too Large        | 送信できるファイルサイズの上限を超えています。                                                   |\n| 415              | Unsupported Media Type   | サーバーまたはリソースがサポートしていないメディアタイプが指定されました。リクエストヘッダーのメディアタイプを確認してください。 |\n| 500              | Internal Server Error    | サーバーでエラーが発生したため、要求を完了できませんでした。                                      |\n| 502              | Bad Gateway              | ゲートウェイエラーです。プロキシサーバーの使用中など、あるサーバーが別のサーバーから無効なリクエストを受信したことを意味します。 |\n| 503              | Service Unavailable      | メンテナンス中による流入制限です。                                                               |\n| 504              | Gateway Timeout          | ゲートウェイタイムアウトが発生しました。                                                         |\n",
      "file": "guides/guide-6.md"
    },
    {
      "name": "顧客",
      "description": "顧客を管理するAPIです。M's PayBridgeにおける顧客は多くのアプリケーションにおいて購入者となるユーザーアカウントに1:1で紐づけられます。\\\n顧客には名前やメールアドレス、請求先住所を登録し管理でき、決済やカード情報・決済手段などのリソースが関連付けられます。\n"
    },
    {
      "name": "カード",
      "description": "顧客が持つカードを管理するAPIです。\\\nカードにはクレジットカード/デビッドカード/プリペイドカードの有効期限や名義などの情報が含まれており、決済の実行時にカードのIDを指定することでそのカードに対して請求（決済）を行います。\\\n\\\n1つの顧客に対してカード情報は最大5件まで登録可能です。5件登録している状態で新しいカードを登録する場合は、既存のカードを削除してから再度登録してください。\\\n\\\n※ カード登録時に3Dセキュア認証を行う場合は、[決済手段 登録API](#tag/PaymentMethod/operation/createCustomerPaymentMethod)を使用します。\n"
    },
    {
      "name": "決済手段",
      "description": "顧客が持つ決済手段（*Payment Method*）を管理するAPIです。\\\n決済実行の際に決済手段のIDを指定することで、その決済手段に対し請求（決済）をします。\\\n\\\n決済手段オブジェクトは`pay_type`パラメータの値によって下記の情報を表現します。\n\n- `Card`: この決済手段はカードを表します。`card`パラメータ内にカードに関する詳細な情報が含まれます。\n- `Directdebit`: この決済手段は口座振替における振替用口座を表します。`directdebit`パラメータ内に口座に関する詳細な情報が含まれます。\n- `Virtualaccount`: この決済手段は銀行振込（バーチャル口座）を表します。`virtualaccount`パラメータ内に口座に関する詳細な情報が含まれます。\n\n1つの顧客に対して同一`pay_type`の決済手段は最大5件まで登録可能です。5件登録している状態で新しい決済手段を登録する場合は、既存の決済手段を削除してから再度登録してください。\\\n\\\n※カード情報の操作はカードAPIでも可能ですが、今後は非推奨となる予定です。新規実装および機能追加を行う場合は、決済手段APIの利用を推奨します。\\\n\\\n[更に詳しく解説したドキュメントをこちらから参照できます。](https://mpb-mizuhobank-docs.fincode.jp/payment/payment_method)\n"
    },
    {
      "name": "決済",
      "description": "決済を行うAPIです。\\\n決済 登録APIで決済情報をM's PayBridgeに登録し、決済 実行APIで実際に購入者（顧客）に対して請求を行います。\\\n\\\n決済手段によっては決済実行後、3Dセキュア認証や購入者による現金払い込みなどが必要になります。\n"
    },
    {
      "name": "3Dセキュア認証",
      "description": "3Dセキュア認証を行うAPIです。\\\n3Dセキュア認証はカード決済において不正利用を防止するために使用される本人認証の仕組みです。\\\n\\\n決済実行後、購入者が`acs_url`にアクセスすると、ブラウザ情報がM's PayBridgeへ送信され認証プロセスが開始します。認証のプロセスと実装のフローに関しては[Docs > 3Dセキュア2.0認証を使用する](https://mpb-mizuhobank-docs.fincode.jp/payment/fraud_protection/3d_secure_2)から参照できます。\n"
    },
    {
      "name": "リダイレクト型決済",
      "description": "M's PayBridgeが提供するリダイレクト型決済URLを作成するAPIです。\\\nリクエスト時に`guide_mail_send_flag`（決済メール送信フラグ）に`1`（送信する）を指定することでリダイレクト型決済URLを添付したメールをM's PayBridgeから送信させられます。\n"
    },
    {
      "name": "リダイレクト型カード登録",
      "description": "リダイレクト型カード登録URLを作成するAPIです。\n\n- 顧客ID（`customer_id`）を指定して作成した場合、その顧客に対してカードを登録するためのカード登録URLを発行します。\n- 顧客IDを指定しなかった場合、顧客を新たに作成しその顧客に対してカードを登録するためのカード登録URLを発行します。\n\nリクエスト時に`guide_mail_send_flag`（登録メール送信フラグ）に`1`（送信する）を指定することでリダイレクト型カード登録URLを添付したメールをM's PayBridgeから送信させられます。\n"
    },
    {
      "name": "プラン",
      "description": "サブスクリプションのプランを管理するAPIです。\\\nサブスクリプション請求の金額・間隔・頻度などのプラン情報を登録・取得・更新・削除できます。\n"
    },
    {
      "name": "サブスクリプション",
      "description": "サブスクリプションを管理するAPIです。\\\n指定した顧客に対して指定したプランで定期・定額で請求を行うサブスクリプションを登録・更新・削除できるほか、結果照会APIを用いてあるサブスクリプションによって発生した毎回の課金の結果を一覧で取得することもできます。\\\n\\\nサブスクリプション課金の処理は非同期で行われ、Webhookイベント`recurring.card.batch`（サブスクリプション課金（カード決済） 実行）や`recurring.directdebit.batch`（サブスクリプション課金（口座振替） 実行）で課金結果を受け取ることができます。\n"
    },
    {
      "name": "一括決済",
      "description": "一括決済を行うAPIです。\\\n数千・数万件単位の決済を1回のリクエストで登録・予約することができ、従量課金のビジネスモデルの構築などに利用できます。\\\n\\\n一括決済の処理は非同期で行われ、Webhookイベント`payments.bulk.*.batch`（一括決済課金 実行）で課金結果を受け取ることができます。\n"
    },
    {
      "name": "インボイス機能",
      "description": "インボイス機能に関するAPI群です。\\\n機能の詳細は[こちら](/payment/invoice)をご確認ください。\\\nインボイス情報をもとに決済機能付きの請求書と領収書が発行されます。\n"
    },
    {
      "name": "請求管理",
      "description": "請求管理を行うAPI群です。\\\nメールリンクやインボイス機能を用いて請求を行うことができます。\n"
    },
    {
      "name": "売上入金",
      "description": "ショップの売上入金を取得できます。\\\nまた、ある売上入金の詳細情報を取得し、取引1件ごとの入金額への影響を確認することもできます。\n"
    },
    {
      "name": "プラットフォーム利用料収入",
      "description": "プラットフォーム利用料による売上入金を取得できます。\\\nまた、ある売上入金のIDを指定して、テナントショップごとの入金のサマリー情報を一覧取得することもできます。\n"
    },
    {
      "name": "チャージバック",
      "description": "チャージバックに関する情報を取得できるAPIです。\\\nチャージバックに関する詳細は[Docs](https://mpb-mizuhobank-docs.fincode.jp/business_management/chargeback)をご確認ください。\n\nショップ管理画面のチャージバックステータスは、APIの`status_code`と`canceled`パラメータで取得できます。\\\nステータスごとの対応は以下の通りです。\n\n**要対応**\n- `status_code`: 4005\n- `canceled`: 使用なし\n\n**回答済み**\n- `status_code`: 4006、4007、4011\n- `canceled`: 使用なし\n\n**売上返還確定**\n- `status_code`: 4009\n- `canceled`: false\n\n**その他（確定後取消）**\n- `status_code`: 4009\n- `canceled`: true\n"
    },
    {
      "name": "プラットフォームショップ",
      "description": "プラットフォームショップ（メインショップ・サブショップ）の設定を管理するAPIです。\\\nテナントに対し適用するプラットフォーム利用料金の設定や、プラットフォームショップの一覧取得などができます。\n"
    },
    {
      "name": "テナントショップ",
      "description": "テナントショップの設定を管理するAPIです。\\\nテナントに対し適用するプラットフォーム利用料金の設定や、テナントショップの一覧取得などができます。\n"
    },
    {
      "name": "テナント申請管理",
      "description": "テナントショップの新規作成や審査情報の提出、販売免許等のアップロードなどを行えるAPIです。\\\n\\\n<span class=\"attension\">このAPIの利用について</span>\\\nこのAPIを本番環境で利用するためにはM's PayBridgeへの申請が必要です。利用を希望する場合は[問い合わせフォーム](https://www.faq.mizuhobank.co.jp/helpdesk?category_id=645&site_domain=houjin) からテナント申請管理APIを利用するサービスの概要をお知らせの上、機能開放をリクエストしてください。（テスト環境では常時利用できます。）\n"
    },
    {
      "name": "社印",
      "description": "ショップに紐づく社印を管理するAPIです。\\\n登録された社印は、インボイス機能などで発行される請求書・領収書・インボイスWEBページに自動で押印されます。\\\n画像はマルチパート形式でアップロードします。サポートする拡張子は `png` / `jpg` / `jpeg` です。\n"
    },
    {
      "name": "ショップ決済手段",
      "description": "ショップに紐づく決済手段（*Shop Payment Method*）を管理する API です。\\\n\\\n決済手段オブジェクトは`pay_type`パラメータの値によって下記の情報を表現します。\n- `Payeeaccount`: この決済手段は銀行振込（指定口座）を表します。`payee_account`パラメータ内に口座に関する詳細な情報が含まれます。\\\n1つのショップに対して同一`pay_type`の決済手段は最大5件まで登録可能です。5件登録している状態で新しい決済手段を登録する場合は、既存の決済手段を削除してから再度登録してください。\n"
    },
    {
      "name": "Webhook設定",
      "description": "Webhook設定を管理するAPIです。\\\nM's PayBridge上で指定したイベントが発生した場合、指定したエンドポイントでリアルタイムで通知を受け取れます。\\\n[Webhook通知仕様はこちら](https://mpb-mizuhobank-docs.fincode.jp/api#tag/Webhook_)\\\n\\\n※1 テナントのイベントを受けとるためにはテナントごとにWebhook設定を登録する必要があります。\n\n| 機能                         | イベント名                  | イベントパラメータ                         |\n|----------------------------|--------------------------|-----------------------------------------|\n| カード決済                     | 決済登録                     | payments.card.regist                   |\n| カード決済                     | 決済実行                     | payments.card.exec                     |\n| カード決済                     | 売上確定                     | payments.card.capture                  |\n| カード決済                     | キャンセル                     | payments.card.cancel                   |\n| カード決済                     | 再オーソリ                     | payments.card.auth                     |\n| カード決済                     | 金額変更                     | payments.card.change                   |\n| 3Dセキュア（カード決済）                     | 認証実行                     | payments.card.secure2.authenticate     |\n| 3Dセキュア（カード決済）                     | チャレンジ結果確定               | payments.card.secure2.result           |\n| 3Dセキュア（カード決済）                     | 認証後決済実行                 | payments.card.secure                   |\n| Apple Pay                   | 決済登録                     | payments.applepay.regist               |\n| Apple Pay                   | 決済実行                     | payments.applepay.exec                 |\n| Apple Pay                   | 売上確定                     | payments.applepay.capture              |\n| Apple Pay                   | キャンセル                     | payments.applepay.cancel               |\n| Google Pay                     | 決済登録                     | payments.googlepay.regist                   |\n| Google Pay                     | 決済実行                     | payments.googlepay.exec                     |\n| Google Pay                     | 売上確定                     | payments.googlepay.capture                  |\n| Google Pay                     | キャンセル                     | payments.googlepay.cancel                   |\n| Google Pay                     | 再オーソリ                     | payments.googlepay.auth                     |\n| Google Pay                     | 金額変更                     | payments.googlepay.change                   |\n| 3Dセキュア（Google Pay）                     | 認証実行                     | payments.googlepay.secure2.authenticate     |\n| 3Dセキュア（Google Pay）                     | チャレンジ結果確定               | payments.googlepay.secure2.result           |\n| 3Dセキュア（Google Pay）                     | 認証後決済実行                 | payments.googlepay.secure                   |\n| コンビニ決済                   | 決済登録                     | payments.konbini.regist                |\n| コンビニ決済                   | 決済実行                     | payments.konbini.exec                  |\n| コンビニ決済                   | キャンセル                     | payments.konbini.cancel                |\n| コンビニ決済                   | 支払通知                     | payments.konbini.complete              |\n| コンビニ決済                   | 支払通知（シミュレート）         | payments.konbini.complete.stub         |\n| コンビニ決済                   | 支払い期限切れ                 | konbini.expired.update.batch           |\n| PayPay                      | 決済登録                     | payments.paypay.regist                 |\n| PayPay                      | 決済実行                     | payments.paypay.exec                   |\n| PayPay                      | 売上確定                     | payments.paypay.capture                |\n| PayPay                      | キャンセル                     | payments.paypay.cancel                 |\n| PayPay                      | 金額変更                     | payments.paypay.change                 |\n| PayPay                      | 支払通知                     | payments.paypay.complete               |\n| 口座振替                     | 決済登録                     | payments.directdebit.regist            |\n| 口座振替                     | 決済実行                     | payments.directdebit.exec              |\n| 口座振替                     | キャンセル                     | payments.directdebit.cancel            |\n| 口座振替                     | 金額変更                     | payments.directdebit.change            |\n| 口座振替                     | 引き落とし通知                 | payments.directdebit.complete          |\n| 口座振替                     | 引き落とし通知（シミュレート）     | payments.directdebit.complete.stub     |\n| 銀行振込（バーチャル口座）      | 決済登録                     | payments.virtualaccount.regist         |\n| 銀行振込（バーチャル口座）      | 決済実行                     | payments.virtualaccount.exec           |\n| 銀行振込（バーチャル口座）      | キャンセル                     | payments.virtualaccount.cancel         |\n| 銀行振込（バーチャル口座）      | 支払通知                 | payments.virtualaccount.complete       |\n| 銀行振込（バーチャル口座）      | 支払通知（シミュレート）     | payments.virtualaccount.complete.stub  |\n| 決済手段（※3）                     | 登録                        | customers.payment_methods.created      |\n| 決済手段（※2）                     | 更新                        | customers.payment_methods.updated      |\n| 決済手段（※3）                     | 停止                        | customers.payment_methods.inactivated  |\n| 決済手段（※3）                     | 再有効化                        | customers.payment_methods.activated    |\n| 決済手段（※3）                     | 削除                        | customers.payment_methods.deleted      |\n| カード（※2）                       | 登録                        | card.regist                            |\n| カード                       | 更新                        | card.update                            |\n| カード                       | カード更新機能（洗替）                 | card.updater.complete                  |\n| サブスクリプション（カード決済）  | 登録                        | subscription.card.regist               |\n| サブスクリプション（カード決済）  | 解約                        | subscription.card.delete               |\n| サブスクリプション（カード決済）  | 更新                        | subscription.card.update               |\n| サブスクリプション課金（カード決済）| 実行                        | recurring.card.batch                   |\n| サブスクリプション（口座振替）      | 登録                        | subscription.directdebit.regist        |\n| サブスクリプション（口座振替）      | 解約                        | subscription.directdebit.delete        |\n| サブスクリプション（口座振替）      | 更新                        | subscription.directdebit.update        |\n| サブスクリプション課金（口座振替）  | 実行                        | recurring.directdebit.batch            |\n| 一括決済（カード決済）           | 登録                        | payments.bulk.card.regist              |\n| 一括決済課金（カード決済）         | 実行                        | payments.bulk.card.batch               |\n| 一括決済（バーチャル口座）           | 登録                        | payments.bulk.virtualaccount.regist              |\n| 一括決済課金（バーチャル口座）         | 実行                        | payments.bulk.virtualaccount.batch               |\n| 決済手段 契約状況              | 更新                        | contracts.status_code.updated          |\n| チャージバック                 | 登録                        | charge_backs.regist                    |\n| チャージバック                 | 更新                        | charge_backs.update                    |\n| 変更申請                       | 登録                        | change_requests.regist                 |\n| 変更申請                       | 更新                        | change_requests.update                 |\n\n※2 リダイレクト型カード登録APIの結果通知を受け取るには決済手段 更新（customers.payment_methods.updated）のWebhook設定を登録する必要があります。\\\n※3 このイベントにおいて通知される決済手段はバーチャル口座のみです。カード、口座振替は通知されません。\n"
    },
    {
      "name": "Webhook_通知仕様",
      "description": "イベントが発生したときに、M's PayBridgeから加盟店様が設定したエンドポイントURLへWebhookのリクエストを送信するときの仕様です。\\\n[イベント一覧はこちら](https://mpb-mizuhobank-docs.fincode.jp/api#tag/Webhook)\\\n※通知対象のパラメータは、機能追加等に伴い追加される可能性があります。\\\n※予告なくパラメータ名の変更、削除が行われることはありません。\\\n\\\nWebhookを利用する場合は、正常受信または受信失敗のレスポンスをWebhookのリクエストに対して返却する必要があります。\\\nWebhookのリクエストがエラーで失敗した場合は、リトライ仕様に従って再送します。\n"
    }
  ],
  "externalDocs": {
    "description": "M's PayBridgeJSの仕様はこちらの JSリファレンス から確認できます。",
    "url": "/js"
  },
  "paths": {
    "/v1/customers": {
      "post": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "createCustomer",
        "tags": [
          "顧客"
        ],
        "summary": "顧客 登録",
        "parameters": [
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ 顧客情報を共有しないプラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\n指定したテナントショップに紐づく形で顧客情報を登録します。\n"
          }
        ],
        "description": "顧客情報を登録します。\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Customer.Creating.Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Customer.Creating.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X POST \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\n    \"name\": \"John Doe\",\n    \"email\": \"john@example.com\"\n}' \\\n'https://api.test.fincode.jp/v1/customers'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    try {\n        // リクエストの送信\n        const customer = await fincode.customers.create({\n            name: \"John Doe\",\n            email: \"john@example.com\",\n        });\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\tbody := CreatingCustomerRequest{\n\t\tEmail:   stringPointer(\"john@example.com\"),\n\t\tName:    stringPointer(\"John Doe\"),\n\t\tPhoneCC: stringPointer(\"81\"),\n\t\tPhoneNo: stringPointer(\"1234567890\"),\n\t}\n\n\tmarshalledBody, _ := json.Marshal(body)\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\"POST\", \"https://api.test.fincode.jp/v1/customers\", bytes.NewBuffer(marshalledBody))\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n\ntype CreatingCustomerRequest struct {\n\tID           *string `json:\"id,omitempty\"`\n\tName         *string `json:\"name,omitempty\"`\n\tEmail        *string `json:\"email,omitempty\"`\n\tPhoneCC      *string `json:\"phone_cc,omitempty\"`\n\tPhoneNo      *string `json:\"phone_no,omitempty\"`\n\tAddrCity     *string `json:\"addr_city,omitempty\"`\n\tAddrCountry  *string `json:\"addr_country,omitempty\"`\n\tAddrLine1    *string `json:\"addr_line_1,omitempty\"`\n\tAddrLine2    *string `json:\"addr_line_2,omitempty\"`\n\tAddrLine3    *string `json:\"addr_line_3,omitempty\"`\n\tAddrPostCode *string `json:\"addr_post_code,omitempty\"`\n\tAddrState    *string `json:\"addr_state,omitempty\"`\n}\n\nfunc stringPointer(s string) *string {\n\treturn &s\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/customers\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: application/json\"\n];\n\n$data = json_encode([\n    \"name\" => \"John Doe\",\n    \"email\" => \"john@example.com\"\n]);\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_POST, true);\ncurl_setopt($session, CURLOPT_POSTFIELDS, $data);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\nurl = f'https://api.test.fincode.jp/v1/customers'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\ndata = {\n    \"name\": \"John Doe\",\n    \"email\": \"john@example.com\"\n}\n\n# HTTP POSTリクエストの送信\ntry:\n    response = requests.post(url, headers=headers, json=data)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # 成功した場合の処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    endpoint = \"/v1/customers\"\n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    data = {\n        name: \"John Doe\",\n        email: \"john@example.com\",\n    }\n\n    # リクエストの作成\n    request = Net::HTTP::Post.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n    request['Content-Type'] = 'application/json'\n\n    request.body = data.to_json\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      },
      "get": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "retrieveCustomerList",
        "tags": [
          "顧客"
        ],
        "summary": "顧客 一覧取得",
        "description": "顧客情報を一覧で取得します。クエリパラメータを指定して取得する条件を絞り込めます。\n",
        "parameters": [
          {
            "in": "query",
            "name": "クエリ",
            "description": "顧客情報の一覧取得において検索条件となるクエリパラメータ\n",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/Pagination.QueryParams"
                },
                {
                  "$ref": "#/components/schemas/Customer.ListRetrieving.QueryParams"
                }
              ]
            }
          },
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ 顧客情報を共有しないプラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\nこのテナントショップに紐づく顧客から一覧で取得します。\n"
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Customer.ListRetrieving.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X GET \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n'https://api.test.fincode.jp/v1/customers'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    try {\n        // リクエストの送信\n        const customers = await fincode.customers.retrieveList({\n            limit: 10,\n        });\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\"GET\", \"https://api.test.fincode.jp/v1/customers\", nil)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\n\tparams := req.URL.Query()\n\tparams.Add(\"limit\", \"10\")\n\treq.URL.RawQuery = params.Encode()\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/customers\";\n$queryParams = [\n    \"limit\" => 10,\n];\n\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint . '?' . http_build_query($queryParams));\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_HTTPGET, true);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\nurl = f'https://api.test.fincode.jp/v1/customers'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n}\nquery_params = { 'limit': 10 }\n\ntry:\n    response = requests.get(url, headers=headers, params=query_params)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # APIからのデータを処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    endpoint = \"/v1/customers\"\n    query_params =  { limit: 10 }\n\n    uri = URI.parse(BASE_URL + endpoint)\n    uri.query = URI.encode_www_form(query_params)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Get.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/customers/{id}": {
      "get": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Public-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "retrieveCustomer",
        "tags": [
          "顧客"
        ],
        "summary": "顧客 取得",
        "description": "IDで指定した顧客情報を取得します。\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "顧客ID",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/CustomerId_schema"
                }
              ]
            },
            "required": true
          },
          {
            "name": "Tenant-Shop-Id",
            "in": "header",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ 顧客情報を共有しないプラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\nこのテナントショップに紐づく顧客のうち、指定したIDの顧客情報を取得します。\n",
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Customer.Retrieving.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X GET \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n'https://api.test.fincode.jp/v1/customers/{id}'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    const customerId = \"<Customer ID>\";\n\n    try {\n        // リクエストの送信\n        const customer = await fincode.customers.retrieve(customerId);\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\tcustomerID := \"<Customer ID>\"\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\n\t\t\"GET\",\n\t\tfmt.Sprintf(\"https://api.test.fincode.jp/v1/customers/%s\", customerID),\n\t\tnil,\n\t)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$customerId = '<Customer ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/customers/{$customerId}\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_HTTPGET, true);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\ncustomer_id = '<Customer ID>'\n\nurl = f'https://api.test.fincode.jp/v1/customers/{customer_id}/'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n}\n\ntry:\n    response = requests.get(url, headers=headers)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # APIからのデータを処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    customer_id = '<Customer ID>'\n    endpoint = \"/v1/customers/#{customer_id}\"\n\n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Get.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      },
      "put": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "updateCustomer",
        "tags": [
          "顧客"
        ],
        "summary": "顧客 更新",
        "description": "IDで指定した顧客情報を更新します。\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "顧客ID",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/CustomerId_schema"
                }
              ]
            },
            "required": true
          },
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ 顧客情報を共有しないプラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\nこのテナントショップに紐づく顧客のうち、指定したIDの顧客情報を更新します。\n"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Customer.Updating.Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Customer.Updating.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X PUT \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\n    \"name\": \"Jane Doe\",\n    \"email\": \"jane@example.com\"\n}' \\\n'https://api.test.fincode.jp/v1/customers/{id}'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    const customerId = \"<Customer ID>\";\n\n    try {\n        // リクエストの送信\n        const customer = await fincode.customers.update(customerId, {\n            name: \"Jane Doe\",\n            email: \"jane@example.com\",\n        });\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\tcustomerID := \"<Customer ID>\"\n\tbody := UpdatingCustomerRequest{\n\t\tName:  stringPointer(\"Jane Doe\"),\n\t\tEmail: stringPointer(\"jane@example.com\"),\n\t}\n\n\tmarshalledBody, _ := json.Marshal(body)\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\n\t\t\"PUT\",\n\t\tfmt.Sprintf(\"https://api.test.fincode.jp/v1/customers/%s\", customerID),\n\t\tbytes.NewBuffer(marshalledBody),\n\t)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n\ntype UpdatingCustomerRequest struct {\n\tName         *string `json:\"name,omitempty\"`\n\tEmail        *string `json:\"email,omitempty\"`\n\tPhoneCC      *string `json:\"phone_cc,omitempty\"`\n\tPhoneNo      *string `json:\"phone_no,omitempty\"`\n\tAddrCity     *string `json:\"addr_city,omitempty\"`\n\tAddrCountry  *string `json:\"addr_country,omitempty\"`\n\tAddrLine1    *string `json:\"addr_line_1,omitempty\"`\n\tAddrLine2    *string `json:\"addr_line_2,omitempty\"`\n\tAddrLine3    *string `json:\"addr_line_3,omitempty\"`\n\tAddrPostCode *string `json:\"addr_post_code,omitempty\"`\n\tAddrState    *string `json:\"addr_state,omitempty\"`\n}\n\nfunc stringPointer(s string) *string {\n\treturn &s\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n\n$customerId = '<Customer ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/customers/{$customerId}\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: application/json\"\n];\n\n$data = json_encode([\n    \"name\" => \"Jane Doe\",\n    \"email\" => \"jane@example.com\"\n]);\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, 'PUT');\ncurl_setopt($session, CURLOPT_POSTFIELDS, $data);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\ncustomer_id = '<Customer ID>'\n\nurl = f'https://api.test.fincode.jp/v1/customers/{customer_id}/'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\ndata = {\n    \"name\": \"Jane Doe\",\n    \"email\": \"jane@example.com\"\n}\n\n# HTTP POSTリクエストの送信\ntry:\n    response = requests.put(url, headers=headers, json=data)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # 成功した場合の処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    customer_id = '<Customer ID>'\n    endpoint = \"/v1/customers/#{customer_id}\"\n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    data = {\n        name: 'Jane Doe',\n        email: 'jane@example.com',\n    }\n\n    # リクエストの作成\n    request = Net::HTTP::Put.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n    request['Content-Type'] = 'application/json'\n\n    request.body = data.to_json\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      },
      "delete": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "deleteCustomer",
        "tags": [
          "顧客"
        ],
        "summary": "顧客 削除",
        "description": "IDで指定した顧客情報を削除します。\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "顧客ID",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/CustomerId_schema"
                }
              ]
            },
            "required": true
          },
          {
            "name": "Tenant-Shop-Id",
            "in": "header",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ 顧客情報を共有しないプラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\nこのテナントショップに紐づく顧客のうち、指定したIDの顧客情報を削除します。\n"
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Customer.Deleting.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X DELETE \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n'https://api.test.fincode.jp/v1/customers/{id}'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    const customerId = \"<Customer ID>\";\n\n    try {\n        // リクエストの送信\n        const result = await fincode.customers.delete(customerId);\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\tcustomerID := \"<Customer ID>\"\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\n\t\t\"DELETE\",\n\t\tfmt.Sprintf(\"https://api.test.fincode.jp/v1/customers/%s\", customerID),\n\t\tnil,\n\t)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$customerId = '<Customer ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/customers/{$customerId}\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, 'DELETE');\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\ncustomer_id = '<Customer ID>'\n\nurl = f'https://api.test.fincode.jp/v1/customers/{customer_id}/'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n}\n\ntry:\n    response = requests.delete(url, headers=headers)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # APIからのデータを処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    customer_id = '<Customer ID>'\n\n    endpoint = \"/v1/customers/#{customer_id}\"\n\n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Delete.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/customers/{customer_id}/cards": {
      "post": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "tags": [
          "カード"
        ],
        "operationId": "createCustomerCard",
        "summary": "カード 登録",
        "description": "`customer_id`で指定した顧客に対しカードを登録します。\n\n<span class=\"smallText\">※ カードの登録は決済手段API（<code>POST /v1/customers/{customer_id}/payment_methods</code>, <code>pay_type = \"Card\"</code>）でも行えます。新規に実装する場合は、口座振替・銀行振込（バーチャル口座）と同じ形式で扱える決済手段APIの利用を推奨します。</span>\n",
        "parameters": [
          {
            "name": "customer_id",
            "in": "path",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/CustomerId_schema"
                }
              ]
            },
            "description": "このカードが紐づく顧客のID",
            "required": true
          },
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ 顧客情報を共有しないプラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\nこのテナントショップに紐づく顧客のうち、指定したIDの顧客に対してカードを登録します。\n"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerCard.Creating.Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerCard.Creating.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X POST \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\n    \"default_flag\": \"1\",\n    \"token\": \"<Token from M's PayBridgeJS>\"\n}' \\\n'https://api.test.fincode.jp/v1/customers/{customer_id}/cards'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    const customerId = \"<Customer ID>\";\n\n    try {\n        // リクエストの送信\n        const card = await fincode.cards.create(customerId, {\n            token: \"<Token from M's PayBridgeJS>\",\n            default_flag: \"1\",\n        });\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\tcustomerID := \"<Customer ID>\"\n\n\tbody := CreatingCustomerCardRequest{\n\t\tToken:       \"<Token from M's PayBridgeJS>\",\n\t\tDefaultFlag: \"0\",\n\t}\n\n\tmarshalledBody, _ := json.Marshal(body)\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\"POST\", fmt.Sprintf(\"https://api.test.fincode.jp/v1/customers/%s/cards\", customerID), bytes.NewBuffer(marshalledBody))\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n\ntype CreatingCustomerCardRequest struct {\n\tDefaultFlag string `json:\"default_flag\"`\n\tToken       string `json:\"token\"`\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$customerId = '<Customer ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/customers/{$customerId}/cards\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: application/json\"\n];\n\n$data = json_encode([\n    \"token\" => \"613531623566356561366261346366623132306663393139\",\n    \"default_flag\" => \"1\"\n]);\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_POST, true);\ncurl_setopt($session, CURLOPT_POSTFIELDS, $data);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\ncustomer_id = '<Customer ID>'\n\nurl = f'https://api.test.fincode.jp/v1/customers/{customer_id}/cards'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\ndata = {\n    \"token\": \"<Token from M's PayBridgeJS>\",\n    \"default_flag\": \"1\",\n}\n\n# HTTP POSTリクエストの送信\ntry:\n    response = requests.post(url, headers=headers, json=data)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # 成功した場合の処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    customer_id = '<Customer ID>'\n    endpoint = \"/v1/customers/#{customer_id}/cards\"\n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    data = {\n        token: '<Token from M's PayBridgeJS>',\n        default_flag: '1'\n    }\n\n    # リクエストの作成\n    request = Net::HTTP::Post.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n    request['Content-Type'] = 'application/json'\n\n    request.body = data.to_json\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      },
      "get": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Public-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "tags": [
          "カード"
        ],
        "operationId": "retrieveCustomerCardList",
        "summary": "カード 一覧取得",
        "description": "`customer_id`で指定した顧客に対し紐づくカードを一覧で取得します。\n\n<span class=\"smallText\">※ カード情報の一覧は決済手段API（<code>GET /v1/customers/{customer_id}/payment_methods</code>, <code>pay_type = \"Card\"</code>）でも取得できます。新規に実装する場合は決済手段APIの利用を推奨します。</span>\n",
        "parameters": [
          {
            "name": "customer_id",
            "in": "path",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/CustomerId_schema"
                }
              ]
            },
            "description": "顧客ID。 \\\nこの顧客に紐づくカードを一覧で取得します。\n",
            "required": true
          },
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ 顧客情報を共有しないプラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\nこのテナントショップに紐づく顧客のうち、指定したIDの顧客に対して登録されたカードの一覧を取得します。\n"
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerCard.ListRetrieving.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X GET \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n'https://api.test.fincode.jp/v1/customers/{customer_id}/cards'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    const customerId = \"<Customer ID>\";\n\n    try {\n        // リクエストの送信\n        const cards = await fincode.cards.retrieveList(customerId);\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\tcustomerID := \"<Customer ID>\"\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\"GET\", fmt.Sprintf(\"https://api.test.fincode.jp/v1/customers/%s/cards\", customerID), nil)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$customerId = '<Customer ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/customers/{$customerId}/cards\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_HTTPGET, true);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "from calendar import c\nimport requests\n\napi_key = '<Secret API Key>'\n\ncustomer_id = '<Customer ID>'\n\nurl = f'https://api.test.fincode.jp/v1/customers/{customer_id}/cards'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n}\n\ntry:\n    response = requests.get(url, headers=headers)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # APIからのデータを処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    customer_id = '<Customer ID>'\n    endpoint = \"/v1/customers/#{customer_id}/cards\"\n\n    uri = URI.parse(BASE_URL + endpoint)\n    uri.query = URI.encode_www_form(query_params)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Get.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/customers/{customer_id}/cards/{id}": {
      "get": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Public-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "tags": [
          "カード"
        ],
        "operationId": "retrieveCustomerCard",
        "summary": "カード 取得",
        "description": "`customer_id`で指定した顧客に対し紐づくカードのうち`id`で指定したものを取得します。\n\n<span class=\"smallText\">※ カード情報の取得は決済手段API（<code>GET /v1/customers/{customer_id}/payment_methods/{id}</code>, <code>pay_type = \"Card\"</code>）でも行えます。新規に実装する場合は決済手段APIの利用を推奨します。</span>\n",
        "parameters": [
          {
            "name": "customer_id",
            "in": "path",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/CustomerId_schema"
                }
              ]
            },
            "description": "このカードが紐づく顧客のID",
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/CardId_schema"
                }
              ]
            },
            "description": "取得するカードのID",
            "required": true
          },
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ 顧客情報を共有しないプラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\nこのテナントショップに紐づく顧客のうち、指定したIDの顧客に対して登録されたカードから取得します。\n"
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerCard.Retrieving.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X GET \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n'https://api.test.fincode.jp/v1/customers/{customer_id}/cards/{id}'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    const customerId = \"<Customer ID>\";\n    const cardId = \"<Card ID>\";\n\n    try {\n        // リクエストの送信\n        const card = await fincode.cards.retrieve(customerId, cardId);\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\tcustomerID := \"<Customer ID>\"\n\tcardID := \"<Card ID>\"\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\n\t\t\"GET\",\n\t\tfmt.Sprintf(\"https://api.test.fincode.jp/v1/customers/%s/cards/%s\", customerID, cardID),\n\t\tnil,\n\t)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$customerId = '<Customer ID>';\n$cardId = '<Card ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/customers/{$customerId}/cards/{$cardId}\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_HTTPGET, true);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\ncustomer_id = '<Customer ID>'\ncard_id = '<Card ID>'\n\nurl = f'https://api.test.fincode.jp/v1/customers/{customer_id}/cards/{card_id}/'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n}\n\ntry:\n    response = requests.get(url, headers=headers)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # APIからのデータを処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    customer_id = '<Customer ID>'\n    card_id = '<Card ID>'\n    \n    endpoint = \"/v1/customers/#{customer_id}/cards/#{card_id}\"\n\n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Get.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      },
      "put": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "tags": [
          "カード"
        ],
        "operationId": "updateCustomerCard",
        "summary": "カード 更新",
        "description": "`customer_id`で指定した顧客に対し紐づくカードのうち`id`で指定したものを更新します。\n\n<span class=\"smallText\">※ カード情報の更新は決済手段API（<code>PUT /v1/customers/{customer_id}/payment_methods/{id}</code>, <code>pay_type = \"Card\"</code>）でも行えます。新規に実装する場合は決済手段APIの利用を推奨します。</span>\n",
        "parameters": [
          {
            "name": "customer_id",
            "in": "path",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/CustomerId_schema"
                }
              ]
            },
            "description": "このカードが紐づく顧客のID",
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/CardId_schema"
                }
              ]
            },
            "description": "更新するカードのID",
            "required": true
          },
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ 顧客情報を共有しないプラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\nこのテナントショップに紐づく顧客のうち、指定したIDの顧客に対して登録されたカードの情報を更新します。\n"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerCard.Updating.Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerCard.Updating.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X PUT \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\n    \"default_flag\": \"1\",\n}' \\\n'https://api.test.fincode.jp/v1/customers/{customer_id}/cards/{id}'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    const customerId = \"<Customer ID>\";\n    const cardId = \"<Card ID>\";\n\n    try {\n        // リクエストの送信\n        const card = await fincode.cards.update(customerId, cardId, {\n            default_flag: \"0\",\n        });\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\tbody := UpdatingCustomerCardRequest{\n\t\tDefaultFlag: stringPointer(\"1\"),\n\t}\n\n\tmarshalledBody, _ := json.Marshal(body)\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\"PUT\", \"https://api.test.fincode.jp/v1/customers/{customer_id}/cards/{id}\", bytes.NewBuffer(marshalledBody))\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n\ntype UpdatingCustomerCardRequest struct {\n\tDefaultFlag *string `json:\"default_flag,omitempty\"`\n\tToken       *string `json:\"token,omitempty\"`\n\tHolderName  *string `json:\"holder_name,omitempty\"`\n\tExpire      *string `json:\"expire,omitempty\"`\n}\n\nfunc stringPointer(s string) *string {\n\treturn &s\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$customerId = '<Customer ID>';\n$cardId = '<Card ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/customers/{$customerId}/cards/{$cardId}\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$data = json_encode([\n    \"default_flag\" => \"0\"\n]);\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, 'PUT');\ncurl_setopt($session, CURLOPT_POSTFIELDS, $data);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\ncustomer_id = '<Customer ID>'\ncard_id = '<Card ID>'\n\nurl = f'https://api.test.fincode.jp/v1/customers/{customer_id}/cards/{card_id}/'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\ndata = {\n    \"default_flag\": \"0\",\n}\n\n# HTTP POSTリクエストの送信\ntry:\n    response = requests.put(url, headers=headers, json=data)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # 成功した場合の処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    customer_id = '<Customer ID>'\n    card_id = '<Card ID>'\n\n    endpoint = \"/v1/customers/#{customer_id}/cards/#{card_id}\"\n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    data = {\n        default_flag: '0'\n    }\n\n    # リクエストの作成\n    request = Net::HTTP::Put.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n    request['Content-Type'] = 'application/json'\n\n    request.body = data.to_json\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      },
      "delete": {
        "tags": [
          "カード"
        ],
        "operationId": "deleteCustomerCard",
        "summary": "カード 削除",
        "description": "`customer_id`で指定した顧客に対し紐づくカードのうち`id`で指定したものを削除します。\n\n<span class=\"smallText\">※ カード情報の削除は決済手段API（<code>DELETE /v1/customers/{customer_id}/payment_methods/{id}</code>, <code>pay_type = \"Card\"</code>）でも行えます。新規に実装する場合は決済手段APIの利用を推奨します。</span>\n",
        "parameters": [
          {
            "name": "customer_id",
            "in": "path",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/CustomerId_schema"
                }
              ]
            },
            "description": "このカードが紐づく顧客のID",
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/CardId_schema"
                }
              ]
            },
            "description": "削除するカードのID",
            "required": true
          },
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ 顧客情報を共有しないプラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\nこのテナントショップに紐づく顧客のうち、指定したIDの顧客に対して登録されたカードを削除します。\n"
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerCard.Deleting.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X DELETE \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n'https://api.test.fincode.jp/v1/customers/{customer_id}/cards/{id}'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    const customerId = \"<Customer ID>\";\n    const cardId = \"<Card ID>\";\n\n    try {\n        // リクエストの送信\n        const result = await fincode.cards.delete(customerId, cardId);\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\tcustomerID := \"<Customer ID>\"\n\tcardID := \"<Card ID>\"\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\n\t\t\"DELETE\",\n\t\tfmt.Sprintf(\"https://api.test.fincode.jp/v1/customers/%s/cards/%s\", customerID, cardID),\n\t\tnil,\n\t)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$customerId = '<Customer ID>';\n$cardId = '<Card ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/customers/{$customerId}/cards/{$cardId}\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, 'DELETE');\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\ncustomer_id = '<Customer ID>'\ncard_id = '<Card ID>' \n\nurl = f'https://api.test.fincode.jp/v1/customers/{customer_id}/cards/{card_id}/'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n}\n\ntry:\n    response = requests.delete(url, headers=headers)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # APIからのデータを処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    customer_id = '<Customer ID>'\n    card_id = '<Card ID>'\n\n    endpoint = \"/v1/customers/#{customer_id}/cards/#{card_id}\"\n\n    uri = URI.parse(BASE_URL + endpoint)\n    uri.query = URI.encode_www_form(query_params)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Delete.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/cards": {
      "get": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "tags": [
          "カード"
        ],
        "operationId": "retrieveCardList",
        "summary": "カード 一覧取得（顧客情報共有グループ単位）",
        "description": "顧客情報共有グループ単位でカード情報を一覧取得する API\n",
        "parameters": [
          {
            "in": "query",
            "name": "クエリ",
            "description": "カード情報の一覧取得において検索条件となるクエリパラメータ\n",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/Pagination.QueryParams"
                },
                {
                  "$ref": "#/components/schemas/Card.ListRetrieving.QueryParams"
                }
              ]
            }
          },
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ 顧客情報を共有しないプラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\nこのテナントショップに紐づく顧客情報共有グループのカード情報から一覧で取得します。\n"
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Card.ListRetrieving.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X GET \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n'https://api.test.fincode.jp/v1/cards?limit=10&page=1&customer_id=<Customer ID>'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import fetch from \"node-fetch\";\n\nconst BASE_URL = \"https://api.test.fincode.jp\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const endpoint = new URL(`${BASE_URL}/v1/cards`);\n    endpoint.search = new URLSearchParams({\n        limit: \"10\",\n        page: \"1\",\n        customer_id: \"<Customer ID>\",\n    }).toString();\n\n    const response = await fetch(endpoint, {\n        method: \"GET\",\n        headers: {\n            Authorization: `Bearer ${API_KEY}`,\n        },\n    });\n    const cards = await response.json();\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\"GET\", \"https://api.test.fincode.jp/v1/cards\", nil)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\n\tparams := req.URL.Query()\n\tparams.Add(\"limit\", \"10\")\n\tparams.Add(\"page\", \"1\")\n\tparams.Add(\"customer_id\", \"<Customer ID>\")\n\treq.URL.RawQuery = params.Encode()\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/cards\";\n$queryParams = [\n    \"limit\" => 10,\n    \"page\" => 1,\n    \"customer_id\" => '<Customer ID>',\n];\n\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint . '?' . http_build_query($queryParams));\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_HTTPGET, true);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\nurl = f'https://api.test.fincode.jp/v1/cards'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n}\nquery_params = {\n    'limit': 10,\n    'page': 1,\n    'customer_id': '<Customer ID>',\n}\n\ntry:\n    response = requests.get(url, headers=headers, params=query_params)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # APIからのデータを処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    endpoint = \"/v1/cards\"\n    query_params = {\n        limit: 10,\n        page: 1,\n        customer_id: '<Customer ID>'\n    }\n\n    uri = URI.parse(BASE_URL + endpoint)\n    uri.query = URI.encode_www_form(query_params)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Get.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/customers/{customer_id}/payment_methods": {
      "post": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Public-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "createCustomerPaymentMethod",
        "tags": [
          "決済手段"
        ],
        "summary": "決済手段 登録",
        "description": "`customer_id`で指定した顧客に対し、決済手段を登録します。\n",
        "parameters": [
          {
            "name": "customer_id",
            "in": "path",
            "description": "顧客ID",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/CustomerId_schema"
                }
              ]
            },
            "required": true
          },
          {
            "name": "Tenant-Shop-Id",
            "in": "header",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ 顧客情報を共有しないプラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\nこのテナントショップに紐づく顧客のうち、指定したIDの顧客に対して決済手段を登録します。\n"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerPaymentMethod.Creating.Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerPaymentMethod.Creating.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X POST \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\n    \"pay_type\": \"Directdebit\",\n    \"default_flag\": \"1\",\n    \"return_url\": \"https://your-service.example.com/return\",\n    \"directdebit\":  {\n        \"application_type\": \"ONLINE\",\n        \"bank_code\": \"0310\",\n        \"branch_code\": \"000\",\n        \"account_type\": \"1\",\n        \"account_number\": \"0999999\",\n        \"account_name_kana\": \"ナマエカナ\"\n    }\n}' \\\n'https://api.test.fincode.jp/v1/customers/{customer_id}/payment_methods'\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\tcustomerID := \"<Customer ID>\"\n\n\tbody := CreatingPaymentMethodRequest{\n\t\tPayType:     \"Directdebit\",\n\t\tDefaultFlag: \"1\",\n\t\tReturnURL:   \"https://your-service.example.com/return\",\n\t\tDirectdebit: Directdebit{\n\t\t\tApplicationType: \"ONLINE\",\n\t\t\tBankCode:        \"0310\",\n\t\t\tBranchCode:      stringPointer(\"000\"),\n\t\t\tAccountType:     stringPointer(\"1\"),\n\t\t\tAccountNumber:   stringPointer(\"0999999\"),\n\t\t\tAccountNameKana: \"ナマエカナ\",\n\t\t},\n\t}\n\n\tmarshalledBody, _ := json.Marshal(body)\n\n\turl := fmt.Sprintf(\"https://api.test.fincode.jp/v1/customers/%s/payment_methods\", customerID)\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\n\t\t\"POST\",\n\t\turl,\n\t\tbytes.NewBuffer(marshalledBody),\n\t)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n\ntype CreatingPaymentMethodRequest struct {\n\tPayType     string      `json:\"pay_type\"`\n\tDefaultFlag string      `json:\"default_flag\"`\n\tDirectdebit Directdebit `json:\"directdebit\"`\n\tReturnURL   string      `json:\"return_url\"`\n}\n\ntype Directdebit struct {\n\tApplicationType  string            `json:\"application_type\"`\n\tBankCode         string            `json:\"bank_code\"`\n\tBranchCode       *string           `json:\"branch_code,omitempty\"`\n\tAccountType      *string           `json:\"account_type,omitempty\"`\n\tAccountNumber    *string           `json:\"account_number,omitempty\"`\n\tAccountName      *string           `json:\"account_name,omitempty\"`\n\tAccountNameKana  string            `json:\"account_name_kana\"`\n\tPaperApplication *PaperApplication `json:\"paper_application,omitempty\"`\n}\n\ntype PaperApplication struct {\n\tPostalAccountNumber1 *string `json:\"postal_account_number_1,omitempty\"`\n\tPostalAccountNumber2 *string `json:\"postal_account_number_2,omitempty\"`\n\tRequestFormId        string  `json:\"request_form_id\"`\n}\n\nfunc stringPointer(s string) *string {\n\treturn &s\n}\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import fetch from \"node-fetch\";\n\nconst BASE_URL = \"https://api.test.fincode.jp\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const customerId = \"<Customer ID>\";\n\n    const endpoint = `${BASE_URL}/v1/customers/${customerId}/payment_methods`;\n\n    const response = await fetch(endpoint, {\n        method: \"POST\",\n        headers: {\n            Authorization: `Bearer ${API_KEY}`,\n            \"Content-Type\": \"application/json\",\n        },\n        body: JSON.stringify({\n            pay_type: \"Directdebit\",\n            default_flag: \"1\",\n            return_url: \"https://your-service.example.com/return\",\n            directdebit: {\n                application_type: \"ONLINE\",\n                bank_code: \"0310\",\n                branch_code: \"000\",\n                account_type: \"1\",\n                account_number: \"0999999\",\n                account_name_kana: \"ナマエカナ\",\n            },\n        }),\n    });\n    const paymentMethods = await response.json();\n})();\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$customerId = '<Customer ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/customers/{$customerId}/payment_methods\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: application/json\"\n];\n\n$data = json_encode([\n    \"pay_type\" => \"Directdebit\",\n    \"default_flag\" => \"1\",\n    \"return_url\" => \"https://your-service.example.com/return\",\n    \"directdebit\" => [\n        \"application_type\" => \"ONLINE\",\n        \"bank_code\" => \"0310\",\n        \"branch_code\" => \"000\",\n        \"account_type\" => \"1\",\n        \"account_number\" => \"0999999\",\n        \"account_name_kana\" => \"ナマエカナ\"\n    ]\n]);\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_POST, true);\ncurl_setopt($session, CURLOPT_POSTFIELDS, $data);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\ncustomer_id = '<Customer ID>'\n\nurl = f'https://api.test.fincode.jp/v1/customers/{customer_id}/payment_methods'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\ndata = {\n    \"pay_type\": \"Directdebit\",\n    \"default_flag\": \"1\",\n    \"return_url\": \"https://your-service.example.com/return\",\n    \"directdebit\": {\n        \"application_type\": \"ONLINE\",\n        \"bank_code\": \"0310\",\n        \"branch_code\": \"000\",\n        \"account_type\": \"1\",\n        \"account_number\": \"0999999\",\n        \"account_name_kana\": \"ナマエカナ\"\n    }\n}\n\n# HTTP POSTリクエストの送信\ntry:\n    response = requests.post(url, headers=headers, json=data)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # 成功した場合の処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    customer_id = '<Customer ID>'\n    endpoint = \"/v1/customers/#{customer_id}/payment_methods\"\n    \n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    data = {\n        pay_type: \"Directdebit\",\n        default_flag: \"1\",\n        return_url: \"https://your-service.example.com/return\",\n        directdebit: {\n            application_type: \"ONLINE\",\n            bank_code: \"9999\",\n            branch_code: \"000\",\n            account_type: \"1\",\n            account_number: \"0999999\",\n            account_name_kana: \"ナマエカナ\"\n        }   \n    }\n\n    # リクエストの作成\n    request = Net::HTTP::Post.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n    request['Content-Type'] = 'application/json'\n\n    request.body = data.to_json\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      },
      "get": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Public-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "retrieveCustomerPaymentMethodList",
        "tags": [
          "決済手段"
        ],
        "summary": "決済手段 一覧取得",
        "description": "`customer_id`で指定した顧客に対し紐づく決済手段を一覧で取得します。\n",
        "parameters": [
          {
            "name": "customer_id",
            "in": "path",
            "description": "顧客ID",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/CustomerId_schema"
                }
              ]
            },
            "required": true
          },
          {
            "name": "クエリ",
            "in": "query",
            "required": true,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/CustomerPaymentMethod.ListRetrieving.QueryParams"
                }
              ]
            },
            "description": "決済手段の一覧取得において検索条件となるクエリパラメータ\n"
          },
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ 顧客情報を共有しないプラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\nこのテナントショップに紐づく顧客のうち、指定したIDの顧客に紐づく決済手段から一覧で取得します。\n"
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerPaymentMethod.ListRetrieving.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X GET \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n'https://api.test.fincode.jp/v1/customers/{customer_id}/payment_methods?pay_type=Directdebit'\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\tcustomerID := \"<Customer ID>\"\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\n\t\t\"GET\",\n\t\tfmt.Sprintf(\"https://api.test.fincode.jp/v1/customers/%s/payment_methods\", customerID),\n\t\tnil,\n\t)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\n\tparams := req.URL.Query()\n\tparams.Add(\"pay_type\", \"Directdebit\")\n\treq.URL.RawQuery = params.Encode()\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import fetch from \"node-fetch\";\n\nconst BASE_URL = \"https://api.test.fincode.jp\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const customerId = \"<Customer ID>\";\n\n    const endpoint = `${BASE_URL}/v1/customers/${customerId}/payment_methods`;\n\n    const response = await fetch(endpoint, {\n        method: \"GET\",\n        headers: {\n            Authorization: `Bearer ${API_KEY}`,\n        },\n    });\n    const paymentMethods = await response.json();\n})();\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$customerId = '<Customer ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/customers/{$customerId}/payment_methods\";\n$queryParams = [\n    \"pay_type\" => \"Directdebit\",\n];\n\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint . \"?\" . http_build_query($queryParams));\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_HTTPGET, true);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\ncustomer_id = '<Customer ID>'\n\nurl = f'https://api.test.fincode.jp/v1/customers/{customer_id}/payment_methods'\nquery_params = {\n    'pay_type': 'Directdebit',\n}\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n}\n\ntry:\n    response = requests.get(url, headers=headers, params=query_params)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # APIからのデータを処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    customer_id = '<Customer ID>'\n\n    endpoint = \"/v1/customers/#{customer_id}/payment_methods\"\n    query_params =  { \n        limit: 10,\n        pay_type: 'Directdebit',\n    }\n\n    uri = URI.parse(BASE_URL + endpoint)\n    uri.query = URI.encode_www_form(query_params)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Get.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/customers/{customer_id}/payment_methods/{id}": {
      "get": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Public-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "retrieveCustomerPaymentMethod",
        "tags": [
          "決済手段"
        ],
        "summary": "決済手段 取得",
        "description": "`customer_id`で指定した顧客に対し紐づく決済手段のうち、`id`で指定したものを取得します。\n",
        "parameters": [
          {
            "name": "customer_id",
            "in": "path",
            "description": "顧客ID",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/CustomerId_schema"
                }
              ]
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "description": "決済手段ID\\\n<span class=\"smallText\">※ `pay_type = Card`（カード）の場合は `cs_` から始まるIDになります。</span>\n",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/PaymentMethodId_schema"
                }
              ]
            },
            "required": true,
            "examples": {
              "payment_method": {
                "$ref": "#/components/examples/payment_method"
              },
              "card": {
                "$ref": "#/components/examples/card"
              }
            }
          },
          {
            "name": "Tenant-Shop-Id",
            "in": "header",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ 顧客情報を共有しないプラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\nこのテナントショップに紐づく顧客のうち、指定したIDの顧客に紐づく決済手段からIDで指定した決済手段を取得します。\n"
          },
          {
            "name": "クエリ",
            "in": "query",
            "required": true,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/CustomerPaymentMethod.Retrieving.QueryParams"
                }
              ]
            },
            "description": "決済手段の取得において検索条件となるクエリパラメータ\n"
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerPaymentMethod.Retrieving.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X GET \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n'https://api.test.fincode.jp/v1/customers/{customer_id}/payment_methods/{id}?pay_type=Card'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import fetch from \"node-fetch\";\n\nconst BASE_URL = \"https://api.test.fincode.jp\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const customerId = \"<Customer ID>\";\n    const paymentMethodId = \"<Payment Method ID>\";\n\n    const queryParams = new URLSearchParams({\n        pay_type: \"Card\",\n    });\n\n    const endpoint = `${BASE_URL}/v1/customers/${customerId}/payment_methods/${paymentMethodId}?${queryParams}`;\n\n    const response = await fetch(endpoint, {\n        method: \"GET\",\n        headers: {\n            Authorization: `Bearer ${API_KEY}`,\n        },\n    });\n    const paymentMethod = await response.json();\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\tcustomerID := \"<Customer ID>\"\n\tpaymentMethodID := \"<Payment Method ID>\"\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\n\t\t\"GET\",\n\t\tfmt.Sprintf(\"https://api.test.fincode.jp/v1/customers/%s/payment_methods/%s\", customerID, paymentMethodID),\n\t\tnil,\n\t)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\n\tparams := req.URL.Query()\n\tparams.Add(\"pay_type\", \"Card\")\n\treq.URL.RawQuery = params.Encode()\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$customerId = '<Customer ID>';\n$paymentMethodId = '<Payment Method ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/customers/{$customerId}/payment_methods/{$paymentMethodId}\";\n$queryParams = [\n    \"pay_type\" => \"Card\",\n];\n\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint . '?' . http_build_query($queryParams));\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_HTTPGET, true);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\ncustomer_id = '<Customer ID>'\npayment_method_id = '<Payment Method ID>'\n\nurl = f'https://api.test.fincode.jp/v1/customers/{customer_id}/payment_methods/{payment_method_id}/'\nquery_params = {\n    'pay_type': 'Card',\n}\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n}\n\ntry:\n    response = requests.get(url, headers=headers, params=query_params)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # APIからのデータを処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    customer_id = '<Customer ID>'\n    payment_method_id = '<Payment Method ID>'\n\n    endpoint = \"/v1/customers/#{customer_id}/payment_methods/#{payment_method_id}\"\n    query_params =  {\n        limit: 10,\n        pay_type: 'Card',\n    }\n\n    uri = URI.parse(BASE_URL + endpoint)\n    uri.query = URI.encode_www_form(query_params)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Get.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      },
      "delete": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Public-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "deleteCustomerPaymentMethod",
        "tags": [
          "決済手段"
        ],
        "summary": "決済手段 削除",
        "description": "`customer_id`で指定した顧客に対し紐づく決済手段のうち、`id`で指定したものを削除します。\n",
        "parameters": [
          {
            "name": "customer_id",
            "in": "path",
            "description": "顧客ID",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/CustomerId_schema"
                }
              ]
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "description": "決済手段ID\\\n<span class=\"smallText\">※ `pay_type = Card`（カード）の場合は `cs_` から始まるIDになります。</span>\n",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/PaymentMethodId_schema"
                }
              ]
            },
            "required": true,
            "examples": {
              "payment_method": {
                "$ref": "#/components/examples/payment_method"
              },
              "card": {
                "$ref": "#/components/examples/card"
              }
            }
          },
          {
            "name": "Tenant-Shop-Id",
            "in": "header",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ 顧客情報を共有しないプラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\nこのテナントショップに紐づく顧客のうち、指定したIDの顧客に紐づく決済手段からIDで指定した決済手段を削除します。\n"
          },
          {
            "in": "query",
            "name": "pay_type",
            "required": true,
            "description": "決済種別\n- `Card` - カード\n- `Directdebit` - 口座振替\n- `Virtualaccount` - 銀行振込（バーチャル口座）\n",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerPaymentMethod.Deleting.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X DELETE \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n'https://api.test.fincode.jp/v1/customers/{customer_id}/payment_methods/{id}?pay_type=Card'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import fetch from \"node-fetch\";\n\nconst BASE_URL = \"https://api.test.fincode.jp\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const customerId = \"<Customer ID>\";\n    const paymentMethodId = \"<Payment Method ID>\";\n\n    const queryParams = new URLSearchParams({\n        pay_type: \"Card\",\n    });\n\n    const endpoint = `${BASE_URL}/v1/customers/${customerId}/payment_methods/${paymentMethodId}?${queryParams}`;\n\n    const response = await fetch(endpoint, {\n        method: \"DELETE\",\n        headers: {\n            Authorization: `Bearer ${API_KEY}`,\n        },\n    });\n    const result = await response.json();\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\tcustomerID := \"<Customer ID>\"\n\tpaymentMethodID := \"<Payment Method ID>\"\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\n\t\t\"DELETE\",\n\t\tfmt.Sprintf(\"https://api.test.fincode.jp/v1/customers/%s/payment_methods/%s\", customerID, paymentMethodID),\n\t\tnil,\n\t)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\n\tparams := req.URL.Query()\n\tparams.Add(\"pay_type\", \"Card\")\n\treq.URL.RawQuery = params.Encode()\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$customerId = '<Customer ID>';\n$paymentMethodId = '<Payment Method ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/customers/{$customerId}/payment_methods/{$paymentMethodId}\";\n$queryParams = [\n    \"pay_type\" => \"Card\",\n];\n\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint . \"?\" . http_build_query($queryParams));\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, 'DELETE');\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\ncustomer_id = '<Customer ID>'\npayment_method_id = '<Payment Method ID>'\n\nurl = f'https://api.test.fincode.jp/v1/customers/{customer_id}/payment_methods/{payment_method_id}/'\nquery_params = {\n    'pay_type': 'Card',\n}\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n}\n\ntry:\n    response = requests.delete(url, headers=headers, params=query_params)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # APIからのデータを処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    customer_id = '<Customer ID>'\n    payment_method_id = '<Payment Method ID>'\n    \n    endpoint = \"/v1/customers/#{customer_id}/payment_methods/#{payment_method_id}\"\n    query_params =  {\n        limit: 10,\n        pay_type: 'Card',\n    }\n\n    uri = URI.parse(BASE_URL + endpoint)\n    uri.query = URI.encode_www_form(query_params)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Delete.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      },
      "put": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Public-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "updateCustomerPaymentMethod",
        "tags": [
          "決済手段"
        ],
        "summary": "決済手段 更新",
        "description": "`customer_id`で指定した顧客に対し紐づく決済手段のうち、`id`で指定したものを更新します。\n",
        "parameters": [
          {
            "name": "customer_id",
            "in": "path",
            "description": "顧客ID",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/CustomerId_schema"
                }
              ]
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "description": "決済手段ID\\\n<span class=\"smallText\">※ `pay_type = Card`（カード）の場合は `cs_` から始まるIDになります。</span>\n",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/PaymentMethodId_schema"
                }
              ]
            },
            "required": true,
            "examples": {
              "payment_method": {
                "$ref": "#/components/examples/payment_method"
              },
              "card": {
                "$ref": "#/components/examples/card"
              }
            }
          },
          {
            "name": "Tenant-Shop-Id",
            "in": "header",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ 顧客情報を共有しないプラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\nこのテナントショップに紐づく顧客のうち、指定したIDの顧客に紐づく決済手段からIDで指定した決済手段を削除します。\n"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "pay_type"
                ],
                "properties": {
                  "pay_type": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 50,
                    "description": "決済種別\n\n* `Card` - カード\n* `Virtualaccount` - 銀行振込（バーチャル口座）\n\n<span class=\"smallText\">\n  ※ 現時点では<code>Card</code>（カード）、<code>Virtualaccount</code>（銀行振込（バーチャル口座））のみ指定可能です。\n</span>\n"
                  },
                  "default_flag": {
                    "type": "string",
                    "enum": [
                      "1"
                    ],
                    "minLength": 1,
                    "maxLength": 1,
                    "description": "デフォルトフラグ\n* `1` - デフォルト\n"
                  },
                  "return_url": {
                    "nullable": true,
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/return_url"
                      }
                    ],
                    "description": "<span class=\"smallText\">※ `pay_type = \"Card\"`のとき指定可能</span>\n"
                  },
                  "return_url_on_failure": {
                    "nullable": true,
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/return_url_on_failure"
                      }
                    ],
                    "description": "<span class=\"smallText\">※ `pay_type = \"Card\"`のとき指定可能</span>\n"
                  },
                  "client_field_1": {
                    "nullable": true,
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/client_field_1"
                      }
                    ],
                    "description": "加盟店自由項目 1\\\n<span class=\"smallText\">※ `pay_type = \"Card\"`のとき指定可能</span>\n"
                  },
                  "client_field_2": {
                    "nullable": true,
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/client_field_2"
                      }
                    ],
                    "description": "加盟店自由項目 2\\\n<span class=\"smallText\">※ `pay_type = \"Card\"`のとき指定可能</span>\n"
                  },
                  "client_field_3": {
                    "nullable": true,
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/client_field_3"
                      }
                    ],
                    "description": "加盟店自由項目 3\\\n<span class=\"smallText\">※ `pay_type = \"Card\"`のとき指定可能</span>\n"
                  },
                  "card": {
                    "type": "object",
                    "nullable": true,
                    "description": "<span class=\"smallText\">※ `pay_type = \"Card\"`のとき指定可能。カード情報自体（カード番号）は変更できません。省略した場合は`default_flag`/`client_field_*`のみが更新されます。</span>\n",
                    "properties": {
                      "token": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/token"
                          }
                        ],
                        "description": "カードトークン\\\n<span class=\"smallText\">指定した場合、トークンを用いてカード情報（有効期限・セキュリティコード等）を更新します。`expire`/`holder_name`/`security_code`を直接指定する場合は省略可能です。</span>\n"
                      },
                      "expire": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/properties-expire"
                          }
                        ],
                        "description": "カード有効期限\\\n<span class=\"smallText\">`token`未指定時は必須</span>\\\n形式：`YYMM`\n"
                      },
                      "holder_name": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/properties-holder_name"
                          }
                        ],
                        "description": "カード名義人名\\\n<span class=\"smallText\">`token`未指定時のみ指定可能</span>\n"
                      },
                      "security_code": {
                        "nullable": true,
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 6,
                        "example": "123",
                        "description": "セキュリティコード\\\n<span class=\"smallText\">`token`未指定時のみ指定可能</span>\n"
                      },
                      "card_updater_mode": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/card_updater_mode"
                          }
                        ],
                        "description": "洗替対象設定\\\n<span class=\"smallText\">洗替対象設定を変更する場合のみ指定します（省略可能）</span>\n\n- `enabled`：カード更新する\n- `disabled`：カード更新しない\n- `inherit`：ショップ設定に準ずる（デフォルト）\n"
                      },
                      "tds_type": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds_type"
                          }
                        ],
                        "description": "3Dセキュア認証を利用するか。\\\n<span class=\"smallText\">※ カード情報（`token`・`holder_name`・`expire`等）を更新する場合は必須</span>\n\n- `0`: 3Dセキュア認証を利用しない\n- `2`: 3Dセキュア2.0認証を利用する\n"
                      },
                      "tds2_type": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_type"
                          }
                        ]
                      },
                      "td_tenant_name": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/td_tenant_name"
                          }
                        ]
                      },
                      "tds2_ret_url": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_ret_url"
                          }
                        ]
                      },
                      "tds2_ch_acc_change": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_ch_acc_change"
                          }
                        ]
                      },
                      "tds2_ch_acc_date": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_ch_acc_date"
                          }
                        ]
                      },
                      "tds2_ch_acc_pw_change": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_ch_acc_pw_change"
                          }
                        ]
                      },
                      "tds2_nb_purchase_account": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_nb_purchase_account"
                          }
                        ]
                      },
                      "tds2_payment_acc_age": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_payment_acc_age"
                          }
                        ]
                      },
                      "tds2_provision_attempts_day": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_provision_attempts_day"
                          }
                        ]
                      },
                      "tds2_ship_address_usage": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_ship_address_usage"
                          }
                        ]
                      },
                      "tds2_ship_name_ind": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_ship_name_ind"
                          }
                        ]
                      },
                      "tds2_suspicious_acc_activity": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_suspicious_acc_activity"
                          }
                        ]
                      },
                      "tds2_txn_activity_day": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_txn_activity_day"
                          }
                        ]
                      },
                      "tds2_txn_activity_year": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_txn_activity_year"
                          }
                        ]
                      },
                      "tds2_three_ds_req_auth_data": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_three_ds_req_auth_data"
                          }
                        ]
                      },
                      "tds2_three_ds_req_auth_method": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_three_ds_req_auth_method"
                          }
                        ]
                      },
                      "tds2_three_ds_req_auth_timestamp": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_three_ds_req_auth_timestamp"
                          }
                        ]
                      },
                      "tds2_email": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_email"
                          }
                        ]
                      },
                      "tds2_addr_match": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_addr_match"
                          }
                        ]
                      },
                      "tds2_bill_addr_country": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_bill_addr_country"
                          }
                        ]
                      },
                      "tds2_bill_addr_state": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_bill_addr_state"
                          }
                        ]
                      },
                      "tds2_bill_addr_city": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_bill_addr_city"
                          }
                        ]
                      },
                      "tds2_bill_addr_line_1": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_bill_addr_line_1"
                          }
                        ]
                      },
                      "tds2_bill_addr_line_2": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_bill_addr_line_2"
                          }
                        ]
                      },
                      "tds2_bill_addr_line_3": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_bill_addr_line_3"
                          }
                        ]
                      },
                      "tds2_bill_addr_post_code": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_bill_addr_post_code"
                          }
                        ]
                      },
                      "tds2_ship_addr_country": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_ship_addr_country"
                          }
                        ]
                      },
                      "tds2_ship_addr_state": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_ship_addr_state"
                          }
                        ]
                      },
                      "tds2_ship_addr_city": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_ship_addr_city"
                          }
                        ]
                      },
                      "tds2_ship_addr_line_1": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_ship_addr_line_1"
                          }
                        ]
                      },
                      "tds2_ship_addr_line_2": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_ship_addr_line_2"
                          }
                        ]
                      },
                      "tds2_ship_addr_line_3": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_ship_addr_line_3"
                          }
                        ]
                      },
                      "tds2_ship_addr_post_code": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_ship_addr_post_code"
                          }
                        ]
                      },
                      "tds2_ship_ind": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_ship_ind"
                          }
                        ]
                      },
                      "tds2_delivery_email_address": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_delivery_email_address"
                          }
                        ]
                      },
                      "tds2_home_phone_cc": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_home_phone_cc"
                          }
                        ]
                      },
                      "tds2_home_phone_no": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_home_phone_no"
                          }
                        ]
                      },
                      "tds2_mobile_phone_cc": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_mobile_phone_cc"
                          }
                        ]
                      },
                      "tds2_mobile_phone_no": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_mobile_phone_no"
                          }
                        ]
                      },
                      "tds2_work_phone_cc": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_work_phone_cc"
                          }
                        ]
                      },
                      "tds2_work_phone_no": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_work_phone_no"
                          }
                        ]
                      },
                      "tds2_delivery_timeframe": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_delivery_timeframe"
                          }
                        ]
                      },
                      "tds2_pre_order_date": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_pre_order_date"
                          }
                        ]
                      },
                      "tds2_pre_order_purchase_ind": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_pre_order_purchase_ind"
                          }
                        ]
                      },
                      "tds2_reorder_items_ind": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_reorder_items_ind"
                          }
                        ]
                      },
                      "tds2_recurring_expiry": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_recurring_expiry"
                          }
                        ]
                      },
                      "tds2_recurring_frequency": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_recurring_frequency"
                          }
                        ]
                      },
                      "tds2_gift_card_amount": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_gift_card_amount"
                          }
                        ]
                      },
                      "tds2_gift_card_count": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_gift_card_count"
                          }
                        ]
                      },
                      "tds2_gift_card_curr": {
                        "nullable": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/tds2_gift_card_curr"
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerPaymentMethod.Updating.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X PUT \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type:application/json\" \\\n    -d '{\"pay_type\": \"Card\", \"default_flag\": \"1\"}' \\\n'https://api.test.fincode.jp/v1/customers/{customer_id}/payment_methods/{id}'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import fetch from \"node-fetch\";\n\nconst BASE_URL = \"https://api.test.fincode.jp\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const customerId = \"<Customer ID>\";\n    const paymentMethodId = \"<Payment Method ID>\";\n\n    const endpoint = `${BASE_URL}/v1/customers/${customerId}/payment_methods/${paymentMethodId}`;\n\n    const body = {\n        pay_type: \"Card\",\n        default_flag: \"1\",\n    };\n\n    const response = await fetch(endpoint, {\n        method: \"PUT\",\n        headers: {\n            Authorization: `Bearer ${API_KEY}`,\n            \"Content-Type\": \"application/json\",\n        },\n        body: JSON.stringify(body),\n    });\n    const result = await response.json();\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\tcustomerID := \"<Customer ID>\"\n\tpaymentMethodID := \"<Payment Method ID>\"\n\n\tbody := UpdatingPaymentMethodRequest{\n\t\tPayType:     \"Card\",\n\t\tDefaultFlag: \"1\",\n\t}\n\n\tmarshalledBody, _ := json.Marshal(body)\n\n\turl := fmt.Sprintf(\"https://api.test.fincode.jp/v1/customers/%s/payment_methods/%s\", customerID, paymentMethodID)\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\n\t\t\"PUT\",\n\t\turl,\n\t\tbytes.NewBuffer(marshalledBody),\n\t)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n}\n\ntype UpdatingPaymentMethodRequest struct {\n\tPayType     string `json:\"pay_type\"`\n\tDefaultFlag string `json:\"default_flag\"`\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$customerId = '<Customer ID>';\n$paymentMethodId = '<Payment Method ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/customers/{$customerId}/payment_methods/{$paymentMethodId}\";\n$body = [\n    \"pay_type\" => \"Card\",\n    \"default_flag\" => \"1\",\n];\n\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: application/json\",\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, 'PUT');\ncurl_setopt($session, CURLOPT_POSTFIELDS, json_encode($body));\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\ncustomer_id = '<Customer ID>'\npayment_method_id = '<Payment Method ID>'\n\nurl = f'https://api.test.fincode.jp/v1/customers/{customer_id}/payment_methods/{payment_method_id}/'\nbody = {\n    'pay_type': 'Card',\n    'default_flag': '1',\n}\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json',\n}\n\ntry:\n    response = requests.put(url, headers=headers, json=body)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # APIからのデータを処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    customer_id = '<Customer ID>'\n    payment_method_id = '<Payment Method ID>'\n\n    endpoint = \"/v1/customers/#{customer_id}/payment_methods/#{payment_method_id}\"\n    body = {\n        pay_type: 'Card',\n        default_flag: '1',\n    }\n\n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Put.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n    request['Content-Type'] = 'application/json'\n    request.body = body.to_json\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/customers/{customer_id}/payment_methods/{id}/reactivate": {
      "put": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Public-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "reactivateCustomerPaymentMethod",
        "tags": [
          "決済手段"
        ],
        "summary": "決済手段 再有効化",
        "description": "`customer_id`で指定した顧客に対し紐づくバーチャル口座決済手段のうち、`id`で指定したものを再有効化します。\n",
        "parameters": [
          {
            "name": "customer_id",
            "in": "path",
            "description": "顧客ID",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/CustomerId_schema"
                }
              ]
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "description": "決済手段ID\\\n<span class=\"smallText\">※ `pay_type = Card`（カード）の場合は `cs_` から始まるIDになります。</span>\n",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/PaymentMethodId_schema"
                }
              ]
            },
            "required": true
          },
          {
            "name": "Tenant-Shop-Id",
            "in": "header",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ 顧客情報を共有しないプラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\nこのテナントショップに紐づく顧客のうち、指定したIDの顧客に紐づく決済手段からIDで指定した決済手段を削除します。\n"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "pay_type"
                ],
                "properties": {
                  "pay_type": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 50,
                    "description": "決済種別\n\n* `Virtualaccount` - 銀行振込（バーチャル口座）\n"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerPaymentMethod.Inactivating.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X PUT \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n'https://api.test.fincode.jp/v1/customers/{customer_id}/payment_methods/{id}/reactivate?pay_type=Virtualaccount'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import fetch from \"node-fetch\";\n\nconst BASE_URL = \"https://api.test.fincode.jp\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const customerId = \"<Customer ID>\";\n    const paymentMethodId = \"<Payment Method ID>\";\n\n    const queryParams = new URLSearchParams({\n        pay_type: \"Virtualaccount\",\n    });\n\n    const endpoint = `${BASE_URL}/v1/customers/${customerId}/payment_methods/${paymentMethodId}/reactivate?${queryParams}`;\n\n    const response = await fetch(endpoint, {\n        method: \"PUT\",\n        headers: {\n            Authorization: `Bearer ${API_KEY}`,\n        },\n    });\n    const result = await response.json();\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\tcustomerID := \"<Customer ID>\"\n\tpaymentMethodID := \"<Payment Method ID>\"\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\n\t\t\"PUT\",\n\t\tfmt.Sprintf(\"https://api.test.fincode.jp/v1/customers/%s/payment_methods/%s/reactivate\", customerID, paymentMethodID),\n\t\tnil,\n\t)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\n\tparams := req.URL.Query()\n\tparams.Add(\"pay_type\", \"Virtualaccount\")\n\treq.URL.RawQuery = params.Encode()\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$customerId = '<Customer ID>';\n$paymentMethodId = '<Payment Method ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/customers/{$customerId}/payment_methods/{$paymentMethodId}/reactivate\";\n$queryParams = [\n    \"pay_type\" => \"Virtualaccount\",\n];\n\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint . \"?\" . http_build_query($queryParams));\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, 'PUT');\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\ncustomer_id = '<Customer ID>'\npayment_method_id = '<Payment Method ID>'\n\nurl = f'https://api.test.fincode.jp/v1/customers/{customer_id}/payment_methods/{payment_method_id}/reactivate'\nquery_params = {\n    'pay_type': 'Virtualaccount',\n}\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n}\n\ntry:\n    response = requests.put(url, headers=headers, params=query_params)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # APIからのデータを処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    customer_id = '<Customer ID>'\n    payment_method_id = '<Payment Method ID>'\n    \n    endpoint = \"/v1/customers/#{customer_id}/payment_methods/#{payment_method_id}/reactivate\"\n    query_params =  {\n        pay_type: 'Virtualaccount',\n    }\n\n    uri = URI.parse(BASE_URL + endpoint)\n    uri.query = URI.encode_www_form(query_params)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Put.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/customers/{customer_id}/payment_methods/{id}/inactivate": {
      "put": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Public-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "inactivateCustomerPaymentMethod",
        "tags": [
          "決済手段"
        ],
        "summary": "決済手段 停止",
        "description": "`customer_id`で指定した顧客に対し紐づくバーチャル口座決済手段のうち、`id`で指定したものを停止します。\n",
        "parameters": [
          {
            "name": "customer_id",
            "in": "path",
            "description": "顧客ID",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/CustomerId_schema"
                }
              ]
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "description": "決済手段ID\\\n<span class=\"smallText\">※ `pay_type = Card`（カード）の場合は `cs_` から始まるIDになります。</span>\n",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/PaymentMethodId_schema"
                }
              ]
            },
            "required": true
          },
          {
            "name": "Tenant-Shop-Id",
            "in": "header",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ 顧客情報を共有しないプラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\nこのテナントショップに紐づく顧客のうち、指定したIDの顧客に紐づく決済手段からIDで指定した決済手段を削除します。\n"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "pay_type"
                ],
                "properties": {
                  "pay_type": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 50,
                    "description": "決済種別\n\n* `Virtualaccount` - 銀行振込（バーチャル口座）\n"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerPaymentMethod.Inactivating.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X PUT \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n'https://api.test.fincode.jp/v1/customers/{customer_id}/payment_methods/{id}/inactivate?pay_type=Virtualaccount'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import fetch from \"node-fetch\";\n\nconst BASE_URL = \"https://api.test.fincode.jp\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const customerId = \"<Customer ID>\";\n    const paymentMethodId = \"<Payment Method ID>\";\n\n    const queryParams = new URLSearchParams({\n        pay_type: \"Virtualaccount\",\n    });\n\n    const endpoint = `${BASE_URL}/v1/customers/${customerId}/payment_methods/${paymentMethodId}/inactivate?${queryParams}`;\n\n    const response = await fetch(endpoint, {\n        method: \"PUT\",\n        headers: {\n            Authorization: `Bearer ${API_KEY}`,\n        },\n    });\n    const result = await response.json();\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\tcustomerID := \"<Customer ID>\"\n\tpaymentMethodID := \"<Payment Method ID>\"\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\n\t\t\"PUT\",\n\t\tfmt.Sprintf(\"https://api.test.fincode.jp/v1/customers/%s/payment_methods/%s/inactivate\", customerID, paymentMethodID),\n\t\tnil,\n\t)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\n\tparams := req.URL.Query()\n\tparams.Add(\"pay_type\", \"Virtualaccount\")\n\treq.URL.RawQuery = params.Encode()\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$customerId = '<Customer ID>';\n$paymentMethodId = '<Payment Method ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/customers/{$customerId}/payment_methods/{$paymentMethodId}/inactivate\";\n$queryParams = [\n    \"pay_type\" => \"Virtualaccount\",\n];\n\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint . \"?\" . http_build_query($queryParams));\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, 'PUT');\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\ncustomer_id = '<Customer ID>'\npayment_method_id = '<Payment Method ID>'\n\nurl = f'https://api.test.fincode.jp/v1/customers/{customer_id}/payment_methods/{payment_method_id}/inactivate'\nquery_params = {\n    'pay_type': 'Virtualaccount',\n}\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n}\n\ntry:\n    response = requests.put(url, headers=headers, params=query_params)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # APIからのデータを処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    customer_id = '<Customer ID>'\n    payment_method_id = '<Payment Method ID>'\n    \n    endpoint = \"/v1/customers/#{customer_id}/payment_methods/#{payment_method_id}/inactivate\"\n    query_params =  {\n        pay_type: 'Virtualaccount',\n    }\n\n    uri = URI.parse(BASE_URL + endpoint)\n    uri.query = URI.encode_www_form(query_params)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Put.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/shops/payment_methods": {
      "post": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "createShopPaymentMethod",
        "tags": [
          "ショップ決済手段"
        ],
        "summary": "ショップ決済手段 登録",
        "description": "ショップに紐づく決済手段（*Shop Payment Method*）を登録します。\n",
        "parameters": [
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\n指定したテナントショップにショップ決済手段を登録します。\n"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/ShopPaymentMethod.PayeeAccount.Creating.Request"
                      }
                    ],
                    "title": "銀行振込（指定口座）"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ShopPaymentMethod.PayeeAccount.Creating.Response"
                        }
                      ],
                      "title": "銀行振込（指定口座）"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X POST \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\n    \"pay_type\": \"Payeeaccount\",\n    \"display_flag\": \"1\",\n    \"display_number\": \"1\",\n    \"payee_account\": {\n        \"bank_code\": \"0001\",\n        \"branch_code\": \"001\",\n        \"account_type\": \"1\",\n        \"account_number\": \"1234567\",\n        \"account_name\": \"株式会社アイウエオ\",\n        \"account_name_kana\": \"ｶﾌﾞｼｷｶﾞｲｼｬｱｲｳｴｵ\"\n    }\n}' \\\n    'https://api.test.fincode.jp/v1/shops/payment_methods'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import fetch from \"node-fetch\";\n\nconst BASE_URL = \"https://api.test.fincode.jp\";\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const endpoint = `${BASE_URL}/v1/shops/payment_methods`;\n\n    const response = await fetch(endpoint, {\n        method: \"POST\",\n        headers: {\n            Authorization: `Bearer ${API_KEY}`,\n            \"Content-Type\": \"application/json\",\n        },\n        body: JSON.stringify({\n            pay_type: \"Payeeaccount\",\n            display_flag: \"1\",\n            display_number: \"1\",\n            payee_account: {\n                bank_code: \"0001\",\n                branch_code: \"001\",\n                account_type: \"1\",\n                account_number: \"1234567\",\n                account_name: \"株式会社アイウエオ\",\n                account_name_kana: \"ｶﾌﾞｼｷｶﾞｲｼｬｱｲｳｴｵ\",\n            },\n        }),\n    });\n\n    if (!response.ok) {\n        console.error(`Error: ${response.statusText}`);\n        return;\n    }\n\n    const data = await response.json();\n    console.log(data);\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"fmt\"\n\t\"io\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tapiKey := \"<Secret API Key>\"\n\n\turl := \"https://api.test.fincode.jp/v1/shops/payment_methods\"\n\n\treqBody := bytes.NewBufferString(`{\n\t\t\"pay_type\": \"Payeeaccount\",\n\t\t\"display_flag\": \"1\",\n\t\t\"display_number\": \"1\",\n\t\t\"payee_account\": {\n\t\t\t\"bank_code\": \"0001\",\n\t\t\t\"branch_code\": \"001\",\n\t\t\t\"account_type\": \"1\",\n\t\t\t\"account_number\": \"1234567\",\n\t\t\t\"account_name\": \"株式会社アイウエオ\",\n\t\t\t\"account_name_kana\": \"ｶﾌﾞｼｷｶﾞｲｼｬｱｲｳｴｵ\"\n\t\t}\n\t}`)\n\n\treq, err := http.NewRequest(\"POST\", url, reqBody)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエスト作成エラー: %v\", err)\n\t}\n\treq.Header.Set(\"Authorization\", \"Bearer \"+apiKey)\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエスト送信エラー: %v\", err)\n\t}\n\tdefer resp.Body.Close()\n\n\trespBody, _ := io.ReadAll(resp.Body)\n\tfmt.Println(string(respBody))\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/shops/payment_methods\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: application/json\"\n];\n\n$data = json_encode([\n    \"pay_type\" => \"Payeeaccount\",\n    \"display_flag\" => \"1\",\n    \"display_number\" => \"1\",\n    \"payee_account\" => [\n        \"bank_code\" => \"0001\",\n        \"branch_code\" => \"001\",\n        \"account_type\" => \"1\",\n        \"account_number\" => \"1234567\",\n        \"account_name\" => \"株式会社アイウエオ\",\n        \"account_name_kana\" => \"ｶﾌﾞｼｷｶﾞｲｼｬｱｲｳｴｵ\"\n    ]\n]);\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($session, CURLOPT_POSTFIELDS, $data);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n\n$response = curl_exec($session);\nif ($response === false) {\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    var_dump($response);\n}\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\nurl = 'https://api.test.fincode.jp/v1/shops/payment_methods'\n\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\ndata = {\n    \"pay_type\": \"Payeeaccount\",\n    \"display_flag\": \"1\",\n    \"display_number\": \"1\",\n    \"payee_account\": {\n        \"bank_code\": \"0001\",\n        \"branch_code\": \"001\",\n        \"account_type\": \"1\",\n        \"account_number\": \"1234567\",\n        \"account_name\": \"株式会社アイウエオ\",\n        \"account_name_kana\": \"ｶﾌﾞｼｷｶﾞｲｼｬｱｲｳｴｵ\"\n    }\n}\n\ntry:\n    response = requests.post(url, headers=headers, json=data)\n    if response.status_code == 200:\n        print(f\"Success: {response.json()}\")\n    else:\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    print(f\"通信エラー: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n  endpoint = '/v1/shops/payment_methods'\n  uri = URI.parse(BASE_URL + endpoint)\n\n  http = Net::HTTP.new(uri.host, uri.port)\n  http.use_ssl = true\n\n  data = {\n    pay_type: \"Payeeaccount\",\n    display_flag: \"1\",\n    display_number: \"1\",\n    payee_account: {\n      bank_code: \"0001\",\n      branch_code: \"001\",\n      account_type: \"1\",\n      account_number: \"1234567\",\n      account_name: \"株式会社アイウエオ\",\n      account_name_kana: \"ｶﾌﾞｼｷｶﾞｲｼｬｱｲｳｴｵ\"\n    }\n  }\n\n  request = Net::HTTP::Post.new(uri.request_uri)\n  request['Authorization'] = \"Bearer #{API_KEY}\"\n  request['Content-Type'] = 'application/json'\n  request.body = data.to_json\n\n  response = http.request(request)\n  puts response.body\nend\n\nmain\n"
          }
        ]
      },
      "get": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "retrieveShopPaymentMethodList",
        "tags": [
          "ショップ決済手段"
        ],
        "summary": "ショップ決済手段 一覧取得",
        "description": "ショップに紐づくショップ決済手段の一覧を取得します。\n",
        "parameters": [
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\n指定したテナントショップに紐づくショップ決済手段の一覧を取得します。\n"
          },
          {
            "name": "クエリ",
            "in": "query",
            "required": true,
            "schema": {
              "oneOf": [
                {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ShopPaymentMethod.ListRetrieving.QueryParams"
                    },
                    {
                      "$ref": "#/components/schemas/ShopPaymentMethod.ListRetrieving.PayeeAccount.QueryParams"
                    },
                    {
                      "$ref": "#/components/schemas/Pagination.QueryParams"
                    }
                  ],
                  "title": "銀行振込（指定口座）"
                }
              ]
            },
            "description": "ショップ決済手段の一覧取得において検索条件となるクエリパラメータ\n"
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ShopPaymentMethod.PayeeAccount.ListRetrieving.Response"
                        }
                      ],
                      "title": "銀行振込（指定口座）"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X GET \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n    'https://api.test.fincode.jp/v1/shops/payment_methods?pay_type=Payeeaccount'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import fetch from \"node-fetch\";\n\nconst BASE_URL = \"https://api.test.fincode.jp\";\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const endpoint = `${BASE_URL}/v1/shops/payment_methods?pay_type=Payeeaccount`;\n\n    const response = await fetch(endpoint, {\n        method: \"GET\",\n        headers: {\n            Authorization: `Bearer ${API_KEY}`,\n            \"Content-Type\": \"application/json\",\n        },\n    });\n\n    if (!response.ok) {\n        console.error(`Error: ${response.statusText}`);\n        return;\n    }\n\n    const data = await response.json();\n    console.log(data);\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tapiKey := \"<Secret API Key>\"\n\n\turl := \"https://api.test.fincode.jp/v1/shops/payment_methods?pay_type=Payeeaccount\"\n\n\treq, err := http.NewRequest(\"GET\", url, nil)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエスト作成エラー: %v\", err)\n\t}\n\treq.Header.Set(\"Authorization\", \"Bearer \"+apiKey)\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエスト送信エラー: %v\", err)\n\t}\n\tdefer resp.Body.Close()\n\n\trespBody, _ := io.ReadAll(resp.Body)\n\tfmt.Println(string(respBody))\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/shops/payment_methods?pay_type=Payeeaccount\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: application/json\"\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n\n$response = curl_exec($session);\nif ($response === false) {\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    var_dump($response);\n}\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\nurl = 'https://api.test.fincode.jp/v1/shops/payment_methods?pay_type=Payeeaccount'\n\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\ntry:\n    response = requests.get(url, headers=headers)\n    if response.status_code == 200:\n        print(f\"Success: {response.json()}\")\n    else:\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    print(f\"通信エラー: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n  endpoint = '/v1/shops/payment_methods?pay_type=Payeeaccount'\n  uri = URI.parse(BASE_URL + endpoint)\n\n  http = Net::HTTP.new(uri.host, uri.port)\n  http.use_ssl = true\n\n  request = Net::HTTP::Get.new(uri.request_uri)\n  request['Authorization'] = \"Bearer #{API_KEY}\"\n  request['Content-Type'] = 'application/json'\n\n  response = http.request(request)\n  puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/shops/payment_methods/{id}": {
      "get": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "retrieveShopPaymentMethod",
        "tags": [
          "ショップ決済手段"
        ],
        "summary": "ショップ決済手段 取得",
        "description": "IDで指定したショップ決済手段を取得します。\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "ショップ決済手段ID",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/ShopPaymentMethodId_schema"
                }
              ]
            },
            "required": true
          },
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\nこのテナントショップに紐づくショップ決済手段のうち、指定したIDのものを取得します。\n"
          },
          {
            "name": "クエリ",
            "in": "query",
            "required": true,
            "schema": {
              "oneOf": [
                {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ShopPaymentMethod.Retrieving.QueryParams"
                    }
                  ],
                  "title": "銀行振込（指定口座）"
                }
              ]
            },
            "description": "ショップ決済手段の取得において検索条件となるクエリパラメータ\n"
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ShopPaymentMethod.PayeeAccount.Retrieving.Response"
                        }
                      ],
                      "title": "銀行振込（指定口座）"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X GET \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n    'https://api.test.fincode.jp/v1/shops/payment_methods/pm_xxxxxxxxxxxxxxxxxxxxxx?pay_type=Payeeaccount'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import fetch from \"node-fetch\";\n\nconst BASE_URL = \"https://api.test.fincode.jp\";\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const id = \"<Shop Payment Method ID>\";  // 適切な ID に置き換えてください\n    const endpoint = `${BASE_URL}/v1/shops/payment_methods/${id}?pay_type=Payeeaccount`;\n\n    const response = await fetch(endpoint, {\n        method: \"GET\",\n        headers: {\n            Authorization: `Bearer ${API_KEY}`,\n            \"Content-Type\": \"application/json\",\n        },\n    });\n\n    if (!response.ok) {\n        console.error(`Error: ${response.statusText}`);\n        return;\n    }\n\n    const data = await response.json();\n    console.log(data);\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tapiKey := \"<Secret API Key>\"\n\tid := \"<Shop Payment Method ID>\"\n\turl := fmt.Sprintf(\"https://api.test.fincode.jp/v1/shops/payment_methods/%s?pay_type=Payeeaccount\", id)\n\n\treq, err := http.NewRequest(\"GET\", url, nil)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエスト作成エラー: %v\", err)\n\t}\n\treq.Header.Set(\"Authorization\", \"Bearer \"+apiKey)\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエスト送信エラー: %v\", err)\n\t}\n\tdefer resp.Body.Close()\n\n\trespBody, _ := io.ReadAll(resp.Body)\n\tfmt.Println(string(respBody))\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n$id = \"<Shop Payment Method ID>\";\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/shops/payment_methods/{$id}?pay_type=Payeeaccount\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: application/json\"\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n\n$response = curl_exec($session);\nif ($response === false) {\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    var_dump($response);\n}\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\nid = '<Shop Payment Method ID>'\nurl = f'https://api.test.fincode.jp/v1/shops/payment_methods/{id}?pay_type=Payeeaccount'\n\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\ntry:\n    response = requests.get(url, headers=headers)\n    if response.status_code == 200:\n        print(f\"Success: {response.json()}\")\n    else:\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    print(f\"通信エラー: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n  id = '<Shop Payment Method ID>'\n  endpoint = \"/v1/shops/payment_methods/#{id}?pay_type=Payeeaccount\"\n  uri = URI.parse(BASE_URL + endpoint)\n\n  http = Net::HTTP.new(uri.host, uri.port)\n  http.use_ssl = true\n\n  request = Net::HTTP::Get.new(uri.request_uri)\n  request['Authorization'] = \"Bearer #{API_KEY}\"\n  request['Content-Type'] = 'application/json'\n\n  response = http.request(request)\n  puts response.body\nend\n\nmain\n"
          }
        ]
      },
      "put": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "updateShopPaymentMethod",
        "tags": [
          "ショップ決済手段"
        ],
        "summary": "ショップ決済手段 更新",
        "description": "IDで指定したショップ決済手段を更新します。\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "ショップ決済手段ID",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/ShopPaymentMethodId_schema"
                }
              ]
            },
            "required": true
          },
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\nこのテナントショップに紐づくショップ決済手段のうち、指定したIDのものを更新します。\n"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/ShopPaymentMethod.PayeeAccount.Updating.Request"
                      }
                    ],
                    "title": "銀行振込（指定口座）"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ShopPaymentMethod.PayeeAccount.Updating.Response"
                        }
                      ],
                      "title": "銀行振込（指定口座）"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X PUT \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\n    \"pay_type\": \"Payeeaccount\",\n    \"display_flag\": \"1\",\n    \"display_number\": \"1\",\n    \"client_field_1\": \"備考1\"\n}' \\\n    'https://api.test.fincode.jp/v1/shops/payment_methods/pm_xxxxxxxxxxxxxxxxxxxxxx'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import fetch from \"node-fetch\";\n\nconst BASE_URL = \"https://api.test.fincode.jp\";\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const id = \"<Shop Payment Method ID>\";\n    const endpoint = `${BASE_URL}/v1/shops/payment_methods/${id}`;\n\n    const response = await fetch(endpoint, {\n        method: \"PUT\",\n        headers: {\n            Authorization: `Bearer ${API_KEY}`,\n            \"Content-Type\": \"application/json\",\n        },\n        body: JSON.stringify({\n            pay_type: \"Payeeaccount\",\n            display_flag: \"1\",\n            display_number: \"1\",\n            client_field_1: \"備考1\",\n        }),\n    });\n\n    if (!response.ok) {\n        console.error(`Error: ${response.statusText}`);\n        return;\n    }\n\n    const data = await response.json();\n    console.log(data);\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"fmt\"\n\t\"io\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tapiKey := \"<Secret API Key>\"\n\tid := \"<Shop Payment Method ID>\"\n\n\turl := fmt.Sprintf(\"https://api.test.fincode.jp/v1/shops/payment_methods/%s\", id)\n\n\treqBody := bytes.NewBufferString(`{\n\t\t\"pay_type\": \"Payeeaccount\",\n\t\t\"display_flag\": \"1\",\n\t\t\"display_number\": \"1\",\n\t\t\"client_field_1\": \"備考1\"\n\t}`)\n\n\treq, err := http.NewRequest(\"PUT\", url, reqBody)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエスト作成エラー: %v\", err)\n\t}\n\treq.Header.Set(\"Authorization\", \"Bearer \"+apiKey)\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエスト送信エラー: %v\", err)\n\t}\n\tdefer resp.Body.Close()\n\n\trespBody, _ := io.ReadAll(resp.Body)\n\tfmt.Println(string(respBody))\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n$id = \"<Shop Payment Method ID>\";\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/shops/payment_methods/{$id}\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: application/json\"\n];\n\n$data = json_encode([\n    \"pay_type\" => \"Payeeaccount\",\n    \"display_flag\" => \"1\",\n    \"display_number\" => \"1\",\n    \"client_field_1\" => \"備考1\"\n]);\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, \"PUT\");\ncurl_setopt($session, CURLOPT_POSTFIELDS, $data);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n\n$response = curl_exec($session);\nif ($response === false) {\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    var_dump($response);\n}\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\nid = '<Shop Payment Method ID>'\nurl = f'https://api.test.fincode.jp/v1/shops/payment_methods/{id}'\n\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\ndata = {\n    \"pay_type\": \"Payeeaccount\",\n    \"display_flag\": \"1\",\n    \"display_number\": \"1\",\n    \"client_field_1\": \"備考1\"\n}\n\ntry:\n    response = requests.put(url, headers=headers, json=data)\n    if response.status_code == 200:\n        print(f\"Success: {response.json()}\")\n    else:\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    print(f\"通信エラー: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n  id = '<Shop Payment Method ID>'\n  endpoint = \"/v1/shops/payment_methods/#{id}\"\n  uri = URI.parse(BASE_URL + endpoint)\n\n  http = Net::HTTP.new(uri.host, uri.port)\n  http.use_ssl = true\n\n  data = {\n    pay_type: \"Payeeaccount\",\n    display_flag: \"1\",\n    display_number: \"1\",\n    client_field_1: \"備考1\"\n  }\n\n  request = Net::HTTP::Put.new(uri.request_uri)\n  request['Authorization'] = \"Bearer #{API_KEY}\"\n  request['Content-Type'] = 'application/json'\n  request.body = data.to_json\n\n  response = http.request(request)\n  puts response.body\nend\n\nmain\n"
          }
        ]
      },
      "delete": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "deleteShopPaymentMethod",
        "tags": [
          "ショップ決済手段"
        ],
        "summary": "ショップ決済手段 削除",
        "description": "IDで指定したショップ決済手段を削除します。\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "ショップ決済手段ID",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/ShopPaymentMethodId_schema"
                }
              ]
            },
            "required": true
          },
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\nこのテナントショップに紐づくショップ決済手段のうち、指定したIDのものを削除します。\n"
          },
          {
            "in": "query",
            "name": "pay_type",
            "schema": {
              "allOf": [
                {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 50,
                  "description": "決済種別\n* `Payeeaccount` - 銀行振込（指定口座）\n"
                }
              ]
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ShopPaymentMethod.PayeeAccount.Deleting.Response"
                        }
                      ],
                      "title": "銀行振込（指定口座）"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X DELETE \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n    'https://api.test.fincode.jp/v1/shops/payment_methods/pm_xxxxxxxxxxxxxxxxxxxxxx?pay_type=Payeeaccount'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import fetch from \"node-fetch\";\n\nconst BASE_URL = \"https://api.test.fincode.jp\";\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const id = \"<Shop Payment Method ID>\";\n    const endpoint = `${BASE_URL}/v1/shops/payment_methods/${id}?pay_type=Payeeaccount`;\n\n    const response = await fetch(endpoint, {\n        method: \"DELETE\",\n        headers: {\n            Authorization: `Bearer ${API_KEY}`,\n            \"Content-Type\": \"application/json\",\n        },\n    });\n\n    if (!response.ok) {\n        console.error(`Error: ${response.statusText}`);\n        return;\n    }\n\n    const data = await response.json();\n    console.log(data);\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tapiKey := \"<Secret API Key>\"\n\tid := \"<Shop Payment Method ID>\"\n\turl := fmt.Sprintf(\"https://api.test.fincode.jp/v1/shops/payment_methods/%s?pay_type=Payeeaccount\", id)\n\n\treq, err := http.NewRequest(\"DELETE\", url, nil)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエスト作成エラー: %v\", err)\n\t}\n\treq.Header.Set(\"Authorization\", \"Bearer \"+apiKey)\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエスト送信エラー: %v\", err)\n\t}\n\tdefer resp.Body.Close()\n\n\trespBody, _ := io.ReadAll(resp.Body)\n\tfmt.Println(string(respBody))\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n$id = \"<Shop Payment Method ID>\";\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/shops/payment_methods/{$id}?pay_type=Payeeaccount\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: application/json\"\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, \"DELETE\");\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n\n$response = curl_exec($session);\nif ($response === false) {\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    var_dump($response);\n}\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\nid = '<Shop Payment Method ID>'\nurl = f'https://api.test.fincode.jp/v1/shops/payment_methods/{id}?pay_type=Payeeaccount'\n\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\ntry:\n    response = requests.delete(url, headers=headers)\n    if response.status_code == 200:\n        print(f\"Success: {response.json()}\")\n    else:\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    print(f\"通信エラー: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n  id = '<Shop Payment Method ID>'\n  endpoint = \"/v1/shops/payment_methods/#{id}?pay_type=Payeeaccount\"\n  uri = URI.parse(BASE_URL + endpoint)\n\n  http = Net::HTTP.new(uri.host, uri.port)\n  http.use_ssl = true\n\n  request = Net::HTTP::Delete.new(uri.request_uri)\n  request['Authorization'] = \"Bearer #{API_KEY}\"\n  request['Content-Type'] = 'application/json'\n\n  response = http.request(request)\n  puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/payments": {
      "get": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "retrievePaymentList",
        "tags": [
          "決済"
        ],
        "summary": "決済 一覧取得",
        "description": "決済情報の一覧を取得します。\n",
        "parameters": [
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\nこのテナントショップに紐づく決済から一覧で取得します。\n"
          },
          {
            "name": "クエリ",
            "in": "query",
            "required": true,
            "schema": {
              "oneOf": [
                {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Payment.ListRetrieving.QueryParams"
                    },
                    {
                      "$ref": "#/components/schemas/Payment.ListRetrieving.Card.QueryParams"
                    },
                    {
                      "$ref": "#/components/schemas/Pagination.QueryParams"
                    }
                  ],
                  "title": "カード決済"
                },
                {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Payment.ListRetrieving.QueryParams"
                    },
                    {
                      "$ref": "#/components/schemas/Payment.ListRetrieving.ApplePay.QueryParams"
                    },
                    {
                      "$ref": "#/components/schemas/Pagination.QueryParams"
                    }
                  ],
                  "title": "Apple Pay"
                },
                {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Payment.ListRetrieving.QueryParams"
                    },
                    {
                      "$ref": "#/components/schemas/Payment.ListRetrieving.Googlepay.QueryParams"
                    },
                    {
                      "$ref": "#/components/schemas/Pagination.QueryParams"
                    }
                  ],
                  "title": "Google Pay"
                },
                {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Payment.ListRetrieving.QueryParams"
                    },
                    {
                      "$ref": "#/components/schemas/Payment.ListRetrieving.Konbini.QueryParams"
                    },
                    {
                      "$ref": "#/components/schemas/Pagination.QueryParams"
                    }
                  ],
                  "title": "コンビニ決済"
                },
                {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Payment.ListRetrieving.QueryParams"
                    },
                    {
                      "$ref": "#/components/schemas/Payment.ListRetrieving.PayPay.QueryParams"
                    },
                    {
                      "$ref": "#/components/schemas/Pagination.QueryParams"
                    }
                  ],
                  "title": "PayPay"
                },
                {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Payment.ListRetrieving.QueryParams"
                    },
                    {
                      "$ref": "#/components/schemas/Payment.ListRetrieving.DirectDebit.QueryParams"
                    },
                    {
                      "$ref": "#/components/schemas/Pagination.QueryParams"
                    }
                  ],
                  "title": "口座振替"
                },
                {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Payment.ListRetrieving.QueryParams"
                    },
                    {
                      "$ref": "#/components/schemas/Payment.ListRetrieving.VirtualAccount.QueryParams"
                    },
                    {
                      "$ref": "#/components/schemas/Pagination.QueryParams"
                    }
                  ],
                  "title": "銀行振込（バーチャル口座）"
                }
              ]
            },
            "description": "決済の一覧取得において検索条件となるクエリパラメータ\n"
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Payment.Card.ListRetrieving.Response"
                        }
                      ],
                      "title": "カード決済"
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Payment.ApplePay.ListRetrieving.Response"
                        }
                      ],
                      "title": "Apple Pay"
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Payment.GooglePay.ListRetrieving.Response"
                        }
                      ],
                      "title": "Google Pay"
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Payment.Konbini.ListRetrieving.Response"
                        }
                      ],
                      "title": "コンビニ決済"
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Payment.PayPay.ListRetrieving.Response"
                        }
                      ],
                      "title": "PayPay"
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Payment.DirectDebit.ListRetrieving.Response"
                        }
                      ],
                      "title": "口座振替"
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Payment.VirtualAccount.ListRetrieving.Response"
                        }
                      ],
                      "title": "銀行振込（バーチャル口座）"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X GET \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n'https://api.test.fincode.jp/v1/payments?pay_type=Card'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    try {\n        // リクエストの送信\n        const payments = await fincode.payments.retrieveList({\n            pay_type: \"Card\",\n            limit: 10,\n        });\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\"GET\", \"https://api.test.fincode.jp/v1/payments\", nil)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\n\tparams := req.URL.Query()\n\tparams.Add(\"limit\", \"10\")\n\tparams.Add(\"pay_type\", \"Card\")\n\treq.URL.RawQuery = params.Encode()\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/payments\";\n$queryParams = [\n    \"pay_type\" => \"Card\",\n    \"limit\" => 10,\n];\n\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint . '?' . http_build_query($queryParams));\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_HTTPGET, true);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\nurl = f'https://api.test.fincode.jp/v1/payments'\nquery_params = {\n    'pay_type': 'Card',\n    'limit': 10,\n}\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n}\n\ntry:\n    response = requests.get(url, headers=headers, params=query_params)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # APIからのデータを処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    endpoint = \"/v1/payments\"\n    query_params =  {\n        limit: 10,\n        pay_type: 'Card',\n    }\n\n    uri = URI.parse(BASE_URL + endpoint)\n    uri.query = URI.encode_www_form(query_params)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Get.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      },
      "post": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "createPayment",
        "tags": [
          "決済"
        ],
        "summary": "決済 登録",
        "description": "決済情報をM's PayBridgeに登録します。決済登録に成功した時点ではまだ顧客に対して請求はされていません。\n",
        "parameters": [
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\n指定したテナントショップを販売主として決済を登録します。テナントが`pay_type`で指定する決済手段契約の審査を完了させている必要があります。\n"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Payment.Card.Creating.Request"
                      }
                    ],
                    "title": "カード決済"
                  },
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Payment.ApplePay.Creating.Request"
                      }
                    ],
                    "title": "Apple Pay"
                  },
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Payment.GooglePay.Creating.Request"
                      }
                    ],
                    "title": "Google Pay"
                  },
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Payment.Konbini.Creating.Request"
                      }
                    ],
                    "title": "コンビニ決済"
                  },
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Payment.PayPay.Creating.Request"
                      }
                    ],
                    "title": "PayPay"
                  },
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Payment.DirectDebit.Creating.Request"
                      }
                    ],
                    "title": "口座振替"
                  },
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Payment.VirtualAccount.Creating.Request"
                      }
                    ],
                    "title": "銀行振込（バーチャル口座）"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Payment.Card.Creating.Response"
                        }
                      ],
                      "title": "カード決済"
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Payment.ApplePay.Creating.Response"
                        }
                      ],
                      "title": "Apple Pay"
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Payment.GooglePay.Creating.Response"
                        }
                      ],
                      "title": "Google Pay"
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Payment.Konbini.Creating.Response"
                        }
                      ],
                      "title": "コンビニ決済"
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Payment.PayPay.Creating.Response"
                        }
                      ],
                      "title": "PayPay"
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Payment.DirectDebit.Creating.Response"
                        }
                      ],
                      "title": "口座振替"
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Payment.VirtualAccount.Creating.Response"
                        }
                      ],
                      "title": "銀行振込（バーチャル口座）"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X POST \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\n    \"pay_type\": \"Card\",\n    \"amount\": \"1000\",\n    \"job_code\": \"CAPTURE\",\n    \"tds_type\": \"2\"\n}' \\\n'https://api.test.fincode.jp/v1/payments'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    try {\n        // リクエストの送信\n        const payment = await fincode.payments.create({\n            pay_type: \"Card\",\n            job_code: \"CAPTURE\",\n            amount: \"1000\",\n            tds_type: \"2\",\n            td_tenant_name: \"My Store\",\n        });\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\tbody := CreatingPaymentRequest{\n\t\tPayType: \"Card\",\n\t\tJobCode: \"CAPTURE\",\n\t\tAmount:  stringPointer(\"1000\"),\n\t\tTdsType: stringPointer(\"2\"),\n\t}\n\n\tmarshalledBody, _ := json.Marshal(body)\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\n\t\t\"POST\",\n\t\t\"https://api.test.fincode.jp/v1/payments\",\n\t\tbytes.NewBuffer(marshalledBody),\n\t)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n\ntype CreatingPaymentRequest struct {\n\tPayType      string  `json:\"pay_type\"`\n\tID           *string `json:\"id,omitempty\"`\n\tJobCode      string  `json:\"job_code\"`\n\tAmount       *string `json:\"amount,omitempty\"`\n\tTax          *string `json:\"tax,omitempty\"`\n\tClientField1 *string `json:\"client_field_1,omitempty\"`\n\tClientField2 *string `json:\"client_field_2,omitempty\"`\n\tClientField3 *string `json:\"client_field_3,omitempty\"`\n\tTdsType      *string `json:\"tds_type,omitempty\"`\n\tTdTenantName *string `json:\"td_tenant_name,omitempty\"`\n\tTds2Type     *string `json:\"tds2_type,omitempty\"`\n}\n\nfunc stringPointer(s string) *string {\n\treturn &s\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/payments\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: application/json\"\n];\n\n$data = json_encode([\n    \"pay_type\" => \"Card\",\n    \"job_code\" => \"CAPTURE\",\n    \"amount\" => \"1000\",\n\n    \"tds_type\" => \"2\",\n    \"td_tenant_name\" => \"My Store\",\n]);\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_POST, true);\ncurl_setopt($session, CURLOPT_POSTFIELDS, $data);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\nurl = f'https://api.test.fincode.jp/v1/payments'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\ndata = {\n    \"pay_type\": \"Card\",\n    \"amount\": \"1000\",\n    \"job_code\": \"CAPTURE\",\n    \"tds_type\": \"2\"\n}\n\n# HTTP POSTリクエストの送信\ntry:\n    response = requests.post(url, headers=headers, json=data)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # 成功した場合の処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    endpoint = \"/v1/payments\"\n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    data = {\n        pay_type: \"Card\",\n        amount: \"1000\",\n        job_code: \"CAPTURE\",\n        tds_type: \"2\",\n    }\n\n    # リクエストの作成\n    request = Net::HTTP::Post.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n    request['Content-Type'] = 'application/json'\n\n    request.body = data.to_json\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/payments/{id}": {
      "put": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Public-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "executePayment",
        "tags": [
          "決済"
        ],
        "summary": "決済 実行",
        "description": "M's PayBridgeに登録された決済情報を指定し、請求を実行します。\n",
        "parameters": [
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\n指定したテナントショップを販売主とした決済のうち、`id`で指定した決済処理を実行します。\n"
          },
          {
            "name": "id",
            "in": "path",
            "description": "オーダーID（決済情報のID）",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/OrderId_schema"
                }
              ]
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Payment.Card.Executing.Request"
                      }
                    ],
                    "title": "カード決済"
                  },
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Payment.ApplePay.Executing.Request"
                      }
                    ],
                    "title": "Apple Pay"
                  },
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Payment.GooglePay.Executing.Request"
                      }
                    ],
                    "title": "Google Pay"
                  },
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Payment.Konbini.Executing.Request"
                      }
                    ],
                    "title": "コンビニ決済"
                  },
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Payment.PayPay.Executing.Request"
                      }
                    ],
                    "title": "PayPay"
                  },
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Payment.DirectDebit.Executing.Request"
                      }
                    ],
                    "title": "口座振替"
                  },
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Payment.VirtualAccount.Executing.Request"
                      }
                    ],
                    "title": "銀行振込（バーチャル口座）"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Payment.Card.Executing.Response"
                        }
                      ],
                      "title": "カード決済"
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Payment.ApplePay.Executing.Response"
                        }
                      ],
                      "title": "Apple Pay"
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Payment.GooglePay.Executing.Response"
                        }
                      ],
                      "title": "Google Pay"
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Payment.Konbini.Executing.Response"
                        }
                      ],
                      "title": "コンビニ決済"
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Payment.PayPay.Executing.Response"
                        }
                      ],
                      "title": "PayPay"
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Payment.DirectDebit.Executing.Response"
                        }
                      ],
                      "title": "口座振替"
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Payment.VirtualAccount.Executing.Response"
                        }
                      ],
                      "title": "銀行振込（バーチャル口座）"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X PUT \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\n    \"pay_type\": \"Card\",\n    \"access_id\": \"<Access ID>\",\n    \"token\": \"<Token from M's PayBridgeJS>\",\n}' \\\n'https://api.test.fincode.jp/v1/payments/{id}'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    const orderId = \"<Order ID>\";\n    const accessId = \"<Access ID>\";\n\n    const customerId = \"<Customer ID>\";\n    const cardId = \"<Card ID>\";\n\n    try {\n        // リクエストの送信\n        const payment = await fincode.payments.execute(orderId, {\n            pay_type: \"Card\",\n            access_id: accessId,\n            customer_id: customerId,\n            card_id: cardId,\n            tds2_ret_url: \"https://your-service.example.com/tds2_return\",\n        });\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\tbody := ExecutingPaymentRequest{\n\t\tPayType:    \"Card\",\n\t\tAccessID:   \"<Access ID>\",\n\t\tCustomerID: stringPointer(\"<Customer ID>\"),\n\t\tCardID:     stringPointer(\"<Card ID>\"),\n\t\tMethod:     stringPointer(\"1\"),\n\t\tTds2RetURL: stringPointer(\"https://your-service.example.com/tds2_returns\"),\n\t}\n\n\tmarshalledBody, _ := json.Marshal(body)\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\"PUT\", \"https://api.test.fincode.jp/v1/payments/{id}\", bytes.NewBuffer(marshalledBody))\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n\ntype ExecutingPaymentRequest struct {\n\tPayType    string  `json:\"pay_type\"`\n\tAccessID   string  `json:\"access_id\"`\n\tToken      *string `json:\"token,omitempty\"`\n\tCustomerID *string `json:\"customer_id,omitempty\"`\n\tCardID     *string `json:\"card_id,omitempty\"`\n\tMethod     *string `json:\"method,omitempty\"`\n\tPayTimes   *string `json:\"pay_times,omitempty\"`\n\tTds2RetURL *string `json:\"tds2_ret_url,omitempty\"`\n}\n\nfunc stringPointer(s string) *string {\n\treturn &s\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$orderId = '<Order ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/payments/{$orderId}\";\n\n$data = json_encode([\n    \"pay_type\" => \"Card\",\n    \"access_id\" => \"<Access ID>\",\n    \"customer_id\" => \"<Customer ID>\",\n    \"card_id\" => \"<Card ID>\",\n]);\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, 'PUT');\ncurl_setopt($session, CURLOPT_POSTFIELDS, $data);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\norder_id = '<Order ID>'\n\nurl = f'https://api.test.fincode.jp/v1/payments/{order_id}/'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\ndata = {\n    \"pay_type\": \"Card\",\n    \"access_id\": \"<Access ID>\",\n    \"token\": \"<Token from M's PayBridgeJS>\",\n}\n\n# HTTP POSTリクエストの送信\ntry:\n    response = requests.put(url, headers=headers, json=data)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # 成功した場合の処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    order_id = '<Order ID>'\n    endpoint = \"/v1/payments/#{order_id}\"\n    query_params =  {\n        pay_type: 'Card',\n    }\n\n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    data = {\n        pay_type: \"Card\",\n        access_id: \"<Access ID>\",\n        token: \"<Token from M's PayBridgeJS>\",\n    }\n\n    # リクエストの作成\n    request = Net::HTTP::Put.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n    request['Content-Type'] = 'application/json'\n\n    request.body = data.to_json\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      },
      "get": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "retrievePayment",
        "tags": [
          "決済"
        ],
        "summary": "決済 取得",
        "description": "指定した決済情報を取得します。\n",
        "parameters": [
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\n指定したテナントショップを販売主とした決済のうち、`id`で指定した決済情報を取得します。\n"
          },
          {
            "name": "id",
            "in": "path",
            "description": "オーダーID（決済情報のID）",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/OrderId_schema"
                }
              ]
            },
            "required": true
          },
          {
            "name": "クエリ",
            "in": "query",
            "required": true,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/Payment.Retrieving.QueryParams"
                }
              ]
            },
            "description": "決済の取得において検索条件となるクエリパラメータ\n"
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Payment.Card.Retrieving.Response"
                        }
                      ],
                      "title": "カード決済"
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Payment.ApplePay.Retrieving.Response"
                        }
                      ],
                      "title": "Apple Pay"
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Payment.GooglePay.Retrieving.Response"
                        }
                      ],
                      "title": "Google Pay"
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Payment.Konbini.Retrieving.Response"
                        }
                      ],
                      "title": "コンビニ決済"
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Payment.PayPay.Retrieving.Response"
                        }
                      ],
                      "title": "PayPay"
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Payment.DirectDebit.Retrieving.Response"
                        }
                      ],
                      "title": "口座振替"
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Payment.VirtualAccount.Retrieving.Response"
                        }
                      ],
                      "title": "銀行振込（バーチャル口座）"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X GET \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n'https://api.test.fincode.jp/v1/payments/{id}?pay_type=Card'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    const orderId = \"<Order ID>\";\n\n    try {\n        // リクエストの送信\n        const payment = await fincode.payments.retrieve(orderId, {\n            pay_type: \"Card\",\n        });\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\torderID := \"<Order ID>\"\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\n\t\t\"GET\",\n\t\tfmt.Sprintf(\"https://api.test.fincode.jp/v1/payments/%s\", orderID),\n\t\tnil,\n\t)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\n\tparams := req.URL.Query()\n\tparams.Add(\"pay_type\", \"Card\")\n\treq.URL.RawQuery = params.Encode()\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$orderId = '<Order ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/payments/{$orderId}\";\n$queryParams = [\n    \"pay_type\" => \"Card\",\n];\n\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint . '?' . http_build_query($queryParams));\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_HTTPGET, true);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\norder_id = '<Order ID>'\n\nurl = f'https://api.test.fincode.jp/v1/payments/{order_id}/'\nquery_params = {\n    'pay_type': 'Card',\n}\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n}\n\ntry:\n    response = requests.get(url, headers=headers, params=query_params)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # APIからのデータを処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    order_id = '<Order ID>'\n    endpoint = \"/v1/payments/#{order_id}\"\n    query_params =  {\n        pay_type: 'Card',\n    }\n\n    uri = URI.parse(BASE_URL + endpoint)\n    uri.query = URI.encode_www_form(query_params)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Get.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/payments/{id}/capture": {
      "put": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "capturePayment",
        "tags": [
          "決済"
        ],
        "summary": "決済 売上確定",
        "description": "`status`が仮売上（`AUTHORIZED`）またはキャンセル（`CANCELED`）である決済に対して売上確定を行います。\\\n成功すると、ステータスが`CAPTURED`に遷移し、その時点を集計対象とした売上入金に反映されます。\n",
        "parameters": [
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\n指定したテナントショップを販売主とした決済のうち、`id`で指定した決済の売上確定を実行します。\n"
          },
          {
            "name": "id",
            "in": "path",
            "description": "オーダーID（決済情報のID）",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/OrderId_schema"
                }
              ]
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Payment.Card.Capturing.Request"
                      }
                    ],
                    "title": "カード決済"
                  },
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Payment.ApplePay.Capturing.Request"
                      }
                    ],
                    "title": "Apple Pay"
                  },
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Payment.GooglePay.Capturing.Request"
                      }
                    ],
                    "title": "Google Pay"
                  },
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Payment.PayPay.Capturing.Request"
                      }
                    ],
                    "title": "PayPay"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Payment.Card.Capturing.Response"
                        }
                      ],
                      "title": "カード決済"
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Payment.ApplePay.Capturing.Response"
                        }
                      ],
                      "title": "Apple Pay"
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Payment.GooglePay.Capturing.Response"
                        }
                      ],
                      "title": "Google Pay"
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Payment.PayPay.Capturing.Response"
                        }
                      ],
                      "title": "PayPay"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X PUT \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\n    \"pay_type\": \"Card\",\n    \"access_id\": \"<Access ID>\"\n}' \\\n'https://api.test.fincode.jp/v1/payments/{id}/capture'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    const orderId = \"<Order ID>\";\n    const accessId = \"<Access ID>\";\n\n    try {\n        // リクエストの送信\n        const payment = await fincode.payments.capture(orderId, {\n            pay_type: \"Card\",\n            access_id: accessId,\n        });\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\torderID := \"<Order ID>\"\n\n\tbody := CapturingPaymentRequest{\n\t\tPayType:  \"Card\",\n\t\tAccessID: \"<Access ID>\",\n\t}\n\n\tmarshalledBody, _ := json.Marshal(body)\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\n\t\t\"PUT\",\n\t\tfmt.Sprintf(\"https://api.test.fincode.jp/v1/payments/%s/capture\", orderID),\n\t\tbytes.NewBuffer(marshalledBody),\n\t)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n\ntype CapturingPaymentRequest struct {\n\tPayType  string  `json:\"pay_type\"`\n\tAccessID string  `json:\"access_id\"`\n\tMethod   *string `json:\"method,omitempty\"`\n\tPayTimes *string `json:\"pay_times,omitempty\"`\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$orderId = '<Order ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/payments/{$orderId}/capture\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: application/json\"\n];\n\n$data = json_encode([\n    \"pay_type\" => \"<Pay Type>\",\n    \"access_id\" => \"<Access ID>\",\n]);\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, 'PUT');\ncurl_setopt($session, CURLOPT_POSTFIELDS, $data);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\norder_id = '<Order ID>'\n\nurl = f'https://api.test.fincode.jp/v1/payments/{order_id}/capture'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\ndata = {\n    \"pay_type\": \"Card\",\n    \"access_id\": \"<Access ID>\"\n}\n\n# HTTP POSTリクエストの送信\ntry:\n    response = requests.put(url, headers=headers, json=data)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # 成功した場合の処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    order_id = '<Order ID>'\n    endpoint = \"/v1/payments/#{order_id}/capture\"\n    \n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    data = {\n        pay_type: \"Card\",\n        access_id: \"<Access ID>\",\n    }\n\n    # リクエストの作成\n    request = Net::HTTP::Put.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n    request['Content-Type'] = 'application/json'\n\n    request.body = data.to_json\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/payments/{id}/cancel": {
      "put": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "cancelPayment",
        "tags": [
          "決済"
        ],
        "summary": "決済 キャンセル",
        "description": "決済をキャンセルします。キャンセルに成功すると`status`はキャンセル済み（`CANCELED`）に遷移します。\\\n\\\nユーザーへの返金の行われ方などは決済手段によって異なります。\\\n詳細は[Docs > 決済](/payment)から参照できます。\n",
        "parameters": [
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\n指定したテナントショップを販売主とした決済のうち、`id`で指定した決済をキャンセルします。\n"
          },
          {
            "name": "id",
            "in": "path",
            "description": "オーダーID（決済情報のID）",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/OrderId_schema"
                }
              ]
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Payment.Card.Canceling.Request"
                      }
                    ],
                    "title": "カード決済"
                  },
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Payment.ApplePay.Canceling.Request"
                      }
                    ],
                    "title": "Apple Pay"
                  },
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Payment.GooglePay.Canceling.Request"
                      }
                    ],
                    "title": "Google Pay"
                  },
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Payment.Konbini.Canceling.Request"
                      }
                    ],
                    "title": "コンビニ決済"
                  },
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Payment.PayPay.Canceling.Request"
                      }
                    ],
                    "title": "PayPay"
                  },
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Payment.DirectDebit.Canceling.Request"
                      }
                    ],
                    "title": "口座振替"
                  },
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Payment.VirtualAccount.Canceling.Request"
                      }
                    ],
                    "title": "銀行振込（バーチャル口座）"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Payment.Card.Canceling.Response"
                        }
                      ],
                      "title": "カード決済"
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Payment.ApplePay.Canceling.Response"
                        }
                      ],
                      "title": "Apple Pay"
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Payment.GooglePay.Canceling.Response"
                        }
                      ],
                      "title": "Google Pay"
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Payment.Konbini.Canceling.Response"
                        }
                      ],
                      "title": "コンビニ決済"
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Payment.PayPay.Canceling.Response"
                        }
                      ],
                      "title": "PayPay"
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Payment.DirectDebit.Canceling.Response"
                        }
                      ],
                      "title": "口座振替"
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Payment.VirtualAccount.Canceling.Response"
                        }
                      ],
                      "title": "銀行振込（バーチャル口座）"
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Payment.PayeeAccount.Canceling.Response"
                        }
                      ],
                      "title": "銀行振込（指定口座）"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X PUT \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\n    \"pay_type\": \"Card\",\n    \"access_id\": \"<Access ID>\"\n}' \\\n'https://api.test.fincode.jp/v1/payments/{id}/cancel'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    const orderId = \"<Order ID>\";\n    const accessId = \"<Access ID>\";\n\n    try {\n        // リクエストの送信\n        const payment = await fincode.payments.cancel(orderId, {\n            pay_type: \"Card\",\n            access_id: accessId,\n        });\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\torderID := \"<Order ID>\"\n\n\tbody := CancelingPaymentRequest{\n\t\tPayType:  \"Card\",\n\t\tAccessID: \"<Access ID>\",\n\t}\n\n\tmarshalledBody, _ := json.Marshal(body)\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\n\t\t\"PUT\",\n\t\tfmt.Sprintf(\"https://api.test.fincode.jp/v1/payments/%s/cancel\", orderID),\n\t\tbytes.NewBuffer(marshalledBody),\n\t)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n\ntype CancelingPaymentRequest struct {\n\tPayType  string `json:\"pay_type\"`\n\tAccessID string `json:\"access_id\"`\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$orderId = '<Order ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/payments/{$orderId}/cancel\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: application/json\"\n];\n\n$data = json_encode([\n    \"pay_type\" => \"<Pay Type>\",\n    \"access_id\" => \"<Access ID>\",\n]);\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, 'PUT');\ncurl_setopt($session, CURLOPT_POSTFIELDS, $data);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\norder_id = '<Order ID>'\n\nurl = f'https://api.test.fincode.jp/v1/payments/{order_id}/cancel'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\ndata = {\n    \"pay_type\": \"Card\",\n    \"access_id\": \"<Access ID>\"\n}\n\n# HTTP POSTリクエストの送信\ntry:\n    response = requests.put(url, headers=headers, json=data)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # 成功した場合の処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    order_id = '<Order ID>'\n    endpoint = \"/v1/payments/#{order_id}/cancel\"\n    \n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    data = {\n        pay_type: \"Card\",\n        access_id: \"<Access ID>\",\n    }\n\n    # リクエストの作成\n    request = Net::HTTP::Put.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n    request['Content-Type'] = 'application/json'\n\n    request.body = data.to_json\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/payments/{id}/auth": {
      "put": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "authorizePayment",
        "tags": [
          "決済"
        ],
        "summary": "決済 再オーソリ",
        "description": "決済のオーソリを再度実行します。\\\n\\\n`pay_type`が`Card`かつ`status`が`CANCELED`の決済（キャンセル済みのカード決済）に対して実行ができ、初回決済時の情報を引き継いで再オーソリを行います。\n",
        "parameters": [
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\n指定したテナントショップを販売主とした決済のうち、`id`で指定した決済のオーソリを再度実行します。\n"
          },
          {
            "name": "id",
            "in": "path",
            "description": "オーダーID（決済情報のID）",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/OrderId_schema"
                }
              ]
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Payment.Card.Reauthorizing.Request"
                      }
                    ],
                    "title": "カード決済"
                  },
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Payment.GooglePay.Reauthorizing.Request"
                      }
                    ],
                    "title": "Google Pay"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Payment.Card.Reauthorizing.Response"
                        }
                      ],
                      "title": "カード決済"
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Payment.GooglePay.Reauthorizing.Response"
                        }
                      ],
                      "title": "Google Pay"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X PUT \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\n    \"pay_type\": \"Card\",\n    \"access_id\": \"<Access ID>\",\n    \"method\": \"1\"\n}' \\\n'https://api.test.fincode.jp/v1/payments/{id}/auth'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    const orderId = \"<Order ID>\";\n    const accessId = \"<Access ID>\";\n\n    try {\n        // リクエストの送信\n        const payment = await fincode.payments.reauthorize(orderId, {\n            pay_type: \"Card\",\n            access_id: accessId,\n            method: \"1\",\n        });\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\tbody := ReauthorizingPaymentRequest{\n\t\tPayType:  \"Card\",\n\t\tAccessID: \"<Access ID>\",\n\t\tMethod:   \"1\",\n\t}\n\n\tmarshalledBody, _ := json.Marshal(body)\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\"PUT\", \"https://api.test.fincode.jp/v1/payments/{id}/auth\", bytes.NewBuffer(marshalledBody))\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n\ntype ReauthorizingPaymentRequest struct {\n\tPayType  string `json:\"pay_type\"`\n\tAccessID string `json:\"access_id\"`\n\tMethod   string `json:\"method\"`\n\tPayTimes string `json:\"pay_times\"`\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$orderId = '<Order ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/payments/{$orderId}/auth\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: application/json\"\n];\n\n$data = json_encode([\n    \"pay_type\" => \"Card\",\n    \"access_id\" => \"<Access ID>\",\n    \"method\" => \"1\",\n]);\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, 'PUT');\ncurl_setopt($session, CURLOPT_POSTFIELDS, $data);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\norder_id = '<Order ID>'\n\nurl = f'https://api.test.fincode.jp/v1/payments/{order_id}/auth'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\ndata = {\n    \"pay_type\": \"Card\",\n    \"access_id\": \"<Access ID>\",\n    \"method\": \"1\"\n}\n\n# HTTP POSTリクエストの送信\ntry:\n    response = requests.put(url, headers=headers, json=data)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # 成功した場合の処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    order_id = '<Order ID>'\n    endpoint = \"/v1/payments/#{order_id}/auth\"\n    \n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    data = {\n        pay_type: \"Card\",\n        access_id: \"<Access ID>\",\n        method: \"1\"\n    }\n\n    # リクエストの作成\n    request = Net::HTTP::Put.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n    request['Content-Type'] = 'application/json'\n\n    request.body = data.to_json\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/payments/{id}/change": {
      "put": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "changeAmountOfPayment",
        "tags": [
          "決済"
        ],
        "summary": "決済 金額変更",
        "description": "決済の利用金額を変更します。\\\n既に売上確定となっている決済は請求金額が変更され、仮売上となっている決済は確保している与信枠の金額が変更されます。\n",
        "parameters": [
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\n指定したテナントショップを販売主とした決済のうち、`id`で指定した決済の利用金額を変更します。\n"
          },
          {
            "name": "id",
            "in": "path",
            "description": "オーダーID（決済情報のID）",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/OrderId_schema"
                }
              ]
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Payment.Card.ChangingAmount.Request"
                      }
                    ],
                    "title": "カード決済"
                  },
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Payment.GooglePay.ChangingAmount.Request"
                      }
                    ],
                    "title": "Google Pay"
                  },
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Payment.PayPay.ChangingAmount.Request"
                      }
                    ],
                    "title": "PayPay"
                  },
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Payment.DirectDebit.ChangingAmount.Request"
                      }
                    ],
                    "title": "口座振替"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Payment.Card.ChangingAmount.Response"
                        }
                      ],
                      "title": "カード決済"
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Payment.GooglePay.ChangingAmount.Response"
                        }
                      ],
                      "title": "Google Pay"
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Payment.PayPay.ChangingAmount.Response"
                        }
                      ],
                      "title": "PayPay"
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Payment.DirectDebit.ChangingAmount.Response"
                        }
                      ],
                      "title": "口座振替"
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Payment.PayeeAccount.ChangingAmount.Response"
                        }
                      ],
                      "title": "銀行振込（指定口座）"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X PUT \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\n    \"pay_type\": \"Card\",\n    \"access_id\": \"<Access ID>\",\n    \"job_code\": \"CAPTURE\",\n    \"amount\": \"1500\"\n}' \\\n'https://api.test.fincode.jp/v1/payments/{id}/change'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    const orderId = \"<Order ID>\";\n    const accessID = \"<Access ID>\";\n\n    try {\n        // リクエストの送信\n        const payment = await fincode.payments.changeAmount(orderId, {\n            pay_type: \"Card\",\n            access_id: accessID,\n            job_code: \"CAPTURE\",\n            amount: \"1200\",\n        });\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\torderID := \"<Order ID>\"\n\n\tbody := ChangingAmountRequest{\n\t\tPayType:  \"Card\",\n\t\tAccessID: \"<Access ID>\",\n\t\tJobCode:  \"1\",\n\t}\n\n\tmarshalledBody, _ := json.Marshal(body)\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\n\t\t\"PUT\",\n\t\tfmt.Sprintf(\"https://api.test.fincode.jp/v1/payments/%s/change\", orderID),\n\t\tbytes.NewBuffer(marshalledBody),\n\t)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n\ntype ChangingAmountRequest struct {\n\tPayType  string `json:\"pay_type\"`\n\tAccessID string `json:\"access_id\"`\n\tJobCode  string `json:\"job_code\"`\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$orderId = '<Order ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/payments/{$orderId}/change\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: application/json\"\n];\n\n$data = json_encode([\n    \"pay_type\" => \"<Pay Type>\",\n    \"access_id\" => \"<Access ID>\",\n    \"job_code\" => \"CAPTURE\",\n    \"amount\" => \"1000\",\n]);\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, 'PUT');\ncurl_setopt($session, CURLOPT_POSTFIELDS, $data);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\norder_id = '<Order ID>'\n\nurl = f'https://api.test.fincode.jp/v1/payments/{order_id}/change'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\ndata = {\n    \"pay_type\": \"Card\",\n    \"access_id\": \"<Access ID>\",\n    \"job_code\": \"CAPTURE\",\n    \"amount\": \"1500\"\n}\n\n# HTTP POSTリクエストの送信\ntry:\n    response = requests.put(url, headers=headers, json=data)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # 成功した場合の処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    order_id = '<Order ID>'\n    endpoint = \"/v1/payments/#{order_id}/change\"\n    \n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    data = {\n        pay_type: \"Card\",\n        access_id: \"<Access ID>\",\n        job_code: \"CAPTURE\",\n        amount: \"1500\"\n    }\n\n    # リクエストの作成\n    request = Net::HTTP::Put.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n    request['Content-Type'] = 'application/json'\n\n    request.body = data.to_json\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/payments/{id}/secure": {
      "put": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Public-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "executePaymentAfterThreeDSecureecure",
        "tags": [
          "決済"
        ],
        "summary": "認証後決済 実行",
        "description": "3Dセキュア認証後の決済を実行します。\\\n\\\n3Dセキュア認証APIもしくは認証結果確定APIのレスポンスの3Dセキュア認証結果（`tds2_trans_result`）が`Y`または`A`のとき、このAPIを実行して3Dセキュア認証後の決済を実行します。\n",
        "parameters": [
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\n指定したテナントショップを販売主とした決済のうち、`id`で指定した決済の3Dセキュア認証後決済を実行します。\n"
          },
          {
            "name": "id",
            "in": "path",
            "description": "オーダーID（決済情報のID）",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/OrderId_schema"
                }
              ]
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/Payment.Card.ExecutingAfterThreeDSecure.Request"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Payment.Card.ExecutingAfterThreeDSecure.Response"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X PUT \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\n    \"pay_type\": \"Card\",\n    \"access_id\": \"<Access ID>\"\n}' \\\n'https://api.test.fincode.jp/v1/payments/{id}/secure'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    const orderId = \"<Order ID>\";\n    const accessId = \"<Access ID>\";\n\n    try {\n        // リクエストの送信\n        const payment = await fincode.payments.executeAfter3DSecureAuth(\n            orderId,\n            {\n                pay_type: \"Card\",\n                access_id: accessId,\n            }\n        );\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\torderID := \"<Order ID>\"\n\n\tbody := ExecutingPaymentAfter3DSecureRequest{\n\t\tPayType:  \"Card\",\n\t\tAccessID: \"<Access ID>\",\n\t}\n\n\tmarshalledBody, _ := json.Marshal(body)\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\n\t\t\"PUT\",\n\t\tfmt.Sprintf(\"https://api.test.fincode.jp/v1/payments/%s/secure\", orderID),\n\t\tbytes.NewBuffer(marshalledBody),\n\t)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n\ntype ExecutingPaymentAfter3DSecureRequest struct {\n\tPayType  string `json:\"pay_type\"`\n\tAccessID string `json:\"access_id\"`\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$orderId = '<Order ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/payments/{$orderId}/secure\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: application/json\"\n];\n\n$data = json_encode([\n    \"pay_type\" => \"Card\",\n    \"access_id\" => \"<Access ID>\",\n]);\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, 'PUT');\ncurl_setopt($session, CURLOPT_POSTFIELDS, $data);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\norder_id = '<Order ID>'\n\nurl = f'https://api.test.fincode.jp/v1/payments/{order_id}/secure'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\ndata = {\n    \"pay_type\": \"Card\",\n    \"access_id\": \"<Access ID>\"\n}\n\n# HTTP POSTリクエストの送信\ntry:\n    response = requests.put(url, headers=headers, json=data)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # 成功した場合の処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    order_id = '<Order ID>'\n    endpoint = \"/v1/payments/#{order_id}/secure\"\n    \n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    data = {\n        pay_type: \"Card\",\n        access_id: \"<Access ID>\",\n    }\n\n    # リクエストの作成\n    request = Net::HTTP::Put.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n    request['Content-Type'] = 'application/json'\n\n    request.body = data.to_json\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/payments/{id}/barcode": {
      "put": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "generateBarcodeOfPayment",
        "tags": [
          "決済"
        ],
        "summary": "バーコード発行",
        "description": "リクエストしたデバイスの情報に合わせてコンビニ決済のバーコードを再度発行します。\n",
        "parameters": [
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\n指定したテナントショップを販売主としたコンビニ決済のうち、`id`で指定した決済のバーコードを再度発行します。\n"
          },
          {
            "name": "id",
            "in": "path",
            "description": "オーダーID（決済情報のID）",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/OrderId_schema"
                }
              ]
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/Payment.Konbini.GeneratingBarcode.Request"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Payment.Konbini.GeneratingBarcode.Response"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X PUT \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\n    \"pay_type\": \"Konbini\",\n    \"access_id\": \"<Access ID>\",\n    \"device_name\": \"iPhone\",\n    \"win_width\": \"390\",\n    \"win_height\": \"844\",\n    \"pixel_ratio\": \"3.00\",\n    \"win_size_type\": \"2\"\n}' \\\n'https://api.test.fincode.jp/v1/payments/{id}/barcode'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    const orderId = \"<Order ID>\";\n    const accessId = \"<Access ID>\";\n\n    const payment = await fincode.payments.generateKonbiniPaymentBarcode(\n        orderId,\n        {\n            access_id: accessId,\n            pay_type: \"Konbini\",\n            device_name: \"iPhone\",\n            win_width: \"390\",\n            win_height: \"844\",\n            pixel_ratio: \"3.00\",\n            win_size_type: \"2\",\n        }\n    );\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\torderID := \"<Order ID>\"\n\n\tbody := GeneratingBarcodeRequest{\n\t\tPayType:     \"Konbini\",\n\t\tAccessID:    \"<Access ID>\",\n\t\tDeviceName:  \"iPhone\",\n\t\tWinWidth:    \"390\",\n\t\tWinHeight:   \"844\",\n\t\tPixelRatio:  \"3.00\",\n\t\tWinSizeType: \"2\",\n\t}\n\n\tmarshalledBody, _ := json.Marshal(body)\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\n\t\t\"PUT\",\n\t\tfmt.Sprintf(\"https://api.test.fincode.jp/v1/payments/%s/barcode\", orderID),\n\t\tbytes.NewBuffer(marshalledBody),\n\t)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n\ntype GeneratingBarcodeRequest struct {\n\tPayType     string `json:\"pay_type\"`\n\tAccessID    string `json:\"access_id\"`\n\tDeviceName  string `json:\"device_name\"`\n\tWinWidth    string `json:\"win_width\"`\n\tWinHeight   string `json:\"win_height\"`\n\tPixelRatio  string `json:\"pixel_ratio\"`\n\tWinSizeType string `json:\"win_size_type\"`\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$orderId = '<Order ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/payments/{$orderId}/barcode\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: application/json\"\n];\n\n$data = json_encode([\n    \"pay_type\" => \"Konbini\",\n    \"access_id\" => \"<Access ID>\",\n    \"device_name\" => \"iPhone\",\n    \"win_width\" => \"390\",\n    \"win_height\" => \"844\",\n    \"pixel_ratio\" => \"3.00\",\n    \"win_size_type\" => \"2\"\n]);\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, 'PUT');\ncurl_setopt($session, CURLOPT_POSTFIELDS, $data);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\norder_id = '<Order ID>'\n\nurl = f'https://api.test.fincode.jp/v1/payments/{order_id}/barcode'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\ndata = {\n    \"pay_type\": \"Konbini\",\n    \"access_id\": \"<Access ID>\",\n    \"device_name\": \"iPhone\",\n    \"win_width\": \"390\",\n    \"win_height\": \"844\",\n    \"pixel_ratio\": \"3.00\",\n    \"win_size_type\": \"2\"\n}\n\n# HTTP POSTリクエストの送信\ntry:\n    response = requests.put(url, headers=headers, json=data)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # 成功した場合の処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    order_id = '<Order ID>'\n    endpoint = \"/v1/payments/#{order_id}/barcode\"\n    \n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    data = {\n        pay_type: \"Konbini\",\n        access_id: \"<Access ID>\",\n        device_name: \"iPhone\",\n        win_width: \"390\",\n        win_height: \"844\",\n        pixel_ratio: \"3.00\",\n        win_size_type: \"2\" \n    }\n\n    # リクエストの作成\n    request = Net::HTTP::Put.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n    request['Content-Type'] = 'application/json'\n\n    request.body = data.to_json\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/secure2/{access_id}": {
      "put": {
        "operationId": "executeThreeDSecureecureAuthentication",
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Public-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "tags": [
          "3Dセキュア認証"
        ],
        "summary": "3Dセキュア 認証実行",
        "description": "`access_id`で指定したカード決済取引の3Dセキュア2.0認証を開始します。\\\n\\\n用意した`tds2_ret_url`に対し`event`パラメータで`ThreeDSecureMethodFinished`もしくは`ThreeDSecureMethodSkipped`イベントが通知されたとき、このAPIを呼び出します。\n\n- レスポンスの`tds2_trans_result`が`Y`または`A`のとき、認証後決済 実行APIを呼び出し3Dセキュア認証された決済を完了させます。\n- レスポンスの`tds2_trans_result`が`C`のとき、`challenge_url`にリダイレクトし購入者にチャレンジ認証を実施させ、結果を3Dセキュア認証 結果確定APIで確定します。\n- レスポンスの`tds2_trans_result`が上記以外の場合、3Dセキュア認証で決済が拒否されたことを示します。\n",
        "parameters": [
          {
            "name": "access_id",
            "in": "path",
            "description": "取引ID",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/AccessId_schema"
                }
              ]
            },
            "required": true
          },
          {
            "name": "Tenant-Shop-Id",
            "in": "header",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\nこのテナントショップの決済情報のうち、指定した`access_id`のカード決済の3Dセキュア認証を開始します。\n",
            "required": false
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ThreeDSecure.Authorizing.Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ThreeDSecure.Authorizing.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X PUT \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\n    \"param\": \"valuereturnedfrom3dsprocess\"\n}' \\\n'https://api.test.fincode.jp/v1/secure2/{access_id}'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    const accessId = \"<Access ID>\";\n\n    try {\n        // リクエストの送信\n        const result = await fincode.payments.execute3DSecureAuth(accessId, {\n            param: \"<Value you received in tds2_ret_url>\",\n        });\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\taccessID := \"<Access ID>\"\n\n\tbody := Executing3DSecureAuthRequest{\n\t\tParam: \"<Value you received in tds2_ret_url>\",\n\t}\n\n\tmarshalledBody, _ := json.Marshal(body)\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\n\t\t\"PUT\",\n\t\tfmt.Sprintf(\"https://api.test.fincode.jp/v1/secure2/%s\", accessID),\n\t\tbytes.NewBuffer(marshalledBody),\n\t)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n\ntype Executing3DSecureAuthRequest struct {\n\tParam string `json:\"param\"`\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$accessId = '<Access ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/secure2/{$accessId}\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: application/json\"\n];\n\n$data = json_encode([\n    \"param\" => \"<Value you received in tds2_ret_url>\"\n]);\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, 'PUT');\ncurl_setopt($session, CURLOPT_POSTFIELDS, $data);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\naccess_id = '<Access ID>'\n\nurl = f'https://api.test.fincode.jp/v1/secure2/{access_id}'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\ndata = {\n    \"param\": \"<Value you received in tds2_ret_url>\"\n}\n\n# HTTP POSTリクエストの送信\ntry:\n    response = requests.put(url, headers=headers, json=data)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # 成功した場合の処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    access_id = '<Access ID>'\n    endpoint = \"/v1/secure2/#{access_id}\"\n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    data = {\n        param: '<Value you received in tds2_ret_url>'\n    }\n\n    # リクエストの作成\n    request = Net::HTTP::Put.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n    request['Content-Type'] = 'application/json'\n\n    request.body = data.to_json\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      },
      "get": {
        "operationId": "confirmThreeDSecureecureAuthentication",
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Public-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "tags": [
          "3Dセキュア認証"
        ],
        "summary": "3Dセキュア 認証結果確定",
        "description": "`access_id`で指定したカード決済取引の3Dセキュア認証の結果を確定します。\\\n\\\n`challenge_url`上で購入者がチャレンジ認証実施後、`tds2_ret_url`に対し`event`パラメータで`AuthResultReady`イベントが通知されたとき、このAPIを呼び出します。\n\n- レスポンスの`tds2_trans_result`が`Y`または`A`のとき、認証後決済 実行APIを呼び出し3Dセキュア認証された決済を完了させます。\n- レスポンスの`tds2_trans_result`が上記以外の場合、3Dセキュア認証で決済が拒否されたことを示します。\n",
        "parameters": [
          {
            "name": "access_id",
            "in": "path",
            "description": "取引ID",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/AccessId_schema"
                }
              ]
            },
            "required": true
          },
          {
            "name": "pay_type",
            "in": "query",
            "description": "この決済で利用する決済手段です。未指定の場合、`Card`となります。\n\n- `Card`: カード（デフォルト）\n- `Googlepay`: Google Pay\n",
            "schema": {
              "type": "string",
              "example": "Card"
            }
          },
          {
            "name": "Tenant-Shop-Id",
            "in": "header",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\nこのテナントショップの決済情報のうち、指定した`access_id`のカード決済の3Dセキュア認証の結果を確定します。\n",
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ThreeDSecure.Confirming.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X GET \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n'https://api.test.fincode.jp/v1/secure2/{access_id}'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    const accessId = \"<Access ID>\";\n\n    try {\n        // リクエストの送信\n        const result = await fincode.payments.retrieve3DSecureAuthResult(\n            accessId\n        );\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\taccessID := \"<Access ID>\"\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\n\t\t\"GET\",\n\t\tfmt.Sprintf(\"https://api.test.fincode.jp/v1/secure2/%s\", accessID),\n\t\tnil,\n\t)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$accessId = '<Access ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/secure2/{$accessId}\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_HTTPGET, true);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\naccess_id = '<Access ID>'\n\nurl = f'https://api.test.fincode.jp/v1/secure2/{access_id}'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n}\n\ntry:\n    response = requests.get(url, headers=headers)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # APIからのデータを処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    access_id = '<Access ID>'\n    endpoint = \"/v1/secure2/#{access_id}\"\n\n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Get.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/sessions": {
      "post": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "createPaymentSession",
        "tags": [
          "リダイレクト型決済"
        ],
        "summary": "決済URL 作成",
        "parameters": [
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\n指定したテナントショップで決済を行います。\n"
          }
        ],
        "description": "M's PayBridgeが提供するリダイレクト型決済ページを発行し、その決済ページへのURLをレスポンスします。\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PaymentSession.Creating.Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentSession.Creating.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X POST \\\n    -H \"Authorization: Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\n    \"success_url\": \"https://your-service.example.com/success\",\n    \"cancel_url\": \"https://your-service.example.com/cancel\",\n    \"transaction\": {\n        \"pay_type\": [\"Card\", \"Konbini\", \"Paypay\"],\n        \"amount\": \"1000\"\n    },\n    \"card\": {\n        \"job_code\": \"CAPTURE\",\n        \"tds_type\": \"2\",\n        \"tds2_type\": \"2\"\n    },\n    \"konbini\": {\n        \"payment_term_day\": 2,\n        \"konbini_reception_mail_send_flag\": \"0\"\n    },\n    \"paypay\": {\n        \"job_code\": \"CAPTURE\"\n    }\n}' \\\n\"https://api.test.fincode.jp/v1/sessions\"\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    try {\n        // リクエストの送信\n        const paymentSession = await fincode.paymentSessions.create({\n            success_url: \"https://your-service.example.com/success\",\n            cancel_url: \"https://your-service.example.com/cancel\",\n            shop_service_name: \"My Store\",\n            transaction: {\n                pay_type: [\"Card\"],\n                amount: \"1000\",\n            },\n            card: {\n                job_code: \"CAPTURE\",\n                tds_type: \"2\",\n                tds2_type: \"2\",\n                td_tenant_name: \"My Store\",\n            },\n        });\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\tbody := CreatingPaymentSessionRequest{\n\t\tSuccessURL: stringPointer(\"https://your-service.example.com/success\"),\n\t\tCancelURL:  stringPointer(\"https://your-service.example.com/cancel\"),\n\t\tTransaction: Transaction{\n\t\t\tPayType: []string{\"Card\", \"Konbini\", \"Paypay\"},\n\t\t\tAmount:  \"1234\",\n\t\t},\n\t\tCard: &CardPaymentSession{\n\t\t\tJobCode:  \"CAPTURE\",\n\t\t\tTdsType:  stringPointer(\"2\"),\n\t\t\tTds2Type: stringPointer(\"2\"),\n\t\t},\n\t\tKonbini: &KonbiniPaymentSession{\n\t\t\tPaymentTermDay:               2,\n\t\t\tKonbiniReceptionMailSendFlag: \"0\",\n\t\t},\n\t\tPayPay: &PayPayPaymentSession{\n\t\t\tJobCode: \"CAPTURE\",\n\t\t},\n\t}\n\n\tmarshalledBody, _ := json.Marshal(body)\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\n\t\t\"POST\",\n\t\t\"https://api.test.fincode.jp/v1/sessions\",\n\t\tbytes.NewBuffer(marshalledBody),\n\t)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n\ntype CreatingPaymentSessionRequest struct {\n\tSuccessURL         *string                `json:\"success_url,omitempty\"`\n\tCancelURL          *string                `json:\"cancel_url,omitempty\"`\n\tExpire             *string                `json:\"expire,omitempty\"`\n\tShopServiceName    *string                `json:\"shop_service_name,omitempty\"`\n\tReceiverMail       *string                `json:\"receiver_mail,omitempty\"`\n\tMailCustomerName   *string                `json:\"mail_customer_name,omitempty\"`\n\tGuildeMailSendFlag *string                `json:\"guilde_mail_send_flag,omitempty\"`\n\tThanksMailSendFlag *string                `json:\"thanks_mail_send_flag,omitempty\"`\n\tShopMailTemplateID *string                `json:\"shop_mail_template_id,omitempty\"`\n\tTransaction        Transaction            `json:\"transaction\"`\n\tCard               *CardPaymentSession    `json:\"card,omitempty\"`\n\tKonbini            *KonbiniPaymentSession `json:\"konbini,omitempty\"`\n\tPayPay             *PayPayPaymentSession  `json:\"paypay,omitempty\"`\n}\ntype Transaction struct {\n\tPayType      []string `json:\"pay_type\"`\n\tOrderID      *string  `json:\"order_id,omitempty\"`\n\tAmount       string   `json:\"amount\"`\n\tTax          *string  `json:\"tax,omitempty\"`\n\tClientField1 *string  `json:\"client_field_1,omitempty\"`\n\tClientField2 *string  `json:\"client_field_2,omitempty\"`\n\tClientField3 *string  `json:\"client_field_3,omitempty\"`\n}\n\ntype CardPaymentSession struct {\n\tJobCode      string  `json:\"job_code,omitempty\"`\n\tTdsType      *string `json:\"tds_type,omitempty\"`\n\tTds2Type     *string `json:\"tds2_type,omitempty\"`\n\tTdTenantName *string `json:\"td_tenant_name,omitempty\"`\n}\n\ntype KonbiniPaymentSession struct {\n\tPaymentTermDay               int    `json:\"payment_term_day,omitempty\"`\n\tKonbiniReceptionMailSendFlag string `json:\"konbini_reception_mail_send_flag,omitempty\"`\n}\n\ntype PayPayPaymentSession struct {\n\tJobCode          string  `json:\"job_code,omitempty\"`\n\tOrderDescrpition *string `json:\"order_description,omitempty\"`\n}\n\nfunc stringPointer(s string) *string {\n\treturn &s\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/sessions\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: application/json\"\n];\n\n$data = json_encode([\n    \"success_url\" => \"https://your-service.example.com/success\",\n    \"cancel_url\" => \"https://your-service.example.com/cancel\",\n    \"transaction\" => [\n        \"pay_type\" => [\"Card\", \"Konbini\", \"Paypay\"],\n        \"amount\" => \"1000\",\n    ],\n    \"card\" => [\n        \"job_code\" => \"CAPTURE\",\n        \"tds_type\" => \"2\",\n        \"tds2_type\" => \"2\",\n    ],\n    \"konbini\" => [\n        \"payment_term_day\" => 2,\n        \"konbini_reception_mail_send_flag\" => \"0\"\n    ],\n    \"paypay\" => [\n        \"job_code\" => \"CAPTURE\",\n    ]\n]);\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_POST, true);\ncurl_setopt($session, CURLOPT_POSTFIELDS, $data);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\nurl = f'https://api.test.fincode.jp/v1/sessions'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\ndata = {\n    \"success_url\": \"https://your-service.example.com/success\",\n    \"cancel_url\": \"https://your-service.example.com/cancel\",\n    \"transaction\": {\n        \"pay_type\": [\"Card\", \"Konbini\", \"Paypay\"],\n        \"amount\": \"1000\"\n    },\n    \"card\": {\n        \"job_code\": \"CAPTURE\",\n        \"tds_type\": \"2\",\n        \"tds2_type\": \"2\"\n    },\n    \"konbini\": {\n        \"payment_term_day\": 3,\n        \"konbini_reception_mail_send_flag\": \"0\"\n    },\n    \"paypay\": {\n        \"job_code\": \"CAPTURE\"\n    }\n}\n\n# HTTP POSTリクエストの送信\ntry:\n    response = requests.post(url, headers=headers, json=data)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # 成功した場合の処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    endpoint = \"/v1/sessions\"\n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    data = {\n        success_url: \"https://your-service.example.com/success\",\n        cancel_url: \"https://your-service.example.com/cancel\",\n        transaction: {\n            pay_type: [\"Card\", \"Konbini\", \"Paypay\"],\n            amount: \"1000\"\n        },\n        card: {\n            job_code: \"CAPTURE\",\n            tds_type: \"2\",\n            tds2_type: \"2\"\n        },\n        konbini: {\n            payment_term_day: 2,\n            konbini_reception_mail_send_flag: \"0\"\n        },\n        paypay: {\n            job_code: \"CAPTURE\"\n        }\n    }\n\n    # リクエストの作成\n    request = Net::HTTP::Post.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n    request['Content-Type'] = 'application/json'\n\n    request.body = data.to_json\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/card_sessions": {
      "post": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "createCardRegistrationSession",
        "tags": [
          "リダイレクト型カード登録"
        ],
        "summary": "カード登録URL 作成",
        "parameters": [
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ 顧客情報を共有しないプラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\n指定したテナントショップ上の顧客に対してカードを登録するためのカード登録URLを発行します。\n"
          }
        ],
        "description": "M's PayBridgeが提供するリダイレクト型カード登録ページを発行し、そのカード登録ページへのURLをレスポンスします。\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CardRegistrationSession.Creating.Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CardRegistrationSession.Creating.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X POST \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\n    \"success_url\": \"http://your-service.example.com/success\",\n    \"cancel_url\": \"http://your-service.example.com/cancel\",\n}' \\\n'https://api.test.fincode.jp/v1/card_sessions'\n\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    try {\n        // リクエストの送信\n        const cardRegistrationSession =\n            await fincode.cardRegistrationSessions.create({\n                success_url: \"https://your-service.example.com/success\",\n                cancel_url: \"https://your-service.example.com/cancel\",\n            });\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\tbody := PaymentSessionCreatingRequest{\n\t\tSuccessURL: \"https://your-service.example.com/success\",\n\t\tCancelURL:  \"https://your-service.example.com/cancel\",\n\t\tTransaction: Transaction{\n\t\t\tPayType: []string{\"Card\"},\n\t\t\tAmount:  \"1234\",\n\t\t},\n\t}\n\n\tmarshalledBody, _ := json.Marshal(body)\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\"POST\", \"https://api.test.fincode.jp/v1/card_sessions\", bytes.NewBuffer(marshalledBody))\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n\ntype PaymentSessionCreatingRequest struct {\n\tSuccessURL  string      `json:\"success_url\"`\n\tCancelURL   string      `json:\"cancel_url\"`\n\tTransaction Transaction `json:\"transaction\"`\n}\n\ntype Transaction struct {\n\tPayType []string `json:\"pay_type\"`\n\tAmount  string   `json:\"amount\"`\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/card_sessions\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: application/json\"\n];\n\n$data = json_encode([\n    \"success_url\" => \"http://your-service.example.com/success\",\n    \"cancel_url\" => \"http://your-service.example.com/cancel\",\n]);\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_POST, true);\ncurl_setopt($session, CURLOPT_POSTFIELDS, $data);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\nurl = f'https://api.test.fincode.jp/v1/card_sessions'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\ndata = {\n    \"success_url\": \"http://your-service.example.com/success\",\n    \"cancel_url\": \"http://your-service.example.com/cancel\",\n}\n\n# HTTP POSTリクエストの送信\ntry:\n    response = requests.post(url, headers=headers, json=data)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # 成功した場合の処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    endpoint = \"/v1/card_sessions\"\n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n\n    data = {\n        success_url: \"http://your-service.example.com/success\",\n        cancel_url: \"http://your-service.example.com/cancel\",\n    }\n\n    # リクエストの作成\n    request = Net::HTTP::Post.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n    request['Content-Type'] = 'application/json'\n\n    request.body = data.to_json\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/plans": {
      "post": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "createPlan",
        "tags": [
          "プラン"
        ],
        "summary": "プラン 登録",
        "description": "プラン情報を登録します。\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Plan.Creating.Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Plan.Creating.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X POST \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\n    \"plan_name\": \"Gold Plan\",\n    \"amount\": \"1000\",\n    \"interval_pattern\": \"month\",\n    \"interval_count\": \"1\"\n}' \\\n'https://api.test.fincode.jp/v1/plans'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    try {\n        // リクエストの送信\n        const plan = await fincode.plans.create({\n            plan_name: \"Gold Plan\",\n            amount: \"1000\",\n        });\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\tbody := CreatingPlanRequest{\n\t\tPlanName:        \"Gold Plan\",\n\t\tAmount:          \"1000\",\n\t\tIntervalPattern: stringPointer(\"month\"),\n\t\tIntervalCount:   stringPointer(\"1\"),\n\t}\n\n\tmarshalledBody, _ := json.Marshal(body)\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\"POST\", \"https://api.test.fincode.jp/v1/plans\", bytes.NewBuffer(marshalledBody))\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n\ntype CreatingPlanRequest struct {\n\tID              *string `json:\"id,omitempty\"`\n\tPlanName        string  `json:\"plan_name\"`\n\tDescription     *string `json:\"description,omitempty\"`\n\tAmount          string  `json:\"amount\"`\n\tTax             *string `json:\"tax,omitempty\"`\n\tIntervalPattern *string `json:\"interval_pattern,omitempty\"`\n\tIntervalCount   *string `json:\"interval_count,omitempty\"`\n}\n\nfunc stringPointer(s string) *string {\n\treturn &s\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/plans\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: application/json\"\n];\n\n$data = json_encode([\n    \"plan_name\" => \"Gold Plan\",\n    \"amount\" => \"1000\",\n    \"interval_pattern\" => \"month\",\n    \"interval_count\" => \"1\",\n]);\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_POST, true);\ncurl_setopt($session, CURLOPT_POSTFIELDS, $data);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\nurl = f'https://api.test.fincode.jp/v1/plans'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\ndata = {\n    \"plan_name\": \"Gold Plan\",\n    \"amount\": \"1000\",\n    \"interval_pattern\": \"month\",\n    \"interval_count\": \"1\"\n}\n\n# HTTP POSTリクエストの送信\ntry:\n    response = requests.post(url, headers=headers, json=data)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # 成功した場合の処理\n        print(f\"Success: \", response.json())\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    endpoint = \"/v1/plans\"\n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    data = {\n        plan_name: \"Gold Plan\",\n        amount: \"1000\",\n        interval_pattern: \"month\",\n        interval_count: \"1\"\n    }\n\n    # リクエストの作成\n    request = Net::HTTP::Post.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n    request['Content-Type'] = 'application/json'\n\n    request.body = data.to_json\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      },
      "get": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "retrievePlanList",
        "tags": [
          "プラン"
        ],
        "summary": "プラン 一覧取得",
        "description": "プラン情報を一覧で取得します。クエリパラメータを指定して取得する条件を絞り込めます。\n",
        "parameters": [
          {
            "in": "query",
            "name": "クエリ",
            "description": "プラン情報の一覧取得において検索条件となるクエリパラメータ\n",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/Pagination.QueryParams"
                },
                {
                  "$ref": "#/components/schemas/Plan.ListRetrieving.QueryParams"
                }
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Plan.ListRetrieving.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X GET \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n'https://api.test.fincode.jp/v1/plans'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    try {\n        // リクエストの送信\n        const plans = await fincode.plans.retrieveList({\n            limit: 10,\n        });\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\n\t\t\"GET\",\n\t\t\"https://api.test.fincode.jp/v1/plans\",\n\t\tnil,\n\t)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\n\tparams := req.URL.Query()\n\tparams.Add(\"limit\", \"10\")\n\treq.URL.RawQuery = params.Encode()\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/plans\";\n$queryParams = [\n    \"limit\" => 10,\n];\n\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint . '?' . http_build_query($queryParams));\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_HTTPGET, true);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\nurl = f'https://api.test.fincode.jp/v1/plans'\nquery_params = { 'limit': 10 }\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n}\n\ntry:\n    response = requests.get(url, headers=headers, params=query_params)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # APIからのデータを処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    endpoint = \"/v1/plans\"\n    query_params =  { limit: 10 }\n    \n    uri = URI.parse(BASE_URL + endpoint)\n    uri.query = URI.encode_www_form(query_params)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Get.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/plans/{id}": {
      "get": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "retrievePlan",
        "tags": [
          "プラン"
        ],
        "summary": "プラン 取得",
        "description": "IDで指定したプラン情報を取得します。\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "プランID",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/PlanId_schema"
                }
              ]
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Plan.Retrieving.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X GET \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n'https://api.test.fincode.jp/v1/plans/{id}'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    const planId = \"<Plan ID>\";\n\n    try {\n        // リクエストの送信\n        const plan = await fincode.plans.retrieve(planId);\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\tplanID := \"<Plan ID>\"\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\n\t\t\"GET\",\n\t\tfmt.Sprintf(\"https://api.test.fincode.jp/v1/plans/%s\", planID),\n\t\tnil,\n\t)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$planId = '<Plan ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/plans/{$planId}\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_HTTPGET, true);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\nplan_id = '<Plan ID>'\n\nurl = f'https://api.test.fincode.jp/v1/plans/{plan_id}'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n}\n\ntry:\n    response = requests.get(url, headers=headers)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # APIからのデータを処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    plan_id = '<Plan ID>'\n\n    endpoint = \"/v1/plans/#{plan_id}\"\n\n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Get.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      },
      "put": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "updatePlan",
        "tags": [
          "プラン"
        ],
        "summary": "プラン 更新",
        "description": "IDで指定したプラン情報を更新します。\\\nプランが1つ以上のサブスクリプションで使用されているとき（`used_flag = 1`のとき）、プランは更新できません。\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "プランID",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/PlanId_schema"
                }
              ]
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Plan.Updating.Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Plan.Updating.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X PUT \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\n    \"plan_name\": \"Pro Plan\",\n    \"description\": \"Pro Plan (previous: Gold Plan)\"\n}' \\\n'https://api.test.fincode.jp/v1/plans/{id}'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    const planId = \"<Plan ID>\";\n\n    try {\n        // リクエストの送信\n        const plan = await fincode.plans.update(planId, {\n            plan_name: \"Pro Plan\",\n            description: \"This is a Pro plan. (previously Gold Plan)\",\n            amount: \"2000\",\n        });\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\tplanID := \"<Plan ID>\"\n\tbody := UpdatingPlanRequest{\n\t\tPlanName:    stringPointer(\"Pro Name\"),\n\t\tDescription: stringPointer(\"This is a plan for professionals (previously Gold Plan)\"),\n\t\tAmount:      stringPointer(\"2000\"),\n\t}\n\n\tmarshalledBody, _ := json.Marshal(body)\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\n\t\t\"PUT\",\n\t\tfmt.Sprintf(\"https://api.test.fincode.jp/v1/plans/%s\", planID),\n\t\tbytes.NewBuffer(marshalledBody),\n\t)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n\ntype UpdatingPlanRequest struct {\n\tPlanName        *string `json:\"plan_name\"`\n\tDescription     *string `json:\"description\"`\n\tAmount          *string `json:\"amount\"`\n\tTax             *string `json:\"tax\"`\n\tIntervalPattern *string `json:\"interval_pattern\"`\n\tIntervalCount   *string `json:\"interval_count\"`\n}\n\nfunc stringPointer(s string) *string {\n\treturn &s\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$planId = '<Plan ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/plans/{$planId}\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: application/json\"\n];\n\n$data = json_encode([\n    \"plan_name\" => \"Pro Plan\",\n    \"description\" => \"This is a Pro Plan (previously Gold Plan)\",\n]);\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, 'PUT');\ncurl_setopt($session, CURLOPT_POSTFIELDS, $data);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\nplan_id = '<Plan ID>'\n\nurl = f'https://api.test.fincode.jp/v1/plans/{plan_id}'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\ndata = {\n    \"plan_name\": \"Pro Plan\",\n    \"description\": \"Pro Plan (previous: Gold Plan)\"\n}\n\n# HTTP POSTリクエストの送信\ntry:\n    response = requests.put(url, headers=headers, json=data)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # 成功した場合の処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    plan_id = '<Plan ID>'\n    endpoint = \"/v1/plans/#{plan_id}\"\n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n    \n    data = {\n        plan_name: \"Pro Plan\",\n        description: \"Pro Plan (previous: Gold Plan)\"\n    }\n\n    # リクエストの作成\n    request = Net::HTTP::Put.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n    request['Content-Type'] = 'application/json'\n\n    request.body = data.to_json\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      },
      "delete": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "deletePlan",
        "tags": [
          "プラン"
        ],
        "summary": "プラン 削除",
        "description": "IDで指定したプラン情報を削除します。\\\nプランが1つ以上のサブスクリプションで使用されている場合（`used_flag = 1`のとき）でも削除可能です。  \nプランを削除しても既に登録済みのサブスクリプションには影響しません。  \n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "プランID",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/PlanId_schema"
                }
              ]
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Plan.Deleting.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X DELETE \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n'https://api.test.fincode.jp/v1/plans/{id}'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    const planId = \"<Plan ID>\";\n\n    try {\n        // リクエストの送信\n        const result = await fincode.plans.delete(planId);\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\tplanID := \"<Plan ID>\"\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\n\t\t\"DELETE\",\n\t\tfmt.Sprintf(\"https://api.test.fincode.jp/v1/plans/%s\", planID),\n\t\tnil,\n\t)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$planId = '<Plan ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/plans/{$planId}\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, 'DELETE');\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\nplan_id = '<Plan ID>'\n\nurl = f'https://api.test.fincode.jp/v1/plans/{plan_id}'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n}\n\ntry:\n    response = requests.delete(url, headers=headers)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # APIからのデータを処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    plan_id = '<Plan ID>'\n\n    endpoint = \"/v1/plans/#{plan_id}\"\n\n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Delete.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/subscriptions": {
      "post": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "createSubscription",
        "tags": [
          "サブスクリプション"
        ],
        "summary": "サブスクリプション 登録",
        "description": "`customer_id`で指定した顧客に対して`plan_id`で指定したプランを適用したサブスクリプション情報を登録します。\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Subscription.Creating.Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Subscription.Creating.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X POST \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\n    \"pay_type\": \"Card\",\n    \"plan_id\": \"<Plan ID>\",\n    \"customer_id\": \"<Customer ID>\",\n    \"card_id\": \"<Card ID>\",\n    \"start_date\": \"2025/05/05\",\n    \"stop_date\": \"2025/06/05\"\n}' \\\n'https://api.test.fincode.jp/v1/subscriptions'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    const planId = \"<Plan ID>\";\n\n    const customerId = \"<Customer ID>\";\n    const cardId = \"<Card ID>\";\n\n    try {\n        // リクエストの送信\n        const subscription = await fincode.subscriptions.create({\n            pay_type: \"Card\",\n            plan_id: planId,\n            customer_id: customerId,\n            card_id: cardId,\n            start_date: \"2022/05/16\",\n        });\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\tbody := CreatingSubscriptionRequest{\n\t\tPayType:       \"Card\",\n\t\tPlanID:        \"<Plan ID>\",\n\t\tCustomerID:    \"<Customer ID>\",\n\t\tCardID:        stringPointer(\"<Card ID>\"),\n\t\tStartDate:     stringPointer(\"2024/11/01\"),\n\t\tInitialAmount: stringPointer(\"5000\"),\n\t}\n\n\tmarshalledBody, _ := json.Marshal(body)\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\"POST\", \"https://api.test.fincode.jp/v1/subscriptions\", bytes.NewBuffer(marshalledBody))\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n\ntype CreatingSubscriptionRequest struct {\n\tID            *string `json:\"id,omitempty\"`\n\tPayType       string  `json:\"pay_type\"`\n\tPlanID        string  `json:\"plan_id\"`\n\tCustomerID    string  `json:\"customer_id\"`\n\tCardID        *string `json:\"card_id,omitempty\"`\n\tStartDate     *string `json:\"start_date,omitempty\"`\n\tStopDate      *string `json:\"stop_date,omitempty\"`\n\tEndMonthFlag  *string `json:\"end_month_flag,omitempty\"`\n\tSendURL       *string `json:\"send_url,omitempty\"`\n\tClientField1  *string `json:\"client_field_1,omitempty\"`\n\tClientField2  *string `json:\"client_field_2,omitempty\"`\n\tClientField3  *string `json:\"client_field_3,omitempty\"`\n\tInitialAmount *string `json:\"initial_amount,omitempty\"`\n\tInitialTax    *string `json:\"initial_tax,omitempty\"`\n}\n\nfunc stringPointer(s string) *string {\n\treturn &s\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/subscriptions\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: application/json\"\n];\n\n$data = json_encode([\n    \"pay_type\" => \"Card\",\n    \"plan_id\" => \"<Plan ID>\",\n    \"customer_id\" => \"<Customer ID>\",\n    \"card_id\" => \"<Card ID>\",\n    \"start_date\" => \"2022/05/16\",\n]);\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_POST, true);\ncurl_setopt($session, CURLOPT_POSTFIELDS, $data);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\nurl = f'https://api.test.fincode.jp/v1/subscriptions'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\ndata = {\n    \"pay_type\": \"Card\",\n    \"plan_id\": \"<Plan ID>\",\n    \"customer_id\": \"<Customer ID>\",\n    \"card_id\": \"<Card ID>\",\n    \"start_date\": \"2022/05/16\"\n}\n\n# HTTP POSTリクエストの送信\ntry:\n    response = requests.post(url, headers=headers, json=data)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # 成功した場合の処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    endpoint = \"/v1/subscriptions\"\n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    data = {\n        pay_type: \"Card\",\n        plan_id: \"<Plan ID>\",\n        customer_id: \"<Customer ID>\",\n        card_id: \"<Card ID>\",\n        start_date: \"2025/05/05\",\n        stop_date: \"2025/06/05\"\n    }\n\n    # リクエストの作成\n    request = Net::HTTP::Post.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n    request['Content-Type'] = 'application/json'\n\n    request.body = data.to_json\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      },
      "get": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "retrieveSubscriptionList",
        "tags": [
          "サブスクリプション"
        ],
        "summary": "サブスクリプション 一覧取得",
        "description": "サブスクリプション情報を一覧で取得します。クエリパラメータを指定して取得する条件を絞り込めます。\n",
        "parameters": [
          {
            "in": "query",
            "name": "クエリ",
            "description": "サブスクリプション情報の一覧取得において検索条件となるクエリパラメータ\n",
            "required": true,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/Pagination.QueryParams"
                },
                {
                  "$ref": "#/components/schemas/Subscription.ListRetrieving.QueryParams"
                }
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Subscription.ListRetrieving.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X GET \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n'https://api.test.fincode.jp/v1/subscriptions?pay_type=Card'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    try {\n        // リクエストの送信\n        const subscriptions = await fincode.subscriptions.retrieveList({\n            pay_type: \"Card\",\n            limit: 10,\n        });\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\n\t\t\"GET\",\n\t\t\"https://api.test.fincode.jp/v1/subscriptions\",\n\t\tnil,\n\t)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\n\tparams := req.URL.Query()\n\tparams.Add(\"limit\", \"10\")\n\tparams.Add(\"pay_type\", \"Card\")\n\treq.URL.RawQuery = params.Encode()\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/subscriptions\";\n$queryParams = [\n    \"pay_type\" => \"Card\",\n    \"limit\" => 10,\n];\n\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint . '?' . http_build_query($queryParams));\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_HTTPGET, true);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\nurl = f'https://api.test.fincode.jp/v1/subscriptions'\nquery_params = {\n    'pay_type': \"Card\",\n    'limit': \"10\",\n}\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n}\n\ntry:\n    response = requests.get(url, headers=headers, params=query_params)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # APIからのデータを処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    endpoint = \"/v1/subscriptions\"\n    query_params =  { \n        limit: 10,\n        pay_type: 'Card'\n    }\n\n    uri = URI.parse(BASE_URL + endpoint)\n    uri.query = URI.encode_www_form(query_params)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Get.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/subscriptions/{id}": {
      "get": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "retrieveSubscription",
        "tags": [
          "サブスクリプション"
        ],
        "summary": "サブスクリプション 取得",
        "description": "IDで指定したサブスクリプション情報を取得します。\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "サブスクリプションID",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/SubscriptionId_schema"
                }
              ]
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Subscription.Retrieving.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X GET \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n'https://api.test.fincode.jp/v1/subscriptions/{id}?pay_type=Card'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    const subscriptionId = \"<Subscription ID>\";\n\n    try {\n        // リクエストの送信\n        const subscription = await fincode.subscriptions.retrieve(\n            subscriptionId,\n            {\n                pay_type: \"Card\",\n            }\n        );\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\tsubscriptionID := \"<Subscription ID>\"\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\n\t\t\"GET\",\n\t\tfmt.Sprintf(\"https://api.test.fincode.jp/v1/subscriptions/%s\", subscriptionID),\n\t\tnil,\n\t)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\n\tparams := req.URL.Query()\n\tparams.Add(\"pay_type\", \"Card\")\n\treq.URL.RawQuery = params.Encode()\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$subscriptionId = '<Subscription ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/subscriptions/{$subscriptionId}\";\n$queryParams = [\n    \"pay_type\" => \"Card\",\n];\n\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint . '?' . http_build_query($queryParams));\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_HTTPGET, true);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\nsubscription_id = '<Subscription ID>'\n\nurl = f'https://api.test.fincode.jp/v1/subscriptions/{subscription_id}'\nquery_params = {\n    'pay_type': 'Card',\n}\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n}\n\ntry:\n    response = requests.get(url, headers=headers, params=query_params)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # APIからのデータを処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    subscription_id = '<Subscription ID>'\n    endpoint = \"/v1/subscriptions/#{subscription_id}\"\n    query_params =  { pay_type: 'Card' }\n\n    uri = URI.parse(BASE_URL + endpoint)\n    uri.query = URI.encode_www_form(query_params)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Get.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      },
      "put": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "updateSubscription",
        "tags": [
          "サブスクリプション"
        ],
        "summary": "サブスクリプション 更新",
        "description": "IDで指定したサブスクリプション情報を更新します。\\\n指定されたパラメータのみ更新します。\\\nサブスクリプションの初回課金がすでに行われているとき（`start_date ≤ {{現在時刻}}`のとき）、サブスクリプションは更新できません。\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "サブスクリプションID",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/SubscriptionId_schema"
                }
              ]
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Subscription.Updating.Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Subscription.Updating.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X PUT \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\n    \"pay_type\": \"Card\",\n    \"stop_date\": \"2025/07/05\"\n}' \\\n'https://api.test.fincode.jp/v1/subscriptions/{id}'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    const subscriptionId = \"<Subscription ID>\";\n\n    try {\n        // リクエストの送信\n        const subscription = await fincode.subscriptions.update(\n            subscriptionId,\n            {\n                stop_date: \"2023/12/31\",\n            }\n        );\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\tbody := UpdatingSubscriptionRequest{\n\t\tPayType:   \"Card\",\n\t\tStartDate: stringPointer(\"2021/01/01\"),\n\t\tStopDate:  stringPointer(\"2021/12/31\"),\n\t}\n\n\tmarshalledBody, _ := json.Marshal(body)\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\"PUT\", \"https://api.test.fincode.jp/v1/subscriptions/{id}\", bytes.NewBuffer(marshalledBody))\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n\ntype UpdatingSubscriptionRequest struct {\n\tPayType       string  `json:\"pay_type\"`\n\tPlanID        *string `json:\"plan_id,omitempty\"`\n\tStartDate     *string `json:\"start_date,omitempty\"`\n\tStopDate      *string `json:\"stop_date,omitempty\"`\n\tEndMonthFlag  *string `json:\"end_month_flag,omitempty\"`\n\tClientField1  *string `json:\"client_field_1,omitempty\"`\n\tClientField2  *string `json:\"client_field_2,omitempty\"`\n\tClientField3  *string `json:\"client_field_3,omitempty\"`\n\tInitialAmount *string `json:\"initial_amount,omitempty\"`\n\tInitialTax    *string `json:\"initial_tax,omitempty\"`\n}\n\nfunc stringPointer(s string) *string {\n\treturn &s\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$subscriptionId = '<Subscription ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/subscriptions/{$subscriptionId}\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n\n$data = json_encode([\n    \"stop_date\" => \"2024/05/16\"\n]);\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, 'PUT');\ncurl_setopt($session, CURLOPT_POSTFIELDS, $data);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\nsubscription_id = '<Subscription ID>'\n\nurl = f'https://api.test.fincode.jp/v1/subscriptions/{subscription_id}'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\ndata = {\n    \"stop_date\": \"2024/05/16\"\n}\n\n# HTTP POSTリクエストの送信\ntry:\n    response = requests.put(url, headers=headers, json=data)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # 成功した場合の処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    subscription_id = '<Subscription ID>'\n    endpoint = \"/v1/subscriptions/#{subscription_id}\"\n    \n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    data = {\n        pay_type: \"Card\",\n        stop_date: \"2025/07/05\"\n    }\n\n    # リクエストの作成\n    request = Net::HTTP::Put.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n    request['Content-Type'] = 'application/json'\n\n    request.body = data.to_json\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      },
      "delete": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "unsubscripbeSubscription",
        "tags": [
          "サブスクリプション"
        ],
        "summary": "サブスクリプション 解約",
        "description": "IDで指定したサブスクリプションを解約し、請求を停止します。\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "サブスクリプションID",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/SubscriptionId_schema"
                }
              ]
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Subscription.Unsubscribing.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X DELETE \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n'https://api.test.fincode.jp/v1/subscriptions/{id}?pay_type=Card'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    const subscriptionId = \"<Subscription ID>\";\n\n    try {\n        // リクエストの送信\n        const subscription = await fincode.subscriptions.cancel(\n            subscriptionId,\n            {\n                pay_type: \"Card\",\n            }\n        );\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\tsubscriptionID := \"<Subscription ID>\"\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\n\t\t\"DELETE\",\n\t\tfmt.Sprintf(\"https://api.test.fincode.jp/v1/subscriptions/%s\", subscriptionID),\n\t\tnil,\n\t)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\n\tparams := req.URL.Query()\n\tparams.Add(\"pay_type\", \"Card\")\n\treq.URL.RawQuery = params.Encode()\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$subscriptionId = '<Subscription ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/subscriptions/{$subscriptionId}\";\n$queryParams = [\n    \"pay_type\" => \"Card\",\n];\n\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint . '?' . http_build_query($queryParams));\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, 'DELETE');\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\nsubscription_id = '<Subscription ID>'\n\nurl = f'https://api.test.fincode.jp/v1/subscriptions/{subscription_id}'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n}\n\ntry:\n    response = requests.delete(url, headers=headers)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # APIからのデータを処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    subscription_id = '<Subscription ID>'\n    endpoint = \"/v1/subscriptions/#{subscription_id}\"\n    query_params =  { pay_type: 'Card' }\n\n    uri = URI.parse(BASE_URL + endpoint)\n    uri.query = URI.encode_www_form(query_params)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Delete.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/subscriptions/{id}/result": {
      "get": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "retrieveSubscriptionResultList",
        "tags": [
          "サブスクリプション"
        ],
        "summary": "サブスクリプション結果 一覧取得",
        "description": "サブスクリプションにより発生した課金の結果を一覧で取得します。クエリパラメータを指定して取得する条件を絞り込めます。\n",
        "parameters": [
          {
            "in": "query",
            "name": "クエリ",
            "description": "サブスクリプション結果の一覧取得において検索条件となるクエリパラメータ\n",
            "required": true,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/Pagination.QueryParams"
                },
                {
                  "$ref": "#/components/schemas/SubscriptionResult.ListRetrieving.QueryParams"
                }
              ]
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "サブスクリプションID",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/SubscriptionId_schema"
                }
              ]
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/SubscriptionResult.ListRetrieving.Response"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X GET \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n'https://api.test.fincode.jp/v1/subscriptions/{id}/result?pay_type=Card'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    const subscriptionId = \"<Subscription ID>\";\n\n    try {\n        // リクエストの送信\n        const results = await fincode.subscriptions.retrieveResultList(\n            subscriptionId,\n            {\n                pay_type: \"Card\",\n                limit: 10,\n            }\n        );\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\tsubscriptionID := \"<Subscription ID>\"\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\n\t\t\"GET\",\n\t\tfmt.Sprintf(\"https://api.test.fincode.jp/v1/subscriptions/%s/result\", subscriptionID),\n\t\tnil)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\n\tparams := req.URL.Query()\n\tparams.Add(\"limit\", \"10\")\n\tparams.Add(\"pay_type\", \"Card\")\n\treq.URL.RawQuery = params.Encode()\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$subscriptionId = '<Subscription ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/subscriptions/{$subscriptionId}/result\";\n$queryParams = [\n    \"pay_type\" => \"Card\",\n    \"limit\" => 10,\n];\n\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_HTTPGET, true);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\nsubscription_id = '<Subscription ID>'\n\nurl = f'https://api.test.fincode.jp/v1/subscriptions/{subscription_id}/result'\nquery_params = {\n    'pay_type': 'Card',\n    'limit': \"10\",\n}\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n}\n\ntry:\n    response = requests.get(url, headers=headers, params=query_params)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # APIからのデータを処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    subscription_id = '<Subscription ID>'\n    endpoint = \"/v1/subscriptions/#{subscription_id}/result\"\n    query_params =  {\n        pay_type: 'Card',\n        limit: 10\n    }\n\n    uri = URI.parse(BASE_URL + endpoint)\n    uri.query = URI.encode_www_form(query_params)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Get.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/payments/bulk": {
      "get": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "retrievePaymentBulkList",
        "tags": [
          "一括決済"
        ],
        "summary": "一括決済 一覧取得",
        "description": "M's PayBridgeに登録した一括決済の情報を一覧で取得します。\n",
        "parameters": [
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\n指定したテナントショップを販売主とした一括決済情報を一覧で取得します。\n"
          },
          {
            "in": "query",
            "name": "クエリ",
            "description": "一括決済情報の一覧取得において検索条件となるクエリパラメータ\n",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/Pagination.QueryParams"
                },
                {
                  "$ref": "#/components/schemas/PaymentBulk.ListRetrieving.QueryParams"
                }
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentBulk.ListRetrieving.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X GET \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n'https://api.test.fincode.jp/v1/payments/bulk?pay_type=Card'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    try {\n        // リクエストの送信\n        const paymentBulks = await fincode.paymentBulks.retrieveList({\n            pay_type: \"Card\",\n            limit: 10,\n        });\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\"GET\", \"https://api.test.fincode.jp/v1/payments/bulk\", nil)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\n\tparams := req.URL.Query()\n\tparams.Add(\"limit\", \"10\")\n\tparams.Add(\"pay_type\", \"Card\")\n\treq.URL.RawQuery = params.Encode()\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/payments/bulk\";\n$queryParams = [\n    \"limit\" => 10,\n    \"pay_type\" => \"Card\",\n];\n\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint . '?' . http_build_query($queryParams));\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_HTTPGET, true);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\nurl = f'https://api.test.fincode.jp/v1/payments/bulk'\nquery_params = {\n    'pay_type': 'Card',\n}\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n}\n\ntry:\n    response = requests.get(url, headers=headers, params=query_params)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # APIからのデータを処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n\n    endpoint = \"/v1/payments/bulk\"\n    query_params =  {\n        pay_type: 'Card',\n        limit: 10,\n    }\n\n    uri = URI.parse(BASE_URL + endpoint)\n    uri.query = URI.encode_www_form(query_params)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Get.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      },
      "post": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "createPaymentBulk",
        "tags": [
          "一括決済"
        ],
        "summary": "一括決済 登録",
        "description": "M's PayBridgeにJSON形式のファイルで一括決済情報を登録し、`process_plan_date`で指定した日時に一括決済処理を予約します。\n",
        "parameters": [
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\n指定したテナントショップを販売主とした決済情報を一括登録します。\n"
          },
          {
            "in": "query",
            "name": "pay_type",
            "required": true,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/PaymentBulkPayType"
                }
              ]
            }
          },
          {
            "in": "query",
            "name": "process_plan_date",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/process_plan_date"
                }
              ]
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/PaymentBulk.Creating.Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentBulk.Creating.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X POST \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: multipart/form-data\" \\\n    -F 'pay_type=Card' \\\n    -F 'process_plan_date=2024/03/15' \\\n    -F 'file=@<File Name>;type=application/json' \\\n'https://api.test.fincode.jp/v1/payments/bulk'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\nimport fs from \"fs\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    try {\n        const filePath = \"<Path to File>\";\n        const fileName = \"<File Name>\";\n        const file = fs.createReadStream(filePath);\n\n        // リクエストの送信\n        const paymentBulk = await fincode.paymentBulks.create(\n            {\n                pay_type: \"Card\",\n                process_plan_date: \"2022/05/16\",\n            },\n            {\n                file: file,\n                fileName: fileName,\n            }\n        );\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"fmt\"\n\t\"io\"\n\t\"log\"\n\t\"mime/multipart\"\n\t\"net/http\"\n\t\"os\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\tpayType := \"<Pay Type>\"\n\tprocessPlanDate := \"<Process Plan Date>\"\n\n\t// ファイルの読み込み\n\tfilePath := \"<Path To File>\"\n\tfileName := \"<File Name>\"\n\tfile, err := os.Open(filePath)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer file.Close()\n\n\t// バッファの作成\n\tbody := &bytes.Buffer{}\n\twriter := multipart.NewWriter(body)\n\n\t// ファイルの書き込み\n\tpart, err := writer.CreateFormFile(\"file\", fileName)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\t_, err = io.Copy(part, file)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\n\t\t\"POST\",\n\t\tfmt.Sprintf(\"https://api.test.fincode.jp/v1/payments/bulk\"),\n\t\tbody,\n\t)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\treq.Header.Set(\"Content-Type\", writer.FormDataContentType())\n\n\tparams := req.URL.Query()\n\tparams.Add(\"process_plan_date\", processPlanDate)\n\tparams.Add(\"pay_type\", payType)\n\treq.URL.RawQuery = params.Encode()\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/payments/bulk\";\n$queryParams = [\n    \"pay_type\" => \"Card\",\n    \"process_plan_date\" => \"2022/05/16\",\n];\n\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$filePath = '<Path to json file>';\n$fileName = '<File Name>';\n\n$fields = [\n    \"file\" => new CURLFile($filePath, null, $fileName),\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint . '?' . http_build_query($queryParams));\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_POST, true);\ncurl_setopt($session, CURLOPT_POSTFIELDS, $fields);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\ndef main():\n    api_key = '<Secret API Key>'\n\n    file_path = '<Path to file>'\n    file_name = '<File Name>'\n    \n    with open(file_path, 'rb') as file:\n        files = {'file': (file_name, file)}\n\n        url = f'https://api.test.fincode.jp/v1/payments/bulk'\n        query_params = {\n            'pay_type': 'Card',\n            'process_plan_date': \"2022/05/22\"\n        }\n\n        # ヘッダーを設定\n        headers = {\n            'Authorization': f'Bearer {api_key}',\n        }\n\n        # HTTP POSTリクエストの送信\n        try:\n            response = requests.post(url, headers=headers, files=files, params=query_params)\n\n            # レスポンスの処理\n            if response.status_code == 200:\n                # 成功した場合の処理\n                print(f\"Success: {response.json()}\")\n            else:\n                # エラーの処理\n                print(f\"Error: {response.json()}\")\n        except requests.RequestException as e:\n            # 通信エラーの処理\n            print(f\"Request error: {e}\")\n\nif __name__ == '__main__':\n    main()\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\nrequire 'mime/types'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    endpoint = \"/v1/payments/bulk\"\n    query_params =  {\n        pay_type: 'Card',\n        process_plan_date: '2025/12/31',\n    }\n    \n    uri = URI.parse(BASE_URL + endpoint)\n    uri.query = URI.encode_www_form(query_params)\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    file_path = '<Path to file>'\n    file_name = '<File Name>'\n    \n    file = File.open(file_path, 'rb')\n    file_data = file.read\n    file.close\n\n    # リクエストの作成\n    request = Net::HTTP::Post.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n\n    # ファイルと追加情報をマルチパートフォームデータに追加\n    boundary = '----MpbMultipartRequest'\n    body = []\n    insert_file_to_body(body, boundary, 'file', file_name, file_data)\n    body << \"--#{boundary}--\\r\\n\"\n\n    request['Content-Type'] = \"multipart/form-data; boundary=#{boundary}\"\n    request.body = body.join('')\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\ndef insert_file_to_body(body, boundary, key, file_name, file_data)\n    body << \"--#{boundary}\\r\\n\"\n    body << \"Content-Disposition: form-data; name=\\\"#{key}\\\"; filename=\\\"#{file_name}\\\"\\r\\n\"\n    body << \"Content-Type: #{MIME::Types.type_for(file_name).first.content_type}\\r\\n\"\n    body << \"\\r\\n\"\n    body << file_data\n    body << \"\\r\\n\"\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/payments/bulk/{id}": {
      "get": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "retrievePaymentBulkDetailList",
        "tags": [
          "一括決済"
        ],
        "summary": "一括決済詳細 一覧取得",
        "description": "IDで指定した一括決済情報の詳細（決済1件ごとの情報）と各決済で発生したエラーの情報を一覧で取得します。\n",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/PaymentBulkId_schema"
            },
            "description": "一括決済ID。\\\n詳細を取得する一括決済情報のIDを指定します。\n"
          },
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\n指定したテナントショップを販売主とした一括決済の詳細を一覧で取得します。\n"
          },
          {
            "in": "query",
            "name": "クエリ",
            "description": "一括決済情報の一覧取得において検索条件となるクエリパラメータ\n",
            "required": true,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/Pagination.QueryParams"
                },
                {
                  "$ref": "#/components/schemas/PaymentBulkDetail.ListRetrieving.QueryParams"
                }
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentBulkDetail.ListRetrieving.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X GET \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n'https://api.test.fincode.jp/v1/payments/bulk/{id}'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    const paymentBulkId = \"<Payment Bulk ID>\";\n\n    try {\n        // リクエストの送信\n        const details = await fincode.paymentBulks.retrieveDetailList(\n            paymentBulkId,\n            {\n                limit: 10,\n            }\n        );\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\tbulkPaymentID := \"<Bulk Payment ID>\"\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\n\t\t\"GET\",\n\t\tfmt.Sprintf(\"https://api.test.fincode.jp/v1/payments/bulk/%s\", bulkPaymentID),\n\t\tnil,\n\t)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\n\tparams := req.URL.Query()\n\tparams.Add(\"limit\", \"10\")\n\tparams.Add(\"pay_type\", \"Card\")\n\treq.URL.RawQuery = params.Encode()\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$paymentBulkId = '<Payment Bulk ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/payments/bulk/{$paymentBulkId}\";\n$queryParams = [\n    \"pay_type\" => \"Card\",\n    \"limit\" => 10,\n];\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint . '?' . http_build_query($queryParams));\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_HTTPGET, true);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\npayments_bulk_id = '<Payments Bulk ID>'\n\nurl = f'https://api.test.fincode.jp/v1/payments/bulk/{payments_bulk_id}'\nquery_params = {\n    'pay_type': 'Card',\n    'limit': '10',\n}\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n}\n\ntry:\n    response = requests.get(url, headers=headers, params=query_params)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # APIからのデータを処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    payments_bulk_id = '<Payments Bulk ID>'\n    endpoint = \"/v1/payments/bulk/#{payments_bulk_id}\"\n    query_params =  {\n        limit: 10,\n        pay_type: 'Card',\n    }\n\n    uri = URI.parse(BASE_URL + endpoint)\n    uri.query = URI.encode_www_form(query_params)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Get.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      },
      "delete": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "deletePaymentBulk",
        "tags": [
          "一括決済"
        ],
        "summary": "一括決済 削除",
        "description": "IDで指定した一括決済情報を削除します。\\\n一括決済処理がチェック済み（`status`が`CHECKED`）のものに限り削除できます。\n",
        "parameters": [
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\n指定したテナントショップを販売主とした一括決済情報を削除します。\n"
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/PaymentBulkId_schema"
            },
            "description": "一括決済ID。\\\n削除対象の一括決済情報のIDを指定します。\n"
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentBulk.Deleting.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X DELETE \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n'https://api.test.fincode.jp/v1/payments/bulk/{id}'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    const paymentBulkId = \"<Payment Bulk ID>\";\n\n    try {\n        // リクエストの送信\n        const result = await fincode.paymentBulks.delete(paymentBulkId);\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\tbulkPaymentID := \"<Bulk Payment ID>\"\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\n\t\t\"DELETE\",\n\t\tfmt.Sprintf(\"https://api.test.fincode.jp/v1/payments/bulk/%s\", bulkPaymentID),\n\t\tnil,\n\t)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$paymentBulkId = '<Payment Bulk ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/payments/bulk/{$paymentBulkId}\";\n$queryParams = [\n    \"pay_type\" => \"Card\",\n];\n\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint . '?' . http_build_query($queryParams));\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, 'DELETE');\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\npayments_bulk_id = '<Payments Bulk ID>'\n\nurl = f'https://api.test.fincode.jp/v1/payments/bulk/{payments_bulk_id}'\nquery_params = {\n    'pay_type': 'Card',\n}\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n}\n\ntry:\n    response = requests.delete(url, headers=headers, params=query_params)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # APIからのデータを処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    payments_bulk_id = '<Payments Bulk ID>'\n    endpoint = \"/v1/payments/bulk/#{payments_bulk_id}\"\n\n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Delete.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/invoices": {
      "get": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "getInvoicesList",
        "tags": [
          "インボイス機能"
        ],
        "summary": "インボイス 一覧取得",
        "description": "インボイス情報を一覧で取得します。クエリパラメータを指定して取得する条件を絞り込めます。 \n",
        "parameters": [
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\n指定したテナントショップを請求元とした請求書情報を一覧で取得します。\n"
          },
          {
            "in": "query",
            "name": "クエリ",
            "description": "検索条件クエリパラメータ\n",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/Pagination.QueryParams"
                },
                {
                  "$ref": "#/components/schemas/Invoice.ListRetrieving.QueryParams"
                }
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Invoice.ListRetrieving.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X GET \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n'https://api.test.fincode.jp/v1/invoices'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import fetch from \"node-fetch\";\n\nconst BASE_URL = \"https://api.test.fincode.jp\";\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const endpoint = `${BASE_URL}/v1/invoices`;\n\n    const response = await fetch(endpoint, {\n        method: \"GET\",\n        headers: {\n            Authorization: `Bearer ${API_KEY}`,\n        },\n    });\n    const invoices = await response.json();\n    console.log(invoices); // 取得したインボイスデータを出力\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\t// APIキーの指定\n\tapiKey := \"<Secret API Key>\"\n\n\t// リクエストの作成\n\treq, err := http.NewRequest(\n\t\t\"GET\",\n\t\t\"https://api.test.fincode.jp/v1/invoices\",\n\t\tnil,\n\t)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエストの作成エラー: %v\", err)\n\t}\n\n\t// ヘッダーの設定\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\n\t// クライアントの作成とリクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエストエラー: %v\", err)\n\t}\n\tdefer res.Body.Close()\n\n\t// レスポンスのステータスコードの表示\n\tfmt.Println(\"Status:\", res.Status)\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/invoices\"; // GETリクエストのエンドポイント\n\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_HTTPGET, true);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, 2);\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    // エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    // APIからのデータを処理\n    var_dump($response); // レスポンスを出力\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\nbase_url = \"https://api.test.fincode.jp\"\nendpoint = \"/v1/invoices\"  # GETリクエストのエンドポイント\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n}\n\ntry:\n    response = requests.get(f\"{base_url}{endpoint}\", headers=headers)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # APIからのデータを処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    endpoint = \"/v1/invoices\"  # GETリクエストのエンドポイント\n\n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Get.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n        # レスポンスの表示\n        puts JSON.pretty_generate(JSON.parse(response.body))\n    else\n        puts 'ERROR'\n        # エラーの表示\n        puts response.body\n    end\nend\n\nmain\n"
          }
        ]
      },
      "post": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "registerInvoices",
        "tags": [
          "インボイス機能"
        ],
        "summary": "インボイス 作成",
        "description": "インボイス情報を作成します。\\\n取引内容やご利用の決済手段などの各種入力項目は、インボイス 更新APIを利用して後から入力することも可能です。\\\nインボイス 発行APIを呼び出すまで請求は行われません。\n",
        "parameters": [
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\n指定したテナントショップを請求元とした請求書情報を作成します。\n"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Invoice.Creating.Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Invoice.Creating.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X POST \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n'https://api.test.fincode.jp/v1/invoices'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import fetch from \"node-fetch\";\n\nconst BASE_URL = \"https://api.test.fincode.jp\";\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const endpoint = `${BASE_URL}/v1/invoices`; // POSTリクエストのエンドポイント\n\n    const response = await fetch(endpoint, {\n        method: \"POST\",\n        headers: {\n            Authorization: `Bearer ${API_KEY}`,\n            \"Content-Type\": \"application/json\",\n        },\n    });\n\n    // レスポンスの処理\n    const responseData = await response.json();\n    if (response.ok) {\n        console.log(\"Success:\", responseData);\n    } else {\n        console.error(\"Error:\", responseData);\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\t// APIキーを指定\n\tapiKey := \"<Secret API Key>\"\n\n\t// URLの設定\n\turl := \"https://api.test.fincode.jp/v1/invoices\"\n\n\t// HTTPリクエストの作成\n\treq, err := http.NewRequest(\"POST\", url, nil)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエストの作成エラー: %v\", err)\n\t}\n\n\t// ヘッダーの設定\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\n\t// クライアントの作成とリクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエストエラー: %v\", err)\n\t}\n\tdefer res.Body.Close()\n\n\t// レスポンスのステータスコードの表示\n\tfmt.Println(\"Status:\", res.Status)\n}"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/invoices\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: application/json\"\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_POST, true);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    // エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    // APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\nurl = 'https://api.test.fincode.jp/v1/invoices'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\n# HTTP POSTリクエストの送信\ntry:\n    response = requests.post(url, headers=headers)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # 成功した場合の処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    endpoint = \"/v1/invoices\"\n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Post.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n    request['Content-Type'] = 'application/json'\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/invoices/{id}": {
      "get": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "getInvoices",
        "tags": [
          "インボイス機能"
        ],
        "summary": "インボイス 取得",
        "description": "指定したIDを持つインボイス情報を取得します。\n",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "インボイスID  \n"
          },
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\n指定することで、指定したテナントショップのインボイス請求書情報を取得できます。\n"
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvoiceDetail.Retrieving.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X GET \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n'https://api.test.fincode.jp/v1/invoices/{id}'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import fetch from \"node-fetch\";\n\nconst BASE_URL = \"https://api.test.fincode.jp\";\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const invoiceId = \"<Invoice ID>\"; // 実際のインボイスIDを入力してください\n\n    const endpoint = `${BASE_URL}/v1/invoices/${invoiceId}`;\n\n    try {\n        const response = await fetch(endpoint, {\n            method: \"GET\",\n            headers: {\n                Authorization: `Bearer ${API_KEY}`,\n            },\n        });\n\n        if (!response.ok) {\n            throw new Error(`Error: ${response.statusText}`);\n        }\n\n        const invoice = await response.json();\n        console.log(invoice); // 取得したインボイスデータをコンソールに表示\n    } catch (error) {\n        console.error('Error:', error);\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tapiKey := \"<Secret API Key>\"\n\tinvoiceID := \"<Invoice ID>\"\n\n\t// リクエストの作成\n\treq, err := http.NewRequest(\n\t\t\"GET\",\n\t\tfmt.Sprintf(\"https://api.test.fincode.jp/v1/invoices/%s\", invoiceID),\n\t\tnil,\n\t)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエストの作成エラー: %v\", err)\n\t}\n\n\t// ヘッダーの設定\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエストエラー: %v\", err)\n\t}\n\tdefer res.Body.Close()\n\n\t// HTTPステータスコードを表示\n\tfmt.Println(\"HTTPステータスコード:\", res.StatusCode)\n\n\t// レスポンスボディを読み取って表示\n\tbody, err := io.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatalf(\"レスポンスボディの読み取りエラー: %v\", err)\n\t}\n\tfmt.Println(\"レスポンスボディ:\", string(body))\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$invoiceId = '<Invoice ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/invoices/{$invoiceId}\";\n$queryParams = [\n    // 必要なクエリパラメータがあればここに追加\n    // \"example_param\" => \"value\",\n];\n\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint . '?' . http_build_query($queryParams));\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_HTTPGET, true);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    // エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    // APIからのデータを処理\n    $responseData = json_decode($response, true);\n    if (json_last_error() === JSON_ERROR_NONE) {\n        // JSONが正しく解析された場合\n        var_dump($responseData);\n    } else {\n        // JSON解析エラー\n        echo \"JSON Decode Error: \" . json_last_error_msg();\n    }\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\ninvoice_id = '<Invoice ID>'\n\nurl = f'https://api.test.fincode.jp/v1/invoices/{invoice_id}'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n}\n\ntry:\n    response = requests.get(url, headers=headers)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # APIからのデータを処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    invoice_id = '<Invoice ID>'\n\n    endpoint = \"/v1/invoices/#{invoice_id}\"\n    \n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Get.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts JSON.pretty_generate(JSON.parse(response.body))\nend\n\nmain\n"
          }
        ]
      },
      "put": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "updateInvoices",
        "tags": [
          "インボイス機能"
        ],
        "summary": "インボイス 更新",
        "description": "指定したIDを持つインボイス情報を更新します。\\\nインボイス 発行APIを呼び出すまで請求は行われません。発行後は 回収困難フラグ、および 加盟店自由項目 のみが更新可能です。\n",
        "parameters": [
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\n指定したテナントショップを販売主とした請求書情報を更新します。\n"
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "インボイスID\n"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceDetail.Updating.Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvoiceDetail.Updating.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X PUT \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\n      \"is_uncollectible\": false,\n      \"bill_mail_send_flag\": \"0\",\n      \"receipt_mail_send_flag\": \"0\",\n      \"underpayment_mail_send_flag\": \"0\",\n      \"invoice_number\": \"INV123456\",\n      \"customer_id\": \"CUST001\",\n      \"customer_honorific\": \"様\",\n      \"customer_overwrite\": {\n        \"name\": \"株式会社テスト\",\n        \"email\": \"test@example.com\",\n        \"addr_country\": \"JP\",\n        \"addr_state\": \"13\",\n        \"addr_city\": \"新宿区\",\n        \"addr_line_1\": \"1-1-1\",\n        \"addr_line_2\": \"テストビル\",\n        \"addr_line_3\": \"\",\n        \"addr_post_code\": \"1600022\"\n      },\n      \"issuer_overwrite\": {\n        \"addr_country\": \"JP\",\n        \"addr_state\": \"13\",\n        \"addr_city\": \"新宿区\",\n        \"addr_line_1\": \"1-1-1\",\n        \"addr_line_2\": \"テストビル\",\n        \"addr_line_3\": \"\",\n        \"addr_post_code\": \"1600022\",\n        \"email\": \"issuer@example.com\",\n        \"phone_number\": \"0312345678\"\n      },\n      \"lines\": [\n        {\n          \"date\": \"2023/10/01\",\n          \"name\": \"商品A\",\n          \"unit_price\": 1000,\n          \"quantity\": 2,\n          \"tax_rate\": 10\n        }\n      ],\n      \"pay_types\": [\n        \"Virtualaccount\",\n        \"Card\"\n      ],\n}' \\\n'https://api.test.fincode.jp/v1/invoices/{id}'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import fetch from \"node-fetch\";\n\nconst BASE_URL = \"https://api.test.fincode.jp\";\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n  const invoiceId = \"<Invoice ID>\"; // ここにInvoice IDを設定\n\n  const endpoint = `${BASE_URL}/v1/invoices/${invoiceId}`;\n\n  const response = await fetch(endpoint, {\n    method: \"PUT\",\n    headers: {\n      Authorization: `Bearer ${API_KEY}`,\n      \"Content-Type\": \"application/json\",\n    },\n    body: JSON.stringify({\n      is_uncollectible: false,\n      bill_mail_send_flag: \"0\",\n      receipt_mail_send_flag: \"0\",\n      underpayment_mail_send_flag: \"0\",\n      invoice_number: \"INV123456\",\n      customer_id: \"CUST001\",\n      customer_honorific: \"様\",\n      customer_overwrite: {\n        name: \"株式会社テスト\",\n        email: \"test@example.com\",\n        addr_country: \"JP\",\n        addr_state: \"13\",\n        addr_city: \"新宿区\",\n        addr_line_1: \"1-1-1\",\n        addr_line_2: \"テストビル\",\n        addr_line_3: \"\",\n        addr_post_code: \"1600022\",\n      },\n      issuer_overwrite: {\n        addr_country: \"JP\",\n        addr_state: \"13\",\n        addr_city: \"新宿区\",\n        addr_line_1: \"1-1-1\",\n        addr_line_2: \"テストビル\",\n        addr_line_3: \"\",\n        addr_post_code: \"1600022\",\n        email: \"issuer@example.com\",\n        phone_number: \"0312345678\",\n      },\n      lines: [\n        {\n          date: \"2023/10/01\",\n          name: \"商品A\",\n          unit_price: 1000,\n          quantity: 2,\n          tax_rate: 10,\n        },\n      ],\n      pay_types: [\"Virtualaccount\", \"Card\"],\n    }),\n  });\n\n  if (response.ok) {\n    const invoiceData = await response.json();\n    console.log(\"Invoice Updated:\", invoiceData);\n  } else {\n    console.error(\"Error updating invoice:\", await response.text());\n  }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\t// APIキーとインボイスIDを指定\n\tapiKey := \"<Secret API Key>\"\n\tinvoiceID := \"<Invoice ID>\"\n\n\t// リクエストボディの作成\n\tbody := UpdateInvoiceRequest{\n\t\tIsUncollectible:         false,\n\t\tBillMailSendFlag:        \"0\",\n\t\tReceiptMailSendFlag:     \"0\",\n\t\tUnderpaymentMailSendFlag: \"0\",\n\t\tInvoiceNumber:           \"INV123456\",\n\t\tCustomerID:              \"CUST001\",\n\t\tCustomerHonorific:       \"様\",\n\t\tCustomerOverwrite: CustomerOverwrite{\n\t\t\tName:        \"株式会社テスト\",\n\t\t\tEmail:       \"test@example.com\",\n\t\t\tAddrCountry: \"JP\",\n\t\t\tAddrState:   \"13\",\n\t\t\tAddrCity:    \"新宿区\",\n\t\t\tAddrLine1:   \"1-1-1\",\n\t\t\tAddrLine2:   \"テストビル\",\n\t\t\tAddrLine3:   \"\",\n\t\t\tAddrPostCode: \"1600022\",\n\t\t},\n\t\tIssuerOverwrite: IssuerOverwrite{\n\t\t\tAddrCountry: \"JP\",\n\t\t\tAddrState:   \"13\",\n\t\t\tAddrCity:    \"新宿区\",\n\t\t\tAddrLine1:   \"1-1-1\",\n\t\t\tAddrLine2:   \"テストビル\",\n\t\t\tAddrLine3:   \"\",\n\t\t\tAddrPostCode: \"1600022\",\n\t\t\tEmail:       \"issuer@example.com\",\n\t\t\tPhoneNumber: \"0312345678\",\n\t\t},\n\t\tLines: []Line{\n\t\t\t{\n\t\t\t\tDate:     \"2023/10/01\",\n\t\t\t\tName:     \"商品A\",\n\t\t\t\tUnitPrice: 1000,\n\t\t\t\tQuantity: 2,\n\t\t\t\tTaxRate:  10,\n\t\t\t},\n\t\t},\n\t\tPayTypes: []string{\"Virtualaccount\", \"Card\"},\n\t}\n\n\t// JSONにエンコード\n\tmarshalledBody, err := json.Marshal(body)\n\tif err != nil {\n\t\tlog.Fatalf(\"エンコードエラー: %v\", err)\n\t}\n\n\t// URLの設定\n\turl := fmt.Sprintf(\"https://api.test.fincode.jp/v1/invoices/%s\", invoiceID)\n\n\t// HTTPリクエストの作成\n\treq, err := http.NewRequest(\"PUT\", url, bytes.NewBuffer(marshalledBody))\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエストの作成エラー: %v\", err)\n\t}\n\n\t// ヘッダーの設定\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\t// クライアントの作成とリクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエストエラー: %v\", err)\n\t}\n\tdefer res.Body.Close()\n\n\t// レスポンスのステータスコードの表示\n\tfmt.Println(\"Status:\", res.Status)\n}\n\ntype UpdateInvoiceRequest struct {\n\tIsUncollectible         bool              `json:\"is_uncollectible\"`\n\tBillMailSendFlag        string            `json:\"bill_mail_send_flag\"`\n\tReceiptMailSendFlag     string            `json:\"receipt_mail_send_flag\"`\n\tUnderpaymentMailSendFlag string            `json:\"underpayment_mail_send_flag\"`\n\tInvoiceNumber           string            `json:\"invoice_number\"`\n\tCustomerID              string            `json:\"customer_id\"`\n\tCustomerHonorific       string            `json:\"customer_honorific\"`\n\tCustomerOverwrite       CustomerOverwrite `json:\"customer_overwrite\"`\n\tIssuerOverwrite         IssuerOverwrite   `json:\"issuer_overwrite\"`\n\tLines                   []Line            `json:\"lines\"`\n\tPayTypes                []string          `json:\"pay_types\"`\n}\n\ntype CustomerOverwrite struct {\n\tName        string `json:\"name\"`\n\tEmail       string `json:\"email\"`\n\tAddrCountry string `json:\"addr_country\"`\n\tAddrState   string `json:\"addr_state\"`\n\tAddrCity    string `json:\"addr_city\"`\n\tAddrLine1   string `json:\"addr_line_1\"`\n\tAddrLine2   string `json:\"addr_line_2\"`\n\tAddrLine3   string `json:\"addr_line_3,omitempty\"`\n\tAddrPostCode string `json:\"addr_post_code\"`\n}\n\ntype IssuerOverwrite struct {\n\tAddrCountry string `json:\"addr_country\"`\n\tAddrState   string `json:\"addr_state\"`\n\tAddrCity    string `json:\"addr_city\"`\n\tAddrLine1   string `json:\"addr_line_1\"`\n\tAddrLine2   string `json:\"addr_line_2\"`\n\tAddrLine3   string `json:\"addr_line_3,omitempty\"`\n\tAddrPostCode string `json:\"addr_post_code\"`\n\tEmail       string `json:\"email\"`\n\tPhoneNumber string `json:\"phone_number\"`\n}\n\ntype Line struct {\n\tDate      string `json:\"date\"`\n\tName      string `json:\"name\"`\n\tUnitPrice int    `json:\"unit_price\"`\n\tQuantity  int    `json:\"quantity\"`\n\tTaxRate   int    `json:\"tax_rate\"`\n}"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n$invoiceId = '<Invoice ID>';  // ここにInvoice IDを設定\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/invoices/{$invoiceId}\";\n\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: application/json\"\n];\n\n$data = json_encode([\n    \"is_uncollectible\" => false,\n    \"bill_mail_send_flag\" => \"0\",\n    \"receipt_mail_send_flag\" => \"0\",\n    \"underpayment_mail_send_flag\" => \"0\",\n    \"invoice_number\" => \"INV123456\",\n    \"customer_id\" => \"CUST001\",\n    \"customer_honorific\" => \"様\",\n    \"customer_overwrite\" => [\n        \"name\" => \"株式会社テスト\",\n        \"email\" => \"test@example.com\",\n        \"addr_country\" => \"JP\",\n        \"addr_state\" => \"13\",\n        \"addr_city\" => \"新宿区\",\n        \"addr_line_1\" => \"1-1-1\",\n        \"addr_line_2\" => \"テストビル\",\n        \"addr_line_3\" => \"\",\n        \"addr_post_code\" => \"1600022\"\n    ],\n    \"issuer_overwrite\" => [\n        \"addr_country\" => \"JP\",\n        \"addr_state\" => \"13\",\n        \"addr_city\" => \"新宿区\",\n        \"addr_line_1\" => \"1-1-1\",\n        \"addr_line_2\" => \"テストビル\",\n        \"addr_line_3\" => \"\",\n        \"addr_post_code\" => \"1600022\",\n        \"email\" => \"issuer@example.com\",\n        \"phone_number\" => \"0312345678\"\n    ],\n    \"lines\" => [\n        [\n            \"date\" => \"2023/10/01\",\n            \"name\" => \"商品A\",\n            \"unit_price\" => 1000,\n            \"quantity\" => 2,\n            \"tax_rate\" => 10\n        ]\n    ],\n    \"pay_types\" => [\n        \"Virtualaccount\",\n        \"Card\"\n    ]\n]);\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, \"PUT\");\ncurl_setopt($session, CURLOPT_POSTFIELDS, $data);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, 2);\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    // エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    // APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\ninvoice_id = '<Invoice ID>'  # ここにInvoice IDを設定\n\nurl = f'https://api.test.fincode.jp/v1/invoices/{invoice_id}'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\ndata = {\n    \"is_uncollectible\": False,\n    \"bill_mail_send_flag\": \"0\",\n    \"receipt_mail_send_flag\": \"0\",\n    \"underpayment_mail_send_flag\": \"0\",\n    \"invoice_number\": \"INV123456\",\n    \"customer_id\": \"CUST001\",\n    \"customer_honorific\": \"様\",\n    \"customer_overwrite\": {\n        \"name\": \"株式会社テスト\",\n        \"email\": \"test@example.com\",\n        \"addr_country\": \"JP\",\n        \"addr_state\": \"13\",\n        \"addr_city\": \"新宿区\",\n        \"addr_line_1\": \"1-1-1\",\n        \"addr_line_2\": \"テストビル\",\n        \"addr_line_3\": \"\",\n        \"addr_post_code\": \"1600022\"\n    },\n    \"issuer_overwrite\": {\n        \"addr_country\": \"JP\",\n        \"addr_state\": \"13\",\n        \"addr_city\": \"新宿区\",\n        \"addr_line_1\": \"1-1-1\",\n        \"addr_line_2\": \"テストビル\",\n        \"addr_line_3\": \"\",\n        \"addr_post_code\": \"1600022\",\n        \"email\": \"issuer@example.com\",\n        \"phone_number\": \"0312345678\"\n    },\n    \"lines\": [\n        {\n            \"date\": \"2023/10/01\",\n            \"name\": \"商品A\",\n            \"unit_price\": 1000,\n            \"quantity\": 2,\n            \"tax_rate\": 10\n        }\n    ],\n    \"pay_types\": [\n        \"Virtualaccount\",\n        \"Card\"\n    ]\n}\n\n# HTTP PUTリクエストの送信\ntry:\n    response = requests.put(url, headers=headers, json=data)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # 成功した場合の処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    invoice_id = '<Invoice ID>'  # ここにInvoice IDを設定\n    endpoint = \"/v1/invoices/#{invoice_id}\"\n    \n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    data = {\n        is_uncollectible: false,\n        bill_mail_send_flag: \"0\",\n        receipt_mail_send_flag: \"0\",\n        underpayment_mail_send_flag: \"0\",\n        invoice_number: \"INV123456\",\n        customer_id: \"CUST001\",\n        customer_honorific: \"様\",\n        customer_overwrite: {\n            name: \"株式会社テスト\",\n            email: \"test@example.com\",\n            addr_country: \"JP\",\n            addr_state: \"13\",\n            addr_city: \"新宿区\",\n            addr_line_1: \"1-1-1\",\n            addr_line_2: \"テストビル\",\n            addr_line_3: \"\",\n            addr_post_code: \"1600022\"\n        },\n        issuer_overwrite: {\n            addr_country: \"JP\",\n            addr_state: \"13\",\n            addr_city: \"新宿区\",\n            addr_line_1: \"1-1-1\",\n            addr_line_2: \"テストビル\",\n            addr_line_3: \"\",\n            addr_post_code: \"1600022\",\n            email: \"issuer@example.com\",\n            phone_number: \"0312345678\"\n        },\n        lines: [\n            {\n                date: \"2023/10/01\",\n                name: \"商品A\",\n                unit_price: 1000,\n                quantity: 2,\n                tax_rate: 10\n            }\n        ],\n        pay_types: [\n            \"Virtualaccount\",\n            \"Card\"\n        ]\n    }\n\n    # リクエストの作成\n    request = Net::HTTP::Put.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n    request['Content-Type'] = 'application/json'\n\n    request.body = data.to_json\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      },
      "delete": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "deleteInvoices",
        "tags": [
          "インボイス機能"
        ],
        "summary": "インボイス 削除",
        "description": "指定したIDを持つ、下書き状態のインボイス情報を削除します。\\\n発行済みのインボイス情報は削除できません。\n",
        "parameters": [
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\n指定したテナントショップを販売主とした請求書情報を削除します。\n"
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "インボイスID\n"
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvoiceDetail.Deleting.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X DELETE \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n'https://api.test.fincode.jp/v1/invoices/{id}'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import fetch from \"node-fetch\";\n\nconst BASE_URL = \"https://api.test.fincode.jp\";\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const invoiceId = \"<Invoice ID>\"; // 実際のInvoice IDを設定\n\n    const endpoint = `${BASE_URL}/v1/invoices/${invoiceId}`;\n\n    const response = await fetch(endpoint, {\n        method: \"DELETE\",\n        headers: {\n            Authorization: `Bearer ${API_KEY}`,\n        },\n    });\n\n    if (response.ok) {\n        const result = await response.json();\n        console.log('削除成功:', result);\n    } else {\n        console.error('削除に失敗しました:', await response.text());\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\t// APIキーとインボイスIDを指定\n\tapiKey := \"<Secret API Key>\"\n\tinvoiceID := \"<Invoice ID>\" // 削除するインボイスIDを指定\n\n\t// リクエストの作成\n\treq, err := http.NewRequest(\n\t\t\"DELETE\",\n\t\tfmt.Sprintf(\"https://api.test.fincode.jp/v1/invoices/%s\", invoiceID),\n\t\tnil,\n\t)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエストの作成エラー: %v\", err)\n\t}\n\n\t// ヘッダーの設定\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\n\t// クライアントの作成とリクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエストエラー: %v\", err)\n\t}\n\tdefer res.Body.Close()\n\n\t// HTTPステータスコードを表示\n\tfmt.Println(\"HTTPステータスコード:\", res.StatusCode)\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n$invoiceId = '<Invoice ID>'; // 実際のInvoice IDを設定\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/invoices/{$invoiceId}\";\n\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, 'DELETE');\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\ninvoice_id = '<Invoice ID>'  # 実際のInvoice IDを設定\n\nurl = f'https://api.test.fincode.jp/v1/invoices/{invoice_id}'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n}\n\ntry:\n    response = requests.delete(url, headers=headers)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # APIからのデータを処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n  invoice_id = '<Invoice ID>' # 実際のInvoice IDを設定\n\n  endpoint = \"/v1/invoices/#{invoice_id}\"\n\n  uri = URI.parse(BASE_URL + endpoint)\n  http = Net::HTTP.new(uri.host, uri.port)\n  http.use_ssl = true\n\n  # リクエストの作成\n  request = Net::HTTP::Delete.new(uri.request_uri)\n  request['Authorization'] = \"Bearer #{API_KEY}\"\n\n  # リクエストの送信\n  response = http.request(request)\n\n  case response\n  when Net::HTTPSuccess\n    puts 'SUCCESS'\n  else\n    puts 'ERROR'\n  end\n\n  # レスポンスの表示\n  puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/invoices/{id}/open": {
      "put": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "openInvoices",
        "tags": [
          "インボイス機能"
        ],
        "summary": "インボイス 発行",
        "description": "IDで指定したインボイス情報をもとに請求を開始します。請求書WebページのURL発行、請求先顧客へのメール送信などを行います。\\\nこのAPIの呼び出し以降はインボイス 更新APIでは 回収困難フラグ 、および 加盟店自由項目 のみ更新できます。\n",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "インボイスID\n"
          },
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\n指定したテナントショップを請求元としたインボイス請求書の請求を実施します。\n"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceDetail.Opening.Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvoiceDetail.Opening.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X PUT \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\n      \"bill_mail_send_flag\": \"1\",\n      \"receipt_mail_send_flag\": \"0\",\n      \"underpayment_mail_send_flag\": \"1\"\n}' \\\n'https://api.test.fincode.jp/v1/invoices/{id}/open'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import fetch from \"node-fetch\";\n\nconst BASE_URL = \"https://api.test.fincode.jp\";\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const invoiceId = \"<Invoice ID>\";  // 実際のInvoice IDに置き換えてください\n\n    const endpoint = `${BASE_URL}/v1/invoices/${invoiceId}/open`;\n\n    const response = await fetch(endpoint, {\n        method: \"PUT\",\n        headers: {\n            Authorization: `Bearer ${API_KEY}`,\n            \"Content-Type\": \"application/json\",\n        },\n        body: JSON.stringify({\n            bill_mail_send_flag: \"1\",\n            receipt_mail_send_flag: \"0\",\n            underpayment_mail_send_flag: \"1\",\n        }),\n    });\n\n    if (response.ok) {\n        const result = await response.json();\n        console.log(\"成功:\", result);\n    } else {\n        const error = await response.json();\n        console.error(\"エラー:\", error);\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\t// APIキーとインボイスIDを指定\n\tapiKey := \"<Secret API Key>\"\n\tinvoiceID := \"<Invoice ID>\" // インボイスIDを指定\n\n\t// リクエストボディの作成\n\tbody := map[string]string{\n\t\t\"bill_mail_send_flag\":       \"1\",\n\t\t\"receipt_mail_send_flag\":    \"0\",\n\t\t\"underpayment_mail_send_flag\": \"1\",\n\t}\n\t\n\t// JSONエンコード\n\tmarshalledBody, err := json.Marshal(body)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエストボディのエンコードエラー: %v\", err)\n\t}\n\n\t// URLの設定\n\turl := fmt.Sprintf(\"https://api.test.fincode.jp/v1/invoices/%s/open\", invoiceID)\n\n\t// HTTPリクエストの作成\n\treq, err := http.NewRequest(\"PUT\", url, bytes.NewBuffer(marshalledBody))\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエストの作成エラー: %v\", err)\n\t}\n\n\t// ヘッダーの設定\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\t// クライアントの作成とリクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエストエラー: %v\", err)\n\t}\n\tdefer res.Body.Close()\n\n\t// レスポンスのステータスコードの表示\n\tfmt.Println(\"Status:\", res.Status)\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n$invoiceId = '<Invoice ID>';  // 実際のInvoice IDに置き換えてください\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/invoices/{$invoiceId}/open\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: application/json\"\n];\n\n$data = json_encode([\n    \"bill_mail_send_flag\" => \"1\",\n    \"receipt_mail_send_flag\" => \"0\",\n    \"underpayment_mail_send_flag\" => \"1\"\n]);\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, \"PUT\");\ncurl_setopt($session, CURLOPT_POSTFIELDS, $data);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    // エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    // APIからのデータを処理\n    echo \"レスポンス: \" . $response;\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\ninvoice_id = '<Invoice ID>'  # 実際のInvoice IDに置き換えてください\n\nurl = f'https://api.test.fincode.jp/v1/invoices/{invoice_id}/open'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\ndata = {\n    \"bill_mail_send_flag\": \"1\",\n    \"receipt_mail_send_flag\": \"0\",\n    \"underpayment_mail_send_flag\": \"1\"\n}\n\n# HTTP PUTリクエストの送信\ntry:\n    response = requests.put(url, headers=headers, json=data)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # 成功した場合の処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n  invoice_id = '<Invoice ID>'  # 実際のInvoice IDに置き換えてください\n  endpoint = \"/v1/invoices/#{invoice_id}/open\"\n  \n  uri = URI.parse(BASE_URL + endpoint)\n\n  http = Net::HTTP.new(uri.host, uri.port)\n  http.use_ssl = true\n\n  data = {\n    bill_mail_send_flag: \"1\",\n    receipt_mail_send_flag: \"0\",\n    underpayment_mail_send_flag: \"1\"\n  }\n\n  # リクエストの作成\n  request = Net::HTTP::Put.new(uri.request_uri)\n  request['Authorization'] = \"Bearer #{API_KEY}\"\n  request['Content-Type'] = 'application/json'\n\n  request.body = data.to_json\n\n  # リクエストの送信\n  response = http.request(request)\n\n  case response\n  when Net::HTTPSuccess\n    puts 'SUCCESS'\n  else\n    puts 'ERROR'\n  end\n\n  # レスポンスの表示\n  puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/invoices/{id}/cancel": {
      "put": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "cancelInvoices",
        "tags": [
          "インボイス機能"
        ],
        "summary": "インボイス キャンセル",
        "description": "指定したIDを持つ、発行済みのインボイス情報をキャンセルします。\\\nキャンセルは請求の取り下げを意味し、一度キャンセルしたインボイス情報をもとに再度請求することはできません。\n",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "インボイスID\n"
          },
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\n指定したテナントショップを請求元としたインボイス請求書のキャンセルができます。\n"
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvoiceDetail.Canceling.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X PUT \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n\\\n'https://api.test.fincode.jp/v1/invoices/{id}/cancel'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import fetch from \"node-fetch\";\n\nconst BASE_URL = \"https://api.test.fincode.jp\";\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const invoiceId = \"<Invoice ID>\";\n\n    const endpoint = `${BASE_URL}/v1/invoices/${invoiceId}/cancel`;\n\n    const response = await fetch(endpoint, {\n        method: \"PUT\",\n        headers: {\n            Authorization: `Bearer ${API_KEY}`,\n            \"Content-Type\": \"application/json\",\n        },\n    });\n\n    if (!response.ok) {\n        console.error(\"Error cancelling invoice:\", await response.text());\n    } else {\n        const result = await response.json();\n        console.log(\"Invoice cancellation successful:\", result);\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\t// APIキーとインボイスIDを指定\n\tapiKey := \"<Secret API Key>\"\n\tinvoiceID := \"<Invoice ID>\" // インボイスIDを指定\n\n\t// URLの設定\n\turl := fmt.Sprintf(\"https://api.test.fincode.jp/v1/invoices/%s/cancel\", invoiceID)\n\n\t// HTTPリクエストの作成\n\treq, err := http.NewRequest(\"PUT\", url, nil)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエストの作成エラー: %v\", err)\n\t}\n\n\t// ヘッダーの設定\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\t// クライアントの作成とリクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエストエラー: %v\", err)\n\t}\n\tdefer res.Body.Close()\n\n\t// レスポンスのステータスコードの表示\n\tfmt.Println(\"Status:\", res.Status)\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n$invoiceId = '<Invoice ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/invoices/{$invoiceId}/cancel\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: application/json\"\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, \"PUT\");\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    // エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    // APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\ninvoice_id = '<Invoice ID>'\n\nurl = f'https://api.test.fincode.jp/v1/invoices/{invoice_id}/cancel'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\n# HTTP PUTリクエストの送信\ntry:\n    response = requests.put(url, headers=headers)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # 成功した場合の処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    invoice_id = '<Invoice ID>'\n    endpoint = \"/v1/invoices/#{invoice_id}/cancel\"\n    \n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Put.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n    request['Content-Type'] = 'application/json'\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/invoices/{id}/paid_externally": {
      "put": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "paidExternallyInvoices",
        "tags": [
          "インボイス機能"
        ],
        "summary": "インボイス 外部支払いマーク",
        "description": "指定したIDを持つ発行済みのインボイス情報を、M's PayBridgeによる決済機能でない方法で支払われたとしてマークします。\\\nこのインボイス情報のステータスは支払い完了（`PAID`）へ遷移し、M's PayBridge外支払フラグ（`is_paid_externally`）が`true` になります。\n",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "インボイスID\n"
          },
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\n指定したテナントショップを請求元としたインボイス請求書についての更新ができます。\n"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "transaction_date": {
                    "type": "string",
                    "minLength": 10,
                    "maxLength": 10,
                    "description": "支払い完了日  \nyyyy/MM/dd形式  \n"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvoiceDetail.Marking.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X PUT \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\n      \"transaction_date\": \"2024/01/01\"\n}' \\\n'https://api.test.fincode.jp/v1/invoices/{id}/paid_externally'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import fetch from \"node-fetch\";\n\nconst BASE_URL = \"https://api.test.fincode.jp\";\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const invoiceId = \"<Invoice ID>\";  // 適切なInvoice IDに置き換えてください\n    const endpoint = `${BASE_URL}/v1/invoices/${invoiceId}/paid_externally`;\n\n    const response = await fetch(endpoint, {\n        method: \"PUT\",\n        headers: {\n            Authorization: `Bearer ${API_KEY}`,\n            \"Content-Type\": \"application/json\",\n        },\n        body: JSON.stringify({\n            transaction_date: \"2024/01/01\",  // 日付を適切に設定\n        }),\n    });\n\n    if (!response.ok) {\n        console.error(`Error: ${response.statusText}`);\n        return;\n    }\n\n    const data = await response.json();\n    console.log(data);\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\t// APIキーとインボイスIDを指定\n\tapiKey := \"<Secret API Key>\"\n\tinvoiceID := \"<Invoice ID>\" // インボイスIDを指定\n\n\t// リクエストボディの作成\n\tbody := map[string]string{\n\t\t\"transaction_date\": \"2024/01/01\",\n\t}\n\t\n\t// JSONエンコード\n\tmarshalledBody, err := json.Marshal(body)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエストボディのエンコードエラー: %v\", err)\n\t}\n\n\t// URLの設定\n\turl := fmt.Sprintf(\"https://api.test.fincode.jp/v1/invoices/%s/paid_externally\", invoiceID)\n\n\t// HTTPリクエストの作成\n\treq, err := http.NewRequest(\"PUT\", url, bytes.NewBuffer(marshalledBody))\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエストの作成エラー: %v\", err)\n\t}\n\n\t// ヘッダーの設定\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\t// クライアントの作成とリクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエストエラー: %v\", err)\n\t}\n\tdefer res.Body.Close()\n\n\t// レスポンスのステータスコードの表示\n\tfmt.Println(\"Status:\", res.Status)\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n$invoiceId = '<Invoice ID>';  // 適切なInvoice IDに置き換えてください\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/invoices/{$invoiceId}/paid_externally\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: application/json\"\n];\n\n$data = json_encode([\n    \"transaction_date\" => \"2024/01/01\",  // 日付を適切に設定\n]);\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, \"PUT\");\ncurl_setopt($session, CURLOPT_POSTFIELDS, $data);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\ninvoice_id = '<Invoice ID>'  # 適切なInvoice IDに置き換えてください\n\nurl = f'https://api.test.fincode.jp/v1/invoices/{invoice_id}/paid_externally'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\ndata = {\n    \"transaction_date\": \"2024/01/01\",  # 日付を適切に設定\n}\n\n# HTTP PUTリクエストの送信\ntry:\n    response = requests.put(url, headers=headers, json=data)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # 成功した場合の処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n  invoice_id = '<Invoice ID>'  # 適切なInvoice IDに置き換えてください\n  endpoint = \"/v1/invoices/#{invoice_id}/paid_externally\"\n  \n  uri = URI.parse(BASE_URL + endpoint)\n\n  http = Net::HTTP.new(uri.host, uri.port)\n  http.use_ssl = true\n\n  data = {\n    transaction_date: \"2024/01/01\"  # 日付を適切に設定\n  }\n\n  # リクエストの作成\n  request = Net::HTTP::Put.new(uri.request_uri)\n  request['Authorization'] = \"Bearer #{API_KEY}\"\n  request['Content-Type'] = 'application/json'\n\n  request.body = data.to_json\n\n  # リクエストの送信\n  response = http.request(request)\n\n  case response\n  when Net::HTTPSuccess\n    puts 'SUCCESS'\n  else\n    puts 'ERROR'\n  end\n\n  # レスポンスの表示\n  puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/invoices/{id}/virtual_account/refresh": {
      "put": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "refreshInvoicesVirtualaccount",
        "tags": [
          "インボイス機能"
        ],
        "summary": "インボイス バーチャル口座再発行",
        "description": "指定したインボイスに割り当てられているバーチャル口座について、期限が切れていて口座がクローズされている場合、新たなバーチャル口座を割り当てます。\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 30
            },
            "description": "インボイスID"
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvoiceDetail.Refresh.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X PUT \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n\\\n'https://api.test.fincode.jp/v1/invoices/{id}/refresh'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import fetch from \"node-fetch\";\n\nconst BASE_URL = \"https://api.test.fincode.jp\";\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const invoiceId = \"<Invoice ID>\";\n\n    const endpoint = `${BASE_URL}/v1/invoices/${invoiceId}/refresh`;\n\n    const response = await fetch(endpoint, {\n        method: \"PUT\",\n        headers: {\n            Authorization: `Bearer ${API_KEY}`,\n            \"Content-Type\": \"application/json\",\n        },\n    });\n\n    if (!response.ok) {\n        console.error(\"Error cancelling invoice:\", await response.text());\n    } else {\n        const result = await response.json();\n        console.log(\"Invoice cancellation successful:\", result);\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\t// APIキーとインボイスIDを指定\n\tapiKey := \"<Secret API Key>\"\n\tinvoiceID := \"<Invoice ID>\" // インボイスIDを指定\n\n\t// URLの設定\n\turl := fmt.Sprintf(\"https://api.test.fincode.jp/v1/invoices/%s/refresh\", invoiceID)\n\n\t// HTTPリクエストの作成\n\treq, err := http.NewRequest(\"PUT\", url, nil)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエストの作成エラー: %v\", err)\n\t}\n\n\t// ヘッダーの設定\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\t// クライアントの作成とリクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエストエラー: %v\", err)\n\t}\n\tdefer res.Body.Close()\n\n\t// レスポンスのステータスコードの表示\n\tfmt.Println(\"Status:\", res.Status)\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n$invoiceId = '<Invoice ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/invoices/{$invoiceId}/refresh\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: application/json\"\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, \"PUT\");\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    // エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    // APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\ninvoice_id = '<Invoice ID>'\n\nurl = f'https://api.test.fincode.jp/v1/invoices/{invoice_id}/refresh'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\n# HTTP PUTリクエストの送信\ntry:\n    response = requests.put(url, headers=headers)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # 成功した場合の処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    invoice_id = '<Invoice ID>'\n    endpoint = \"/v1/invoices/#{invoice_id}/refresh\"\n    \n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Put.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n    request['Content-Type'] = 'application/json'\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/invoices/{id}/amount_register/payee_account": {
      "put": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "amountRegisterInvoicePayeeAccount",
        "tags": [
          "インボイス機能"
        ],
        "summary": "インボイス 入金登録（銀行振込（指定口座））",
        "description": "指定したIDを持つ発行済みのインボイスに対し、銀行振込（指定口座）による入金額を登録します。\\\n登録した入金情報は、後続の[インボイス 支払い完了（銀行振込（指定口座））API](#operation/captureInvoicePayeeAccount) によって支払完了として確定できます。\n",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "インボイスID\n"
          },
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\n指定したテナントショップを請求元としたインボイスに対して入金登録を行います。\n"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Invoice.PayeeAccount.AmountRegistering.Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Invoice.PayeeAccount.AmountRegistering.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X PUT \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\n    \"amount\": \"1000\"\n}' \\\n    'https://api.test.fincode.jp/v1/invoices/{id}/amount_register/payee_account'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import fetch from \"node-fetch\";\n\nconst BASE_URL = \"https://api.test.fincode.jp\";\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const invoiceID = \"<Invoice ID>\";\n    const endpoint = `${BASE_URL}/v1/invoices/${invoiceID}/amount_register/payee_account`;\n\n    const response = await fetch(endpoint, {\n        method: \"PUT\",\n        headers: {\n            Authorization: `Bearer ${API_KEY}`,\n            \"Content-Type\": \"application/json\",\n        },\n        body: JSON.stringify({\n            amount: \"1000\",\n        }),\n    });\n\n    if (!response.ok) {\n        console.error(`Error: ${response.statusText}`);\n        return;\n    }\n\n    const data = await response.json();\n    console.log(data);\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"fmt\"\n\t\"io\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tapiKey := \"<Secret API Key>\"\n\tinvoiceID := \"<Invoice ID>\"\n\n\turl := fmt.Sprintf(\"https://api.test.fincode.jp/v1/invoices/%s/amount_register/payee_account\", invoiceID)\n\n\treqBody := bytes.NewBufferString(`{\n\t\t\"amount\": \"1000\"\n\t}`)\n\n\treq, err := http.NewRequest(\"PUT\", url, reqBody)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエスト作成エラー: %v\", err)\n\t}\n\treq.Header.Set(\"Authorization\", \"Bearer \"+apiKey)\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエスト送信エラー: %v\", err)\n\t}\n\tdefer resp.Body.Close()\n\n\trespBody, _ := io.ReadAll(resp.Body)\n\tfmt.Println(string(respBody))\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n$invoiceID = \"<Invoice ID>\";\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/invoices/{$invoiceID}/amount_register/payee_account\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: application/json\"\n];\n\n$data = json_encode([\n    \"amount\" => \"1000\"\n]);\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, \"PUT\");\ncurl_setopt($session, CURLOPT_POSTFIELDS, $data);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n\n$response = curl_exec($session);\nif ($response === false) {\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    var_dump($response);\n}\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\ninvoice_id = '<Invoice ID>'\nurl = f'https://api.test.fincode.jp/v1/invoices/{invoice_id}/amount_register/payee_account'\n\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\ndata = {\n    \"amount\": \"1000\"\n}\n\ntry:\n    response = requests.put(url, headers=headers, json=data)\n    if response.status_code == 200:\n        print(f\"Success: {response.json()}\")\n    else:\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    print(f\"通信エラー: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n  invoice_id = '<Invoice ID>'\n  endpoint = \"/v1/invoices/#{invoice_id}/amount_register/payee_account\"\n  uri = URI.parse(BASE_URL + endpoint)\n\n  http = Net::HTTP.new(uri.host, uri.port)\n  http.use_ssl = true\n\n  data = {\n    amount: \"1000\"\n  }\n\n  request = Net::HTTP::Put.new(uri.request_uri)\n  request['Authorization'] = \"Bearer #{API_KEY}\"\n  request['Content-Type'] = 'application/json'\n  request.body = data.to_json\n\n  response = http.request(request)\n  puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/invoices/{id}/capture/payee_account": {
      "put": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "captureInvoicePayeeAccount",
        "tags": [
          "インボイス機能"
        ],
        "summary": "インボイス 支払い完了（銀行振込（指定口座））",
        "description": "指定したIDを持つ発行済みのインボイスを、銀行振込（指定口座）による入金で支払い完了として確定します。\\\n事前に[インボイス 入金登録（銀行振込（指定口座））API](#operation/amountRegisterInvoicePayeeAccount) によって入金登録されていない場合は、請求金額で支払い完了となります。\n",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "インボイスID\n"
          },
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\n指定したテナントショップを請求元としたインボイスに対して支払完了処理を行います。\n"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Invoice.PayeeAccount.Capturing.Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Invoice.PayeeAccount.Capturing.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X PUT \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\n    \"payment_method_id\": \"pm_xxxxxxxxxxxxxxxxxxxxxx\",\n    \"transaction_date\": \"2026/05/01\"\n}' \\\n    'https://api.test.fincode.jp/v1/invoices/{id}/capture/payee_account'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import fetch from \"node-fetch\";\n\nconst BASE_URL = \"https://api.test.fincode.jp\";\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const invoiceID = \"<Invoice ID>\";\n    const endpoint = `${BASE_URL}/v1/invoices/${invoiceID}/capture/payee_account`;\n\n    const response = await fetch(endpoint, {\n        method: \"PUT\",\n        headers: {\n            Authorization: `Bearer ${API_KEY}`,\n            \"Content-Type\": \"application/json\",\n        },\n        body: JSON.stringify({\n            payment_method_id: \"pm_xxxxxxxxxxxxxxxxxxxxxx\",\n            transaction_date: \"2026/05/01\",\n        }),\n    });\n\n    if (!response.ok) {\n        console.error(`Error: ${response.statusText}`);\n        return;\n    }\n\n    const data = await response.json();\n    console.log(data);\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"fmt\"\n\t\"io\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tapiKey := \"<Secret API Key>\"\n\tinvoiceID := \"<Invoice ID>\"\n\n\turl := fmt.Sprintf(\"https://api.test.fincode.jp/v1/invoices/%s/capture/payee_account\", invoiceID)\n\n\treqBody := bytes.NewBufferString(`{\n\t\t\"payment_method_id\": \"pm_xxxxxxxxxxxxxxxxxxxxxx\",\n\t\t\"transaction_date\": \"2026/05/01\"\n\t}`)\n\n\treq, err := http.NewRequest(\"PUT\", url, reqBody)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエスト作成エラー: %v\", err)\n\t}\n\treq.Header.Set(\"Authorization\", \"Bearer \"+apiKey)\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエスト送信エラー: %v\", err)\n\t}\n\tdefer resp.Body.Close()\n\n\trespBody, _ := io.ReadAll(resp.Body)\n\tfmt.Println(string(respBody))\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n$invoiceID = \"<Invoice ID>\";\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/invoices/{$invoiceID}/capture/payee_account\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: application/json\"\n];\n\n$data = json_encode([\n    \"payment_method_id\" => \"pm_xxxxxxxxxxxxxxxxxxxxxx\",\n    \"transaction_date\" => \"2026/05/01\"\n]);\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, \"PUT\");\ncurl_setopt($session, CURLOPT_POSTFIELDS, $data);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n\n$response = curl_exec($session);\nif ($response === false) {\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    var_dump($response);\n}\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\ninvoice_id = '<Invoice ID>'\nurl = f'https://api.test.fincode.jp/v1/invoices/{invoice_id}/capture/payee_account'\n\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\ndata = {\n    \"payment_method_id\": \"pm_xxxxxxxxxxxxxxxxxxxxxx\",\n    \"transaction_date\": \"2026/05/01\"\n}\n\ntry:\n    response = requests.put(url, headers=headers, json=data)\n    if response.status_code == 200:\n        print(f\"Success: {response.json()}\")\n    else:\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    print(f\"通信エラー: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n  invoice_id = '<Invoice ID>'\n  endpoint = \"/v1/invoices/#{invoice_id}/capture/payee_account\"\n  uri = URI.parse(BASE_URL + endpoint)\n\n  http = Net::HTTP.new(uri.host, uri.port)\n  http.use_ssl = true\n\n  data = {\n    payment_method_id: \"pm_xxxxxxxxxxxxxxxxxxxxxx\",\n    transaction_date: \"2026/05/01\"\n  }\n\n  request = Net::HTTP::Put.new(uri.request_uri)\n  request['Authorization'] = \"Bearer #{API_KEY}\"\n  request['Content-Type'] = 'application/json'\n  request.body = data.to_json\n\n  response = http.request(request)\n  puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/billings": {
      "get": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "getBillingsList",
        "tags": [
          "請求管理"
        ],
        "summary": "請求 一覧取得",
        "description": "請求情報を一覧で取得します。クエリパラメータを指定して取得する条件を絞り込めます。 \n",
        "parameters": [
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\n指定したテナントショップを請求元とした請求書情報を一覧で取得します。\n"
          },
          {
            "in": "query",
            "name": "クエリ",
            "description": "検索条件クエリパラメータ\n",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/Pagination.QueryParams"
                },
                {
                  "$ref": "#/components/schemas/Billing.ListRetrieving.QueryParams"
                },
                {
                  "type": "object",
                  "properties": {
                    "bill_type": {
                      "type": "string",
                      "description": "請求方式\n\nカンマ(,)区切りで複数指定も可能です。\n\n- `01`: インボイス\n- `02`: リダイレクト型決済\n- `03`: 決済（請求情報下書き）\n"
                    }
                  }
                }
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Billing.ListRetrieving.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X GET \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n'https://api.test.fincode.jp/v1/billings'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import fetch from \"node-fetch\";\n\nconst BASE_URL = \"https://api.test.fincode.jp\";\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const endpoint = `${BASE_URL}/v1/billings`;\n\n    const response = await fetch(endpoint, {\n        method: \"GET\",\n        headers: {\n            Authorization: `Bearer ${API_KEY}`,\n        },\n    });\n    const billings = await response.json();\n    console.log(billings); // 取得した請求データを出力\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\t// APIキーの指定\n\tapiKey := \"<Secret API Key>\"\n\n\t// リクエストの作成\n\treq, err := http.NewRequest(\n\t\t\"GET\",\n\t\t\"https://api.test.fincode.jp/v1/billings\",\n\t\tnil,\n\t)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエストの作成エラー: %v\", err)\n\t}\n\n\t// ヘッダーの設定\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\n\t// クライアントの作成とリクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエストエラー: %v\", err)\n\t}\n\tdefer res.Body.Close()\n\n\t// レスポンスのステータスコードの表示\n\tfmt.Println(\"Status:\", res.Status)\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/billings\"; // GETリクエストのエンドポイント\n\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_HTTPGET, true);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, 2);\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    // エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    // APIからのデータを処理\n    var_dump($response); // レスポンスを出力\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\nbase_url = \"https://api.test.fincode.jp\"\nendpoint = \"/v1/billings\"  # GETリクエストのエンドポイント\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n}\n\ntry:\n    response = requests.get(f\"{base_url}{endpoint}\", headers=headers)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # APIからのデータを処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    endpoint = \"/v1/billings\"  # GETリクエストのエンドポイント\n\n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Get.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n        # レスポンスの表示\n        puts JSON.pretty_generate(JSON.parse(response.body))\n    else\n        puts 'ERROR'\n        # エラーの表示\n        puts response.body\n    end\nend\n\nmain\n"
          }
        ]
      },
      "post": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "registerBillings",
        "tags": [
          "請求管理"
        ],
        "summary": "請求書 作成",
        "description": "請求書情報を作成します。\\\n取引内容やご利用の決済手段などの各種入力項目は、請求書 更新APIを利用して後から入力することも可能です。\\\n請求書 発行APIを呼び出すまで請求は行われません。\n",
        "parameters": [
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\n指定したテナントショップを請求元とした請求書情報を作成します。\n"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Billing.Creating.Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Billing.Creating.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "#!/bin/bash\n\n# 変数設定\nAPI_KEY=\"<Secret API Key>\"\n\ncurl \\\n    -X POST \\\n    -H \"Authorization: Bearer $API_KEY\" \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\n      \"bill_type\":\"01\",\n      \"is_uncollectible\": false,\n      \"customer_id\": \"CUST001\",\n      \"customer_honorific\": \"様\",\n      \"customer_overwrite\": {\n        \"name\": \"株式会社テスト\",\n        \"email\": \"test@example.com\",\n        \"addr_country\": \"392\",\n        \"addr_state\": \"13\",\n        \"addr_city\": \"新宿区\",\n        \"addr_line_1\": \"1-1-1\",\n        \"addr_line_2\": \"テストビル\",\n        \"addr_line_3\": \"\",\n        \"addr_post_code\": \"1600022\"\n      },\n      \"issuer_overwrite\": {\n        \"addr_state\": \"13\",\n        \"addr_city\": \"新宿区\",\n        \"addr_line_1\": \"1-1-1\",\n        \"addr_line_2\": \"テストビル\",\n        \"addr_line_3\": \"\",\n        \"addr_post_code\": \"1600022\",\n        \"email\": \"issuer@example.com\",\n        \"phone_number\": \"0312345678\"\n      },\n      \"invoice\": {\n        \"invoice_number\": \"INV123456\",\n        \"bill_mail_send_flag\": \"0\",\n        \"receipt_mail_send_flag\": \"0\",\n        \"underpayment_mail_send_flag\": \"0\",\n        \"lines\": [\n          {\n            \"date\": \"2023/10/01\",\n            \"name\": \"商品A\",\n            \"unit_price\": 1000,\n            \"quantity\": 2,\n            \"tax_rate\": 10\n          }\n        ]\n      },\n      \"pay_types\": [\n        \"Virtualaccount\",\n        \"Card\"\n      ]\n    }' \\\n    \"https://api.test.fincode.jp/v1/billings\""
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import fetch from \"node-fetch\";\n\nconst BASE_URL = \"https://api.test.fincode.jp\";\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const endpoint = `${BASE_URL}/v1/billings`;\n\n    const response = await fetch(endpoint, {\n        method: \"POST\",\n        headers: {\n            Authorization: `Bearer ${API_KEY}`,\n            \"Content-Type\": \"application/json\",\n        },\n        body: JSON.stringify({\n            bill_type: \"01\",\n            is_uncollectible: false,\n            customer_id: \"CUST001\",\n            customer_honorific: \"様\",\n            customer_overwrite: {\n                name: \"株式会社テスト\",\n                email: \"test@example.com\",\n                addr_country: \"JPN\", // 3文字の国コード\n                addr_state: \"13\",\n                addr_city: \"新宿区\",\n                addr_line_1: \"1-1-1\",\n                addr_line_2: \"テストビル\",\n                addr_line_3: \"\",\n                addr_post_code: \"1600022\"\n            },\n            issuer_overwrite: {\n                addr_state: \"13\",\n                addr_city: \"新宿区\",\n                addr_line_1: \"1-1-1\",\n                addr_line_2: \"テストビル\",\n                addr_line_3: \"\",\n                addr_post_code: \"1600022\",\n                email: \"issuer@example.com\",\n                phone_number: \"0312345678\"\n            },\n            invoice: {\n                invoice_number: \"INV123456\",\n                bill_mail_send_flag: \"0\",\n                receipt_mail_send_flag: \"0\",\n                underpayment_mail_send_flag: \"0\",\n                lines: [\n                    {\n                        date: \"2023/10/01\",\n                        name: \"商品A\",\n                        unit_price: 1000,\n                        quantity: 2,\n                        tax_rate: 10\n                    }\n                ]\n            },\n            pay_types: [\n                \"Virtualaccount\",\n                \"Card\"\n            ]\n        }),\n    });\n\n    if (response.ok) {\n        const billingData = await response.json();\n        console.log(\"Billing Created:\", billingData);\n    } else {\n        console.error(\"Error creating billing:\", await response.text());\n    }\n})();"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\t// APIキーを指定\n\tapiKey := \"<Secret API Key>\"\n\n\t// リクエストボディの作成\n\tbody := UpdateBillingRequest{\n\t\tBillType:        \"01\",\n\t\tIsUncollectible: false,\n\t\tInvoice: Invoice{\n\t\t\tBillMailSendFlag:         \"0\",\n\t\t\tReceiptMailSendFlag:      \"0\",\n\t\t\tUnderpaymentMailSendFlag: \"0\",\n\t\t\tInvoiceNumber:            \"INV123456\",\n\t\t\tLines: []Line{\n\t\t\t\t{\n\t\t\t\t\tDate:      \"2023/10/01\",\n\t\t\t\t\tName:      \"商品A\",\n\t\t\t\t\tUnitPrice: 1000,\n\t\t\t\t\tQuantity:  2,\n\t\t\t\t\tTaxRate:   10,\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\tCustomerID:        \"CUST001\",\n\t\tCustomerHonorific: \"様\",\n\t\tCustomerOverwrite: CustomerOverwrite{\n\t\t\tName:        \"株式会社テスト\",\n\t\t\tEmail:       \"test@example.com\",\n\t\t\tAddrCountry: \"392\",\n\t\t\tAddrState:   \"13\",\n\t\t\tAddrCity:    \"新宿区\",\n\t\t\tAddrLine1:   \"1-1-1\",\n\t\t\tAddrLine2:   \"テストビル\",\n\t\t\tAddrLine3:   \"\",\n\t\t\tAddrPostCode: \"1600022\",\n\t\t},\n\t\tIssuerOverwrite: IssuerOverwrite{\n\t\t\tAddrCountry: \"JP\",\n\t\t\tAddrState:   \"13\",\n\t\t\tAddrCity:    \"新宿区\",\n\t\t\tAddrLine1:   \"1-1-1\",\n\t\t\tAddrLine2:   \"テストビル\",\n\t\t\tAddrLine3:   \"\",\n\t\t\tAddrPostCode: \"1600022\",\n\t\t\tEmail:       \"issuer@example.com\",\n\t\t\tPhoneNumber: \"0312345678\",\n\t\t},\n\t\tPayTypes: []string{\"Virtualaccount\", \"Card\"},\n\t}\n\n\t// JSONにエンコード\n\tmarshalledBody, err := json.Marshal(body)\n\tif err != nil {\n\t\tlog.Fatalf(\"エンコードエラー: %v\", err)\n\t}\n\n\t// URLの設定\n\turl := \"https://api.test.fincode.jp/v1/billings\"\n\n\t// HTTPリクエストの作成\n\treq, err := http.NewRequest(\"POST\", url, bytes.NewBuffer(marshalledBody))\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエストの作成エラー: %v\", err)\n\t}\n\n\t// ヘッダーの設定\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\t// クライアントの作成とリクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエストエラー: %v\", err)\n\t}\n\tdefer res.Body.Close()\n\n\t// レスポンスのステータスコードの表示\n\tfmt.Println(\"Status:\", res.Status)\n}\n\ntype UpdateBillingRequest struct {\n\tBillType\t\t string            `json:\"bill_type,omitempty\"`\n\tIsUncollectible   bool              `json:\"is_uncollectible,omitempty\"`\n\tCustomerID        string            `json:\"customer_id,omitempty\"`\n\tCustomerHonorific string            `json:\"customer_honorific,omitempty\"`\n\tCustomerOverwrite CustomerOverwrite `json:\"customer_overwrite,omitempty\"`\n\tIssuerOverwrite   IssuerOverwrite   `json:\"issuer_overwrite,omitempty\"`\n\tInvoice           Invoice           `json:\"invoice,omitempty\"`\n\tLinkType          LinkType          `json:\"link_type,omitempty\"`\n\tPayTypes          []string          `json:\"pay_types,omitempty\"`\n}\n\ntype CustomerOverwrite struct {\n\tName        string `json:\"name\"`\n\tEmail       string `json:\"email\"`\n\tAddrCountry string `json:\"addr_country\"`\n\tAddrState   string `json:\"addr_state\"`\n\tAddrCity    string `json:\"addr_city\"`\n\tAddrLine1   string `json:\"addr_line_1\"`\n\tAddrLine2   string `json:\"addr_line_2\"`\n\tAddrLine3   string `json:\"addr_line_3,omitempty\"`\n\tAddrPostCode string `json:\"addr_post_code\"`\n}\n\ntype IssuerOverwrite struct {\n\tAddrCountry string `json:\"addr_country\"`\n\tAddrState   string `json:\"addr_state\"`\n\tAddrCity    string `json:\"addr_city\"`\n\tAddrLine1   string `json:\"addr_line_1\"`\n\tAddrLine2   string `json:\"addr_line_2\"`\n\tAddrLine3   string `json:\"addr_line_3,omitempty\"`\n\tAddrPostCode string `json:\"addr_post_code\"`\n\tEmail       string `json:\"email\"`\n\tPhoneNumber string `json:\"phone_number\"`\n}\n\ntype Invoice struct {\n\tInvoiceNumber            string `json:\"invoice_number,omitempty\"`\n\tLines                    []Line `json:\"lines,omitempty\"`\n\tBillMailSendFlag         string `json:\"bill_mail_send_flag,omitempty\"`\n\tReceiptMailSendFlag      string `json:\"receipt_mail_send_flag,omitempty\"`\n\tUnderpaymentMailSendFlag string `json:\"underpayment_mail_send_flag,omitempty\"`\n}\n\ntype Line struct {\n\tDate      string  `json:\"date,omitempty\"`\n\tName      string  `json:\"name,omitempty\"`\n\tUnitPrice float64 `json:\"unit_price,omitempty\"`\n\tQuantity  float64 `json:\"quantity,omitempty\"`\n\tTaxRate   float64 `json:\"tax_rate,omitempty\"`\n}\n\ntype LinkType struct {\n\tSuccessUrl string `json:\"type,omitempty\"`\n\tCancelUrl string `json:\"type,omitempty\"`\n\tExpire string `json:\"type,omitempty\"`\n\tReceiverMail string `json:\"type,omitempty\"`\n\tMailCustomerName string `json:\"type,omitempty\"`\n\tTransactions []Transaction `json:\"transactions,omitempty\"`\n}\n\ntype Transaction struct {\n\tAmount       float64 `json:\"amount,omitempty\"`\n\tTax \t\tfloat64 `json:\"tax,omitempty\"`\n}"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/billings\";\n\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: application/json\"\n];\n\n$data = json_encode([\n    \"bill_type\" => \"01\",\n    \"is_uncollectible\" => false,\n    \"customer_id\" => \"CUST001\",\n    \"customer_honorific\" => \"様\",\n    \"customer_overwrite\" => [\n        \"name\" => \"株式会社テスト\",\n        \"email\" => \"test@example.com\",\n        \"addr_country\" => \"392\",\n        \"addr_state\" => \"13\",\n        \"addr_city\" => \"新宿区\",\n        \"addr_line_1\" => \"1-1-1\",\n        \"addr_line_2\" => \"テストビル\",\n        \"addr_line_3\" => \"\",\n        \"addr_post_code\" => \"1600022\"\n    ],\n    \"issuer_overwrite\" => [\n        \"addr_state\" => \"13\",\n        \"addr_city\" => \"新宿区\",\n        \"addr_line_1\" => \"1-1-1\",\n        \"addr_line_2\" => \"テストビル\",\n        \"addr_line_3\" => \"\",\n        \"addr_post_code\" => \"1600022\",\n        \"email\" => \"issuer@example.com\",\n        \"phone_number\" => \"0312345678\"\n    ],\n    \"invoice\" => [\n        \"invoice_number\" => \"INV123456\",\n        \"bill_mail_send_flag\" => \"0\",\n        \"receipt_mail_send_flag\" => \"0\",\n        \"underpayment_mail_send_flag\" => \"0\",\n        \"lines\" => [\n            [\n                \"date\" => \"2023/10/01\",\n                \"name\" => \"商品A\",\n                \"unit_price\" => 1000,\n                \"quantity\" => 2,\n                \"tax_rate\" => 10\n            ]\n        ]\n    ],\n    \"pay_types\" => [\n        \"Virtualaccount\",\n        \"Card\"\n    ]\n]);\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($session, CURLOPT_POSTFIELDS, $data);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    // エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    // APIからのデータを処理\n    $httpCode = curl_getinfo($session, CURLINFO_HTTP_CODE);\n    echo \"HTTP Status Code: \" . $httpCode . \"\\n\";\n    \n    if ($httpCode === 200) {\n        $responseData = json_decode($response, true);\n        echo \"Invoice Updated Successfully:\\n\";\n        var_dump($responseData);\n    } else {\n        echo \"Error Response:\\n\";\n        var_dump($response);\n    }\n}\n\ncurl_close($session);\n\n?>"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\nurl = 'https://api.test.fincode.jp/v1/billings'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\ndata = {\n    \"bill_type\": \"01\",\n    \"is_uncollectible\": \"0\",\n    \"customer_id\": \"CUST001\",\n    \"customer_honorific\": \"様\",\n    \"customer_overwrite\": {\n        \"name\": \"株式会社テスト\",\n        \"email\": \"test@example.com\",\n        \"addr_country\": \"392\",\n        \"addr_state\": \"13\",\n        \"addr_city\": \"新宿区\",\n        \"addr_line_1\": \"1-1-1\",\n        \"addr_line_2\": \"テストビル\",\n        \"addr_line_3\": \"\",\n        \"addr_post_code\": \"1600022\"\n    },\n    \"issuer_overwrite\": {\n        \"addr_state\": \"13\",\n        \"addr_city\": \"新宿区\",\n        \"addr_line_1\": \"1-1-1\",\n        \"addr_line_2\": \"テストビル\",\n        \"addr_line_3\": \"\",\n        \"addr_post_code\": \"1600022\",\n        \"email\": \"issuer@example.com\",\n        \"phone_number\": \"0312345678\"\n    },\n    \"invoice\": {\n        \"invoice_number\": \"INV123456\",\n        \"bill_mail_send_flag\": \"0\",\n        \"receipt_mail_send_flag\": \"0\",\n        \"underpayment_mail_send_flag\": \"0\",\n        \"lines\": [\n            {\n                \"date\": \"2023/10/01\",\n                \"name\": \"商品A\",\n                \"unit_price\": 1000,\n                \"quantity\": 2,\n                \"tax_rate\": 10\n            }\n        ]\n    },\n    \"pay_types\": [\n        \"Virtualaccount\",\n        \"Card\"\n    ]\n}\n\n# HTTP POSTリクエストの送信\ntry:\n    response = requests.post(url, headers=headers, json=data)\n    \n    # レスポンスの処理\n    print(f\"HTTP Status Code: {response.status_code}\")\n    \n    if response.status_code == 200:\n        # 成功した場合の処理\n        print(\"Success:\")\n        print(response.json())\n    else:\n        # エラーの処理\n        print(\"Error Response:\")\n        try:\n            print(response.json())\n        except ValueError:\n            # JSONでない場合はテキストを表示\n            print(response.text)\n            \nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\nexcept Exception as e:\n    # その他のエラーの処理\n    print(f\"Unexpected error: {e}\")"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    endpoint = \"/v1/billings\"\n\n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    data = {\n        bill_type:\"01\",\n        is_uncollectible: false,\n        customer_id: \"CUST001\",\n        customer_honorific: \"様\",\n        customer_overwrite: {\n            name: \"株式会社テスト\",\n            email: \"test@example.com\",\n            addr_country: \"392\",\n            addr_state: \"13\",\n            addr_city: \"新宿区\",\n            addr_line_1: \"1-1-1\",\n            addr_line_2: \"テストビル\",\n            addr_line_3: \"\",\n            addr_post_code: \"1600022\"\n        },\n        issuer_overwrite: {\n            addr_state: \"13\",\n            addr_city: \"新宿区\",\n            addr_line_1: \"1-1-1\",\n            addr_line_2: \"テストビル\",\n            addr_line_3: \"\",\n            addr_post_code: \"1600022\",\n            email: \"issuer@example.com\",\n            phone_number: \"0312345678\"\n        },\n        invoice: {\n            invoice_number: \"INV123456\",\n            bill_mail_send_flag: \"0\",\n            receipt_mail_send_flag: \"0\",\n            underpayment_mail_send_flag: \"0\",\n            lines: [\n                {\n                    date: \"2023/10/01\",\n                    name: \"商品A\",\n                    unit_price: 1000,\n                    quantity: 2,\n                    tax_rate: 10\n                }\n            ]\n        },\n        pay_types: [\n            \"Virtualaccount\",\n            \"Card\"\n        ]\n    }\n\n    # リクエストの作成\n    request = Net::HTTP::Post.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n    request['Content-Type'] = 'application/json'\n\n    request.body = data.to_json\n\n    begin\n        # リクエストの送信\n        response = http.request(request)\n\n        puts \"HTTP Status Code: #{response.code}\"\n\n        case response\n        when Net::HTTPSuccess\n            puts 'SUCCESS:'\n            begin\n                response_data = JSON.parse(response.body)\n                puts JSON.pretty_generate(response_data)\n            rescue JSON::ParserError\n                puts response.body\n            end\n        else\n            puts 'ERROR:'\n            begin\n                error_data = JSON.parse(response.body)\n                puts JSON.pretty_generate(error_data)\n            rescue JSON::ParserError\n                puts response.body\n            end\n        end\n\n    rescue StandardError => e\n        puts \"Request error: #{e.message}\"\n    end\nend\n\nmain"
          }
        ]
      }
    },
    "/v1/billings/{id}": {
      "get": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "getBillings",
        "tags": [
          "請求管理"
        ],
        "summary": "請求 取得",
        "description": "指定したIDを持つ請求情報を取得します。\n",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "請求ID  \n"
          },
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\n指定することで、指定したテナントショップのインボイス請求書情報を取得できます。\n"
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingDetail.Retrieving.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X GET \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n'https://api.test.fincode.jp/v1/billings/{id}'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import fetch from \"node-fetch\";\n\nconst BASE_URL = \"https://api.test.fincode.jp\";\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const billingId = \"<Billing ID>\"; // 実際のBilling IDを入力してください\n\n    const endpoint = `${BASE_URL}/v1/billings/${billingId}`;\n\n    try {\n        const response = await fetch(endpoint, {\n            method: \"GET\",\n            headers: {\n                Authorization: `Bearer ${API_KEY}`,\n            },\n        });\n\n        if (!response.ok) {\n            throw new Error(`Error: ${response.statusText}`);\n        }\n\n        const billing = await response.json();\n        console.log(billing); // 取得した請求データをコンソールに表示\n    } catch (error) {\n        console.error('Error:', error);\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tapiKey := \"<Secret API Key>\"\n\tbillingID := \"<Billing ID>\"\n\n\t// リクエストの作成\n\treq, err := http.NewRequest(\n\t\t\"GET\",\n\t\tfmt.Sprintf(\"https://api.test.fincode.jp/v1/billings/%s\", billingID),\n\t\tnil,\n\t)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエストの作成エラー: %v\", err)\n\t}\n\n\t// ヘッダーの設定\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエストエラー: %v\", err)\n\t}\n\tdefer res.Body.Close()\n\n\t// HTTPステータスコードを表示\n\tfmt.Println(\"HTTPステータスコード:\", res.StatusCode)\n\n\t// レスポンスボディを読み取って表示\n\tbody, err := io.ReadAll(res.Body)\n\tif err != nil {\n\t\tlog.Fatalf(\"レスポンスボディの読み取りエラー: %v\", err)\n\t}\n\tfmt.Println(\"レスポンスボディ:\", string(body))\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$billingId = '<Billing ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/billings/{$billingId}\";\n$queryParams = [\n    // 必要なクエリパラメータがあればここに追加\n    // \"example_param\" => \"value\",\n];\n\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint . '?' . http_build_query($queryParams));\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_HTTPGET, true);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    // エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    // APIからのデータを処理\n    $responseData = json_decode($response, true);\n    if (json_last_error() === JSON_ERROR_NONE) {\n        // JSONが正しく解析された場合\n        var_dump($responseData);\n    } else {\n        // JSON解析エラー\n        echo \"JSON Decode Error: \" . json_last_error_msg();\n    }\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\nbilling_id = '<Billing ID>'\n\nurl = f'https://api.test.fincode.jp/v1/billings/{billing_id}'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n}\n\ntry:\n    response = requests.get(url, headers=headers)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # APIからのデータを処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    billing_id = '<Billing ID>'\n\n    endpoint = \"/v1/billings/#{billing_id}\"\n\n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Get.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts JSON.pretty_generate(JSON.parse(response.body))\nend\n\nmain\n"
          }
        ]
      },
      "put": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "updateBillings",
        "tags": [
          "請求管理"
        ],
        "summary": "請求 更新",
        "description": "指定したIDを持つ請求情報を更新します。\\\n請求 発行APIを呼び出すまで請求は行われません。発行後は 回収困難フラグ、および 加盟店自由項目 のみが更新可能です。\n",
        "parameters": [
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\n指定したテナントショップを販売主とした請求書情報を更新します。\n"
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "請求ID\n"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BillingDetail.Updating.Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingDetail.Updating.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "#!/bin/bash\n\n# 変数設定\nAPI_KEY=\"<Secret API Key>\"\nBILLING_ID=\"<Billing ID>\"\n\ncurl \\\n    -X PUT \\\n    -H \"Authorization: Bearer $API_KEY\" \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\n      \"bill_type\":\"01\",\n      \"is_uncollectible\": false,\n      \"customer_id\": \"CUST001\",\n      \"customer_honorific\": \"様\",\n      \"customer_overwrite\": {\n        \"name\": \"株式会社テスト\",\n        \"email\": \"test@example.com\",\n        \"addr_country\": \"392\",\n        \"addr_state\": \"13\",\n        \"addr_city\": \"新宿区\",\n        \"addr_line_1\": \"1-1-1\",\n        \"addr_line_2\": \"テストビル\",\n        \"addr_line_3\": \"\",\n        \"addr_post_code\": \"1600022\"\n      },\n      \"issuer_overwrite\": {\n        \"addr_state\": \"13\",\n        \"addr_city\": \"新宿区\",\n        \"addr_line_1\": \"1-1-1\",\n        \"addr_line_2\": \"テストビル\",\n        \"addr_line_3\": \"\",\n        \"addr_post_code\": \"1600022\",\n        \"email\": \"issuer@example.com\",\n        \"phone_number\": \"0312345678\"\n      },\n      \"invoice\": {\n        \"invoice_number\": \"INV123456\",\n        \"bill_mail_send_flag\": \"0\",\n        \"receipt_mail_send_flag\": \"0\",\n        \"underpayment_mail_send_flag\": \"0\",\n        \"lines\": [\n          {\n            \"date\": \"2023/10/01\",\n            \"name\": \"商品A\",\n            \"unit_price\": 1000,\n            \"quantity\": 2,\n            \"tax_rate\": 10\n          }\n        ]\n      },\n      \"pay_types\": [\n        \"Virtualaccount\",\n        \"Card\"\n      ]\n    }' \\\n    \"https://api.test.fincode.jp/v1/billings/$BILLING_ID\""
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import fetch from \"node-fetch\";\n\nconst BASE_URL = \"https://api.test.fincode.jp\";\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const billingID = \"<Billing ID>\"; // ここにBilling IDを設定\n\n    const endpoint = `${BASE_URL}/v1/billings/${billingID}`;\n\n    const response = await fetch(endpoint, {\n        method: \"PUT\",\n        headers: {\n            Authorization: `Bearer ${API_KEY}`,\n            \"Content-Type\": \"application/json\",\n        },\n        body: JSON.stringify({\n            bill_type: \"01\",\n            is_uncollectible: false,\n            customer_id: \"CUST001\",\n            customer_honorific: \"様\",\n            customer_overwrite: {\n                name: \"株式会社テスト\",\n                email: \"test@example.com\",\n                addr_country: \"JPN\", // 3文字の国コード\n                addr_state: \"13\",\n                addr_city: \"新宿区\",\n                addr_line_1: \"1-1-1\",\n                addr_line_2: \"テストビル\",\n                addr_line_3: \"\",\n                addr_post_code: \"1600022\"\n            },\n            issuer_overwrite: {\n                addr_state: \"13\",\n                addr_city: \"新宿区\",\n                addr_line_1: \"1-1-1\",\n                addr_line_2: \"テストビル\",\n                addr_line_3: \"\",\n                addr_post_code: \"1600022\",\n                email: \"issuer@example.com\",\n                phone_number: \"0312345678\"\n            },\n            invoice: {\n                invoice_number: \"INV123456\",\n                bill_mail_send_flag: \"0\",\n                receipt_mail_send_flag: \"0\",\n                underpayment_mail_send_flag: \"0\",\n                lines: [\n                    {\n                        date: \"2023/10/01\",\n                        name: \"商品A\",\n                        unit_price: 1000,\n                        quantity: 2,\n                        tax_rate: 10\n                    }\n                ]\n            },\n            pay_types: [\n                \"Virtualaccount\",\n                \"Card\"\n            ]\n        }),\n    });\n\n    if (response.ok) {\n        const billingData = await response.json();\n        console.log(\"Billing Updated:\", billingData);\n    } else {\n        console.error(\"Error updating billing:\", await response.text());\n    }\n})();"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\t// APIキーと請求IDを指定\n\tapiKey := \"<Secret API Key>\"\n\tbillingID := \"<Billing ID>\"\n\n\t// リクエストボディの作成\n\tbody := UpdateBillingRequest{\n\t\tBillType:        \"01\",\n\t\tIsUncollectible: false,\n\t\tInvoice: Invoice{\n\t\t\tBillMailSendFlag:         \"0\",\n\t\t\tReceiptMailSendFlag:      \"0\",\n\t\t\tUnderpaymentMailSendFlag: \"0\",\n\t\t\tInvoiceNumber:            \"INV123456\",\n\t\t\tLines: []Line{\n\t\t\t\t{\n\t\t\t\t\tDate:      \"2023/10/01\",\n\t\t\t\t\tName:      \"商品A\",\n\t\t\t\t\tUnitPrice: 1000,\n\t\t\t\t\tQuantity:  2,\n\t\t\t\t\tTaxRate:   10,\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\tCustomerID:        \"CUST001\",\n\t\tCustomerHonorific: \"様\",\n\t\tCustomerOverwrite: CustomerOverwrite{\n\t\t\tName:        \"株式会社テスト\",\n\t\t\tEmail:       \"test@example.com\",\n\t\t\tAddrCountry: \"392\",\n\t\t\tAddrState:   \"13\",\n\t\t\tAddrCity:    \"新宿区\",\n\t\t\tAddrLine1:   \"1-1-1\",\n\t\t\tAddrLine2:   \"テストビル\",\n\t\t\tAddrLine3:   \"\",\n\t\t\tAddrPostCode: \"1600022\",\n\t\t},\n\t\tIssuerOverwrite: IssuerOverwrite{\n\t\t\tAddrCountry: \"JP\",\n\t\t\tAddrState:   \"13\",\n\t\t\tAddrCity:    \"新宿区\",\n\t\t\tAddrLine1:   \"1-1-1\",\n\t\t\tAddrLine2:   \"テストビル\",\n\t\t\tAddrLine3:   \"\",\n\t\t\tAddrPostCode: \"1600022\",\n\t\t\tEmail:       \"issuer@example.com\",\n\t\t\tPhoneNumber: \"0312345678\",\n\t\t},\n\t\tPayTypes: []string{\"Virtualaccount\", \"Card\"},\n\t}\n\n\t// JSONにエンコード\n\tmarshalledBody, err := json.Marshal(body)\n\tif err != nil {\n\t\tlog.Fatalf(\"エンコードエラー: %v\", err)\n\t}\n\n\t// URLの設定\n\turl := fmt.Sprintf(\"https://api.test.fincode.jp/v1/billings/%s\", billingID)\n\n\t// HTTPリクエストの作成\n\treq, err := http.NewRequest(\"PUT\", url, bytes.NewBuffer(marshalledBody))\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエストの作成エラー: %v\", err)\n\t}\n\n\t// ヘッダーの設定\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\t// クライアントの作成とリクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエストエラー: %v\", err)\n\t}\n\tdefer res.Body.Close()\n\n\t// レスポンスのステータスコードの表示\n\tfmt.Println(\"Status:\", res.Status)\n}\n\ntype UpdateBillingRequest struct {\n\tBillType\t\t string            `json:\"bill_type,omitempty\"`\n\tIsUncollectible   bool              `json:\"is_uncollectible,omitempty\"`\n\tCustomerID        string            `json:\"customer_id,omitempty\"`\n\tCustomerHonorific string            `json:\"customer_honorific,omitempty\"`\n\tCustomerOverwrite CustomerOverwrite `json:\"customer_overwrite,omitempty\"`\n\tIssuerOverwrite   IssuerOverwrite   `json:\"issuer_overwrite,omitempty\"`\n\tInvoice           Invoice           `json:\"invoice,omitempty\"`\n\tLinkType          LinkType          `json:\"link_type,omitempty\"`\n\tPayTypes          []string          `json:\"pay_types,omitempty\"`\n}\n\ntype CustomerOverwrite struct {\n\tName        string `json:\"name\"`\n\tEmail       string `json:\"email\"`\n\tAddrCountry string `json:\"addr_country\"`\n\tAddrState   string `json:\"addr_state\"`\n\tAddrCity    string `json:\"addr_city\"`\n\tAddrLine1   string `json:\"addr_line_1\"`\n\tAddrLine2   string `json:\"addr_line_2\"`\n\tAddrLine3   string `json:\"addr_line_3,omitempty\"`\n\tAddrPostCode string `json:\"addr_post_code\"`\n}\n\ntype IssuerOverwrite struct {\n\tAddrCountry string `json:\"addr_country\"`\n\tAddrState   string `json:\"addr_state\"`\n\tAddrCity    string `json:\"addr_city\"`\n\tAddrLine1   string `json:\"addr_line_1\"`\n\tAddrLine2   string `json:\"addr_line_2\"`\n\tAddrLine3   string `json:\"addr_line_3,omitempty\"`\n\tAddrPostCode string `json:\"addr_post_code\"`\n\tEmail       string `json:\"email\"`\n\tPhoneNumber string `json:\"phone_number\"`\n}\n\ntype Invoice struct {\n\tInvoiceNumber            string `json:\"invoice_number,omitempty\"`\n\tLines                    []Line `json:\"lines,omitempty\"`\n\tBillMailSendFlag         string `json:\"bill_mail_send_flag,omitempty\"`\n\tReceiptMailSendFlag      string `json:\"receipt_mail_send_flag,omitempty\"`\n\tUnderpaymentMailSendFlag string `json:\"underpayment_mail_send_flag,omitempty\"`\n}\t\n\ntype Line struct {\n\tDate      string  `json:\"date,omitempty\"`\n\tName      string  `json:\"name,omitempty\"`\n\tUnitPrice float64 `json:\"unit_price,omitempty\"`\n\tQuantity  float64 `json:\"quantity,omitempty\"`\n\tTaxRate   float64 `json:\"tax_rate,omitempty\"`\n}\n\ntype LinkType struct {\n\tSuccessUrl string `json:\"type,omitempty\"`\n\tCancelUrl string `json:\"type,omitempty\"`\n\tExpire string `json:\"type,omitempty\"`\n\tReceiverMail string `json:\"type,omitempty\"`\n\tMailCustomerName string `json:\"type,omitempty\"`\n\tTransactions []Transaction `json:\"transactions,omitempty\"`\n}\n\ntype Transaction struct {\n\tAmount       float64 `json:\"amount,omitempty\"`\n\tTax \t\tfloat64 `json:\"tax,omitempty\"`\n}"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n$billingId = '<Billing ID>';  // ここにBilling IDを設定\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/billings/{$billingId}\";\n\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: application/json\"\n];\n\n$data = json_encode([\n    \"bill_type\" => \"01\",\n    \"is_uncollectible\" => false,\n    \"customer_id\" => \"CUST001\",\n    \"customer_honorific\" => \"様\",\n    \"customer_overwrite\" => [\n        \"name\" => \"株式会社テスト\",\n        \"email\" => \"test@example.com\",\n        \"addr_country\" => \"392\",\n        \"addr_state\" => \"13\",\n        \"addr_city\" => \"新宿区\",\n        \"addr_line_1\" => \"1-1-1\",\n        \"addr_line_2\" => \"テストビル\",\n        \"addr_line_3\" => \"\",\n        \"addr_post_code\" => \"1600022\"\n    ],\n    \"issuer_overwrite\" => [\n        \"addr_state\" => \"13\",\n        \"addr_city\" => \"新宿区\",\n        \"addr_line_1\" => \"1-1-1\",\n        \"addr_line_2\" => \"テストビル\",\n        \"addr_line_3\" => \"\",\n        \"addr_post_code\" => \"1600022\",\n        \"email\" => \"issuer@example.com\",\n        \"phone_number\" => \"0312345678\"\n    ],\n    \"invoice\" => [\n        \"invoice_number\" => \"INV123456\",\n        \"bill_mail_send_flag\" => \"0\",\n        \"receipt_mail_send_flag\" => \"0\",\n        \"underpayment_mail_send_flag\" => \"0\",\n        \"lines\" => [\n            [\n                \"date\" => \"2023/10/01\",\n                \"name\" => \"商品A\",\n                \"unit_price\" => 1000,\n                \"quantity\" => 2,\n                \"tax_rate\" => 10\n            ]\n        ]\n    ],\n    \"pay_types\" => [\n        \"Virtualaccount\",\n        \"Card\"\n    ]\n]);\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, \"PUT\");\ncurl_setopt($session, CURLOPT_POSTFIELDS, $data);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, 2);\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    // エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    // APIからのデータを処理\n    $httpCode = curl_getinfo($session, CURLINFO_HTTP_CODE);\n    echo \"HTTP Status Code: \" . $httpCode . \"\\n\";\n    \n    if ($httpCode === 200) {\n        $responseData = json_decode($response, true);\n        echo \"Invoice Updated Successfully:\\n\";\n        var_dump($responseData);\n    } else {\n        echo \"Error Response:\\n\";\n        var_dump($response);\n    }\n}\n\ncurl_close($session);\n\n?>"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\nbilling_id = '<Billing ID>'  # ここにBilling IDを設定\nurl = f'https://api.test.fincode.jp/v1/billings/{billing_id}'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\ndata = {\n    \"bill_type\": \"01\",\n    \"is_uncollectible\": \"0\",\n    \"customer_id\": \"CUST001\",\n    \"customer_honorific\": \"様\",\n    \"customer_overwrite\": {\n        \"name\": \"株式会社テスト\",\n        \"email\": \"test@example.com\",\n        \"addr_country\": \"JPN\", \n        \"addr_state\": \"13\",\n        \"addr_city\": \"新宿区\",\n        \"addr_line_1\": \"1-1-1\",\n        \"addr_line_2\": \"テストビル\",\n        \"addr_line_3\": \"\",\n        \"addr_post_code\": \"1600022\"\n    },\n    \"issuer_overwrite\": {\n        \"addr_state\": \"13\",\n        \"addr_city\": \"新宿区\",\n        \"addr_line_1\": \"1-1-1\",\n        \"addr_line_2\": \"テストビル\",\n        \"addr_line_3\": \"\",\n        \"addr_post_code\": \"1600022\",\n        \"email\": \"issuer@example.com\",\n        \"phone_number\": \"0312345678\"\n    },\n    \"invoice\": {\n        \"invoice_number\": \"INV123456\",\n        \"bill_mail_send_flag\": \"0\",\n        \"receipt_mail_send_flag\": \"0\",\n        \"underpayment_mail_send_flag\": \"0\",\n        \"lines\": [\n            {\n                \"date\": \"2023/10/01\",\n                \"name\": \"商品A\",\n                \"unit_price\": 1000,\n                \"quantity\": 2,\n                \"tax_rate\": 10\n            }\n        ]\n    },\n    \"pay_types\": [\n        \"Virtualaccount\",\n        \"Card\"\n    ]\n}\n\n# HTTP PUTリクエストの送信\ntry:\n    response = requests.put(url, headers=headers, json=data)\n    \n    # レスポンスの処理\n    print(f\"HTTP Status Code: {response.status_code}\")\n    \n    if response.status_code == 200:\n        # 成功した場合の処理\n        print(\"Invoice Updated Successfully:\")\n        print(response.json())\n    else:\n        # エラーの処理\n        print(\"Error Response:\")\n        try:\n            print(response.json())\n        except ValueError:\n            # JSONでない場合はテキストを表示\n            print(response.text)\n            \nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\nexcept Exception as e:\n    # その他のエラーの処理\n    print(f\"Unexpected error: {e}\")"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    billing_id = '<Billing ID>'  # ここにBilling IDを設定\n    endpoint = \"/v1/billings/#{billing_id}\"\n\n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    data = {\n        bill_type:\"01\",\n        is_uncollectible: false,\n        customer_id: \"CUST001\",\n        customer_honorific: \"様\",\n        customer_overwrite: {\n            name: \"株式会社テスト\",\n            email: \"test@example.com\",\n            addr_country: \"392\",\n            addr_state: \"13\",\n            addr_city: \"新宿区\",\n            addr_line_1: \"1-1-1\",\n            addr_line_2: \"テストビル\",\n            addr_line_3: \"\",\n            addr_post_code: \"1600022\"\n        },\n        issuer_overwrite: {\n            addr_state: \"13\",\n            addr_city: \"新宿区\",\n            addr_line_1: \"1-1-1\",\n            addr_line_2: \"テストビル\",\n            addr_line_3: \"\",\n            addr_post_code: \"1600022\",\n            email: \"issuer@example.com\",\n            phone_number: \"0312345678\"\n        },\n        invoice: {\n            invoice_number: \"INV123456\",\n            bill_mail_send_flag: \"0\",\n            receipt_mail_send_flag: \"0\",\n            underpayment_mail_send_flag: \"0\",\n            lines: [\n                {\n                    date: \"2023/10/01\",\n                    name: \"商品A\",\n                    unit_price: 1000,\n                    quantity: 2,\n                    tax_rate: 10\n                }\n            ]\n        },\n        pay_types: [\n            \"Virtualaccount\",\n            \"Card\"\n        ]\n    }\n\n    # リクエストの作成\n    request = Net::HTTP::Put.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n    request['Content-Type'] = 'application/json'\n\n    request.body = data.to_json\n\n    begin\n        # リクエストの送信\n        response = http.request(request)\n\n        puts \"HTTP Status Code: #{response.code}\"\n\n        case response\n        when Net::HTTPSuccess\n            puts 'Invoice Updated Successfully:'\n            begin\n                response_data = JSON.parse(response.body)\n                puts JSON.pretty_generate(response_data)\n            rescue JSON::ParserError\n                puts response.body\n            end\n        else\n            puts 'Error Response:'\n            begin\n                error_data = JSON.parse(response.body)\n                puts JSON.pretty_generate(error_data)\n            rescue JSON::ParserError\n                puts response.body\n            end\n        end\n\n    rescue StandardError => e\n        puts \"Request error: #{e.message}\"\n    end\nend\n\nmain"
          }
        ]
      },
      "delete": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "deleteBillings",
        "tags": [
          "請求管理"
        ],
        "summary": "請求 削除",
        "description": "指定したIDを持つ、下書き状態の請求情報を削除します。\\\n発行済みの請求情報は削除できません。\n",
        "parameters": [
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\n指定したテナントショップを販売主とした請求書情報を削除します。\n"
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "請求ID\n"
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingDetail.Deleting.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X DELETE \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n'https://api.test.fincode.jp/v1/billings/{id}'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import fetch from \"node-fetch\";\n\nconst BASE_URL = \"https://api.test.fincode.jp\";\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const billingId = \"<Billing ID>\"; // 実際のBilling IDを設定\n\n    const endpoint = `${BASE_URL}/v1/billings/${billingId}`;\n\n    const response = await fetch(endpoint, {\n        method: \"DELETE\",\n        headers: {\n            Authorization: `Bearer ${API_KEY}`,\n        },\n    });\n\n    if (response.ok) {\n        const result = await response.json();\n        console.log('削除成功:', result);\n    } else {\n        console.error('削除に失敗しました:', await response.text());\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\t// APIキーと請求IDを指定\n\tapiKey := \"<Secret API Key>\"\n\tbillingID := \"<Billing ID>\" // 削除する請求IDを指定\n\n\t// リクエストの作成\n\treq, err := http.NewRequest(\n\t\t\"DELETE\",\n\t\tfmt.Sprintf(\"https://api.test.fincode.jp/v1/billings/%s\", billingID),\n\t\tnil,\n\t)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエストの作成エラー: %v\", err)\n\t}\n\n\t// ヘッダーの設定\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\n\t// クライアントの作成とリクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエストエラー: %v\", err)\n\t}\n\tdefer res.Body.Close()\n\n\t// HTTPステータスコードを表示\n\tfmt.Println(\"HTTPステータスコード:\", res.StatusCode)\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n$billingId = '<Billing ID>'; // 実際のBilling IDを設定\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/billings/{$billingId}\";\n\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, 'DELETE');\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\nbilling_id = '<Billing ID>'  # 実際のBilling IDを設定\n\nurl = f'https://api.test.fincode.jp/v1/billings/{billing_id}'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n}\n\ntry:\n    response = requests.delete(url, headers=headers)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # APIからのデータを処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n  billing_id = '<Billing ID>' # 実際のBilling IDを設定\n\n  endpoint = \"/v1/billings/#{billing_id}\"\n\n  uri = URI.parse(BASE_URL + endpoint)\n  http = Net::HTTP.new(uri.host, uri.port)\n  http.use_ssl = true\n\n  # リクエストの作成\n  request = Net::HTTP::Delete.new(uri.request_uri)\n  request['Authorization'] = \"Bearer #{API_KEY}\"\n\n  # リクエストの送信\n  response = http.request(request)\n\n  case response\n  when Net::HTTPSuccess\n    puts 'SUCCESS'\n  else\n    puts 'ERROR'\n  end\n\n  # レスポンスの表示\n  puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/billings/{id}/open": {
      "put": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "openBillings",
        "tags": [
          "請求管理"
        ],
        "summary": "請求 発行",
        "description": "IDで指定した請求情報をもとに請求を開始します。請求書WebページのURL発行、請求先顧客へのメール送信などを行います。\\\nこのAPIの呼び出し以降は請求 更新APIでは 回収困難フラグ 、および 加盟店自由項目 のみ更新できます。\n",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "請求ID\n"
          },
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\n指定したテナントショップを請求元とした請求を実施します。\n"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BillingDetail.Opening.Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingDetail.Opening.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X PUT \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\n      \"bill_mail_send_flag\": \"1\",\n      \"receipt_mail_send_flag\": \"0\",\n      \"underpayment_mail_send_flag\": \"1\"\n}' \\\n'https://api.test.fincode.jp/v1/billings/{id}/open'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import fetch from \"node-fetch\";\n\nconst BASE_URL = \"https://api.test.fincode.jp\";\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const billingID = \"<Billing ID>\";  // 実際のBilling IDに置き換えてください\n\n    const endpoint = `${BASE_URL}/v1/billings/${billingID}/open`;\n\n    const response = await fetch(endpoint, {\n        method: \"PUT\",\n        headers: {\n            Authorization: `Bearer ${API_KEY}`,\n            \"Content-Type\": \"application/json\",\n        },\n        body: JSON.stringify({\n            bill_mail_send_flag: \"1\",\n            receipt_mail_send_flag: \"0\",\n            underpayment_mail_send_flag: \"1\",\n        }),\n    });\n\n    if (response.ok) {\n        const result = await response.json();\n        console.log(\"成功:\", result);\n    } else {\n        const error = await response.json();\n        console.error(\"エラー:\", error);\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\t// APIキーと請求IDを指定\n\tapiKey := \"<Secret API Key>\"\n\tbillingID := \"<Billing ID>\" // 請求IDを指定\n\n\t// リクエストボディの作成\n\tbody := map[string]string{\n\t\t\"bill_mail_send_flag\":       \"1\",\n\t\t\"receipt_mail_send_flag\":    \"0\",\n\t\t\"underpayment_mail_send_flag\": \"1\",\n\t}\n\t\n\t// JSONエンコード\n\tmarshalledBody, err := json.Marshal(body)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエストボディのエンコードエラー: %v\", err)\n\t}\n\n\t// URLの設定\n\turl := fmt.Sprintf(\"https://api.test.fincode.jp/v1/billings/%s/open\", billingID)\n\n\t// HTTPリクエストの作成\n\treq, err := http.NewRequest(\"PUT\", url, bytes.NewBuffer(marshalledBody))\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエストの作成エラー: %v\", err)\n\t}\n\n\t// ヘッダーの設定\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\t// クライアントの作成とリクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエストエラー: %v\", err)\n\t}\n\tdefer res.Body.Close()\n\n\t// レスポンスのステータスコードの表示\n\tfmt.Println(\"Status:\", res.Status)\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n$billingId = '<Billing ID>';  // 実際のBilling IDに置き換えてください\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/billings/{$billingId}/open\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: application/json\"\n];\n\n$data = json_encode([\n    \"bill_mail_send_flag\" => \"1\",\n    \"receipt_mail_send_flag\" => \"0\",\n    \"underpayment_mail_send_flag\" => \"1\"\n]);\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, \"PUT\");\ncurl_setopt($session, CURLOPT_POSTFIELDS, $data);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    // エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    // APIからのデータを処理\n    echo \"レスポンス: \" . $response;\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\nbilling_id = '<Billing ID>'  # 実際のBilling IDに置き換えてください\n\nurl = f'https://api.test.fincode.jp/v1/billings/{billing_id}/open'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\ndata = {\n    \"bill_mail_send_flag\": \"1\",\n    \"receipt_mail_send_flag\": \"0\",\n    \"underpayment_mail_send_flag\": \"1\"\n}\n\n# HTTP PUTリクエストの送信\ntry:\n    response = requests.put(url, headers=headers, json=data)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # 成功した場合の処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n  billing_id = '<Billing ID>'  # 実際のBilling IDに置き換えてください\n  endpoint = \"/v1/billings/#{billing_id}/open\"\n\n  uri = URI.parse(BASE_URL + endpoint)\n\n  http = Net::HTTP.new(uri.host, uri.port)\n  http.use_ssl = true\n\n  data = {\n    bill_mail_send_flag: \"1\",\n    receipt_mail_send_flag: \"0\",\n    underpayment_mail_send_flag: \"1\"\n  }\n\n  # リクエストの作成\n  request = Net::HTTP::Put.new(uri.request_uri)\n  request['Authorization'] = \"Bearer #{API_KEY}\"\n  request['Content-Type'] = 'application/json'\n\n  request.body = data.to_json\n\n  # リクエストの送信\n  response = http.request(request)\n\n  case response\n  when Net::HTTPSuccess\n    puts 'SUCCESS'\n  else\n    puts 'ERROR'\n  end\n\n  # レスポンスの表示\n  puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/billings/{id}/cancel": {
      "put": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "cancelBillings",
        "tags": [
          "請求管理"
        ],
        "summary": "請求 キャンセル",
        "description": "指定したIDを持つ、発行済みの請求情報をキャンセルします。\\\nキャンセルは請求の取り下げを意味し、一度キャンセルした請求情報をもとに再度請求することはできません。\n",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "請求ID\n"
          },
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\n指定したテナントショップを請求元としたインボイス請求書のキャンセルができます。\n"
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingDetail.Canceling.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X PUT \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n\\\n'https://api.test.fincode.jp/v1/billings/{id}/cancel'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import fetch from \"node-fetch\";\n\nconst BASE_URL = \"https://api.test.fincode.jp\";\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const billingId = \"<Billing ID>\";\n\n    const endpoint = `${BASE_URL}/v1/billings/${billingId}/cancel`;\n\n    const response = await fetch(endpoint, {\n        method: \"PUT\",\n        headers: {\n            Authorization: `Bearer ${API_KEY}`,\n            \"Content-Type\": \"application/json\",\n        },\n    });\n\n    if (!response.ok) {\n        console.error(\"Error cancelling billing:\", await response.text());\n    } else {\n        const result = await response.json();\n        console.log(\"Billing cancellation successful:\", result);\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\t// APIキーと請求IDを指定\n\tapiKey := \"<Secret API Key>\"\n\tbillingID := \"<Billing ID>\" // 請求IDを指定\n\n\t// URLの設定\n\turl := fmt.Sprintf(\"https://api.test.fincode.jp/v1/billings/%s/cancel\", billingID)\n\n\t// HTTPリクエストの作成\n\treq, err := http.NewRequest(\"PUT\", url, nil)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエストの作成エラー: %v\", err)\n\t}\n\n\t// ヘッダーの設定\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\t// クライアントの作成とリクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエストエラー: %v\", err)\n\t}\n\tdefer res.Body.Close()\n\n\t// レスポンスのステータスコードの表示\n\tfmt.Println(\"Status:\", res.Status)\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n$billingId = '<Billing ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/billings/{$billingId}/cancel\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: application/json\"\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, \"PUT\");\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    // エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    // APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\nbilling_id = '<Billing ID>'\n\nurl = f'https://api.test.fincode.jp/v1/billings/{billing_id}/cancel'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\n# HTTP PUTリクエストの送信\ntry:\n    response = requests.put(url, headers=headers)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # 成功した場合の処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    billing_id = '<Billing ID>'\n    endpoint = \"/v1/billings/#{billing_id}/cancel\"\n\n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Put.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n    request['Content-Type'] = 'application/json'\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/billings/{id}/paid_externally": {
      "put": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "paidExternallyBillings",
        "tags": [
          "請求管理"
        ],
        "summary": "請求 外部支払いマーク",
        "description": "指定したIDを持つ発行済みの請求情報を、M's PayBridgeによる決済機能でない方法で支払われたとしてマークします。\\\nこの請求情報のステータスは支払い完了（`PAID`）へ遷移し、M's PayBridge外支払フラグ（`is_paid_externally`）が`true` になります。\n",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "請求ID\n"
          },
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\n指定したテナントショップを請求元とした請求についての更新ができます。\n"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "transaction_date": {
                    "type": "string",
                    "minLength": 10,
                    "maxLength": 10,
                    "description": "支払完了日  形式： `yyyy/MM/dd` \n"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingDetail.Marking.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X PUT \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\n      \"transaction_date\": \"2024/01/01\"\n}' \\\n'https://api.test.fincode.jp/v1/billings/{id}/paid_externally'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import fetch from \"node-fetch\";\n\nconst BASE_URL = \"https://api.test.fincode.jp\";\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const billingID = \"<Billing ID>\";  // 適切なBilling IDに置き換えてください\n    const endpoint = `${BASE_URL}/v1/billings/${billingID}/paid_externally`;\n\n    const response = await fetch(endpoint, {\n        method: \"PUT\",\n        headers: {\n            Authorization: `Bearer ${API_KEY}`,\n            \"Content-Type\": \"application/json\",\n        },\n        body: JSON.stringify({\n            transaction_date: \"2024/01/01\",  // 日付を適切に設定\n        }),\n    });\n\n    if (!response.ok) {\n        console.error(`Error: ${response.statusText}`);\n        return;\n    }\n\n    const data = await response.json();\n    console.log(data);\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\t// APIキーと請求IDを指定\n\tapiKey := \"<Secret API Key>\"\n\tbillingID := \"<Billing ID>\" // 請求IDを指定\n\n\t// リクエストボディの作成\n\tbody := map[string]string{\n\t\t\"transaction_date\": \"2024/01/01\",\n\t}\n\t\n\t// JSONエンコード\n\tmarshalledBody, err := json.Marshal(body)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエストボディのエンコードエラー: %v\", err)\n\t}\n\n\t// URLの設定\n\turl := fmt.Sprintf(\"https://api.test.fincode.jp/v1/billings/%s/paid_externally\", billingID)\n\n\t// HTTPリクエストの作成\n\treq, err := http.NewRequest(\"PUT\", url, bytes.NewBuffer(marshalledBody))\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエストの作成エラー: %v\", err)\n\t}\n\n\t// ヘッダーの設定\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\t// クライアントの作成とリクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエストエラー: %v\", err)\n\t}\n\tdefer res.Body.Close()\n\n\t// レスポンスのステータスコードの表示\n\tfmt.Println(\"Status:\", res.Status)\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n$billingID = '<Billing ID>';  // 適切なBilling IDに置き換えてください\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/billings/{$billingID}/paid_externally\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: application/json\"\n];\n\n$data = json_encode([\n    \"transaction_date\" => \"2024/01/01\",  // 日付を適切に設定\n]);\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, \"PUT\");\ncurl_setopt($session, CURLOPT_POSTFIELDS, $data);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\nbilling_id = '<Billing ID>'  # 適切なBilling IDに置き換えてください\n\nurl = f'https://api.test.fincode.jp/v1/billings/{billing_id}/paid_externally'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\ndata = {\n    \"transaction_date\": \"2024/01/01\",  # 日付を適切に設定\n}\n\n# HTTP PUTリクエストの送信\ntry:\n    response = requests.put(url, headers=headers, json=data)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # 成功した場合の処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n  billing_id = '<Billing ID>'  # 適切なBilling IDに置き換えてください\n  endpoint = \"/v1/billings/#{billing_id}/paid_externally\"\n\n  uri = URI.parse(BASE_URL + endpoint)\n\n  http = Net::HTTP.new(uri.host, uri.port)\n  http.use_ssl = true\n\n  data = {\n    transaction_date: \"2024/01/01\"  # 日付を適切に設定\n  }\n\n  # リクエストの作成\n  request = Net::HTTP::Put.new(uri.request_uri)\n  request['Authorization'] = \"Bearer #{API_KEY}\"\n  request['Content-Type'] = 'application/json'\n\n  request.body = data.to_json\n\n  # リクエストの送信\n  response = http.request(request)\n\n  case response\n  when Net::HTTPSuccess\n    puts 'SUCCESS'\n  else\n    puts 'ERROR'\n  end\n\n  # レスポンスの表示\n  puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/billings/{id}/virtual_account/refresh": {
      "put": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "refreshBillingsVirtualaccount",
        "tags": [
          "請求管理"
        ],
        "summary": "請求 バーチャル口座再発行",
        "description": "指定した請求に割り当てられているバーチャル口座について、期限が切れていて口座がクローズされている場合、新たなバーチャル口座を割り当てます。\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "請求ID"
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingDetail.Refresh.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X PUT \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n\\\n'https://api.test.fincode.jp/v1/billings/{id}/virtual_account/refresh'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import fetch from \"node-fetch\";\n\nconst BASE_URL = \"https://api.test.fincode.jp\";\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const billingId = \"<Billing ID>\";\n\n    const endpoint = `${BASE_URL}/v1/billings/${billingId}/virtual_account/refresh`;\n\n    const response = await fetch(endpoint, {\n        method: \"PUT\",\n        headers: {\n            Authorization: `Bearer ${API_KEY}`,\n            \"Content-Type\": \"application/json\",\n        },\n    });\n\n    if (!response.ok) {\n        console.error(\"Error refreshing virtual account:\", await response.text());\n    } else {\n        const result = await response.json();\n        console.log(\"Virtual account refresh successful:\", result);\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\t// APIキーと請求IDを指定\n\tapiKey := \"<Secret API Key>\"\n\tbillingID := \"<Billing ID>\" // 請求IDを指定\n\n\t// URLの設定\n\turl := fmt.Sprintf(\"https://api.test.fincode.jp/v1/billings/%s/virtual_account/refresh\", billingID)\n\n\t// HTTPリクエストの作成\n\treq, err := http.NewRequest(\"PUT\", url, nil)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエストの作成エラー: %v\", err)\n\t}\n\n\t// ヘッダーの設定\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\t// クライアントの作成とリクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエストエラー: %v\", err)\n\t}\n\tdefer res.Body.Close()\n\n\t// レスポンスのステータスコードの表示\n\tfmt.Println(\"Status:\", res.Status)\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n$billingId = '<Billing ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/billings/{$billingId}/virtual_account/refresh\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: application/json\"\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, \"PUT\");\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    // エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    // APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\nbilling_id = '<Billing ID>'\n\nurl = f'https://api.test.fincode.jp/v1/billings/{billing_id}/virtual_account/refresh'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\n# HTTP PUTリクエストの送信\ntry:\n    response = requests.put(url, headers=headers)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # 成功した場合の処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    billing_id = '<Billing ID>'\n    endpoint = \"/v1/billings/#{billing_id}/virtual_account/refresh\"\n\n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Put.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n    request['Content-Type'] = 'application/json'\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/billings/{id}/amount_register/payee_account": {
      "put": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "amountRegisterBillingPayeeAccount",
        "tags": [
          "請求管理"
        ],
        "summary": "請求 入金登録（銀行振込（指定口座））",
        "description": "指定したIDを持つ発行済みの請求情報に対し、銀行振込（指定口座）による入金額を登録します。\\\n登録した入金情報は、後続の[請求 支払完了（銀行振込（指定口座））API](#operation/captureBillingPayeeAccount) によって支払完了として確定できます。\n",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "請求ID\n"
          },
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\n指定したテナントショップを請求元とした請求に対して入金登録を行います。\n"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Billing.PayeeAccount.AmountRegistering.Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Billing.PayeeAccount.AmountRegistering.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X PUT \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\n    \"amount\": \"1000\"\n}' \\\n    'https://api.test.fincode.jp/v1/billings/{id}/amount_register/payee_account'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import fetch from \"node-fetch\";\n\nconst BASE_URL = \"https://api.test.fincode.jp\";\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const billingID = \"<Billing ID>\";\n    const endpoint = `${BASE_URL}/v1/billings/${billingID}/amount_register/payee_account`;\n\n    const response = await fetch(endpoint, {\n        method: \"PUT\",\n        headers: {\n            Authorization: `Bearer ${API_KEY}`,\n            \"Content-Type\": \"application/json\",\n        },\n        body: JSON.stringify({\n            amount: \"1000\",\n        }),\n    });\n\n    if (!response.ok) {\n        console.error(`Error: ${response.statusText}`);\n        return;\n    }\n\n    const data = await response.json();\n    console.log(data);\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"fmt\"\n\t\"io\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tapiKey := \"<Secret API Key>\"\n\tbillingID := \"<Billing ID>\"\n\n\turl := fmt.Sprintf(\"https://api.test.fincode.jp/v1/billings/%s/amount_register/payee_account\", billingID)\n\n\treqBody := bytes.NewBufferString(`{\n\t\t\"amount\": \"1000\"\n\t}`)\n\n\treq, err := http.NewRequest(\"PUT\", url, reqBody)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエスト作成エラー: %v\", err)\n\t}\n\treq.Header.Set(\"Authorization\", \"Bearer \"+apiKey)\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエスト送信エラー: %v\", err)\n\t}\n\tdefer resp.Body.Close()\n\n\trespBody, _ := io.ReadAll(resp.Body)\n\tfmt.Println(string(respBody))\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n$billingID = \"<Billing ID>\";\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/billings/{$billingID}/amount_register/payee_account\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: application/json\"\n];\n\n$data = json_encode([\n    \"amount\" => \"1000\"\n]);\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, \"PUT\");\ncurl_setopt($session, CURLOPT_POSTFIELDS, $data);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n\n$response = curl_exec($session);\nif ($response === false) {\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    var_dump($response);\n}\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\nbilling_id = '<Billing ID>'\nurl = f'https://api.test.fincode.jp/v1/billings/{billing_id}/amount_register/payee_account'\n\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\ndata = {\n    \"amount\": \"1000\"\n}\n\ntry:\n    response = requests.put(url, headers=headers, json=data)\n    if response.status_code == 200:\n        print(f\"Success: {response.json()}\")\n    else:\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    print(f\"通信エラー: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n  billing_id = '<Billing ID>'\n  endpoint = \"/v1/billings/#{billing_id}/amount_register/payee_account\"\n  uri = URI.parse(BASE_URL + endpoint)\n\n  http = Net::HTTP.new(uri.host, uri.port)\n  http.use_ssl = true\n\n  data = {\n    amount: \"1000\"\n  }\n\n  request = Net::HTTP::Put.new(uri.request_uri)\n  request['Authorization'] = \"Bearer #{API_KEY}\"\n  request['Content-Type'] = 'application/json'\n  request.body = data.to_json\n\n  response = http.request(request)\n  puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/billings/{id}/capture/payee_account": {
      "put": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "captureBillingPayeeAccount",
        "tags": [
          "請求管理"
        ],
        "summary": "請求 支払い完了（銀行振込（指定口座））",
        "description": "指定したIDを持つ発行済みの請求情報を、銀行振込（指定口座）による入金で支払い完了として確定します。\\\n事前に[請求 入金登録（銀行振込（指定口座））API](#operation/amountRegisterBillingPayeeAccount) によって入金登録されていない場合は、請求金額で支払い完了となります。\n",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "請求ID\n"
          },
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\n指定したテナントショップを請求元とした請求に対して支払完了処理を行います。\n"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Billing.PayeeAccount.Capturing.Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Billing.PayeeAccount.Capturing.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X PUT \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\n    \"payment_method_id\": \"pm_xxxxxxxxxxxxxxxxxxxxxx\",\n    \"transaction_date\": \"2026/05/01\"\n}' \\\n    'https://api.test.fincode.jp/v1/billings/{id}/capture/payee_account'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import fetch from \"node-fetch\";\n\nconst BASE_URL = \"https://api.test.fincode.jp\";\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const billingID = \"<Billing ID>\";\n    const endpoint = `${BASE_URL}/v1/billings/${billingID}/capture/payee_account`;\n\n    const response = await fetch(endpoint, {\n        method: \"PUT\",\n        headers: {\n            Authorization: `Bearer ${API_KEY}`,\n            \"Content-Type\": \"application/json\",\n        },\n        body: JSON.stringify({\n            payment_method_id: \"pm_xxxxxxxxxxxxxxxxxxxxxx\",\n            transaction_date: \"2026/05/01\",\n        }),\n    });\n\n    if (!response.ok) {\n        console.error(`Error: ${response.statusText}`);\n        return;\n    }\n\n    const data = await response.json();\n    console.log(data);\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"fmt\"\n\t\"io\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tapiKey := \"<Secret API Key>\"\n\tbillingID := \"<Billing ID>\"\n\n\turl := fmt.Sprintf(\"https://api.test.fincode.jp/v1/billings/%s/capture/payee_account\", billingID)\n\n\treqBody := bytes.NewBufferString(`{\n\t\t\"payment_method_id\": \"pm_xxxxxxxxxxxxxxxxxxxxxx\",\n\t\t\"transaction_date\": \"2026/05/01\"\n\t}`)\n\n\treq, err := http.NewRequest(\"PUT\", url, reqBody)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエスト作成エラー: %v\", err)\n\t}\n\treq.Header.Set(\"Authorization\", \"Bearer \"+apiKey)\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエスト送信エラー: %v\", err)\n\t}\n\tdefer resp.Body.Close()\n\n\trespBody, _ := io.ReadAll(resp.Body)\n\tfmt.Println(string(respBody))\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n$billingID = \"<Billing ID>\";\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/billings/{$billingID}/capture/payee_account\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: application/json\"\n];\n\n$data = json_encode([\n    \"payment_method_id\" => \"pm_xxxxxxxxxxxxxxxxxxxxxx\",\n    \"transaction_date\" => \"2026/05/01\"\n]);\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, \"PUT\");\ncurl_setopt($session, CURLOPT_POSTFIELDS, $data);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n\n$response = curl_exec($session);\nif ($response === false) {\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    var_dump($response);\n}\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\nbilling_id = '<Billing ID>'\nurl = f'https://api.test.fincode.jp/v1/billings/{billing_id}/capture/payee_account'\n\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\ndata = {\n    \"payment_method_id\": \"pm_xxxxxxxxxxxxxxxxxxxxxx\",\n    \"transaction_date\": \"2026/05/01\"\n}\n\ntry:\n    response = requests.put(url, headers=headers, json=data)\n    if response.status_code == 200:\n        print(f\"Success: {response.json()}\")\n    else:\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    print(f\"通信エラー: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n  billing_id = '<Billing ID>'\n  endpoint = \"/v1/billings/#{billing_id}/capture/payee_account\"\n  uri = URI.parse(BASE_URL + endpoint)\n\n  http = Net::HTTP.new(uri.host, uri.port)\n  http.use_ssl = true\n\n  data = {\n    payment_method_id: \"pm_xxxxxxxxxxxxxxxxxxxxxx\",\n    transaction_date: \"2026/05/01\"\n  }\n\n  request = Net::HTTP::Put.new(uri.request_uri)\n  request['Authorization'] = \"Bearer #{API_KEY}\"\n  request['Content-Type'] = 'application/json'\n  request.body = data.to_json\n\n  response = http.request(request)\n  puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/accounts": {
      "get": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "retrieveAccountList",
        "tags": [
          "売上入金"
        ],
        "summary": "売上入金 一覧取得",
        "description": "売上入金情報を一覧で取得します。クエリパラメータを指定して取得する条件を絞り込めます。\n",
        "parameters": [
          {
            "name": "Tenant-Shop-Id",
            "in": "header",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\nこのテナントショップの売上入金情報から一覧で取得します。\n"
          },
          {
            "name": "クエリ",
            "in": "query",
            "description": "売上入金情報の一覧取得において検索条件となるクエリパラメータ\n",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/Pagination.QueryParams"
                },
                {
                  "$ref": "#/components/schemas/Account.ListRetrieving.QueryParams"
                }
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Account.ListRetrieving.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X GET \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n'https://api.test.fincode.jp/v1/accounts'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    try {\n        // リクエストの送信\n        const accounts = await fincode.accounts.retrieveList({\n            limit: 10,\n        });\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\"GET\", \"https://api.test.fincode.jp/v1/accounts\", nil)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\n\tparams := req.URL.Query()\n\tparams.Add(\"limit\", \"10\")\n\treq.URL.RawQuery = params.Encode()\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/accounts\";\n$queryParams = [\n    \"limit\" => 10,\n];\n\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint . '?' . http_build_query($queryParams));\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_HTTPGET, true);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\nurl = f'https://api.test.fincode.jp/v1/accounts'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n}\nquery_params = { 'limit': 10 }\n\ntry:\n    response = requests.get(url, headers=headers, params=query_params)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # APIからのデータを処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    endpoint = \"/v1/accounts\"\n    query_params =  { limit: 10 }\n\n    uri = URI.parse(BASE_URL + endpoint)\n    uri.query = URI.encode_www_form(query_params) \n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Get.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/accounts/{id}": {
      "get": {
        "operationId": "retrieveAccount",
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "tags": [
          "売上入金"
        ],
        "summary": "売上入金 取得",
        "description": "IDで指定した売上入金を取得します。\\\n`aggregate_term_start`から`aggregate_term_end`までの期間における売上の集計結果が含まれます。\\\n\\\n集計された個々のレコードについては 売上入金明細 一覧取得API を利用することで取得できます。\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "売上入金ID",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/AccountId_schema"
                }
              ]
            },
            "required": true
          },
          {
            "name": "Tenant-Shop-Id",
            "in": "header",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\nこのテナントショップの売上入金情報のうち、指定したIDの売上入金情報を取得します。\n",
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Account.Retrieving.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X GET \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n'https://api.test.fincode.jp/v1/accounts/{id}'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    const accountId = \"<Account ID>\";\n\n    try {\n        // リクエストの送信\n        const account = await fincode.accounts.retrieve(accountId);\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\taccountID := \"<Account ID>\"\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\"GET\", fmt.Sprintf(\"https://api.test.fincode.jp/v1/accounts/%s\", accountID), nil)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$accountId = '<Account ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/accounts/{$accountId}\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_HTTPGET, true);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\naccount_id = '<Account ID>'\n\nurl = f'https://api.test.fincode.jp/v1/accounts/{account_id}'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n}\n\ntry:\n    response = requests.get(url, headers=headers)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # APIからのデータを処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    account_id = '<Account ID>'\n    endpoint = \"/v1/accounts/#{account_id}\"\n    \n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Get.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/accounts/{id}/detail": {
      "get": {
        "operationId": "retrieveAccountDetailList",
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "tags": [
          "売上入金"
        ],
        "summary": "売上入金詳細 一覧取得",
        "description": "IDで指定した売上入金に紐づく売上入金詳細を一覧で取得します。\\\n1つの売上入金明細は、1件の決済／キャンセル／チャージバック／チャージバック取消調整のいずれかに対応します。\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "売上入金ID",
            "schema": {
              "$ref": "#/components/schemas/AccountId_schema"
            },
            "required": true
          },
          {
            "name": "Tenant-Shop-Id",
            "in": "header",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\nこのテナントショップの売上入金情報のうち、指定したIDの売上入金情報の売上入金詳細を取得します。\n",
            "required": false
          },
          {
            "in": "query",
            "name": "クエリ",
            "description": "売上入金詳細の一覧取得において検索条件となるクエリパラメータ\n",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/Pagination.QueryParams"
                }
              ]
            },
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountDetail.ListRetrieving.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X GET \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n'https://api.test.fincode.jp/v1/accounts/{id}/detail'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    const accountId = \"<Account ID>\";\n\n    try {\n        // リクエストの送信\n        const accountDetails = await fincode.accounts.retrieveDetailList(\n            accountId,\n            { limit: 10 }\n        );\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\taccountID := \"<Account ID>\"\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\"GET\", fmt.Sprintf(\"https://api.test.fincode.jp/v1/accounts/%s/detail\", accountID), nil)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\n\tparams := req.URL.Query()\n\tparams.Add(\"limit\", \"10\")\n\treq.URL.RawQuery = params.Encode()\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$accountId = '<Account ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/accounts/{$accountId}/detail\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_HTTPGET, true);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\naccount_id = '<Account ID>'\n\nurl = f'https://api.test.fincode.jp/v1/accounts/{account_id}/detail'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n}\nquery_params = { 'limit': 10 }\n\ntry:\n    response = requests.get(url, headers=headers, params=query_params)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # APIからのデータを処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    account_id = '<Account ID>'\n    endpoint = \"/v1/accounts/#{account_id}/detail\"\n\n    query_params =  { limit: 10 }\n    uri = URI.parse(BASE_URL + endpoint)\n    uri.query = URI.encode_www_form(query_params)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Get.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/platform_accounts": {
      "get": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "retrievePlatformAccountList",
        "tags": [
          "プラットフォーム利用料収入"
        ],
        "summary": "プラットフォーム利用料収入 一覧取得",
        "description": "プラットフォーム利用料による売上入金情報を一覧で取得します。クエリパラメータを指定して取得する条件を絞り込めます。\n",
        "parameters": [
          {
            "name": "クエリ",
            "in": "query",
            "description": "プラットフォーム利用料による売上入金情報の一覧取得において検索条件となるクエリパラメータ\n",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/Pagination.QueryParams"
                },
                {
                  "$ref": "#/components/schemas/PlatformAccount.ListRetrieving.QueryParams"
                }
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlatformAccount.ListRetrieving.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X GET \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n'https://api.test.fincode.jp/v1/platform_accounts'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    try {\n        // リクエストの送信\n        const platformAccounts = await fincode.platformAccounts.retrieveList({\n            limit: 10,\n        });\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\n\t\t\"GET\",\n\t\t\"https://api.test.fincode.jp/v1/platform_accounts\",\n\t\tnil,\n\t)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\n\tparams := req.URL.Query()\n\tparams.Add(\"limit\", \"10\")\n\treq.URL.RawQuery = params.Encode()\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/platform_accounts\";\n$queryParams = [\n    \"limit\" => 10,\n];\n\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint . '?' . http_build_query($queryParams));\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_HTTPGET, true);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\nurl = f'https://api.test.fincode.jp/v1/platform_accounts'\nquery_params = {\n    'limit': \"10\",\n}\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n}\n\ntry:\n    response = requests.get(url, headers=headers, params=query_params)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # APIからのデータを処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    endpoint = \"/v1/platform_accounts\"\n    query_params =  { limit: 10 }\n\n    uri = URI.parse(BASE_URL + endpoint)\n    uri.query = URI.encode_www_form(query_params)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Get.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/platform_accounts/{id}": {
      "get": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "retrievePlatformAccount",
        "tags": [
          "プラットフォーム利用料収入"
        ],
        "summary": "プラットフォーム利用料収入 取得",
        "description": "IDで指定したプラットフォーム利用料による売上入金情報を取得します。\\\n`aggregate_term_start`から`aggregate_term_end`までの期間におけるプラットフォーム利用料による売上の集計結果が含まれます。\\\n\\\nテナントショップごとの利用料収入については プラットフォーム利用料収入サマリー 一覧取得API を利用することで取得できます。\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "プラットフォーム利用料収入ID",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/PlatformAccountId_schema"
                }
              ]
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlatformAccount.Retrieving.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X GET \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n'https://api.test.fincode.jp/v1/platform_accounts/{id}'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    const platformAccountId = \"<Platform Account ID>\";\n\n    try {\n        // リクエストの送信\n        const customer = await fincode.platformAccounts.retrieve(\n            platformAccountId\n        );\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\tplatformAccountID := \"<Platform Account ID>\"\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\n\t\t\"GET\",\n\t\tfmt.Sprintf(\"https://api.test.fincode.jp/v1/platform_accounts/%s\", platformAccountID),\n\t\tnil,\n\t)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\n\tparams := req.URL.Query()\n\tparams.Add(\"limit\", \"10\")\n\treq.URL.RawQuery = params.Encode()\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$platformAccountId = '<Platform Account ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/platform_accounts/{$platformAccountId}\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_HTTPGET, true);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\nplatform_account_id = '<Platform Account ID>'\n\nurl = f'https://api.test.fincode.jp/v1/platform_accounts/{platform_account_id}'\n\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n}\n\ntry:\n    response = requests.get(url, headers=headers)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # APIからのデータを処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    platform_account_id = '<Platform Account ID>'\n\n    endpoint = \"/v1/platform_accounts/#{platform_account_id}\"\n\n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Get.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/platform_accounts/{id}/summary": {
      "get": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "retrievePlatformAccountSummaryList",
        "tags": [
          "プラットフォーム利用料収入"
        ],
        "summary": "プラットフォーム利用料収入サマリー 一覧取得",
        "description": "IDで指定したプラットフォーム利用料収入のサマリーを一覧で取得します。クエリパラメータを指定して取得する条件を絞り込めます。\\\nサマリー情報の中にはテナントショップごとの利用料収入についての情報が含まれます。\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "プラットフォーム利用料収入ID",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/PlatformAccountId_schema"
                }
              ]
            },
            "required": true
          },
          {
            "name": "クエリ",
            "in": "query",
            "description": "プラットフォーム利用料による売上入金情報の一覧取得において検索条件となるクエリパラメータ\n",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/Pagination.QueryParams"
                },
                {
                  "$ref": "#/components/schemas/PlatformAccountSummary.ListRetrieving.QueryParams"
                }
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlatformAccountSummary.ListRetrieving.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X GET \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n'https://api.test.fincode.jp/v1/platform_accounts/{id}/summary'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    const platformAccountId = \"<Platform Account ID>\";\n\n    try {\n        // リクエストの送信\n        const platformSummaries =\n            await fincode.platformAccounts.retrieveSummaryList(\n                platformAccountId\n            );\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\tplatformAccountID := \"<Platform Account ID>\"\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\n\t\t\"GET\",\n\t\tfmt.Sprintf(\"https://api.test.fincode.jp/v1/platform_accounts/%s/summary\", platformAccountID),\n\t\tnil,\n\t)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\n\tparams := req.URL.Query()\n\tparams.Add(\"limit\", \"10\")\n\treq.URL.RawQuery = params.Encode()\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$platformAccountId = '<Platform Account ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/platform_accounts/{$platformAccountId}/summary\";\n$queryParams = [\n    \"limit\" => 10,\n];\n\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint . '?' . http_build_query($queryParams));\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_HTTPGET, true);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\nplatform_account_id = '<Platform Account ID>'\n\nurl = f'https://api.test.fincode.jp/v1/platform_accounts/{platform_account_id}/summary'\nquery_params = {\n    'limit': \"10\",\n}\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n}\n\ntry:\n    response = requests.get(url, headers=headers, params=query_params)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # APIからのデータを処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    platform_account_id = '<Platform Account ID>'\n\n    endpoint = \"/v1/platform_accounts/#{platform_account_id}/summary\"\n    query_params =  { limit: 10 }\n\n    uri = URI.parse(BASE_URL + endpoint)\n    uri.query = URI.encode_www_form(query_params)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Get.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/shop_charge_backs": {
      "get": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "retrieveChargebackList",
        "tags": [
          "チャージバック"
        ],
        "summary": "チャージバック 一覧取得",
        "description": "チャージバック情報を一覧で取得します。クエリパラメータを指定して取得する条件を絞り込めます。\n",
        "parameters": [
          {
            "name": "Tenant-Shop-Id",
            "in": "header",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\nこのテナントショップの売上入金情報から一覧で取得します。\n"
          },
          {
            "name": "クエリ",
            "in": "query",
            "description": "チャージバック情報の一覧取得において検索条件となるクエリパラメータ\n",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/Pagination.QueryParams"
                },
                {
                  "$ref": "#/components/schemas/ShopChargeBack.ListRetrieving.QueryParams"
                }
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShopChargeBack.ListRetrieving.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X GET \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n'https://api.test.fincode.jp/v1/shop_charge_backs'"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import fetch from \"node-fetch\";\n\nconst BASE_URL = \"https://api.test.fincode.jp\";\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const endpoint = `${BASE_URL}/v1/shop_charge_backs`;\n\n    const response = await fetch(endpoint, {\n        method: \"GET\",\n        headers: {\n            Authorization: `Bearer ${API_KEY}`,\n        },\n    });\n    const chargebacks = await response.json();\n    console.log(chargebacks); // 取得したチャージバックデータを出力\n})();"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\t// APIキーの指定\n\tapiKey := \"<Secret API Key>\"\n\n\t// リクエストの作成\n\treq, err := http.NewRequest(\n\t\t\"GET\",\n\t\t\"https://api.test.fincode.jp/v1/shop_charge_backs\",\n\t\tnil,\n\t)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエストの作成エラー: %v\", err)\n\t}\n\n\t// ヘッダーの設定\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\n\t// クライアントの作成とリクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエストエラー: %v\", err)\n\t}\n\tdefer res.Body.Close()\n\n\t// レスポンスのステータスコードの表示\n\tfmt.Println(\"Status:\", res.Status)\n}"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/shop_charge_backs\"; // GETリクエストのエンドポイント\n\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_HTTPGET, true);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, 2);\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    // エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    // APIからのデータを処理\n    var_dump($response); // レスポンスを出力\n}\n\ncurl_close($session);"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\nbase_url = \"https://api.test.fincode.jp\"\nendpoint = \"/v1/shop_charge_backs\"  # GETリクエストのエンドポイント\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n}\n\ntry:\n    response = requests.get(f\"{base_url}{endpoint}\", headers=headers)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # APIからのデータを処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    endpoint = \"/v1/shop_charge_backs\"  # GETリクエストのエンドポイント\n\n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Get.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n        # レスポンスの表示\n        puts JSON.pretty_generate(JSON.parse(response.body))\n    else\n        puts 'ERROR'\n        # エラーの表示\n        puts response.body\n    end\nend\n\nmain"
          }
        ]
      }
    },
    "/v1/shop_charge_backs/{id}": {
      "get": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "retrieveChargeback",
        "tags": [
          "チャージバック"
        ],
        "summary": "チャージバック 取得",
        "description": "チャージバック情報を取得します。\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "チャージバックID\n"
          },
          {
            "name": "Tenant-Shop-Id",
            "in": "header",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\n代理実行対象のテナントショップID。\n"
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShopChargeBack.Retrieving.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        }
      }
    },
    "/v1/shop_charge_backs/{id}/reply": {
      "post": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "replyChargeback",
        "tags": [
          "チャージバック"
        ],
        "summary": "チャージバック 回答登録",
        "description": "チャージバックに対する回答を登録します。\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "チャージバックID\n"
          },
          {
            "name": "Tenant-Shop-Id",
            "in": "header",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\n代理実行対象のテナントショップID。\n"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ShopChargeBack.Reply.Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShopChargeBack.Retrieving.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        }
      }
    },
    "/v1/charge_backs/file_upload": {
      "post": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "uploadChargebackFile",
        "tags": [
          "チャージバック"
        ],
        "summary": "チャージバック 反証資料アップロード",
        "description": "チャージバックの反証資料ファイルをアップロードします。\n",
        "parameters": [
          {
            "name": "Tenant-Shop-Id",
            "in": "header",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\n代理実行対象のテナントショップID。\n"
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/ExaminationFile.Uploading.Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExaminationFile.Uploading.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        }
      }
    },
    "/v1/platforms": {
      "get": {
        "tags": [
          "プラットフォームショップ"
        ],
        "operationId": "retrievePlatformShopList",
        "summary": "プラットフォームショップ 一覧取得",
        "description": "プラットフォームショップ（メインショップ・サブショップ）を一覧で取得します。\\\nクエリパラメータを指定して取得する条件を絞り込めます。\n",
        "parameters": [
          {
            "name": "クエリ",
            "in": "query",
            "description": "プラットフォーム情報の一覧取得において検索条件となるクエリパラメータ\n",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/Pagination.QueryParams"
                },
                {
                  "$ref": "#/components/schemas/PlatformShop.ListRetrieving.QueryParams"
                }
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlatformShop.ListRetrieving.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X GET \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n'https://api.test.fincode.jp/v1/platforms'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    try {\n        // リクエストの送信\n        const platformShops = await fincode.platforms.retrieveList({\n            limit: 1,\n        });\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\n\t\t\"GET\",\n\t\t\"https://api.test.fincode.jp/v1/platforms\",\n\t\tnil,\n\t)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\n\tparams := req.URL.Query()\n\tparams.Add(\"limit\", \"10\")\n\treq.URL.RawQuery = params.Encode()\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/platforms\";\n$queryParams = [\n    \"limit\" => 10,\n];\n\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint . '?' . http_build_query($queryParams));\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_HTTPGET, true);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\nurl = f'https://api.test.fincode.jp/v1/platforms'\nquery_params = {\n    'limit': \"10\",\n}\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n}\n\ntry:\n    response = requests.get(url, headers=headers, params=query_params)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # APIからのデータを処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    endpoint = \"/v1/platforms\"\n    query_params =  { limit: 10 }\n\n    uri = URI.parse(BASE_URL + endpoint)\n    uri.query = URI.encode_www_form(query_params)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Get.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/platforms/{id}": {
      "get": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "retrievePlatformShop",
        "tags": [
          "プラットフォームショップ"
        ],
        "summary": "プラットフォームショップ 取得",
        "description": "`id`で指定したプラットフォームショップ（メインショップ・サブショップ）を取得します。\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "ショップID",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlatformShop.Retrieving.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X GET \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n'https://api.test.fincode.jp/v1/platforms/{id}'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    const platformShopId = \"<Platform Shop ID>\";\n\n    try {\n        // リクエストの送信\n        const platformShop = await fincode.platforms.retrieve(platformShopId);\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\tplatformShopID := \"<Platform Shop ID>\"\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\n\t\t\"GET\",\n\t\tfmt.Sprintf(\"https://api.test.fincode.jp/v1/platforms/%s\", platformShopID),\n\t\tnil,\n\t)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$platformShopId = '<Platform Shop ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/platforms/{$platformShopId}\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_HTTPGET, true);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\nplatform_shop_id = '<Platform Shop ID>'\n\nurl = f'https://api.test.fincode.jp/v1/platforms/{platform_shop_id}'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n}\n\ntry:\n    response = requests.get(url, headers=headers)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # APIからのデータを処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    platform_shop_id = '<Platform Shop ID>'\n    endpoint = \"/v1/platforms/#{platform_shop_id}\"\n    query_params =  { limit: 10 }\n    uri = URI.parse(BASE_URL + endpoint)\n    uri.query = URI.encode_www_form(query_params)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Get.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      },
      "put": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "updatePlatformShop",
        "tags": [
          "プラットフォームショップ"
        ],
        "summary": "プラットフォームショップ 更新",
        "description": "`examination_master_id`で指定した決済手段に関してプラットフォーム利用料を更新します。\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "ショップID",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PlatformShop.Updating.Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlatformShop.Updating.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X PUT \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\n    \"examination_master_id\": \"vm\",\n    \"platform_rate\": \"5.00\"\n}' \\\n'https://api.test.fincode.jp/v1/platforms/{id}'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    const platformShopId = \"<Platform Shop ID>\";\n\n    try {\n        // リクエストの送信\n        const platformShop = await fincode.platforms.update(platformShopId, {\n            examination_master_id: \"vm\",\n            platform_rate: \"5.0\",\n        });\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\tplatformShopID := \"<Platform Shop ID>\"\n\n\tbody := UpdatingPlatformShopRequest{\n\t\tExaminationMasterID: stringPointer(\"vm\"),\n\t\tPlatformRate:        stringPointer(\"5.00\"),\n\t}\n\n\tmarshalledBody, _ := json.Marshal(body)\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\n\t\t\"PUT\",\n\t\tfmt.Sprintf(\"https://api.test.fincode.jp/v1/platforms/%s\", platformShopID),\n\t\tbytes.NewBuffer(marshalledBody),\n\t)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n\ntype UpdatingPlatformShopRequest struct {\n\tExaminationMasterID *string `json:\"examination_master_id,omitempty\"`\n\tPlatformRate        *string `json:\"platform_rate,omitempty\"`\n\tFixedFee            *string `json:\"fixed_fee,omitempty\"`\n\tWebRegistrationFee  *string `json:\"web_registration_fee,omitempty\"`\n}\n\nfunc stringPointer(s string) *string {\n\treturn &s\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$platformShopId = '<Platform Shop ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/platforms/{$platformShopId}\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: application/json\"\n];\n\n$data = json_encode([\n    \"examination_master_id\" => \"vm\",\n    \"platform_rate\" => \"5.0\",\n]);\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, 'PUT');\ncurl_setopt($session, CURLOPT_POSTFIELDS, $data);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\nplatform_shop_id = '<Platform Shop ID>'\n\nurl = f'https://api.test.fincode.jp/v1/platforms/{platform_shop_id}'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\ndata = {\n    \"examination_master_id\": \"jad\",\n    \"platform_rate\": \"5.00\"\n}\n\n# HTTP POSTリクエストの送信\ntry:\n    response = requests.put(url, headers=headers, json=data)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # 成功した場合の処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    platform_shop_id = 's_22080402900'\n    endpoint = \"/v1/platforms/#{platform_shop_id}\"\n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    data = {\n        examination_master_id: 'vm',\n        platform_rate: '5.6'\n    }\n\n    # リクエストの作成\n    request = Net::HTTP::Put.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n    request['Content-Type'] = 'application/json'\n\n    request.body = data.to_json\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/tenants": {
      "get": {
        "tags": [
          "テナントショップ"
        ],
        "operationId": "retrieveTenantShopList",
        "summary": "テナントショップ 一覧取得",
        "description": "テナントショップを一覧で取得します。\\\nクエリパラメータを指定して取得する条件を絞り込めます。\n",
        "parameters": [
          {
            "name": "クエリ",
            "in": "query",
            "description": "テナント情報の一覧取得において検索条件となるクエリパラメータ\n",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/Pagination.QueryParams"
                },
                {
                  "$ref": "#/components/schemas/TenantShop.ListRetrieving.QueryParams"
                }
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantShop.ListRetrieving.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X GET \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n'https://api.test.fincode.jp/v1/tenants'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    try {\n        // リクエストの送信\n        const tenants = await fincode.tenants.retrieveList({\n            limit: 10,\n        });\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\"GET\", \"https://api.test.fincode.jp/v1/tenants\", nil)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\n\tparams := req.URL.Query()\n\tparams.Add(\"limit\", \"10\")\n\treq.URL.RawQuery = params.Encode()\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/tenants\";\n$queryParams = [\n    \"limit\" => 10,\n];\n\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint . '?' . http_build_query($queryParams));\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_HTTPGET, true);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\n\nurl = f'https://api.test.fincode.jp/v1/tenants'\nquery_params = {\n    'limit': \"10\",\n}\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n}\n\ntry:\n    response = requests.get(url, headers=headers, params=query_params)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # APIからのデータを処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    endpoint = \"/v1/tenants\"\n    query_params =  { limit: 10 }\n\n    uri = URI.parse(BASE_URL + endpoint)\n    uri.query = URI.encode_www_form(query_params)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Get.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/tenants/{id}": {
      "get": {
        "tags": [
          "テナントショップ"
        ],
        "operationId": "retrieveTenantShop",
        "summary": "テナントショップ 取得",
        "description": "`id`で指定したテナント情報を取得します。\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "ショップID\n",
            "required": true,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantShop.Retrieving.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X GET \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n'https://api.test.fincode.jp/v1/tenants/{id}'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    const tenantShopId = \"<Tenant Shop ID>\";\n\n    try {\n        // リクエストの送信\n        const tenantShop = await fincode.tenants.retrieve(tenantShopId);\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\ttenantShopID := \"<Tenant Shop ID>\"\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\n\t\t\"GET\",\n\t\tfmt.Sprintf(\"https://api.test.fincode.jp/v1/tenants/%s\", tenantShopID),\n\t\tnil,\n\t)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$tenantShopId = '<Tenant Shop ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/tenants/{$tenantShopId}\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_HTTPGET, true);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\ntenant_shop_id = '<Tenant Shop ID>'\n\nurl = f'https://api.test.fincode.jp/v1/tenants/{tenant_shop_id}'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n}\n\ntry:\n    response = requests.get(url, headers=headers)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # APIからのデータを処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    tenant_shop_id = '<Tenant Shop ID>'\n    endpoint = \"/v1/tenants/#{tenant_shop_id}\"\n\n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Get.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      },
      "put": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "updateTenantShop",
        "tags": [
          "テナントショップ"
        ],
        "summary": "テナントショップ 更新",
        "description": "`examination_master_id`で指定した決済手段におけるプラットフォーム利用料などの設定の変更を`id`で指定したテナントに対して実行します。\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "ショップID\n",
            "required": true,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TenantShop.Updating.Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantShop.Updating.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X PUT \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\n    \"examination_master_id\": \"<Examination Master ID>\",\n    \"platform_rate\": \"4.8\"\n}' \\\n'https://api.test.fincode.jp/v1/tenants/{id}'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\"\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n\t[TODO] path params\n\n    try {\n        // リクエストの送信\n        const customer = await fincode.tenants.update({\n            [TODO] body or query\n        });\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\ttenantShopID := \"<Tenant Shop ID>\"\n\n\tbody := UpdatingTenantShopRequest{\n\t\tExaminationMasterID:       stringPointer(\"paypay\"),\n\t\tPayPayContentCategoryType: stringPointer(\"1\"),\n\t\tPlatformRate:              stringPointer(\"8.0\"),\n\t}\n\n\tmarshalledBody, _ := json.Marshal(body)\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\n\t\t\"PUT\",\n\t\tfmt.Sprintf(\"https://api.test.fincode.jp/v1/tenants/%s\", tenantShopID),\n\t\tbytes.NewBuffer(marshalledBody),\n\t)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n\ntype UpdatingTenantShopRequest struct {\n\tExaminationMasterID       *string `json:\"examination_master_id,omitempty\"`\n\tPlatformRate              *string `json:\"platform_rate,omitempty\"`\n\tFixedFee                  *string `json:\"fixed_fee,omitempty\"`\n\tWebRegistrationFee        *string `json:\"web_registration_fee,omitempty\"`\n\tPayPayContentCategoryType *string `json:\"paypay_content_category_type,omitempty\"`\n\tAPIKeyDisplayFlag         *string `json:\"api_key_display_flag,omitempty\"`\n}\n\nfunc stringPointer(s string) *string {\n\treturn &s\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$tenantShopId = '<Tenant Shop ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/tenants/{$tenantShopId}\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$data = json_encode([\n    \"examination_master_id\" => \"vm\",\n    \"platform_rate\" => \"5.0\"\n]);\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, 'PUT');\ncurl_setopt($session, CURLOPT_POSTFIELDS, $data);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\ntenant_shop_id = '<Tenant Shop ID>'\n\nurl = f'https://api.test.fincode.jp/v1/tenants/{tenant_shop_id}'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\ndata = {\n    \"examination_master_id\": \"jad\",\n    \"platform_rate\": \"5.00\"\n}\n\n# HTTP POSTリクエストの送信\ntry:\n    response = requests.put(url, headers=headers, json=data)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # 成功した場合の処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    tenant_shop_id = '<Tenant Shop ID>'\n    endpoint = \"/v1/tenants/#{tenant_shop_id}\"\n\n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    data = {\n        examination_master_id: 'jad',\n        platform_rate: '6.0',\n    }\n\n    # リクエストの作成\n    request = Net::HTTP::Put.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n    request['Content-Type'] = 'application/json'\n\n    request.body = data.to_json\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/tenant_entries": {
      "post": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "createTenantWithNewUser",
        "tags": [
          "テナント申請管理"
        ],
        "summary": "テナントショップ 作成（新規ユーザー登録）",
        "description": "新規ユーザーを作成し、作成されたユーザーをオーナーとして新規テナントショップを作成するAPIです。\\\nこのAPIでのテナント作成に成功すると、登録されたメールアドレス宛にメールアドレス認証メールが送信されます。\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POST.TenantEntries.Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/POST.TenantEntries.Response.business_operator"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X POST \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\n    \"email\": \"<New User Email Address>\",\n    \"password\": \"<New User Password>\",\n    \"name\": \"<New User Name>\",\n    \"tenant_url_id\": \"<Tenant Invitation URL ID>\"\n}' \\\n'https://api.test.fincode.jp/v1/tenant_entries'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    try {\n        // リクエストの送信\n        const tenantShop = await fincode.tenants.createWithNewUser({\n            name: \"New User\",\n            email: \"new-user@example.com\",\n            password: \"new-user-password\",\n            tenant_url_id: \"<Tenant Invitaion URL ID>\",\n        });\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\tbody := CreatingTenantWithNewUserRequest{\n\t\tEmail:       \"new-user@example.com\",\n\t\tPassword:    \"new-user-password\",\n\t\tName:        \"New User\",\n\t\tTenantURLID: \"<Tenant URL ID>\",\n\t}\n\n\tmarshalledBody, _ := json.Marshal(body)\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\"POST\", \"https://api.test.fincode.jp/v1/tenant_entries\", bytes.NewBuffer(marshalledBody))\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n\ntype CreatingTenantWithNewUserRequest struct {\n\tEmail       string `json:\"email\"`\n\tPassword    string `json:\"password\"`\n\tName        string `json:\"name\"`\n\tTenantURLID string `json:\"tenant_url_id\"`\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/tenant_entries\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: application/json\"\n];\n\n$data = json_encode([\n    \"email\" => \"new-user@example.com\",\n    \"password\" => \"new-user-password\",\n    \"name\" => \"New User\",\n    \"tenant_url_id\" => \"<Tenant Invitaion URL ID>\",\n]);\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_POST, true);\ncurl_setopt($session, CURLOPT_POSTFIELDS, $data);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\nurl = f'https://api.test.fincode.jp/v1/tenant_entries'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\ndata = {\n    \"email\": \"<New User Email Address>\",\n    \"password\": \"<New User Password>\",\n    \"name\": \"<New User Name>\",\n    \"tenant_url_id\": \"<Tenant Invitation URL ID>\"\n}\n\n# HTTP POSTリクエストの送信\ntry:\n    response = requests.post(url, headers=headers, json=data)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # 成功した場合の処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    endpoint = \"/v1/tenant_entries\"\n    \n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n    \n    data = {\n        email: \"<New User Email Address>\",\n        password: \"<New User Password>\",\n        name: \"<New User Name>\",\n        tenant_url_id: \"<Tenant Invitation URL ID>\"\n    }\n\n    # リクエストの作成\n    request = Net::HTTP::Post.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n    request['Content-Type'] = 'application/json'\n\n    request.body = data.to_json\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/join_tenants": {
      "post": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "createTenantWithExistingUser",
        "tags": [
          "テナント申請管理"
        ],
        "summary": "テナントショップ 作成（既存ユーザー参加）",
        "description": "指定したプラットフォームショップのユーザーを新規テナントショップのオーナーとして新規テナントショップを作成するAPIです。\\\n\\\n`password`パラメータに関して、ユーザーのパスワードがM's PayBridge管理画面アプリケーション上で更新されることを想定して実装・運用することが推奨されます。\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POST.JoinTenants.Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/POST.JoinTenants.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X POST \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\n    \"email\": \"platform-user@example.com\",\n    \"password\": \"platform-user-password\",\n    \"tenant_url_id\": \"<Tenant Invitation URL ID>\"\n}' \\\n'https://api.test.fincode.jp/v1/join_tenants'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    try {\n        // リクエストの送信\n        const tenantShop = await fincode.tenants.createWithExistingUser({\n            email: \"existing-user@example.com\",\n            password: \"existing-user-password\",\n            tenant_url_id: \"<Tenant Invitation URL ID>\",\n        });\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\tbody := CreatingTenantWithNewUserRequest{\n\t\tEmail:    \"new-user@example.com\",\n\t\tPassword: \"new-user-password\",\n\t\tName:     \"New User\",\n\t}\n\n\tmarshalledBody, _ := json.Marshal(body)\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\"POST\", \"https://api.test.fincode.jp/v1/join_tenants\", bytes.NewBuffer(marshalledBody))\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n}\n\ntype CreatingTenantWithNewUserRequest struct {\n\tEmail       string `json:\"email\"`\n\tPassword    string `json:\"password\"`\n\tName        string `json:\"name\"`\n\tTenantUrlId string `json:\"tenant_url_id\"`\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/join_tenants\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: application/json\"\n];\n\n$data = json_encode([\n    \"email\" => \"platform-user@example.com\",\n    \"password\" => \"platform-user-password\",\n    \"tenant_url_id\" => \"<Tenant Invitation URL ID>\"\n]);\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_POST, true);\ncurl_setopt($session, CURLOPT_POSTFIELDS, $data);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\nurl = f'https://api.test.fincode.jp/v1/join_tenants'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\ndata = {\n    \"email\": \"platform-user@example.com\",\n    \"password\": \"platform-user-password\",\n    \"tenant_url_id\": \"<Tenant Invitation URL ID>\"\n}\n\n# HTTP POSTリクエストの送信\ntry:\n    response = requests.post(url, headers=headers, json=data)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # 成功した場合の処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    endpoint = \"/v1/join_tenants\"\n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    data = {\n        email: \"platform-user@example.com\",\n        password: \"platform-user-password\",\n        tenant_url_id: \"<Tenant Invitation URL ID>\"\n    }\n\n    # リクエストの作成\n    request = Net::HTTP::Post.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n    request['Content-Type'] = 'application/json'\n\n    request.body = data.to_json\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/contracts/examinations_v2/tenants/{id}": {
      "get": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "retrieveTenantExaminationInfoV2",
        "tags": [
          "テナント申請管理"
        ],
        "summary": "テナントショップ本番環境申請情報 取得",
        "description": "`id`で指定したテナントショップの本番環境申請情報を取得します。\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "指定したテナントショップの本番環境申請情報を取得します。`Tenant-Shop-Id`ヘッダーも併せて指定してください。\n",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "required": true
          },
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": true,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\n指定したテナントショップの本番環境申請情報を取得します。\n"
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExaminationInfo.V2.Retrieving.Response.business_operator"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X GET \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Tenant-Shop-Id: <Tenant Shop ID>\" \\\n'https://api.test.fincode.jp/v1/contracts/examinations_v2/tenants/{Tenant Shop ID}'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    const tenantShoptId = \"<Tenant Shop ID>\";\n\n    try {\n        // リクエストの送信\n        const examinationInfo = await fincode.tenants.retrieveExaminationInfoV2(\n            tenantShoptId,\n            {\n                tenantShoptId: tenantShoptId,\n            }\n        );\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\ttenantShopID := \"<Tenant Shop ID>\"\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\"GET\", fmt.Sprintf(\"https://api.test.fincode.jp/v1/contracts/examinations_v2/tenants/%s\", tenantShopID), nil)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\treq.Header.Set(\"Tenant-Shop-Id\", tenantShopID)\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$tenantShopId = '<Tenant Shop ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/contracts/examinations_v2/tenants/{$tenantShopId}\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Tenant-Shop-Id: \" . $tenantShopId,\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_HTTPGET, true);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\ntenant_shop_id = '<Tenant Shop ID>'\n\nurl = f'https://api.test.fincode.jp/v1/contracts/examinations_v2/tenants/{tenant_shop_id}'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Tenant-Shop-Id': tenant_shop_id,\n}\n\ntry:\n    response = requests.get(url, headers=headers)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # APIからのデータを処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    tenant_shop_id = '<Tenant Shop ID>'\n    endpoint = \"/v1/contracts/examinations_v2/tenants/#{tenant_shop_id}\"\n\n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Get.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n    request['Tenant-Shop-Id'] = tenant_shop_id\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      },
      "put": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "updateTenantExaminationInfoV2",
        "tags": [
          "テナント申請管理"
        ],
        "summary": "テナントショップ本番環境申請情報 更新",
        "description": "`id`で指定したテナントショップの本番環境申請情報を登録します。既に本番環境申請済みのショップのidはご指定いただけません。\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "指定したテナントショップの本番環境申請情報を更新します。`Tenant-Shop-Id`ヘッダーも併せて指定してください。\n",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "required": true
          },
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": true,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\n指定したテナントショップの本番環境申請情報を更新します。\n"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExaminationInfo.V2.Updating.Request.business_operator"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExaminationInfo.V2.Updating.Response.business_operator"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X PUT \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n    -H \"Tenant-Shop-Id: <Tenant Shop ID>\" \\\n    -d '{\n    \"contract_info\": {\n        \"representative_last_name\": \"山田\",\n        \"representative_last_name_kana\": \"ヤマダ\",\n        \"representative_first_name\": \"太郎\",\n        \"representative_first_name_kana\": \"タロウ\",\n        \"representative_postal_code\": \"123-4567\",\n        \"representative_prefecture\": \"東京都\",\n        \"representative_prefecture_kana\": \"トウキョウト\",\n        \"representative_address_municipality\": \"渋谷区\",\n        \"representative_address_municipality_kana\": \"シブヤク\",\n        \"representative_address_section\": \"道玄坂\",\n        \"representative_address_section_kana\": \"ドウゲンザカ\",\n        \"representative_address_chrome\": \"1-2-3\",\n        \"representative_address_chrome_kana\": \"イチニサン\",\n        \"representative_tel\": \"0312345678\",\n        \"representative_birthday\": \"1998/11/01\",\n        \"representative_gender\": 0,\n        \"staff1_last_name\": \"鈴木\",\n        \"staff1_last_name_kana\": \"スズキ\",\n        \"staff1_first_name\": \"次郎\",\n        \"staff1_first_name_kana\": \"ジロウ\",\n        \"staff1_company_name\": \"株式会社テスト\",\n        \"staff1_belongs\": \"EC運営部\",\n        \"staff1_tel\": \"08012345678\",\n        \"staff1_mail\": \"staff-1@exampple.com\",\n        \"corporate\": true,\n        \"corporate_info\": {\n            \"corporate_number\": \"1234567890123\",\n            \"corporate_name\": \"株式会社テスト\",\n            \"corporate_name_kana\": \"カブシキガイシャテスト\",\n            \"company_postal_code\": \"123-4567\",\n            \"company_prefecture\": \"東京都\",\n            \"company_prefecture_kana\": \"トウキョウト\",\n            \"company_address_municipality\": \"渋谷区\",\n            \"company_address_municipality_kana\": \"シブヤク\",\n            \"company_address_section\": \"道玄坂\",\n            \"company_address_section_kana\": \"ドウゲンザカ\",\n            \"company_address_chrome\": \"1-2-3\",\n            \"company_address_chrome_kana\": \"イチニサン\",\n            \"company_tel\": \"0312345678\",\n            \"capital\": 1000000,\n            \"established_at\": \"2018/11/01\",\n            \"yearly_sales\": 100000000,\n            \"business_details\": \"○○の販売\"\n        }\n    }\n}' \\\n'https://api.test.fincode.jp/v1/contracts/examinations_v2/tenants/{Tenant Shop ID}'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    const tenantShoptId = \"<Tenant Shop ID>\";\n\n    try {\n        // リクエストの送信\n        const examinationInfo = await fincode.tenants.updateExaminationInfoV2(\n            tenantShoptId,\n            {\n                contract_info: {\n                    corporate: true,\n                    corporate_info: {\n                        corporate_number: \"1234567890123\",\n                        corporate_name: \"株式会社テスト\",\n                        corporate_name_kana: \"カブシキガイシャテスト\",\n                        // hp: \"\",\n                        company_prefecture: \"東京都\",\n                        company_prefecture_kana: \"トウキョウト\",\n                        company_address_municipality: \"渋谷区\",\n                        company_address_municipality_kana: \"シブヤク\",\n                        company_address_section: \"道玄坂\",\n                        company_address_section_kana: \"ドウゲンザカ\",\n                        company_address_chrome: \"1-2-3\",\n                        company_address_chrome_kana: \"イチニサン\",\n                        company_tel: \"0312345678\",\n                        company_postal_code: \"123-4567\",\n\n                        capital: 1000000,\n                        established_at: \"2018/11/01\",\n                        yearly_sales: 100000000,\n                        business_details: \"○○の販売\",\n                    },\n                    representative_first_name: \"山田\",\n                    representative_first_name_kana: \"ヤマダ\",\n                    representative_last_name: \"太郎\",\n                    representative_last_name_kana: \"タロウ\",\n                    representative_postal_code: \"123-4567\",\n                    representative_prefecture: \"東京都\",\n                    representative_prefecture_kana: \"トウキョウト\",\n                    representative_address_municipality: \"渋谷区\",\n                    representative_address_municipality_kana: \"シブヤク\",\n                    representative_address_section: \"道玄坂\",\n                    representative_address_section_kana: \"ドウゲンザカ\",\n                    representative_address_chrome: \"1-2-3\",\n                    representative_address_chrome_kana: \"イチニサン\",\n                    representative_tel: \"0312345678\",\n                    representative_birthday: \"1998/11/01\",\n                    representative_gender: 0,\n\n                    staff1_first_name: \"鈴木\",\n                    staff1_first_name_kana: \"スズキ\",\n                    staff1_last_name: \"次郎\",\n                    staff1_last_name_kana: \"ジロウ\",\n                    staff1_company_name: \"株式会社テスト\",\n                    staff1_belongs: \"EC運営部\",\n                    staff1_tel: \"08012345678\",\n                    staff1_mail: \"staff-1@example.com\",\n                },\n            },\n            { tenantShoptId: tenantShoptId }\n        );\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\ttenantShopID := \"<Tenant Shop ID>\"\n\n\tbody := UpdatingExaminationInfoRequest_v2{\n\t\tContractInfo: ContractInfo{\n\t\t\tRepresentativeLastName:                \"山田\",\n\t\t\tRepresentativeLastNameKana:            \"ヤマダ\",\n\t\t\tRepresentativeFirstName:               \"太郎\",\n\t\t\tRepresentativeFirstNameKana:           \"タロウ\",\n\t\t\tRepresentativePostalCode:              \"123-4567\",\n\t\t\tRepresentativePrefecture:              \"東京都\",\n\t\t\tRepresentativePrefectureKana:          \"トウキョウト\",\n\t\t\tRepresentativeAddressMunicipality:     \"渋谷区\",\n\t\t\tRepresentativeAddressMunicipalityKana: \"シブヤク\",\n\t\t\tRepresentativeAddressSection:          \"道玄坂\",\n\t\t\tRepresentativeAddressSectionKana:      \"ドウゲンザカ\",\n\t\t\tRepresentativeAddressChrome:           \"1-2-3\",\n\t\t\tRepresentativeAddressChromeKana:       \"イチニサン\",\n\t\t\tRepresentativeTel:                     \"0312345678\",\n\t\t\tRepresentativeBirthday:                \"1998/11/01\",\n\t\t\tRepresentativeGender:                  0,\n\t\t\tStaff1LastName:                        \"鈴木\",\n\t\t\tStaff1LastNameKana:                    \"スズキ\",\n\t\t\tStaff1FirstName:                       \"次郎\",\n\t\t\tStaff1FirstNameKana:                   \"ジロウ\",\n\t\t\tStaff1CompanyName:                     \"株式会社テスト\",\n\t\t\tStaff1Belongs:                         \"EC運営部\",\n\t\t\tStaff1Tel:                             \"08012345678\",\n\t\t\tStaff1Mail:                            \"staff-1@example.com\",\n\t\t\tCorporate:                             true,\n\t\t\tCorporateInfo: CorporateInfo{\n\t\t\t\tCorporateNumber:                \"1234567890123\",\n\t\t\t\tCorporateName:                  \"株式会社テスト\",\n\t\t\t\tCorporateNameKana:              \"カブシキガイシャテスト\",\n\t\t\t\tCompanyPostalCode:              \"123-4567\",\n\t\t\t\tCompanyPrefecture:              \"東京都\",\n\t\t\t\tCompanyPrefectureKana:          \"トウキョウト\",\n\t\t\t\tCompanyAddressMunicipality:     \"渋谷区\",\n\t\t\t\tCompanyAddressMunicipalityKana: \"シブヤク\",\n\t\t\t\tCompanyAddressSection:          \"道玄坂\",\n\t\t\t\tCompanyAddressSectionKana:      \"ドウゲンザカ\",\n\t\t\t\tCompanyAddressChrome:           \"1-2-3\",\n\t\t\t\tCompanyAddressChromeKana:       \"イチニサン\",\n\t\t\t\tCompanyTel:                     \"0312345678\",\n\t\t\t\tCapital:                        1000000,\n\t\t\t\tEstablishedAt:                  \"2018/11/01\",\n\t\t\t\tYearlySales:                    100000000,\n\t\t\t\tBusinessDetails:                \"○○の販売\",\n\t\t\t},\n\t\t},\n\t}\n\n\tmarshalledBody, _ := json.Marshal(body)\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\"PUT\", fmt.Sprintf(\"https://api.test.fincode.jp/v1/contracts/examinations_v2/tenants/%s\", tenantShopID), bytes.NewBuffer(marshalledBody))\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\treq.Header.Set(\"Tenant-Shop-Id\", tenantShopID)\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n\ntype UpdatingExaminationInfoRequest_v2 struct {\n\tContractInfo ContractInfo `json:\"contract_info\"`\n}\ntype ContractInfo struct {\n\tRepresentativeLastName                string        `json:\"representative_last_name\"`\n\tRepresentativeLastNameKana            string        `json:\"representative_last_name_kana\"`\n\tRepresentativeFirstName               string        `json:\"representative_first_name\"`\n\tRepresentativeFirstNameKana           string        `json:\"representative_first_name_kana\"`\n\tRepresentativePostalCode              string        `json:\"representative_postal_code\"`\n\tRepresentativePrefecture              string        `json:\"representative_prefecture\"`\n\tRepresentativePrefectureKana          string        `json:\"representative_prefecture_kana\"`\n\tRepresentativeAddressMunicipality     string        `json:\"representative_address_municipality\"`\n\tRepresentativeAddressMunicipalityKana string        `json:\"representative_address_municipality_kana\"`\n\tRepresentativeAddressSection          string        `json:\"representative_address_section\"`\n\tRepresentativeAddressSectionKana      string        `json:\"representative_address_section_kana\"`\n\tRepresentativeAddressChrome           string        `json:\"representative_address_chrome\"`\n\tRepresentativeAddressChromeKana       string        `json:\"representative_address_chrome_kana\"`\n\tRepresentativeAddressBuildingName     *string       `json:\"representative_address_building_name,omitempty\"`\n\tRepresentativeAddressBuildingNameKana *string       `json:\"representative_address_building_name_kana,omitempty\"`\n\tRepresentativeTel                     string        `json:\"representative_tel\"`\n\tRepresentativeBirthday                string        `json:\"representative_birthday\"`\n\tRepresentativeGender                  int           `json:\"representative_gender\"`\n\tStaff1LastName                        string        `json:\"staff1_last_name\"`\n\tStaff1LastNameKana                    string        `json:\"staff1_last_name_kana\"`\n\tStaff1FirstName                       string        `json:\"staff1_first_name\"`\n\tStaff1FirstNameKana                   string        `json:\"staff1_first_name_kana\"`\n\tStaff1CompanyName                     string        `json:\"staff1_company_name\"`\n\tStaff1Belongs                         string        `json:\"staff1_belongs\"`\n\tStaff1Tel                             string        `json:\"staff1_tel\"`\n\tStaff1Mail                            string        `json:\"staff1_mail\"`\n\tStaff2LastName                        *string       `json:\"staff2_last_name,omitempty\"`\n\tStaff2LastNameKana                    *string       `json:\"staff2_last_name_kana,omitempty\"`\n\tStaff2FirstName                       *string       `json:\"staff2_first_name,omitempty\"`\n\tStaff2FirstNameKana                   *string       `json:\"staff2_first_name_kana,omitempty\"`\n\tStaff2CompanyName                     *string       `json:\"staff2_company_name,omitempty\"`\n\tStaff2Belongs                         *string       `json:\"staff2_belongs,omitempty\"`\n\tStaff2Tel                             *string       `json:\"staff2_tel,omitempty\"`\n\tStaff2Mail                            *string       `json:\"staff2_mail,omitempty\"`\n\tCorporate                             bool          `json:\"corporate\"`\n\tCorporateInfo                         CorporateInfo `json:\"corporate_info\"`\n}\ntype CorporateInfo struct {\n\tCorporateNumber                string  `json:\"corporate_number\"`\n\tCorporateName                  string  `json:\"corporate_name\"`\n\tCorporateNameKana              string  `json:\"corporate_name_kana\"`\n\tCompanyPostalCode              string  `json:\"company_postal_code\"`\n\tCompanyPrefecture              string  `json:\"company_prefecture\"`\n\tCompanyPrefectureKana          string  `json:\"company_prefecture_kana\"`\n\tCompanyAddressMunicipality     string  `json:\"company_address_municipality\"`\n\tCompanyAddressMunicipalityKana string  `json:\"company_address_municipality_kana\"`\n\tCompanyAddressSection          string  `json:\"company_address_section\"`\n\tCompanyAddressSectionKana      string  `json:\"company_address_section_kana\"`\n\tCompanyAddressChrome           string  `json:\"company_address_chrome\"`\n\tCompanyAddressChromeKana       string  `json:\"company_address_chrome_kana\"`\n\tCompanyAddressBuildingName     *string `json:\"company_address_building_name,omitempty\"`\n\tCompanyAddressBuildingNameKana *string `json:\"company_address_building_name_kana,omitempty\"`\n\tCompanyTel                     string  `json:\"company_tel\"`\n\tCapital                        int     `json:\"capital\"`\n\tEstablishedAt                  string  `json:\"established_at\"`\n\tYearlySales                    int     `json:\"yearly_sales\"`\n\tBusinessDetails                string  `json:\"business_details\"`\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$tenantShopId = '<Tenant Shop ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/contracts/examinations_v2/tenants/{$tenantShopId}\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: application/json\",\n    \"Tenant-Shop-Id: \" . $tenantShopId,\n];\n\n$data = json_encode([\n    \"contract_info\" => [\n        \"representative_last_name\" => \"山田\",\n        \"representative_last_name_kana\" => \"ヤマダ\",\n        \"representative_first_name\" => \"太郎\",\n        \"representative_first_name_kana\" => \"タロウ\",\n        \"representative_postal_code\" => \"123-4567\",\n        \"representative_prefecture\" => \"東京都\",\n        \"representative_prefecture_kana\" => \"トウキョウト\",\n        \"representative_address_municipality\" => \"渋谷区\",\n        \"representative_address_municipality_kana\" => \"シブヤク\",\n        \"representative_address_section\" => \"道玄坂\",\n        \"representative_address_section_kana\" => \"ドウゲンザカ\",\n        \"representative_address_chrome\" => \"1-2-3\",\n        \"representative_address_chrome_kana\" => \"イチニサン\",\n        \"representative_tel\" => \"0312345678\",\n        \"representative_birthday\" => \"1998/11/01\",\n        \"representative_gender\" => 0,\n        \"staff1_last_name\" => \"鈴木\",\n        \"staff1_last_name_kana\" => \"スズキ\",\n        \"staff1_first_name\" => \"次郎\",\n        \"staff1_first_name_kana\" => \"ジロウ\",\n        \"staff1_company_name\" => \"株式会社テスト\",\n        \"staff1_belongs\" => \"EC運営部\",\n        \"staff1_tel\" => \"08012345678\",\n        \"staff1_mail\" => \"staff-1@example.com\",\n        \"corporate\" => true,\n        \"corporate_info\" => [\n            \"corporate_number\" => \"1234567890123\",\n            \"corporate_name\" => \"株式会社テスト\",\n            \"corporate_name_kana\" => \"カブシキガイシャテスト\",\n            \"company_postal_code\" => \"123-4567\",\n            \"company_prefecture\" => \"東京都\",\n            \"company_prefecture_kana\" => \"トウキョウト\",\n            \"company_address_municipality\" => \"渋谷区\",\n            \"company_address_municipality_kana\" => \"シブヤク\",\n            \"company_address_section\" => \"道玄坂\",\n            \"company_address_section_kana\" => \"ドウゲンザカ\",\n            \"company_address_chrome\" => \"1-2-3\",\n            \"company_address_chrome_kana\" => \"イチニサン\",\n            \"company_tel\" => \"0312345678\",\n            \"capital\" => 1000000,\n            \"established_at\" => \"2018/11/01\",\n            \"yearly_sales\" => 100000000,\n            \"business_details\" => \"○○の販売\"\n        ]\n    ]\n]);\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, 'PUT');\ncurl_setopt($session, CURLOPT_POSTFIELDS, $data);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\ntenant_shop_id = '<Tenant Shop ID>'\n\nurl = f'https://api.test.fincode.jp/v1/contracts/examinations_v2/tenants/{tenant_shop_id}'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json',\n    'Tenant-Shop-Id': tenant_shop_id,\n}\n\ndata = {\n    \"contract_info\": {\n        \"representative_last_name\": \"山田\",\n        \"representative_last_name_kana\": \"ヤマダ\",\n        \"representative_first_name\": \"太郎\",\n        \"representative_first_name_kana\": \"タロウ\",\n        \"representative_postal_code\": \"123-4567\",\n        \"representative_prefecture\": \"東京都\",\n        \"representative_prefecture_kana\": \"トウキョウト\",\n        \"representative_address_municipality\": \"渋谷区\",\n        \"representative_address_municipality_kana\": \"シブヤク\",\n        \"representative_address_section\": \"道玄坂\",\n        \"representative_address_section_kana\": \"ドウゲンザカ\",\n        \"representative_address_chrome\": \"1-2-3\",\n        \"representative_address_chrome_kana\": \"イチニサン\",\n        \"representative_tel\": \"0312345678\",\n        \"representative_birthday\": \"1998/11/01\",\n        \"representative_gender\": 0,\n        \"staff1_last_name\": \"鈴木\",\n        \"staff1_last_name_kana\": \"スズキ\",\n        \"staff1_first_name\": \"次郎\",\n        \"staff1_first_name_kana\": \"ジロウ\",\n        \"staff1_company_name\": \"株式会社テスト\",\n        \"staff1_belongs\": \"EC運営部\",\n        \"staff1_tel\": \"08012345678\",\n        \"staff1_mail\": \"staff-1@example.com\",\n        \"corporate\": True,\n        \"corporate_info\": {\n            \"corporate_number\": \"1234567890123\",\n            \"corporate_name\": \"株式会社テスト\",\n            \"corporate_name_kana\": \"カブシキガイシャテスト\",\n            \"company_postal_code\": \"123-4567\",\n            \"company_prefecture\": \"東京都\",\n            \"company_prefecture_kana\": \"トウキョウト\",\n            \"company_address_municipality\": \"渋谷区\",\n            \"company_address_municipality_kana\": \"シブヤク\",\n            \"company_address_section\": \"道玄坂\",\n            \"company_address_section_kana\": \"ドウゲンザカ\",\n            \"company_address_chrome\": \"1-2-3\",\n            \"company_address_chrome_kana\": \"イチニサン\",\n            \"company_tel\": \"0312345678\",\n            \"capital\": 1000000,\n            \"established_at\": \"2018/11/01\",\n            \"yearly_sales\": 100000000,\n            \"business_details\": \"○○の販売\"\n        }\n    }\n}\n\n# HTTP POSTリクエストの送信\ntry:\n    response = requests.put(url, headers=headers, json=data)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # 成功した場合の処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    tenant_shop_id = '<Tenant Shop ID>'\n    endpoint = \"/v1/contracts/examinations_v2/tenants/#{tenant_shop_id}\"\n    \n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    data = {\n        contract_info: {\n            representative_last_name: '山田',\n            representative_last_name_kana: 'ヤマダ',\n            representative_first_name: '太郎',\n            representative_first_name_kana: 'タロウ',\n            representative_postal_code: '123-4567',\n            representative_prefecture: '東京都',\n            representative_prefecture_kana: 'トウキョウト',\n            representative_address_municipality: '渋谷区',\n            representative_address_municipality_kana: 'シブヤク',\n            representative_address_section: '道玄坂',\n            representative_address_section_kana: 'ドウゲンザカ',\n            representative_address_chrome: '1-2-3',\n            representative_address_chrome_kana: 'イチニサン',\n            representative_tel: '0312345678',\n            representative_birthday: '1998/11/01',\n            representative_gender: 0,\n            staff1_last_name: '鈴木',\n            staff1_last_name_kana: 'スズキ',\n            staff1_first_name: '次郎',\n            staff1_first_name_kana: 'ジロウ',\n            staff1_company_name: '株式会社テスト',\n            staff1_belongs: 'EC運営部',\n            staff1_tel: '08012345678',\n            staff1_mail: 'staff-1@example.com',\n            corporate: true,\n            corporate_info: {\n                corporate_number: '1234567890123',\n                corporate_name: '株式会社テスト',\n                corporate_name_kana: 'カブシキガイシャテスト',\n                company_postal_code: '123-4567',\n                company_prefecture: '東京都',\n                company_prefecture_kana: 'トウキョウト',\n                company_address_municipality: '渋谷区',\n                company_address_municipality_kana: 'シブヤク',\n                company_address_section: '道玄坂',\n                company_address_section_kana: 'ドウゲンザカ',\n                company_address_chrome: '1-2-3',\n                company_address_chrome_kana: 'イチニサン',\n                company_tel: '0312345678',\n                capital: 1000000,\n                established_at: '2018/11/01',\n                yearly_sales: 100000000,\n                business_details: '○○の販売'\n            }\n        }\n    }\n\n    # リクエストの作成\n    request = Net::HTTP::Put.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n    request['Content-Type'] = 'application/json'\n    request['Tenant-Shop-Id'] = tenant_shop_id\n\n    request.body = data.to_json\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/contracts/examinations/tenants/{id}/files": {
      "post": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "uploadExaminationFile",
        "tags": [
          "テナント申請管理"
        ],
        "summary": "テナントショップ 審査ファイルアップロード",
        "description": "`id`で指定したテナントショップの審査に必要なファイルのアップロードを行います。\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "指定したテナントショップのものとしてファイルをアップロードします。`Tenant-Shop-Id`ヘッダーも併せて指定してください。\n",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "required": true
          },
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": true,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\n指定したテナントショップのものとしてファイルをアップロードします。\n"
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/ExaminationFile.Uploading.Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExaminationFile.Uploading.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X POST \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: multipart/form-data\" \\\n    -H \"Tenant-Shop-Id: <Tenant Shop ID>\" \\\n    -F \"data=@<Path To File>;type=application/json;filename=\\\"<File Name>\\\"\" \\\n    -F \"type=DRIVER_LICENSE_FRONT\"\n'https://api.test.fincode.jp/v1/contracts/examinations/tenants/{Tenant Shop ID}/files'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import fetch from \"node-fetch\";\nimport FormData from \"form-data\";\nimport * as fs from \"fs\";\n\nconst BASE_URL = \"https://api.test.fincode.jp\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const tenantShopId = \"<Tenant Shop ID>\";\n\n    const endpoint = `${BASE_URL}/v1/contracts/examinations/tenants/${tenantShopId}/files`;\n\n    const form = new FormData();\n\n    // ファイル種別を指定（例として SALES_LICENSE_1: 販売免許証1）\n    form.append(\"type\", \"SALES_LICENSE_1\");\n\n    // ファイルを指定\n    const filePath = \"<Path to File>\";\n    const fileName = \"<File Name>\";\n    const file = fs.createReadStream(filePath);\n    form.append(\"data\", file, fileName);\n\n    const response = await fetch(endpoint, {\n        method: \"POST\",\n        headers: {\n            Authorization: `Bearer ${API_KEY}`,\n            \"Content-Type\": `multipart/form-data; boundary=${form._boundary}`,\n            \"Tenant-Shop-Id\": tenantShopId,\n        },\n        body: form,\n    });\n    const result = await response.json();\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"fmt\"\n\t\"io\"\n\t\"log\"\n\t\"mime/multipart\"\n\t\"net/http\"\n\t\"os\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\ttenantShopID := \"<Tenant Shop ID>\"\n\n\t// ファイルの読み込み\n\tfilePath := \"<Path To File>\"\n\tfileName := \"<File Name>\"\n\tfile, err := os.Open(filePath)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer file.Close()\n\n\t// バッファの作成\n\tbody := &bytes.Buffer{}\n\twriter := multipart.NewWriter(body)\n\n\t// ファイルの書き込み\n\tpart, err := writer.CreateFormFile(\"data\", fileName)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\t_, err = io.Copy(part, file)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\t// 追加情報（ファイル種別）の書き込み\n\t_ = writer.WriteField(\"type\", \"DRIVER_LICENSE_FRONT\")\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\"POST\", fmt.Sprintf(\"https://api.test.fincode.jp/v1/contracts/examinations/tenants/%s/files\", tenantShopID), body)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\treq.Header.Set(\"Content-Type\", writer.FormDataContentType())\n\treq.Header.Set(\"Tenant-Shop-Id\", tenantShopID)\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$tenantShopId = '<Tenant Shop ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/contracts/examinations/tenants/{$tenantShopId}/files\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$filePath = '<Path to file>';\n$fileName = '<File Name>';\n\n// 販売免許等1 をアップロードする場合\n$fields = [\n    \"data\" => new CURLFile($filePath, null, $fileName),\n    \"type\" => 'SALES_LICENSE_1',\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_POST, true);\ncurl_setopt($session, CURLOPT_POSTFIELDS, $fields);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\ndef main():\n    api_key = '<Secret API Key>'\n\n    tenant_shop_id = '<Tenant Shop ID>'\n\n    file_path = '<Path to file>'\n    file_name = '<File Name>'\n\n    with open(file_path, 'rb') as file:\n        files = {'data': (file_name, file)}\n\n        # 追加情報（ファイル種別）の指定\n        payload = {'type': 'DRIVER_LICENSE_FRONT'}\n\n        url = f'https://api.test.fincode.jp/v1/contracts/examinations/tenants/{tenant_shop_id}/files'\n\n        # ヘッダーを設定\n        headers = {\n            'Authorization': f'Bearer {api_key}',\n            'Tenant-Shop-Id': tenant_shop_id,\n        }\n\n        # HTTP POSTリクエストの送信\n        try:\n            response = requests.post(url, headers=headers, files=files, data=payload)\n\n            # レスポンスの処理\n            if response.status_code == 200:\n                # 成功した場合の処理\n                print(f\"Success: {response.json()}\")\n            else:\n                # エラーの処理\n                print(f\"Error: {response.json()} {response.text}\")\n        except requests.RequestException as e:\n            # 通信エラーの処理\n            print(f\"Request error: {e}\")\n\nif __name__ == '__main__':\n    main()\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'mime/types'\n\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    tenant_shop_id = '<Tenant Shop ID>'\n    endpoint = \"/v1/contracts/examinations/tenants/#{tenant_shop_id}/files\"\n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    file_path = '<Path to file>'\n    file_name = '<File Name>'\n    \n    file = File.open(file_path, 'rb')\n    file_data = file.read\n    file.close\n\n    # リクエストの作成\n    request = Net::HTTP::Post.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n    request['Tenant-Shop-Id'] = tenant_shop_id\n\n    # ファイルと追加情報をマルチパートフォームデータに追加\n    boundary = '----MpbMultipartRequest'\n    body = []\n    insert_file_to_body(body, boundary, 'data', file_name, file_data)\n    insert_data_to_body(body, boundary, 'type', \"DRIVER_LICENSE_FRONT\")\n    body << \"--#{boundary}--\\r\\n\"\n\n    request['Content-Type'] = \"multipart/form-data; boundary=#{boundary}\"\n    request.body = body.join('')\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\ndef insert_file_to_body(body, boundary, key, file_name, file_data)\n    body << \"--#{boundary}\\r\\n\"\n    body << \"Content-Disposition: form-data; name=\\\"#{key}\\\"; filename=\\\"#{file_name}\\\"\\r\\n\"\n    body << \"Content-Type: #{MIME::Types.type_for(file_name).first.content_type}\\r\\n\"\n    body << \"\\r\\n\"\n    body << file_data\n    body << \"\\r\\n\"\nend\n\ndef insert_data_to_body(body, boundary, key, value)\n    body << \"--#{boundary}\\r\\n\"\n    body << \"Content-Disposition: form-data; name=\\\"#{key}\\\"\\r\\n\"\n    body << \"\\r\\n\"\n    body << value\n    body << \"\\r\\n\"\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/contracts/examinations": {
      "post": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "requestProductionEnvironment",
        "tags": [
          "テナント申請管理"
        ],
        "summary": "テナントショップ 本番環境申請",
        "description": "`id`で指定したテナントショップの本番環境の利用申請を行います。このAPIを呼び出すまでにテナント本番環境申請情報 更新APIで申請情報を用意しておく必要があります。\n",
        "parameters": [
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": true,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\n指定したテナントショップのものとしてファイルをアップロードします。\n"
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/POST.ContractsExaminations.Request.business_operator"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/POST.ContractsExaminations.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X POST \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n    -H \"Tenant-Shop-Id: <Tenant Shop ID>\" \\\n    -d '{\n    \"shop_id\": \"<Tenant Shop ID>\",\n    \"enable_immediate_use\": true,\n}' \\\n'https://api.test.fincode.jp/v1/contracts/examinations'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    const tenantShopId = \"<Tenant Shop ID>\";\n\n    try {\n        // リクエストの送信\n        const result = await fincode.tenants.requestExamination(\n            {\n                shop_id: tenantShopId,\n                enable_immediate_use: false,\n            },\n            { tenantShopId: tenantShopId }\n        );\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\ttenantShopID := \"<Tenant Shop ID>\"\n\n\tbody := RequestExaminationRequestBody{\n\t\tShopID:             \"<Shop ID>\",\n\t\tEnableImmediateUse: false,\n\t}\n\n\tmarshalledBody, _ := json.Marshal(body)\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\"POST\", \"https://api.test.fincode.jp/v1/contracts/examinations\", bytes.NewBuffer(marshalledBody))\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\treq.Header.Set(\"Tenant-Shop-Id\", tenantShopID)\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n\ntype RequestExaminationRequestBody struct {\n\tShopID             string `json:\"shop_id\"`\n\tEnableImmediateUse bool   `json:\"enable_immediate_use\"`\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$tenantShopId = '<Tenant Shop ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/contracts/examinations\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: application/json\",\n    \"Tenant-Shop-Id: \" . $tenantShopId,\n];\n\n$data = json_encode([\n    \"shop_id\" => \"s_***********\",\n    \"enable_immediate_use\" => true,\n]);\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_POST, true);\ncurl_setopt($session, CURLOPT_POSTFIELDS, $data);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\nurl = f'https://api.test.fincode.jp/v1/contracts/examinations'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\ndata = {\n    \"shop_id\": \"<Tenant Shop ID>\",\n    \"enable_immediate_use\": True,\n}\n\n# HTTP POSTリクエストの送信\ntry:\n    response = requests.post(url, headers=headers, json=data)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # 成功した場合の処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    tenant_shop_id = '<Tenant Shop ID>'\n\n    endpoint = \"/v1/contracts/examinations\"\n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    data = {\n        shop_id: tenant_shop_id,\n        enable_immediate_use: true,\n    }\n\n    # リクエストの作成\n    request = Net::HTTP::Post.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n    request['Content-Type'] = 'application/json'\n    request['Tenant-Shop-Id'] = tenant_shop_id\n\n    request.body = data.to_json\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/contracts/examinations/tenants/{id}/providers/reserve": {
      "post": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "reserveProvider",
        "tags": [
          "テナント申請管理"
        ],
        "summary": "テナントショップ 決済手段追加申請",
        "description": "`id`で指定したテナントショップの決済手段の追加申請を行います。  \n※ 申請状況の管理画面への反映には最大24時間程度のタイムラグがあります\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "指定したテナントショップに対して決済手段を追加申請します。`Tenant-Shop-Id`ヘッダーも併せて指定してください。\n",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "required": true
          },
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": true,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\n指定したテナントショップに対して決済手段を追加申請します。\n"
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/POST.ProviderReserve.Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/POST.ProviderReserve.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X POST \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n    -H \"Tenant-Shop-Id: <Tenant Shop ID>\" \\\n    -d '{\n    \"provider\": [\"PAYPAY\"]\n}' \\\n'https://api.test.fincode.jp/v1/contracts/examinations/tenants/{Tenant Shop ID}/providers/reserve'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import fetch from \"node-fetch\";\n\nconst BASE_URL = \"https://api.test.fincode.jp\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const tenantShopId = \"<Tenant Shop ID>\";\n\n    const endpoint = `${BASE_URL}/v1/contracts/examinations/tenants/${tenantShopId}/providers/reserve`;\n\n    const response = await fetch(endpoint, {\n        method: \"POST\",\n        headers: {\n            Authorization: `Bearer ${API_KEY}`,\n            \"Content-Type\": \"application/json\",\n            \"Tenant-Shop-Id\": tenantShopId,\n        },\n        body: JSON.stringify({\n            provider: [\"PAYSLE\", \"PAYPAY\"],\n        }),\n    });\n    const reservingResult = await response.json();\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\ttenantShopID := \"<Tenant Shop ID>\"\n\n\tbody := ReservingTenantProviderRequest{\n\t\tProvider: []Provider{\n\t\t\tPAYPAY,\n\t\t},\n\t}\n\n\tmarshalledBody, _ := json.Marshal(body)\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\"POST\", fmt.Sprintf(\"https://api.test.fincode.jp/v1/contracts/examinations/tenants/%s/providers/reserve\", tenantShopID), bytes.NewBuffer(marshalledBody))\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\treq.Header.Set(\"Tenant-Shop-Id\", tenantShopID)\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n\ntype ReservingTenantProviderRequest struct {\n\tProvider []Provider `json:\"provider\"`\n}\n\ntype Provider string\n\nconst (\n\tPAYSLE        Provider = \"PAYSLE\"\n\tPAYPAY        Provider = \"PAYPAY\"\n\tAPPLE_PAY_UC  Provider = \"APPLE_PAY_UC\"\n\tAPPLE_PAY_JCB_AMEX Provider = \"APPLE_PAY_JCB_AMEX\"\n\tDIRECT_DEBIT  Provider = \"DIRECT_DEBIT\"\n)\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$tenantShopId = '<Tenant Shop ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/contracts/examinations/tenants/{$tenantShopId}/providers/reserve\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: application/json\",\n    \"Tenant-Shop-Id: \" . $tenantShopId,\n];\n\n$data = json_encode([\n    \"provider\" => [\n        \"PAYSLE\",\n        \"PAYPAY\"\n    ]\n]);\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_POST, true);\ncurl_setopt($session, CURLOPT_POSTFIELDS, $data);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\ntenant_shop_id = '<Tenant Shop ID>'\n\nurl = f'https://api.test.fincode.jp/v1/contracts/examinations/tenants/{tenant_shop_id}/providers/reserve'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json',\n    'Tenant-Shop-Id': tenant_shop_id,\n}\n\ndata = {\n    'provider': [ \"PAYSLE\", \"PAYPAY\" ]\n}\n\n# HTTP POSTリクエストの送信\ntry:\n    response = requests.post(url, headers=headers, json=data)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # 成功した場合の処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    tenant_shop_id = '<Tenant Shop ID>'\n    endpoint = \"/v1/contracts/examinations/tenants/#{tenant_shop_id}/providers/reserve\"\n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    data = {\n        provider: [\"PAYSLE\", \"PAYPAY\"],\n    }\n\n    # リクエストの作成\n    request = Net::HTTP::Post.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n    request['Content-Type'] = 'application/json'\n    request['Tenant-Shop-Id'] = tenant_shop_id\n\n    request.body = data.to_json\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/contracts/{id}": {
      "get": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "retrieveTenantContract",
        "tags": [
          "テナント申請管理"
        ],
        "summary": "テナントショップ契約情報 取得",
        "description": "`id`で指定したテナントショップの契約情報を取得します。\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "指定したテナントショップの契約情報を取得します。`Tenant-Shop-Id`ヘッダーも併せて指定してください。\n",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "required": true
          },
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": true,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\n指定したテナントショップの契約情報を取得します。\n"
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Contracts.Retrieving.Response.business_operator"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X GET \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Tenant-Shop-Id: <Tenant Shop ID>\" \\\n'https://api.test.fincode.jp/v1/contracts/{Tenant Shop ID}'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    const tenantShopId = \"<Tenant Shop ID>\";\n\n    try {\n        // リクエストの送信\n        const contracts = await fincode.tenants.retrieveContract(tenantShopId, {\n            tenantShopId: tenantShopId,\n        });\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\ttenantShopID := \"<Tenant Shop ID>\"\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\"GET\", fmt.Sprintf(\"https://api.test.fincode.jp/v1/contracts/%s\", tenantShopID), nil)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\treq.Header.Set(\"Tenant-Shop-Id\", tenantShopID)\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$tenantShopId = '<Tenant Shop ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/contracts/{$tenantShopId}\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_HTTPGET, true);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\ntenant_shop_id = '<Tenant Shop ID>'\n\nurl = f'https://api.test.fincode.jp/v1/contracts/{tenant_shop_id}'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Tenant-Shop-Id': tenant_shop_id,\n}\n\ntry:\n    response = requests.get(url, headers=headers)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # APIからのデータを処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    tenant_shop_id = '<Tenant Shop ID>'\n    endpoint = \"/v1/contracts/#{tenant_shop_id}\"\n\n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Get.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n    request['Tenant-Shop-Id'] = tenant_shop_id\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/change_requests": {
      "post": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "registerChangeRequest",
        "tags": [
          "テナント申請管理"
        ],
        "summary": "テナントショップ 変更申請 登録",
        "description": "変更申請を登録します。\n",
        "parameters": [
          {
            "name": "Tenant-Shop-Id",
            "in": "header",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\n代理実行対象のテナントショップID。\n"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChangeRequest.Registering.Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChangeRequest.Registering.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        }
      }
    },
    "/v1/change_requests/{shopId}": {
      "get": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "retrieveChangeRequest",
        "tags": [
          "テナント申請管理"
        ],
        "summary": "テナントショップ 変更申請 取得",
        "description": "変更申請を取得します。\n",
        "parameters": [
          {
            "name": "shopId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "対象テナントショップのショップID\n"
          },
          {
            "name": "Tenant-Shop-Id",
            "in": "header",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\n代理実行対象のテナントショップID。\n"
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChangeRequest.Retrieving.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        }
      }
    },
    "/v1/company_stamps": {
      "post": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "createCompanyStamp",
        "tags": [
          "社印"
        ],
        "summary": "社印 登録",
        "description": "社印を登録します。\n",
        "parameters": [
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\n指定したテナントショップに社印を登録します。\n"
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CompanyStamp.Creating.Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyStamp.Creating.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X POST \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: multipart/form-data\" \\\n    -F \"data=@/path/to/your/company_stamp.png\" \\\n    'https://api.test.fincode.jp/v1/company_stamps'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import fetch from \"node-fetch\";\nimport FormData from \"form-data\";\nimport fs from \"fs\";\n\nconst BASE_URL = \"https://api.test.fincode.jp\";\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const endpoint = `${BASE_URL}/v1/company_stamps`;\n\n    const form = new FormData();\n    form.append(\"data\", fs.createReadStream(\"/path/to/your/company_stamp.png\"));\n\n    const response = await fetch(endpoint, {\n        method: \"POST\",\n        headers: {\n            Authorization: `Bearer ${API_KEY}`,\n            ...form.getHeaders(),\n        },\n        body: form,\n    });\n\n    if (!response.ok) {\n        console.error(`Error: ${response.statusText}`);\n        return;\n    }\n\n    const data = await response.json();\n    console.log(data);\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"fmt\"\n\t\"io\"\n\t\"log\"\n\t\"mime/multipart\"\n\t\"net/http\"\n\t\"os\"\n)\n\nfunc main() {\n\tapiKey := \"<Secret API Key>\"\n\n\tbody := &bytes.Buffer{}\n\twriter := multipart.NewWriter(body)\n\n\tfile, err := os.Open(\"/path/to/your/company_stamp.png\")\n\tif err != nil {\n\t\tlog.Fatalf(\"ファイルオープンエラー: %v\", err)\n\t}\n\tdefer file.Close()\n\n\tpart, err := writer.CreateFormFile(\"data\", \"company_stamp.png\")\n\tif err != nil {\n\t\tlog.Fatalf(\"マルチパート作成エラー: %v\", err)\n\t}\n\tio.Copy(part, file)\n\twriter.Close()\n\n\turl := \"https://api.test.fincode.jp/v1/company_stamps\"\n\treq, err := http.NewRequest(\"POST\", url, body)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエスト作成エラー: %v\", err)\n\t}\n\treq.Header.Set(\"Authorization\", \"Bearer \"+apiKey)\n\treq.Header.Set(\"Content-Type\", writer.FormDataContentType())\n\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエスト送信エラー: %v\", err)\n\t}\n\tdefer resp.Body.Close()\n\n\trespBody, _ := io.ReadAll(resp.Body)\n\tfmt.Println(string(respBody))\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/company_stamps\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: multipart/form-data\"\n];\n\n$data = [\n    'data' => new CURLFile('/path/to/your/company_stamp.png')\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_POST, true);\ncurl_setopt($session, CURLOPT_POSTFIELDS, $data);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n\n$response = curl_exec($session);\nif ($response === false) {\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    var_dump($response);\n}\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\nurl = 'https://api.test.fincode.jp/v1/company_stamps'\n\nheaders = {\n    'Authorization': f'Bearer {api_key}'\n}\n\nwith open('/path/to/your/company_stamp.png', 'rb') as f:\n    files = {'data': f}\n    try:\n        response = requests.post(url, headers=headers, files=files)\n        if response.status_code == 200:\n            print(f\"Success: {response.json()}\")\n        else:\n            print(f\"Error: {response.json()}\")\n    except requests.RequestException as e:\n        print(f\"通信エラー: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n  endpoint = '/v1/company_stamps'\n  uri = URI.parse(BASE_URL + endpoint)\n\n  http = Net::HTTP.new(uri.host, uri.port)\n  http.use_ssl = true\n\n  boundary = \"---011000010111000001101001\"\n  body = \"\"\n  File.open('/path/to/your/company_stamp.png', 'rb') do |file|\n    body += \"--#{boundary}\\r\\n\"\n    body += \"Content-Disposition: form-data; name=\\\"data\\\"; filename=\\\"company_stamp.png\\\"\\r\\n\"\n    body += \"Content-Type: image/png\\r\\n\\r\\n\"\n    body += file.read\n    body += \"\\r\\n--#{boundary}--\\r\\n\"\n  end\n\n  request = Net::HTTP::Post.new(uri.request_uri)\n  request['Authorization'] = \"Bearer #{API_KEY}\"\n  request['Content-Type'] = \"multipart/form-data; boundary=#{boundary}\"\n  request.body = body\n\n  response = http.request(request)\n  puts response.body\nend\n\nmain\n"
          }
        ]
      },
      "get": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "retrieveCompanyStamp",
        "tags": [
          "社印"
        ],
        "summary": "社印 取得",
        "description": "登録されている社印の情報を取得します。\n",
        "parameters": [
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\n指定したテナントショップの社印情報を取得します。\n"
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyStamp.Retrieving.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X GET \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n    'https://api.test.fincode.jp/v1/company_stamps'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import fetch from \"node-fetch\";\n\nconst BASE_URL = \"https://api.test.fincode.jp\";\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const endpoint = `${BASE_URL}/v1/company_stamps`;\n\n    const response = await fetch(endpoint, {\n        method: \"GET\",\n        headers: {\n            Authorization: `Bearer ${API_KEY}`,\n            \"Content-Type\": \"application/json\",\n        },\n    });\n\n    if (!response.ok) {\n        console.error(`Error: ${response.statusText}`);\n        return;\n    }\n\n    const data = await response.json();\n    console.log(data);\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tapiKey := \"<Secret API Key>\"\n\n\turl := \"https://api.test.fincode.jp/v1/company_stamps\"\n\n\treq, err := http.NewRequest(\"GET\", url, nil)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエスト作成エラー: %v\", err)\n\t}\n\treq.Header.Set(\"Authorization\", \"Bearer \"+apiKey)\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエスト送信エラー: %v\", err)\n\t}\n\tdefer resp.Body.Close()\n\n\trespBody, _ := io.ReadAll(resp.Body)\n\tfmt.Println(string(respBody))\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/company_stamps\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: application/json\"\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n\n$response = curl_exec($session);\nif ($response === false) {\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    var_dump($response);\n}\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\nurl = 'https://api.test.fincode.jp/v1/company_stamps'\n\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\ntry:\n    response = requests.get(url, headers=headers)\n    if response.status_code == 200:\n        print(f\"Success: {response.json()}\")\n    else:\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    print(f\"通信エラー: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n  endpoint = '/v1/company_stamps'\n  uri = URI.parse(BASE_URL + endpoint)\n\n  http = Net::HTTP.new(uri.host, uri.port)\n  http.use_ssl = true\n\n  request = Net::HTTP::Get.new(uri.request_uri)\n  request['Authorization'] = \"Bearer #{API_KEY}\"\n  request['Content-Type'] = 'application/json'\n\n  response = http.request(request)\n  puts response.body\nend\n\nmain\n"
          }
        ]
      },
      "delete": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "deleteCompanyStamp",
        "tags": [
          "社印"
        ],
        "summary": "社印 削除",
        "description": "登録されている社印を削除します。\n",
        "parameters": [
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\n指定したテナントショップの社印を削除します。\n"
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyStamp.Deleting.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X DELETE \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n    'https://api.test.fincode.jp/v1/company_stamps'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import fetch from \"node-fetch\";\n\nconst BASE_URL = \"https://api.test.fincode.jp\";\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const endpoint = `${BASE_URL}/v1/company_stamps`;\n\n    const response = await fetch(endpoint, {\n        method: \"DELETE\",\n        headers: {\n            Authorization: `Bearer ${API_KEY}`,\n            \"Content-Type\": \"application/json\",\n        },\n    });\n\n    if (!response.ok) {\n        console.error(`Error: ${response.statusText}`);\n        return;\n    }\n\n    const data = await response.json();\n    console.log(data);\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"io\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tapiKey := \"<Secret API Key>\"\n\n\turl := \"https://api.test.fincode.jp/v1/company_stamps\"\n\n\treq, err := http.NewRequest(\"DELETE\", url, nil)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエスト作成エラー: %v\", err)\n\t}\n\treq.Header.Set(\"Authorization\", \"Bearer \"+apiKey)\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tlog.Fatalf(\"リクエスト送信エラー: %v\", err)\n\t}\n\tdefer resp.Body.Close()\n\n\trespBody, _ := io.ReadAll(resp.Body)\n\tfmt.Println(string(respBody))\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/company_stamps\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: application/json\"\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, \"DELETE\");\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n\n$response = curl_exec($session);\nif ($response === false) {\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    var_dump($response);\n}\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\nurl = 'https://api.test.fincode.jp/v1/company_stamps'\n\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\ntry:\n    response = requests.delete(url, headers=headers)\n    if response.status_code == 200:\n        print(f\"Success: {response.json()}\")\n    else:\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    print(f\"通信エラー: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n  endpoint = '/v1/company_stamps'\n  uri = URI.parse(BASE_URL + endpoint)\n\n  http = Net::HTTP.new(uri.host, uri.port)\n  http.use_ssl = true\n\n  request = Net::HTTP::Delete.new(uri.request_uri)\n  request['Authorization'] = \"Bearer #{API_KEY}\"\n  request['Content-Type'] = 'application/json'\n\n  response = http.request(request)\n  puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/webhook_settings": {
      "post": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "createWebhookSetting",
        "tags": [
          "Webhook設定"
        ],
        "summary": "Webhook設定 登録",
        "parameters": [
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\n指定したテナントショップ上で発生したイベントを購読するWebhook設定を登録します。\n"
          }
        ],
        "description": "Webhook設定を登録します。\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookSetting.Creating.Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookSetting.Creating.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X POST \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\n    \"event\": \"payments.card.secure\",\n    \"url\": \"https://your-service.example.com/webhook-receiver\",\n}' \\\n'https://api.test.fincode.jp/v1/webhook_settings'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    try {\n        // リクエストの送信\n        const webhookSetting = await fincode.webhookSettings.create({\n            url: \"https://your-service.example.com/webhook-receiver\",\n            event: \"payments.card.secure\",\n            signature: \"WEBHOOK_FROM_MPB\",\n        });\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\tbody := CreatingWebhookSettingRequest{\n\t\tURL:       stringPointer(\"https://your-service.example.com/webhook-receiver\"),\n\t\tEvent:     stringPointer(\"payments.card.secure\"),\n\t\tSignature: stringPointer(\"WEBHOOK_FROM_MPB\"),\n\t}\n\n\tmarshalledBody, _ := json.Marshal(body)\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\"POST\", \"https://api.test.fincode.jp/v1/webhook_settings\", bytes.NewBuffer(marshalledBody))\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n\ntype CreatingWebhookSettingRequest struct {\n\tID        *string `json:\"id\"`\n\tURL       *string `json:\"url\"`\n\tEvent     *string `json:\"event\"`\n\tSignature *string `json:\"signature\"`\n}\n\nfunc stringPointer(s string) *string {\n\treturn &s\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/webhook_settings\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n    \"Content-Type: application/json\"\n];\n\n$data = json_encode([\n    \"url\" => \"https://your-service.example.com/webhook-receiver\",\n    \"event\" => \"payments.card.secure\",\n    \"signature\" => \"WEBHOOK_FROM_MPB\"\n]);\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_POST, true);\ncurl_setopt($session, CURLOPT_POSTFIELDS, $data);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\nurl = f'https://api.test.fincode.jp/v1/webhook_settings'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\ndata = {\n    \"event\": \"payments.card.secure\",\n    \"url\": \"https://your-service.example.com/webhook-receiver\",\n    \"signature\": \"WEBHOOK_FROM_MPB\"\n}\n\n# HTTP POSTリクエストの送信\ntry:\n    response = requests.post(url, headers=headers, json=data)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # 成功した場合の処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    endpoint = \"/v1/webhook_settings\"\n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    data = {\n        event: \"payments.card.secure\",\n        url: \"https://your-service.example.com/webhook-receiver\",\n        signature: \"WEBHOOK_FROM_MPB\"\n    }\n\n    # リクエストの作成\n    request = Net::HTTP::Post.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n    request['Content-Type'] = 'application/json'\n\n    request.body = data.to_json\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      },
      "get": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "retrieveWebhookSettingList",
        "tags": [
          "Webhook設定"
        ],
        "summary": "Webhook設定 一覧取得",
        "description": "Webhook設定を一覧で取得します。\n",
        "parameters": [
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\nこのテナントショップに紐づくWebhook設定から一覧で取得します。\n"
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookSetting.ListRetrieving.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X GET \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n'https://api.test.fincode.jp/v1/webhook_settings'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    try {\n        // リクエストの送信\n        const webhookSettings = await fincode.webhookSettings.retrieveList();\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\"GET\", \"https://api.test.fincode.jp/v1/webhook_settings\", nil)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\n\tparams := req.URL.Query()\n\tparams.Add(\"limit\", \"10\")\n\treq.URL.RawQuery = params.Encode()\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/webhook_settings\";\n\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_HTTPGET, true);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\nurl = f'https://api.test.fincode.jp/v1/webhook_settings'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n}\n\ntry:\n    response = requests.get(url, headers=headers)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # APIからのデータを処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    endpoint = \"/v1/webhook_settings\"\n\n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Get.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/v1/webhook_settings/{id}": {
      "get": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "retrieveWebhookSetting",
        "tags": [
          "Webhook設定"
        ],
        "summary": "Webhook設定 取得",
        "description": "IDで指定したWebhook設定を取得します。\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Webhook設定のID",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/WebhookSettingId_schema"
                }
              ]
            },
            "required": true
          },
          {
            "name": "Tenant-Shop-Id",
            "in": "header",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\nこのテナントショップに紐づくWebhook設定のうち、指定したIDのWebhook設定を取得します。\n",
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookSetting.Retrieving.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X GET \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n'https://api.test.fincode.jp/v1/webhook_settings/{id}'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    const webhookSettingId = \"<Webhook Setting ID>\";\n\n    try {\n        // リクエストの送信\n        const webhookSetting = await fincode.webhookSettings.retrieve(\n            webhookSettingId\n        );\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\twebhookSettingID := \"<Webhook Setting ID>\"\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\n\t\t\"GET\",\n\t\tfmt.Sprintf(\"https://api.test.fincode.jp/v1/webhook_settings/%s\", webhookSettingID),\n\t\tnil,\n\t)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$webhookSettingId = '<Webhook Setting ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/webhook_settings/{$webhookSettingId}\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_HTTPGET, true);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\nwebhook_setting_id = '<Webhook Setting ID>'\n\nurl = f'https://api.test.fincode.jp/v1/webhook_settings/{webhook_setting_id}'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n}\n\ntry:\n    response = requests.get(url, headers=headers)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # APIからのデータを処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    webhook_setting_id = '<Webhook Setting ID>'\n    endpoint = \"/v1/webhook_settings/#{webhook_setting_id}\"\n\n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Get.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      },
      "put": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "updateWebhookSetting",
        "tags": [
          "Webhook設定"
        ],
        "summary": "Webhook設定 更新",
        "description": "IDで指定したWebhook設定を更新します。\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Webhook設定のID",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/WebhookSettingId_schema"
                }
              ]
            },
            "required": true
          },
          {
            "in": "header",
            "name": "Tenant-Shop-Id",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\nこのテナントショップに紐づくWebhook設定のうち、指定したIDのWebhook設定を更新します。\n"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookSetting.Updating.Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookSetting.Updating.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X PUT \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\n    \"signature\": \"WEBHOOK_FROM_MPB\"\n}' \\\n'https://api.test.fincode.jp/v1/webhook_settings/{id}'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    const webhookSettingId = \"<Webhook Setting ID>\";\n\n    try {\n        // リクエストの送信\n        const webhookSetting = await fincode.webhookSettings.update(\n            webhookSettingId,\n            {\n                url: \"https://your-service.example.com/v2/webhook-receiver\",\n            }\n        );\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\twebhookSettingID := \"<Webhook Setting ID>\"\n\n\tbody := UpdatingWebhookSettingRequest{\n\t\tURL: stringPointer(\"https://your-service.example.com/v2/webhook-receiver\"),\n\t}\n\n\tmarshalledBody, _ := json.Marshal(body)\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\n\t\t\"PUT\",\n\t\tfmt.Sprintf(\"https://api.test.fincode.jp/v1/webhook_settings/%s\", webhookSettingID),\n\t\tbytes.NewBuffer(marshalledBody),\n\t)\n\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n\n}\n\ntype UpdatingWebhookSettingRequest struct {\n\tURL       *string `json:\"url\"`\n\tEvent     *string `json:\"event\"`\n\tSignature *string `json:\"signature\"`\n}\n\nfunc stringPointer(s string) *string {\n\treturn &s\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$webhookSettingId = '<Webhook Setting ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/webhook_settings/{$webhookSettingId}\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$data = json_encode([\n    \"url\" => \"https://your-service.example.com/v2/webhook-receiver\",\n]);\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, 'PUT');\ncurl_setopt($session, CURLOPT_POSTFIELDS, $data);\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\nwebhook_setting_id = '<Webhook Setting ID>'\n\nurl = f'https://api.test.fincode.jp/v1/webhook_settings/{webhook_setting_id}'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n    'Content-Type': 'application/json'\n}\n\ndata = {\n    \"signature\": \"WEBHOOK_FROM_MPB\"\n}\n\n# HTTP POSTリクエストの送信\ntry:\n    response = requests.put(url, headers=headers, json=data)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # 成功した場合の処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\nrequire 'json'\n\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    webhook_setting_id = '<Webhook Setting ID>'\n    endpoint = \"/v1/webhook_settings/#{webhook_setting_id}\"\n    \n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    data = {\n        signature: \"WEBHOOK_FROM_MPB\"\n    }\n\n    # リクエストの作成\n    request = Net::HTTP::Put.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n    request['Content-Type'] = 'application/json'\n\n    request.body = data.to_json\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      },
      "delete": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "deleteWebhookSetting",
        "tags": [
          "Webhook設定"
        ],
        "summary": "Webhook設定 削除",
        "description": "IDで指定したWebhook設定を削除します。\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Webhook設定のID",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/WebhookSettingId_schema"
                }
              ]
            },
            "required": true
          },
          {
            "name": "Tenant-Shop-Id",
            "in": "header",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/schema"
                }
              ]
            },
            "description": "<span class=\"smallText color--red-400\">※ プラットフォームのメインショップのみ指定可</span>\\\nテナントショップID。\\\nこのテナントショップに紐づくWebhook設定のうち、指定したIDのWebhook設定を削除します。\n"
          }
        ],
        "responses": {
          "200": {
            "description": "リクエストに成功",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookSetting.Deleting.Response"
                }
              }
            }
          },
          "400": {
            "description": "不正なリクエスト",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FincodeAPIError.Response"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "curl",
            "label": "cURL",
            "source": "curl \\\n    -X DELETE \\\n    -H \"Authorization:Bearer <Secret API Key>\" \\\n'https://api.test.fincode.jp/v1/webhook_settings/{id}'\n"
          },
          {
            "lang": "node",
            "label": "Node.js",
            "source": "import { createFincode } from \"@fincode/node\";\n\nconst API_KEY = \"<Secret API Key>\";\n\n(async () => {\n    const fincode = createFincode({ apiKey: API_KEY, isLiveMode: false });\n\n    const webhookSettingId = \"<Webhook Setting ID>\";\n\n    try {\n        // リクエストの送信\n        const result = await fincode.webhookSettings.delete(webhookSettingId);\n    } catch (e) {\n        // エラーの処理\n    }\n})();\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\n\tapiKey := \"<Secret API Key>\"\n\n\twebhookSettingID := \"<Webhook Setting ID>\"\n\n\t// リクエストの作成\n\treq, _ := http.NewRequest(\n\t\t\"DELETE\",\n\t\tfmt.Sprintf(\"https://api.test.fincode.jp/v1/webhook_settings/%s\", webhookSettingID),\n\t\tnil,\n\t)\n\treq.Header.Set(\"Authorization\", fmt.Sprintf(\"Bearer %s\", apiKey))\n\n\t// リクエストの送信\n\tclient := &http.Client{}\n\tres, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer res.Body.Close()\n}\n"
          },
          {
            "lang": "php",
            "label": "PHP",
            "source": "<?php\n\n$apiKey = '<Secret API Key>';\n\n$webhookSettingId = '<Webhook Setting ID>';\n\n$baseUrl = \"https://api.test.fincode.jp\";\n$endpoint = \"/v1/webhook_settings/{$webhookSettingId}\";\n$headers = [\n    \"Authorization: Bearer \" . $apiKey,\n];\n\n$session = curl_init();\ncurl_setopt($session, CURLOPT_URL, $baseUrl . $endpoint);\ncurl_setopt($session, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($session, CURLOPT_CUSTOMREQUEST, 'DELETE');\ncurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n// curl_setopt($session, CURLOPT_SSL_VERIFYPEER, );\n// curl_setopt($session, CURLOPT_SSL_VERIFYHOST, );\n\n$response = curl_exec($session);\n\nif ($response === false) {\n    # エラー処理\n    echo \"cURL Error: \" . curl_error($session);\n} else {\n    # APIからのデータを処理\n    var_dump($response);\n}\n\ncurl_close($session);\n"
          },
          {
            "lang": "python",
            "label": "Python 3",
            "source": "import requests\n\napi_key = '<Secret API Key>'\n\nwebhook_setting_id = '<Webhook Setting ID>'\n\nurl = f'https://api.test.fincode.jp/v1/webhook_settings/{webhook_setting_id}'\n\n# ヘッダーを設定\nheaders = {\n    'Authorization': f'Bearer {api_key}',\n}\n\ntry:\n    response = requests.delete(url, headers=headers)\n\n    # レスポンスの処理\n    if response.status_code == 200:\n        # APIからのデータを処理\n        print(f\"Success: {response.json()}\")\n    else:\n        # エラーの処理\n        print(f\"Error: {response.json()}\")\nexcept requests.RequestException as e:\n    # 通信エラーの処理\n    print(f\"Request error: {e}\")\n"
          },
          {
            "lang": "ruby",
            "label": "Ruby",
            "source": "require 'net/http'\nrequire 'uri'\n\nAPI_KEY = '<Secret API Key>'\nBASE_URL = 'https://api.test.fincode.jp'\n\ndef main\n    webhook_setting_id = '<Webhook Setting ID>'\n    endpoint = \"/v1/webhook_settings/#{webhook_setting_id}\"\n\n    uri = URI.parse(BASE_URL + endpoint)\n\n    http = Net::HTTP.new(uri.host, uri.port)\n    http.use_ssl = true\n\n    # リクエストの作成\n    request = Net::HTTP::Delete.new(uri.request_uri)\n    request['Authorization'] = \"Bearer #{API_KEY}\"\n\n    # リクエストの送信\n    response = http.request(request)\n\n    case response\n    when Net::HTTPSuccess\n        puts 'SUCCESS'\n    else\n        puts 'ERROR'\n    end\n\n    # レスポンスの表示\n    puts response.body\nend\n\nmain\n"
          }
        ]
      }
    },
    "/your-endpoint-on-card-payment": {
      "post": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "receiveWebhookOfCardPayment",
        "tags": [
          "Webhook_通知仕様"
        ],
        "summary": "カード決済",
        "description": "カード決済に関するイベント（`payments.card.*`）で通知されるリクエストのボディの仕様です。\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent.Payment.Card"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "M's PayBridgeに正常にWebhookを受信した旨をレスポンスしてください。\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookResponse"
                }
              },
              "text/plain": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/WebhookResponse-plain"
                    }
                  ]
                },
                "examples": {
                  "html": {
                    "value": 0
                  }
                }
              }
            }
          },
          "400": {
            "description": "4xx系、5xx系または上記以外のレスポンスを返却した場合、M's PayBridgeはエラーと判断しWebhook通知のリトライを行います。\n"
          }
        }
      }
    },
    "/your-endpoint-on-applepay-payment": {
      "post": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "receiveWebhookOfApplePayPayment",
        "tags": [
          "Webhook_通知仕様"
        ],
        "summary": "Apple Pay",
        "description": "Apple Payによる決済に関するイベント（`payments.applepay.*`）で通知されるリクエストのボディの仕様です。\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent.Payment.ApplePay"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "M's PayBridgeに正常にWebhookを受信した旨をレスポンスしてください。\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookResponse"
                }
              },
              "text/plain": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/WebhookResponse-plain"
                    }
                  ]
                },
                "examples": {
                  "html": {
                    "value": 0
                  }
                }
              }
            }
          },
          "400": {
            "description": "4xx系、5xx系または上記以外のレスポンスを返却した場合、M's PayBridgeはエラーと判断しWebhook通知のリトライを行います。\n"
          }
        }
      }
    },
    "/your-endpoint-on-googlepay-payment": {
      "post": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "receiveWebhookOfGooglePayPayment",
        "tags": [
          "Webhook_通知仕様"
        ],
        "summary": "GooglePay",
        "description": "GooglePayに関するイベント（`payments.googlepay.*`）で通知されるリクエストのボディの仕様です。\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent.Payment.GooglePay"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "M's PayBridgeに正常にWebhookを受信した旨をレスポンスしてください。\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookResponse"
                }
              },
              "text/plain": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/WebhookResponse-plain"
                    }
                  ]
                },
                "examples": {
                  "html": {
                    "value": 0
                  }
                }
              }
            }
          },
          "400": {
            "description": "4xx系、5xx系または上記以外のレスポンスを返却した場合、M's PayBridgeはエラーと判断しWebhook通知のリトライを行います。\n"
          }
        }
      }
    },
    "/your-endpoint-on-konbini-payment": {
      "post": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "receiveWebhookOfKonbiniPayment",
        "tags": [
          "Webhook_通知仕様"
        ],
        "summary": "コンビニ決済",
        "description": "コンビニ決済に関するイベント（`payments.konbini.*`）で通知されるリクエストのボディの仕様です。\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent.Payment.Konbini"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "M's PayBridgeに正常にWebhookを受信した旨をレスポンスしてください。\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookResponse"
                }
              },
              "text/plain": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/WebhookResponse-plain"
                    }
                  ]
                },
                "examples": {
                  "html": {
                    "value": 0
                  }
                }
              }
            }
          },
          "400": {
            "description": "4xx系、5xx系または上記以外のレスポンスを返却した場合、M's PayBridgeはエラーと判断しWebhook通知のリトライを行います。\n"
          }
        }
      }
    },
    "/your-endpoint-on-paypay-payment": {
      "post": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "receiveWebhookOfPayPayPayment",
        "tags": [
          "Webhook_通知仕様"
        ],
        "summary": "PayPay",
        "description": "PayPayによる決済に関するイベント（`payments.paypay.*`）で通知されるリクエストのボディの仕様です。\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent.Payment.PayPay"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "M's PayBridgeに正常にWebhookを受信した旨をレスポンスしてください。\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookResponse"
                }
              },
              "text/plain": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/WebhookResponse-plain"
                    }
                  ]
                },
                "examples": {
                  "html": {
                    "value": 0
                  }
                }
              }
            }
          },
          "400": {
            "description": "4xx系、5xx系または上記以外のレスポンスを返却した場合、M's PayBridgeはエラーと判断しWebhook通知のリトライを行います。\n"
          }
        }
      }
    },
    "/your-endpoint-on-directdebit-payment": {
      "post": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "receiveWebhookOfDirectDebitPayment",
        "tags": [
          "Webhook_通知仕様"
        ],
        "summary": "口座振替",
        "description": "口座振替に関するイベント（`payments.directdebit.*`）で通知されるリクエストのボディの仕様です。\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent.Payment.DirectDebit"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "M's PayBridgeに正常にWebhookを受信した旨をレスポンスしてください。\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookResponse"
                }
              },
              "text/plain": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/WebhookResponse-plain"
                    }
                  ]
                },
                "examples": {
                  "html": {
                    "value": 0
                  }
                }
              }
            }
          },
          "400": {
            "description": "4xx系、5xx系または上記以外のレスポンスを返却した場合、M's PayBridgeはエラーと判断しWebhook通知のリトライを行います。\n"
          }
        }
      }
    },
    "/your-endpoint-on-virtualaccount-payment": {
      "post": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "receiveWebhookOfVirtualAccountPayment",
        "tags": [
          "Webhook_通知仕様"
        ],
        "summary": "銀行振込（バーチャル口座）",
        "description": "銀行振込（バーチャル口座）による決済に関するイベント（`payments.virtualaccount.*`）で通知されるリクエストのボディの仕様です。\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent.Payment.VirtualAccount"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "M's PayBridgeに正常にWebhookを受信した旨をレスポンスしてください。\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookResponse"
                }
              },
              "text/plain": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/WebhookResponse-plain"
                    }
                  ]
                },
                "examples": {
                  "html": {
                    "value": 0
                  }
                }
              }
            }
          },
          "400": {
            "description": "4xx系、5xx系または上記以外のレスポンスを返却した場合、M's PayBridgeはエラーと判断しWebhook通知のリトライを行います。\n"
          }
        }
      }
    },
    "/your-endpoint-on-customer-payment_method": {
      "post": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "receiveWebhookOfCustomerPaymentMethod",
        "tags": [
          "Webhook_通知仕様"
        ],
        "summary": "決済手段",
        "description": "顧客の決済手段に関するイベント（`customers.payment_methods.*`）で通知されるリクエストのボディの仕様です。\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/WebhookEvent.CustomerPaymentMethodCard"
                      }
                    ],
                    "title": "カード"
                  },
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/WebhookEvent.CustomerPaymentMethodDirectDebit"
                      }
                    ],
                    "title": "口座振替"
                  },
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/WebhookEvent.CustomerPaymentMethodVirtualAccount"
                      }
                    ],
                    "title": "銀行振込（バーチャル口座）"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "M's PayBridgeに正常にWebhookを受信した旨をレスポンスしてください。\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookResponse"
                }
              },
              "text/plain": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/WebhookResponse-plain"
                    }
                  ]
                },
                "examples": {
                  "html": {
                    "value": 0
                  }
                }
              }
            }
          },
          "400": {
            "description": "4xx系、5xx系または上記以外のレスポンスを返却した場合、M's PayBridgeはエラーと判断しWebhook通知のリトライを行います。\n"
          }
        }
      }
    },
    "/your-endpoint-on-card": {
      "post": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "receiveWebhookOfCard",
        "tags": [
          "Webhook_通知仕様"
        ],
        "summary": "カード",
        "description": "カードに関するイベント（`card.*`）で通知されるリクエストのボディの仕様です。  \nカード更新機能（洗替）のイベント（`card.updater.complete`）はこちらではなく、`card.updater.complete`イベントの仕様である[カード：カード更新機能（洗替）](%7Byour-endpoint-on-card-updater-complete%7D.yml)をご参照ください。\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent.Card"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "M's PayBridgeに正常にWebhookを受信した旨をレスポンスしてください。\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookResponse"
                }
              },
              "text/plain": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/WebhookResponse-plain"
                    }
                  ]
                },
                "examples": {
                  "html": {
                    "value": 0
                  }
                }
              }
            }
          },
          "400": {
            "description": "4xx系、5xx系または上記以外のレスポンスを返却した場合、M's PayBridgeはエラーと判断しWebhook通知のリトライを行います。\n"
          }
        }
      }
    },
    "/your-endpoint-on-card-updater-complete": {
      "post": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "receiveWebhookOfCardUpdaterComplete",
        "tags": [
          "Webhook_通知仕様"
        ],
        "summary": "カード：カード更新機能（洗替）  ",
        "description": "カード更新機能（洗替）のイベント（`card.updater.complete`）で通知されるリクエストのボディの仕様です。\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent.CardUpdaterComplete"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "M's PayBridgeに正常にWebhookを受信した旨をレスポンスしてください。\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookResponse"
                }
              },
              "text/plain": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/WebhookResponse-plain"
                    }
                  ]
                },
                "examples": {
                  "html": {
                    "value": 0
                  }
                }
              }
            }
          },
          "400": {
            "description": "4xx系、5xx系または上記以外のレスポンスを返却した場合、M's PayBridgeはエラーと判断しWebhook通知のリトライを行います。\n"
          }
        }
      }
    },
    "/your-endpoint-on-card-subscription": {
      "post": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "receiveWebhookOfCardSubscription",
        "tags": [
          "Webhook_通知仕様"
        ],
        "summary": "サブスクリプション（カード決済）",
        "description": "カード決済によるサブスクリプションに関するイベント（`subscription.card.*`）で通知されるリクエストのボディの仕様です。\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent.Subscription.Card"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "M's PayBridgeに正常にWebhookを受信した旨をレスポンスしてください。\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookResponse"
                }
              },
              "text/plain": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/WebhookResponse-plain"
                    }
                  ]
                },
                "examples": {
                  "html": {
                    "value": 0
                  }
                }
              }
            }
          },
          "400": {
            "description": "4xx系、5xx系または上記以外のレスポンスを返却した場合、M's PayBridgeはエラーと判断しWebhook通知のリトライを行います。\n"
          }
        }
      }
    },
    "/your-endpoint-on-directdebit-subscription": {
      "post": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "receiveWebhookOfDirectDebitSubscription",
        "tags": [
          "Webhook_通知仕様"
        ],
        "summary": "サブスクリプション（口座振替）",
        "description": "口座振替によるサブスクリプションに関するイベント（`subscription.directdebit.*`）で通知されるリクエストのボディの仕様です。\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent.Subscription.DirectDebit"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "M's PayBridgeに正常にWebhookを受信した旨をレスポンスしてください。\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookResponse"
                }
              },
              "text/plain": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/WebhookResponse-plain"
                    }
                  ]
                },
                "examples": {
                  "html": {
                    "value": 0
                  }
                }
              }
            }
          },
          "400": {
            "description": "4xx系、5xx系または上記以外のレスポンスを返却した場合、M's PayBridgeはエラーと判断しWebhook通知のリトライを行います。\n"
          }
        }
      }
    },
    "/your-endpoint-on-card-recurring-batch": {
      "post": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "receiveWebhookOfCardRecurringBatch",
        "tags": [
          "Webhook_通知仕様"
        ],
        "summary": "サブスクリプション課金（カード決済）",
        "description": "カード決済によるサブスクリプション課金のイベント（`recurring.card.batch`）で通知されるリクエストのボディの仕様です。\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent.RecurringBatch.Card"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "M's PayBridgeに正常にWebhookを受信した旨をレスポンスしてください。\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookResponse"
                }
              },
              "text/plain": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/WebhookResponse-plain"
                    }
                  ]
                },
                "examples": {
                  "html": {
                    "value": 0
                  }
                }
              }
            }
          },
          "400": {
            "description": "4xx系、5xx系または上記以外のレスポンスを返却した場合、M's PayBridgeはエラーと判断しWebhook通知のリトライを行います。\n"
          }
        }
      }
    },
    "/your-endpoint-on-directdebit-recurring-batch": {
      "post": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "receiveWebhookOfDirectDebitRecurringBatch",
        "tags": [
          "Webhook_通知仕様"
        ],
        "summary": "サブスクリプション課金（口座振替）",
        "description": "口座振替によるサブスクリプション課金に関するイベント（`recurring.directdebit.batch`）で通知されるリクエストのボディの仕様です。\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent.RecurringBatch.DirectDebit"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "M's PayBridgeに正常にWebhookを受信した旨をレスポンスしてください。\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookResponse"
                }
              },
              "text/plain": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/WebhookResponse-plain"
                    }
                  ]
                },
                "examples": {
                  "html": {
                    "value": 0
                  }
                }
              }
            }
          },
          "400": {
            "description": "4xx系、5xx系または上記以外のレスポンスを返却した場合、M's PayBridgeはエラーと判断しWebhook通知のリトライを行います。\n"
          }
        }
      }
    },
    "/your-endpoint-on-card-payment-bulk-regist": {
      "post": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "receiveWebhookOfRegisteringPaymentBulk",
        "tags": [
          "Webhook_通知仕様"
        ],
        "summary": "一括決済",
        "description": "一括決済 登録イベント（`payments.bulk.*.regist`）で通知されるリクエストのボディの仕様です。\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent.PaymentBulk.Regist.Card"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "M's PayBridgeに正常にWebhookを受信した旨をレスポンスしてください。\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookResponse"
                }
              },
              "text/plain": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/WebhookResponse-plain"
                    }
                  ]
                },
                "examples": {
                  "html": {
                    "value": 0
                  }
                }
              }
            }
          },
          "400": {
            "description": "4xx系、5xx系または上記以外のレスポンスを返却した場合、M's PayBridgeはエラーと判断しWebhook通知のリトライを行います。\n"
          }
        }
      }
    },
    "/your-endpoint-on-card-payment-bulk-batch": {
      "post": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "receiveWebhookOfPaymentBulkBatch",
        "tags": [
          "Webhook_通知仕様"
        ],
        "summary": "一括決済課金",
        "description": "一括決済 課金イベント（`payments.bulk.*.batch`）で通知されるリクエストのボディの仕様です。\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent.PaymentBulk.Batch.Card"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "M's PayBridgeに正常にWebhookを受信した旨をレスポンスしてください。\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookResponse"
                }
              },
              "text/plain": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/WebhookResponse-plain"
                    }
                  ]
                },
                "examples": {
                  "html": {
                    "value": 0
                  }
                }
              }
            }
          },
          "400": {
            "description": "4xx系、5xx系または上記以外のレスポンスを返却した場合、M's PayBridgeはエラーと判断しWebhook通知のリトライを行います。\n"
          }
        }
      }
    },
    "/your-endpoint-on-contract": {
      "post": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "receiveWebhookOfContract",
        "tags": [
          "Webhook_通知仕様"
        ],
        "summary": "決済手段 契約状況",
        "description": "決済手段 契約状況 更新イベント（`contracts.status_code.updated`）で通知されるリクエストのボディの仕様です。\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent.Contract"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "M's PayBridgeに正常にWebhookを受信した旨をレスポンスしてください。\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookResponse"
                }
              },
              "text/plain": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/WebhookResponse-plain"
                    }
                  ]
                },
                "examples": {
                  "html": {
                    "value": 0
                  }
                }
              }
            }
          },
          "400": {
            "description": "4xx系、5xx系または上記以外のレスポンスを返却した場合、M's PayBridgeはエラーと判断しWebhook通知のリトライを行います。\n"
          }
        }
      }
    },
    "/your-endpoint-on-invoice": {
      "post": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "receiveWebhookOfInvoice",
        "tags": [
          "Webhook_通知仕様"
        ],
        "summary": "インボイス",
        "description": "インボイスに関するイベント（`invoice.*`）で通知されるリクエストのボディの仕様です。\\\n通知されるボディにはインボイスIDのみが含まれます。インボイスの詳細情報が必要な場合は、インボイスIDを指定してインボイス 取得APIを呼び出してください。\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent.Invoice"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "M's PayBridgeに正常にWebhookを受信した旨をレスポンスしてください。\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookResponse"
                }
              },
              "text/plain": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/WebhookResponse-plain"
                    }
                  ]
                },
                "examples": {
                  "html": {
                    "value": 0
                  }
                }
              }
            }
          },
          "400": {
            "description": "4xx系、5xx系または上記以外のレスポンスを返却した場合、M's PayBridgeはエラーと判断しWebhook通知のリトライを行います。\n"
          }
        }
      }
    },
    "/your-endpoint-on-chargeback": {
      "post": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "receiveWebhookOfChargeBack",
        "tags": [
          "Webhook_通知仕様"
        ],
        "summary": "チャージバック",
        "description": "チャージバックに関するイベント（`charge_backs.*`）で通知されるリクエストのボディの仕様です。\\\n通知されるボディにはチャージバックID・ショップID・ステータスのみが含まれます。チャージバックの詳細情報が必要な場合は、チャージバックIDを指定してチャージバック 取得APIを呼び出してください。\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent.ChargeBack"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "M's PayBridgeに正常にWebhookを受信した旨をレスポンスしてください。\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookResponse"
                }
              },
              "text/plain": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/WebhookResponse-plain"
                    }
                  ]
                },
                "examples": {
                  "html": {
                    "value": 0
                  }
                }
              }
            }
          },
          "400": {
            "description": "4xx系、5xx系または上記以外のレスポンスを返却した場合、M's PayBridgeはエラーと判断しWebhook通知のリトライを行います。\n"
          }
        }
      }
    },
    "/your-endpoint-on-change-request": {
      "post": {
        "security": [
          {
            "Secret-Bearer-Auth": []
          },
          {
            "Secret-Basic-Auth": []
          }
        ],
        "operationId": "receiveWebhookOfChangeRequest",
        "tags": [
          "Webhook_通知仕様"
        ],
        "summary": "変更申請",
        "description": "変更申請に関するイベント（`change_requests.*`）で通知されるリクエストのボディの仕様です。\\\n通知されるボディには変更申請ID・ショップIDのみが含まれます。変更申請の詳細情報が必要な場合は、変更申請IDとショップIDを指定して変更申請 取得APIを呼び出してください。\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent.ChangeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "M's PayBridgeに正常にWebhookを受信した旨をレスポンスしてください。\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookResponse"
                }
              },
              "text/plain": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/WebhookResponse-plain"
                    }
                  ]
                },
                "examples": {
                  "html": {
                    "value": 0
                  }
                }
              }
            }
          },
          "400": {
            "description": "4xx系、5xx系または上記以外のレスポンスを返却した場合、M's PayBridgeはエラーと判断しWebhook通知のリトライを行います。\n"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "Secret-Bearer-Auth": {
        "type": "http",
        "scheme": "bearer",
        "description": "このAPIはシークレットキーによる認証を必要とします。\\\nBearer認証を用いる場合、リクエストヘッダー `Authorization`に下記の形式でシークレットキーを指定します。\n```\n  Authorization: Bearer␣{APIキー}\n```\nシークレットキーはM's PayBridgeの管理画面から取得できます。\n"
      },
      "Secret-Basic-Auth": {
        "type": "http",
        "scheme": "basic",
        "description": "このAPIはシークレットキーによる認証を必要とします。\\\nBasic認証を用いる場合、リクエストヘッダー `Authorization`に下記の形式でシークレットキーを指定します。\n``` JavaScript\n  Authorization: Basic␣{Base64でエンコードしたAPIキー}\n```\nシークレットキーはM's PayBridgeの管理画面から取得できます。\n"
      },
      "Public-Bearer-Auth": {
        "type": "http",
        "scheme": "bearer",
        "description": "このAPIはパブリックキーによる認証で利用できます。\\\nBearer認証を用いる場合、リクエストヘッダー `Authorization`に下記の形式でパブリックキーを指定します。\n```\n  Authorization: Bearer␣{APIキー}\n```\nパブリックキーはM's PayBridgeの管理画面から取得できます。\n"
      },
      "Public-Basic-Auth": {
        "type": "http",
        "scheme": "basic",
        "description": "このAPIはパブリックキーによる認証を必要とします。\\\nBasic認証を用いる場合、リクエストヘッダー `Authorization`に下記の形式でパブリックキーを指定します。\n``` JavaScript\n  Authorization: Basic␣{Base64でエンコードしたAPIキー}\n```\nパブリックキーはM's PayBridgeの管理画面から取得できます。\n"
      },
      "Both-Bearer-Auth": {
        "type": "http",
        "scheme": "bearer",
        "description": "このAPIはシークレットキーまたはパブリックキーによる認証を必要とします。\\\nBearer認証を用いる場合、リクエストヘッダー `Authorization`に下記の形式でシークレットキーまたはパブリックキーを指定します。\n```\n  Authorization: Bearer␣{APIキー}\n```\nシークレットキーまたはパブリックキーはM's PayBridgeの管理画面から取得できます。\n"
      },
      "Both-Basic-Auth": {
        "type": "http",
        "scheme": "basic",
        "description": "このAPIはシークレットキーまたはパブリックキーによる認証を必要とします。\\\nBasic認証を用いる場合、リクエストヘッダー `Authorization`に下記の形式でシークレットキーまたはパブリックキーを指定します。\n``` JavaScript\n  Authorization: Basic␣{Base64でエンコードしたAPIキー}\n```\nシークレットキーまたはパブリックキーはM's PayBridgeの管理画面から取得できます。\n"
      }
    },
    "schemas": {
      "Pagination.QueryParams": {
        "type": "object",
        "properties": {
          "page": {
            "type": "integer",
            "minLength": 1,
            "nullable": true,
            "description": "ページ番号"
          },
          "limit": {
            "type": "integer",
            "nullable": true,
            "minLength": 10,
            "maxLength": 100,
            "description": "1回で取得するデータの最大件数"
          },
          "count_only": {
            "type": "boolean",
            "nullable": true,
            "description": "総件数のみ取得するか。\\\n`true`を指定した場合、検索結果の総件数（`total_count`）のみ取得します。\n"
          }
        },
        "x-common-properties": {
          "sort": {
            "type": "string",
            "example": "updated␣desc,created␣asc"
          }
        }
      },
      "sort": {
        "type": "string",
        "example": "updated␣desc,created␣asc"
      },
      "Customer.ListRetrieving.QueryParams": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 60,
            "example": "c_**********************",
            "description": "顧客ID\n"
          },
          "name": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 384,
            "example": "Jane Doe",
            "description": "顧客名\n"
          },
          "email": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 254,
            "example": "jane@example.com",
            "description": "顧客のメールアドレス\n"
          },
          "created_from": {
            "type": "string",
            "nullable": true,
            "example": "2022/05/16",
            "description": "作成日の範囲指定 開始日\\\nこの日付以降に作成された顧客情報を検索できます。\\\n形式：`yyyy/MM/dd`\n"
          },
          "created_to": {
            "type": "string",
            "nullable": true,
            "example": "2022/05/16",
            "description": "作成日の範囲指定 終了日\\\nこの日付以前に作成された顧客情報を検索できます。\\\n形式：`yyyy/MM/dd`\n"
          },
          "sort": {
            "allOf": [
              {
                "$ref": "#/components/schemas/sort"
              }
            ],
            "nullable": true,
            "description": "ソートする項目と順序を指定します。\\\n例： `?sort=updated␣desc,created␣asc`\\\n\\\nソート可能な項目\n\n- `id`: 顧客ID\n- `name`: 顧客名\n- `email`: 顧客メールアドレス\n- `created`: 作成日時\n- `updated`: 更新日時\n"
          }
        }
      },
      "schema": {
        "type": "string",
        "example": "s_***********"
      },
      "_ListResponse": {
        "type": "object",
        "properties": {
          "total_count": {
            "type": "integer",
            "example": 100,
            "description": "総件数"
          },
          "last_page": {
            "type": "integer",
            "example": 20,
            "description": "最後のページのページ数"
          },
          "current_page": {
            "type": "integer",
            "example": 3,
            "description": "現在のページのページ数"
          },
          "limit": {
            "type": "integer",
            "example": 5,
            "description": "1ページの最大件数"
          },
          "link_next": {
            "type": "string",
            "example": "/v1/{resource}?limit=5&page=4",
            "nullable": true,
            "description": "次のページのコンテンツを取得するためのURL"
          },
          "link_previous": {
            "type": "string",
            "example": "/v1/{resource}?limit=5&page=2",
            "nullable": true,
            "description": "前のページのコンテンツを取得するためのURL"
          }
        }
      },
      "created": {
        "type": "string",
        "example": "2022/05/16 23:59:59.999",
        "description": "作成日\\\n形式：`yyyy/MM/dd HH:mm:ss.SSS`\n"
      },
      "updated": {
        "type": "string",
        "nullable": true,
        "example": "2022/05/16 23:59:59.999",
        "description": "更新日\\\n形式：`yyyy/MM/dd HH:mm:ss.SSS`\n"
      },
      "Customer": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "c_**********************",
            "minLength": 1,
            "maxLength": 60,
            "description": "顧客ID\n"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 384,
            "nullable": true,
            "example": "John Doe",
            "description": "顧客の名前\n"
          },
          "email": {
            "type": "string",
            "minLength": 1,
            "maxLength": 254,
            "nullable": true,
            "example": "john@example.com",
            "description": "顧客のメールアドレス\\\n形式： RFC5322\n"
          },
          "phone_cc": {
            "type": "string",
            "minLength": 1,
            "maxLength": 3,
            "nullable": true,
            "example": "81",
            "description": "顧客の電話番号の国コード（`+`は含まない）\n"
          },
          "phone_no": {
            "type": "string",
            "minLength": 1,
            "maxLength": 15,
            "nullable": true,
            "example": "09012345678",
            "description": "顧客の電話番号\n"
          },
          "addr_country": {
            "type": "string",
            "minLength": 1,
            "maxLength": 3,
            "nullable": true,
            "example": "392",
            "description": "顧客の住所の国コード\\\n形式： ISO 3166-1 numeric\n"
          },
          "addr_state": {
            "type": "string",
            "minLength": 1,
            "maxLength": 3,
            "nullable": true,
            "example": "13",
            "description": "顧客の住所の州コードまたは都道府県コード\\\n参照： [国土交通省 都道府県コード](https://nlftp.mlit.go.jp/ksj/gml/codelist/PrefCd.html)\n"
          },
          "addr_city": {
            "type": "string",
            "minLength": 1,
            "maxLength": 50,
            "nullable": true,
            "example": "渋谷区",
            "description": "顧客の住所の都市名\n"
          },
          "addr_line_1": {
            "type": "string",
            "minLength": 1,
            "maxLength": 50,
            "nullable": true,
            "example": "道玄坂1-14-6",
            "description": "顧客の住所の番地・区画\n"
          },
          "addr_line_2": {
            "type": "string",
            "minLength": 1,
            "maxLength": 50,
            "nullable": true,
            "example": "ヒューマックス渋谷ビル 7F",
            "description": "顧客の住所の建物名・部屋番号\n"
          },
          "addr_line_3": {
            "type": "string",
            "minLength": 1,
            "maxLength": 50,
            "nullable": true,
            "example": "GMOイプシロン株式会社",
            "description": "顧客の住所 その他\n"
          },
          "addr_post_code": {
            "type": "string",
            "minLength": 1,
            "maxLength": 16,
            "nullable": true,
            "example": "150-0043",
            "description": "顧客の住所の郵便番号\n"
          },
          "card_registration": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1,
            "nullable": true,
            "enum": [
              "0",
              "1"
            ],
            "example": "1",
            "description": "決済手段（カード）登録状況\n\n- `0`: 未登録\n- `1`: 1件以上のカードが登録済み\n"
          },
          "directdebit_registration": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1,
            "nullable": true,
            "enum": [
              "0",
              "1"
            ],
            "example": "1",
            "description": "決済手段（口座振替）登録状況\n\n- `0`: 未登録\n- `1`: 1件以上の振替用口座が登録済み\n"
          },
          "created": {
            "allOf": [
              {
                "$ref": "#/components/schemas/created"
              }
            ]
          },
          "updated": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updated"
              }
            ]
          }
        }
      },
      "Customer.list": {
        "type": "object",
        "properties": {
          "list": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Customer"
            }
          }
        }
      },
      "Customer.ListRetrieving.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/_ListResponse"
          },
          {
            "$ref": "#/components/schemas/Customer.list"
          }
        ]
      },
      "FincodeAPIError": {
        "type": "object",
        "description": "1つのエラーを表現するオブジェクト。\n",
        "properties": {
          "error_code": {
            "type": "string",
            "minLength": 11,
            "maxLength": 11,
            "example": "E**********",
            "description": "エラー内容を判定する場合はこの`error_code`の使用が推奨されます。\\\n[各エラーコードの定義はこちらを参照](https://mpb-mizuhobank-docs.fincode.jp/develop_support/error)して確認できます。\n"
          },
          "error_message": {
            "type": "string",
            "description": "エラーの内容を表現するメッセージです。\\\nこのエラーメッセージは予告なく変更されるため、エラー内容を判定する場合はこの値ではなく`error_code`の使用が推奨されます。\n"
          }
        }
      },
      "FincodeAPIError.Response": {
        "type": "object",
        "properties": {
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FincodeAPIError"
            }
          }
        }
      },
      "id": {
        "type": "string",
        "example": "c_**********************",
        "minLength": 1,
        "maxLength": 60,
        "description": "顧客ID\n"
      },
      "name": {
        "type": "string",
        "minLength": 1,
        "maxLength": 384,
        "nullable": true,
        "example": "John Doe",
        "description": "顧客の名前\n"
      },
      "email": {
        "type": "string",
        "minLength": 1,
        "maxLength": 254,
        "nullable": true,
        "example": "john@example.com",
        "description": "顧客のメールアドレス\\\n形式： RFC5322\n"
      },
      "phone_cc": {
        "type": "string",
        "minLength": 1,
        "maxLength": 3,
        "nullable": true,
        "example": "81",
        "description": "顧客の電話番号の国コード（`+`は含まない）\n"
      },
      "phone_no": {
        "type": "string",
        "minLength": 1,
        "maxLength": 15,
        "nullable": true,
        "example": "09012345678",
        "description": "顧客の電話番号\n"
      },
      "addr_country": {
        "type": "string",
        "minLength": 1,
        "maxLength": 3,
        "nullable": true,
        "example": "392",
        "description": "顧客の住所の国コード\\\n形式： ISO 3166-1 numeric\n"
      },
      "addr_state": {
        "type": "string",
        "minLength": 1,
        "maxLength": 3,
        "nullable": true,
        "example": "13",
        "description": "顧客の住所の州コードまたは都道府県コード\\\n参照： [国土交通省 都道府県コード](https://nlftp.mlit.go.jp/ksj/gml/codelist/PrefCd.html)\n"
      },
      "addr_city": {
        "type": "string",
        "minLength": 1,
        "maxLength": 50,
        "nullable": true,
        "example": "渋谷区",
        "description": "顧客の住所の都市名\n"
      },
      "addr_line_1": {
        "type": "string",
        "minLength": 1,
        "maxLength": 50,
        "nullable": true,
        "example": "道玄坂1-14-6",
        "description": "顧客の住所の番地・区画\n"
      },
      "addr_line_2": {
        "type": "string",
        "minLength": 1,
        "maxLength": 50,
        "nullable": true,
        "example": "ヒューマックス渋谷ビル 7F",
        "description": "顧客の住所の建物名・部屋番号\n"
      },
      "addr_line_3": {
        "type": "string",
        "minLength": 1,
        "maxLength": 50,
        "nullable": true,
        "example": "GMOイプシロン株式会社",
        "description": "顧客の住所 その他\n"
      },
      "addr_post_code": {
        "type": "string",
        "minLength": 1,
        "maxLength": 16,
        "nullable": true,
        "example": "150-0043",
        "description": "顧客の住所の郵便番号\n"
      },
      "Customer.Creating.Request": {
        "type": "object",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/id"
              }
            ],
            "nullable": true,
            "description": "顧客ID\\\n任意の値を指定できます。指定しない場合はM's PayBridgeが自動的に生成します。\\\n一度M's PayBridgeに登録された顧客IDは削除後も利用できません。\n"
          },
          "name": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/name"
              }
            ]
          },
          "email": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/email"
              }
            ]
          },
          "phone_cc": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/phone_cc"
              }
            ]
          },
          "phone_no": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/phone_no"
              }
            ]
          },
          "addr_country": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/addr_country"
              }
            ]
          },
          "addr_state": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/addr_state"
              }
            ]
          },
          "addr_city": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/addr_city"
              }
            ]
          },
          "addr_line_1": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/addr_line_1"
              }
            ]
          },
          "addr_line_2": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/addr_line_2"
              }
            ]
          },
          "addr_line_3": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/addr_line_3"
              }
            ]
          },
          "addr_post_code": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/addr_post_code"
              }
            ]
          }
        }
      },
      "Customer.Creating.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Customer"
          }
        ]
      },
      "CustomerId_schema": {
        "type": "string",
        "example": "c_**********************"
      },
      "Customer.Retrieving.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Customer"
          }
        ]
      },
      "Customer.Updating.Request": {
        "type": "object",
        "properties": {
          "name": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/name"
              }
            ],
            "example": "Jane Doe"
          },
          "email": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/email"
              }
            ]
          },
          "phone_cc": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/phone_cc"
              }
            ],
            "example": "jane@example.com"
          },
          "phone_no": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/phone_no"
              }
            ]
          },
          "addr_country": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/addr_country"
              }
            ]
          },
          "addr_state": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/addr_state"
              }
            ]
          },
          "addr_city": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/addr_city"
              }
            ]
          },
          "addr_line_1": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/addr_line_1"
              }
            ]
          },
          "addr_line_2": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/addr_line_2"
              }
            ]
          },
          "addr_line_3": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/addr_line_3"
              }
            ]
          },
          "addr_post_code": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/addr_post_code"
              }
            ]
          }
        }
      },
      "Customer.Updating.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Customer"
          }
        ]
      },
      "delete_flag": {
        "type": "string",
        "enum": [
          "1",
          "0"
        ],
        "example": "1",
        "description": "削除フラグ"
      },
      "Customer.Deleting.Response": {
        "type": "object",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/id"
              }
            ],
            "description": "削除された顧客のID"
          },
          "delete_flag": {
            "allOf": [
              {
                "$ref": "#/components/schemas/delete_flag"
              }
            ]
          }
        }
      },
      "card_no": {
        "type": "string",
        "example": "************1234",
        "maxLength": 16,
        "description": "マスク済みカード番号。\\\n<span class=\"smallText\">\n下4桁以外をマスクしたカード番号です。\\\nカード情報非保持の原則に基づき、M's PayBridgeユーザーはマスクされていないカード番号の代わりにこの値を保持することができます。\\\n</span>\n形式：`************1234`\n"
      },
      "expire": {
        "type": "string",
        "minLength": 4,
        "maxLength": 4,
        "example": "4012",
        "nullable": true,
        "description": "カード有効期限。\\\n形式：`YYMM`\n"
      },
      "holder_name": {
        "type": "string",
        "example": "TARO EPSILON",
        "minLength": 1,
        "maxLength": 50,
        "nullable": true,
        "description": "カード名義人名。\n"
      },
      "CardType": {
        "type": "string",
        "enum": [
          "0",
          "1",
          "2",
          "3"
        ],
        "minLength": 1,
        "maxLength": 1,
        "description": "クレジットカード種別。\n\n- `0`: 不明（[テストカード](https://mpb-mizuhobank-docs.fincode.jp/develop_support/test_resources)を含む）\n- `1`: デビットカード\n- `2`: プリペイドカード\n- `3`: クレジットカード\n"
      },
      "CardBrand": {
        "type": "string",
        "maxLength": 50,
        "enum": [
          "VISA",
          "MASTER",
          "JCB",
          "AMEX",
          "DINERS",
          "DISCOVER",
          ""
        ],
        "description": "カードブランドを表します。\n\n- `VISA`: VISA\n- `MASTER`: Mastercard\n- `JCB`: JCB\n- `AMEX`: American Express\n- `DINERS`: Diners Club\n- `DISCOVER`: Discover\n- `\"\"`（空文字列） : 判定不能\n"
      },
      "card_no_hash": {
        "type": "string",
        "example": "abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz01",
        "minLength": 1,
        "maxLength": 64,
        "description": "カード番号をもとに生成されたハッシュ値。\\\n<span class=\"smallText\">\nおなじカード番号に対しては常に同じ値が返されます。\\\nカード情報非保持の原則に基づき、M's PayBridgeユーザーはマスクされていないカード番号の代わりにこの値を保持することができます。\n</span>\n"
      },
      "Card": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "cs_**********************",
            "minLength": 25,
            "maxLength": 25,
            "description": "カードID\n"
          },
          "customer_id": {
            "type": "string",
            "example": "c_**********************",
            "minLength": 1,
            "maxLength": 60,
            "description": "顧客ID\\\nこのカードが紐づく顧客のID\n"
          },
          "default_flag": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "example": "0",
            "description": "デフォルトフラグ。\\\nこのカードが決済実行やサブスクリプション登録などでカードIDを指定しない場合に自動的に使用するカードかどうかを示すフラグです。\\\n顧客に対して必ず1つのデフォルトカードが存在します。（カードが1つも登録されていない場合を除く）\n\n- `0`: デフォルトカードではない\n- `1`: デフォルトカード\n"
          },
          "card_no": {
            "allOf": [
              {
                "$ref": "#/components/schemas/card_no"
              }
            ]
          },
          "expire": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expire"
              }
            ]
          },
          "holder_name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/holder_name"
              }
            ]
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CardType"
              },
              {
                "nullable": true
              }
            ]
          },
          "brand": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CardBrand"
              },
              {
                "nullable": true
              }
            ]
          },
          "card_no_hash": {
            "allOf": [
              {
                "$ref": "#/components/schemas/card_no_hash"
              }
            ]
          },
          "created": {
            "allOf": [
              {
                "$ref": "#/components/schemas/created"
              }
            ]
          },
          "updated": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updated"
              }
            ]
          }
        },
        "x-req-properties": {
          "token": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512,
            "example": "34567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890",
            "nullable": true,
            "description": "カードトークン\\\n\\\nM's PayBridge JSの`tokens`メソッドで取得したトークンを指定します。\\\nJavaScriptの利用については、[JavaScriptリファレンス](https://mpb-mizuhobank-docs.fincode.jp/js)をご参照ください。\n"
          }
        }
      },
      "Card.list": {
        "type": "object",
        "properties": {
          "list": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Card"
            }
          }
        }
      },
      "process_date": {
        "type": "string",
        "nullable": true,
        "example": "2022/05/16 23:59:59.999",
        "description": "処理日\\\n形式：`yyyy/MM/dd HH:mm:ss.SSS`\n"
      },
      "CardUpdater": {
        "type": "object",
        "properties": {
          "card_updater_mode": {
            "type": "string",
            "nullable": true,
            "enum": [
              "enabled",
              "disabled",
              "inherit"
            ],
            "description": "カード更新対象カードステータス\n\n- `enabled`：カード更新する\n- `disabled`：カード更新しない\n- `inherit`：ショップ設定に準ずる\n"
          },
          "card_updater_last_success_date": {
            "allOf": [
              {
                "$ref": "#/components/schemas/process_date"
              }
            ],
            "description": "カード更新成功日時\n最後にカード情報の更新に成功した日時\\\n形式：`yyyy/MM/dd HH:mm:ss.SSS`\n"
          },
          "card_updater_last_attempt_date": {
            "allOf": [
              {
                "$ref": "#/components/schemas/process_date"
              }
            ],
            "description": "カード更新実施日時\n最後にカード情報の更新を実施した日時\\\n形式：`yyyy/MM/dd HH:mm:ss.SSS`\n"
          }
        }
      },
      "CustomerCard.ListRetrieving.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Card.list"
          },
          {
            "type": "object",
            "properties": {
              "list": {
                "type": "array",
                "items": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Card"
                    },
                    {
                      "$ref": "#/components/schemas/CardUpdater"
                    }
                  ]
                }
              }
            }
          }
        ]
      },
      "token": {
        "type": "string",
        "minLength": 1,
        "maxLength": 512,
        "example": "34567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890",
        "description": "カードトークン\\\n\\\nM's PayBridge JSの`tokens`メソッドで取得したトークンを指定します。\\\nJavaScriptの利用については、[JavaScriptリファレンス](https://mpb-mizuhobank-docs.fincode.jp/js)をご参照ください。\n"
      },
      "default_flag": {
        "type": "string",
        "enum": [
          "0",
          "1"
        ],
        "example": "0",
        "description": "デフォルトフラグ。\\\nこのカードが決済実行やサブスクリプション登録などでカードIDを指定しない場合に自動的に使用するカードかどうかを示すフラグです。\\\n顧客に対して必ず1つのデフォルトカードが存在します。（カードが1つも登録されていない場合を除く）\n\n- `0`: デフォルトカードではない\n- `1`: デフォルトカード\n"
      },
      "card_updater_mode": {
        "type": "string",
        "nullable": true,
        "enum": [
          "enabled",
          "disabled",
          "inherit"
        ],
        "description": "カード更新対象カードステータス\n\n- `enabled`：カード更新する\n- `disabled`：カード更新しない\n- `inherit`：ショップ設定に準ずる\n"
      },
      "CustomerCard.Creating.Request": {
        "type": "object",
        "properties": {
          "token": {
            "allOf": [
              {
                "$ref": "#/components/schemas/token"
              }
            ]
          },
          "default_flag": {
            "allOf": [
              {
                "$ref": "#/components/schemas/default_flag"
              }
            ]
          },
          "card_updater_mode": {
            "allOf": [
              {
                "$ref": "#/components/schemas/card_updater_mode"
              }
            ],
            "description": "カード更新機能（洗替）利用設定\n\n- `enabled`：カード更新する\n- `disabled`：カード更新しない\n- `inherit`：ショップ設定に準ずる\n"
          }
        },
        "required": [
          "token",
          "default_flag"
        ]
      },
      "CustomerCard.Creating.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Card"
          },
          {
            "$ref": "#/components/schemas/CardUpdater"
          }
        ]
      },
      "CardId_schema": {
        "type": "string",
        "example": "cs_**********************"
      },
      "CustomerCard.Retrieving.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Card"
          },
          {
            "$ref": "#/components/schemas/CardUpdater"
          }
        ]
      },
      "x-req-properties-token": {
        "type": "string",
        "minLength": 1,
        "maxLength": 512,
        "example": "34567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890",
        "nullable": true,
        "description": "カードトークン\\\n\\\nM's PayBridge JSの`tokens`メソッドで取得したトークンを指定します。\\\nJavaScriptの利用については、[JavaScriptリファレンス](https://mpb-mizuhobank-docs.fincode.jp/js)をご参照ください。\n"
      },
      "CustomerCard.Updating.Request": {
        "type": "object",
        "properties": {
          "token": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/x-req-properties-token"
              }
            ]
          },
          "default_flag": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/default_flag"
              }
            ],
            "description": "デフォルトフラグ。\\\n指定した場合のみ更新されます。\n"
          },
          "holder_name": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/holder_name"
              }
            ],
            "description": "※ `token`に入力がある場合は無視\\\nカード名義人名\n"
          },
          "expire": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/expire"
              }
            ],
            "description": "※ `token`に入力がある場合は無視\\\nカード有効期限。\\\n形式：`YYMM`\n"
          },
          "card_updater_mode": {
            "allOf": [
              {
                "$ref": "#/components/schemas/card_updater_mode"
              }
            ],
            "description": "カード更新機能（洗替）利用設定\\\n指定した場合のみ更新されます。\n\n- `enabled`：カード更新する\n- `disabled`：カード更新しない\n- `inherit`：ショップ設定に準ずる\n"
          }
        }
      },
      "CustomerCard.Updating.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Card"
          },
          {
            "$ref": "#/components/schemas/CardUpdater"
          }
        ]
      },
      "properties-id": {
        "type": "string",
        "example": "cs_**********************",
        "minLength": 25,
        "maxLength": 25,
        "description": "カードID\n"
      },
      "CustomerCard.Deleting.Response": {
        "type": "object",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-id"
              }
            ],
            "description": "削除されたカードのID"
          },
          "customer_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/id"
              }
            ],
            "description": "削除されたカードを持つ顧客のID"
          },
          "delete_flag": {
            "allOf": [
              {
                "$ref": "#/components/schemas/delete_flag"
              }
            ]
          }
        }
      },
      "customer_id": {
        "type": "string",
        "example": "c_**********************",
        "minLength": 1,
        "maxLength": 60,
        "description": "顧客ID\\\nこのカードが紐づく顧客のID\n"
      },
      "Card.ListRetrieving.QueryParams": {
        "type": "object",
        "properties": {
          "card_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-id"
              }
            ],
            "nullable": true,
            "description": "カードID\\\n指定したカードIDに一致するカード情報を取得します。\n"
          },
          "customer_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/customer_id"
              }
            ],
            "nullable": true,
            "description": "顧客ID\\\n指定した顧客IDに紐づくカード情報を取得します。\n"
          },
          "card_updater_last_success_date_from": {
            "type": "string",
            "nullable": true,
            "example": "2022/05/16",
            "description": "カード更新成功日 範囲指定 開始日\\\nカード更新成功日（`card_updater_last_success_date`）を対象に範囲検索を行います。\\\nこの日付以降にカード更新成功したカード情報を取得します。\\\n形式：`yyyy/MM/dd`\n"
          },
          "card_updater_last_success_date_to": {
            "type": "string",
            "nullable": true,
            "example": "2022/05/16",
            "description": "カード更新成功日 範囲指定 終了日\\\nカード更新成功日（`card_updater_last_success_date`）を対象に範囲検索を行います。\\\nこの日付以前にカード更新成功したカード情報を取得します。\\\n形式：`yyyy/MM/dd`\n"
          },
          "card_updater_last_attempt_date_from": {
            "type": "string",
            "nullable": true,
            "example": "2022/05/16",
            "description": "カード更新実施日 範囲指定 開始日\\\nカード更新実施日（`card_updater_last_attempt_date`）を対象に範囲検索を行います。\\\nこの日付以降にカード更新を実施したカード情報を取得します。\\\n形式：`yyyy/MM/dd`\n"
          },
          "card_updater_last_attempt_date_to": {
            "type": "string",
            "nullable": true,
            "example": "2022/05/16",
            "description": "カード更新実施日 範囲指定 終了日\\\nカード更新実施日（`card_updater_last_attempt_date`）を対象に範囲検索を行います。\\\nこの日付以前にカード更新を実施したカード情報を取得します。\\\n形式：`yyyy/MM/dd`\n"
          },
          "sort": {
            "allOf": [
              {
                "$ref": "#/components/schemas/sort"
              }
            ],
            "nullable": true,
            "description": "ソートする項目と順序を指定します。\\\n例： `?sort=customer_id␣asc,created␣desc`\\\n\\\nソート可能な項目\n\n- `id`: カードID\n- `customer_id`: 顧客ID\n- `created`: 作成日時\n- `card_updater_last_success_date`: カード更新成功日\n- `card_updater_last_attempt_date`: カード更新実施日\n"
          }
        }
      },
      "Card.ListRetrieving.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/_ListResponse"
          },
          {
            "type": "object",
            "properties": {
              "list": {
                "type": "array",
                "items": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Card"
                    },
                    {
                      "$ref": "#/components/schemas/CardUpdater"
                    }
                  ]
                }
              }
            }
          }
        ]
      },
      "PaymentMethodPayType": {
        "type": "string",
        "enum": [
          "Card",
          "Directdebit",
          "Virtualaccount"
        ],
        "example": "Card",
        "description": "決済種別（決済手段APIに対応しているもの）\n\n- `Card`: カード\n- `Directdebit`: 口座振替\n- `Virtualaccount`: 銀行振込（バーチャル口座）\n"
      },
      "CustomerPaymentMethod.ListRetrieving.QueryParams": {
        "type": "object",
        "properties": {
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentMethodPayType"
              }
            ],
            "description": "決済種別\n"
          }
        },
        "required": [
          "pay_type"
        ]
      },
      "PaymentMethod_properties-id": {
        "type": "string",
        "example": "pm_**********************",
        "minLength": 25,
        "maxLength": 25,
        "description": "決済手段ID\\\n<span class=\"smallText\">※ `pay_type = Card`（カード）の場合は `cs_` から始まるIDになります。</span>\n"
      },
      "properties-customer_id": {
        "type": "string",
        "example": "c_********************",
        "maxLength": 60,
        "description": "この決済手段が紐づく顧客のID\n"
      },
      "PaymentMethodStatus": {
        "type": "string",
        "enum": [
          "INACTIVATED",
          "AWAITING_CUSTOMER_ACTION",
          "ACTIVATED",
          "FAILED"
        ],
        "example": "ACTIVATED",
        "description": "決済手段のステータス\n\n- `INACTIVATED`: 有効化前<br /><span class=\"smallText\">まだこの決済手段は決済に使用できません。</span>\n- `AWAITING_CUSTOMER_ACTION`: 顧客のアクション待ち<br /><span class=\"smallText\">この決済手段は登録のための購入者の承認がされていない状態です。まだこの決済手段は決済に使用できません。</span>\n- `ACTIVATED`: 有効化済み<br /><span class=\"smallText\">この決済手段は決済に使用できます。</span>\n- `FAILED`: 失敗<br /><span class=\"smallText\">この決済手段は決済に使用できません。</span>\n"
      },
      "status": {
        "allOf": [
          {
            "$ref": "#/components/schemas/PaymentMethodStatus"
          }
        ],
        "description": "決済手段のステータス。\\\n<span class=\"smallText\">※ `pay_type`によって返却されるステータスが異なります。詳細は[こちら](https://mpb-mizuhobank-docs.fincode.jp/payment/payment_method)をご確認ください。</span>\n"
      },
      "redirect_url_accessed_flag": {
        "type": "string",
        "enum": [
          "0",
          "1"
        ],
        "example": "1",
        "nullable": true,
        "description": "リダイレクトURLアクセス済みフラグ \\\n（`pay_type = Directdebit`の場合のみ利用可能）\\\n購入者が`redirect_url`にアクセスしたことがあるかどうかを示すフラグです。\n\n- `0`: 未アクセス\n- `1`: 1回以上アクセス済み\n"
      },
      "return_url": {
        "type": "string",
        "example": "https://url.to/return/payer/success",
        "maxLength": 256,
        "nullable": true,
        "description": "（`pay_type =\"Card\" / \"Directdebit\"`の場合のみ利用可能）\\\n加盟店戻りURL（成功時）\\\n購入者がアクションを完了し、決済手段の登録に成功した際にリダイレクトされるURLです。\\\nPOSTメソッドでリダイレクトがされます。\n"
      },
      "return_url_on_failure": {
        "type": "string",
        "example": "https://url.to/return/payer/failure",
        "maxLength": 256,
        "nullable": true,
        "description": "加盟店戻りURL（失敗時）\\\n（`pay_type = Card`の場合のみ利用可能）\\\n購入者がアクションを完了し、決済手段の登録に失敗した際にリダイレクトされるURLです。\\\nPOSTメソッドでリダイレクトがされます。\n"
      },
      "properties-default_flag": {
        "type": "string",
        "enum": [
          "0",
          "1"
        ],
        "minLength": 1,
        "maxLength": 1,
        "example": "1",
        "description": "デフォルトフラグ。\\\nこの決済手段が決済実行やサブスクリプション登録などで決済手段IDを指定しない場合に自動的に使用する決済手段かどうかを示すフラグです。\\\n顧客に対して、決済種別ごとに必ず1つのデフォルト決済手段が存在します。（決済手段が1つも登録されていない場合を除く）\n\n- `0`: デフォルト決済手段ではない\n- `1`: デフォルト決済手段\n"
      },
      "client_field_n": {
        "type": "string",
        "nullable": true,
        "minLength": 1,
        "maxLength": 100,
        "example": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore",
        "description": "加盟店自由項目\n"
      },
      "client_field_1": {
        "allOf": [
          {
            "$ref": "#/components/schemas/client_field_n"
          }
        ]
      },
      "client_field_2": {
        "allOf": [
          {
            "$ref": "#/components/schemas/client_field_n"
          }
        ]
      },
      "client_field_3": {
        "allOf": [
          {
            "$ref": "#/components/schemas/client_field_n"
          }
        ]
      },
      "properties-delete_flag": {
        "allOf": [
          {
            "$ref": "#/components/schemas/delete_flag"
          }
        ]
      },
      "properties-process_date": {
        "allOf": [
          {
            "$ref": "#/components/schemas/process_date"
          }
        ]
      },
      "properties-created": {
        "allOf": [
          {
            "$ref": "#/components/schemas/created"
          }
        ]
      },
      "properties-updated": {
        "allOf": [
          {
            "$ref": "#/components/schemas/updated"
          }
        ]
      },
      "tds_type": {
        "type": "string",
        "enum": [
          "0",
          "2"
        ],
        "example": "2",
        "minLength": 1,
        "maxLength": 1,
        "nullable": true,
        "description": "3Dセキュア認証を利用するか。\n\n- `0`: 3Dセキュア認証を利用しない（デフォルト）\n- `2`: 3Dセキュア2.0認証を利用する\n"
      },
      "tds2_type": {
        "type": "string",
        "enum": [
          "2",
          "3"
        ],
        "example": "2",
        "minLength": 1,
        "maxLength": 1,
        "nullable": true,
        "description": "3Dセキュア2.0非対応時の挙動設定\\\n購入者がこの決済に利用したカードが3Dセキュア2.0に非対応である場合の後続処理を設定します。\n\n- `2`: エラーをレスポンスし、処理を終了する。（デフォルト）\n- `3`: 3Dセキュア認証なしで処理を継続する。\n"
      },
      "tds2_ret_url": {
        "type": "string",
        "example": "https://your-server.example.com/3ds2-return",
        "maxLength": 256,
        "nullable": true,
        "description": "3Dセキュア認証における戻りURL  \n3Dセキュア認証に必要なAPIの呼び出しやコールバック処理をすべて加盟店で実装する場合のみ使用します。  \nM's PayBridgeは3Dセキュア認証処理の過程において、このURLにPOSTメソッド、`Content-Type:application/x-www-form-urlencoded`で値を返します。  \n\n- `MD`: クエリパラメータとして返されます。 `access_id`と等しい値です。\n- `event`: フォームデータとして返されます。この値を判定し後続の処理を分岐します。\n- `param`: フォームデータとして返されます。[3Dセキュア認証API](https://mpb-mizuhobank-docs.fincode.jp/api#tag/ThreeDSecureecure/executeThreeDSecureecureAuth)で使用します。\n- `requestorTransId`: フォームデータとして返されます。（後続処理では使用しません。）\n\n返却されるそれぞれの値についての[詳細はDocsで確認](https://mpb-mizuhobank-docs.fincode.jp/payment/fraud_protection/3d_secure_2)できます。\n"
      },
      "ThreeDSecure2Status": {
        "type": "string",
        "enum": [
          "AUTHENTICATING",
          "CHALLENGE",
          "AUTHENTICATED"
        ],
        "example": "AUTHENTICATING",
        "description": "3Dセキュア2.0認証処理 ステータス\n\n- `AUTHENTICATING`: 3Dセキュア認証処理中\n- `CHALLENGE`: チャレンジ認証の実施が必要\n- `AUTHENTICATED`: 3Dセキュア認証処理が完了\n"
      },
      "td_tenant_name": {
        "type": "string",
        "example": "s_***********-ab123",
        "maxLength": 25,
        "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n加盟店名。\\\n3Dセキュア認証の際に表示されるショップ名や加盟店名を指定できます。\\\n使用可能な文字は以下の通りです。\n- 半角英数\n- 半角記号： !\"#$%&'()*+,-./:;<=>?@[\\]`^_{|}~\n- 半角スペース\n\n未指定の場合、 カード決済の契約時にM's PayBridgeが下記の形式に従って設定した値が自動的に使用されます。\\\n\\\n形式：`{{ショップID}}-{{英数字からなる固定値}}`\n"
      },
      "access_id": {
        "type": "string",
        "nullable": false,
        "minLength": 24,
        "maxLength": 24,
        "example": "a_**********************",
        "description": "取引ID\n"
      },
      "card_updater_last_success_date": {
        "allOf": [
          {
            "$ref": "#/components/schemas/process_date"
          }
        ],
        "description": "カード更新成功日時\n最後にカード情報の更新に成功した日時\\\n形式：`yyyy/MM/dd HH:mm:ss.SSS`\n"
      },
      "card_updater_last_attempt_date": {
        "allOf": [
          {
            "$ref": "#/components/schemas/process_date"
          }
        ],
        "description": "カード更新実施日時\n最後にカード情報の更新を実施した日時\\\n形式：`yyyy/MM/dd HH:mm:ss.SSS`\n"
      },
      "card": {
        "type": "object",
        "nullable": true,
        "description": "<span class=\"smallText\">この決済手段がカードを表す（`pay_type = Card`）とき、カード情報の詳細がこの`card`オブジェクトに格納されます。</span>\n",
        "properties": {
          "card_no": {
            "type": "string",
            "example": "************1234",
            "maxLength": 16,
            "description": "マスク済みカード番号。\\\n<span class=\"smallText\">\n下4桁以外をマスクしたカード番号です。\\\nカード情報非保持の原則に基づき、M's PayBridgeユーザーはマスクされていないカード番号の代わりにこの値を保持することができます。\\\n</span>\n形式：`************1234`\n"
          },
          "expire": {
            "type": "string",
            "minLength": 4,
            "maxLength": 4,
            "example": "4012",
            "nullable": true,
            "description": "カード有効期限。\\\n形式：`YYMM`\n"
          },
          "holder_name": {
            "type": "string",
            "example": "TARO EPSILON",
            "minLength": 1,
            "maxLength": 50,
            "nullable": true,
            "description": "カード名義人名。\n"
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CardType"
              },
              {
                "nullable": true
              }
            ]
          },
          "brand": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CardBrand"
              },
              {
                "nullable": true
              }
            ]
          },
          "card_no_hash": {
            "type": "string",
            "example": "abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz01",
            "minLength": 1,
            "maxLength": 64,
            "description": "カード番号をもとに生成されたハッシュ値。\\\n<span class=\"smallText\">\nおなじカード番号に対しては常に同じ値が返されます。\\\nカード情報非保持の原則に基づき、M's PayBridgeユーザーはマスクされていないカード番号の代わりにこの値を保持することができます。\n</span>\n"
          },
          "tds_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds_type"
              }
            ],
            "description": "カード登録時3Dセキュア認証を利用するか。\n\n- `0`: 3Dセキュア認証を利用しない（デフォルト）\n- `2`: 3Dセキュア2.0認証を利用する\n"
          },
          "tds2_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_type"
              }
            ],
            "description": "3Dセキュア2.0非対応時の挙動設定\\\n購入者がこの決済に利用したカードが3Dセキュア2.0に非対応である場合の後続処理を設定します。\n\n- `2`: エラーをレスポンスし、処理を終了する。（デフォルト）\n- `3`: 3Dセキュア認証なしで登録を行う。\n"
          },
          "tds2_ret_url": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_ret_url"
              }
            ]
          },
          "tds2_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ThreeDSecure2Status"
              }
            ],
            "description": "3Dセキュア2.0認証処理のステータス。\\\n\\\n<span class=\"smallText\">【3Dセキュア認証結果の返却について】</span>\\\n3Dセキュア認証結果（本項目を含む3Dセキュア関連項目）は、APIによって処理結果または保持している認証結果を返却します。  \n\n- 決済手段 登録API・更新APIでは、当該リクエストの処理結果を返却します。\n- 一方で、決済手段 取得API・一覧取得APIでは、保持している3Dセキュア認証結果を返却します。そのため、登録API・更新APIのレスポンスとは返却内容が異なる場合があります。\n"
          },
          "merchant_name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/td_tenant_name"
              }
            ]
          },
          "access_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/access_id"
              }
            ],
            "description": "取引ID\n"
          },
          "card_updater_mode": {
            "allOf": [
              {
                "$ref": "#/components/schemas/card_updater_mode"
              }
            ]
          },
          "card_updater_last_success_date": {
            "allOf": [
              {
                "$ref": "#/components/schemas/card_updater_last_success_date"
              }
            ]
          },
          "card_updater_last_attempt_date": {
            "allOf": [
              {
                "$ref": "#/components/schemas/card_updater_last_attempt_date"
              }
            ]
          }
        }
      },
      "DirectDebitApplicationType": {
        "type": "string",
        "enum": [
          "PAPER",
          "ONLINE"
        ],
        "example": "PAPER",
        "maxLength": 6,
        "nullable": true,
        "description": "この振替用口座を登録した際の申込方法\n\n- `PAPER`: 依頼書登録\n- `ONLINE`: Web登録\n"
      },
      "DirectDebitSettlementRoute": {
        "type": "string",
        "enum": [
          "1",
          "2"
        ],
        "example": "1",
        "minLength": 1,
        "maxLength": 1,
        "description": "振替サービス\n\n- `1`: 口座振替（5・6・23・27日）\n- `2`: 口座振替（1・5・20・26日）\n"
      },
      "DirectDebitLastResultCode": {
        "type": "string",
        "enum": [
          "0",
          "1",
          "2",
          "3",
          "4",
          "7",
          "8",
          "9",
          "E",
          "N"
        ],
        "example": "0",
        "minLength": 1,
        "maxLength": 1,
        "nullable": true,
        "description": "最新の振替結果コード。\\\nこの決済手段で最後に行われた振替の結果コードです。\n\n- `0`: 振替成功\n- `1`: 残高不足による失敗\n- `2`: 預金取引なしによる失敗<br /><span class=\"smallText\">存在しない口座に対して請求した場合などに発生します。</span>\n- `3`: 購入者事由による失敗\n- `4`: 依頼書未着・不備による失敗<br /><span class=\"smallText\">口座振替依頼書が金融機関側で登録されていない場合に発生します。</span>\n- `7`: データエラーに起因する失敗<br /><span class=\"smallText\">口座振替（1・5・20・26日）のみ。</span><br /><span class=\"smallText\">通常は発生しません。発生し調査が必要な場合はM's PayBridgeにお問い合わせください。 </span>\n- `8`: ショップ事由による失敗<br /><span class=\"smallText\">通常は発生しません。発生し調査が必要な場合はM's PayBridgeにお問い合わせください。 </span>\n- `9`: その他の失敗<br /><span class=\"smallText\">通常は発生しません。発生し調査が必要な場合はM's PayBridgeにお問い合わせください。 </span>\n- `E`: データエラーに起因する失敗<br /><span class=\"smallText\">口座振替（5・6・23・27日）のみ。</span><br /><span class=\"smallText\">通常は発生しません。発生し調査が必要な場合はM's PayBridgeにお問い合わせください。 </span>\n- `N`: 振替結果未着<br /><span class=\"smallText\">口座振替（5・6・23・27日）のみ。</span><br /><span class=\"smallText\">通常は発生しません。発生し調査が必要な場合はM's PayBridgeにお問い合わせください。 </span>\n\n[お問い合わせはこちらへ](https://www.faq.mizuhobank.co.jp/helpdesk?category_id=645&site_domain=houjin)\n"
      },
      "directdebit": {
        "type": "object",
        "nullable": true,
        "description": "<span class=\"smallText\">この決済手段が振替用口座を表す（`pay_type = Directdebit`）とき、口座情報の詳細がこの`directdebit`オブジェクトに格納されます。</span>\n",
        "properties": {
          "application_type": {
            "$ref": "#/components/schemas/DirectDebitApplicationType"
          },
          "settlement_route": {
            "$ref": "#/components/schemas/DirectDebitSettlementRoute"
          },
          "expected_billable_date": {
            "type": "string",
            "example": "2022/05/16 23:59:59.999",
            "nullable": true,
            "description": "請求可能予定日。\\\n口座登録後、実際に請求依頼が可能となると予定される日時です。\\\n形式：`yyyy/MM/dd HH:mm:ss.SSS`\n"
          },
          "last_withdrawal_date": {
            "type": "string",
            "example": "2022/05/16 23:59:59.999",
            "nullable": true,
            "description": "最終引落日。\\\n金融機関によってこの口座から実際に引き落とされた実績日のうち、最も新しい日時です。\\\n形式：`yyyy/MM/dd HH:mm:ss.SSS`\n"
          },
          "last_result_code": {
            "$ref": "#/components/schemas/DirectDebitLastResultCode"
          },
          "bank_type": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "minLength": 1,
            "maxLength": 1,
            "nullable": true,
            "example": "0",
            "description": "金融機関種別。\n\n- `0`: ゆうちょ銀行以外の金融機関\n- `1`: ゆうちょ銀行\n"
          },
          "bank_code": {
            "type": "string",
            "example": "0310",
            "minLength": 4,
            "maxLength": 4,
            "nullable": true,
            "description": "金融機関コード。\\\n金融機関のコードです。\\\n例：`0310`\n"
          },
          "bank_name": {
            "type": "string",
            "example": "GMOあおぞらネット銀行",
            "minLength": 1,
            "maxLength": 45,
            "nullable": true,
            "description": "金融機関名\n"
          },
          "branch_code": {
            "type": "string",
            "example": "301",
            "minLength": 3,
            "maxLength": 3,
            "nullable": true,
            "description": "支店コード。\\\n金融機関の支店コードです。\\\n例：`001`\n"
          },
          "branch_name": {
            "type": "string",
            "example": "うみ支店",
            "minLength": 1,
            "maxLength": 45,
            "description": "支店名\n"
          },
          "account_type": {
            "type": "string",
            "enum": [
              "1",
              "2"
            ],
            "minLength": 1,
            "maxLength": 1,
            "example": "1",
            "nullable": true,
            "description": "預金区分\n\n- `1`: 普通\n- `2`: 当座\n"
          },
          "account_number": {
            "type": "string",
            "example": "1234567",
            "nullable": true,
            "minLength": 1,
            "maxLength": 7,
            "description": "口座番号\n"
          },
          "postal_account_number_1": {
            "type": "string",
            "example": "12345",
            "nullable": true,
            "minLength": 1,
            "maxLength": 5,
            "description": "ゆうちょ 預金記号\n"
          },
          "postal_account_number_2": {
            "type": "string",
            "example": "06789012",
            "nullable": true,
            "minLength": 1,
            "maxLength": 8,
            "description": "ゆうちょ 預金番号\n"
          },
          "account_name": {
            "type": "string",
            "example": "イプシロン　太郎",
            "nullable": true,
            "minLength": 1,
            "maxLength": 45,
            "description": "口座名義\n"
          },
          "account_name_kana": {
            "type": "string",
            "example": "イプシロン　タロウ",
            "nullable": true,
            "minLength": 1,
            "maxLength": 30,
            "description": "口座名義（カナ）\n"
          },
          "paper_application": {
            "type": "object",
            "nullable": true,
            "description": "依頼書登録のパラメータ<br />\n<span class=\"smallText\">\n※ 依頼書登録により登録された口座の場合、この`paper_application`オブジェクトに依頼書からM's PayBridgeに転記した内容が含められます。\n</span>\n",
            "properties": {
              "preregistered_date": {
                "type": "string",
                "example": "2022/05/16 23:59:59.999",
                "nullable": true,
                "description": "依頼書 仮登録日時。\\\n依頼書を仮登録した日時です。\\\n形式：`yyyy/MM/dd HH:mm:ss.SSS`\n"
              },
              "request_form_id": {
                "type": "string",
                "example": "12345678901234567890",
                "minLength": 1,
                "maxLength": 20,
                "nullable": true,
                "description": "依頼書ID。\\\n依頼書を管理画面から登録した際に登録者が指定した、依頼書を一意に識別するIDです。\n"
              },
              "paper_failure_description": {
                "type": "string",
                "example": "依頼書の登録が○○○という理由で失敗しました。",
                "nullable": true,
                "minLength": 1,
                "maxLength": 200,
                "description": "依頼書登録に失敗した理由。\n"
              }
            }
          }
        }
      },
      "va_branch_code": {
        "type": "string",
        "nullable": true,
        "minLength": 1,
        "maxLength": 3,
        "example": "502",
        "description": "支店コード\\\n\\\n発行されたバーチャル口座の支店コードです。\n"
      },
      "va_branch_name": {
        "type": "string",
        "nullable": true,
        "maxLength": 15,
        "example": "アジサイ",
        "description": "支店名\\\n\\\n発行されたバーチャル口座の支店名です。\n"
      },
      "va_account_number": {
        "type": "string",
        "nullable": true,
        "minLength": 7,
        "maxLength": 7,
        "example": "1234567",
        "description": "口座番号\\\n\\\n発行されたバーチャル口座の口座番号です。\n"
      },
      "va_account_name": {
        "type": "string",
        "nullable": true,
        "maxLength": 40,
        "example": "ジーエムオーイプシロン（カ",
        "description": "口座名義\\\n\\\n発行されたバーチャル口座の口座名義です。\n"
      },
      "virtual_account_id": {
        "type": "string",
        "nullable": true,
        "minLength": 10,
        "maxLength": 10,
        "example": "1234567890",
        "description": "バーチャル口座ID\\\n\\\n発行されたバーチャル口座のIDです。\n"
      },
      "account_assignment_date": {
        "type": "string",
        "nullable": true,
        "example": "2022/05/16 12:34:56.999",
        "description": "バーチャル口座 割当日時\\\n形式： `yyyy/MM/dd HH:mm:ss.SSS`\n"
      },
      "virtualaccount": {
        "type": "object",
        "nullable": true,
        "description": "<span class=\"smallText\">この決済手段が銀行振込（バーチャル口座）を表す（`pay_type = Virtualaccount`）とき、バーチャル口座情報の詳細がこの`virtualaccount`オブジェクトに格納されます。</span>\n",
        "properties": {
          "va_branch_code": {
            "$ref": "#/components/schemas/va_branch_code"
          },
          "va_branch_name": {
            "$ref": "#/components/schemas/va_branch_name"
          },
          "va_account_number": {
            "$ref": "#/components/schemas/va_account_number"
          },
          "va_account_name": {
            "$ref": "#/components/schemas/va_account_name"
          },
          "virtual_account_id": {
            "$ref": "#/components/schemas/virtual_account_id"
          },
          "account_assignment_date": {
            "$ref": "#/components/schemas/account_assignment_date"
          },
          "last_activated_date": {
            "type": "string",
            "example": "2022/05/16 23:59:59.999",
            "nullable": true,
            "description": "最終有効化日時\\\nこのバーチャル口座が有効化された最終日時です。\\\n形式：`yyyy/MM/dd HH:mm:ss.SSS`\n"
          },
          "latest_transaction_date": {
            "type": "string",
            "example": "2022/05/16",
            "nullable": true,
            "description": "最新取引日時\\\nこのバーチャル口座で発生した取引のうち、最も新しい日時です。\\\n形式：`yyyy/MM/dd`\n"
          }
        }
      },
      "CustomerPaymentMethod.ListRetrieving.Response": {
        "type": "object",
        "properties": {
          "list": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/PaymentMethod_properties-id"
                    }
                  ],
                  "description": "決済手段ID\n"
                },
                "pay_type": {
                  "type": "string",
                  "enum": [
                    "Card",
                    "Directdebit",
                    "Virtualaccount"
                  ],
                  "example": "Directdebit",
                  "description": "- `Card`\n- `Directdebit`\n- `Virtualaccount`\n"
                },
                "customer_id": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/properties-customer_id"
                    }
                  ]
                },
                "status": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/status"
                    }
                  ]
                },
                "redirect_url": {
                  "type": "string",
                  "example": "https://url.to/redirect/payer",
                  "maxLength": 256,
                  "nullable": true,
                  "description": "リダイレクトURL \\\n購入者をこのURLへリダイレクトさせ、ステータスがAWAITING_CUSTOMER_ACTION の決済手段を有効化するための後続の処理へ誘導してください。\n- 振替口座登録の場合： このURLにアクセスして振替口座登録の承認を行います。このURLには1度だけアクセスできます。\n"
                },
                "redirect_url_accessed_flag": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/redirect_url_accessed_flag"
                    }
                  ]
                },
                "return_url": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/return_url"
                    }
                  ]
                },
                "return_url_on_failure": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/return_url_on_failure"
                    }
                  ]
                },
                "default_flag": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/properties-default_flag"
                    }
                  ]
                },
                "client_field_1": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/client_field_1"
                    }
                  ]
                },
                "client_field_2": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/client_field_2"
                    }
                  ]
                },
                "client_field_3": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/client_field_3"
                    }
                  ]
                },
                "delete_flag": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/properties-delete_flag"
                    }
                  ]
                },
                "process_date": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/properties-process_date"
                    }
                  ]
                },
                "created": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/properties-created"
                    }
                  ]
                },
                "updated": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/properties-updated"
                    }
                  ]
                },
                "card": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/card"
                    }
                  ]
                },
                "directdebit": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/directdebit"
                    }
                  ]
                },
                "virtualaccount": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/virtualaccount"
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "tds2_ch_acc_change": {
        "type": "string",
        "example": "20240101",
        "minLength": 8,
        "maxLength": 8,
        "nullable": true,
        "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n購入者ユーザーアカウント 最終更新日\\\n形式：`YYYYMMDD`\\\n\\\n加盟店アプリケーションにおけるユーザーアカウントの情報が最後に更新された日付を設定します。\n"
      },
      "tds2_ch_acc_date": {
        "type": "string",
        "example": "20220101",
        "minLength": 8,
        "maxLength": 8,
        "nullable": true,
        "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n購入者ユーザーアカウント 開設日\\\n形式：`YYYYMMDD`\\\n\\\n加盟店アプリケーションにおけるユーザーアカウントの開設日を設定します。\n"
      },
      "tds2_ch_acc_pw_change": {
        "type": "string",
        "example": "20230101",
        "minLength": 8,
        "maxLength": 8,
        "nullable": true,
        "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n購入者ユーザーアカウント パスワード最終更新日\\\n形式：`YYYYMMDD`\\\n\\\n加盟店アプリケーションにおけるユーザーアカウントのパスワードが最後に更新された日付を設定します。\n"
      },
      "tds2_nb_purchase_account": {
        "type": "string",
        "example": "9999",
        "minLength": 1,
        "maxLength": 4,
        "nullable": true,
        "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n購入者の過去6カ月間の購入回数\n"
      },
      "tds2_payment_acc_age": {
        "type": "string",
        "example": "20231231",
        "minLength": 8,
        "maxLength": 8,
        "nullable": true,
        "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客ユーザーアカウント カード登録日。\\\n形式：`YYYYMMDD`\n"
      },
      "tds2_provision_attempts_day": {
        "type": "string",
        "example": "999",
        "minLength": 3,
        "maxLength": 3,
        "nullable": true,
        "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客ユーザーアカウント 過去24時間のカード追加の試行回数\n"
      },
      "tds2_ship_address_usage": {
        "type": "string",
        "example": "20230930",
        "minLength": 8,
        "maxLength": 8,
        "nullable": true,
        "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n配送先住所の最初の使用日。\\\n形式：`YYYYMMDD`\n"
      },
      "tds2_ship_name_ind": {
        "type": "string",
        "enum": [
          "01",
          "02"
        ],
        "minLength": 2,
        "maxLength": 2,
        "nullable": true,
        "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n購入者名と配送先名が一致しているか否か\\\n購入者名と登録に使用される配送先名の一致/不一致を設定\n\n- `01`: 顧客名と配送先名が一致\n- `02`: 顧客名と配送先名が不一致\n"
      },
      "tds2_suspicious_acc_activity": {
        "type": "string",
        "enum": [
          "01",
          "02"
        ],
        "minLength": 2,
        "maxLength": 2,
        "nullable": true,
        "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客ユーザーアカウント 不審行為有無\\\n顧客ユーザーアカウントで、不審な行動（過去の不正行為を含む）を加盟店様が発見したかどうかを設定\n\n- `01`: 不審な行動なし\n- `02`: 不審な行動あり\n"
      },
      "tds2_txn_activity_day": {
        "type": "string",
        "example": "999",
        "minLength": 3,
        "maxLength": 3,
        "nullable": true,
        "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n購入者の過去24時間の取引回数\n"
      },
      "tds2_txn_activity_year": {
        "type": "string",
        "example": "999",
        "minLength": 3,
        "maxLength": 3,
        "nullable": true,
        "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n前年の取引回数\n"
      },
      "tds2_three_ds_req_auth_data": {
        "type": "string",
        "minLength": 1,
        "maxLength": 2048,
        "nullable": true,
        "example": null,
        "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客ユーザーアカウント ログイン証跡\\\n\\\n加盟店アプリケーションにおけるログインの証跡。\nログイン証跡を設定する場合、ログイン方法とログイン日時の設定が必要です。\n"
      },
      "tds2_three_ds_req_auth_method": {
        "type": "string",
        "enum": [
          "01",
          "02",
          "03",
          "04",
          "05",
          "06"
        ],
        "minLength": 2,
        "maxLength": 2,
        "nullable": true,
        "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客ユーザーアカウント ログイン方法\\\nログイン方法を設定する場合、ログイン証跡とログイン日時の設定が必要です。\n\n- `01`: 認証なし（ゲストとしてログイン）\n- `02`: 加盟店様自身の認証情報\n- `03`: SSO(シングルサインオン)\n- `04`: イシュアーの認証情報\n- `05`: サードパーティ認証\n- `06`: FIDO認証\n"
      },
      "tds2_three_ds_req_auth_timestamp": {
        "type": "string",
        "example": "202205191234",
        "minLength": 12,
        "maxLength": 12,
        "nullable": true,
        "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客ユーザーアカウント ログイン日時\\\n\\\nログイン証跡を設定する場合、ログイン方法とログイン日時の設定が必要です。\\\n形式：`YYYYMMDDHHmm`\n"
      },
      "tds2_email": {
        "type": "string",
        "minLength": 1,
        "maxLength": 254,
        "nullable": true,
        "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客のメールアドレス\\\n\\\n未指定の場合、顧客の`email`が自動で設定されます。\\\n\\\n2024年8月12日以降、下記の内少なくとも1つが必須となります。\n\n- 顧客の自宅電話番号（`tds2_home_phone_no`）\n- 顧客の携帯電話番号（`tds2_mobile_phone_no`）\n- 顧客の職場電話番号（`tds2_work_phone_no`）\n- 顧客のメールアドレス（`tds2_email`）\n\n※当面は連携しなかった場合でも認証は実施されますが、将来的には利用不可になる可能性があります。\n"
      },
      "tds2_addr_match": {
        "type": "string",
        "enum": [
          "Y",
          "N"
        ],
        "example": "Y",
        "minLength": 1,
        "maxLength": 1,
        "nullable": true,
        "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n請求先住所と配送先住所が一致しているか否か\n\n- `Y`: 住所は一致している\n- `N`: 住所は一致していない\n"
      },
      "tds2_bill_addr_country": {
        "type": "string",
        "example": "392",
        "minLength": 1,
        "maxLength": 3,
        "nullable": true,
        "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客の請求先住所 国コード\\\n形式：ISO 3166-1 numeric\n\\\n未指定の場合、顧客の`addr_country`が自動で設定されます。  \nショップ側で顧客の住所情報を保持している場合、指定が必須となります。  \n※住所情報を保持していない場合、指定は不要です。\n"
      },
      "tds2_bill_addr_state": {
        "type": "string",
        "example": "13",
        "minLength": 1,
        "maxLength": 3,
        "nullable": true,
        "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客の請求先住所 州または都道府県コード。\\\n参照： [国土交通省 都道府県コード](https://nlftp.mlit.go.jp/ksj/gml/codelist/PrefCd.html)\\\n\\\n未指定の場合、顧客の`addr_state`が自動で設定されます。  \nショップ側で顧客の住所情報を保持している場合、指定が必須となります。  \n※住所情報を保持していない場合、指定は不要です。\n"
      },
      "tds2_bill_addr_city": {
        "type": "string",
        "example": "渋谷区",
        "minLength": 1,
        "maxLength": 50,
        "nullable": true,
        "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客の請求先住所 都市名\\\n\\\n未指定の場合、顧客の`addr_city`が自動で設定されます。  \nショップ側で顧客の住所情報を保持している場合、指定が必須となります。  \n※住所情報を保持していない場合、指定は不要です。\n"
      },
      "tds2_bill_addr_line_1": {
        "type": "string",
        "example": "道玄坂1-14-6",
        "minLength": 1,
        "maxLength": 50,
        "nullable": true,
        "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客の請求先住所 区域部1行目\\\n\\\n顧客の住所の番地・区画を指定してください。未指定の場合。顧客の`addr_line_1`が自動で設定されます。\n\n- 都道府県や市区を含めることができます。\n- 保持している住所をパラメータの形式に分割できない場合は、桁数が収まるように`tds2_bill_addr_line_1` ~ `tds2_bill_addr_line_3`に住所を設定してください。\n- `tds2_bill_addr_line_2`と`tds2_bill_addr_line_3`を空にして、`tds2_bill_addr_line_1`に全ての住所を設定できます。\n\n未指定の場合、顧客に登録された`addr_line_1`を設定します。  \nショップ側で顧客の住所情報を保持している場合、指定が必須となります。  \n※住所情報を保持していない場合、指定は不要です。\n"
      },
      "tds2_bill_addr_line_2": {
        "type": "string",
        "example": "ヒューマックス渋谷ビル",
        "minLength": 1,
        "maxLength": 50,
        "nullable": true,
        "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客の請求先住所 区域部2行目\\\n\\\n顧客の住所の建物名・部屋番号を指定してください。未指定の場合、顧客に登録された`addr_line_2`を設定します。\n"
      },
      "tds2_bill_addr_line_3": {
        "type": "string",
        "example": "7F",
        "minLength": 1,
        "maxLength": 50,
        "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客の請求先住所 区域部3行目\\\n\\\n顧客の住所のその他を指定してください。未指定の場合、顧客に登録された`addr_line_3`を設定します。\n"
      },
      "tds2_bill_addr_post_code": {
        "type": "string",
        "example": "150-0043",
        "minLength": 1,
        "maxLength": 16,
        "nullable": true,
        "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客の請求先住所 郵便番号\\\n\\\n未指定の場合、顧客に登録された`addr_post_code`を設定します。  \nショップ側で顧客の住所情報を保持している場合、指定が必須となります。  \n※住所情報を保持していない場合、指定は不要です。\n"
      },
      "tds2_ship_addr_country": {
        "type": "string",
        "example": "392",
        "minLength": 1,
        "maxLength": 3,
        "nullable": true,
        "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客の配送先住所 国コード。\\\n形式：ISO 3166-1 numeric\n"
      },
      "tds2_ship_addr_state": {
        "type": "string",
        "example": "13",
        "minLength": 1,
        "maxLength": 3,
        "nullable": true,
        "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客の配送先住所 州または都道府県コード。\\\n参照： [国土交通省 都道府県コード](https://nlftp.mlit.go.jp/ksj/gml/codelist/PrefCd.html)\n"
      },
      "tds2_ship_addr_city": {
        "type": "string",
        "example": "渋谷区",
        "minLength": 1,
        "maxLength": 50,
        "nullable": true,
        "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客の配送先住所 都市名\n"
      },
      "tds2_ship_addr_line_1": {
        "type": "string",
        "example": "道玄坂1-14-6",
        "minLength": 1,
        "maxLength": 50,
        "nullable": true,
        "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客の配送先住所 区域部1行目\n"
      },
      "tds2_ship_addr_line_2": {
        "type": "string",
        "example": "ヒューマックス渋谷ビル",
        "minLength": 1,
        "maxLength": 50,
        "nullable": true,
        "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客の配送先住所 区域部2行目\n"
      },
      "tds2_ship_addr_line_3": {
        "type": "string",
        "example": "7F",
        "minLength": 1,
        "maxLength": 50,
        "nullable": true,
        "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客の配送先住所 区域部3行目\n"
      },
      "tds2_ship_addr_post_code": {
        "type": "string",
        "example": "150-0043",
        "minLength": 1,
        "maxLength": 16,
        "nullable": true,
        "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客の配送先住所 郵便番号\n"
      },
      "tds2_ship_ind": {
        "type": "string",
        "enum": [
          "01",
          "02",
          "03",
          "04",
          "05",
          "06",
          "07"
        ],
        "example": "01",
        "minLength": 2,
        "maxLength": 2,
        "nullable": true,
        "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n取引商品の配送方法\n\n- `01`: 顧客の請求先住所に配送\n- `02`: 加盟店が保持している確認済み住所（請求先住所でない）に配送\n- `03`: 顧客の請求先住所と異なる住所に配送\n- `04`: 店舗への配送（店舗の住所は配送先住所で指定）\n- `05`: デジタル商品（オンラインサービス、電子ギフトカードおよび償還コードを含む）\n- `06`: 配送なし（旅行およびイベントのチケット）\n- `07`: その他（ゲーム、配送されないデジタルサービス、電子メディアの購読料など）\n"
      },
      "tds2_delivery_email_address": {
        "type": "string",
        "example": "email@example.com",
        "minLength": 1,
        "maxLength": 254,
        "nullable": true,
        "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客 メールアドレス\n"
      },
      "tds2_home_phone_cc": {
        "type": "string",
        "example": "81",
        "minLength": 1,
        "maxLength": 3,
        "nullable": true,
        "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客の自宅電話番号の国コード（+を含まない）\\\n※ この値を設定する場合、`tds2_home_phone_no`の設定が必要です。\\\n\\\n未指定の場合、顧客の`phone_cc`が自動で設定されます。\n"
      },
      "tds2_home_phone_no": {
        "type": "string",
        "example": "312345678",
        "minLength": 1,
        "maxLength": 15,
        "nullable": true,
        "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客の自宅電話番号（ハイフンなし半角数字のみ）\\\n※ この値を設定する場合、`tds2_home_phone_cc`の設定が必要です。\\\n\\\n未指定の場合、顧客の`phone_no`が自動で設定されます。\\\n\\\n2024年8月12日以降、下記の内少なくとも1つが必須となります。\n\n- 顧客の自宅電話番号（`tds2_home_phone_no`）\n- 顧客の携帯電話番号（`tds2_mobile_phone_no`）\n- 顧客の職場電話番号（`tds2_work_phone_no`）\n- 顧客のメールアドレス（`tds2_email`）\n\n※当面は連携しなかった場合でも認証は実施されますが、将来的には利用不可になる可能性があります。\n"
      },
      "tds2_mobile_phone_cc": {
        "type": "string",
        "example": "81",
        "minLength": 1,
        "maxLength": 3,
        "nullable": true,
        "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客の携帯電話番号の国コード（+を含まない）\\\n※ この値を設定する場合、`tds2_mobile_phone_no`の設定が必要です。\n"
      },
      "tds2_mobile_phone_no": {
        "type": "string",
        "example": "9012345678",
        "minLength": 1,
        "maxLength": 15,
        "nullable": true,
        "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客の携帯電話番号（ハイフンなし半角数字のみ）\\\n※ この値を設定する場合、`tds2_mobile_phone_cc`の設定が必要です。\\\n\\\n2024年8月12日以降、下記の内少なくとも1つが必須となります。\n\n- 顧客の自宅電話番号（`tds2_home_phone_no`）\n- 顧客の携帯電話番号（`tds2_mobile_phone_no`）\n- 顧客の職場電話番号（`tds2_work_phone_no`）\n- 顧客のメールアドレス（`tds2_email`）\n\n※当面は連携しなかった場合でも認証は実施されますが、将来的には利用不可になる可能性があります。\n"
      },
      "tds2_work_phone_cc": {
        "type": "string",
        "example": "81",
        "minLength": 1,
        "maxLength": 3,
        "nullable": true,
        "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客の勤務先電話番号の国コード（+を含まない）\\\n※ この値を設定する場合、`tds2_work_phone_no`の設定が必要です。\n"
      },
      "tds2_work_phone_no": {
        "type": "string",
        "example": "312345678",
        "minLength": 1,
        "maxLength": 15,
        "nullable": true,
        "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客の勤務先電話番号（ハイフンなし半角数字のみ）\\\n※ この値を設定する場合、`tds2_work_phone_cc`の設定が必要です。\\\n\\\n2024年8月12日以降、下記の内少なくとも1つが必須となります。\n\n- 顧客の自宅電話番号（`tds2_home_phone_no`）\n- 顧客の携帯電話番号（`tds2_mobile_phone_no`）\n- 顧客の職場電話番号（`tds2_work_phone_no`）\n- 顧客のメールアドレス（`tds2_email`）\n\n※当面は連携しなかった場合でも認証は実施されますが、将来的には利用不可になる可能性があります。\n"
      },
      "tds2_delivery_timeframe": {
        "type": "string",
        "enum": [
          "01",
          "02",
          "03",
          "04"
        ],
        "example": "01",
        "minLength": 2,
        "maxLength": 2,
        "nullable": true,
        "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n商品納品時間枠\n\n- `01`: 電子デリバリー\n- `02`: 当日出荷\n- `03`: 翌日出荷\n- `04`: 2日目以降の出荷\n"
      },
      "tds2_pre_order_date": {
        "type": "string",
        "example": "20231231",
        "minLength": 8,
        "maxLength": 8,
        "nullable": true,
        "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n商品の発売予定日\\\n形式：`YYYYMMDD`\n"
      },
      "tds2_pre_order_purchase_ind": {
        "type": "string",
        "enum": [
          "01",
          "02"
        ],
        "example": "01",
        "minLength": 2,
        "maxLength": 2,
        "nullable": true,
        "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n商品の販売時期情報\n\n- `01`: 発売済み商品\n- `02`: 先行予約商品\n"
      },
      "tds2_reorder_items_ind": {
        "type": "string",
        "enum": [
          "01",
          "02"
        ],
        "example": "01",
        "minLength": 2,
        "maxLength": 2,
        "nullable": true,
        "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n商品の注文が初回か再注文か\n\n- `01`: 初回注文\n- `02`: 再注文\n"
      },
      "tds2_recurring_expiry": {
        "type": "string",
        "example": "20231231",
        "minLength": 8,
        "maxLength": 8,
        "nullable": true,
        "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n※ サブスクリプションなど継続課金型のビジネスモデルのみ\\\n継続課金の終了日\\\n形式：`YYYYMMDD`\n"
      },
      "tds2_recurring_frequency": {
        "type": "string",
        "example": "99",
        "minLength": 1,
        "maxLength": 4,
        "nullable": true,
        "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n※ サブスクリプションなど継続課金型のビジネスモデルのみ\\\n継続課金の課金間隔の日数（最小）\n"
      },
      "tds2_gift_card_amount": {
        "type": "string",
        "example": "999999",
        "minLength": 1,
        "maxLength": 15,
        "nullable": true,
        "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n※ プリペイドカードまたはギフトカードを購入する場合のみ\\\nプリペイドカードまたはギフトカードの総購入金額\n"
      },
      "tds2_gift_card_count": {
        "type": "string",
        "example": "99",
        "minLength": 1,
        "maxLength": 2,
        "nullable": true,
        "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n※ プリペイドカードまたはギフトカードを購入する場合のみ\\\n購入したプリペイドカードまたはギフトカードの総数\n"
      },
      "tds2_gift_card_curr": {
        "type": "string",
        "example": "392",
        "minLength": 1,
        "maxLength": 3,
        "nullable": true,
        "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n※ プリペイドカードまたはギフトカードを購入する場合のみ\\\nプリペイドカードまたはギフトカードの通貨コード。\\\n形式：ISO 4217 numeric\\\n\\\n以下の通貨コードは利用できません。（債券市場単位等）\\\n`955`, `956`, `957`, `958`, `959`, `960`, `961`, `962`, `963`, `964`, `999`\n"
      },
      "bank_code": {
        "type": "string",
        "example": "0310",
        "minLength": 4,
        "maxLength": 4,
        "nullable": true,
        "description": "金融機関コード。\\\n金融機関のコードです。\\\n例：`0310`\n"
      },
      "branch_code": {
        "type": "string",
        "example": "301",
        "minLength": 3,
        "maxLength": 3,
        "nullable": true,
        "description": "支店コード。\\\n金融機関の支店コードです。\\\n例：`001`\n"
      },
      "account_type": {
        "type": "string",
        "enum": [
          "1",
          "2"
        ],
        "minLength": 1,
        "maxLength": 1,
        "example": "1",
        "nullable": true,
        "description": "預金区分\n\n- `1`: 普通\n- `2`: 当座\n"
      },
      "account_number": {
        "type": "string",
        "example": "1234567",
        "nullable": true,
        "minLength": 1,
        "maxLength": 7,
        "description": "口座番号\n"
      },
      "account_name": {
        "type": "string",
        "example": "イプシロン　太郎",
        "nullable": true,
        "minLength": 1,
        "maxLength": 45,
        "description": "口座名義\n"
      },
      "account_name_kana": {
        "type": "string",
        "example": "イプシロン　タロウ",
        "nullable": true,
        "minLength": 1,
        "maxLength": 30,
        "description": "口座名義（カナ）\n"
      },
      "paper_application": {
        "type": "object",
        "description": "依頼書登録のパラメータ\n",
        "properties": {
          "postal_account_number_1": {
            "type": "string",
            "example": "12345",
            "nullable": true,
            "minLength": 1,
            "maxLength": 5,
            "description": "ゆうちょ 預金記号\n"
          },
          "postal_account_number_2": {
            "type": "string",
            "example": "06789012",
            "nullable": true,
            "minLength": 1,
            "maxLength": 8,
            "description": "ゆうちょ 預金番号\n"
          },
          "request_form_id": {
            "type": "string",
            "example": "12345678901234567890",
            "minLength": 1,
            "maxLength": 20,
            "nullable": false,
            "description": "依頼書ID。\\\n依頼書を管理画面から登録した際に登録者が指定した、依頼書を一意に識別するIDです。\\\n※プラットフォームショップの場合、プラットフォーム全体で一意である必要があります。\n"
          }
        }
      },
      "CustomerPaymentMethod.Creating.Request": {
        "type": "object",
        "properties": {
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentMethodPayType"
              }
            ]
          },
          "default_flag": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-default_flag"
              }
            ]
          },
          "return_url": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/return_url"
              }
            ]
          },
          "return_url_on_failure": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/return_url_on_failure"
              }
            ]
          },
          "client_field_1": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_1"
              }
            ],
            "description": "加盟店自由項目 1\n"
          },
          "client_field_2": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_2"
              }
            ],
            "description": "加盟店自由項目 2\n"
          },
          "client_field_3": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_3"
              }
            ],
            "description": "加盟店自由項目 3\n"
          },
          "card": {
            "type": "object",
            "nullable": true,
            "description": "<span class=\"smallText\">※ `pay_type = \"Card\"`（この決済手段登録がカード情報登録である）のとき必須</span>\n",
            "properties": {
              "token": {
                "nullable": false,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/token"
                  }
                ]
              },
              "card_updater_mode": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/card_updater_mode"
                  }
                ],
                "description": "カード更新機能（洗替）利用設定\n"
              },
              "tds_type": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds_type"
                  }
                ],
                "description": "3Dセキュア認証を利用するか。\\\n<span class=\"smallText\">カード情報を登録する場合に指定します（省略可能）。</span>\n\n- `0`: 3Dセキュア認証を利用しない（デフォルト）\n- `2`: 3Dセキュア2.0認証を利用する\n"
              },
              "tds2_type": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_type"
                  }
                ]
              },
              "td_tenant_name": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/td_tenant_name"
                  }
                ]
              },
              "tds2_ch_acc_change": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_ch_acc_change"
                  }
                ]
              },
              "tds2_ch_acc_date": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_ch_acc_date"
                  }
                ]
              },
              "tds2_ch_acc_pw_change": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_ch_acc_pw_change"
                  }
                ]
              },
              "tds2_nb_purchase_account": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_nb_purchase_account"
                  }
                ]
              },
              "tds2_payment_acc_age": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_payment_acc_age"
                  }
                ]
              },
              "tds2_provision_attempts_day": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_provision_attempts_day"
                  }
                ]
              },
              "tds2_ship_address_usage": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_ship_address_usage"
                  }
                ]
              },
              "tds2_ship_name_ind": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_ship_name_ind"
                  }
                ]
              },
              "tds2_suspicious_acc_activity": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_suspicious_acc_activity"
                  }
                ]
              },
              "tds2_txn_activity_day": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_txn_activity_day"
                  }
                ]
              },
              "tds2_txn_activity_year": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_txn_activity_year"
                  }
                ]
              },
              "tds2_three_ds_req_auth_data": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_three_ds_req_auth_data"
                  }
                ]
              },
              "tds2_three_ds_req_auth_method": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_three_ds_req_auth_method"
                  }
                ]
              },
              "tds2_three_ds_req_auth_timestamp": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_three_ds_req_auth_timestamp"
                  }
                ]
              },
              "tds2_email": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_email"
                  }
                ]
              },
              "tds2_addr_match": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_addr_match"
                  }
                ]
              },
              "tds2_bill_addr_country": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_bill_addr_country"
                  }
                ]
              },
              "tds2_bill_addr_state": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_bill_addr_state"
                  }
                ]
              },
              "tds2_bill_addr_city": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_bill_addr_city"
                  }
                ]
              },
              "tds2_bill_addr_line_1": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_bill_addr_line_1"
                  }
                ]
              },
              "tds2_bill_addr_line_2": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_bill_addr_line_2"
                  }
                ]
              },
              "tds2_bill_addr_line_3": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_bill_addr_line_3"
                  }
                ]
              },
              "tds2_bill_addr_post_code": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_bill_addr_post_code"
                  }
                ]
              },
              "tds2_ship_addr_country": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_ship_addr_country"
                  }
                ]
              },
              "tds2_ship_addr_state": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_ship_addr_state"
                  }
                ]
              },
              "tds2_ship_addr_city": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_ship_addr_city"
                  }
                ]
              },
              "tds2_ship_addr_line_1": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_ship_addr_line_1"
                  }
                ]
              },
              "tds2_ship_addr_line_2": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_ship_addr_line_2"
                  }
                ]
              },
              "tds2_ship_addr_line_3": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_ship_addr_line_3"
                  }
                ]
              },
              "tds2_ship_addr_post_code": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_ship_addr_post_code"
                  }
                ]
              },
              "tds2_ship_ind": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_ship_ind"
                  }
                ]
              },
              "tds2_delivery_email_address": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_delivery_email_address"
                  }
                ]
              },
              "tds2_home_phone_cc": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_home_phone_cc"
                  }
                ]
              },
              "tds2_home_phone_no": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_home_phone_no"
                  }
                ]
              },
              "tds2_mobile_phone_cc": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_mobile_phone_cc"
                  }
                ]
              },
              "tds2_mobile_phone_no": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_mobile_phone_no"
                  }
                ]
              },
              "tds2_work_phone_cc": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_work_phone_cc"
                  }
                ]
              },
              "tds2_work_phone_no": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_work_phone_no"
                  }
                ]
              },
              "tds2_delivery_timeframe": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_delivery_timeframe"
                  }
                ]
              },
              "tds2_pre_order_date": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_pre_order_date"
                  }
                ]
              },
              "tds2_pre_order_purchase_ind": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_pre_order_purchase_ind"
                  }
                ]
              },
              "tds2_reorder_items_ind": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_reorder_items_ind"
                  }
                ]
              },
              "tds2_recurring_expiry": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_recurring_expiry"
                  }
                ]
              },
              "tds2_recurring_frequency": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_recurring_frequency"
                  }
                ]
              },
              "tds2_gift_card_amount": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_gift_card_amount"
                  }
                ]
              },
              "tds2_gift_card_count": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_gift_card_count"
                  }
                ]
              },
              "tds2_gift_card_curr": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_gift_card_curr"
                  }
                ]
              }
            },
            "required": [
              "token"
            ]
          },
          "directdebit": {
            "type": "object",
            "nullable": true,
            "description": "<span class=\"smallText\">※ `pay_type = \"Directdebit\"`（この決済手段登録が口座振替用の口座情報登録である）のとき必須</span>",
            "properties": {
              "application_type": {
                "nullable": false,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/DirectDebitApplicationType"
                  }
                ]
              },
              "settlement_route": {
                "nullable": false,
                "type": "string",
                "enum": [
                  "1",
                  "2"
                ],
                "example": "1",
                "minLength": 1,
                "maxLength": 1,
                "description": "振替サービス\\\n口座を登録する振替サービスを指定します。\\\n指定しなかった場合はデフォルトの振替サービスに口座が登録されます。\\\n※デフォルトは審査完了日時が最新の振替サービスとなります。\n\n- `1`: 口座振替（5・6・23・27日）\n- `2`: 口座振替（1・5・20・26日）\n"
              },
              "bank_code": {
                "nullable": false,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/bank_code"
                  }
                ]
              },
              "branch_code": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/branch_code"
                  }
                ],
                "description": "支店コード\\\nゆうちょ銀行以外（`bank_code`が`9900`でない）のとき必須\n"
              },
              "account_type": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/account_type"
                  }
                ],
                "description": "預金区分\\\nゆうちょ銀行以外（`bank_code`が`9900`でない）のとき必須\n\n- `1`: 普通\n- `2`: 当座\n"
              },
              "account_number": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/account_number"
                  }
                ],
                "description": "口座番号\\\nゆうちょ銀行以外（`bank_code`が`9900`でない）のとき必須\\\n形式： 左0埋め\n"
              },
              "account_name": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/account_name"
                  }
                ]
              },
              "account_name_kana": {
                "nullable": false,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/account_name_kana"
                  }
                ],
                "description": "口座名義（カナ）\\\n形式： 半角英数カナ記号、全角英数カナ記号、一部の記号、半角全角スペース\\\n\\\n使用可能な記号は以下の通りです。\n\n- 半角：`.` `(` `)` `–`\n- 全角：`．` `（` `）` `ー`\n"
              },
              "paper_application": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/paper_application"
                  }
                ],
                "required": [
                  "request_form_id"
                ]
              }
            },
            "required": [
              "application_type",
              "bank_code",
              "account_name_kana"
            ]
          }
        },
        "required": [
          "pay_type",
          "default_flag"
        ]
      },
      "redirect_url": {
        "type": "string",
        "example": "https://url.to/redirect/payer",
        "maxLength": 256,
        "nullable": true,
        "description": "リダイレクトURL \\\n購入者をこのURLへリダイレクトさせ、ステータスがAWAITING_CUSTOMER_ACTION の決済手段を有効化するための後続の処理へ誘導してください。  \n- 振替口座登録の場合： このURLにアクセスして振替口座登録の承認を行います。このURLには1度だけアクセスできます。\n- カード登録の場合： このURLにアクセスして3Dセキュア認証を行います。\\\n<span class=\"smallText\">※ `pay_type = Card`（カード）の場合、この項目は決済手段の登録・更新のレスポンスでのみ返却されます（取得・一覧取得・削除のレスポンスでは返却されません）。</span>\n"
      },
      "error_code": {
        "type": "string",
        "minLength": 11,
        "maxLength": 11,
        "example": "E**********",
        "description": "エラー内容を判定する場合はこの`error_code`の使用が推奨されます。\\\n[各エラーコードの定義はこちらを参照](https://mpb-mizuhobank-docs.fincode.jp/develop_support/error)して確認できます。\n"
      },
      "x-res-properties-card": {
        "type": "object",
        "properties": {
          "acs": {
            "type": "string",
            "example": "1",
            "nullable": true,
            "minLength": 1,
            "maxLength": 1,
            "description": "ACS呼出判定。\n"
          },
          "error_code": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/error_code"
              }
            ],
            "description": "このカードの登録・更新において発生したエラーのうち、一番最新のエラーのエラーコードです。\\\n[各エラーコードの定義はこちらを参照](https://mpb-mizuhobank-docs.fincode.jp/develop_support/error)して確認できます。\n"
          }
        }
      },
      "CustomerPaymentMethod.Creating.Response": {
        "type": "object",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentMethod_properties-id"
              }
            ]
          },
          "pay_type": {
            "type": "string",
            "enum": [
              "Card",
              "Directdebit",
              "Virtualaccount"
            ],
            "example": "Directdebit",
            "description": "- `Card`\n- `Directdebit`\n- `Virtualaccount`\n"
          },
          "customer_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-customer_id"
              }
            ]
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/status"
              }
            ]
          },
          "redirect_url": {
            "allOf": [
              {
                "$ref": "#/components/schemas/redirect_url"
              }
            ]
          },
          "redirect_url_accessed_flag": {
            "allOf": [
              {
                "$ref": "#/components/schemas/redirect_url_accessed_flag"
              }
            ]
          },
          "return_url": {
            "allOf": [
              {
                "$ref": "#/components/schemas/return_url"
              }
            ]
          },
          "return_url_on_failure": {
            "allOf": [
              {
                "$ref": "#/components/schemas/return_url_on_failure"
              }
            ]
          },
          "default_flag": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-default_flag"
              }
            ]
          },
          "client_field_1": {
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_1"
              }
            ]
          },
          "client_field_2": {
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_2"
              }
            ]
          },
          "client_field_3": {
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_3"
              }
            ]
          },
          "delete_flag": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-delete_flag"
              }
            ]
          },
          "process_date": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-process_date"
              }
            ]
          },
          "created": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-created"
              }
            ]
          },
          "updated": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-updated"
              }
            ]
          },
          "card": {
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/card"
              },
              {
                "$ref": "#/components/schemas/x-res-properties-card"
              }
            ]
          },
          "directdebit": {
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/directdebit"
              }
            ]
          },
          "virtualaccount": {
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/virtualaccount"
              }
            ]
          }
        }
      },
      "PaymentMethodId_schema": {
        "type": "string",
        "example": "pm_**********************"
      },
      "CustomerPaymentMethod.Retrieving.QueryParams": {
        "type": "object",
        "properties": {
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentMethodPayType"
              }
            ],
            "description": "決済種別\n"
          }
        },
        "required": [
          "pay_type"
        ]
      },
      "CustomerPaymentMethod.Retrieving.Response": {
        "type": "object",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentMethod_properties-id"
              }
            ],
            "description": "決済手段ID\n"
          },
          "pay_type": {
            "type": "string",
            "enum": [
              "Card",
              "Directdebit",
              "Virtualaccount"
            ],
            "example": "Directdebit",
            "description": "- `Card`\n- `Directdebit`\n- `Virtualaccount`\n"
          },
          "customer_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-customer_id"
              }
            ]
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/status"
              }
            ]
          },
          "redirect_url": {
            "allOf": [
              {
                "$ref": "#/components/schemas/redirect_url"
              }
            ]
          },
          "redirect_url_accessed_flag": {
            "allOf": [
              {
                "$ref": "#/components/schemas/redirect_url_accessed_flag"
              }
            ]
          },
          "return_url": {
            "allOf": [
              {
                "$ref": "#/components/schemas/return_url"
              }
            ]
          },
          "return_url_on_failure": {
            "allOf": [
              {
                "$ref": "#/components/schemas/return_url_on_failure"
              }
            ]
          },
          "default_flag": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-default_flag"
              }
            ]
          },
          "client_field_1": {
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_1"
              }
            ]
          },
          "client_field_2": {
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_2"
              }
            ]
          },
          "client_field_3": {
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_3"
              }
            ]
          },
          "delete_flag": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-delete_flag"
              }
            ]
          },
          "process_date": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-process_date"
              }
            ]
          },
          "created": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-created"
              }
            ]
          },
          "updated": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-updated"
              }
            ]
          },
          "card": {
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/card"
              }
            ]
          },
          "directdebit": {
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/directdebit"
              }
            ]
          },
          "virtualaccount": {
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/virtualaccount"
              }
            ]
          }
        }
      },
      "properties-expire": {
        "allOf": [
          {
            "$ref": "#/components/schemas/expire"
          }
        ]
      },
      "properties-holder_name": {
        "allOf": [
          {
            "$ref": "#/components/schemas/holder_name"
          }
        ]
      },
      "CustomerPaymentMethod.Updating.Response": {
        "type": "object",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentMethod_properties-id"
              }
            ],
            "description": "更新された決済手段のIDです。\n"
          },
          "pay_type": {
            "type": "string",
            "enum": [
              "Card",
              "Virtualaccount"
            ],
            "example": "Virtualaccount",
            "description": "- `Card`\n- `Virtualaccount`\\\n※ 現時点では`Card`（クレジットカード）、`Virtualaccount`（銀行振込（バーチャル口座））のみ指定可能です。\n"
          },
          "customer_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-customer_id"
              }
            ]
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/status"
              }
            ]
          },
          "redirect_url": {
            "allOf": [
              {
                "$ref": "#/components/schemas/redirect_url"
              }
            ]
          },
          "default_flag": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-default_flag"
              }
            ]
          },
          "client_field_1": {
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_1"
              }
            ]
          },
          "client_field_2": {
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_2"
              }
            ]
          },
          "client_field_3": {
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_3"
              }
            ]
          },
          "delete_flag": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-delete_flag"
              }
            ]
          },
          "process_date": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-process_date"
              }
            ]
          },
          "created": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-created"
              }
            ]
          },
          "updated": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-updated"
              }
            ]
          },
          "card": {
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/card"
              },
              {
                "$ref": "#/components/schemas/x-res-properties-card"
              }
            ]
          },
          "virtualaccount": {
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/virtualaccount"
              }
            ]
          }
        }
      },
      "CustomerPaymentMethod.Deleting.Response": {
        "type": "object",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentMethod_properties-id"
              }
            ],
            "description": "削除された決済手段のIDです。\n"
          },
          "pay_type": {
            "type": "string",
            "enum": [
              "Card",
              "Directdebit",
              "Virtualaccount"
            ],
            "example": "Directdebit",
            "description": "- `Card`\n- `Directdebit`\n- `Virtualaccount`\n"
          },
          "customer_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-customer_id"
              }
            ]
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/status"
              }
            ]
          },
          "redirect_url": {
            "allOf": [
              {
                "$ref": "#/components/schemas/redirect_url"
              }
            ]
          },
          "redirect_url_accessed_flag": {
            "allOf": [
              {
                "$ref": "#/components/schemas/redirect_url_accessed_flag"
              }
            ]
          },
          "return_url": {
            "allOf": [
              {
                "$ref": "#/components/schemas/return_url"
              }
            ]
          },
          "return_url_on_failure": {
            "allOf": [
              {
                "$ref": "#/components/schemas/return_url_on_failure"
              }
            ]
          },
          "default_flag": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-default_flag"
              }
            ]
          },
          "client_field_1": {
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_1"
              }
            ]
          },
          "client_field_2": {
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_2"
              }
            ]
          },
          "client_field_3": {
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_3"
              }
            ]
          },
          "delete_flag": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-delete_flag"
              }
            ]
          },
          "process_date": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-process_date"
              }
            ]
          },
          "created": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-created"
              }
            ]
          },
          "updated": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-updated"
              }
            ]
          },
          "card": {
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/card"
              }
            ]
          },
          "directdebit": {
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/directdebit"
              }
            ]
          },
          "virtualaccount": {
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/virtualaccount"
              }
            ]
          }
        }
      },
      "CustomerPaymentMethod.Inactivating.Response": {
        "type": "object",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentMethod_properties-id"
              }
            ],
            "description": "更新された決済手段のIDです。\n"
          },
          "pay_type": {
            "type": "string",
            "enum": [
              "Virtualaccount"
            ],
            "example": "Virtualaccount",
            "description": "- `Virtualaccount`\n"
          },
          "customer_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-customer_id"
              }
            ]
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/status"
              }
            ]
          },
          "default_flag": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-default_flag"
              }
            ]
          },
          "client_field_1": {
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_1"
              }
            ]
          },
          "client_field_2": {
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_2"
              }
            ]
          },
          "client_field_3": {
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_3"
              }
            ]
          },
          "delete_flag": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-delete_flag"
              }
            ]
          },
          "process_date": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-process_date"
              }
            ]
          },
          "created": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-created"
              }
            ]
          },
          "updated": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-updated"
              }
            ]
          },
          "virtualaccount": {
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/virtualaccount"
              }
            ]
          }
        }
      },
      "ShopPaymentMethod.ListRetrieving.QueryParams": {
        "type": "object",
        "properties": {
          "pay_type": {
            "type": "string",
            "enum": [
              "Payeeaccount"
            ],
            "description": "決済種別\n* `Payeeaccount` - 銀行振込（指定口座）\n"
          }
        },
        "required": [
          "pay_type"
        ]
      },
      "ShopPaymentMethod.ListRetrieving.PayeeAccount.QueryParams": {
        "type": "object",
        "properties": {
          "display_flag": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "表示フラグ\n* `0` - 非表示\n* `1` - 表示\n"
          }
        }
      },
      "ShopPaymentMethod.PayeeAccount": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "pm_**********************",
            "minLength": 25,
            "maxLength": 25,
            "description": "ショップ決済手段ID"
          },
          "pay_type": {
            "type": "string",
            "enum": [
              "Payeeaccount"
            ],
            "description": "決済種別\n* `Payeeaccount` - 銀行振込（指定口座）\n"
          },
          "process_date": {
            "type": "string",
            "format": "date-time",
            "description": "処理日時 形式：`yyyy/MM/dd HH:mm:ss.SSS`"
          },
          "status": {
            "type": "string",
            "enum": [
              "ACTIVATED"
            ],
            "description": "ステータス\n* `ACTIVATED` - 有効化済み\n"
          },
          "display_flag": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "表示フラグ\n* `0` - 非表示\n* `1` - 表示\n"
          },
          "display_number": {
            "type": "string",
            "enum": [
              "1",
              "2",
              "3"
            ],
            "description": "表示順序\n* `1` - 1 番目\n* `2` - 2 番目\n* `3` - 3 番目\n"
          },
          "payee_account": {
            "type": "object",
            "description": "銀行口座情報",
            "properties": {
              "bank_code": {
                "type": "string",
                "maxLength": 4,
                "description": "金融機関コード"
              },
              "bank_name": {
                "type": "string",
                "maxLength": 45,
                "description": "金融機関名"
              },
              "branch_code": {
                "type": "string",
                "maxLength": 3,
                "description": "支店コード"
              },
              "branch_name": {
                "type": "string",
                "maxLength": 45,
                "description": "支店名"
              },
              "account_type": {
                "type": "string",
                "enum": [
                  "1",
                  "2"
                ],
                "description": "預金区分\n* `1` - 普通\n* `2` - 当座\n"
              },
              "account_number": {
                "type": "string",
                "maxLength": 7,
                "description": "口座番号"
              },
              "account_name": {
                "type": "string",
                "maxLength": 30,
                "description": "口座名義人名"
              },
              "account_name_kana": {
                "type": "string",
                "maxLength": 48,
                "description": "口座名義人名（カナ）"
              }
            }
          },
          "client_field_1": {
            "type": "string",
            "maxLength": 100,
            "nullable": true,
            "description": "加盟店向け自由項目 1"
          },
          "client_field_2": {
            "type": "string",
            "maxLength": 100,
            "nullable": true,
            "description": "加盟店向け自由項目 2"
          },
          "client_field_3": {
            "type": "string",
            "maxLength": 100,
            "nullable": true,
            "description": "加盟店向け自由項目 3"
          },
          "delete_flag": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "削除フラグ\n* `0` - 未削除\n* `1` - 削除済\n"
          },
          "created": {
            "type": "string",
            "format": "date-time",
            "description": "作成日時 形式：`yyyy/MM/dd HH:mm:ss.SSS`"
          },
          "updated": {
            "type": "string",
            "format": "date-time",
            "description": "更新日時 形式：`yyyy/MM/dd HH:mm:ss.SSS`"
          }
        }
      },
      "ShopPaymentMethod.PayeeAccount.list": {
        "type": "object",
        "properties": {
          "list": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ShopPaymentMethod.PayeeAccount"
            }
          }
        }
      },
      "ShopPaymentMethod.PayeeAccount.ListRetrieving.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/_ListResponse"
          },
          {
            "$ref": "#/components/schemas/ShopPaymentMethod.PayeeAccount.list"
          }
        ]
      },
      "pay_type": {
        "type": "string",
        "enum": [
          "Payeeaccount"
        ],
        "description": "決済種別\n* `Payeeaccount` - 銀行振込（指定口座）\n"
      },
      "display_flag": {
        "type": "string",
        "enum": [
          "0",
          "1"
        ],
        "description": "表示フラグ\n* `0` - 非表示\n* `1` - 表示\n"
      },
      "display_number": {
        "type": "string",
        "enum": [
          "1",
          "2",
          "3"
        ],
        "description": "表示順序\n* `1` - 1 番目\n* `2` - 2 番目\n* `3` - 3 番目\n"
      },
      "properties-bank_code": {
        "type": "string",
        "maxLength": 4,
        "description": "金融機関コード"
      },
      "properties-branch_code": {
        "type": "string",
        "maxLength": 3,
        "description": "支店コード"
      },
      "properties-account_type": {
        "type": "string",
        "enum": [
          "1",
          "2"
        ],
        "description": "預金区分\n* `1` - 普通\n* `2` - 当座\n"
      },
      "properties-account_number": {
        "type": "string",
        "maxLength": 7,
        "description": "口座番号"
      },
      "properties-account_name": {
        "type": "string",
        "maxLength": 30,
        "description": "口座名義人名"
      },
      "properties-account_name_kana": {
        "type": "string",
        "maxLength": 48,
        "description": "口座名義人名（カナ）"
      },
      "properties-client_field_1": {
        "type": "string",
        "maxLength": 100,
        "nullable": true,
        "description": "加盟店向け自由項目 1"
      },
      "properties-client_field_2": {
        "type": "string",
        "maxLength": 100,
        "nullable": true,
        "description": "加盟店向け自由項目 2"
      },
      "properties-client_field_3": {
        "type": "string",
        "maxLength": 100,
        "nullable": true,
        "description": "加盟店向け自由項目 3"
      },
      "ShopPaymentMethod.PayeeAccount.Creating.Request": {
        "type": "object",
        "required": [
          "pay_type",
          "display_flag",
          "payee_account"
        ],
        "properties": {
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/pay_type"
              }
            ]
          },
          "display_flag": {
            "allOf": [
              {
                "$ref": "#/components/schemas/display_flag"
              }
            ]
          },
          "display_number": {
            "allOf": [
              {
                "$ref": "#/components/schemas/display_number"
              }
            ]
          },
          "payee_account": {
            "type": "object",
            "description": "銀行口座情報",
            "required": [
              "bank_code",
              "branch_code",
              "account_type",
              "account_number",
              "account_name_kana"
            ],
            "properties": {
              "bank_code": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/properties-bank_code"
                  }
                ]
              },
              "branch_code": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/properties-branch_code"
                  }
                ]
              },
              "account_type": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/properties-account_type"
                  }
                ]
              },
              "account_number": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/properties-account_number"
                  }
                ]
              },
              "account_name": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/properties-account_name"
                  }
                ]
              },
              "account_name_kana": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/properties-account_name_kana"
                  }
                ]
              }
            }
          },
          "client_field_1": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-client_field_1"
              }
            ]
          },
          "client_field_2": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-client_field_2"
              }
            ]
          },
          "client_field_3": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-client_field_3"
              }
            ]
          }
        }
      },
      "ShopPaymentMethod.PayeeAccount.Creating.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ShopPaymentMethod.PayeeAccount"
          }
        ]
      },
      "ShopPaymentMethodId_schema": {
        "type": "string",
        "example": "pm_**********************"
      },
      "ShopPaymentMethod.Retrieving.QueryParams": {
        "type": "object",
        "properties": {
          "pay_type": {
            "type": "string",
            "enum": [
              "Payeeaccount"
            ],
            "description": "決済種別\n* `Payeeaccount` - 銀行振込（指定口座）\n"
          }
        },
        "required": [
          "pay_type"
        ]
      },
      "ShopPaymentMethod.PayeeAccount.Retrieving.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ShopPaymentMethod.PayeeAccount"
          }
        ]
      },
      "ShopPaymentMethod.PayeeAccount.Updating.Request": {
        "type": "object",
        "required": [
          "pay_type"
        ],
        "properties": {
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/pay_type"
              }
            ]
          },
          "display_flag": {
            "allOf": [
              {
                "$ref": "#/components/schemas/display_flag"
              }
            ]
          },
          "display_number": {
            "allOf": [
              {
                "$ref": "#/components/schemas/display_number"
              }
            ]
          },
          "client_field_1": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-client_field_1"
              }
            ]
          },
          "client_field_2": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-client_field_2"
              }
            ]
          },
          "client_field_3": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-client_field_3"
              }
            ]
          }
        }
      },
      "ShopPaymentMethod.PayeeAccount.Updating.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ShopPaymentMethod.PayeeAccount"
          }
        ]
      },
      "ShopPaymentMethod.PayeeAccount.Deleting.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ShopPaymentMethod.PayeeAccount"
          }
        ]
      },
      "PayType": {
        "type": "string",
        "enum": [
          "Card",
          "Konbini",
          "Paypay",
          "Applepay",
          "Googlepay",
          "Directdebit",
          "Virtualaccount"
        ],
        "example": "Card",
        "description": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Card`: カード\n- `Konbini`: コンビニ決済\n- `Paypay`: PayPay\n- `Applepay`: Apple Pay\n- `Googlepay`: Google Pay\n- `Directdebit`: 口座振替\n- `Virtualaccount`: 銀行振込（バーチャル口座）\n",
        "x-description-card": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Card`: カード\n",
        "x-description-konbini": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Konbini`: コンビニ決済\n",
        "x-description-paypay": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Paypay`: PayPay\n",
        "x-description-applepay": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Applepay`: Apple Pay\n",
        "x-description-googlepay": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Googlepay`: Google Pay\n",
        "x-description-directdebit": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Directdebit`: 口座振替\n",
        "x-description-virtualaccount": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Virtualaccount`: 銀行振込（バーチャル口座）\n"
      },
      "Payment.ListRetrieving.QueryParams": {
        "type": "object",
        "properties": {
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ],
            "description": "決済種別\\\n一覧で取得する対象の決済種別を指定します。\n\n- `Card`: カード\n- `Konbini`: コンビニ決済\n- `Paypay`: PayPay\n- `Applepay`: Apple Pay\n- `Googlepay`: Google Pay\n- `Directdebit`: 口座振替\n- `Virtualaccount`: 銀行振込（バーチャル口座）\n"
          },
          "client_field_1": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 1  \n指定した場合、完全一致で検索を行います。\n"
          },
          "client_field_2": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 2  \n指定した場合、完全一致で検索を行います。\n"
          },
          "client_field_3": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 3  \n指定した場合、完全一致で検索を行います。\n"
          },
          "total_amount_min": {
            "nullable": true,
            "type": "integer",
            "format": "int64",
            "minLength": 1,
            "maxLength": 9999999,
            "description": "合計金額（始値）\\\n利用金額と税送料の合計額（`total_amount`）を対象に範囲検索を行います。この値以上の合計金額を持つ決済情報を取得します。\n"
          },
          "total_amount_max": {
            "nullable": true,
            "type": "integer",
            "format": "int64",
            "minLength": 1,
            "maxLength": 9999999,
            "description": "合計金額（終値）\\\n利用金額と税送料の合計額（`total_amount`）を対象に範囲検索を行います。この値以下の合計金額を持つ決済情報を取得します。\n"
          },
          "customer_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/id"
              }
            ],
            "description": "顧客ID\\\n指定した顧客IDに紐づく決済情報から一覧で取得します。\n"
          },
          "process_date_from": {
            "nullable": true,
            "type": "string",
            "description": "処理日時（始値）\\\n処理日時（`process_date`）を対象に範囲検索を行います。この日付以降に処理された決済情報を取得します。\\\n\\\n形式：`yyyy/MM/dd`、`yyyy/MM/dd HH:mm:ss`、`yyyy/MM/dd HH:mm:ss.SSS`\n"
          },
          "process_date_to": {
            "nullable": true,
            "type": "string",
            "description": "処理日時（終値）\\\n処理日時（`process_date`）を対象に範囲検索を行います。この日付以前に処理された決済情報を取得します。\\\n\\\n形式：`yyyy/MM/dd`、`yyyy/MM/dd HH:mm:ss`、`yyyy/MM/dd HH:mm:ss.SSS`\n"
          }
        },
        "required": [
          "pay_type"
        ]
      },
      "PaymentStatus": {
        "type": "string",
        "enum": [
          "UNPROCESSED",
          "CHECKED",
          "AUTHORIZED",
          "AWAITING_CUSTOMER_PAYMENT",
          "AWAITING_PAYMENT_APPROVAL",
          "CAPTURED",
          "CANCELED",
          "EXPIRED",
          "AUTHENTICATED",
          "FAILED"
        ],
        "example": "CAPTURED",
        "description": "決済ステータス\n\n- `UNPROCESSED`: 未処理\n- `CHECKED`: 有効性チェック済み\n- `AUTHORIZED`: 仮売上\n- `AWAITING_CUSTOMER_PAYMENT`: 購入者の支払い待ち\n- `AWAITING_PAYMENT_APPROVAL`: 決済承認待ち\n- `CAPTURED`: 売上確定\n- `CANCELED`: キャンセル\n- `EXPIRED`: 決済の期限切れ\n- `AUTHENTICATED`: 未処理（3Dセキュア認証待ち）\n- `FAILED`: 決済失敗\n",
        "x-description-card": "決済ステータス\n\n- `UNPROCESSED`: 未処理<br /><span class=\"smallText\">請求はまだ実行されていません。</span>\n- `CHECKED`: 有効性チェック済み<br /><span class=\"smallText\">カードの有効性チェックが完了しています。</span>\n- `AUTHORIZED`: 仮売上<br /><span class=\"smallText\">仮売上として与信枠の確保が完了しており、売上確定により請求を完了できます。</span>\n- `CAPTURED`: 売上確定<br /><span class=\"smallText\">請求が完了し、売上が確定しています。</span>\n- `CANCELED`: キャンセル<br /><span class=\"smallText\">この決済はキャンセルされました。</span>\n- `AUTHENTICATED`: 未処理（3Dセキュア認証待ち）<br /><span class=\"smallText\">3Dセキュア認証を使用する決済を実行した直後の状態です。認証後決済実行を行うまで請求や仮売上はされません。</span>\n",
        "x-description-konbini": "決済ステータス\n\n- `UNPROCESSED`: 未処理<br /><span class=\"smallText\">請求はまだ実行されていません。</span>\n- `AWAITING_CUSTOMER_PAYMENT`: 購入者の支払い待ち<br /><span class=\"smallText\">購入者によるコンビニ店頭レジでの払い込みを待っている状態。</span>\n- `CAPTURED`: 売上確定<br /><span class=\"smallText\">請求が完了し、売上が確定しています。</span>\n- `CANCELED`: キャンセル<br /><span class=\"smallText\">この決済はキャンセルされました。</span>\n- `EXPIRED`: 決済の期限切れ<br /><span class=\"smallText\">この決済は期限が切れています。</span>\n",
        "x-description-paypay": "決済ステータス\n\n- `UNPROCESSED`: 未処理<br /><span class=\"smallText\">請求はまだ実行されていません。</span>\n- `AWAITING_CUSTOMER_PAYMENT`: 購入者の支払い待ち<br /><span class=\"smallText\">購入者によるPayPay上での取引承認を待っている状態。</span>\n- `AUTHORIZED`: 仮売上<br /><span class=\"smallText\">仮売上としてPayPay残高の確保が完了しており、売上確定により請求を完了できます。</span>\n- `CAPTURED`: 売上確定<br /><span class=\"smallText\">請求が完了し、売上が確定しています。</span>\n- `CANCELED`: キャンセル<br /><span class=\"smallText\">この決済はキャンセルされました。</span>\n- `EXPIRED`: 決済の期限切れ<br /><span class=\"smallText\">この決済は期限が切れています。</span>\n",
        "x-description-applepay": "決済ステータス\n\n- `UNPROCESSED`: 未処理<br /><span class=\"smallText\">請求はまだ実行されていません。</span>\n- `AUTHORIZED`: 仮売上<br /><span class=\"smallText\">仮売上として与信枠の確保が完了しており、売上確定により請求を完了できます。</span>\n- `CAPTURED`: 売上確定<br /><span class=\"smallText\">請求が完了し、売上が確定しています。</span>\n- `CANCELED`: キャンセル<br /><span class=\"smallText\">この決済はキャンセルされました。</span>\n",
        "x-description-googlepay": "決済ステータス\n\n- `UNPROCESSED`: 未処理<br /><span class=\"smallText\">請求はまだ実行されていません。</span>\n- `AUTHORIZED`: 仮売上<br /><span class=\"smallText\">仮売上として与信枠の確保が完了しており、売上確定により請求を完了できます。</span>\n- `CAPTURED`: 売上確定<br /><span class=\"smallText\">請求が完了し、売上が確定しています。</span>\n- `CANCELED`: キャンセル<br /><span class=\"smallText\">この決済はキャンセルされました。</span>\n- `AUTHENTICATED`: 未処理（3Dセキュア認証待ち）<br /><span class=\"smallText\">3Dセキュア認証を使用する決済を実行した直後の状態です。認証後決済実行を行うまで請求や仮売上はされません。</span>\n",
        "x-description-directdebit": "決済ステータス\n\n- `UNPROCESSED`: 未処理<br /><span class=\"smallText\">振替はまだ実行されていません。</span>\n- `AWAITING_PAYMENT_APPROVAL`: 決済処理待ち<br /><span class=\"smallText\">M's PayBridgeおよび金融機関による振替処理を待っています。</span>\n- `CAPTURED`: 売上確定<br /><span class=\"smallText\">振替が完了し、売上が確定しています。</span>\n- `CANCELED`: キャンセル<br /><span class=\"smallText\">この振替はキャンセルされました。</span>\n- `FAILED`: 請求失敗<br /><span class=\"smallText\">何らかの理由により振替に失敗しました。</span>\n",
        "x-description-virtualaccount": "決済ステータス\n\n- `UNPROCESSED`: 未処理<br /><span class=\"smallText\">請求はまだ実行されていません。</span>\n- `AWAITING_CUSTOMER_PAYMENT`: 購入者の支払い待ち<br /><span class=\"smallText\">購入者によるバーチャル口座への振込を待っている状態。</span>\n- `CAPTURED`: 売上確定<br /><span class=\"smallText\">振込が完了し、売上が確定しています。</span>\n- `CANCELED`: キャンセル<br /><span class=\"smallText\">この決済はキャンセルされました。</span>\n- `EXPIRED`: 決済の期限切れ<br /><span class=\"smallText\">この決済は期限が切れています。</span>\n"
      },
      "Payment.ListRetrieving.Card.QueryParams": {
        "type": "object",
        "properties": {
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentStatus"
              }
            ],
            "description": "決済ステータス\\\n指定したステータスの決済情報を取得します。カンマ区切りにすることで複数指定（OR検索）できます。\n\n- `UNPROCESSED`: 未処理\n- `CHECKED`: 有効性チェック済み\n- `AUTHORIZED`: 仮売上\n- `CAPTURED`: 売上確定\n- `CANCELED`: キャンセル\n- `AUTHENTICATED`: 未処理（3Dセキュア認証待ち）\n"
          },
          "auth_max_date_from": {
            "type": "string",
            "description": "仮売上有効期限（始値）\\\n仮売上有効期限（`auth_max_date`）を対象に範囲検索を行います。この日付以降に仮売上が有効期限切れとなる決済情報を取得します。\\\n\\\n形式：`yyyy/MM/dd`\n"
          },
          "auth_max_date_to": {
            "type": "string",
            "description": "仮売上有効期限（終値）\\\n仮売上有効期限（`auth_max_date`）を対象に範囲検索を行います。この日付以前に仮売上が有効期限切れとなる決済情報を取得します。\\\n\\\n形式：`yyyy/MM/dd`\n"
          },
          "subscription_id": {
            "type": "string",
            "description": "サブスクリプションID\\\nサブスクリプションIDを指定して、指定したサブスクリプションによって作成された決済情報を取得します。\n"
          },
          "pay_pattern": {
            "type": "string",
            "enum": [
              "onetime",
              "subscription",
              "bulk"
            ],
            "description": "課金種別\\\n指定した課金種別の決済情報を取得します。カンマ区切りにすることで複数指定（OR検索）できます。\n\n- `onetime`: サブスクリプションでない都度払い\n- `subscription`: サブスクリプション\n"
          },
          "last_four_digits": {
            "type": "string",
            "minLength": 4,
            "maxLength": 4,
            "description": "カード番号（下4桁）\\\nカード番号の下4桁を指定して、該当する決済情報を取得します。\n"
          },
          "search_scope": {
            "type": "string",
            "enum": [
              "self",
              "sub",
              "tenant"
            ],
            "example": "self,sub,tenant",
            "description": "検索範囲\\\nメインプラットフォームショップのみ指定可能な項目です。\\\n指定された検索範囲において決済情報の検索を行います。カンマ区切りにすることで複数指定できます。\n- `self`: 自身のショップ（デフォルト）\n- `sub`: プラットフォーム上全てのサブショップ\n- `tenant`: プラットフォーム上全てのテナントショップ\n"
          },
          "shop_id_list": {
            "type": "string",
            "example": "s_***********,s_***********,s_***********",
            "description": "検索対象ショップIDリスト\\\nメインプラットフォームショップのみ指定可能な項目です。\\\n指定されたにショップおいて決済情報の検索を行います。カンマ区切りにすることで複数指定できます。\n"
          },
          "order_id": {
            "type": "string",
            "description": "オーダーID\\\nメインプラットフォームショップのみ指定可能な項目です。\\\n指定のオーダーIDに紐づく決済情報を取得します。\n"
          },
          "update_date_from": {
            "type": "string",
            "description": "更新日時（始値）\\\n更新日時（`updated`）を対象に範囲検索を行います。この日付以降に更新された決済情報を取得します。\\\n\\\n形式：`yyyy/MM/dd`、`yyyy/MM/dd HH:mm:ss`、`yyyy/MM/dd HH:mm:ss.SSS`\n"
          },
          "update_date_to": {
            "type": "string",
            "description": "更新日時（終値）\\\n更新日時（`updated`）を対象に範囲検索を行います。この日付以前に更新された決済情報を取得します。\\\n\\\n形式：`yyyy/MM/dd`、`yyyy/MM/dd HH:mm:ss`、`yyyy/MM/dd HH:mm:ss.SSS`\n"
          },
          "sort": {
            "allOf": [
              {
                "$ref": "#/components/schemas/sort"
              }
            ],
            "nullable": true,
            "description": "ソートする項目と順序を指定します。\\\n例： `?sort=updated␣desc,created␣asc`\\\n\\\nソート可能な項目\n\n- `status`: ステータス\n- `process_date`: 処理日時\n- `total_amount`: 合計金額\n- `auth_max_date`: 仮売上有効期限\n- `created`: 作成日時\n- `updated`: 更新日時\n"
          }
        }
      },
      "Payment.ListRetrieving.ApplePay.QueryParams": {
        "type": "object",
        "properties": {
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentStatus"
              }
            ],
            "description": "決済ステータス\\\n指定したステータスの決済情報を取得します。カンマ区切りにすることで複数指定（OR検索）できます。\n\n- `UNPROCESSED`: 未処理\n- `AUTHORIZED`: 仮売上\n- `CAPTURED`: 売上確定\n- `CANCELED`: キャンセル\n"
          },
          "auth_max_date_from": {
            "type": "string",
            "description": "仮売上有効期限（始値）\\\n仮売上有効期限（`auth_max_date`）を対象に範囲検索を行います。この日付以降に仮売上が有効期限切れとなる決済情報を取得します。\\\n\\\n形式：`yyyy/MM/dd`\n"
          },
          "auth_max_date_to": {
            "type": "string",
            "description": "仮売上有効期限（終値）\\\n仮売上有効期限（`auth_max_date`）を対象に範囲検索を行います。この日付以前に仮売上が有効期限切れとなる決済情報を取得します。\\\n\\\n形式：`yyyy/MM/dd`\n"
          },
          "updated_from": {
            "type": "string",
            "description": "更新日（始値）\\\n\\\n更新日時（`updated`）を対象に範囲検索を行います。この日付以降に更新された決済情報を取得します。\\\n形式：`yyyy/MM/dd`、`yyyy/MM/dd HH:mm:ss`、`yyyy/MM/dd HH:mm:ss.SSS`\n"
          },
          "updated_to": {
            "type": "string",
            "description": "更新日（終値）\\\n\\\n更新日時（`updated`）を対象に範囲検索を行います。この日付以前に更新された決済情報を取得します。\\\n形式：`yyyy/MM/dd`、`yyyy/MM/dd HH:mm:ss`、`yyyy/MM/dd HH:mm:ss.SSS`\n"
          },
          "sort": {
            "allOf": [
              {
                "$ref": "#/components/schemas/sort"
              }
            ],
            "nullable": true,
            "description": "ソートする項目と順序を指定します。\\\n例： `?sort=updated␣desc,created␣asc`\\\n\\\nソート可能な項目\n\n- `status`: ステータス\n- `process_date`: 処理日時\n- `total_amount`: 合計金額\n- `auth_max_date`: 仮売上有効期限\n- `created`: 作成日時\n- `updated`: 更新日時\n"
          }
        }
      },
      "Payment.ListRetrieving.Googlepay.QueryParams": {
        "type": "object",
        "properties": {
          "client_field_1": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_1"
              }
            ],
            "description": "加盟店自由項目 1\n"
          },
          "client_field_2": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_2"
              }
            ],
            "description": "加盟店自由項目 2\n"
          },
          "client_field_3": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_3"
              }
            ],
            "description": "加盟店自由項目 3\n"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentStatus"
              }
            ],
            "description": "決済ステータス\\\n指定したステータスの決済情報を取得します。カンマ区切りにすることで複数指定（OR検索）できます。\n\n- `UNPROCESSED`: 未処理\n- `AUTHORIZED`: 仮売上\n- `CAPTURED`: 売上確定\n- `CANCELED`: キャンセル\n- `AUTHENTICATED`: 未処理（3Dセキュア認証待ち）\n"
          },
          "auth_max_date_from": {
            "type": "string",
            "description": "仮売上有効期限（始値）\\\n仮売上有効期限（`auth_max_date`）を対象に範囲検索を行います。この日付以降に仮売上が有効期限切れとなる決済情報を取得します。\\\n\\\n形式：`yyyy/MM/dd`\n"
          },
          "auth_max_date_to": {
            "type": "string",
            "description": "仮売上有効期限（終値）\\\n仮売上有効期限（`auth_max_date`）を対象に範囲検索を行います。この日付以前に仮売上が有効期限切れとなる決済情報を取得します。\\\n\\\n形式：`yyyy/MM/dd`\n"
          },
          "update_date_from": {
            "type": "string",
            "description": "更新日時（始値）\\\n更新日時（`updated`）を対象に範囲検索を行います。この日付以降に更新された決済情報を取得します。\\\n\\\n形式：`yyyy/MM/dd`、`yyyy/MM/dd HH:mm:ss`、`yyyy/MM/dd HH:mm:ss.SSS`\n"
          },
          "update_date_to": {
            "type": "string",
            "description": "更新日時（終値）\\\n更新日時（`updated`）を対象に範囲検索を行います。この日付以前に更新された決済情報を取得します。\\\n\\\n形式：`yyyy/MM/dd`、`yyyy/MM/dd HH:mm:ss`、`yyyy/MM/dd HH:mm:ss.SSS`\n"
          },
          "sort": {
            "allOf": [
              {
                "$ref": "#/components/schemas/sort"
              }
            ],
            "nullable": true,
            "description": "ソートする項目と順序を指定します。\\\n例： `?sort=updated␣desc,created␣asc`\\\n\\\nソート可能な項目\n\n- `status`: ステータス\n- `process_date`: 処理日時\n- `total_amount`: 合計金額\n- `auth_max_date`: 仮売上有効期限\n- `created`: 作成日時\n- `updated`: 更新日時\n"
          }
        }
      },
      "Payment.ListRetrieving.Konbini.QueryParams": {
        "type": "object",
        "properties": {
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentStatus"
              }
            ],
            "description": "決済ステータス\\\n指定したステータスの決済情報を取得します。カンマ区切りにすることで複数指定（OR検索）できます。\n\n- `UNPROCESSED`: 未処理\n- `AWAITING_CUSTOMER_PAYMENT`: 購入者の支払い待ち\n- `CAPTURED`: 売上確定\n- `CANCELED`: キャンセル\n- `EXPIRED`: 決済の期限切れ\n"
          },
          "payment_term_from": {
            "type": "string",
            "description": "支払い期限（始値）\\\n支払い期限（`payment_term`）を対象に範囲検索を行います。この日付以降に支払い期限が到来する決済情報を取得します。\\\n\\\n形式：`yyyy/MM/dd`\n"
          },
          "payment_term_to": {
            "type": "string",
            "description": "支払い期限（終値）\\\n支払い期限（`payment_term`）を対象に範囲検索を行います。この日付以前に支払い期限が到来する決済情報を取得します。\\\n\\\n形式：`yyyy/MM/dd`\n"
          },
          "payment_date_from": {
            "type": "string",
            "description": "支払い日時（始値）\\\n支払い日時（`payment_date`）を対象に範囲検索を行います。この日付以降に支払いが行われた決済情報を取得します。\\\n\\\n形式：`yyyy/MM/dd`\n"
          },
          "payment_date_to": {
            "type": "string",
            "description": "支払い日時（終値）\\\n支払い日時（`payment_date`）を対象に範囲検索を行います。この日付以前に支払いが行われた決済情報を取得します。\\\n\\\n形式：`yyyy/MM/dd`\n"
          },
          "updated_from": {
            "type": "string",
            "description": "更新日（始値）\\\n\\\n更新日時（`updated`）を対象に範囲検索を行います。この日付以降に更新された決済情報を取得します。\\\n形式：`yyyy/MM/dd`、`yyyy/MM/dd HH:mm:ss`、`yyyy/MM/dd HH:mm:ss.SSS`\n"
          },
          "updated_to": {
            "type": "string",
            "description": "更新日（終値）\\\n\\\n更新日時（`updated`）を対象に範囲検索を行います。この日付以前に更新された決済情報を取得します。\\\n形式：`yyyy/MM/dd`、`yyyy/MM/dd HH:mm:ss`、`yyyy/MM/dd HH:mm:ss.SSS`\n"
          },
          "overpayment_flag": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "多重支払フラグ\\\n同一のバーコードで複数回支払いが行われた決済を検索する場合`1`を指定します。\n"
          },
          "cancel_overpayment_flag": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "キャンセル後支払フラグ\\\nキャンセルされた決済に対して支払いが行われた決済を検索する場合`1`を指定します。\n"
          },
          "sort": {
            "allOf": [
              {
                "$ref": "#/components/schemas/sort"
              }
            ],
            "nullable": true,
            "description": "ソートする項目と順序を指定します。\\\n例： `?sort=updated␣desc,created␣asc`\\\n\\\nソート可能な項目\n\n- `status`: ステータス\n- `process_date`: 処理日時\n- `total_amount`: 合計金額\n- `payment_term`: 支払い期限\n- `payment_date`: 支払い日時\n- `created`: 作成日時\n- `updated`: 更新日時\n"
          }
        }
      },
      "Payment.ListRetrieving.PayPay.QueryParams": {
        "type": "object",
        "properties": {
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentStatus"
              }
            ],
            "description": "決済ステータス\\\n指定したステータスの決済情報を取得します。カンマ区切りにすることで複数指定（OR検索）できます。\n\n- `UNPROCESSED`: 未処理\n- `AWAITING_CUSTOMER_PAYMENT`: 購入者の支払い待ち\n- `AUTHORIZED`: 仮売上\n- `CAPTURED`: 売上確定\n- `CANCELED`: キャンセル\n- `EXPIRED`: 決済の期限切れ\n"
          },
          "auth_max_date_from": {
            "type": "string",
            "description": "仮売上有効期限（始値）\\\n仮売上有効期限（`auth_max_date`）を対象に範囲検索を行います。この日付以降に仮売上が有効期限切れとなる決済情報を取得します。\\\n\\\n形式：`yyyy/MM/dd`\n"
          },
          "auth_max_date_to": {
            "type": "string",
            "description": "仮売上有効期限（終値）\\\n仮売上有効期限（`auth_max_date`）を対象に範囲検索を行います。この日付以前に仮売上が有効期限切れとなる決済情報を取得します。\\\n\\\n形式：`yyyy/MM/dd`\n"
          },
          "payment_date_from": {
            "type": "string",
            "description": "支払い日時（始値）\\\n支払い日時（`payment_date`）を対象に範囲検索を行います。この日付以降に支払いが行われた決済情報を取得します。\\\n\\\n形式：`yyyy/MM/dd`\n"
          },
          "payment_date_to": {
            "type": "string",
            "description": "支払い日時（終値）\\\n支払い日時（`payment_date`）を対象に範囲検索を行います。この日付以前に支払いが行われた決済情報を取得します。\\\n\\\n形式：`yyyy/MM/dd`\n"
          },
          "updated_from": {
            "type": "string",
            "description": "更新日（始値）\\\n\\\n更新日時（`updated`）を対象に範囲検索を行います。この日付以降に更新された決済情報を取得します。\\\n形式：`yyyy/MM/dd`、`yyyy/MM/dd HH:mm:ss`、`yyyy/MM/dd HH:mm:ss.SSS`\n"
          },
          "updated_to": {
            "type": "string",
            "description": "更新日（終値）\\\n\\\n更新日時（`updated`）を対象に範囲検索を行います。この日付以前に更新された決済情報を取得します。\\\n形式：`yyyy/MM/dd`、`yyyy/MM/dd HH:mm:ss`、`yyyy/MM/dd HH:mm:ss.SSS`\n"
          },
          "sort": {
            "allOf": [
              {
                "$ref": "#/components/schemas/sort"
              }
            ],
            "nullable": true,
            "description": "ソートする項目と順序を指定します。\\\n例： `?sort=updated␣desc,created␣asc`\\\n\\\nソート可能な項目\n\n- `status`: ステータス\n- `process_date`: 処理日時\n- `total_amount`: 合計金額\n- `auth_max_date`: 仮売上有効期限\n- `payment_date`: 支払い日時\n- `created`: 作成日時\n- `updated`: 更新日時\n"
          }
        }
      },
      "DirectDebitResultCode": {
        "type": "string",
        "enum": [
          "0",
          "1",
          "2",
          "3",
          "4",
          "7",
          "8",
          "9",
          "E",
          "N"
        ],
        "example": "0",
        "minLength": 1,
        "maxLength": 1,
        "description": "振替結果コード\n\n- `0`: 振替成功\n- `1`: 残高不足による失敗\n- `2`: 預金取引なしによる失敗<br /><span class=\"smallText\">存在しない口座に対して請求した場合などに発生します。</span>\n- `3`: 購入者事由による失敗\n- `4`: 依頼書未着・不備による失敗<br /><span class=\"smallText\">口座振替依頼書が金融機関側で登録されていない場合に発生します。</span>\n- `7`: データエラーに起因する失敗<br /><span class=\"smallText\">口座振替（1・5・20・26日）のみ。</span><br /><span class=\"smallText\">通常は発生しません。発生し調査が必要な場合はM's PayBridgeにお問い合わせください。 </span>\n- `8`: ショップ事由による失敗<br /><span class=\"smallText\">通常は発生しません。発生し調査が必要な場合はM's PayBridgeにお問い合わせください。 </span>\n- `9`: その他の失敗<br /><span class=\"smallText\">通常は発生しません。発生し調査が必要な場合はM's PayBridgeにお問い合わせください。 </span>\n- `E`: データエラーに起因する失敗<br /><span class=\"smallText\">口座振替（5・6・23・27日）のみ。</span><br /><span class=\"smallText\">通常は発生しません。発生し調査が必要な場合はM's PayBridgeにお問い合わせください。 </span>\n- `N`: 振替結果未着<br /><span class=\"smallText\">口座振替（5・6・23・27日）のみ。</span><br /><span class=\"smallText\">通常は発生しません。発生し調査が必要な場合はM's PayBridgeにお問い合わせください。 </span>\n\n[お問い合わせはこちらへ](https://www.faq.mizuhobank.co.jp/helpdesk?category_id=645&site_domain=houjin)\n"
      },
      "Payment.ListRetrieving.DirectDebit.QueryParams": {
        "type": "object",
        "properties": {
          "target_date_from": {
            "type": "string",
            "nullable": true,
            "description": "振替指定日（始値）\\\n振替指定日（`target_date`）を対象に範囲検索を行います。この日付以降に振替指定日が設定されている決済情報を取得します。\\\n\\\n形式： `yyyy/MM/dd`\n"
          },
          "target_date_to": {
            "type": "string",
            "nullable": true,
            "description": "振替指定日（終値）\\\n振替指定日（`target_date`）を対象に範囲検索を行います。この日付以前に振替指定日が設定されている決済情報を取得します。\\\n\\\n形式： `yyyy/MM/dd`\n"
          },
          "withdrawal_date_from": {
            "type": "string",
            "nullable": true,
            "description": "引き落とし日（始値）\\\n引き落とし日（`withdrawal_date`）を対象に範囲検索を行います。この日付以降に引き落としが行われた決済情報を取得します。\\\n\\\n形式： `yyyy/MM/dd`\n"
          },
          "withdrawal_date_to": {
            "type": "string",
            "nullable": true,
            "description": "引き落とし日（終値）\\\n引き落とし日（`withdrawal_date`）を対象に範囲検索を行います。この日付以前に引き落としが行われた決済情報を取得します。\\\n\\\n形式： `yyyy/MM/dd`\n"
          },
          "result_code": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DirectDebitResultCode"
              }
            ],
            "description": "振替結果コード\\\n指定した振替結果の決済情報を取得します。カンマ区切りにすることで複数指定（OR検索）できます。\n\n- `0`: 振替成功\n- `1`: 残高不足（失敗）\n- `2`: 預金取引無し（失敗）\n- `3`: 購入者事由（失敗）\n- `4`: 依頼書未着・不備（失敗）\n- `7`: データエラー（失敗）<br /><span class=\"smallText\">口座振替（1・5・20・26日）のみ。</span>\n- `8`: ショップ事由（失敗）\n- `9`: その他（失敗）\n- `E`: データエラー（失敗）<br /><span class=\"smallText\">口座振替（5・6・23・27日）のみ。</span>\n- `N`: 振替結果未着（失敗）<br /><span class=\"smallText\">口座振替（5・6・23・27日）のみ。</span>\n"
          },
          "pay_pattern": {
            "type": "string",
            "enum": [
              "onetime",
              "subscription"
            ],
            "description": "課金種別\\\n指定した課金種別の決済情報を取得します。カンマ区切りにすることで複数指定（OR検索）できます。\n\n- `onetime`: サブスクリプションでない都度払い\n- `subscription`: サブスクリプション\n"
          },
          "subscription_id": {
            "type": "string",
            "description": "サブスクリプションID\\\nサブスクリプションIDを指定して、指定したサブスクリプションによって作成された決済情報を取得します。\n"
          },
          "updated_from": {
            "type": "string",
            "description": "更新日（始値）\\\n\\\n更新日時（`updated`）を対象に範囲検索を行います。この日付以降に更新された決済情報を取得します。\\\n形式：`yyyy/MM/dd`、`yyyy/MM/dd HH:mm:ss`、`yyyy/MM/dd HH:mm:ss.SSS`\n"
          },
          "updated_to": {
            "type": "string",
            "description": "更新日（終値）\\\n\\\n更新日時（`updated`）を対象に範囲検索を行います。この日付以前に更新された決済情報を取得します。\\\n形式：`yyyy/MM/dd`、`yyyy/MM/dd HH:mm:ss`、`yyyy/MM/dd HH:mm:ss.SSS`\n"
          },
          "sort": {
            "allOf": [
              {
                "$ref": "#/components/schemas/sort"
              }
            ],
            "nullable": true,
            "description": "ソートする項目と順序を指定します。\\\n例： `?sort=updated␣desc,created␣asc`\\\n\\\nソート可能な項目\n\n- `status`: ステータス\n- `process_date`: 処理日時\n- `total_amount`: 合計金額\n- `target_date`: 振替指定日\n- `withdrawal_date`: 引き落とし日\n- `created`: 作成日時\n- `updated`: 更新日時\n"
          }
        }
      },
      "Payment.ListRetrieving.VirtualAccount.QueryParams": {
        "type": "object",
        "properties": {
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentStatus"
              }
            ],
            "description": "決済ステータス\\\n指定したステータスの決済情報を取得します。カンマ区切りにすることで複数指定（OR検索）できます。\n\n- `UNPROCESSED`: 未処理\n- `AWAITING_CUSTOMER_PAYMENT`: 購入者の振込待ち\n- `CAPTURED`: 売上確定\n- `CANCELED`: キャンセル\n- `EXPIRED`: 決済の期限切れ\n"
          },
          "billing_total_amount_min": {
            "type": "string",
            "minLength": 1,
            "maxLength": 10,
            "description": "振込依頼金額 合計（始値）\\\n振込依頼金額 合計（`billing_total_amount`）を対象に範囲検索を行います。この値以上の合計 振込依頼金額を持つ決済情報を取得します。\n"
          },
          "billing_total_amount_max": {
            "type": "string",
            "minLength": 1,
            "maxLength": 10,
            "description": "振込依頼金額 合計（終値）\\\n振込依頼金額 合計（`billing_total_amount`）を対象に範囲検索を行います。この値以下の合計 振込依頼金額を持つ決済情報を取得します。\n"
          },
          "payment_term_from": {
            "type": "string",
            "description": "支払い期限（始値）\\\n支払い期限（`payment_term`）を対象に範囲検索を行います。この日付以降に支払い期限が到来する決済情報を取得します。\\\n形式：`yyyy/MM/dd`\n"
          },
          "payment_term_to": {
            "type": "string",
            "description": "支払い期限（終値）\\\n支払い期限（`payment_term`）を対象に範囲検索を行います。この日付以前に支払い期限が到来する決済情報を取得します。\\\n形式：`yyyy/MM/dd`\n"
          },
          "transaction_date_from": {
            "type": "string",
            "description": "取引日（始値）\\\n\\\n取引日（`transaction_date`）を対象に範囲検索を行います。この日付以降に振込が行われた決済情報を取得します。\\\n形式：`yyyy/MM/dd`\n"
          },
          "transaction_date_to": {
            "type": "string",
            "description": "取引日（終値）\\\n\\\n取引日（`transaction_date`）を対象に範囲検索を行います。この日付以前に振込が行われた決済情報を取得します。\\\n形式：`yyyy/MM/dd`\n"
          },
          "updated_from": {
            "type": "string",
            "description": "更新日（始値）\\\n\\\n更新日時（`updated`）を対象に範囲検索を行います。この日付以降に更新された決済情報を取得します。\\\n形式：`yyyy/MM/dd`、`yyyy/MM/dd HH:mm:ss`、`yyyy/MM/dd HH:mm:ss.SSS`\n"
          },
          "updated_to": {
            "type": "string",
            "description": "更新日（終値）\\\n\\\n更新日時（`updated`）を対象に範囲検索を行います。この日付以前に更新された決済情報を取得します。\\\n形式：`yyyy/MM/dd`、`yyyy/MM/dd HH:mm:ss`、`yyyy/MM/dd HH:mm:ss.SSS`\n"
          },
          "overpayment_flag": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "多重支払フラグ\\\n同一のバーチャル口座に対して複数回支払いが行われた決済を検索する場合`1`を指定します。\n"
          },
          "cancel_overpayment_flag": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "キャンセル後支払フラグ\\\nキャンセルされた決済に対して支払いが行われた決済を検索する場合`1`を指定します。\n"
          },
          "expire_overpayment_flag": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "期限切れ後支払フラグ\\\n期限切れになった決済に対して支払いが行われた決済を検索する場合`1`を指定します。\n"
          },
          "amount_pattern": {
            "type": "string",
            "enum": [
              null,
              "1",
              "2",
              "3",
              "4",
              "5",
              "6"
            ],
            "description": "利用金額パターン\n\n- `null`: 全件取得\n- `1`: 振込依頼金額 合計 = 利用金額 合計 である決済を取得\n- `2`: 振込依頼金額 合計 != 利用金額 合計 である決済を取得\n- `3`: 振込依頼金額 合計 < 利用金額 合計 である決済を取得\n- `4`: 振込依頼金額 合計 <= 利用金額 合計 である決済を取得\n- `5`: 振込依頼金額 合計 > 利用金額 合計 である決済を取得\n- `6`: 振込依頼金額 合計 >= 利用金額 合計 である決済を取得\n"
          },
          "bulk_payment_id": {
            "type": "string",
            "description": "一括決済ID\\\n指定した一括決済IDに紐づく決済情報を取得します。\n"
          },
          "sort": {
            "allOf": [
              {
                "$ref": "#/components/schemas/sort"
              }
            ],
            "nullable": true,
            "description": "ソートする項目と順序を指定します。\\\n例： `?sort=updated␣desc,created␣asc`\\\n\\\nソート可能な項目\n\n- `status`: ステータス\n- `process_date`: 処理日時\n- `total_amount`: 合計金額\n- `payment_term`: 支払い期限\n- `payment_date`: 支払い日時\n- `created`: 作成日時\n- `updated`: 更新日時\n"
          }
        }
      },
      "Shop_properties-id": {
        "type": "string",
        "minLength": 13,
        "maxLength": 13,
        "example": "s_***********",
        "description": "ショップID\n"
      },
      "Payment": {
        "type": "object",
        "properties": {
          "shop_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Shop_properties-id"
              }
            ]
          },
          "id": {
            "type": "string",
            "nullable": false,
            "minLength": 1,
            "maxLength": 30,
            "example": "o_**********************",
            "description": "オーダーID\\\n決済情報のIDです。\n"
          },
          "access_id": {
            "type": "string",
            "nullable": false,
            "minLength": 24,
            "maxLength": 24,
            "example": "a_**********************",
            "description": "取引ID\n"
          },
          "amount": {
            "type": "integer",
            "nullable": false,
            "example": 1000,
            "description": "利用金額\n"
          },
          "tax": {
            "type": "integer",
            "nullable": false,
            "example": 100,
            "description": "税送料\n"
          },
          "total_amount": {
            "type": "integer",
            "format": "int64",
            "nullable": false,
            "example": 1100,
            "description": "合計金額\\\n`amount`と`tax`の合計値です。\n"
          },
          "client_field_1": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 1\n"
          },
          "client_field_2": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 2\n"
          },
          "client_field_3": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 3\n"
          },
          "process_date": {
            "type": "string",
            "example": "2022/01/01 12:34:56.789",
            "description": "決済 処理日時\\\n決済の各種処理（決済実行、キャンセルなど）が行われた日時です。\n"
          },
          "customer_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/id"
              }
            ],
            "description": "顧客ID\\\nこの決済の請求先となる顧客情報のIDです。\n"
          },
          "customer_group_id": {
            "type": "string",
            "nullable": true,
            "minLength": 13,
            "maxLength": 13,
            "example": "cg_**********",
            "description": "顧客情報共有グループID\\\nプラットフォームショップにおいて顧客情報が共有されている場合、顧客が所属する共有グループのIDです。\n"
          },
          "error_code": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/error_code"
              }
            ],
            "description": "この決済において発生したエラーのうち、一番最新のエラーのエラーコードです。\\\n[各エラーコードの定義はこちらを参照](https://mpb-mizuhobank-docs.fincode.jp/develop_support/error)して確認できます。\n"
          },
          "bill_id": {
            "type": "string",
            "description": "請求ID\n",
            "minLength": 1,
            "maxLength": 30
          },
          "created": {
            "allOf": [
              {
                "$ref": "#/components/schemas/created"
              }
            ]
          },
          "updated": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updated"
              }
            ]
          }
        },
        "x-req-properties": {
          "amount": {
            "type": "string",
            "nullable": false,
            "minLength": 1,
            "example": "1000",
            "description": "利用金額\\\n`tax`との合計値が決済手段ごとに定められた決済金額の範囲内に収まる必要があります。\\\n参照例： [カード決済 > 制限事項 > 利用可能な金額](https://mpb-mizuhobank-docs.fincode.jp/payment/restriction)\n"
          },
          "tax": {
            "type": "string",
            "nullable": false,
            "minLength": 1,
            "example": "100",
            "description": "税送料\\\n`amount`との合計値が決済手段ごとに定められた決済金額の範囲内に収まる必要があります。\\\n参照例： [カード決済 > 制限事項 > 利用可能な金額](https://mpb-mizuhobank-docs.fincode.jp/payment/restriction)\n"
          },
          "paypay": {
            "order_description": {
              "type": "string",
              "nullable": true,
              "maxLength": 100,
              "example": "○○の購入",
              "description": "注文内容の説明文\\\n購入者のPayPayアプリ上で注文内容として決済時に表示される説明文です。\n"
            }
          },
          "directdebit": {
            "remarks": {
              "type": "string",
              "nullable": true,
              "maxLength": 9,
              "description": "利用明細表示内容\\\n半角英数カナ記号、全角英数カナ記号、一部の記号、半角全角スペースが指定可能。\\\n使用可能な記号：`.`, `(`, `)`, `–`, `．`,`（`, `）`, `ー`\\\nデフォルト：ショップ名カナの先頭9文字\\\n"
            }
          }
        }
      },
      "CardPayMethod": {
        "type": "string",
        "enum": [
          "1",
          "2",
          "5"
        ],
        "example": "1",
        "description": "支払方法\n\n- `1`: 一括払い\n- `2`: 分割払い\n- `5`: リボ払い\n"
      },
      "CardPayTimesResponse": {
        "type": "integer",
        "format": "int64",
        "example": 3,
        "enum": [
          3,
          5,
          6,
          10,
          12,
          15,
          18,
          20,
          24
        ],
        "description": "（分割払いの場合）支払回数  \n"
      },
      "PaymentBulk_properties-id": {
        "type": "string",
        "minLength": 25,
        "maxLength": 25,
        "description": "一括決済ID\n"
      },
      "Subscription_properties-id": {
        "type": "string",
        "example": "su_*********************",
        "minLength": 1,
        "maxLength": 25,
        "description": "サブスクリプションID\n"
      },
      "x-req-properties-return_url": {
        "type": "string",
        "example": "https://your-server.example.com/3ds2-return/success",
        "maxLength": 256,
        "nullable": true,
        "description": "加盟店戻りURL（成功時）  \n購入者のブラウザとM's PayBridge間で3Dセキュア認証を自動で行う場合に、\n3Dセキュア認証処理後、決済に成功した際にリダイレクトされるURLです。  \nPOSTメソッドでリダイレクトされます。\n\nリクエストで指定しない場合はデフォルトの成功ページのURLが設定されます。  \nまた、`tds2_ret_url`を指定していない場合のみ返却されます。  \n"
      },
      "x-req-properties-return_url_on_failure": {
        "type": "string",
        "example": "https://your-server.example.com/3ds2-return/failure",
        "maxLength": 256,
        "nullable": true,
        "description": "加盟店戻りURL（失敗時）  \n購入者のブラウザとM's PayBridge間で3Dセキュア認証を自動で行う場合に、\n3Dセキュア認証に失敗、または決済に失敗した際にリダイレクトされるURLです。  \nPOSTメソッドでリダイレクトされます。\n\nリクエストで指定しない場合はデフォルトの失敗ページのURLが設定されます。  \nまた、`tds2_ret_url`を指定していない場合のみ返却されます。  \n"
      },
      "Payment.Card": {
        "type": "object",
        "properties": {
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ],
            "description": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Card`: カード\n"
          },
          "job_code": {
            "type": "string",
            "enum": [
              "CHECK",
              "AUTH",
              "CAPTURE",
              "CANCEL"
            ],
            "example": "CAPTURE",
            "description": "取引種別\n\n- `CHECK`：有効性チェックのみ行う\n- `AUTH`：仮売上\n- `CAPTURE`：即時売上\n- `CANCEL`：キャンセル\n"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentStatus"
              }
            ],
            "description": "決済ステータス\n\n- `UNPROCESSED`: 未処理<br /><span class=\"smallText\">請求はまだ実行されていません。</span>\n- `CHECKED`: 有効性チェック済み<br /><span class=\"smallText\">カードの有効性チェックが完了しています。</span>\n- `AUTHORIZED`: 仮売上<br /><span class=\"smallText\">仮売上として与信枠の確保が完了しており、売上確定により請求を完了できます。</span>\n- `CAPTURED`: 売上確定<br /><span class=\"smallText\">請求が完了し、売上が確定しています。</span>\n- `CANCELED`: キャンセル<br /><span class=\"smallText\">この決済はキャンセルされました。</span>\n- `AUTHENTICATED`: 未処理（3Dセキュア認証待ち）<br /><span class=\"smallText\">3Dセキュア認証を使用する決済を実行した直後の状態です。認証後決済実行を行うまで請求や仮売上はされません。</span>\n"
          },
          "card_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-id"
              }
            ],
            "description": "カードID\\\nこの決済に使用されたカード情報のIDです。\n"
          },
          "brand": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/CardBrand"
              }
            ]
          },
          "card_no": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/card_no"
              }
            ]
          },
          "expire": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/expire"
              }
            ]
          },
          "holder_name": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/holder_name"
              }
            ]
          },
          "card_no_hash": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/card_no_hash"
              }
            ]
          },
          "method": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CardPayMethod"
              }
            ]
          },
          "pay_times": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/CardPayTimesResponse"
              }
            ]
          },
          "bulk_payment_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentBulk_properties-id"
              }
            ],
            "description": "一括決済ID\\\nこの決済情報が一括決済機能を用いて登録されたものである場合、このフィールドに一括決済IDが設定されます。\n"
          },
          "subscription_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/Subscription_properties-id"
              }
            ],
            "description": "サブスクリプションID\\\nこの決済情報がサブスクリプションにより生成されたものである場合、このフィールドにサブスクリプションIDが設定されます。\n"
          },
          "tds_type": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds_type"
              }
            ]
          },
          "tds2_type": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_type"
              }
            ]
          },
          "tds2_ret_url": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_ret_url"
              }
            ]
          },
          "return_url": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/x-req-properties-return_url"
              }
            ]
          },
          "return_url_on_failure": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/x-req-properties-return_url_on_failure"
              }
            ]
          },
          "tds2_status": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/ThreeDSecure2Status"
              }
            ]
          },
          "merchant_name": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/td_tenant_name"
              }
            ]
          },
          "forward": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 7,
            "example": "12345",
            "description": "仕向け先\n"
          },
          "issuer": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 7,
            "example": "1a34567",
            "description": "イシュア\n"
          },
          "transaction_id": {
            "type": "string",
            "nullable": true,
            "minLength": 28,
            "maxLength": 28,
            "example": null,
            "description": "トランザクションID\n"
          },
          "approve": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 7,
            "example": null,
            "description": "承認番号\n"
          },
          "auth_max_date": {
            "type": "string",
            "nullable": true,
            "example": "2022/05/16 23:59:59.999",
            "description": "仮売上有効期限\\\n`job_code`に`AUTH（仮売上）`を指定した場合値が設定されます。\n"
          },
          "item_code": {
            "type": "string",
            "nullable": true,
            "minLength": 7,
            "maxLength": 7,
            "description": "商品コード\n"
          },
          "send_url": {
            "type": "string",
            "nullable": true,
            "example": null,
            "deprecated": true,
            "description": "※ 閉塞機能\n"
          },
          "acs": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 1,
            "example": null,
            "deprecated": true,
            "description": "※ 閉塞機能\n"
          }
        }
      },
      "Payment.Card.list": {
        "type": "object",
        "properties": {
          "list": {
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/Payment"
                },
                {
                  "$ref": "#/components/schemas/Payment.Card"
                }
              ]
            }
          }
        }
      },
      "Payment.Card.ListRetrieving.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/_ListResponse"
          },
          {
            "$ref": "#/components/schemas/Payment.Card.list"
          }
        ]
      },
      "Payment.ApplePay": {
        "type": "object",
        "properties": {
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ],
            "description": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Applepay`: Apple Pay\n"
          },
          "job_code": {
            "type": "string",
            "enum": [
              "AUTH",
              "CAPTURE",
              "CANCEL"
            ],
            "example": "CAPTURE",
            "description": "取引種別\n\n- `AUTH`：仮売上\n- `CAPTURE`：即時売上\n- `CANCEL`：キャンセル\n"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentStatus"
              }
            ],
            "description": "決済ステータス\n\n- `UNPROCESSED`: 未処理<br /><span class=\"smallText\">請求はまだ実行されていません。</span>\n- `AUTHORIZED`: 仮売上<br /><span class=\"smallText\">仮売上として与信枠の確保が完了しており、売上確定により請求を完了できます。</span>\n- `CAPTURED`: 売上確定<br /><span class=\"smallText\">請求が完了し、売上が確定しています。</span>\n- `CANCELED`: キャンセル<br /><span class=\"smallText\">この決済はキャンセルされました。</span>\n"
          },
          "brand": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/CardBrand"
              }
            ]
          },
          "card_no": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/card_no"
              }
            ],
            "description": "マスク済みカード番号。\\\n<span class=\"smallText\">\n下4桁以外をマスクしたカード番号です。\\\nApple Payでは実際のカード番号ではなくデバイスアカウント番号と呼ばれる番号で決済が行われるため、このフィールドで返される値はデバイスアカウント番号をマスクしたものになります。\\\n</span>\n形式：`************1234`\n"
          },
          "expire": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/expire"
              }
            ]
          },
          "holder_name": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/holder_name"
              }
            ]
          },
          "card_no_hash": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/card_no_hash"
              }
            ]
          },
          "method": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CardPayMethod"
              }
            ]
          },
          "pay_times": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/CardPayTimesResponse"
              }
            ]
          },
          "forward": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 7,
            "example": "12345",
            "description": "仕向け先\n"
          },
          "issuer": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 7,
            "example": "1a34567",
            "description": "イシュア\n"
          },
          "transaction_id": {
            "type": "string",
            "nullable": true,
            "minLength": 28,
            "maxLength": 28,
            "example": null,
            "description": "トランザクションID\n"
          },
          "approve": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 7,
            "example": null,
            "description": "承認番号\n"
          },
          "auth_max_date": {
            "type": "string",
            "nullable": true,
            "example": "2022/05/16 23:59:59.999",
            "description": "仮売上有効期限\\\n`job_code`に`AUTH（仮売上）`を指定した場合値が設定されます。\n"
          },
          "item_code": {
            "type": "string",
            "minLength": 7,
            "maxLength": 7,
            "nullable": true,
            "example": "0000990",
            "description": "商品コード\n"
          },
          "send_url": {
            "type": "string",
            "nullable": true,
            "example": null,
            "description": "※ 閉塞機能\n"
          }
        },
        "x-req-properties": {
          "token": {
            "type": "string",
            "example": "eyJoZWFkZXIiOnsiZXBoZW1lcmFsUHVibGljS2V5IjoidGVzdFB1YmxpY0tleSIsInB1YmxpY0tleUhhc2giOiJ0ZXN0S2V5SGFzaCIsInRyYW5zYWN0aW9uSWQiOiJ0ZXN0VHJhbnNhY3Rpb24ifSwiZGF0YSI6ImV5SmhjSEJzYVdOaGRHbHZibEJ5YVcxaGNubEJZMk52ZFc1MFRuVnRZbVZ5SWpvaU5ERXhNVEV4TVRFeE1URXhNVEV4TVNJc0ltRndjR3hwWTJGMGFXOXVSWGh3YVhKaGRHbHZia1JoZEdVaU9pSXlOakV5TXpFaUxDSmpkWEp5Wlc1amVVTnZaR1VpT2lJek9USWlMQ0owY21GdWMyRmpkR2x2YmtGdGIzVnVkQ0k2SWpFeE1URWlMQ0pqWVhKa2FHOXNaR1Z5VG1GdFpTSTZJaUlzSW1SbGRtbGpaVTFoYm5WbVlXTjBkWEpsY2tsa1pXNTBhV1pwWlhJaU9pSWlMQ0p3WVhsdFpXNTBSR0YwWVZSNWNHVWlPaUl6UkZObFkzVnlaU0lzSW5CaGVXMWxiblJFWVhSaElqcDdJbTl1YkdsdVpWQmhlVzFsYm5SRGNubHdkRzluY21GdElqb2lSSFZ0YlhsRFFWWldRVUZCUVVGQlFVRkJRVUZCUVVGQlFVRkJRU0lzSW1WamFVbHVaR2xqWVhSdmNpSTZJalVpZlgwPSIsInNpZ25hdHVyZSI6InRlc3RTaWduYXR1cmUiLCJ2ZXJzaW9uIjoiTW9jayJ9",
            "description": "Apple Pay カードトークン\\\nApple Payが利用可能なデバイスから取得したトークンをBase64エンコードした値を設定します。\\\n\\\nトークンの取得方法\n- Swift： `PKPayment.token.paymentData`の値をBase64エンコード\n- JavaScript： `ApplePayPaymentAuthorizedEvent.payment.token`の値をBase64エンコード\n\n詳細は[Docs > 決済処理を実行する（Apple Pay）](https://mpb-mizuhobank-docs.fincode.jp/payment/applepay/execution)または[Offering Apple Pay in Your App](https://developer.apple.com/documentation/passkit_apple_pay_and_wallet/apple_pay/offering_apple_pay_in_your_app)（Apple公式）を参照できます。\n"
          }
        }
      },
      "Payment.ApplePay.list": {
        "type": "object",
        "properties": {
          "list": {
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/Payment"
                },
                {
                  "$ref": "#/components/schemas/Payment.ApplePay"
                }
              ]
            }
          }
        }
      },
      "Payment.ApplePay.ListRetrieving.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/_ListResponse"
          },
          {
            "$ref": "#/components/schemas/Payment.ApplePay.list"
          }
        ]
      },
      "GooglePayCardBrand": {
        "type": "string",
        "maxLength": 50,
        "enum": [
          "VISA",
          "MASTER",
          "JCB",
          "AMEX",
          "DINERS",
          ""
        ],
        "description": "カードブランドを表します。\n\n- `VISA`: VISA\n- `MASTER`: Mastercard\n- `JCB`: JCB\n- `AMEX`: American Express\n- `DINERS`: Diners Club\n- `\"\"`（空文字列） : 判定不能\n"
      },
      "Payment.GooglePay": {
        "type": "object",
        "properties": {
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ],
            "description": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Googlepay`: Google Pay\n"
          },
          "job_code": {
            "type": "string",
            "enum": [
              "AUTH",
              "CAPTURE",
              "CANCEL"
            ],
            "example": "CAPTURE",
            "description": "取引種別\n\n- `AUTH`：仮売上\n- `CAPTURE`：即時売上\n- `CANCEL`：キャンセル\n"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentStatus"
              }
            ],
            "description": "決済ステータス\n\n- `UNPROCESSED`: 未処理<br /><span class=\"smallText\">請求はまだ実行されていません。</span>\n- `AUTHORIZED`: 仮売上<br /><span class=\"smallText\">仮売上として与信枠の確保が完了しており、売上確定により請求を完了できます。</span>\n- `CAPTURED`: 売上確定<br /><span class=\"smallText\">請求が完了し、売上が確定しています。</span>\n- `CANCELED`: キャンセル<br /><span class=\"smallText\">この決済はキャンセルされました。</span>\n- `AUTHENTICATED`: 未処理（3Dセキュア認証待ち）<br /><span class=\"smallText\">3Dセキュア認証を使用する決済を実行した直後の状態です。認証後決済実行を行うまで請求や仮売上はされません。</span>\n"
          },
          "brand": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/GooglePayCardBrand"
              }
            ]
          },
          "card_no": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/card_no"
              }
            ],
            "description": "マスク済みカード番号。\\\n<span class=\"smallText\">\n下4桁以外をマスクしたカード番号です。\\\n</span>\n形式：`************1234`\n"
          },
          "expire": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/expire"
              }
            ]
          },
          "card_no_hash": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/card_no_hash"
              }
            ]
          },
          "method": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CardPayMethod"
              }
            ]
          },
          "pay_times": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/CardPayTimesResponse"
              }
            ]
          },
          "tds_type": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds_type"
              }
            ]
          },
          "tds2_type": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_type"
              }
            ]
          },
          "tds2_ret_url": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_ret_url"
              }
            ]
          },
          "tds2_status": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/ThreeDSecure2Status"
              }
            ]
          },
          "merchant_name": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/td_tenant_name"
              }
            ]
          },
          "forward": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 7,
            "example": "12345",
            "description": "仕向け先\n"
          },
          "issuer": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 7,
            "example": "1a34567",
            "description": "イシュア\n"
          },
          "transaction_id": {
            "type": "string",
            "nullable": true,
            "minLength": 28,
            "maxLength": 28,
            "example": null,
            "description": "トランザクションID\n"
          },
          "approve": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 7,
            "example": null,
            "description": "承認番号\n"
          },
          "auth_max_date": {
            "type": "string",
            "nullable": true,
            "example": "2022/05/16 23:59:59.999",
            "description": "仮売上有効期限\\\n`job_code`に`AUTH（仮売上）`を指定した場合値が設定されます。\n"
          },
          "acs": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 1,
            "example": null,
            "deprecated": true
          },
          "item_code": {
            "type": "string",
            "nullable": true,
            "minLength": 7,
            "maxLength": 7,
            "description": "商品コード\n"
          },
          "return_url": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/x-req-properties-return_url"
              }
            ]
          },
          "return_url_on_failure": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/x-req-properties-return_url_on_failure"
              }
            ]
          }
        },
        "x-req-properties": {
          "token": {
            "type": "string",
            "example": "eyJ2ZXJzaW9uIjoiR21vTW9jayIsInByb3RvY29sVmVyc2lvbiI6IkVDdjIiLCJzaWduYXR1cmUiOiJNRVFDSUR4Qm9VQ29GUkdSZUxkWi9jQUJsU1NSSUtvT0VGb1UzZTI3YzE0dk1adGZBaUJ0WDNwR01FcG53Nm1TQWJuYWdDQ2dIbENrM05jRndXWUV5eElFNktHWlZBdTAwM2R1MDAzZCIsInNpZ25lZE1lc3NhZ2UiOiJ7XCJlbmNyeXB0ZWRNZXNzYWdlXCI6XCJleUpuWVhSbGQyRjVUV1Z5WTJoaGJuUkpaQ0k2SUNKemIyMWxMVzFsY21Ob1lXNTBMV2xrSWl3aWJXVnpjMkZuWlVWNGNHbHlZWFJwYjI0aU9pQWlNalUxTmpFeE1UVTVPVEF3TUNJc0ltMWxjM05oWjJWSlpDSTZJQ0pCU0RKRmFuUmpPRGhhU0VvdE1tRlpRbEZYZWtoM2RuQTJiREJLYzBOSVozaFdkRGh6T1RGQkxWcFZhV3RoV0U1aVkycHpSbTAyWjJjNVJYaGxWbEl0YW5wSmVWUXRiVXAyUVY5dWRIWm1Vbk5FUkU5SU1tcHVTMDFxWkZSMFdFbEtkbEIwTUU1Q1ZWVTBOVkkzTFdkdWFuaHJlQzF6U1RCc1pHTlhkbUpFU0hOV01EY3pOWGxHUkdKWGF5SXNJbkJoZVcxbGJuUk5aWFJvYjJRaU9pQWlRMEZTUkNJc0luQmhlVzFsYm5STlpYUm9iMlJFWlhSaGFXeHpJam9nZXlKbGVIQnBjbUYwYVc5dVdXVmhjaUk2SURJd05UQXNJbVY0Y0dseVlYUnBiMjVOYjI1MGFDSTZJREV5TENKd1lXNGlPaUFpTkRFd01EQXdNREF3TURBd01ERXdNQ0lzSW1GMWRHaE5aWFJvYjJRaU9pQWlVRUZPWDA5T1RGa2lmWDA9XCIsXCJlcGhlbWVyYWxQdWJsaWNLZXlcIjpcIkJHTXhlc256S0NWRFlTWTdpNk5sWHJyeDNDRTFvRERUTElhOGx2QUFpZkxnZ2s0WW92bHV5SXZWNlh4VVllTTI1VzRqeWFKaWtNcVF3MGh3ZDVCVEw4OD1cIixcInRhZ1wiOlwiWlZ3bEp0N2RVOFBsazArcjhyUEY4RG1QVHZEaU9BMVVBb05qRFYrU3FERXUwMDNkXCJ9In0=",
            "description": "Google Pay カードトークン\\\nGoogle Payを利用するデバイスから取得したトークン（`paymentMethodData.tokenizationData.token`）をBase64エンコードした値を設定します。  \n\nトークン生成時、`tokenizationSpecification`には以下の値を指定してください。\n- gateway： `fincode`\n- gatewayMerchantId： `{{ショップID}}`<br>（例：s_01234567890）\n\n詳細は[Docs > 決済処理を実行する（Google Pay）](/payment/googlepay/execution)または[Google Pay ウェブ デベロッパー向けドキュメント](https://developers.google.com/pay/api/web?hl=ja)（Google公式）を参照してください。\n"
          }
        }
      },
      "Payment.GooglePay.list": {
        "type": "object",
        "properties": {
          "list": {
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/Payment"
                },
                {
                  "$ref": "#/components/schemas/Payment.GooglePay"
                }
              ]
            }
          }
        }
      },
      "Payment.GooglePay.ListRetrieving.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/_ListResponse"
          },
          {
            "$ref": "#/components/schemas/Payment.GooglePay.list"
          }
        ]
      },
      "KonbiniCode": {
        "type": "string",
        "enum": [
          "00010",
          "00020",
          "00030",
          "00080",
          "00760"
        ],
        "minLength": 5,
        "maxLength": 5,
        "description": "コンビニ事業者コード\\\n購入者が払い込みを行ったコンビニ事業者をあらわすコード。\n\n- `00010`: セブン-イレブン\n- `00020`: ローソン\n- `00030`: ファミリーマート\n- `00080`: ミニストップ\n- `00760`: セイコーマート\n"
      },
      "device_name": {
        "type": "string",
        "minLength": 1,
        "maxLength": 20,
        "example": "iPhone",
        "description": "デバイス名\\\nバーコード表示を行うデバイスの名前を指定します。\n\n- Androidの場合： [ユーザーエージェントクライアントヒントAPI](https://developer.mozilla.org/ja/docs/Web/API/User-Agent_Client_Hints_API)またはNavigator: userAgentプロパティ（非推奨）で取得できる文字列から取得したデバイス名を指定します。\n- iPhoneの場合： 固定文字列`iPhone`を指定します。\n"
      },
      "win_width": {
        "type": "string",
        "minLength": 1,
        "maxLength": 5,
        "example": "375",
        "description": "デバイス画面幅\\\nバーコード表示を行うデバイスの画面幅を指定します。\n\n- Androidの場合： `window.screen.width`で取得した値に `pixel_ratio`（ピクセル比）の値を乗じたものを指定します。\n- iPhoneの場合： `window.screen.width`で取得した値を指定します。\n"
      },
      "win_height": {
        "type": "string",
        "minLength": 1,
        "maxLength": 5,
        "example": "812",
        "description": "デバイス画面の高さ\\\nバーコード表示を行うデバイス画面の高さを指定します。\n\n- Androidの場合： `window.screen.height`で取得した値に `pixel_ratio`（ピクセル比）の値を乗じたものを指定します。\n- iPhoneの場合： `window.screen.height`で取得した値を指定します。\n"
      },
      "KonbiniPaymentProcessResult": {
        "type": "string",
        "enum": [
          "000",
          "001",
          "002",
          "003",
          "004",
          "005",
          "006",
          "007",
          "008",
          "009",
          "010",
          "011",
          "012",
          "013",
          "900"
        ],
        "minLength": 3,
        "maxLength": 3,
        "description": "コンビニ事業者の決済処理結果コード\n\n- `000`: 正常終了\n- `001`: 認証失敗\n- `002`: 注文登録には成功したものの端末情報が確認できなかったためバーコード画像の発行なし\n- `003`: 必須項目の不備によるエラー\n- `004`: バーコードデータ内の識別子が不正\n- `005`: バーコードデータ内のメーカーコードが不正\n- `006`: バーコードデータ内の企業識別コードが不正\n- `007`: 支払い期限日時を超過している、または形式が不正\n- `008`: 支払い金額が上限もしくは下限を超えている\n- `009`: 全体チェックデジットが不正\n- `010`: その他の理由によりバーコード画像の発行に失敗\n- `011`: 印紙フラグ（内部データ）不正\n- `012`: 端末情報の指定値の桁数不正\n- `013`: 既に同一のバーコードが登録済み\n- `900`: 予期せぬエラー\n"
      },
      "Payment.Konbini": {
        "type": "object",
        "properties": {
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ],
            "description": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Konbini`: コンビニ決済\n"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentStatus"
              }
            ],
            "description": "決済ステータス\n\n- `UNPROCESSED`: 未処理<br /><span class=\"smallText\">請求はまだ実行されていません。</span>\n- `AWAITING_CUSTOMER_PAYMENT`: 購入者の支払い待ち<br /><span class=\"smallText\">購入者によるコンビニ店頭レジでの払い込みを待っている状態。</span>\n- `CAPTURED`: 売上確定<br /><span class=\"smallText\">請求が完了し、売上が確定しています。</span>\n- `CANCELED`: キャンセル<br /><span class=\"smallText\">この決済はキャンセルされました。</span>\n- `EXPIRED`: 決済の期限切れ<br /><span class=\"smallText\">この決済は期限が切れています。</span>\n"
          },
          "payment_term_day": {
            "type": "integer",
            "format": "int64",
            "default": 2,
            "nullable": true,
            "example": 2,
            "description": "支払い期限日数\n"
          },
          "payment_term": {
            "type": "string",
            "nullable": true,
            "description": "支払い期限日時\\\nコンビニ決済の支払い期限日時です。\\\n\\\n形式：`yyyy/MM/dd HH:mm:ss.SSS`\n"
          },
          "payment_date": {
            "type": "string",
            "nullable": true,
            "description": "支払日時\\\nコンビニ店頭で購入者が支払いを行った日時です。\\\n\\\n形式：`yyyy/MM/dd HH:mm:ss.SSS`\n"
          },
          "barcode": {
            "type": "string",
            "nullable": true,
            "description": "バーコード画像 Base64エンコード済み画像データ\\\nコンビニ店頭での支払いに使用するバーコード画像のBase64エンコード済みデータです。このデータをデコードして表示します。\\\nバーコード画像はレギュレーションに従って表示する必要があります。詳細は[Docs > レギュレーションと注意事項](https://mpb-mizuhobank-docs.fincode.jp/payment/konbini/note)から参照できます。\n"
          },
          "barcode_format": {
            "type": "string",
            "nullable": true,
            "enum": [
              "jpg",
              "png",
              "bmp"
            ],
            "description": "バーコード画像 フォーマット\\\n発行されたバーコード画像（`barcode`）のフォーマットです。\n"
          },
          "barcode_width": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 9,
            "description": "バーコード画像 横幅（px）\\\n発行されたバーコード画像（`barcode`）の横幅です。\n"
          },
          "barcode_height": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 9,
            "description": "バーコード画像 縦幅（px）\\\n発行されたバーコード画像（`barcode`）の縦幅です。\n"
          },
          "overpayment_flag": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "多重支払フラグ\\\nこの決済に対して複数回支払いが行われた場合`1`になります。\n\n- `0`: 0回、または1回の支払いが行われた\n- `1`: 2回以上、同一のバーコードを用いて支払いが行われた\n"
          },
          "cancel_overpayment_flag": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "キャンセル後支払フラグ\\\nこの決済をキャンセルした後に購入者がバーコードを用いて支払いを行った場合`1`になります。\n\n- `0`: キャンセル後支払は行われていない\n- `1`: キャンセル後、購入者による支払いが行われた\n"
          },
          "konbini_code": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/KonbiniCode"
              }
            ]
          },
          "konbini_store_code": {
            "nullable": true,
            "minLength": 1,
            "maxLength": 8,
            "description": "コンビニ店舗コード\\\nコンビニ事業者ごとに独自体系の店舗コードです。\n"
          },
          "device_name": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/device_name"
              }
            ]
          },
          "os_version": {
            "nullable": true,
            "minLength": 1,
            "maxLength": 10,
            "description": "OSバージョン\n"
          },
          "win_width": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/win_width"
              }
            ]
          },
          "win_height": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/win_height"
              }
            ]
          },
          "xdpi": {
            "nullable": true,
            "minLength": 1,
            "maxLength": 6,
            "description": "画面横幅のDPI\n"
          },
          "ydpi": {
            "nullable": true,
            "minLength": 1,
            "maxLength": 6,
            "description": "画面縦幅のDPI\n"
          },
          "result": {
            "allOf": [
              {
                "$ref": "#/components/schemas/KonbiniPaymentProcessResult"
              }
            ]
          },
          "order_serial": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 18,
            "description": "注文管理ID\n"
          },
          "invoice_id": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 20,
            "description": "請求ID\n"
          }
        },
        "x-req-properties": {
          "payment_term_day": {
            "type": "string",
            "nullable": false,
            "minLength": 1,
            "maxLength": 2,
            "example": "2",
            "description": "支払い期限日数\\\nこの決済の支払い期限日数です。`0`日から`14`日まで指定できます。\n\n- `0`を指定すると決済を作成した当日に限り支払いが可能な決済が作成されます。\n- デフォルト：`2`\n"
          }
        }
      },
      "Payment.Konbini.list": {
        "type": "object",
        "properties": {
          "list": {
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/Payment"
                },
                {
                  "$ref": "#/components/schemas/Payment.Konbini"
                }
              ]
            }
          }
        }
      },
      "Payment.Konbini.ListRetrieving.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/_ListResponse"
          },
          {
            "$ref": "#/components/schemas/Payment.Konbini.list"
          }
        ]
      },
      "Payment.PayPay": {
        "type": "object",
        "properties": {
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ],
            "description": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Paypay`: PayPay\n"
          },
          "job_code": {
            "type": "string",
            "enum": [
              "AUTH",
              "CAPTURE",
              "CANCEL"
            ],
            "example": "CAPTURE",
            "description": "取引種別\n\n- `AUTH`：仮売上\n- `CAPTURE`：即時売上\n- `CANCEL`：キャンセル\n"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentStatus"
              }
            ],
            "description": "決済ステータス\n\n- `UNPROCESSED`: 未処理<br /><span class=\"smallText\">請求はまだ実行されていません。</span>\n- `AWAITING_CUSTOMER_PAYMENT`: 購入者の支払い待ち<br /><span class=\"smallText\">購入者によるPayPay上での取引承認を待っている状態。</span>\n- `AUTHORIZED`: 仮売上<br /><span class=\"smallText\">仮売上としてPayPay残高の確保が完了しており、売上確定により請求を完了できます。</span>\n- `CAPTURED`: 売上確定<br /><span class=\"smallText\">請求が完了し、売上が確定しています。</span>\n- `CANCELED`: キャンセル<br /><span class=\"smallText\">この決済はキャンセルされました。</span>\n- `EXPIRED`: 決済の期限切れ<br /><span class=\"smallText\">この決済は期限が切れています。</span>\n"
          },
          "code_url": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 256,
            "example": "https://www.paypay.example.com/app/cashier?code=https%3A%2F%2Fqr.paypay.example.com%2F0123456789abcdefghijklm",
            "description": "PayPay支払いURL\\\n購入者をこのURLにリダイレクトすることでPayPay上での取引を開始します。\n"
          },
          "code_expiry_date": {
            "type": "string",
            "nullable": true,
            "example": "2022/05/16 12:34:56.999",
            "description": "支払期限\\\n形式： `yyyy/MM/dd HH:mm:ss.SSS`\n"
          },
          "redirect_url": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 256,
            "example": "https://your-service.example.com/on-payment-complete",
            "description": "リダイレクトURL\\\n決済が完了した際のPayPayからのリダイレクト先URL。\n"
          },
          "redirect_type": {
            "type": "string",
            "nullable": true,
            "enum": [
              "1",
              "2"
            ],
            "example": "1",
            "description": "リダイレクト先種別\\\n`redirect_url`の種別\n\n- `1`： Webページ／Webアプリケーション\n- `2`： ネイティブアプリ\n"
          },
          "auth_max_date": {
            "type": "string",
            "nullable": true,
            "example": "2022/05/16",
            "description": "仮売上期限\\\n形式： `yyyy/MM/dd`\n"
          },
          "order_description": {
            "type": "string",
            "nullable": true,
            "maxLength": 100,
            "example": "○○の購入",
            "description": "注文内容の説明\\\n購入者のPayPayアプリ上で表示される注文内容の説明。\n"
          },
          "capture_description": {
            "type": "string",
            "nullable": true,
            "maxLength": 100,
            "example": "○○の発送完了",
            "description": "売上確定の説明\\\n購入者のPayPayアプリ上で表示される売上確定の説明。\n"
          },
          "update_description": {
            "type": "string",
            "nullable": true,
            "maxLength": 100,
            "example": "○○の変更の適用",
            "description": "金額変更の説明\\\n購入者のPayPayアプリ上で表示される金額変更の説明。\n"
          },
          "cancel_description": {
            "type": "string",
            "nullable": true,
            "maxLength": 100,
            "example": "○○の購入キャンセル",
            "description": "キャンセルの説明\\\n購入者のPayPayアプリ上で表示されるキャンセルの説明。\n"
          },
          "store_id": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 18,
            "example": "123456",
            "description": "店舗ID\\\nPayPayによって発行された店舗ID。\n"
          },
          "code_id": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 64,
            "example": "123456",
            "description": "PayPayの支払いコードID\n"
          },
          "payment_id": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 64,
            "description": "PayPay 決済ID\n"
          },
          "paypay_result_code": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 256,
            "description": "PayPay処理結果コード\n"
          },
          "merchant_payment_id": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 64,
            "description": "PayPay トランザクションID\n"
          },
          "merchant_capture_id": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 64,
            "description": "PayPay 売上確定ID\n"
          },
          "merchant_update_id": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 64,
            "description": "PayPay 金額変更ID\n"
          },
          "merchant_revert_id": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 64,
            "description": "PayPay キャンセルID\n"
          },
          "merchant_refund_id": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 64,
            "description": "PayPay 返金ID\n"
          },
          "payment_date": {
            "type": "string",
            "nullable": true,
            "example": "2022/05/16 12:34:56.999",
            "description": "支払日時\\\n形式： `yyyy/MM/dd HH:mm:ss.SSS`\n"
          }
        },
        "x-req-properties": {
          "user_agent": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "example": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3",
            "description": "ユーザーエージェント\\\nリクエストを送信したユーザーエージェントの情報。`redirect_type`が`1`（Webページ／Webアプリケーション）の場合指定できます。\n"
          }
        }
      },
      "Payment.PayPay.list": {
        "type": "object",
        "properties": {
          "list": {
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/Payment"
                },
                {
                  "$ref": "#/components/schemas/Payment.PayPay"
                }
              ]
            }
          }
        }
      },
      "Payment.PayPay.ListRetrieving.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/_ListResponse"
          },
          {
            "$ref": "#/components/schemas/Payment.PayPay.list"
          }
        ]
      },
      "Payment.DirectDebit": {
        "type": "object",
        "properties": {
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ],
            "description": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Directdebit`: 口座振替\n"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentStatus"
              }
            ],
            "description": "決済ステータス\n\n- `UNPROCESSED`: 未処理<br /><span class=\"smallText\">振替はまだ実行されていません。</span>\n- `AWAITING_PAYMENT_APPROVAL`: 決済処理待ち<br /><span class=\"smallText\">M's PayBridgeおよび金融機関による振替処理を待っています。</span>\n- `CAPTURED`: 売上確定<br /><span class=\"smallText\">振替が完了し、売上が確定しています。</span>\n- `CANCELED`: キャンセル<br /><span class=\"smallText\">この振替はキャンセルされました。</span>\n- `FAILED`: 請求失敗<br /><span class=\"smallText\">何らかの理由により振替に失敗しました。</span>\n"
          },
          "result_code": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/DirectDebitResultCode"
              }
            ]
          },
          "target_date": {
            "type": "string",
            "nullable": true,
            "example": "2022/05/06",
            "description": "振替指定日\\\n振替を行う日を指定します。\\\n実際の振替は営業日に行われるため、必ずしも指定した日付に引き落としが行われるとは限りません。\\\n指定可能な日付及び引き落とし日は[Docs > 口座振替年間スケジュール](https://mpb-mizuhobank-docs.fincode.jp/payment/directdebit/schedule)の「振替指定日」及び「振替日」の列で確認できます。\n"
          },
          "withdrawal_date": {
            "type": "string",
            "nullable": true,
            "example": "2022/05/06",
            "description": "引き落とし日\\\n実際に購入者の口座から引き落としが行われた実績日です。\\\n\\\n形式： `yyyy/MM/dd`\n"
          },
          "request_accept_end_date": {
            "type": "string",
            "nullable": true,
            "example": "2022/04/25",
            "description": "請求依頼受付期間 終了日\\\n振替依頼を受け付ける最終日。この日付の23:59までに振替依頼（決済実行）を受け付けます。\\\n\\\n形式： `yyyy/MM/dd`\\\n詳細は[Docs > 口座振替年間スケジュール](https://mpb-mizuhobank-docs.fincode.jp/payment/directdebit/schedule)の「請求依頼受付期間終了日」の列で確認できます。\n"
          },
          "transfer_return_date": {
            "type": "string",
            "nullable": true,
            "example": "2022/05/11",
            "description": "請求結果反映 予定日\\\n\\\n形式： `yyyy/MM/dd`\\\n詳細は[Docs > 口座振替年間スケジュール](https://mpb-mizuhobank-docs.fincode.jp/payment/directdebit/schedule)の「振替結果返却日」の列で確認できます。\n"
          },
          "payment_method_id": {
            "type": "string",
            "nullable": true,
            "minLength": 25,
            "maxLength": 25,
            "description": "決済手段ID\\\nこの決済に使用された決済手段のIDです。\n"
          },
          "bank_code": {
            "type": "string",
            "nullable": true,
            "minLength": 4,
            "maxLength": 4,
            "example": "0310",
            "description": "金融機関コード\\\nM's PayBridgeの口座振替に対応している金融機関のコードのリストは[Docs > 利用可能な金融機関（口座振替）](https://mpb-mizuhobank-docs.fincode.jp/payment/directdebit/restriction)で参照できます。\n"
          },
          "bank_name": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 45,
            "example": "",
            "description": "金融機関名\n"
          },
          "branch_code": {
            "type": "string",
            "nullable": true,
            "minLength": 3,
            "maxLength": 3,
            "example": "101",
            "description": "支店コード\n"
          },
          "branch_name": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 45,
            "description": "支店名\n"
          },
          "remarks": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 9,
            "example": "フィンコードショッ",
            "description": "ご利用明細表示内容\n\n- フォーマット：半角英数カナ／全角英数カナ／一部の記号／半角全角スペース\n- デフォルト： `ショップ名カナの先頭9文字`\n\n※ 利用可能な記号\n\n- 半角：`.`、`(`、`)`、`–`\n- 全角：`．`、`（`、`）`、`ー`\n"
          },
          "subscription_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/Subscription_properties-id"
              }
            ],
            "description": "サブスクリプションID\\\nこの決済情報がブスクリプションにより生成されたものである場合、このフィールドにサブスクリプションIDが設定されます。\n"
          },
          "settlement_route": {
            "nullable": false,
            "allOf": [
              {
                "$ref": "#/components/schemas/DirectDebitSettlementRoute"
              }
            ]
          }
        }
      },
      "Payment.DirectDebit.list": {
        "type": "object",
        "properties": {
          "list": {
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/Payment"
                },
                {
                  "$ref": "#/components/schemas/Payment.DirectDebit"
                },
                {
                  "type": "object",
                  "properties": {
                    "invoice_id": {
                      "type": "string",
                      "nullable": true,
                      "minLength": 1,
                      "maxLength": 30,
                      "description": "紐づくインボイスID\\\nこの決済に後付けで紐付けられたインボイスがある場合、そのインボイスIDが設定されます。\n"
                    }
                  }
                }
              ]
            }
          }
        }
      },
      "Payment.DirectDebit.ListRetrieving.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/_ListResponse"
          },
          {
            "$ref": "#/components/schemas/Payment.DirectDebit.list"
          }
        ]
      },
      "Payment.VirtualAccount": {
        "type": "object",
        "properties": {
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ],
            "description": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Virtualaccount`: 銀行振込（バーチャル口座）\n"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentStatus"
              }
            ],
            "description": "決済ステータス\n\n- `UNPROCESSED`: 未処理<br /><span class=\"smallText\">請求はまだ実行されていません。</span>\n- `AWAITING_CUSTOMER_PAYMENT`: 購入者の支払い待ち<br /><span class=\"smallText\">購入者によるバーチャル口座への振込を待っている状態。</span>\n- `CAPTURED`: 売上確定<br /><span class=\"smallText\">振込が完了し、売上が確定しています。</span>\n- `CANCELED`: キャンセル<br /><span class=\"smallText\">この決済はキャンセルされました。</span>\n- `EXPIRED`: 決済の期限切れ<br /><span class=\"smallText\">この決済は期限が切れています。</span>\n"
          },
          "billing_amount": {
            "type": "integer",
            "format": "int64",
            "minLength": 1,
            "maxLength": 10,
            "example": 1000,
            "description": "振込依頼金額\n"
          },
          "billing_tax": {
            "type": "integer",
            "format": "int64",
            "nullable": true,
            "minLength": 1,
            "maxLength": 10,
            "example": 100,
            "description": "振込依頼金額（税送料）\n"
          },
          "billing_total_amount": {
            "type": "integer",
            "format": "int64",
            "minLength": 1,
            "maxLength": 10,
            "example": 1100,
            "description": "振込依頼金額 合計\\\n振込依頼金額と振込依頼金額（税送料）の合計金額です。\n"
          },
          "payment_term_day": {
            "type": "integer",
            "format": "int64",
            "minLength": 1,
            "maxLength": 2,
            "example": 3,
            "description": "支払期限日数\\\n\\\n実行日から見て、支払期限日数後の翌日AMに期限切れになります。\\\n例）2024/4/1に、`支払期限日数=2`で決済実行した場合、2024/4/4 AMに期限切れ\n"
          },
          "payment_term": {
            "type": "string",
            "nullable": true,
            "example": "2022/05/16 23:59:59.999",
            "description": "支払期限\\\n形式： `yyyy/MM/dd HH:mm:ss.SSS`\n"
          },
          "payment_method_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentMethod_properties-id"
              }
            ]
          },
          "va_branch_code": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 3,
            "example": "502",
            "description": "支店コード\\\n\\\n発行されたバーチャル口座の支店コードです。\n"
          },
          "va_branch_name": {
            "type": "string",
            "nullable": true,
            "maxLength": 15,
            "example": "アジサイ",
            "description": "支店名\\\n\\\n発行されたバーチャル口座の支店名です。\n"
          },
          "va_account_number": {
            "type": "string",
            "nullable": true,
            "minLength": 7,
            "maxLength": 7,
            "example": "1234567",
            "description": "口座番号\\\n\\\n発行されたバーチャル口座の口座番号です。\n"
          },
          "va_account_name": {
            "type": "string",
            "nullable": true,
            "maxLength": 40,
            "example": "ジーエムオーイプシロン（カ",
            "description": "口座名義\\\n\\\n発行されたバーチャル口座の口座名義です。\n"
          },
          "virtual_account_id": {
            "type": "string",
            "nullable": true,
            "minLength": 10,
            "maxLength": 10,
            "example": "1234567890",
            "description": "バーチャル口座ID\\\n\\\n発行されたバーチャル口座のIDです。\n"
          },
          "account_assignment_date": {
            "type": "string",
            "nullable": true,
            "example": "2022/05/16 12:34:56.999",
            "description": "バーチャル口座 割当日時\\\n形式： `yyyy/MM/dd HH:mm:ss.SSS`\n"
          },
          "transaction_date": {
            "type": "string",
            "nullable": false,
            "example": "2022/05/16",
            "description": "取引日\\\n\\\n形式： `yyyy/MM/dd`\n"
          },
          "value_date": {
            "type": "string",
            "nullable": true,
            "example": "2022/05/16",
            "description": "起算日\\\n\\\n銀行で入金が処理された営業日\\\n形式： `yyyy/MM/dd`\n"
          },
          "remitter_account_name": {
            "type": "string",
            "nullable": true,
            "maxLength": 48,
            "example": "ヤマダ　タロウ",
            "description": "振込依頼人 氏名\\\n\\\n振込依頼人（購入者）の氏名です。\n"
          },
          "remitter_bank_name": {
            "type": "string",
            "nullable": true,
            "maxLength": 30,
            "example": "イロハギンコウ",
            "description": "振込依頼人 銀行名\\\n\\\n振込依頼人（購入者）の銀行名です。\n"
          },
          "remitter_branch_name": {
            "type": "string",
            "nullable": true,
            "maxLength": 15,
            "example": "ホンテン",
            "description": "振込依頼人 支店名\\\n\\\n振込依頼人（購入者）の支店名です。\n"
          },
          "overpayment_flag": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "多重支払フラグ\\\nこの決済に対して複数回支払いが行われた場合`1`になります。\n\n- `0`: 0回、または1回の支払いが行われた\n- `1`: 2回以上、同一のバーチャル口座に対して支払いが行われた\n"
          },
          "cancel_overpayment_flag": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "キャンセル後支払フラグ\\\nこの決済をキャンセルした後に購入者がバーチャル口座に対して支払いを行った場合`1`になります。\n\n- `0`: キャンセル後支払は行われていない\n- `1`: キャンセル後支払が行われた\n"
          },
          "expire_overpayment_flag": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "期限切れ後支払フラグ\\\nこの決済の支払期限が過ぎた後に購入者がバーチャル口座に対して支払いを行った場合`1`になります。\n\n- `0`: 期限切れ後支払は行われていない\n- `1`: 期限切れ後支払が行われた\n"
          },
          "use_exact_deposit_amount": {
            "type": "boolean",
            "enum": [
              true,
              false
            ],
            "description": "入金可能額設定利用フラグ\\\nこの決済で使用されるバーチャル口座に対して入金可能額を設定するかどうかを示すフラグです。\n設定した場合、購入者は請求金額以外の金額を振り込むことができなくなります。\n\n- `true`: 入金可能額を設定する\n- `false`: 入金可能額を設定しない（デフォルト）\n"
          },
          "use_static_virtual_account": {
            "type": "boolean",
            "enum": [
              true,
              false
            ],
            "description": "顧客固定バーチャル口座利用フラグ\\\nこの決済において顧客固定バーチャル口座が利用されているかどうかを示すフラグです。\n\n- `true`: 顧客固定バーチャル口座を利用している\n- `false`: 顧客固定バーチャル口座を利用していない\n"
          },
          "bulk_payment_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentBulk_properties-id"
              }
            ],
            "description": "一括決済ID\\\nこの決済情報が一括決済機能を用いて登録されたものである場合、このフィールドに一括決済IDが設定されます。\n"
          }
        },
        "x-req-properties": {
          "billing_amount": {
            "type": "string",
            "minLength": 1,
            "maxLength": 10,
            "description": "振込依頼金額\\\n`billing_tax`との合計値が決済手段ごとに定められた決済金額の範囲内に収まる必要があります。\\\n参照例： [銀行振込（バーチャル口座） > 制限事項 > 利用可能な金額](https://mpb-mizuhobank-docs.fincode.jp/payment/virtualaccount/restriction)\n"
          },
          "billing_tax": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 10,
            "description": "振込依頼金額（税送料）\\\n`billing_amount`との合計値が決済手段ごとに定められた決済金額の範囲内に収まる必要があります。\\\n参照例： [銀行振込（バーチャル口座） > 制限事項 > 利用可能な金額](https://mpb-mizuhobank-docs.fincode.jp/payment/virtualaccount/restriction)\n"
          },
          "payment_term_day": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 2,
            "example": "2",
            "description": "支払期限日数\\\n\\\n`0`～`99`日の範囲でバーチャル口座で振り込み可能な期限日数を指定します。\\\n実行日から見て、支払期限日数後の翌日AMに期限切れになります。\\\n例）2024/4/1に、`支払期限日数=2`で決済実行した場合、2024/4/4 AMに期限切れ\n"
          },
          "reference_order_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Payment_properties-id"
              }
            ],
            "description": "バーチャル口座 再利用 オーダーID\\\n\\\nあるオーダーIDのバーチャル口座を再利用する場合、その決済のオーダーIDを参照先として指定します。\\\nバーチャル口座の再利用が可能な決済の条件は以下の通りです。\n\n1. 参照する決済の`status`が`CAPTURED`、`CANCELED`、`EXPIRED`であること\n2. 参照する決済に紐づくバーチャル口座への振込から90日以内であること\n"
          },
          "use_exact_deposit_amount": {
            "type": "boolean",
            "enum": [
              true,
              false
            ],
            "description": "入金可能額設定利用フラグ\\\nこの決済で使用されるバーチャル口座に対して入金可能額を設定するかどうかを指定します。\\\n設定した場合、購入者は請求金額以外の金額を振り込むことができなくなります。\n\n- `true`: 入金可能額を設定する\n- `false`: 入金可能額を設定しない（デフォルト）\n"
          }
        }
      },
      "Payment.VirtualAccount.list": {
        "type": "object",
        "properties": {
          "list": {
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/Payment"
                },
                {
                  "$ref": "#/components/schemas/Payment.VirtualAccount"
                }
              ]
            }
          }
        }
      },
      "Payment.VirtualAccount.ListRetrieving.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/_ListResponse"
          },
          {
            "$ref": "#/components/schemas/Payment.VirtualAccount.list"
          }
        ]
      },
      "Payment_properties-id": {
        "type": "string",
        "nullable": false,
        "minLength": 1,
        "maxLength": 30,
        "example": "o_**********************",
        "description": "オーダーID\\\n決済情報のIDです。\n"
      },
      "CardPaymentJobCode": {
        "type": "string",
        "enum": [
          "CHECK",
          "AUTH",
          "CAPTURE"
        ],
        "example": "CAPTURE",
        "description": "取引種別\\\nこの決済に対し決済実行を行った際、仮売上にするか即座に売上確定するか、カードの有効性チェックのみを行うかを指定します。\n\n- `CHECK`：有効性チェックのみ行う\n- `AUTH`：仮売上にする\n- `CAPTURE`：即時売上\n"
      },
      "amount": {
        "type": "string",
        "nullable": false,
        "minLength": 1,
        "example": "1000",
        "description": "利用金額\\\n`tax`との合計値が決済手段ごとに定められた決済金額の範囲内に収まる必要があります。\\\n参照例： [カード決済 > 制限事項 > 利用可能な金額](https://mpb-mizuhobank-docs.fincode.jp/payment/restriction)\n"
      },
      "tax": {
        "type": "string",
        "nullable": false,
        "minLength": 1,
        "example": "100",
        "description": "税送料\\\n`amount`との合計値が決済手段ごとに定められた決済金額の範囲内に収まる必要があります。\\\n参照例： [カード決済 > 制限事項 > 利用可能な金額](https://mpb-mizuhobank-docs.fincode.jp/payment/restriction)\n"
      },
      "Payment.Card.Creating.Request": {
        "type": "object",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Payment_properties-id"
              }
            ]
          },
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ],
            "description": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Card`: カード\n"
          },
          "job_code": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CardPaymentJobCode"
              }
            ]
          },
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/amount"
              }
            ],
            "maxLength": 7,
            "description": "利用金額  \njob_code = `CHECK` 以外の場合は必須です。  \n\n`tax`との合計値が決済手段ごとに定められた決済金額の範囲内に収まる必要があります。\\\n参照： [カード決済 > 制限事項 > 利用可能な金額](/payment/restriction)\n"
          },
          "tax": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tax"
              }
            ],
            "maxLength": 7,
            "description": "税送料\\\n`amount`との合計値が決済手段ごとに定められた決済金額の範囲内に収まる必要があります。\\\n参照： [カード決済 > 制限事項 > 利用可能な金額](/payment/restriction)\n"
          },
          "tds_type": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds_type"
              }
            ]
          },
          "tds2_type": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_type"
              }
            ]
          },
          "td_tenant_name": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/td_tenant_name"
              }
            ]
          },
          "client_field_1": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 1\\\n任意の値を挿入し、決済情報に保存できます。\n"
          },
          "client_field_2": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 2\n"
          },
          "client_field_3": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 3\n"
          }
        },
        "required": [
          "pay_type",
          "job_code"
        ]
      },
      "ApplePayPaymentJobCode": {
        "type": "string",
        "enum": [
          "AUTH",
          "CAPTURE"
        ],
        "example": "CAPTURE",
        "description": "取引種別\\\nこの決済に対し決済実行を行った際、仮売上にするか即座に売上確定するかを指定します。\n\n- `AUTH`：仮売上にする\n- `CAPTURE`：即時売上\n"
      },
      "Payment.ApplePay.Creating.Request": {
        "type": "object",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Payment_properties-id"
              }
            ]
          },
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ],
            "description": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Applepay`: Apple Pay\n"
          },
          "job_code": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApplePayPaymentJobCode"
              }
            ]
          },
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/amount"
              }
            ],
            "maxLength": 7,
            "description": "利用金額\\\n`tax`との合計値が決済手段ごとに定められた決済金額の範囲内に収まる必要があります。\\\n参照： [Apple Pay > 制限事項 > 利用可能な金額](https://mpb-mizuhobank-docs.fincode.jp/payment/applepay/restriction)\n"
          },
          "tax": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tax"
              }
            ],
            "maxLength": 7,
            "description": "税送料\\\n`amount`との合計値が決済手段ごとに定められた決済金額の範囲内に収まる必要があります。\\\n参照： [Apple Pay > 制限事項 > 利用可能な金額](https://mpb-mizuhobank-docs.fincode.jp/payment/applepay/restriction)\n"
          },
          "client_field_1": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 1\\\n任意の値を挿入し、決済情報に保存できます。\n"
          },
          "client_field_2": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 2\n"
          },
          "client_field_3": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 3\n"
          },
          "item_code": {
            "nullable": true,
            "type": "string",
            "minLength": 7,
            "maxLength": 7,
            "description": "商品コード\n"
          }
        },
        "required": [
          "pay_type",
          "job_code",
          "amount"
        ]
      },
      "GooglePayPaymentJobCode": {
        "type": "string",
        "enum": [
          "AUTH",
          "CAPTURE"
        ],
        "example": "CAPTURE",
        "description": "取引種別\\\nこの決済に対し決済実行を行った際、仮売上にするか即座に売上確定するかを指定します。\n\n- `AUTH`：仮売上\n- `CAPTURE`：即時売上\n"
      },
      "Payment.GooglePay.Creating.Request": {
        "type": "object",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Payment_properties-id"
              }
            ]
          },
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ],
            "description": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Googlepay`: Google Pay\n"
          },
          "job_code": {
            "allOf": [
              {
                "$ref": "#/components/schemas/GooglePayPaymentJobCode"
              }
            ]
          },
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/amount"
              }
            ],
            "maxLength": 7,
            "description": "利用金額  \n\n`tax`との合計値が決済手段ごとに定められた決済金額の範囲内に収まる必要があります。\\\n参照： [Google Pay > 制限事項 > 利用可能な金額](/payment/googlepay/restriction)\n"
          },
          "tax": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tax"
              }
            ],
            "maxLength": 7,
            "description": "税送料\\\n`amount`との合計値が決済手段ごとに定められた決済金額の範囲内に収まる必要があります。\\\n参照： [Google Pay > 制限事項 > 利用可能な金額](/payment/googlepay/restriction)\n"
          },
          "tds_type": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds_type"
              }
            ]
          },
          "tds2_type": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_type"
              }
            ]
          },
          "td_tenant_name": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/td_tenant_name"
              }
            ]
          },
          "client_field_1": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 1\\\n任意の値を挿入し、決済情報に保存できます。\n"
          },
          "client_field_2": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 2\n"
          },
          "client_field_3": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 3\n"
          }
        },
        "required": [
          "pay_type",
          "job_code",
          "amount"
        ]
      },
      "Payment.Konbini.Creating.Request": {
        "type": "object",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Payment_properties-id"
              }
            ]
          },
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ],
            "description": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Konbini`: コンビニ決済\n"
          },
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/amount"
              }
            ],
            "maxLength": 6,
            "description": "利用金額\\\n`tax`との合計値が決済手段ごとに定められた決済金額の範囲内に収まる必要があります。\\\n参照： [コンビニ決済 > 制限事項 > 利用可能な金額](https://mpb-mizuhobank-docs.fincode.jp/payment/konbini/restriction)\n"
          },
          "tax": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tax"
              }
            ],
            "maxLength": 6,
            "description": "税送料\\\n`amount`との合計値が決済手段ごとに定められた決済金額の範囲内に収まる必要があります。\\\n参照： [コンビニ決済 > 制限事項 > 利用可能な金額](https://mpb-mizuhobank-docs.fincode.jp/payment/konbini/restriction)\n"
          },
          "client_field_1": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 1\\\n任意の値を挿入し、決済情報に保存できます。\n"
          },
          "client_field_2": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 2\n"
          },
          "client_field_3": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 3\n"
          }
        },
        "required": [
          "pay_type",
          "amount"
        ]
      },
      "PayPayPaymentJobCode": {
        "type": "string",
        "enum": [
          "AUTH",
          "CAPTURE"
        ],
        "example": "CAPTURE",
        "description": "取引種別\\\nこの決済に対し決済実行を行った際、仮売上にするか即座に売上確定するか指定します。\n\n- `AUTH`：仮売上にする\n- `CAPTURE`：即時売上\n"
      },
      "order_description": {
        "type": "string",
        "nullable": true,
        "maxLength": 100,
        "example": "○○の購入",
        "description": "注文内容の説明\\\n購入者のPayPayアプリ上で表示される注文内容の説明。\n"
      },
      "Payment.PayPay.Creating.Request": {
        "type": "object",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Payment_properties-id"
              }
            ]
          },
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ],
            "description": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Paypay`: PayPay\n"
          },
          "job_code": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayPayPaymentJobCode"
              }
            ]
          },
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/amount"
              }
            ],
            "maxLength": 9,
            "description": "利用金額\\\n`tax`との合計値が決済手段ごとに定められた決済金額の範囲内に収まる必要があります。\\\n参照： [PayPay > 制限事項 > 利用可能な金額](https://mpb-mizuhobank-docs.fincode.jp/payment/paypay/restriction)\n"
          },
          "tax": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tax"
              }
            ],
            "maxLength": 9,
            "description": "税送料\\\n`amount`との合計値が決済手段ごとに定められた決済金額の範囲内に収まる必要があります。\\\n参照： [PayPay > 制限事項 > 利用可能な金額](https://mpb-mizuhobank-docs.fincode.jp/payment/paypay/restriction)\n"
          },
          "client_field_1": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 1\\\n任意の値を挿入し、決済情報に保存できます。\n"
          },
          "client_field_2": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 2\n"
          },
          "client_field_3": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 3\n"
          },
          "order_description": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/order_description"
              }
            ]
          }
        },
        "required": [
          "pay_type",
          "job_code",
          "amount"
        ]
      },
      "remarks": {
        "type": "string",
        "nullable": true,
        "minLength": 1,
        "maxLength": 9,
        "example": "フィンコードショッ",
        "description": "ご利用明細表示内容\n\n- フォーマット：半角英数カナ／全角英数カナ／一部の記号／半角全角スペース\n- デフォルト： `ショップ名カナの先頭9文字`\n\n※ 利用可能な記号\n\n- 半角：`.`、`(`、`)`、`–`\n- 全角：`．`、`（`、`）`、`ー`\n"
      },
      "Payment.DirectDebit.Creating.Request": {
        "type": "object",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Payment_properties-id"
              }
            ]
          },
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ],
            "description": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Directdebit`: 口座振替\n"
          },
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/amount"
              }
            ],
            "maxLength": 10,
            "description": "利用金額\\\n`tax`との合計値が決済手段ごとに定められた決済金額の範囲内に収まる必要があります。\\\n参照： [口座振替 > 制限事項 > 利用可能な金額](https://mpb-mizuhobank-docs.fincode.jp/payment/directdebit/restriction)\n"
          },
          "tax": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tax"
              }
            ],
            "maxLength": 10,
            "description": "税送料\\\n`amount`との合計値が決済手段ごとに定められた決済金額の範囲内に収まる必要があります。\\\n参照： [口座振替 > 制限事項 > 利用可能な金額](https://mpb-mizuhobank-docs.fincode.jp/payment/directdebit/restriction)\n"
          },
          "remarks": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/remarks"
              }
            ]
          },
          "client_field_1": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 1\\\n任意の値を挿入し、決済情報に保存できます。\n"
          },
          "client_field_2": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 2\n"
          },
          "client_field_3": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 3\n"
          }
        },
        "required": [
          "pay_type",
          "amount"
        ]
      },
      "billing_amount": {
        "type": "string",
        "minLength": 1,
        "maxLength": 10,
        "description": "振込依頼金額\\\n`billing_tax`との合計値が決済手段ごとに定められた決済金額の範囲内に収まる必要があります。\\\n参照例： [銀行振込（バーチャル口座） > 制限事項 > 利用可能な金額](https://mpb-mizuhobank-docs.fincode.jp/payment/virtualaccount/restriction)\n"
      },
      "billing_tax": {
        "type": "string",
        "nullable": true,
        "minLength": 1,
        "maxLength": 10,
        "description": "振込依頼金額（税送料）\\\n`billing_amount`との合計値が決済手段ごとに定められた決済金額の範囲内に収まる必要があります。\\\n参照例： [銀行振込（バーチャル口座） > 制限事項 > 利用可能な金額](https://mpb-mizuhobank-docs.fincode.jp/payment/virtualaccount/restriction)\n"
      },
      "use_exact_deposit_amount": {
        "type": "boolean",
        "enum": [
          true,
          false
        ],
        "description": "入金可能額設定利用フラグ\\\nこの決済で使用されるバーチャル口座に対して入金可能額を設定するかどうかを指定します。\\\n設定した場合、購入者は請求金額以外の金額を振り込むことができなくなります。\n\n- `true`: 入金可能額を設定する\n- `false`: 入金可能額を設定しない（デフォルト）\n"
      },
      "Payment.VirtualAccount.Creating.Request": {
        "type": "object",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Payment_properties-id"
              }
            ]
          },
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ],
            "description": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Virtualaccount`: 銀行振込（バーチャル口座）\n"
          },
          "billing_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/billing_amount"
              }
            ]
          },
          "billing_tax": {
            "allOf": [
              {
                "$ref": "#/components/schemas/billing_tax"
              }
            ]
          },
          "client_field_1": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 1\\\n任意の値を挿入し、決済情報に保存できます。\n"
          },
          "client_field_2": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 2\n"
          },
          "client_field_3": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 3\n"
          },
          "use_exact_deposit_amount": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/use_exact_deposit_amount"
              }
            ],
            "description": "入金可能額設定利用フラグ\\\nこの決済で使用されるバーチャル口座に対して入金可能額を設定するかどうかを示すフラグです。\\\n設定した場合、購入者は請求金額以外の金額を振り込むことができなくなります。\n- `true`: 入金可能額を設定する\n- `false`: 入金可能額を設定しない（デフォルト）\n"
          }
        },
        "required": [
          "pay_type",
          "billing_amount"
        ]
      },
      "Payment.Card.Creating.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Payment"
          },
          {
            "$ref": "#/components/schemas/Payment.Card"
          }
        ]
      },
      "Payment.ApplePay.Creating.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Payment"
          },
          {
            "$ref": "#/components/schemas/Payment.ApplePay"
          }
        ]
      },
      "Payment.GooglePay.Creating.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Payment"
          },
          {
            "$ref": "#/components/schemas/Payment.GooglePay"
          }
        ]
      },
      "Payment.Konbini.Creating.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Payment"
          },
          {
            "$ref": "#/components/schemas/Payment.Konbini"
          }
        ]
      },
      "Payment.PayPay.Creating.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Payment"
          },
          {
            "$ref": "#/components/schemas/Payment.PayPay"
          }
        ]
      },
      "Payment.DirectDebit.Creating.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Payment"
          },
          {
            "$ref": "#/components/schemas/Payment.DirectDebit"
          }
        ]
      },
      "Payment.VirtualAccount.Creating.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Payment"
          },
          {
            "$ref": "#/components/schemas/Payment.VirtualAccount"
          }
        ]
      },
      "OrderId_schema": {
        "type": "string",
        "example": "o_**********************"
      },
      "Payment.Retrieving.QueryParams": {
        "type": "object",
        "properties": {
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ]
          }
        },
        "required": [
          "pay_type"
        ]
      },
      "Payment.Card.Retrieving.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Payment"
          },
          {
            "$ref": "#/components/schemas/Payment.Card"
          }
        ]
      },
      "Payment.ApplePay.Retrieving.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Payment"
          },
          {
            "$ref": "#/components/schemas/Payment.ApplePay"
          }
        ]
      },
      "Payment.GooglePay.Retrieving.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Payment"
          },
          {
            "$ref": "#/components/schemas/Payment.GooglePay"
          }
        ]
      },
      "Payment.Konbini.Retrieving.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Payment"
          },
          {
            "$ref": "#/components/schemas/Payment.Konbini"
          }
        ]
      },
      "Payment.PayPay.Retrieving.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Payment"
          },
          {
            "$ref": "#/components/schemas/Payment.PayPay"
          }
        ]
      },
      "Payment.DirectDebit.Retrieving.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Payment"
          },
          {
            "$ref": "#/components/schemas/Payment.DirectDebit"
          },
          {
            "type": "object",
            "properties": {
              "invoice_id": {
                "type": "string",
                "nullable": true,
                "minLength": 1,
                "maxLength": 30,
                "description": "紐づくインボイスID\\\nこの決済に後付けで紐付けられたインボイスがある場合、そのインボイスIDが設定されます。\n"
              }
            }
          }
        ]
      },
      "Payment.VirtualAccount.Retrieving.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Payment"
          },
          {
            "$ref": "#/components/schemas/Payment.VirtualAccount"
          }
        ]
      },
      "CardPayTimes": {
        "type": "string",
        "enum": [
          "3",
          "5",
          "6",
          "10",
          "12",
          "15",
          "18",
          "20",
          "24"
        ],
        "example": null,
        "description": "（分割払いの場合）支払回数\\\n\\\n指定可能な値： `3`, `5`, `6`, `10`, `12`, `15`, `18`, `20`, `24`\n"
      },
      "Payment.Card.Executing.Request": {
        "type": "object",
        "properties": {
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ],
            "description": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Card`: カード\n"
          },
          "access_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/access_id"
              }
            ]
          },
          "token": {
            "allOf": [
              {
                "$ref": "#/components/schemas/token"
              }
            ],
            "description": "カードトークン\\\n`customer_id`と`card_id`を指定しない場合、M's PayBridge JSの`tokens`メソッドで取得したトークンをこのフィールドに指定します。\n"
          },
          "customer_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/id"
              }
            ],
            "description": "顧客ID\\\n購入者となる顧客のIDです。\n"
          },
          "card_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-id"
              }
            ],
            "description": "カードID\\\nこの決済に使用するカードのIDです。指定しない場合、デフォルトカードが使用されます。\n"
          },
          "security_code": {
            "type": "string",
            "minLength": 3,
            "maxLength": 4,
            "example": "123",
            "nullable": true,
            "description": "セキュリティコード\\\n登録済みのカードを使用する場合に、セキュリティコードを再度指定できます。\n"
          },
          "method": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CardPayMethod"
              }
            ],
            "description": "支払方法\\\nこの決済の`job_code`（処理区分）が`AUTH`または`CAPTURE`であるとき、このフィールドを指定する必要があります。\n\n- `1`: 一括払い\n- `2`: 分割払い\n- `5`: リボ払い\n"
          },
          "pay_times": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/CardPayTimes"
              }
            ]
          },
          "tds2_ret_url": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_ret_url"
              }
            ],
            "description": "3Dセキュア認証における戻りURL  \n3Dセキュア認証処理に使用するURLを指定してください。  \nこのURLに後続処理のためのデータがPOSTメソッドで送信されます。   \n\n※ 指定した場合、3Dセキュア認証に必要なAPIの呼び出しやコールバック処理をすべて加盟店で実装する必要があります。\nお客様のブラウザとM's PayBridge間で3Dセキュア認証を自動で行う場合はこのパラメータを未指定としてください。\n\n詳細はDocs [3Dセキュア2.0認証を使用する](/payment/fraud_protection/3d_secure_2)を確認してください。\n"
          },
          "return_url": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/x-req-properties-return_url"
              }
            ],
            "description": "加盟店戻りURL（成功時）  \n購入者のブラウザとM's PayBridge間で3Dセキュア認証を自動で行う場合に、\n3Dセキュア認証処理後、決済に成功した際にリダイレクトされるURLです。  \nPOSTメソッドでリダイレクトされます。\n\n指定しない場合はデフォルトの成功ページのURLが設定されます。  \nまた、`tds2_ret_url`を指定した場合は無視されます。  \n"
          },
          "return_url_on_failure": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/x-req-properties-return_url_on_failure"
              }
            ],
            "description": "加盟店戻りURL（失敗時）  \n購入者のブラウザとM's PayBridge間で3Dセキュア認証を自動で行う場合に、\n3Dセキュア認証に失敗、または決済に失敗した際にリダイレクトされるURLです。  \nPOSTメソッドでリダイレクトされます。\n\n指定しない場合はデフォルトの失敗ページのURLが設定されます。  \nまた、`tds2_ret_url`を指定した場合は無視されます。  \n"
          },
          "tds2_ch_acc_change": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_ch_acc_change"
              }
            ]
          },
          "tds2_ch_acc_date": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_ch_acc_date"
              }
            ]
          },
          "tds2_ch_acc_pw_change": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_ch_acc_pw_change"
              }
            ]
          },
          "tds2_nb_purchase_account": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_nb_purchase_account"
              }
            ]
          },
          "tds2_payment_acc_age": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_payment_acc_age"
              }
            ]
          },
          "tds2_provision_attempts_day": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_provision_attempts_day"
              }
            ]
          },
          "tds2_ship_address_usage": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_ship_address_usage"
              }
            ]
          },
          "tds2_ship_name_ind": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_ship_name_ind"
              }
            ]
          },
          "tds2_suspicious_acc_activity": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_suspicious_acc_activity"
              }
            ]
          },
          "tds2_txn_activity_day": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_txn_activity_day"
              }
            ]
          },
          "tds2_txn_activity_year": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_txn_activity_year"
              }
            ]
          },
          "tds2_three_ds_req_auth_data": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_three_ds_req_auth_data"
              }
            ]
          },
          "tds2_three_ds_req_auth_method": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_three_ds_req_auth_method"
              }
            ]
          },
          "tds2_three_ds_req_auth_timestamp": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_three_ds_req_auth_timestamp"
              }
            ]
          },
          "tds2_email": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_email"
              }
            ]
          },
          "tds2_addr_match": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_addr_match"
              }
            ]
          },
          "tds2_bill_addr_country": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_bill_addr_country"
              }
            ]
          },
          "tds2_bill_addr_state": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_bill_addr_state"
              }
            ]
          },
          "tds2_bill_addr_city": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_bill_addr_city"
              }
            ]
          },
          "tds2_bill_addr_line_1": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_bill_addr_line_1"
              }
            ]
          },
          "tds2_bill_addr_line_2": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_bill_addr_line_2"
              }
            ]
          },
          "tds2_bill_addr_line_3": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_bill_addr_line_3"
              }
            ]
          },
          "tds2_bill_addr_post_code": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_bill_addr_post_code"
              }
            ]
          },
          "tds2_ship_addr_country": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_ship_addr_country"
              }
            ]
          },
          "tds2_ship_addr_state": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_ship_addr_state"
              }
            ]
          },
          "tds2_ship_addr_city": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_ship_addr_city"
              }
            ]
          },
          "tds2_ship_addr_line_1": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_ship_addr_line_1"
              }
            ]
          },
          "tds2_ship_addr_line_2": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_ship_addr_line_2"
              }
            ]
          },
          "tds2_ship_addr_line_3": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_ship_addr_line_3"
              }
            ]
          },
          "tds2_ship_addr_post_code": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_ship_addr_post_code"
              }
            ]
          },
          "tds2_ship_ind": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_ship_ind"
              }
            ]
          },
          "tds2_delivery_email_address": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_delivery_email_address"
              }
            ]
          },
          "tds2_home_phone_cc": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_home_phone_cc"
              }
            ]
          },
          "tds2_home_phone_no": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_home_phone_no"
              }
            ]
          },
          "tds2_mobile_phone_cc": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_mobile_phone_cc"
              }
            ]
          },
          "tds2_mobile_phone_no": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_mobile_phone_no"
              }
            ]
          },
          "tds2_work_phone_cc": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_work_phone_cc"
              }
            ]
          },
          "tds2_work_phone_no": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_work_phone_no"
              }
            ]
          },
          "tds2_delivery_timeframe": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_delivery_timeframe"
              }
            ]
          },
          "tds2_pre_order_date": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_pre_order_date"
              }
            ]
          },
          "tds2_pre_order_purchase_ind": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_pre_order_purchase_ind"
              }
            ]
          },
          "tds2_reorder_items_ind": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_reorder_items_ind"
              }
            ]
          },
          "tds2_recurring_expiry": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_recurring_expiry"
              }
            ]
          },
          "tds2_recurring_frequency": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_recurring_frequency"
              }
            ]
          },
          "tds2_gift_card_amount": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_gift_card_amount"
              }
            ]
          },
          "tds2_gift_card_count": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_gift_card_count"
              }
            ]
          },
          "tds2_gift_card_curr": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_gift_card_curr"
              }
            ]
          }
        },
        "required": [
          "pay_type",
          "access_id"
        ]
      },
      "Payment.ApplePay_x-req-properties-token": {
        "type": "string",
        "example": "eyJoZWFkZXIiOnsiZXBoZW1lcmFsUHVibGljS2V5IjoidGVzdFB1YmxpY0tleSIsInB1YmxpY0tleUhhc2giOiJ0ZXN0S2V5SGFzaCIsInRyYW5zYWN0aW9uSWQiOiJ0ZXN0VHJhbnNhY3Rpb24ifSwiZGF0YSI6ImV5SmhjSEJzYVdOaGRHbHZibEJ5YVcxaGNubEJZMk52ZFc1MFRuVnRZbVZ5SWpvaU5ERXhNVEV4TVRFeE1URXhNVEV4TVNJc0ltRndjR3hwWTJGMGFXOXVSWGh3YVhKaGRHbHZia1JoZEdVaU9pSXlOakV5TXpFaUxDSmpkWEp5Wlc1amVVTnZaR1VpT2lJek9USWlMQ0owY21GdWMyRmpkR2x2YmtGdGIzVnVkQ0k2SWpFeE1URWlMQ0pqWVhKa2FHOXNaR1Z5VG1GdFpTSTZJaUlzSW1SbGRtbGpaVTFoYm5WbVlXTjBkWEpsY2tsa1pXNTBhV1pwWlhJaU9pSWlMQ0p3WVhsdFpXNTBSR0YwWVZSNWNHVWlPaUl6UkZObFkzVnlaU0lzSW5CaGVXMWxiblJFWVhSaElqcDdJbTl1YkdsdVpWQmhlVzFsYm5SRGNubHdkRzluY21GdElqb2lSSFZ0YlhsRFFWWldRVUZCUVVGQlFVRkJRVUZCUVVGQlFVRkJRU0lzSW1WamFVbHVaR2xqWVhSdmNpSTZJalVpZlgwPSIsInNpZ25hdHVyZSI6InRlc3RTaWduYXR1cmUiLCJ2ZXJzaW9uIjoiTW9jayJ9",
        "description": "Apple Pay カードトークン\\\nApple Payが利用可能なデバイスから取得したトークンをBase64エンコードした値を設定します。\\\n\\\nトークンの取得方法\n- Swift： `PKPayment.token.paymentData`の値をBase64エンコード\n- JavaScript： `ApplePayPaymentAuthorizedEvent.payment.token`の値をBase64エンコード\n\n詳細は[Docs > 決済処理を実行する（Apple Pay）](https://mpb-mizuhobank-docs.fincode.jp/payment/applepay/execution)または[Offering Apple Pay in Your App](https://developer.apple.com/documentation/passkit_apple_pay_and_wallet/apple_pay/offering_apple_pay_in_your_app)（Apple公式）を参照できます。\n"
      },
      "Payment.ApplePay.Executing.Request": {
        "type": "object",
        "properties": {
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ],
            "description": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Applepay`: Apple Pay\n"
          },
          "access_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/access_id"
              }
            ]
          },
          "token": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Payment.ApplePay_x-req-properties-token"
              }
            ]
          },
          "customer_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/id"
              }
            ],
            "description": "顧客ID\\\n購入者となる顧客のIDです。\n"
          }
        },
        "required": [
          "pay_type",
          "access_id",
          "token"
        ]
      },
      "Payment.GooglePay_x-req-properties-token": {
        "type": "string",
        "example": "eyJ2ZXJzaW9uIjoiR21vTW9jayIsInByb3RvY29sVmVyc2lvbiI6IkVDdjIiLCJzaWduYXR1cmUiOiJNRVFDSUR4Qm9VQ29GUkdSZUxkWi9jQUJsU1NSSUtvT0VGb1UzZTI3YzE0dk1adGZBaUJ0WDNwR01FcG53Nm1TQWJuYWdDQ2dIbENrM05jRndXWUV5eElFNktHWlZBdTAwM2R1MDAzZCIsInNpZ25lZE1lc3NhZ2UiOiJ7XCJlbmNyeXB0ZWRNZXNzYWdlXCI6XCJleUpuWVhSbGQyRjVUV1Z5WTJoaGJuUkpaQ0k2SUNKemIyMWxMVzFsY21Ob1lXNTBMV2xrSWl3aWJXVnpjMkZuWlVWNGNHbHlZWFJwYjI0aU9pQWlNalUxTmpFeE1UVTVPVEF3TUNJc0ltMWxjM05oWjJWSlpDSTZJQ0pCU0RKRmFuUmpPRGhhU0VvdE1tRlpRbEZYZWtoM2RuQTJiREJLYzBOSVozaFdkRGh6T1RGQkxWcFZhV3RoV0U1aVkycHpSbTAyWjJjNVJYaGxWbEl0YW5wSmVWUXRiVXAyUVY5dWRIWm1Vbk5FUkU5SU1tcHVTMDFxWkZSMFdFbEtkbEIwTUU1Q1ZWVTBOVkkzTFdkdWFuaHJlQzF6U1RCc1pHTlhkbUpFU0hOV01EY3pOWGxHUkdKWGF5SXNJbkJoZVcxbGJuUk5aWFJvYjJRaU9pQWlRMEZTUkNJc0luQmhlVzFsYm5STlpYUm9iMlJFWlhSaGFXeHpJam9nZXlKbGVIQnBjbUYwYVc5dVdXVmhjaUk2SURJd05UQXNJbVY0Y0dseVlYUnBiMjVOYjI1MGFDSTZJREV5TENKd1lXNGlPaUFpTkRFd01EQXdNREF3TURBd01ERXdNQ0lzSW1GMWRHaE5aWFJvYjJRaU9pQWlVRUZPWDA5T1RGa2lmWDA9XCIsXCJlcGhlbWVyYWxQdWJsaWNLZXlcIjpcIkJHTXhlc256S0NWRFlTWTdpNk5sWHJyeDNDRTFvRERUTElhOGx2QUFpZkxnZ2s0WW92bHV5SXZWNlh4VVllTTI1VzRqeWFKaWtNcVF3MGh3ZDVCVEw4OD1cIixcInRhZ1wiOlwiWlZ3bEp0N2RVOFBsazArcjhyUEY4RG1QVHZEaU9BMVVBb05qRFYrU3FERXUwMDNkXCJ9In0=",
        "description": "Google Pay カードトークン\\\nGoogle Payを利用するデバイスから取得したトークン（`paymentMethodData.tokenizationData.token`）をBase64エンコードした値を設定します。  \n\nトークン生成時、`tokenizationSpecification`には以下の値を指定してください。\n- gateway： `fincode`\n- gatewayMerchantId： `{{ショップID}}`<br>（例：s_01234567890）\n\n詳細は[Docs > 決済処理を実行する（Google Pay）](/payment/googlepay/execution)または[Google Pay ウェブ デベロッパー向けドキュメント](https://developers.google.com/pay/api/web?hl=ja)（Google公式）を参照してください。\n"
      },
      "Payment.GooglePay.Executing.Request": {
        "type": "object",
        "properties": {
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ],
            "description": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Googlepay`: Google Pay\n"
          },
          "access_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/access_id"
              }
            ]
          },
          "token": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Payment.GooglePay_x-req-properties-token"
              }
            ]
          },
          "customer_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/id"
              }
            ],
            "description": "顧客ID\n"
          },
          "method": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CardPayMethod"
              }
            ],
            "description": "支払方法  \n- `1`: 一括払い\n- `2`: 分割払い\n- `5`: リボ払い\n"
          },
          "pay_times": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/CardPayTimes"
              }
            ]
          },
          "tds2_ret_url": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_ret_url"
              }
            ],
            "description": "3Dセキュア認証における戻りURL  \n3Dセキュア認証処理に使用するURLを指定してください。  \nこのURLに後続処理のためのデータがPOSTメソッドで送信されます。   \n\n※ 指定した場合、3Dセキュア認証に必要なAPIの呼び出しやコールバック処理をすべて加盟店で実装する必要があります。\nお客様のブラウザとM's PayBridge間で3Dセキュア認証を自動で行う場合はこのパラメータを未指定としてください。\n\n詳細はDocs [3Dセキュア2.0認証を使用する](/payment/fraud_protection/3d_secure_2)を確認してください。\n"
          },
          "return_url": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/x-req-properties-return_url"
              }
            ],
            "description": "加盟店戻りURL（成功時）  \n購入者のブラウザとM's PayBridge間で3Dセキュア認証を自動で行う場合に、\n3Dセキュア認証処理後、決済に成功した際にリダイレクトされるURLです。  \nPOSTメソッドでリダイレクトされます。\n\n指定しない場合はデフォルトの成功ページのURLが設定されます。  \nまた、`tds2_ret_url`を指定した場合は無視されます。\n"
          },
          "return_url_on_failure": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/x-req-properties-return_url_on_failure"
              }
            ],
            "description": "加盟店戻りURL（失敗時）  \n購入者のブラウザとM's PayBridge間で3Dセキュア認証を自動で行う場合に、\n3Dセキュア認証に失敗、または決済に失敗した際にリダイレクトされるURLです。  \nPOSTメソッドでリダイレクトされます。\n\n指定しない場合はデフォルトの失敗ページのURLが設定されます。  \nまた、`tds2_ret_url`を指定した場合は無視されます。\n"
          },
          "tds2_ch_acc_change": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_ch_acc_change"
              }
            ]
          },
          "tds2_ch_acc_date": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_ch_acc_date"
              }
            ]
          },
          "tds2_ch_acc_pw_change": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_ch_acc_pw_change"
              }
            ]
          },
          "tds2_nb_purchase_account": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_nb_purchase_account"
              }
            ]
          },
          "tds2_payment_acc_age": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_payment_acc_age"
              }
            ]
          },
          "tds2_provision_attempts_day": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_provision_attempts_day"
              }
            ]
          },
          "tds2_ship_address_usage": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_ship_address_usage"
              }
            ]
          },
          "tds2_ship_name_ind": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_ship_name_ind"
              }
            ]
          },
          "tds2_suspicious_acc_activity": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_suspicious_acc_activity"
              }
            ]
          },
          "tds2_txn_activity_day": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_txn_activity_day"
              }
            ]
          },
          "tds2_txn_activity_year": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_txn_activity_year"
              }
            ]
          },
          "tds2_three_ds_req_auth_data": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_three_ds_req_auth_data"
              }
            ]
          },
          "tds2_three_ds_req_auth_method": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_three_ds_req_auth_method"
              }
            ]
          },
          "tds2_three_ds_req_auth_timestamp": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_three_ds_req_auth_timestamp"
              }
            ]
          },
          "tds2_email": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_email"
              }
            ]
          },
          "tds2_addr_match": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_addr_match"
              }
            ]
          },
          "tds2_bill_addr_country": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_bill_addr_country"
              }
            ]
          },
          "tds2_bill_addr_state": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_bill_addr_state"
              }
            ]
          },
          "tds2_bill_addr_city": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_bill_addr_city"
              }
            ]
          },
          "tds2_bill_addr_line_1": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_bill_addr_line_1"
              }
            ]
          },
          "tds2_bill_addr_line_2": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_bill_addr_line_2"
              }
            ]
          },
          "tds2_bill_addr_line_3": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_bill_addr_line_3"
              }
            ]
          },
          "tds2_bill_addr_post_code": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_bill_addr_post_code"
              }
            ]
          },
          "tds2_ship_addr_country": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_ship_addr_country"
              }
            ]
          },
          "tds2_ship_addr_state": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_ship_addr_state"
              }
            ]
          },
          "tds2_ship_addr_city": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_ship_addr_city"
              }
            ]
          },
          "tds2_ship_addr_line_1": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_ship_addr_line_1"
              }
            ]
          },
          "tds2_ship_addr_line_2": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_ship_addr_line_2"
              }
            ]
          },
          "tds2_ship_addr_line_3": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_ship_addr_line_3"
              }
            ]
          },
          "tds2_ship_addr_post_code": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_ship_addr_post_code"
              }
            ]
          },
          "tds2_ship_ind": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_ship_ind"
              }
            ]
          },
          "tds2_delivery_email_address": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_delivery_email_address"
              }
            ]
          },
          "tds2_home_phone_cc": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_home_phone_cc"
              }
            ]
          },
          "tds2_home_phone_no": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_home_phone_no"
              }
            ]
          },
          "tds2_mobile_phone_cc": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_mobile_phone_cc"
              }
            ]
          },
          "tds2_mobile_phone_no": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_mobile_phone_no"
              }
            ]
          },
          "tds2_work_phone_cc": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_work_phone_cc"
              }
            ]
          },
          "tds2_work_phone_no": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_work_phone_no"
              }
            ]
          },
          "tds2_delivery_timeframe": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_delivery_timeframe"
              }
            ]
          },
          "tds2_pre_order_date": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_pre_order_date"
              }
            ]
          },
          "tds2_pre_order_purchase_ind": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_pre_order_purchase_ind"
              }
            ]
          },
          "tds2_reorder_items_ind": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_reorder_items_ind"
              }
            ]
          },
          "tds2_recurring_expiry": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_recurring_expiry"
              }
            ]
          },
          "tds2_recurring_frequency": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_recurring_frequency"
              }
            ]
          },
          "tds2_gift_card_amount": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_gift_card_amount"
              }
            ]
          },
          "tds2_gift_card_count": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_gift_card_count"
              }
            ]
          },
          "tds2_gift_card_curr": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_gift_card_curr"
              }
            ]
          }
        },
        "required": [
          "pay_type",
          "access_id",
          "token",
          "method"
        ]
      },
      "payment_term_day": {
        "type": "string",
        "nullable": false,
        "minLength": 1,
        "maxLength": 2,
        "example": "2",
        "description": "支払い期限日数\\\nこの決済の支払い期限日数です。`0`日から`14`日まで指定できます。\n\n- `0`を指定すると決済を作成した当日に限り支払いが可能な決済が作成されます。\n- デフォルト：`2`\n"
      },
      "pixel_ratio": {
        "type": "string",
        "minLength": 1,
        "maxLength": 5,
        "example": "2.00",
        "description": "デバイスピクセル比\\\n`window.devicePixelRatio`から取得した値を小数点以下2桁まで指定します。\n"
      },
      "win_size_type": {
        "type": "string",
        "enum": [
          "1",
          "2"
        ],
        "minLength": 1,
        "maxLength": 1,
        "example": "1",
        "description": "画面サイズ種別\\\nバーコード表示を行うデバイスのピクセルの種類を指定します。\n\n- `1`: 物理ピクセル（Androidのときはこちらを指定）\n- `2`: CSSピクセル（iPhoneのときはこちらを指定）\n"
      },
      "Payment.Konbini.Executing.Request": {
        "type": "object",
        "properties": {
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ],
            "description": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Konbini`: コンビニ決済\n"
          },
          "access_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/access_id"
              }
            ]
          },
          "customer_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/id"
              }
            ],
            "description": "顧客ID\\\n購入者となる顧客のIDです。\n"
          },
          "payment_term_day": {
            "allOf": [
              {
                "$ref": "#/components/schemas/payment_term_day"
              }
            ]
          },
          "device_name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/device_name"
              }
            ]
          },
          "win_width": {
            "allOf": [
              {
                "$ref": "#/components/schemas/win_width"
              }
            ]
          },
          "win_height": {
            "allOf": [
              {
                "$ref": "#/components/schemas/win_height"
              }
            ]
          },
          "pixel_ratio": {
            "allOf": [
              {
                "$ref": "#/components/schemas/pixel_ratio"
              }
            ]
          },
          "win_size_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/win_size_type"
              }
            ]
          }
        },
        "required": [
          "pay_type",
          "access_id",
          "device_name",
          "win_width",
          "win_height",
          "pixel_ratio",
          "win_size_type"
        ]
      },
      "properties-redirect_url": {
        "type": "string",
        "nullable": true,
        "minLength": 1,
        "maxLength": 256,
        "example": "https://your-service.example.com/on-payment-complete",
        "description": "リダイレクトURL\\\n決済が完了した際のPayPayからのリダイレクト先URL。\n"
      },
      "redirect_type": {
        "type": "string",
        "nullable": true,
        "enum": [
          "1",
          "2"
        ],
        "example": "1",
        "description": "リダイレクト先種別\\\n`redirect_url`の種別\n\n- `1`： Webページ／Webアプリケーション\n- `2`： ネイティブアプリ\n"
      },
      "user_agent": {
        "type": "string",
        "minLength": 1,
        "maxLength": 256,
        "example": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3",
        "description": "ユーザーエージェント\\\nリクエストを送信したユーザーエージェントの情報。`redirect_type`が`1`（Webページ／Webアプリケーション）の場合指定できます。\n"
      },
      "Payment.PayPay.Executing.Request": {
        "type": "object",
        "properties": {
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ],
            "description": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Paypay`: PayPay\n"
          },
          "access_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/access_id"
              }
            ]
          },
          "customer_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/id"
              }
            ],
            "description": "顧客ID\\\n購入者となる顧客のIDです。\n"
          },
          "redirect_url": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-redirect_url"
              }
            ]
          },
          "redirect_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/redirect_type"
              }
            ]
          },
          "user_agent": {
            "allOf": [
              {
                "$ref": "#/components/schemas/user_agent"
              }
            ]
          }
        },
        "required": [
          "pay_type",
          "access_id",
          "redirect_url"
        ]
      },
      "target_date": {
        "type": "string",
        "nullable": true,
        "example": "2022/05/06",
        "description": "振替指定日\\\n振替を行う日を指定します。\\\n実際の振替は営業日に行われるため、必ずしも指定した日付に引き落としが行われるとは限りません。\\\n指定可能な日付及び引き落とし日は[Docs > 口座振替年間スケジュール](https://mpb-mizuhobank-docs.fincode.jp/payment/directdebit/schedule)の「振替指定日」及び「振替日」の列で確認できます。\n"
      },
      "Payment.DirectDebit.Executing.Request": {
        "type": "object",
        "properties": {
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ],
            "description": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Directdebit`: 口座振替\n"
          },
          "access_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/access_id"
              }
            ]
          },
          "customer_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/id"
              }
            ],
            "description": "顧客ID\\\n購入者となる顧客のIDです。\n"
          },
          "payment_method_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentMethod_properties-id"
              }
            ],
            "description": "決済手段ID\\\nこの決済に使用する決済手段（口座振替用口座）のIDです。指定しない場合、デフォルト決済手段が使用されます。\n"
          },
          "target_date": {
            "allOf": [
              {
                "$ref": "#/components/schemas/target_date"
              }
            ]
          }
        },
        "required": [
          "pay_type",
          "access_id",
          "customer_id",
          "target_date"
        ]
      },
      "x-req-properties-payment_term_day": {
        "type": "string",
        "nullable": true,
        "minLength": 1,
        "maxLength": 2,
        "example": "2",
        "description": "支払期限日数\\\n\\\n`0`～`99`日の範囲でバーチャル口座で振り込み可能な期限日数を指定します。\\\n実行日から見て、支払期限日数後の翌日AMに期限切れになります。\\\n例）2024/4/1に、`支払期限日数=2`で決済実行した場合、2024/4/4 AMに期限切れ\n"
      },
      "reference_order_id": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Payment_properties-id"
          }
        ],
        "description": "バーチャル口座 再利用 オーダーID\\\n\\\nあるオーダーIDのバーチャル口座を再利用する場合、その決済のオーダーIDを参照先として指定します。\\\nバーチャル口座の再利用が可能な決済の条件は以下の通りです。\n\n1. 参照する決済の`status`が`CAPTURED`、`CANCELED`、`EXPIRED`であること\n2. 参照する決済に紐づくバーチャル口座への振込から90日以内であること\n"
      },
      "Payment.VirtualAccount.Executing.Request": {
        "type": "object",
        "properties": {
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ],
            "description": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Virtualaccount`: 銀行振込（バーチャル口座）\n"
          },
          "access_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/access_id"
              }
            ]
          },
          "payment_term_day": {
            "allOf": [
              {
                "$ref": "#/components/schemas/x-req-properties-payment_term_day"
              }
            ]
          },
          "reference_order_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/reference_order_id"
              }
            ]
          },
          "customer_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/id"
              }
            ],
            "description": "顧客ID\\\n購入者となる顧客のIDです。\n"
          },
          "payment_method_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentMethod_properties-id"
              }
            ],
            "description": "決済手段ID\\\nこの決済に使用する決済手段（銀行振込（バーチャル口座））のIDです。指定しない場合、デフォルト決済手段が使用されます。\n"
          }
        },
        "required": [
          "pay_type",
          "access_id"
        ]
      },
      "Payment.Card.Executing": {
        "type": "object",
        "properties": {
          "acs_url": {
            "type": "string",
            "nullable": true,
            "description": "3Dセキュア認証初期化URL  \n決済実行後に購入者に遷移させる3Dセキュア認証ページのURLです。  \n\n3Dセキュア認証に必要なAPIの呼び出しやコールバック処理をすべて加盟店で実装する場合に使用します。  \nこのURLに遷移後3Dセキュア認証が開始し、`tds2_ret_url`に後続処理のためのデータがPOSTメソッドで送信されます。  \n`tds2_ret_url`が指定された場合のみ返却されます。\n"
          },
          "redirect_url": {
            "type": "string",
            "nullable": true,
            "description": "リダイレクトURL  \n決済実行後に購入者に遷移させる3Dセキュア認証ページのURLです。  \n\nお客様のブラウザとM's PayBridge間で3Dセキュア認証を自動で行う場合に使用します。  \nこのURLに遷移後お客様のブラウザとM's PayBridge間で3Dセキュア認証を自動で行います。  \n認証後、結果に応じて`return_url`または`return_url_on_failure`に自動で遷移します。  \n`tds2_ret_url`が指定されなかった場合のみ返却されます。\n"
          }
        }
      },
      "Payment.Card.Executing.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Payment"
          },
          {
            "$ref": "#/components/schemas/Payment.Card"
          },
          {
            "$ref": "#/components/schemas/Payment.Card.Executing"
          }
        ]
      },
      "Payment.ApplePay.Executing.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Payment"
          },
          {
            "$ref": "#/components/schemas/Payment.ApplePay"
          }
        ]
      },
      "Payment.GooglePay.Executing.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Payment"
          },
          {
            "$ref": "#/components/schemas/Payment.GooglePay"
          },
          {
            "$ref": "#/components/schemas/Payment.Card.Executing"
          }
        ]
      },
      "Payment.Konbini.Executing.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Payment"
          },
          {
            "$ref": "#/components/schemas/Payment.Konbini"
          }
        ]
      },
      "Payment.PayPay.Executing.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Payment"
          },
          {
            "$ref": "#/components/schemas/Payment.PayPay"
          }
        ]
      },
      "Payment.DirectDebit.Executing.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Payment"
          },
          {
            "$ref": "#/components/schemas/Payment.DirectDebit"
          }
        ]
      },
      "Payment.VirtualAccount.Executing.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Payment"
          },
          {
            "$ref": "#/components/schemas/Payment.VirtualAccount"
          }
        ]
      },
      "Payment.Card.Capturing.Request": {
        "type": "object",
        "properties": {
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ],
            "description": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Card`: カード\n"
          },
          "access_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/access_id"
              }
            ]
          },
          "method": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CardPayMethod"
              }
            ],
            "description": "支払方法\\\n`CANCELED`ステータスの決済に対して指定ができます。\n\n- `1`: 一括払い\n- `2`: 分割払い\n- `5`: リボ払い"
          },
          "pay_times": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/CardPayTimes"
              }
            ],
            "description": "（分割払いの場合）支払回数\\\n`CANCELED`ステータスの決済に対して指定ができます。\\\n\\\n指定可能な値： `3`, `5`, `6`, `10`, `12`, `15`, `18`, `20`, `24`\n"
          }
        },
        "required": [
          "pay_type",
          "access_id"
        ]
      },
      "Payment.ApplePay.Capturing.Request": {
        "type": "object",
        "properties": {
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ],
            "description": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Applepay`: Apple Pay\n"
          },
          "access_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/access_id"
              }
            ]
          }
        },
        "required": [
          "pay_type",
          "access_id"
        ]
      },
      "Payment.GooglePay.Capturing.Request": {
        "type": "object",
        "properties": {
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ],
            "description": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Googlepay`: Google Pay\n"
          },
          "access_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/access_id"
              }
            ]
          },
          "method": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CardPayMethod"
              }
            ],
            "description": "支払方法\\\n`CANCELED`ステータスの決済に対して指定ができます。\n\n- `1`: 一括払い\n- `2`: 分割払い\n- `5`: リボ払い"
          },
          "pay_times": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/CardPayTimes"
              }
            ],
            "description": "（分割払いの場合）支払回数\\\n`CANCELED`ステータスの決済に対して指定ができます。\\\n\\\n指定可能な値： `3`, `5`, `6`, `10`, `12`, `15`, `18`, `20`, `24`\n"
          }
        },
        "required": [
          "pay_type",
          "access_id"
        ]
      },
      "capture_description": {
        "type": "string",
        "nullable": true,
        "maxLength": 100,
        "example": "○○の発送完了",
        "description": "売上確定の説明\\\n購入者のPayPayアプリ上で表示される売上確定の説明。\n"
      },
      "Payment.PayPay.Capturing.Request": {
        "type": "object",
        "properties": {
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ],
            "description": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Paypay`: PayPay\n"
          },
          "access_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/access_id"
              }
            ]
          },
          "capture_description": {
            "allOf": [
              {
                "$ref": "#/components/schemas/capture_description"
              }
            ]
          }
        },
        "required": [
          "pay_type",
          "access_id"
        ]
      },
      "Payment.Card.Capturing.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Payment"
          },
          {
            "$ref": "#/components/schemas/Payment.Card"
          }
        ]
      },
      "Payment.ApplePay.Capturing.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Payment"
          },
          {
            "$ref": "#/components/schemas/Payment.ApplePay"
          }
        ]
      },
      "Payment.GooglePay.Capturing.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Payment"
          },
          {
            "$ref": "#/components/schemas/Payment.GooglePay"
          }
        ]
      },
      "Payment.PayPay.Capturing.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Payment"
          },
          {
            "$ref": "#/components/schemas/Payment.PayPay"
          }
        ]
      },
      "Payment.Card.Canceling.Request": {
        "type": "object",
        "properties": {
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ],
            "description": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Card`: カード\n"
          },
          "access_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/access_id"
              }
            ]
          }
        },
        "required": [
          "pay_type",
          "access_id"
        ]
      },
      "Payment.ApplePay.Canceling.Request": {
        "type": "object",
        "properties": {
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ],
            "description": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Applepay`: Apple Pay\n"
          },
          "access_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/access_id"
              }
            ]
          }
        },
        "required": [
          "pay_type",
          "access_id"
        ]
      },
      "Payment.GooglePay.Canceling.Request": {
        "type": "object",
        "properties": {
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ],
            "description": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Googlepay`: Google Pay\n"
          },
          "access_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/access_id"
              }
            ]
          }
        },
        "required": [
          "pay_type",
          "access_id"
        ]
      },
      "Payment.Konbini.Canceling.Request": {
        "type": "object",
        "properties": {
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ],
            "description": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Konbini`: コンビニ決済\n"
          },
          "access_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/access_id"
              }
            ]
          }
        },
        "required": [
          "pay_type",
          "access_id"
        ]
      },
      "cancel_description": {
        "type": "string",
        "nullable": true,
        "maxLength": 100,
        "example": "○○の購入キャンセル",
        "description": "キャンセルの説明\\\n購入者のPayPayアプリ上で表示されるキャンセルの説明。\n"
      },
      "Payment.PayPay.Canceling.Request": {
        "type": "object",
        "properties": {
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ],
            "description": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Paypay`: PayPay\n"
          },
          "access_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/access_id"
              }
            ]
          },
          "cancel_description": {
            "allOf": [
              {
                "$ref": "#/components/schemas/cancel_description"
              }
            ]
          }
        },
        "required": [
          "pay_type",
          "access_id"
        ]
      },
      "Payment.DirectDebit.Canceling.Request": {
        "type": "object",
        "properties": {
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ],
            "description": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Directdebit`: 口座振替\n"
          },
          "access_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/access_id"
              }
            ]
          }
        },
        "required": [
          "pay_type",
          "access_id"
        ]
      },
      "Payment.VirtualAccount.Canceling.Request": {
        "type": "object",
        "properties": {
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ],
            "description": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Virtualaccount`: 銀行振込（バーチャル口座）\n"
          },
          "access_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/access_id"
              }
            ]
          }
        },
        "required": [
          "pay_type",
          "access_id"
        ]
      },
      "Payment.Card.Canceling.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Payment"
          },
          {
            "$ref": "#/components/schemas/Payment.Card"
          }
        ]
      },
      "Payment.ApplePay.Canceling.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Payment"
          },
          {
            "$ref": "#/components/schemas/Payment.ApplePay"
          }
        ]
      },
      "Payment.GooglePay.Canceling.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Payment"
          },
          {
            "$ref": "#/components/schemas/Payment.GooglePay"
          }
        ]
      },
      "Payment.Konbini.Canceling.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Payment"
          },
          {
            "$ref": "#/components/schemas/Payment.Konbini"
          }
        ]
      },
      "Payment.PayPay.Canceling.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Payment"
          },
          {
            "$ref": "#/components/schemas/Payment.PayPay"
          }
        ]
      },
      "Payment.DirectDebit.Canceling.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Payment"
          },
          {
            "$ref": "#/components/schemas/Payment.DirectDebit"
          }
        ]
      },
      "Payment.VirtualAccount.Canceling.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Payment"
          },
          {
            "$ref": "#/components/schemas/Payment.VirtualAccount"
          }
        ]
      },
      "Payment.PayeeAccount": {
        "type": "object",
        "properties": {
          "shop_id": {
            "type": "string",
            "maxLength": 31,
            "description": "ショップID"
          },
          "id": {
            "type": "string",
            "maxLength": 60,
            "description": "オーダーID"
          },
          "pay_type": {
            "type": "string",
            "enum": [
              "Payeeaccount"
            ],
            "description": "決済種別\n* `Payeeaccount` - 銀行振込（指定口座）\n"
          },
          "status": {
            "type": "string",
            "enum": [
              "UNPROCESSED",
              "AWAITING_PAYMENT_APPROVAL",
              "CAPTURED",
              "CANCELED"
            ],
            "description": "決済ステータス\n* `UNPROCESSED` - 未処理\n* `AWAITING_PAYMENT_APPROVAL` - 入金確認待ち\n* `CAPTURED` - 売上確定\n* `CANCELED` - キャンセル\n"
          },
          "access_id": {
            "type": "string",
            "maxLength": 32,
            "description": "取引ID"
          },
          "process_date": {
            "type": "string",
            "format": "date-time",
            "description": "処理日時 形式：`yyyy/MM/dd HH:mm:ss.SSS`"
          },
          "billing_amount": {
            "type": "string",
            "maxLength": 14,
            "description": "請求金額"
          },
          "billing_tax": {
            "type": "string",
            "maxLength": 14,
            "description": "請求税送料"
          },
          "billing_total_amount": {
            "type": "string",
            "maxLength": 14,
            "description": "請求合計金額"
          },
          "customer_group_id": {
            "type": "string",
            "nullable": true,
            "description": "顧客情報共有グループID"
          },
          "customer_id": {
            "type": "string",
            "maxLength": 60,
            "nullable": true,
            "description": "顧客ID"
          },
          "payment_term_day": {
            "type": "integer",
            "nullable": true,
            "description": "支払期限日数"
          },
          "payment_term": {
            "type": "string",
            "nullable": true,
            "description": "支払期限"
          },
          "payment_method_id": {
            "type": "string",
            "nullable": true,
            "minLength": 25,
            "maxLength": 25,
            "description": "ショップ決済手段ID（入金口座）"
          },
          "bank_code": {
            "type": "string",
            "maxLength": 4,
            "description": "金融機関コード"
          },
          "bank_name": {
            "type": "string",
            "maxLength": 60,
            "description": "金融機関名"
          },
          "branch_code": {
            "type": "string",
            "maxLength": 3,
            "description": "支店コード"
          },
          "branch_name": {
            "type": "string",
            "maxLength": 60,
            "description": "支店名"
          },
          "account_number": {
            "type": "string",
            "maxLength": 7,
            "description": "口座番号"
          },
          "account_name": {
            "type": "string",
            "maxLength": 30,
            "description": "口座名義人名"
          },
          "transaction_date": {
            "type": "string",
            "nullable": true,
            "description": "取引日 形式：`yyyy/MM/dd`"
          },
          "amount": {
            "type": "string",
            "maxLength": 14,
            "nullable": true,
            "description": "利用金額（入金額）"
          },
          "expire_overpayment_flag": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "期限後支払フラグ\n* `0` - 期限内\n* `1` - 期限後\n"
          },
          "bill_id": {
            "type": "string",
            "nullable": true,
            "description": "請求ID"
          },
          "invoice_id": {
            "type": "string",
            "nullable": true,
            "description": "インボイスID"
          },
          "error_code": {
            "type": "string",
            "nullable": true,
            "description": "エラーコード"
          },
          "client_field_1": {
            "type": "string",
            "nullable": true,
            "description": "加盟店向け自由項目 1"
          },
          "client_field_2": {
            "type": "string",
            "nullable": true,
            "description": "加盟店向け自由項目 2"
          },
          "client_field_3": {
            "type": "string",
            "nullable": true,
            "description": "加盟店向け自由項目 3"
          },
          "created": {
            "type": "string",
            "format": "date-time",
            "description": "作成日時 形式：`yyyy/MM/dd HH:mm:ss.SSS`"
          },
          "updated": {
            "type": "string",
            "format": "date-time",
            "description": "更新日時 形式：`yyyy/MM/dd HH:mm:ss.SSS`"
          }
        }
      },
      "Payment.PayeeAccount.Canceling.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Payment.PayeeAccount"
          }
        ]
      },
      "Payment.Card.Reauthorizing.Request": {
        "type": "object",
        "properties": {
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ],
            "description": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Card`: カード\n"
          },
          "access_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/access_id"
              }
            ]
          },
          "method": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CardPayMethod"
              }
            ],
            "description": "支払方法\n\n- `1`: 一括払い\n- `2`: 分割払い\n- `5`: リボ払い"
          },
          "pay_times": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/CardPayTimes"
              }
            ],
            "description": "（分割払いの場合）支払回数\\\n`CANCELED`ステータスの決済に対して指定ができます。\\\n\\\n指定可能な値： `3`, `5`, `6`, `10`, `12`, `15`, `18`, `20`, `24`"
          }
        },
        "required": [
          "pay_type",
          "access_id",
          "method"
        ]
      },
      "Payment.GooglePay.Reauthorizing.Request": {
        "type": "object",
        "properties": {
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ],
            "description": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Googlepay`: Google Pay\n"
          },
          "access_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/access_id"
              }
            ]
          },
          "method": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CardPayMethod"
              }
            ],
            "description": "支払方法\n\n- `1`: 一括払い\n- `2`: 分割払い\n- `5`: リボ払い"
          },
          "pay_times": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/CardPayTimes"
              }
            ],
            "description": "（分割払いの場合）支払回数\\\n`CANCELED`ステータスの決済に対して指定ができます。\\\n\\\n指定可能な値： `3`, `5`, `6`, `10`, `12`, `15`, `18`, `20`, `24`"
          }
        },
        "required": [
          "pay_type",
          "access_id",
          "method"
        ]
      },
      "Payment.Card.Reauthorizing.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Payment"
          },
          {
            "$ref": "#/components/schemas/Payment.Card"
          }
        ]
      },
      "Payment.GooglePay.Reauthorizing.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Payment"
          },
          {
            "$ref": "#/components/schemas/Payment.GooglePay"
          }
        ]
      },
      "Payment.Card.ChangingAmount.Request": {
        "type": "object",
        "properties": {
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ],
            "description": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Card`: カード\n"
          },
          "access_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/access_id"
              }
            ]
          },
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/amount"
              }
            ],
            "maxLength": 7,
            "description": "利用金額\\\n`tax`との合計値が決済手段ごとに定められた決済金額の範囲内に収まる必要があります。\\\n参照： [カード決済 > 制限事項 > 利用可能な金額](/payment/restriction)\n"
          },
          "tax": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tax"
              }
            ],
            "maxLength": 7,
            "description": "税送料\\\n`amount`との合計値が決済手段ごとに定められた決済金額の範囲内に収まる必要があります。\\\n参照： [カード決済 > 制限事項 > 利用可能な金額](/payment/restriction)\n"
          },
          "job_code": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CardPaymentJobCode"
              }
            ],
            "enum": [
              "AUTH",
              "CAPTURE"
            ],
            "description": "取引種別\\\n仮売上にするか即座に売上確定するかを指定します。\n\n- `AUTH`：仮売上\n- `CAPTURE`：即時売上\n"
          }
        },
        "required": [
          "pay_type",
          "access_id",
          "job_code",
          "amount"
        ]
      },
      "Payment.GooglePay.ChangingAmount.Request": {
        "type": "object",
        "properties": {
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ],
            "description": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Googlepay`: Google Pay\n"
          },
          "access_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/access_id"
              }
            ]
          },
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/amount"
              }
            ],
            "maxLength": 7,
            "description": "利用金額\\\n`tax`との合計値が決済手段ごとに定められた決済金額の範囲内に収まる必要があります。\\\n参照： [Google Pay > 制限事項 > 利用可能な金額](/payment/googlepay/restriction)\n"
          },
          "tax": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tax"
              }
            ],
            "maxLength": 7,
            "description": "税送料\\\n`amount`との合計値が決済手段ごとに定められた決済金額の範囲内に収まる必要があります。\\\n参照： [Google Pay > 制限事項 > 利用可能な金額](/payment/googlepay/restriction)\n"
          },
          "job_code": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CardPaymentJobCode"
              }
            ],
            "enum": [
              "AUTH",
              "CAPTURE"
            ],
            "description": "取引種別\\\n仮売上にするか即座に売上確定するかを指定します。\n\n- `AUTH`：仮売上\n- `CAPTURE`：即時売上\n"
          }
        },
        "required": [
          "pay_type",
          "access_id",
          "job_code",
          "amount"
        ]
      },
      "update_description": {
        "type": "string",
        "nullable": true,
        "maxLength": 100,
        "example": "○○の変更の適用",
        "description": "金額変更の説明\\\n購入者のPayPayアプリ上で表示される金額変更の説明。\n"
      },
      "Payment.PayPay.ChangingAmount.Request": {
        "type": "object",
        "properties": {
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ],
            "description": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Paypay`: PayPay\n"
          },
          "access_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/access_id"
              }
            ]
          },
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/amount"
              }
            ],
            "maxLength": 9,
            "description": "利用金額\\\n`tax`との合計値が決済手段ごとに定められた決済金額の範囲内に収まる必要があります。\\\n参照： [PayPay > 制限事項 > 利用可能な金額](https://mpb-mizuhobank-docs.fincode.jp/payment/paypay/restriction)\n"
          },
          "tax": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tax"
              }
            ],
            "maxLength": 9,
            "description": "税送料\\\n`amount`との合計値が決済手段ごとに定められた決済金額の範囲内に収まる必要があります。\\\n参照： [PayPay > 制限事項 > 利用可能な金額](https://mpb-mizuhobank-docs.fincode.jp/payment/paypay/restriction)\n"
          },
          "update_description": {
            "allOf": [
              {
                "$ref": "#/components/schemas/update_description"
              }
            ]
          }
        },
        "required": [
          "pay_type",
          "access_id",
          "amount"
        ]
      },
      "Payment.DirectDebit.ChangingAmount.Request": {
        "type": "object",
        "properties": {
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ],
            "description": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Directdebit`: 口座振替\n"
          },
          "access_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/access_id"
              }
            ]
          },
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/amount"
              }
            ],
            "maxLength": 10,
            "description": "利用金額\\\n`tax`との合計値が決済手段ごとに定められた決済金額の範囲内に収まる必要があります。\\\n参照： [口座振替 > 制限事項 > 利用可能な金額](https://mpb-mizuhobank-docs.fincode.jp/payment/directdebit/restriction)\n"
          },
          "tax": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tax"
              }
            ],
            "maxLength": 10,
            "description": "税送料\\\n`amount`との合計値が決済手段ごとに定められた決済金額の範囲内に収まる必要があります。\\\n参照： [口座振替 > 制限事項 > 利用可能な金額](https://mpb-mizuhobank-docs.fincode.jp/payment/directdebit/restriction)\n"
          }
        },
        "required": [
          "pay_type",
          "access_id",
          "amount"
        ]
      },
      "Payment.Card.ChangingAmount.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Payment"
          },
          {
            "$ref": "#/components/schemas/Payment.Card"
          }
        ]
      },
      "Payment.GooglePay.ChangingAmount.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Payment"
          },
          {
            "$ref": "#/components/schemas/Payment.GooglePay"
          }
        ]
      },
      "Payment.PayPay.ChangingAmount.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Payment"
          },
          {
            "$ref": "#/components/schemas/Payment.PayPay"
          }
        ]
      },
      "Payment.DirectDebit.ChangingAmount.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Payment"
          },
          {
            "$ref": "#/components/schemas/Payment.DirectDebit"
          }
        ]
      },
      "Payment.PayeeAccount.ChangingAmount.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Payment.PayeeAccount"
          }
        ]
      },
      "Payment.Card.ExecutingAfterThreeDSecure.Request": {
        "type": "object",
        "properties": {
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ],
            "description": "決済種別  \nこの決済で利用する決済手段です。\n\n- `Googlepay`: Google Pay\n"
          },
          "access_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/access_id"
              }
            ]
          },
          "pa_res": {
            "type": "string",
            "deprecated": true,
            "description": "※ 閉塞機能\\\n3Dセキュアサービス結果電文\\\n\\\n3Dセキュア1.0利用時のみ必須。\n"
          }
        },
        "required": [
          "pay_type",
          "access_id"
        ]
      },
      "Payment.Card.ExecutingAfterThreeDSecure.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Payment"
          },
          {
            "$ref": "#/components/schemas/Payment.Card"
          }
        ]
      },
      "Payment.Konbini.GeneratingBarcode.Request": {
        "type": "object",
        "properties": {
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ],
            "description": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Konbini`: コンビニ決済\n"
          },
          "access_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/access_id"
              }
            ]
          },
          "device_name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/device_name"
              }
            ]
          },
          "win_width": {
            "allOf": [
              {
                "$ref": "#/components/schemas/win_width"
              }
            ]
          },
          "win_height": {
            "allOf": [
              {
                "$ref": "#/components/schemas/win_height"
              }
            ]
          },
          "pixel_ratio": {
            "allOf": [
              {
                "$ref": "#/components/schemas/pixel_ratio"
              }
            ]
          },
          "win_size_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/win_size_type"
              }
            ]
          }
        },
        "required": [
          "pay_type",
          "access_id",
          "device_name",
          "win_width",
          "win_height",
          "pixel_ratio",
          "win_size_type"
        ]
      },
      "Payment.Konbini.GeneratingBarcode.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Payment"
          },
          {
            "$ref": "#/components/schemas/Payment.Konbini"
          }
        ]
      },
      "AccessId_schema": {
        "type": "string",
        "example": "a_**********************"
      },
      "ThreeDSecure2TransactionResult": {
        "type": "string",
        "enum": [
          "Y",
          "A",
          "C",
          "N",
          "U",
          "R"
        ],
        "minLength": 1,
        "maxLength": 1,
        "description": "3Dセキュア2.0認証処理 結果\n\n- `Y`: 認証に成功\n- `A`: 認証の試行が認められた<br><span class=\"smallText\">認証 / 確認は行われなかったが、認証 / 確認を試行したことの証拠は提供されている</span>\n- `C`: 追加のチャレンジ認証が必要<br><span class=\"smallText\">購入者による`challenge_url`上での追加認証が必要</span>\n- `N`: 取引拒否もしくは未認証・口座未確認\n- `R`: 認証・口座確認拒否<br><span class=\"smallText\">カード発行会社が認証を拒否し、承認を試行しないよう要求している</span>\n- `U`: 認証・口座確認の実行失敗または技術的な問題\n"
      },
      "ThreeDSecure2TransactionResultReason": {
        "type": "string",
        "enum": [
          "01",
          "02",
          "03",
          "04",
          "05",
          "06",
          "07",
          "08",
          "09",
          "11",
          "12",
          "13",
          "14",
          "15",
          "16",
          "17",
          "18",
          "19",
          "20",
          "21",
          "22",
          "23",
          "24",
          "25",
          "26",
          "80...99"
        ],
        "example": "01",
        "minLength": 1,
        "maxLength": 2,
        "description": "3Dセキュア認証結果の理由コード\\\n\\\n3Dセキュア認証2.0の結果（`tds2_trans_result`）の理由を示すコードです。\n\n- `01`: カード認証に失敗\n- `02`: 不明なデバイス\n- `03`: サポートされていないデバイス\n- `04`: 認証頻度の上限を超えた\n- `05`: 有効期限切れのカード\n- `06`: 無効なカード番号\n- `07`: 無効な取引\n- `08`: カードのレコードが存在しない\n- `09`: セキュリティ障害\n- `10`: 盗難カード\n- `11`: 不正の疑い\n- `12`: カード会員に取引が許可されていない\n- `13`: カード会員がサービスに登録されていない\n- `14`: 取引が3Dセキュア処理サービスでタイムアウトした\n- `15`: 信頼度が低い\n- `16`: 信頼度が中程度\n- `17`: 信頼度が高い\n- `18`: 信頼度が非常に高い\n- `19`: 3Dセキュア処理サービスの最大チャレンジを超える\n- `20`: 非決済取引はサポートされていません\n- `21`: 3RIトランザクションはサポートされていません\n- `22`: 3Dセキュア処理サービスの技術的な問題\n- `23`: 3Dセキュア処理サービスによってDecoupled認証が必要と判断されたが、ThreeDSecureリクエスターからは要求されていない\n- `24`: ThreeDSecure Requestor Decoupled Max Timeを超過\n- `25`: Decoupled認証のためのカード会員を認証するのに十分な時間が与えられなかった\n- `26`: 認証は試行されたが、カード会員によって実行されなかった\n"
      },
      "ThreeDSecureTransResult": {
        "type": "object",
        "properties": {
          "tds2_trans_result": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ThreeDSecure2TransactionResult"
              }
            ]
          },
          "tds2_trans_result_reason": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ThreeDSecure2TransactionResultReason"
              }
            ]
          }
        }
      },
      "ThreeDSecure.Confirming.Response": {
        "allOf": [
          {
            "type": "object",
            "properties": {
              "pay_type": {
                "type": "string",
                "enum": [
                  "Card",
                  "Googlepay"
                ],
                "default": "Card",
                "description": "決済種別  \nこの決済で利用する決済手段です。未指定の場合、`Card`となります。\n\n- `Card`: カード（デフォルト）\n- `Googlepay`: Google Pay\n"
              }
            }
          },
          {
            "$ref": "#/components/schemas/ThreeDSecureTransResult"
          }
        ]
      },
      "param": {
        "type": "string",
        "minLength": 1,
        "maxLength": 2000,
        "example": "ew0KICAgICJicm93c2VyQWNjZXB0SGVhZGVyIjogInRleHQvaHRtbCxhcHBsaWNhdGlvbi94aHRtbCt4bWwsYXBwbGljYXRpb24veG1sO3E9MC45LGltYWdlL2F2aWYsaW1hZ2Uvd2VicCxpbWFnZS9hcG5nLCovKjtxPTAuOCxhcHBsaWNhdGlvbi9zaWduZWQtZXhjaGFuZ2U7dj1iMztxPTAuNyIsDQogICAgImJyb3dzZXJJUCI6ICIxOTIuMTY4LngueCIsDQogICAgImJyb3dzZXJKYXZhRW5hYmxlZCI6IGZhbHNlLA0KICAgICJicm93c2VyTGFuZ3VhZ2UiOiAiamEtSlAiLA0KICAgICJicm93c2VySmF2YXNjcmlwdEVuYWJsZWQiOiB0cnVlLA0KICAgICJicm93c2VyQ29sb3JEZXB0aCI6ICJ7e0NvbG9yIGRlcHRofX0iLA0KICAgICJicm93c2VyU2NyZWVuSGVpZ2h0IjogInt7U2NyZWVuIGhlaWdodH19IiwNCiAgICAiYnJvd3NlclNjcmVlbldpZHRoIjogInt7U2NyZWVuIHdpZHRofX0iLA0KICAgICJicm93c2VyVFoiOiAiLTU0MCIsDQogICAgImJyb3dzZXJVc2VyQWdlbnQiOiAiTW96aWxsYS81LjAgKE1hY2ludG9zaDsgSW50ZWwgTWFjIE9TIFggMTBfMTVfNykgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzEyMi4wLjAuMCBTYWZhcmkvNTM3LjM2Ig0KfQ0K",
        "description": "ブラウザ情報\\\n\\\n購入者が`acs_url`にアクセスしたことをトリガーにM's PayBridgeが`tds2_ret_url`宛てに送信するデータのうち、`param`の値を設定します。\n"
      },
      "ThreeDSecure.Authorizing.Request": {
        "type": "object",
        "properties": {
          "pay_type": {
            "type": "string",
            "enum": [
              "Card",
              "Googlepay"
            ],
            "default": "Card",
            "description": "決済種別  \nこの決済で利用する決済手段です。未指定の場合、`Card`となります。\n\n- `Card`: カード（デフォルト）\n- `Googlepay`: Google Pay\n"
          },
          "param": {
            "allOf": [
              {
                "$ref": "#/components/schemas/param"
              }
            ]
          }
        },
        "required": [
          "param"
        ]
      },
      "ThreeDSecure.Authorizing.Response": {
        "allOf": [
          {
            "type": "object",
            "properties": {
              "pay_type": {
                "type": "string",
                "enum": [
                  "Card",
                  "Googlepay"
                ],
                "default": "Card",
                "description": "決済種別  \nこの決済で利用する決済手段です。未指定の場合、`Card`となります。\n\n- `Card`: カード（デフォルト）\n- `Googlepay`: Google Pay\n"
              },
              "challenge_url": {
                "type": "string",
                "nullable": true,
                "minLength": 1,
                "maxLength": 256,
                "description": "3Dセキュア2.0認証チャレンジURL\\\n\\\n購入者による`acs_url`へのアクセス後、カード発行会社によって追加のチャレンジ認証が必要と判定された場合、このパラメータにURLが設定されて返却されます。\n"
              }
            }
          },
          {
            "$ref": "#/components/schemas/ThreeDSecureTransResult"
          }
        ]
      },
      "PaymentSessionPayType": {
        "type": "string",
        "enum": [
          "Card",
          "Konbini",
          "Paypay",
          "Virtualaccount"
        ],
        "description": "決済方法\\\nこのリダイレクト型決済で利用できる決済方法です。\\\n\\\n- `Card`：カード決済\\\n- `Konbini`：コンビニ決済\\\n- `Paypay`：PayPay\n- `Virtualaccount`：バーチャル口座決済\n"
      },
      "properties-pay_type": {
        "type": "array",
        "nullable": false,
        "items": {
          "allOf": [
            {
              "$ref": "#/components/schemas/PaymentSessionPayType"
            }
          ]
        },
        "description": "決済手段\\\nこの決済URL上で使用できる決済手段を指定します。複数指定可能です。\n\n- `Card`：カード決済\n- `Konbini`：コンビニ決済\n- `Paypay`：PayPay\n- `Virtualaccount`：バーチャル口座決済\n"
      },
      "CardPaymentSessionJobCode": {
        "type": "string",
        "enum": [
          "AUTH",
          "CAPTURE"
        ],
        "example": "CAPTURE",
        "default": "AUTH",
        "description": "取引種別\\\nこの決済URL上でカード決済を行った際、仮売上にするか即座に売上確定するか指定します。\n\n- `AUTH`：仮売上にする（デフォルト）\n- `CAPTURE`：即時売上\n"
      },
      "PaymentSession.Konbini_x-req-properties-payment_term_day": {
        "type": "string",
        "nullable": true,
        "minLength": 1,
        "maxLength": 3,
        "example": "2",
        "description": "コンビニ決済 支払期限日数\\\n店頭レジでの支払い期限日数です。\n"
      },
      "konbini_reception_mail_send_flag": {
        "type": "string",
        "nullable": false,
        "enum": [
          "0",
          "1"
        ],
        "example": "1",
        "description": "コンビニ決済 支払い画面案内メール送信フラグ\\\nコンビニ決済の支払い画面案内メールを送信するかどうかを設定します。\n\n- `0`：送信しない\n- `1`：送信する\n"
      },
      "properties-order_description": {
        "nullable": true,
        "type": "string",
        "maxLength": 100,
        "example": "Your Shop上での購入",
        "description": "注文内容の説明\\\nPayPayアプリ上で注文内容として表示されます。\n"
      },
      "PaymentSession.VirtualAccount_x-req-properties-payment_term_day": {
        "type": "string",
        "nullable": true,
        "minLength": 1,
        "maxLength": 2,
        "example": "90",
        "description": "支払期限日数\\\n\\\n`0`～`99`日の範囲でバーチャル口座で振り込み可能な期限日数を指定します。\\\n実行日から見て、支払期限日数後の翌日AMに期限切れになります。\\\n例）2024/4/1に、`支払期限日数=2`で決済実行した場合、2024/4/4 AMに期限切れ\n"
      },
      "virtualaccount_reception_mail_send_flag": {
        "type": "string",
        "nullable": false,
        "enum": [
          "0",
          "1"
        ],
        "example": "1",
        "description": "銀行振込（バーチャル口座） 支払い画面案内メール送信フラグ\\\n銀行振込（バーチャル口座）の支払い画面案内メールを送信するかどうかを設定します。\n\n- `0`：送信しない\n- `1`：送信する\n"
      },
      "success_url": {
        "type": "string",
        "nullable": true,
        "maxLength": 256,
        "example": "https://your-service.example.com/success",
        "description": "成功時リダイレクトURL\\\n`link_url`上で決済に成功すると、M's PayBridgeはこのURLにPOSTメソッドでリダイレクトします。\n"
      },
      "cancel_url": {
        "type": "string",
        "nullable": true,
        "maxLength": 256,
        "example": "https://your-service.example.com/cancel",
        "description": "キャンセル時リダイレクトURL\\\n`link_url`上で決済がキャンセルされると、M's PayBridgeはこのURLにPOSTメソッドでリダイレクトします。\n"
      },
      "PaymentSession_properties-expire": {
        "type": "string",
        "nullable": false,
        "example": "2022/02/31 23:59:59.999",
        "description": "リダイレクト型決済URL 有効期限\\\n形式： `yyyy/MM/dd HH:mm:ss.SSS`\n"
      },
      "shop_service_name": {
        "type": "string",
        "nullable": true,
        "maxLength": 100,
        "example": "Your Service",
        "description": "ショップ／サービス名\\\n決済URL上で表示されるショップおよびサービスの名称です。\\\n\\\nデフォルトでは本番環境申請時に登録した「明細書表記」の値が設定されます。\n"
      },
      "guide_mail_send_flag": {
        "type": "string",
        "enum": [
          "0",
          "1"
        ],
        "nullable": false,
        "example": "1",
        "description": "決済メール 送信フラグ\\\nリダイレクト型決済URLをM's PayBridgeからのメール送信機能で送信したかどうかを示します。\n\n- `0`：送信しなかった（デフォルト）\n- `1`：送信した\n"
      },
      "receiver_mail": {
        "type": "string",
        "nullable": true,
        "maxLength": 254,
        "example": "receiver-email@example.com",
        "description": "決済メール 送信先メールアドレス\\\nリダイレクト型決済URLをM's PayBridgeからのメール送信機能で送信する場合の送信先メールアドレスです。\n"
      },
      "mail_customer_name": {
        "type": "string",
        "nullable": true,
        "maxLength": 384,
        "example": "買物 太郎",
        "description": "購入メール 購入者の名前\\\nリダイレクト型決済URLをM's PayBridgeからのメール送信機能で送信する場合のメール中で用いられる購入者の名前です。\\\n\\\nM's PayBridgeが提供するデフォルトのメールテンプレートでは敬称がテンプレート側に含まれています。\n"
      },
      "thanks_mail_send_flag": {
        "type": "string",
        "enum": [
          "0",
          "1"
        ],
        "nullable": false,
        "description": "完了メール 送信フラグ\\\n決済が完了した際に購入者に完了メールを送信するかどうかを示します。\n\n- `0`：送信しない（デフォルト）\n- `1`：送信する\n"
      },
      "shop_mail_template_id": {
        "type": "string",
        "nullable": true,
        "maxLength": 25,
        "example": null,
        "description": "メールテンプレートID\\\nメールテンプレートIDが設定されている場合、リダイレクト型決済URLの送信先メールアドレスに送信されるメールのテンプレートが変更されます。\\\n\\\nM's PayBridgeが提供するデフォルトのメールテンプレートを使用する場合は`null`を設定します。\n"
      },
      "PaymentSession.Creating.Request": {
        "type": "object",
        "properties": {
          "transaction": {
            "type": "object",
            "description": "決済共通項目\\\n決済手段を問わず共通して使用される決済に関するパラメータです。\n",
            "properties": {
              "pay_type": {
                "nullable": true,
                "default": [
                  "Card"
                ],
                "allOf": [
                  {
                    "$ref": "#/components/schemas/properties-pay_type"
                  }
                ]
              },
              "amount": {
                "type": "string",
                "minLength": 1,
                "maxLength": 10,
                "example": "1000",
                "description": "決済金額\\\n決済金額を指定します。\\\n\\\n指定可能な金額の範囲は各決済手段ごとの制限事項に準じます。\n"
              },
              "order_id": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/Payment_properties-id"
                  }
                ],
                "description": "オーダーID\\\nこのリダイレクト型決済URL上で決済後生成される決済情報のIDを予め指定できます。\n"
              },
              "tax": {
                "nullable": true,
                "default": null,
                "type": "string",
                "minLength": 1,
                "maxLength": 10,
                "example": "100",
                "description": "税送料\\\n税送料を指定します。\\\n\\\n指定可能な金額の範囲は各決済手段ごとの制限事項に準じます。\n"
              },
              "client_field_1": {
                "nullable": true,
                "default": null,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/client_field_n"
                  }
                ],
                "description": "加盟店自由項目 1\n"
              },
              "client_field_2": {
                "nullable": true,
                "default": null,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/client_field_n"
                  }
                ],
                "description": "加盟店自由項目 2\n"
              },
              "client_field_3": {
                "nullable": true,
                "default": null,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/client_field_n"
                  }
                ],
                "description": "加盟店自由項目 3\n"
              }
            },
            "required": [
              "amount"
            ]
          },
          "card": {
            "type": "object",
            "nullable": true,
            "description": "カード決済パラメータ\\\n`pay_type`に`Card`を含めた場合に用いられる、カード決済に関するパラメータです。\n",
            "properties": {
              "job_code": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/CardPaymentSessionJobCode"
                  }
                ]
              },
              "tds_type": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds_type"
                  }
                ]
              },
              "tds2_type": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_type"
                  }
                ]
              },
              "td_tenant_name": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/td_tenant_name"
                  }
                ]
              },
              "tds2_ch_acc_change": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_ch_acc_change"
                  }
                ]
              },
              "tds2_ch_acc_date": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_ch_acc_date"
                  }
                ]
              },
              "tds2_ch_acc_pw_change": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_ch_acc_pw_change"
                  }
                ]
              },
              "tds2_nb_purchase_account": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_nb_purchase_account"
                  }
                ]
              },
              "tds2_payment_acc_age": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_payment_acc_age"
                  }
                ]
              },
              "tds2_provision_attempts_day": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_provision_attempts_day"
                  }
                ]
              },
              "tds2_ship_address_usage": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_ship_address_usage"
                  }
                ]
              },
              "tds2_ship_name_ind": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_ship_name_ind"
                  }
                ]
              },
              "tds2_suspicious_acc_activity": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_suspicious_acc_activity"
                  }
                ]
              },
              "tds2_txn_activity_day": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_txn_activity_day"
                  }
                ]
              },
              "tds2_txn_activity_year": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_txn_activity_year"
                  }
                ]
              },
              "tds2_three_ds_req_auth_data": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_three_ds_req_auth_data"
                  }
                ]
              },
              "tds2_three_ds_req_auth_method": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_three_ds_req_auth_method"
                  }
                ]
              },
              "tds2_three_ds_req_auth_timestamp": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_three_ds_req_auth_timestamp"
                  }
                ]
              },
              "tds2_email": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_email"
                  }
                ]
              },
              "tds2_addr_match": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_addr_match"
                  }
                ]
              },
              "tds2_bill_addr_country": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_bill_addr_country"
                  }
                ]
              },
              "tds2_bill_addr_state": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_bill_addr_state"
                  }
                ]
              },
              "tds2_bill_addr_city": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_bill_addr_city"
                  }
                ]
              },
              "tds2_bill_addr_line_1": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_bill_addr_line_1"
                  }
                ]
              },
              "tds2_bill_addr_line_2": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_bill_addr_line_2"
                  }
                ]
              },
              "tds2_bill_addr_line_3": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_bill_addr_line_3"
                  }
                ]
              },
              "tds2_bill_addr_post_code": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_bill_addr_post_code"
                  }
                ]
              },
              "tds2_ship_addr_country": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_ship_addr_country"
                  }
                ]
              },
              "tds2_ship_addr_state": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_ship_addr_state"
                  }
                ]
              },
              "tds2_ship_addr_city": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_ship_addr_city"
                  }
                ]
              },
              "tds2_ship_addr_line_1": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_ship_addr_line_1"
                  }
                ]
              },
              "tds2_ship_addr_line_2": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_ship_addr_line_2"
                  }
                ]
              },
              "tds2_ship_addr_line_3": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_ship_addr_line_3"
                  }
                ]
              },
              "tds2_ship_addr_post_code": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_ship_addr_post_code"
                  }
                ]
              },
              "tds2_ship_ind": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_ship_ind"
                  }
                ]
              },
              "tds2_delivery_email_address": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_delivery_email_address"
                  }
                ]
              },
              "tds2_home_phone_cc": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_home_phone_cc"
                  }
                ]
              },
              "tds2_home_phone_no": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_home_phone_no"
                  }
                ]
              },
              "tds2_mobile_phone_cc": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_mobile_phone_cc"
                  }
                ]
              },
              "tds2_mobile_phone_no": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_mobile_phone_no"
                  }
                ]
              },
              "tds2_work_phone_cc": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_work_phone_cc"
                  }
                ]
              },
              "tds2_work_phone_no": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_work_phone_no"
                  }
                ]
              },
              "tds2_delivery_timeframe": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_delivery_timeframe"
                  }
                ]
              },
              "tds2_pre_order_date": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_pre_order_date"
                  }
                ]
              },
              "tds2_pre_order_purchase_ind": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_pre_order_purchase_ind"
                  }
                ]
              },
              "tds2_reorder_items_ind": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_reorder_items_ind"
                  }
                ]
              },
              "tds2_recurring_expiry": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_recurring_expiry"
                  }
                ]
              },
              "tds2_recurring_frequency": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_recurring_frequency"
                  }
                ]
              },
              "tds2_gift_card_amount": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_gift_card_amount"
                  }
                ]
              },
              "tds2_gift_card_count": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_gift_card_count"
                  }
                ]
              },
              "tds2_gift_card_curr": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tds2_gift_card_curr"
                  }
                ]
              }
            },
            "required": [
              "job_code"
            ]
          },
          "konbini": {
            "type": "object",
            "nullable": true,
            "description": "コンビニ決済パラメータ\\\n`pay_type`に`Konbini`を含めた場合に用いられる、コンビニ決済に関するパラメータです。\n",
            "properties": {
              "payment_term_day": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/PaymentSession.Konbini_x-req-properties-payment_term_day"
                  }
                ]
              },
              "konbini_reception_mail_send_flag": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/konbini_reception_mail_send_flag"
                  }
                ]
              }
            },
            "required": [
              "konbini_reception_mail_send_flag"
            ]
          },
          "paypay": {
            "type": "object",
            "nullable": true,
            "description": "PayPayパラメータ\\\n`pay_type`に`Paypay`を含めた場合に用いられる、PayPayによる決済に関するパラメータです。\n",
            "properties": {
              "job_code": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/PayPayPaymentJobCode"
                  }
                ],
                "description": "この決済URL上でPayPayによる決済を行った際、仮売上にするか即座に売上確定するか指定します。\n\n- `AUTH`：仮売上にする\n- `CAPTURE`：即時売上\n"
              },
              "order_description": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/properties-order_description"
                  }
                ]
              }
            },
            "required": [
              "job_code"
            ]
          },
          "virtualaccount": {
            "type": "object",
            "nullable": true,
            "description": "銀行振込（バーチャル口座）パラメータ\\\n`pay_type`に`Virtualaccount`を含めた場合に用いられる、銀行振込（バーチャル口座）に関するパラメータです。\n",
            "properties": {
              "payment_term_day": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/PaymentSession.VirtualAccount_x-req-properties-payment_term_day"
                  }
                ]
              },
              "virtualaccount_reception_mail_send_flag": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/virtualaccount_reception_mail_send_flag"
                  }
                ]
              },
              "reference_order_id": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/reference_order_id"
                  }
                ]
              },
              "use_exact_deposit_amount": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/use_exact_deposit_amount"
                  }
                ]
              }
            },
            "required": [
              "virtualaccount_reception_mail_send_flag"
            ]
          },
          "success_url": {
            "nullable": true,
            "example": "https://your-service.example.com/success",
            "allOf": [
              {
                "$ref": "#/components/schemas/success_url"
              }
            ]
          },
          "cancel_url": {
            "nullable": true,
            "example": "https://your-service.example.com/cancel",
            "allOf": [
              {
                "$ref": "#/components/schemas/cancel_url"
              }
            ]
          },
          "expire": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentSession_properties-expire"
              }
            ],
            "nullable": true,
            "description": "リダイレクト型決済URL 有効期限\\\n形式： `yyyy/MM/dd HH:mm:ss`\n\n- デフォルト： URL発行時点から24時間\n- 最長： 30日\n- 最短： 5分\n"
          },
          "shop_service_name": {
            "nullable": true,
            "example": "Your Service",
            "allOf": [
              {
                "$ref": "#/components/schemas/shop_service_name"
              }
            ]
          },
          "guide_mail_send_flag": {
            "nullable": true,
            "default": "0",
            "example": "1",
            "allOf": [
              {
                "$ref": "#/components/schemas/guide_mail_send_flag"
              }
            ],
            "description": "決済メール 送信フラグ\\\nリダイレクト型決済URLを添付したメールをM's PayBridgeから送信するかどうかを指定します。\n\n- `0`：送信しない（デフォルト）\n- `1`：送信する\n"
          },
          "receiver_mail": {
            "nullable": true,
            "example": "receiver-email@example.com",
            "allOf": [
              {
                "$ref": "#/components/schemas/receiver_mail"
              }
            ]
          },
          "mail_customer_name": {
            "nullable": true,
            "example": "買物 太郎",
            "allOf": [
              {
                "$ref": "#/components/schemas/mail_customer_name"
              }
            ]
          },
          "thanks_mail_send_flag": {
            "default": "0",
            "example": "1",
            "allOf": [
              {
                "$ref": "#/components/schemas/thanks_mail_send_flag"
              }
            ],
            "nullable": true
          },
          "shop_mail_template_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/shop_mail_template_id"
              }
            ]
          }
        },
        "required": [
          "transaction"
        ]
      },
      "PaymentSessionStatus": {
        "type": "string",
        "enum": [
          "CREATE"
        ],
        "maxLength": 10,
        "nullable": false,
        "example": "CREATE",
        "description": "ステータス\\\nリダイレクト型決済URLのステータスを表します。\n\n- `CREATE`：決済URLが作成された状態\n"
      },
      "PaymentSession.Card": {
        "type": "object",
        "properties": {
          "job_code": {
            "$ref": "#/components/schemas/CardPaymentSessionJobCode"
          },
          "tds_type": {
            "nullable": true,
            "$ref": "#/components/schemas/tds_type"
          },
          "td_tenant_name": {
            "nullable": true,
            "$ref": "#/components/schemas/td_tenant_name"
          },
          "tds2_type": {
            "nullable": true,
            "$ref": "#/components/schemas/tds2_type"
          },
          "item_code": {
            "type": "string",
            "nullable": true,
            "maxLength": 100,
            "example": null,
            "description": "商品コード\\\n※ 通常は`null`\n"
          }
        },
        "x-req-properties": {
          "tds2_ch_acc_change": {
            "type": "string",
            "example": "20240101",
            "minLength": 8,
            "maxLength": 8,
            "nullable": true,
            "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n購入者ユーザーアカウント 最終更新日\\\n形式：`YYYYMMDD`\\\n\\\n加盟店アプリケーションにおけるユーザーアカウントの情報が最後に更新された日付を設定します。\n"
          },
          "tds2_ch_acc_date": {
            "type": "string",
            "example": "20220101",
            "minLength": 8,
            "maxLength": 8,
            "nullable": true,
            "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n購入者ユーザーアカウント 開設日\\\n形式：`YYYYMMDD`\\\n\\\n加盟店アプリケーションにおけるユーザーアカウントの開設日を設定します。\n"
          },
          "tds2_ch_acc_pw_change": {
            "type": "string",
            "example": "20230101",
            "minLength": 8,
            "maxLength": 8,
            "nullable": true,
            "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n購入者ユーザーアカウント パスワード最終更新日\\\n形式：`YYYYMMDD`\\\n\\\n加盟店アプリケーションにおけるユーザーアカウントのパスワードが最後に更新された日付を設定します。\n"
          },
          "tds2_nb_purchase_account": {
            "type": "string",
            "example": "9999",
            "minLength": 1,
            "maxLength": 4,
            "nullable": true,
            "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n購入者の過去6カ月間の購入回数\n"
          },
          "tds2_payment_acc_age": {
            "type": "string",
            "example": "20231231",
            "minLength": 8,
            "maxLength": 8,
            "nullable": true,
            "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客ユーザーアカウント カード登録日。\\\n形式：`YYYYMMDD`\n"
          },
          "tds2_provision_attempts_day": {
            "type": "string",
            "example": "999",
            "minLength": 3,
            "maxLength": 3,
            "nullable": true,
            "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客ユーザーアカウント 過去24時間のカード追加の試行回数\n"
          },
          "tds2_ship_address_usage": {
            "type": "string",
            "example": "20230930",
            "minLength": 8,
            "maxLength": 8,
            "nullable": true,
            "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n配送先住所の最初の使用日。\\\n形式：`YYYYMMDD`\n"
          },
          "tds2_ship_name_ind": {
            "type": "string",
            "enum": [
              "01",
              "02"
            ],
            "minLength": 2,
            "maxLength": 2,
            "nullable": true,
            "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n購入者名と配送先名が一致しているか否か\\\n購入者名と登録に使用される配送先名の一致/不一致を設定\n\n- `01`: 顧客名と配送先名が一致\n- `02`: 顧客名と配送先名が不一致\n"
          },
          "tds2_suspicious_acc_activity": {
            "type": "string",
            "enum": [
              "01",
              "02"
            ],
            "minLength": 2,
            "maxLength": 2,
            "nullable": true,
            "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客ユーザーアカウント 不審行為有無\\\n顧客ユーザーアカウントで、不審な行動（過去の不正行為を含む）を加盟店様が発見したかどうかを設定\n\n- `01`: 不審な行動なし\n- `02`: 不審な行動あり\n"
          },
          "tds2_txn_activity_day": {
            "type": "string",
            "example": "999",
            "minLength": 3,
            "maxLength": 3,
            "nullable": true,
            "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n購入者の過去24時間の取引回数\n"
          },
          "tds2_txn_activity_year": {
            "type": "string",
            "example": "999",
            "minLength": 3,
            "maxLength": 3,
            "nullable": true,
            "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n前年の取引回数\n"
          },
          "tds2_three_ds_req_auth_data": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "nullable": true,
            "example": null,
            "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客ユーザーアカウント ログイン証跡\\\n\\\n加盟店アプリケーションにおけるログインの証跡。\nログイン証跡を設定する場合、ログイン方法とログイン日時の設定が必要です。\n"
          },
          "tds2_three_ds_req_auth_method": {
            "type": "string",
            "enum": [
              "01",
              "02",
              "03",
              "04",
              "05",
              "06"
            ],
            "minLength": 2,
            "maxLength": 2,
            "nullable": true,
            "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客ユーザーアカウント ログイン方法\\\nログイン方法を設定する場合、ログイン証跡とログイン日時の設定が必要です。\n\n- `01`: 認証なし（ゲストとしてログイン）\n- `02`: 加盟店様自身の認証情報\n- `03`: SSO(シングルサインオン)\n- `04`: イシュアーの認証情報\n- `05`: サードパーティ認証\n- `06`: FIDO認証\n"
          },
          "tds2_three_ds_req_auth_timestamp": {
            "type": "string",
            "example": "202205191234",
            "minLength": 12,
            "maxLength": 12,
            "nullable": true,
            "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客ユーザーアカウント ログイン日時\\\n\\\nログイン証跡を設定する場合、ログイン方法とログイン日時の設定が必要です。\\\n形式：`YYYYMMDDHHmm`\n"
          },
          "tds2_email": {
            "type": "string",
            "minLength": 1,
            "maxLength": 254,
            "nullable": true,
            "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客のメールアドレス\\\n\\\n未指定の場合、顧客の`email`が自動で設定されます。\\\n\\\n2024年8月12日以降、下記の内少なくとも1つが必須となります。\n\n- 顧客の自宅電話番号（`tds2_home_phone_no`）\n- 顧客の携帯電話番号（`tds2_mobile_phone_no`）\n- 顧客の職場電話番号（`tds2_work_phone_no`）\n- 顧客のメールアドレス（`tds2_email`）\n\n※当面は連携しなかった場合でも認証は実施されますが、将来的には利用不可になる可能性があります。\n"
          },
          "tds2_addr_match": {
            "type": "string",
            "enum": [
              "Y",
              "N"
            ],
            "example": "Y",
            "minLength": 1,
            "maxLength": 1,
            "nullable": true,
            "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n請求先住所と配送先住所が一致しているか否か\n\n- `Y`: 住所は一致している\n- `N`: 住所は一致していない\n"
          },
          "tds2_bill_addr_country": {
            "type": "string",
            "example": "392",
            "minLength": 1,
            "maxLength": 3,
            "nullable": true,
            "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客の請求先住所 国コード\\\n形式：ISO 3166-1 numeric\n\\\n未指定の場合、顧客の`addr_country`が自動で設定されます。  \nショップ側で顧客の住所情報を保持している場合、指定が必須となります。  \n※住所情報を保持していない場合、指定は不要です。\n"
          },
          "tds2_bill_addr_state": {
            "type": "string",
            "example": "13",
            "minLength": 1,
            "maxLength": 3,
            "nullable": true,
            "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客の請求先住所 州または都道府県コード。\\\n参照： [国土交通省 都道府県コード](https://nlftp.mlit.go.jp/ksj/gml/codelist/PrefCd.html)\\\n\\\n未指定の場合、顧客の`addr_state`が自動で設定されます。  \nショップ側で顧客の住所情報を保持している場合、指定が必須となります。  \n※住所情報を保持していない場合、指定は不要です。\n"
          },
          "tds2_bill_addr_city": {
            "type": "string",
            "example": "渋谷区",
            "minLength": 1,
            "maxLength": 50,
            "nullable": true,
            "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客の請求先住所 都市名\\\n\\\n未指定の場合、顧客の`addr_city`が自動で設定されます。  \nショップ側で顧客の住所情報を保持している場合、指定が必須となります。  \n※住所情報を保持していない場合、指定は不要です。\n"
          },
          "tds2_bill_addr_line_1": {
            "type": "string",
            "example": "道玄坂1-14-6",
            "minLength": 1,
            "maxLength": 50,
            "nullable": true,
            "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客の請求先住所 区域部1行目\\\n\\\n顧客の住所の番地・区画を指定してください。未指定の場合。顧客の`addr_line_1`が自動で設定されます。\n\n- 都道府県や市区を含めることができます。\n- 保持している住所をパラメータの形式に分割できない場合は、桁数が収まるように`tds2_bill_addr_line_1` ~ `tds2_bill_addr_line_3`に住所を設定してください。\n- `tds2_bill_addr_line_2`と`tds2_bill_addr_line_3`を空にして、`tds2_bill_addr_line_1`に全ての住所を設定できます。\n\n未指定の場合、顧客に登録された`addr_line_1`を設定します。  \nショップ側で顧客の住所情報を保持している場合、指定が必須となります。  \n※住所情報を保持していない場合、指定は不要です。\n"
          },
          "tds2_bill_addr_line_2": {
            "type": "string",
            "example": "ヒューマックス渋谷ビル",
            "minLength": 1,
            "maxLength": 50,
            "nullable": true,
            "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客の請求先住所 区域部2行目\\\n\\\n顧客の住所の建物名・部屋番号を指定してください。未指定の場合、顧客に登録された`addr_line_2`を設定します。\n"
          },
          "tds2_bill_addr_line_3": {
            "type": "string",
            "example": "7F",
            "minLength": 1,
            "maxLength": 50,
            "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客の請求先住所 区域部3行目\\\n\\\n顧客の住所のその他を指定してください。未指定の場合、顧客に登録された`addr_line_3`を設定します。\n"
          },
          "tds2_bill_addr_post_code": {
            "type": "string",
            "example": "150-0043",
            "minLength": 1,
            "maxLength": 16,
            "nullable": true,
            "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客の請求先住所 郵便番号\\\n\\\n未指定の場合、顧客に登録された`addr_post_code`を設定します。  \nショップ側で顧客の住所情報を保持している場合、指定が必須となります。  \n※住所情報を保持していない場合、指定は不要です。\n"
          },
          "tds2_ship_addr_country": {
            "type": "string",
            "example": "392",
            "minLength": 1,
            "maxLength": 3,
            "nullable": true,
            "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客の配送先住所 国コード。\\\n形式：ISO 3166-1 numeric\n"
          },
          "tds2_ship_addr_state": {
            "type": "string",
            "example": "13",
            "minLength": 1,
            "maxLength": 3,
            "nullable": true,
            "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客の配送先住所 州または都道府県コード。\\\n参照： [国土交通省 都道府県コード](https://nlftp.mlit.go.jp/ksj/gml/codelist/PrefCd.html)\n"
          },
          "tds2_ship_addr_city": {
            "type": "string",
            "example": "渋谷区",
            "minLength": 1,
            "maxLength": 50,
            "nullable": true,
            "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客の配送先住所 都市名\n"
          },
          "tds2_ship_addr_line_1": {
            "type": "string",
            "example": "道玄坂1-14-6",
            "minLength": 1,
            "maxLength": 50,
            "nullable": true,
            "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客の配送先住所 区域部1行目\n"
          },
          "tds2_ship_addr_line_2": {
            "type": "string",
            "example": "ヒューマックス渋谷ビル",
            "minLength": 1,
            "maxLength": 50,
            "nullable": true,
            "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客の配送先住所 区域部2行目\n"
          },
          "tds2_ship_addr_line_3": {
            "type": "string",
            "example": "7F",
            "minLength": 1,
            "maxLength": 50,
            "nullable": true,
            "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客の配送先住所 区域部3行目\n"
          },
          "tds2_ship_addr_post_code": {
            "type": "string",
            "example": "150-0043",
            "minLength": 1,
            "maxLength": 16,
            "nullable": true,
            "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客の配送先住所 郵便番号\n"
          },
          "tds2_ship_ind": {
            "type": "string",
            "enum": [
              "01",
              "02",
              "03",
              "04",
              "05",
              "06",
              "07"
            ],
            "example": "01",
            "minLength": 2,
            "maxLength": 2,
            "nullable": true,
            "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n取引商品の配送方法\n\n- `01`: 顧客の請求先住所に配送\n- `02`: 加盟店が保持している確認済み住所（請求先住所でない）に配送\n- `03`: 顧客の請求先住所と異なる住所に配送\n- `04`: 店舗への配送（店舗の住所は配送先住所で指定）\n- `05`: デジタル商品（オンラインサービス、電子ギフトカードおよび償還コードを含む）\n- `06`: 配送なし（旅行およびイベントのチケット）\n- `07`: その他（ゲーム、配送されないデジタルサービス、電子メディアの購読料など）\n"
          },
          "tds2_delivery_email_address": {
            "type": "string",
            "example": "email@example.com",
            "minLength": 1,
            "maxLength": 254,
            "nullable": true,
            "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客 メールアドレス\n"
          },
          "tds2_home_phone_cc": {
            "type": "string",
            "example": "81",
            "minLength": 1,
            "maxLength": 3,
            "nullable": true,
            "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客の自宅電話番号の国コード（+を含まない）\\\n※ この値を設定する場合、`tds2_home_phone_no`の設定が必要です。\\\n\\\n未指定の場合、顧客の`phone_cc`が自動で設定されます。\n"
          },
          "tds2_home_phone_no": {
            "type": "string",
            "example": "312345678",
            "minLength": 1,
            "maxLength": 15,
            "nullable": true,
            "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客の自宅電話番号（ハイフンなし半角数字のみ）\\\n※ この値を設定する場合、`tds2_home_phone_cc`の設定が必要です。\\\n\\\n未指定の場合、顧客の`phone_no`が自動で設定されます。\\\n\\\n2024年8月12日以降、下記の内少なくとも1つが必須となります。\n\n- 顧客の自宅電話番号（`tds2_home_phone_no`）\n- 顧客の携帯電話番号（`tds2_mobile_phone_no`）\n- 顧客の職場電話番号（`tds2_work_phone_no`）\n- 顧客のメールアドレス（`tds2_email`）\n\n※当面は連携しなかった場合でも認証は実施されますが、将来的には利用不可になる可能性があります。\n"
          },
          "tds2_mobile_phone_cc": {
            "type": "string",
            "example": "81",
            "minLength": 1,
            "maxLength": 3,
            "nullable": true,
            "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客の携帯電話番号の国コード（+を含まない）\\\n※ この値を設定する場合、`tds2_mobile_phone_no`の設定が必要です。\n"
          },
          "tds2_mobile_phone_no": {
            "type": "string",
            "example": "9012345678",
            "minLength": 1,
            "maxLength": 15,
            "nullable": true,
            "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客の携帯電話番号（ハイフンなし半角数字のみ）\\\n※ この値を設定する場合、`tds2_mobile_phone_cc`の設定が必要です。\\\n\\\n2024年8月12日以降、下記の内少なくとも1つが必須となります。\n\n- 顧客の自宅電話番号（`tds2_home_phone_no`）\n- 顧客の携帯電話番号（`tds2_mobile_phone_no`）\n- 顧客の職場電話番号（`tds2_work_phone_no`）\n- 顧客のメールアドレス（`tds2_email`）\n\n※当面は連携しなかった場合でも認証は実施されますが、将来的には利用不可になる可能性があります。\n"
          },
          "tds2_work_phone_cc": {
            "type": "string",
            "example": "81",
            "minLength": 1,
            "maxLength": 3,
            "nullable": true,
            "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客の勤務先電話番号の国コード（+を含まない）\\\n※ この値を設定する場合、`tds2_work_phone_no`の設定が必要です。\n"
          },
          "tds2_work_phone_no": {
            "type": "string",
            "example": "312345678",
            "minLength": 1,
            "maxLength": 15,
            "nullable": true,
            "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n顧客の勤務先電話番号（ハイフンなし半角数字のみ）\\\n※ この値を設定する場合、`tds2_work_phone_cc`の設定が必要です。\\\n\\\n2024年8月12日以降、下記の内少なくとも1つが必須となります。\n\n- 顧客の自宅電話番号（`tds2_home_phone_no`）\n- 顧客の携帯電話番号（`tds2_mobile_phone_no`）\n- 顧客の職場電話番号（`tds2_work_phone_no`）\n- 顧客のメールアドレス（`tds2_email`）\n\n※当面は連携しなかった場合でも認証は実施されますが、将来的には利用不可になる可能性があります。\n"
          },
          "tds2_delivery_timeframe": {
            "type": "string",
            "enum": [
              "01",
              "02",
              "03",
              "04"
            ],
            "example": "01",
            "minLength": 2,
            "maxLength": 2,
            "nullable": true,
            "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n商品納品時間枠\n\n- `01`: 電子デリバリー\n- `02`: 当日出荷\n- `03`: 翌日出荷\n- `04`: 2日目以降の出荷\n"
          },
          "tds2_pre_order_date": {
            "type": "string",
            "example": "20231231",
            "minLength": 8,
            "maxLength": 8,
            "nullable": true,
            "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n商品の発売予定日\\\n形式：`YYYYMMDD`\n"
          },
          "tds2_pre_order_purchase_ind": {
            "type": "string",
            "enum": [
              "01",
              "02"
            ],
            "example": "01",
            "minLength": 2,
            "maxLength": 2,
            "nullable": true,
            "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n商品の販売時期情報\n\n- `01`: 発売済み商品\n- `02`: 先行予約商品\n"
          },
          "tds2_reorder_items_ind": {
            "type": "string",
            "enum": [
              "01",
              "02"
            ],
            "example": "01",
            "minLength": 2,
            "maxLength": 2,
            "nullable": true,
            "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n商品の注文が初回か再注文か\n\n- `01`: 初回注文\n- `02`: 再注文\n"
          },
          "tds2_recurring_expiry": {
            "type": "string",
            "example": "20231231",
            "minLength": 8,
            "maxLength": 8,
            "nullable": true,
            "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n※ サブスクリプションなど継続課金型のビジネスモデルのみ\\\n継続課金の終了日\\\n形式：`YYYYMMDD`\n"
          },
          "tds2_recurring_frequency": {
            "type": "string",
            "example": "99",
            "minLength": 1,
            "maxLength": 4,
            "nullable": true,
            "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n※ サブスクリプションなど継続課金型のビジネスモデルのみ\\\n継続課金の課金間隔の日数（最小）\n"
          },
          "tds2_gift_card_amount": {
            "type": "string",
            "example": "999999",
            "minLength": 1,
            "maxLength": 15,
            "nullable": true,
            "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n※ プリペイドカードまたはギフトカードを購入する場合のみ\\\nプリペイドカードまたはギフトカードの総購入金額\n"
          },
          "tds2_gift_card_count": {
            "type": "string",
            "example": "99",
            "minLength": 1,
            "maxLength": 2,
            "nullable": true,
            "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n※ プリペイドカードまたはギフトカードを購入する場合のみ\\\n購入したプリペイドカードまたはギフトカードの総数\n"
          },
          "tds2_gift_card_curr": {
            "type": "string",
            "example": "392",
            "minLength": 1,
            "maxLength": 3,
            "nullable": true,
            "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>\\\n※ プリペイドカードまたはギフトカードを購入する場合のみ\\\nプリペイドカードまたはギフトカードの通貨コード。\\\n形式：ISO 4217 numeric\\\n\\\n以下の通貨コードは利用できません。（債券市場単位等）\\\n`955`, `956`, `957`, `958`, `959`, `960`, `961`, `962`, `963`, `964`, `999`\n"
          }
        }
      },
      "PaymentSession.Konbini": {
        "type": "object",
        "properties": {
          "konbini_reception_url": {
            "type": "string",
            "nullable": true,
            "maxLength": 256,
            "example": "https://secure.test.fincode.jp/v1/links/lk_**********************/konbini",
            "description": "コンビニ決済 支払い画面URL\n"
          },
          "payment_term_day": {
            "type": "integer",
            "format": "int64",
            "nullable": true,
            "minLength": 1,
            "maxLength": 3,
            "example": 2,
            "description": "コンビニ決済 支払期限日数\\\n店頭レジでの支払い期限日数です。\n"
          },
          "konbini_reception_mail_send_flag": {
            "type": "string",
            "nullable": false,
            "enum": [
              "0",
              "1"
            ],
            "example": "1",
            "description": "コンビニ決済 支払い画面案内メール送信フラグ\\\nコンビニ決済の支払い画面案内メールを送信するかどうかを設定します。\n\n- `0`：送信しない\n- `1`：送信する\n"
          }
        },
        "x-req-properties": {
          "payment_term_day": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 3,
            "example": "2",
            "description": "コンビニ決済 支払期限日数\\\n店頭レジでの支払い期限日数です。\n"
          }
        }
      },
      "PaymentSession.PayPay": {
        "type": "object",
        "properties": {
          "job_code": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/PayPayPaymentJobCode"
              }
            ],
            "description": "この決済URL上でPayPayによる決済を行った際、仮売上にするか即座に売上確定するか指定します。\n\n- `AUTH`：仮売上にする\n- `CAPTURE`：即時売上\n"
          },
          "order_description": {
            "nullable": true,
            "type": "string",
            "maxLength": 100,
            "example": "Your Shop上での購入",
            "description": "注文内容の説明\\\nPayPayアプリ上で注文内容として表示されます。\n"
          }
        }
      },
      "PaymentSession.VirtualAccount": {
        "type": "object",
        "properties": {
          "virtualaccount_reception_url": {
            "type": "string",
            "nullable": true,
            "maxLength": 256,
            "example": "https://secure.test.fincode.jp/v1/links/lk_**********************/virtualaccount",
            "description": "銀行振込（バーチャル口座） 支払い画面URL\n"
          },
          "payment_term_day": {
            "type": "integer",
            "format": "int64",
            "minLength": 1,
            "maxLength": 2,
            "example": 90,
            "description": "支払期限日数\\\n\\\n実行日から見て、支払期限日数後の翌日AMに期限切れになります。\\\n例）2024/4/1に、`支払期限日数=2`で決済実行した場合、2024/4/4 AMに期限切れ\n"
          },
          "virtualaccount_reception_mail_send_flag": {
            "type": "string",
            "nullable": false,
            "enum": [
              "0",
              "1"
            ],
            "example": "1",
            "description": "銀行振込（バーチャル口座） 支払い画面案内メール送信フラグ\\\n銀行振込（バーチャル口座）の支払い画面案内メールを送信するかどうかを設定します。\n\n- `0`：送信しない\n- `1`：送信する\n"
          },
          "use_exact_deposit_amount": {
            "type": "boolean",
            "enum": [
              true,
              false
            ],
            "description": "入金可能額設定利用フラグ\\\nこの決済で使用されるバーチャル口座に対して入金可能額を設定するかどうかを示すフラグです。\n設定した場合、購入者は請求金額以外の金額を振り込むことができなくなります。\n\n- `true`: 入金可能額を設定する\n- `false`: 入金可能額を設定しない（デフォルト）\n"
          }
        },
        "x-req-properties": {
          "reference_order_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Payment_properties-id"
              }
            ],
            "description": "バーチャル口座 再利用 オーダーID\\\n\\\nあるオーダーIDのバーチャル口座を再利用する場合、その決済のオーダーIDを参照先として指定します。\\\nバーチャル口座の再利用が可能な決済の条件は以下の通りです。\n\n1. 参照する決済の`status`が`CAPTURED`、`CANCELED`、`EXPIRED`であること\n2. 参照する決済に紐づくバーチャル口座への振込から90日以内であること\n"
          },
          "payment_term_day": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 2,
            "example": "90",
            "description": "支払期限日数\\\n\\\n`0`～`99`日の範囲でバーチャル口座で振り込み可能な期限日数を指定します。\\\n実行日から見て、支払期限日数後の翌日AMに期限切れになります。\\\n例）2024/4/1に、`支払期限日数=2`で決済実行した場合、2024/4/4 AMに期限切れ\n"
          },
          "use_exact_deposit_amount": {
            "type": "boolean",
            "enum": [
              true,
              false
            ],
            "description": "入金可能額設定利用フラグ\\\nこの決済で使用されるバーチャル口座に対して入金可能額を設定するかどうかを指定します。\\\n設定した場合、購入者は請求金額以外の金額を振り込むことができなくなります。\n\n- `true`: 入金可能額を設定する\n- `false`: 入金可能額を設定しない（デフォルト）\n"
          }
        }
      },
      "PaymentSession": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "example": "lk_**********************",
            "minLength": 25,
            "maxLength": 25,
            "description": "リダイレクト型決済URL ID\n"
          },
          "link_url": {
            "type": "string",
            "nullable": false,
            "maxLength": 100,
            "example": "https://secure.test.fincode.jp/v1/links/lk_**********************",
            "description": "リダイレクト型決済URL\n"
          },
          "success_url": {
            "type": "string",
            "nullable": true,
            "maxLength": 256,
            "example": "https://your-service.example.com/success",
            "description": "成功時リダイレクトURL\\\n`link_url`上で決済に成功すると、M's PayBridgeはこのURLにPOSTメソッドでリダイレクトします。\n"
          },
          "cancel_url": {
            "type": "string",
            "nullable": true,
            "maxLength": 256,
            "example": "https://your-service.example.com/cancel",
            "description": "キャンセル時リダイレクトURL\\\n`link_url`上で決済がキャンセルされると、M's PayBridgeはこのURLにPOSTメソッドでリダイレクトします。\n"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentSessionStatus"
              }
            ]
          },
          "expire": {
            "type": "string",
            "nullable": false,
            "example": "2022/02/31 23:59:59.999",
            "description": "リダイレクト型決済URL 有効期限\\\n形式： `yyyy/MM/dd HH:mm:ss.SSS`\n"
          },
          "shop_service_name": {
            "type": "string",
            "nullable": true,
            "maxLength": 100,
            "example": "Your Service",
            "description": "ショップ／サービス名\\\n決済URL上で表示されるショップおよびサービスの名称です。\\\n\\\nデフォルトでは本番環境申請時に登録した「明細書表記」の値が設定されます。\n"
          },
          "guide_mail_send_flag": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "nullable": false,
            "example": "1",
            "description": "決済メール 送信フラグ\\\nリダイレクト型決済URLをM's PayBridgeからのメール送信機能で送信したかどうかを示します。\n\n- `0`：送信しなかった（デフォルト）\n- `1`：送信した\n"
          },
          "receiver_mail": {
            "type": "string",
            "nullable": true,
            "maxLength": 254,
            "example": "receiver-email@example.com",
            "description": "決済メール 送信先メールアドレス\\\nリダイレクト型決済URLをM's PayBridgeからのメール送信機能で送信する場合の送信先メールアドレスです。\n"
          },
          "mail_customer_name": {
            "type": "string",
            "nullable": true,
            "maxLength": 384,
            "example": "買物 太郎",
            "description": "購入メール 購入者の名前\\\nリダイレクト型決済URLをM's PayBridgeからのメール送信機能で送信する場合のメール中で用いられる購入者の名前です。\\\n\\\nM's PayBridgeが提供するデフォルトのメールテンプレートでは敬称がテンプレート側に含まれています。\n"
          },
          "thanks_mail_send_flag": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "nullable": false,
            "description": "完了メール 送信フラグ\\\n決済が完了した際に購入者に完了メールを送信するかどうかを示します。\n\n- `0`：送信しない（デフォルト）\n- `1`：送信する\n"
          },
          "shop_mail_template_id": {
            "type": "string",
            "nullable": true,
            "maxLength": 25,
            "example": null,
            "description": "メールテンプレートID\\\nメールテンプレートIDが設定されている場合、リダイレクト型決済URLの送信先メールアドレスに送信されるメールのテンプレートが変更されます。\\\n\\\nM's PayBridgeが提供するデフォルトのメールテンプレートを使用する場合は`null`を設定します。\n"
          },
          "transaction": {
            "type": "object",
            "nullable": false,
            "description": "決済共通項目\\\n決済手段を問わず共通して使用される、決済に関するデータです。\n",
            "properties": {
              "pay_type": {
                "type": "array",
                "nullable": false,
                "items": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/PaymentSessionPayType"
                    }
                  ]
                },
                "description": "決済手段\\\nこの決済URL上で使用できる決済手段を指定します。複数指定可能です。\n\n- `Card`：カード決済\n- `Konbini`：コンビニ決済\n- `Paypay`：PayPay\n- `Virtualaccount`：バーチャル口座決済\n"
              },
              "order_id": {
                "nullable": false,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/Payment_properties-id"
                  }
                ],
                "description": "オーダーID\\\nこのリダイレクト型決済URL上で決済後生成される決済情報のID\n"
              },
              "amount": {
                "type": "integer",
                "format": "int32",
                "minLength": 1,
                "maxLength": 10,
                "nullable": false,
                "example": 1000,
                "description": "利用金額\n"
              },
              "tax": {
                "type": "integer",
                "format": "int32",
                "minLength": 1,
                "maxLength": 10,
                "nullable": false,
                "example": 1000,
                "description": "税送料\n"
              },
              "client_field_1": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/client_field_n"
                  }
                ],
                "description": "加盟店自由項目 1\n"
              },
              "client_field_2": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/client_field_n"
                  }
                ],
                "description": "加盟店自由項目 2\n"
              },
              "client_field_3": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/client_field_n"
                  }
                ],
                "description": "加盟店自由項目 3\n"
              }
            }
          },
          "card": {
            "nullable": false,
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentSession.Card"
              }
            ],
            "description": "カード決済に関する情報\n"
          },
          "konbini": {
            "nullable": false,
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentSession.Konbini"
              }
            ],
            "description": "コンビニ決済に関する情報\n"
          },
          "paypay": {
            "nullable": false,
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentSession.PayPay"
              }
            ],
            "description": "PayPayに関する情報\n"
          },
          "virtualaccount": {
            "nullable": false,
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentSession.VirtualAccount"
              }
            ],
            "description": "銀行振込（バーチャル口座）に関する情報\n"
          },
          "bill_id": {
            "type": "string",
            "description": "請求ID\n",
            "minLength": 1,
            "maxLength": 30
          },
          "created": {
            "allOf": [
              {
                "$ref": "#/components/schemas/created"
              }
            ]
          },
          "updated": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updated"
              }
            ]
          }
        }
      },
      "PaymentSession.Creating.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/PaymentSession"
          }
        ]
      },
      "properties-success_url": {
        "type": "string",
        "nullable": true,
        "maxLength": 256,
        "example": "https://your-service.example.com/success",
        "description": "成功時リダイレクトURL\\\n`link_url`上でカード登録に成功すると、M's PayBridgeはこのURLにPOSTメソッドでリダイレクトします。\n"
      },
      "properties-cancel_url": {
        "type": "string",
        "nullable": true,
        "maxLength": 256,
        "example": "https://your-service.example.com/cancel",
        "description": "キャンセル時リダイレクトURL\\\n`link_url`上でカード登録がキャンセルされると、M's PayBridgeはこのURLにPOSTメソッドでリダイレクトします。\n"
      },
      "CardRegistrationSession_properties-expire": {
        "type": "string",
        "nullable": false,
        "example": "2022/02/31 23:59:59.999",
        "description": "リダイレクト型カード登録URL 有効期限\\\n形式： `yyyy/MM/dd HH:mm:ss.SSS`\n"
      },
      "properties-shop_service_name": {
        "type": "string",
        "nullable": true,
        "maxLength": 100,
        "example": "Your Service",
        "description": "ショップ／サービス名\\\nカード登録URL上で表示されるショップおよびサービスの名称です。\\\n\\\nデフォルトでは本番環境申請時に登録した「明細書表記」の値が設定されます。\n"
      },
      "properties-receiver_mail": {
        "type": "string",
        "nullable": true,
        "maxLength": 254,
        "example": "receiver-email@example.com",
        "description": "カード登録メール 送信先メールアドレス\\\nリダイレクト型カード登録URLをM's PayBridgeからのメール送信機能で送信する場合の送信先メールアドレスです。\n"
      },
      "properties-mail_customer_name": {
        "type": "string",
        "nullable": true,
        "maxLength": 384,
        "example": "買物 太郎",
        "description": "カード登録メール カード登録をするユーザーの名前\\\nリダイレクト型決済URLをM's PayBridgeからのメール送信機能で送信する場合のメール中で用いられるユーザーの名前です。\\\n\\\nM's PayBridgeが提供するデフォルトのメールテンプレートでは敬称がテンプレート側に含まれています。\n"
      },
      "properties-guide_mail_send_flag": {
        "type": "string",
        "enum": [
          "0",
          "1"
        ],
        "nullable": false,
        "example": "1",
        "description": "カード登録メール 送信フラグ\\\nリダイレクト型カード登録URLをM's PayBridgeからのメール送信機能で送信したかどうかを示します。\n\n- `0`：送信しなかった（デフォルト）\n- `1`：送信した\n"
      },
      "completion_mail_send_flag": {
        "type": "string",
        "enum": [
          "0",
          "1"
        ],
        "nullable": false,
        "description": "完了メール 送信フラグ\\\n決済が完了した際にカード登録をしたユーザーに完了メールを送信するかどうかを示します。\n\n- `0`：送信しない（デフォルト）\n- `1`：送信する\n"
      },
      "properties-shop_mail_template_id": {
        "type": "string",
        "nullable": true,
        "maxLength": 25,
        "example": null,
        "description": "メールテンプレートID\\\nメールテンプレートIDが設定されている場合、リダイレクト型カード登録URLの送信先メールアドレスに送信されるメールのテンプレートが変更されます。\\\n\\\nM's PayBridgeが提供するデフォルトのメールテンプレートを使用する場合は`null`を設定します。\n"
      },
      "CardRegistrationSession_properties-customer_id": {
        "allOf": [
          {
            "$ref": "#/components/schemas/id"
          }
        ],
        "description": "顧客ID\\\nカード登録URLによりカードが登録される顧客のIDです。\n"
      },
      "customer_name": {
        "type": "string",
        "nullable": true,
        "minLength": 1,
        "maxLength": 384,
        "example": "買物 太郎",
        "description": "顧客名\n"
      },
      "CardRegistrationSession.Creating.Request": {
        "type": "object",
        "properties": {
          "success_url": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-success_url"
              }
            ]
          },
          "cancel_url": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-cancel_url"
              }
            ]
          },
          "expire": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CardRegistrationSession_properties-expire"
              }
            ],
            "description": "リダイレクト型カード登録URL 有効期限\\\n形式： `yyyy/MM/dd HH:mm:ss`\n"
          },
          "shop_service_name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-shop_service_name"
              }
            ]
          },
          "receiver_mail": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-receiver_mail"
              }
            ]
          },
          "mail_customer_name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-mail_customer_name"
              }
            ]
          },
          "guide_mail_send_flag": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-guide_mail_send_flag"
              }
            ]
          },
          "completion_mail_send_flag": {
            "allOf": [
              {
                "$ref": "#/components/schemas/completion_mail_send_flag"
              }
            ]
          },
          "shop_mail_template_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-shop_mail_template_id"
              }
            ]
          },
          "customer_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CardRegistrationSession_properties-customer_id"
              }
            ]
          },
          "customer_name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/customer_name"
              }
            ]
          },
          "td_tenant_name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/td_tenant_name"
              }
            ]
          },
          "tds_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds_type"
              }
            ]
          },
          "tds2_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_type"
              }
            ]
          },
          "tds2_ch_acc_change": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_ch_acc_change"
              }
            ]
          },
          "tds2_ch_acc_date": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_ch_acc_date"
              }
            ]
          },
          "tds2_ch_acc_pw_change": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_ch_acc_pw_change"
              }
            ]
          },
          "tds2_nb_purchase_account": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_nb_purchase_account"
              }
            ]
          },
          "tds2_payment_acc_age": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_payment_acc_age"
              }
            ]
          },
          "tds2_provision_attempts_day": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_provision_attempts_day"
              }
            ]
          },
          "tds2_ship_address_usage": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_ship_address_usage"
              }
            ]
          },
          "tds2_ship_name_ind": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_ship_name_ind"
              }
            ]
          },
          "tds2_suspicious_acc_activity": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_suspicious_acc_activity"
              }
            ]
          },
          "tds2_txn_activity_day": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_txn_activity_day"
              }
            ]
          },
          "tds2_txn_activity_year": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_txn_activity_year"
              }
            ]
          },
          "tds2_three_ds_req_auth_data": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_three_ds_req_auth_data"
              }
            ]
          },
          "tds2_three_ds_req_auth_method": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_three_ds_req_auth_method"
              }
            ]
          },
          "tds2_three_ds_req_auth_timestamp": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_three_ds_req_auth_timestamp"
              }
            ]
          },
          "tds2_email": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_email"
              }
            ]
          },
          "tds2_addr_match": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_addr_match"
              }
            ]
          },
          "tds2_bill_addr_country": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_bill_addr_country"
              }
            ]
          },
          "tds2_bill_addr_state": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_bill_addr_state"
              }
            ]
          },
          "tds2_bill_addr_city": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_bill_addr_city"
              }
            ]
          },
          "tds2_bill_addr_line_1": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_bill_addr_line_1"
              }
            ]
          },
          "tds2_bill_addr_line_2": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_bill_addr_line_2"
              }
            ]
          },
          "tds2_bill_addr_line_3": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_bill_addr_line_3"
              }
            ]
          },
          "tds2_bill_addr_post_code": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_bill_addr_post_code"
              }
            ]
          },
          "tds2_ship_addr_country": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_ship_addr_country"
              }
            ]
          },
          "tds2_ship_addr_state": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_ship_addr_state"
              }
            ]
          },
          "tds2_ship_addr_city": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_ship_addr_city"
              }
            ]
          },
          "tds2_ship_addr_line_1": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_ship_addr_line_1"
              }
            ]
          },
          "tds2_ship_addr_line_2": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_ship_addr_line_2"
              }
            ]
          },
          "tds2_ship_addr_line_3": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_ship_addr_line_3"
              }
            ]
          },
          "tds2_ship_addr_post_code": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_ship_addr_post_code"
              }
            ]
          },
          "tds2_ship_ind": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_ship_ind"
              }
            ]
          },
          "tds2_delivery_email_address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_delivery_email_address"
              }
            ]
          },
          "tds2_home_phone_cc": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_home_phone_cc"
              }
            ]
          },
          "tds2_home_phone_no": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_home_phone_no"
              }
            ]
          },
          "tds2_mobile_phone_cc": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_mobile_phone_cc"
              }
            ]
          },
          "tds2_mobile_phone_no": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_mobile_phone_no"
              }
            ]
          },
          "tds2_work_phone_cc": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_work_phone_cc"
              }
            ]
          },
          "tds2_work_phone_no": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_work_phone_no"
              }
            ]
          },
          "tds2_delivery_timeframe": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_delivery_timeframe"
              }
            ]
          },
          "tds2_pre_order_date": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_pre_order_date"
              }
            ]
          },
          "tds2_pre_order_purchase_ind": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_pre_order_purchase_ind"
              }
            ]
          },
          "tds2_reorder_items_ind": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_reorder_items_ind"
              }
            ]
          },
          "tds2_recurring_expiry": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_recurring_expiry"
              }
            ]
          },
          "tds2_recurring_frequency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_recurring_frequency"
              }
            ]
          },
          "tds2_gift_card_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_gift_card_amount"
              }
            ]
          },
          "tds2_gift_card_count": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_gift_card_count"
              }
            ]
          },
          "tds2_gift_card_curr": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tds2_gift_card_curr"
              }
            ]
          }
        }
      },
      "CardRegistrationSessionStatus": {
        "type": "string",
        "enum": [
          "CREATE"
        ],
        "maxLength": 10,
        "nullable": false,
        "example": "CREATE",
        "description": "ステータス\\\nリダイレクト型カード登録URLのステータスを表します。\n\n- `CREATE`：カード登録URLが作成された状態\n"
      },
      "CardRegistrationSession": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 25,
            "nullable": false,
            "example": "lk_**********************",
            "description": "リダイレクト型カード登録URL ID\n"
          },
          "link_url": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "nullable": false,
            "example": "https://secure.test.fincode.jp/v1/links_customers_and_cards/lk_**********************",
            "description": "リダイレクト型カード登録URL\\\nカード登録を行うユーザーがこのURLにアクセスし、カード情報を登録することで登録手続きが完了します。\n"
          },
          "success_url": {
            "type": "string",
            "nullable": true,
            "maxLength": 256,
            "example": "https://your-service.example.com/success",
            "description": "成功時リダイレクトURL\\\n`link_url`上でカード登録に成功すると、M's PayBridgeはこのURLにPOSTメソッドでリダイレクトします。\n"
          },
          "cancel_url": {
            "type": "string",
            "nullable": true,
            "maxLength": 256,
            "example": "https://your-service.example.com/cancel",
            "description": "キャンセル時リダイレクトURL\\\n`link_url`上でカード登録がキャンセルされると、M's PayBridgeはこのURLにPOSTメソッドでリダイレクトします。\n"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CardRegistrationSessionStatus"
              }
            ]
          },
          "expire": {
            "type": "string",
            "nullable": false,
            "example": "2022/02/31 23:59:59.999",
            "description": "リダイレクト型カード登録URL 有効期限\\\n形式： `yyyy/MM/dd HH:mm:ss.SSS`\n"
          },
          "shop_service_name": {
            "type": "string",
            "nullable": true,
            "maxLength": 100,
            "example": "Your Service",
            "description": "ショップ／サービス名\\\nカード登録URL上で表示されるショップおよびサービスの名称です。\\\n\\\nデフォルトでは本番環境申請時に登録した「明細書表記」の値が設定されます。\n"
          },
          "guide_mail_send_flag": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "nullable": false,
            "example": "1",
            "description": "カード登録メール 送信フラグ\\\nリダイレクト型カード登録URLをM's PayBridgeからのメール送信機能で送信したかどうかを示します。\n\n- `0`：送信しなかった（デフォルト）\n- `1`：送信した\n"
          },
          "receiver_mail": {
            "type": "string",
            "nullable": true,
            "maxLength": 254,
            "example": "receiver-email@example.com",
            "description": "カード登録メール 送信先メールアドレス\\\nリダイレクト型カード登録URLをM's PayBridgeからのメール送信機能で送信する場合の送信先メールアドレスです。\n"
          },
          "mail_customer_name": {
            "type": "string",
            "nullable": true,
            "maxLength": 384,
            "example": "買物 太郎",
            "description": "カード登録メール カード登録をするユーザーの名前\\\nリダイレクト型決済URLをM's PayBridgeからのメール送信機能で送信する場合のメール中で用いられるユーザーの名前です。\\\n\\\nM's PayBridgeが提供するデフォルトのメールテンプレートでは敬称がテンプレート側に含まれています。\n"
          },
          "completion_mail_send_flag": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "nullable": false,
            "description": "完了メール 送信フラグ\\\n決済が完了した際にカード登録をしたユーザーに完了メールを送信するかどうかを示します。\n\n- `0`：送信しない（デフォルト）\n- `1`：送信する\n"
          },
          "shop_mail_template_id": {
            "type": "string",
            "nullable": true,
            "maxLength": 25,
            "example": null,
            "description": "メールテンプレートID\\\nメールテンプレートIDが設定されている場合、リダイレクト型カード登録URLの送信先メールアドレスに送信されるメールのテンプレートが変更されます。\\\n\\\nM's PayBridgeが提供するデフォルトのメールテンプレートを使用する場合は`null`を設定します。\n"
          },
          "customer_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/id"
              }
            ],
            "description": "顧客ID\\\nカード登録URLによりカードが登録される顧客のIDです。\n"
          },
          "customer_name": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 384,
            "example": "買物 太郎",
            "description": "顧客名\n"
          },
          "tds_type": {
            "nullable": true,
            "$ref": "#/components/schemas/tds_type"
          },
          "td_tenant_name": {
            "nullable": true,
            "$ref": "#/components/schemas/td_tenant_name"
          },
          "tds2_type": {
            "nullable": true,
            "$ref": "#/components/schemas/tds2_type"
          },
          "created": {
            "allOf": [
              {
                "$ref": "#/components/schemas/created"
              }
            ]
          },
          "updated": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updated"
              }
            ]
          }
        }
      },
      "CardRegistrationSession.Creating.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/CardRegistrationSession"
          }
        ]
      },
      "Plan.ListRetrieving.QueryParams": {
        "type": "object",
        "properties": {
          "total_amount_min": {
            "type": "integer",
            "format": "int64",
            "description": "合計金額（始値）\\\n利用金額と税送料の合計額（`total_amount`）を対象に範囲検索を行います。この値以上の合計金額を持つプラン情報を取得します。\n"
          },
          "total_amount_max": {
            "type": "integer",
            "format": "int64",
            "description": "合計金額（終値）\\\n利用金額と税送料の合計額（`total_amount`）を対象に範囲検索を行います。この値以下の合計金額を持つプラン情報を取得します。\n"
          },
          "interval_pattern": {
            "type": "string",
            "enum": [
              "month",
              "year"
            ],
            "description": "課金間隔\n\n- `month`: 月\n- `year`: 年\n"
          },
          "update_date_from": {
            "type": "string",
            "description": "更新日時（始値）\\\n更新日時（`updated`）を対象に範囲検索を行います。この日付以降に更新された決済情報を取得します。\\\n\\\n形式：`yyyy/MM/dd`\n"
          },
          "update_date_to": {
            "type": "string",
            "description": "更新日時（終値）\\\n更新日時（`updated`）を対象に範囲検索を行います。この日付以前に更新された決済情報を取得します。\\\n\\\n形式：`yyyy/MM/dd`\n"
          },
          "plan_name": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 25,
            "example": "Gold Plan",
            "description": "プラン名\\\n`plan_name`に対する部分一致検索を行います。\n"
          },
          "delete_flag": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 1,
            "enum": [
              "0",
              "1"
            ],
            "description": "削除済みフラグ\n"
          },
          "sort": {
            "allOf": [
              {
                "$ref": "#/components/schemas/sort"
              }
            ],
            "nullable": true,
            "description": "ソートする項目と順序を指定します。\\\n例： `?sort=updated␣desc,created␣asc`\\\n\\\nソート可能な項目\n\n- `total_amount`: 合計金額\n- `created`: 作成日時\n- `updated`: 更新日時\n"
          }
        }
      },
      "Plan": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "example": "pl_*********************",
            "minLength": 1,
            "maxLength": 25,
            "description": "プランID\n"
          },
          "plan_name": {
            "type": "string",
            "nullable": false,
            "maxLength": 200,
            "example": "Basic Plan",
            "description": "プラン名\n"
          },
          "description": {
            "type": "string",
            "nullable": true,
            "maxLength": 400,
            "example": "Basic Plan Description",
            "description": "プランの説明\n"
          },
          "shop_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Shop_properties-id"
              }
            ]
          },
          "amount": {
            "type": "integer",
            "format": "int64",
            "nullable": false,
            "example": 1000,
            "description": "利用金額\n"
          },
          "tax": {
            "type": "integer",
            "format": "int64",
            "nullable": false,
            "example": 100,
            "description": "税送料\n"
          },
          "total_amount": {
            "type": "integer",
            "format": "int64",
            "nullable": false,
            "example": 1100,
            "description": "合計金額\\\n利用金額と税送料の合計金額です。\n"
          },
          "interval_pattern": {
            "type": "string",
            "enum": [
              "month",
              "year"
            ],
            "nullable": false,
            "example": "month",
            "description": "課金間隔\n\n- `month`：月\n- `year`：年\n"
          },
          "interval_count": {
            "type": "number",
            "format": "integer",
            "nullable": false,
            "enum": [
              1,
              2,
              3,
              6
            ],
            "description": "課金間隔数\n\n- `1`：月次／年次の課金\n- `2`：2ヶ月に1回の課金\n- `3`：3ヶ月に1回の課金\n- `6`：6ヶ月に1回の課金\n"
          },
          "used_flag": {
            "type": "string",
            "nullable": false,
            "enum": [
              "0",
              "1"
            ],
            "example": "1",
            "description": "利用済みフラグ\\\nこのプランを用いたサブスクリプション（解約含む）が1つ以上存在する場合`1`を返し、存在しない場合`0`を返します。\n\n- `0`：このプランを用いたサブスクリプションはまだ存在しない\n- `1`：このプランを用いたサブスクリプションが存在する\n"
          },
          "subscription_retry_mode": {
            "type": "string",
            "nullable": false,
            "enum": [
              "enabled",
              "disabled"
            ],
            "example": "disabled",
            "description": "リトライ対象設定\\\nこのプランを利用したサブスクリプション課金が失敗した場合に、自動でリトライを行うかどうかの設定です。\n\n- `enabled`：リトライ対象\n- `disabled`：リトライ対象外\n"
          },
          "delete_flag": {
            "allOf": [
              {
                "$ref": "#/components/schemas/delete_flag"
              }
            ]
          },
          "created": {
            "nullable": false,
            "allOf": [
              {
                "$ref": "#/components/schemas/created"
              }
            ]
          },
          "updated": {
            "nullable": false,
            "allOf": [
              {
                "$ref": "#/components/schemas/updated"
              }
            ]
          }
        },
        "x-req-properties": {
          "amount": {
            "type": "string",
            "nullable": false,
            "minLength": 1,
            "maxLength": 7,
            "example": "1000",
            "description": "利用金額\\\n`tax`との合計値が決済手段ごとに定められた決済金額の範囲内に収まる必要があります。\n"
          },
          "tax": {
            "type": "string",
            "nullable": false,
            "minLength": 1,
            "maxLength": 7,
            "example": "100",
            "description": "税送料\\\n`amount`との合計値が決済手段ごとに定められた決済金額の範囲内に収まる必要があります。\n"
          },
          "interval_pattern": {
            "type": "string",
            "enum": [
              "month",
              "year"
            ],
            "nullable": false,
            "example": "month",
            "description": "課金間隔\\\n課金間隔数（`interval_count`）を指定した場合必須です。\n省略した場合、`month`が設定されます。\n\n- `month`：月\n- `year`：年\n"
          },
          "interval_count": {
            "type": "string",
            "nullable": false,
            "enum": [
              "1",
              "2",
              "3",
              "6"
            ],
            "default": "1",
            "description": "課金間隔数\\\n課金間隔（`interval_pattern`）を指定した場合必須です。\n省略した場合、`1`が設定されます。\n\n- `1`：月次／年次の課金\n- `2`：2ヶ月に1回の課金\n- `3`：3ヶ月に1回の課金\n- `6`：6ヶ月に1回の課金\n"
          },
          "subscription_retry_mode": {
            "type": "string",
            "nullable": true,
            "enum": [
              "enabled",
              "disabled"
            ],
            "default": "disabled",
            "description": "リトライ対象設定\\\n課金失敗時に自動リトライを行うかを指定します。省略した場合 `disabled` が設定されます。\n\n- `enabled`：リトライ対象\n- `disabled`：リトライ対象外\n"
          }
        }
      },
      "Plan.list": {
        "type": "object",
        "properties": {
          "list": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Plan"
            }
          }
        }
      },
      "Plan.ListRetrieving.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/_ListResponse"
          },
          {
            "$ref": "#/components/schemas/Plan.list"
          }
        ]
      },
      "Plan_properties-id": {
        "type": "string",
        "nullable": false,
        "example": "pl_*********************",
        "minLength": 1,
        "maxLength": 25,
        "description": "プランID\n"
      },
      "plan_name": {
        "type": "string",
        "nullable": false,
        "maxLength": 200,
        "example": "Basic Plan",
        "description": "プラン名\n"
      },
      "description": {
        "type": "string",
        "nullable": true,
        "maxLength": 400,
        "example": "Basic Plan Description",
        "description": "プランの説明\n"
      },
      "x-req-properties-amount": {
        "type": "string",
        "nullable": false,
        "minLength": 1,
        "maxLength": 7,
        "example": "1000",
        "description": "利用金額\\\n`tax`との合計値が決済手段ごとに定められた決済金額の範囲内に収まる必要があります。\n"
      },
      "x-req-properties-tax": {
        "type": "string",
        "nullable": false,
        "minLength": 1,
        "maxLength": 7,
        "example": "100",
        "description": "税送料\\\n`amount`との合計値が決済手段ごとに定められた決済金額の範囲内に収まる必要があります。\n"
      },
      "interval_pattern": {
        "type": "string",
        "enum": [
          "month",
          "year"
        ],
        "nullable": false,
        "example": "month",
        "description": "課金間隔\\\n課金間隔数（`interval_count`）を指定した場合必須です。\n省略した場合、`month`が設定されます。\n\n- `month`：月\n- `year`：年\n"
      },
      "interval_count": {
        "type": "string",
        "nullable": false,
        "enum": [
          "1",
          "2",
          "3",
          "6"
        ],
        "default": "1",
        "description": "課金間隔数\\\n課金間隔（`interval_pattern`）を指定した場合必須です。\n省略した場合、`1`が設定されます。\n\n- `1`：月次／年次の課金\n- `2`：2ヶ月に1回の課金\n- `3`：3ヶ月に1回の課金\n- `6`：6ヶ月に1回の課金\n"
      },
      "subscription_retry_mode": {
        "type": "string",
        "nullable": true,
        "enum": [
          "enabled",
          "disabled"
        ],
        "default": "disabled",
        "description": "リトライ対象設定\\\n課金失敗時に自動リトライを行うかを指定します。省略した場合 `disabled` が設定されます。\n\n- `enabled`：リトライ対象\n- `disabled`：リトライ対象外\n"
      },
      "Plan.Creating.Request": {
        "type": "object",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Plan_properties-id"
              }
            ]
          },
          "plan_name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/plan_name"
              }
            ]
          },
          "description": {
            "allOf": [
              {
                "$ref": "#/components/schemas/description"
              }
            ]
          },
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/x-req-properties-amount"
              }
            ]
          },
          "tax": {
            "allOf": [
              {
                "$ref": "#/components/schemas/x-req-properties-tax"
              }
            ]
          },
          "interval_pattern": {
            "allOf": [
              {
                "$ref": "#/components/schemas/interval_pattern"
              }
            ]
          },
          "interval_count": {
            "allOf": [
              {
                "$ref": "#/components/schemas/interval_count"
              }
            ]
          },
          "subscription_retry_mode": {
            "allOf": [
              {
                "$ref": "#/components/schemas/subscription_retry_mode"
              }
            ]
          }
        },
        "required": [
          "plan_name",
          "amount"
        ]
      },
      "Plan.Creating.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Plan"
          }
        ]
      },
      "PlanId_schema": {
        "type": "string",
        "example": "pl_*********************"
      },
      "Plan.Retrieving.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Plan"
          }
        ]
      },
      "Plan.Updating.Request": {
        "type": "object",
        "properties": {
          "plan_name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/plan_name"
              }
            ]
          },
          "description": {
            "allOf": [
              {
                "$ref": "#/components/schemas/description"
              }
            ]
          },
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/x-req-properties-amount"
              }
            ]
          },
          "tax": {
            "allOf": [
              {
                "$ref": "#/components/schemas/x-req-properties-tax"
              }
            ]
          },
          "interval_pattern": {
            "allOf": [
              {
                "$ref": "#/components/schemas/interval_pattern"
              }
            ]
          },
          "interval_count": {
            "allOf": [
              {
                "$ref": "#/components/schemas/interval_count"
              }
            ]
          },
          "subscription_retry_mode": {
            "allOf": [
              {
                "$ref": "#/components/schemas/subscription_retry_mode"
              }
            ]
          }
        }
      },
      "Plan.Updating.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Plan"
          }
        ]
      },
      "Plan.Deleting.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Plan"
          }
        ]
      },
      "SubscriptionPayType": {
        "type": "string",
        "enum": [
          "Card",
          "Directdebit"
        ],
        "example": "Card",
        "description": "決済種別（サブスクリプションに対応しているもの）\n\n- `Card`: カード\n- `Directdebit`: 口座振替\n"
      },
      "SubscriptionStatus": {
        "type": "string",
        "enum": [
          "ACTIVE",
          "RUNNING",
          "CANCELED",
          "INCOMPLETE"
        ],
        "minLength": 6,
        "maxLength": 10,
        "description": "ステータス\n\n- `ACTIVE`: サブスクリプションが有効<br /><span class=\"smallText\">設定した課金日に顧客に対して課金が行われます。</span>\n- `RUNNING`: 課金処理中\n- `CANCELED`: 解約済み<br /><span class=\"smallText\">顧客に対して課金は行われません。</span>\n- `INCOMPLETE`: 登録失敗<br /><span class=\"smallText\">何らかの理由により登録に失敗しました。顧客に対して課金は行われません。</span>\n"
      },
      "total_amount": {
        "type": "integer",
        "format": "int64",
        "nullable": false,
        "example": 1100,
        "description": "合計金額\\\n利用金額と税送料の合計金額です。\n"
      },
      "properties-interval_pattern": {
        "type": "string",
        "enum": [
          "month",
          "year"
        ],
        "nullable": false,
        "example": "month",
        "description": "課金間隔\n\n- `month`：月\n- `year`：年\n"
      },
      "Subscription.ListRetrieving.QueryParams": {
        "type": "object",
        "properties": {
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SubscriptionPayType"
              }
            ],
            "description": "決済種別\\\n一覧で取得する対象の決済種別を指定します。\n\n- `Card`: カード\n- `Directdebit`: 口座振替\n"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Subscription_properties-id"
              }
            ]
          },
          "customer_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/id"
              }
            ]
          },
          "plan_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Plan_properties-id"
              }
            ]
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SubscriptionStatus"
              }
            ],
            "description": "ステータス\\\n指定したステータスのサブスクリプション情報を取得します。カンマ区切りにすることで複数指定（OR検索）できます。\n\n- `ACTIVE`: サブスクリプションが有効\n- `RUNNING`: 課金処理中\n- `CANCELED`: 解約済み\n- `INCOMPLETE`: サブスクリプションの登録時点で何らかの理由により失敗\n"
          },
          "total_amount_min": {
            "allOf": [
              {
                "$ref": "#/components/schemas/total_amount"
              }
            ],
            "description": "合計金額（始値）\\\n利用金額と税送料の合計額（`total_amount`）を対象に範囲検索を行います。この値以上の合計金額を持つサブスクリプション情報を取得します。\n"
          },
          "total_amount_max": {
            "allOf": [
              {
                "$ref": "#/components/schemas/total_amount"
              }
            ],
            "description": "合計金額（終値）\\\n利用金額と税送料の合計額（`total_amount`）を対象に範囲検索を行います。この値以下の合計金額を持つサブスクリプション情報を取得します。\n"
          },
          "interval_pattern": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-interval_pattern"
              }
            ]
          },
          "start_date_from": {
            "type": "string",
            "description": "課金開始日（始値）\\\n課金開始日（`start_date`）を対象に範囲検索を行います。この日付以降に課金開始されたサブスクリプション情報を取得します。\\\n\\\n形式：`yyyy/MM/dd`\n"
          },
          "start_date_to": {
            "type": "string",
            "description": "課金開始日（終値）\\\n課金開始日（`start_date`）を対象に範囲検索を行います。この日付以前に課金開始されたサブスクリプション情報を取得します。\\\n\\\n形式：`yyyy/MM/dd`\n"
          },
          "stop_date_from": {
            "type": "string",
            "description": "課金停止日（始値）\\\n課金停止日（`stop_date`）を対象に範囲検索を行います。この日付以降に課金停止されたサブスクリプション情報を取得します。\\\n\\\n形式：`yyyy/MM/dd`\n"
          },
          "stop_date_to": {
            "type": "string",
            "description": "課金停止日（終値）\\\n課金停止日（`stop_date`）を対象に範囲検索を行います。この日付以前に課金停止されたサブスクリプション情報を取得します。\\\n\\\n形式：`yyyy/MM/dd`\n"
          },
          "next_charge_date_from": {
            "type": "string",
            "description": "次回課金日（始値）\\\n次回課金日（`next_charge_date`）を対象に範囲検索を行います。この日付以降に次回課金されるサブスクリプション情報を取得します。\\\n\\\n形式：`yyyy/MM/dd`\n"
          },
          "next_charge_date_to": {
            "type": "string",
            "description": "次回課金日（終値）\\\n次回課金日（`next_charge_date`）を対象に範囲検索を行います。この日付以前に次回課金されるサブスクリプション情報を取得します。\\\n\\\n形式：`yyyy/MM/dd`\n"
          },
          "update_date_from": {
            "type": "string",
            "description": "更新日時（始値）\\\n更新日時（`updated`）を対象に範囲検索を行います。この日付以降に更新されたサブスクリプション情報を取得します。\\\n\\\n形式：`yyyy/MM/dd`\n"
          },
          "update_date_to": {
            "type": "string",
            "description": "更新日時（終値）\\\n更新日時（`updated`）を対象に範囲検索を行います。この日付以前に更新されたサブスクリプション情報を取得します。\\\n\\\n形式：`yyyy/MM/dd`\n"
          },
          "sort": {
            "allOf": [
              {
                "$ref": "#/components/schemas/sort"
              }
            ],
            "nullable": true,
            "description": "ソートする項目と順序を指定します。\\\n例： `?sort=updated␣desc,created␣asc`\\\n\\\nソート可能な項目\n\n- `plan_id`: プランID\n- `total_amount`: 合計金額\n- `start_date`: 課金開始日\n- `stop_date`: 課金停止日\n- `next_charge_date`: 次回課金日\n- `created`: 作成日時\n- `updated`: 更新日時\n"
          }
        },
        "required": [
          "pay_type"
        ]
      },
      "properties-amount": {
        "type": "integer",
        "format": "int64",
        "nullable": false,
        "example": 1000,
        "description": "利用金額\n"
      },
      "properties-tax": {
        "type": "integer",
        "format": "int64",
        "nullable": false,
        "example": 100,
        "description": "税送料\n"
      },
      "Subscription": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "su_*********************",
            "minLength": 1,
            "maxLength": 25,
            "description": "サブスクリプションID\n"
          },
          "shop_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Shop_properties-id"
              }
            ]
          },
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SubscriptionPayType"
              }
            ]
          },
          "plan_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Plan_properties-id"
              }
            ]
          },
          "plan_name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/plan_name"
              }
            ],
            "nullable": true
          },
          "customer_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/id"
              }
            ],
            "description": "顧客ID\\\n\\\nこのサブスクリプションの請求先となる顧客のIDです。\n"
          },
          "card_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-id"
              }
            ],
            "description": "カードID\\\n\\\nこのサブスクリプションの決済に使用するカードのIDです。\n"
          },
          "payment_method_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentMethod_properties-id"
              }
            ],
            "description": "決済手段ID\\\n\\\nこのサブスクリプションの決済に使用する決済手段のIDです。\n"
          },
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-amount"
              }
            ]
          },
          "tax": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-tax"
              }
            ]
          },
          "total_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/total_amount"
              }
            ]
          },
          "initial_amount": {
            "type": "integer",
            "minLength": 1,
            "maxLength": 9999999,
            "description": "初回利用金額\\\n\\\nこの値が設定されているとき、このサブスクリプションは初回の課金のみこの金額で課金し、2回目以降はプラン情報がもつ`amount`の金額で課金します。\n"
          },
          "initial_tax": {
            "type": "integer",
            "minLength": 1,
            "maxLength": 9999999,
            "description": "初回税送料\\\n\\\nこの値が設定されているとき、このサブスクリプションは初回の課金のみこの金額で課金し、2回目以降はプラン情報がもつ`tax`の金額で課金します。\n"
          },
          "initial_total_amount": {
            "type": "integer",
            "minLength": 1,
            "maxLength": 9999999,
            "description": "初回合計金額\\\n\\\n`initial_amount`と`initial_tax`の合計金額です。\n"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SubscriptionStatus"
              }
            ]
          },
          "start_date": {
            "type": "string",
            "example": "2022/05/16 00:00:00.000",
            "description": "課金開始日\\\nサブスクリプションの開始日です。\\\n\\\n形式：`yyyy/MM/dd HH:mm:ss.SSS`\n"
          },
          "next_charge_date": {
            "type": "string",
            "example": "2022/06/16 00:00:00.000",
            "description": "次回課金日\\\nサブスクリプションの次回課金日です。\\\n\\\n形式：`yyyy/MM/dd HH:mm:ss.SSS`\n"
          },
          "stop_date": {
            "type": "string",
            "example": "2022/06/16 00:00:00.000",
            "nullable": true,
            "description": "課金停止日\\\nサブスクリプションの停止日です。\\\n\\\n形式：`yyyy/MM/dd HH:mm:ss.SSS`\n"
          },
          "end_month_flag": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "月末課金フラグ\n\n- `0`：月末課金を行わない\n- `1`：月末課金を行う\n"
          },
          "send_url": {
            "type": "string",
            "nullable": true,
            "example": null,
            "description": "※ 閉塞機能\n"
          },
          "subscription_retry_mode": {
            "type": "string",
            "nullable": true,
            "enum": [
              "enabled",
              "disabled"
            ],
            "description": "リトライ対象設定\\\nこのサブスクリプションが使用するプランのリトライ設定です。\n\n- `enabled`：リトライ対象\n- `disabled`：リトライ対象外\n"
          },
          "is_retry_scheduled": {
            "type": "boolean",
            "nullable": true,
            "description": "リトライ予定フラグ\\\n課金失敗後にリトライが予定されている場合`true`を返します。\n"
          },
          "error_code": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/error_code"
              }
            ],
            "description": "このサブスクリプションにおいて発生したエラーのうち、一番最新のエラーのエラーコードです。\\\n[各エラーコードの定義はこちらを参照](https://mpb-mizuhobank-docs.fincode.jp/develop_support/error)して確認できます。\n"
          },
          "client_field_1": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 1\n"
          },
          "client_field_2": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 2\n"
          },
          "client_field_3": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 3\n"
          },
          "remarks": {
            "allOf": [
              {
                "$ref": "#/components/schemas/remarks"
              }
            ],
            "description": "ご利用明細表示内容\n"
          },
          "settlement_route": {
            "nullable": false,
            "allOf": [
              {
                "$ref": "#/components/schemas/DirectDebitSettlementRoute"
              }
            ],
            "description": "振替サービス\\\n※`pay_type = Directdebit`のみ\n\n- `1`: 口座振替（5・6・23・27日）\n- `2`: 口座振替（1・5・20・26日）\n"
          },
          "created": {
            "allOf": [
              {
                "$ref": "#/components/schemas/created"
              }
            ]
          },
          "updated": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updated"
              }
            ]
          }
        },
        "x-req-properties": {
          "initial_amount": {
            "type": "string",
            "minLength": 1,
            "maxLength": 7,
            "description": "初回利用金額\\\n\\\nこの値を設定すると、このサブスクリプションは初回の課金のみこの金額で課金し2回目以降はプラン情報がもつ`amount`の金額で課金します。\n"
          },
          "initial_tax": {
            "type": "string",
            "minLength": 1,
            "maxLength": 7,
            "description": "初回税送料\\\n\\\nこの値を設定すると、このサブスクリプションは初回の課金のみこの金額で課金し2回目以降はプラン情報がもつ`tax`の金額で課金します。\n"
          }
        }
      },
      "Subscription.list": {
        "type": "object",
        "properties": {
          "list": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Subscription"
            }
          }
        }
      },
      "Subscription.ListRetrieving.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Subscription.list"
          }
        ]
      },
      "start_date": {
        "type": "string",
        "example": "2022/05/16 00:00:00.000",
        "description": "課金開始日\\\nサブスクリプションの開始日です。\\\n\\\n形式：`yyyy/MM/dd HH:mm:ss.SSS`\n"
      },
      "stop_date": {
        "type": "string",
        "example": "2022/06/16 00:00:00.000",
        "nullable": true,
        "description": "課金停止日\\\nサブスクリプションの停止日です。\\\n\\\n形式：`yyyy/MM/dd HH:mm:ss.SSS`\n"
      },
      "end_month_flag": {
        "type": "string",
        "enum": [
          "0",
          "1"
        ],
        "description": "月末課金フラグ\n\n- `0`：月末課金を行わない\n- `1`：月末課金を行う\n"
      },
      "initial_amount": {
        "type": "string",
        "minLength": 1,
        "maxLength": 7,
        "description": "初回利用金額\\\n\\\nこの値を設定すると、このサブスクリプションは初回の課金のみこの金額で課金し2回目以降はプラン情報がもつ`amount`の金額で課金します。\n"
      },
      "initial_tax": {
        "type": "string",
        "minLength": 1,
        "maxLength": 7,
        "description": "初回税送料\\\n\\\nこの値を設定すると、このサブスクリプションは初回の課金のみこの金額で課金し2回目以降はプラン情報がもつ`tax`の金額で課金します。\n"
      },
      "send_url": {
        "type": "string",
        "nullable": true,
        "example": null,
        "deprecated": true,
        "description": "※ 閉塞機能\n"
      },
      "Subscription.Creating.Request": {
        "type": "object",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Subscription_properties-id"
              }
            ]
          },
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SubscriptionPayType"
              }
            ]
          },
          "plan_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Plan_properties-id"
              }
            ]
          },
          "customer_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/id"
              }
            ]
          },
          "card_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-id"
              }
            ],
            "description": "カードID \\\n（`pay_type = Card`の場合のみ利用可能）\\\nこのサブスクリプションで請求先となるカードのIDです。\\\n省略した場合、顧客のデフォルトカードが使用されます。\n"
          },
          "payment_method_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentMethod_properties-id"
              }
            ],
            "description": "決済手段ID \\\n（`pay_type = Directdebit`の場合のみ利用可能）\\\nこのサブスクリプションで請求先となる決済手段のIDです。\\\n省略した場合、顧客のデフォルト決済手段が使用されます。\n"
          },
          "start_date": {
            "allOf": [
              {
                "$ref": "#/components/schemas/start_date"
              }
            ],
            "description": "課金開始日\\\nサブスクリプションの開始日です。  \n\n※`pay_type = Directdebit`の場合、\nサブスクリプションの登録が請求受付終了日の13:00を超えると課金開始日は翌月の同日となります。\\\n\\\n形式：`yyyy/MM/dd`\n"
          },
          "stop_date": {
            "allOf": [
              {
                "$ref": "#/components/schemas/stop_date"
              }
            ],
            "description": "課金停止日\\\nサブスクリプションの停止日です。\\\n省略した場合、無期限となります。\\\n\\\n形式：`yyyy/MM/dd`\n"
          },
          "end_month_flag": {
            "allOf": [
              {
                "$ref": "#/components/schemas/end_month_flag"
              }
            ]
          },
          "initial_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/initial_amount"
              }
            ]
          },
          "initial_tax": {
            "allOf": [
              {
                "$ref": "#/components/schemas/initial_tax"
              }
            ]
          },
          "remarks": {
            "allOf": [
              {
                "$ref": "#/components/schemas/remarks"
              }
            ],
            "description": "（`pay_type = Directdebit`の場合のみ利用可能）ご利用明細表示内容\n\n- フォーマット：半角英数カナ／全角英数カナ／一部の記号／半角全角スペース\n- デフォルト： `ショップ名カナの先頭9文字`\n\n※ 利用可能な記号\n\n- 半角：`.`、`(`、`)`、`–`\n- 全角：`．`、`（`、`）`、`ー`\n"
          },
          "client_field_1": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 1\n"
          },
          "client_field_2": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 2\n"
          },
          "client_field_3": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 3\n"
          },
          "send_url": {
            "deprecated": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/send_url"
              }
            ]
          }
        },
        "required": [
          "pay_type",
          "plan_id",
          "customer_id",
          "start_date"
        ]
      },
      "Subscription.Creating.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Subscription"
          }
        ]
      },
      "SubscriptionId_schema": {
        "type": "string",
        "example": "su_*********************"
      },
      "Subscription.Retrieving.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Subscription"
          }
        ]
      },
      "Subscription.Updating.Request": {
        "type": "object",
        "properties": {
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SubscriptionPayType"
              }
            ]
          },
          "plan_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Plan_properties-id"
              }
            ]
          },
          "start_date": {
            "allOf": [
              {
                "$ref": "#/components/schemas/start_date"
              }
            ]
          },
          "stop_date": {
            "allOf": [
              {
                "$ref": "#/components/schemas/stop_date"
              }
            ]
          },
          "end_month_flag": {
            "allOf": [
              {
                "$ref": "#/components/schemas/end_month_flag"
              }
            ]
          },
          "initial_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/initial_amount"
              }
            ]
          },
          "initial_tax": {
            "allOf": [
              {
                "$ref": "#/components/schemas/initial_tax"
              }
            ]
          },
          "remarks": {
            "allOf": [
              {
                "$ref": "#/components/schemas/remarks"
              }
            ],
            "description": "（`pay_type = Directdebit`の場合のみ利用可能）ご利用明細表示内容\n\n- フォーマット：半角英数カナ／全角英数カナ／一部の記号／半角全角スペース\n- デフォルト： `ショップ名カナの先頭9文字`\n\n※ 利用可能な記号\n\n- 半角：`.`、`(`、`)`、`–`\n- 全角：`．`、`（`、`）`、`ー`\n"
          },
          "client_field_1": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 1\n"
          },
          "client_field_2": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 2\n"
          },
          "client_field_3": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 3\n"
          }
        },
        "required": [
          "pay_type"
        ]
      },
      "Subscription.Updating.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Subscription"
          }
        ]
      },
      "Subscription.Unsubscribing.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Subscription"
          }
        ]
      },
      "SubscriptionResult_properties-pay_type": {
        "nullable": false,
        "allOf": [
          {
            "$ref": "#/components/schemas/SubscriptionPayType"
          }
        ]
      },
      "SubscriptionResult.ListRetrieving.QueryParams": {
        "type": "object",
        "properties": {
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SubscriptionResult_properties-pay_type"
              }
            ]
          },
          "sort": {
            "allOf": [
              {
                "$ref": "#/components/schemas/sort"
              }
            ],
            "nullable": true,
            "description": "ソートする項目と順序を指定します。\\\n例： `?sort=process_date␣asc,created␣asc`\\\n\\\nソート可能な項目\n\n- `process_date`: 処理日時\n- `created`: 作成日時\n"
          }
        },
        "required": [
          "pay_type"
        ]
      },
      "SubscriptionResultStatus": {
        "type": "string",
        "enum": [
          "CHECKED",
          "SUCCEEDED",
          "FAILED"
        ],
        "minLength": 1,
        "maxLength": 15,
        "example": "SUCCEEDED",
        "description": "ステータス\\\nサブスクリプション課金のステータス（結果）です。\n\n- `CHECKED`：有効性チェックに成功\n- `SUCCEEDED`：課金成功\n- `FAILED`：課金失敗\n"
      },
      "properties-card_no": {
        "allOf": [
          {
            "$ref": "#/components/schemas/card_no"
          }
        ]
      },
      "properties-interval_count": {
        "type": "number",
        "format": "integer",
        "nullable": false,
        "enum": [
          1,
          2,
          3,
          6
        ],
        "description": "課金間隔数\n\n- `1`：月次／年次の課金\n- `2`：2ヶ月に1回の課金\n- `3`：3ヶ月に1回の課金\n- `6`：6ヶ月に1回の課金\n"
      },
      "SubscriptionResult": {
        "type": "object",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Subscription_properties-id"
              }
            ]
          },
          "pay_type": {
            "nullable": false,
            "allOf": [
              {
                "$ref": "#/components/schemas/SubscriptionPayType"
              }
            ]
          },
          "status": {
            "nullable": false,
            "allOf": [
              {
                "$ref": "#/components/schemas/SubscriptionResultStatus"
              }
            ]
          },
          "process_date": {
            "nullable": false,
            "allOf": [
              {
                "$ref": "#/components/schemas/process_date"
              }
            ]
          },
          "plan_id": {
            "nullable": false,
            "allOf": [
              {
                "$ref": "#/components/schemas/Plan_properties-id"
              }
            ]
          },
          "amount": {
            "nullable": false,
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-amount"
              }
            ]
          },
          "tax": {
            "nullable": false,
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-tax"
              }
            ]
          },
          "total_amount": {
            "nullable": false,
            "allOf": [
              {
                "$ref": "#/components/schemas/total_amount"
              }
            ]
          },
          "customer_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/id"
              }
            ],
            "description": "顧客ID\\\nサブスクリプションで請求した顧客のIDです。\n"
          },
          "payment_method_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentMethod_properties-id"
              }
            ],
            "description": "決済手段ID\\\nサブスクリプションで使用された決済手段のIDです。\n"
          },
          "card_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-id"
              }
            ],
            "description": "カードID\\\nサブスクリプションで使用されたカードのIDです。\n"
          },
          "card_no": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-card_no"
              }
            ]
          },
          "shop_id": {
            "nullable": false,
            "allOf": [
              {
                "$ref": "#/components/schemas/Shop_properties-id"
              }
            ]
          },
          "access_id": {
            "nullable": false,
            "allOf": [
              {
                "$ref": "#/components/schemas/access_id"
              }
            ]
          },
          "send_url": {
            "type": "string",
            "nullable": true,
            "example": null,
            "deprecated": true,
            "description": "※ 閉塞機能\n"
          },
          "client_field_1": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 1\n"
          },
          "client_field_2": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 2\n"
          },
          "client_field_3": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 3\n"
          },
          "interval_pattern": {
            "nullable": false,
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-interval_pattern"
              }
            ]
          },
          "interval_count": {
            "nullable": false,
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-interval_count"
              }
            ]
          },
          "remarks": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 9,
            "example": "カ）ジーエムオーイ",
            "description": "ご利用明細表示内容\\\nデフォルト：ショップ名カナの先頭9文字\n"
          },
          "settlement_route": {
            "nullable": false,
            "allOf": [
              {
                "$ref": "#/components/schemas/DirectDebitSettlementRoute"
              }
            ],
            "description": "振替サービス\\\n※`pay_type = Directdebit`のみ\n\n- `1`: 口座振替（5・6・23・27日）\n- `2`: 口座振替（1・5・20・26日）\n"
          },
          "is_retry_scheduled": {
            "type": "boolean",
            "nullable": true,
            "description": "リトライフラグ\\\nこの課金がリトライバッチによって実行されたものである場合`true`を返します。\n"
          },
          "process_interface": {
            "type": "string",
            "nullable": true,
            "description": "処理種別\\\nこの課金ログを生成した処理の種別です。\n"
          },
          "error_code": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/error_code"
              }
            ],
            "description": "この課金において発生したエラーのうち、一番最新のエラーのエラーコードです。\\\n[各エラーコードの定義はこちらを参照](https://mpb-mizuhobank-docs.fincode.jp/develop_support/error)して確認できます。\n"
          },
          "created": {
            "allOf": [
              {
                "$ref": "#/components/schemas/created"
              }
            ]
          }
        }
      },
      "SubscriptionResult.ListRetrieving.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/_ListResponse"
          },
          {
            "type": "object",
            "properties": {
              "list": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SubscriptionResult"
                }
              }
            }
          }
        ]
      },
      "PaymentBulkStatus": {
        "type": "string",
        "enum": [
          "CHECKING",
          "CHECKED",
          "RUNNING",
          "COMPLETED",
          "ERROR"
        ],
        "description": "一括決済 ステータス\n\n- `CHECKING`: チェック中<br /><span class=\"smallText\">アップロードした一括決済リクエストデータの形式などをチェック中です。</span>\n- `CHECKED`: チェック済み<br /><span class=\"smallText\">データのチェックが完了し、決済処理の実行を待っています。</span>\n- `RUNNING`: 決済処理中<br /><span class=\"smallText\">一括決済処理を実行中です。</span>\n- `COMPLETED`: 完了<br /><span class=\"smallText\">一括決済処理が完了しました。</span>\n- `ERROR`: エラー<br /><span class=\"smallText\">チェック処理中に1件以上のエラーが発生しました。</span>\n"
      },
      "PaymentBulkPayType": {
        "type": "string",
        "enum": [
          "Card",
          "Virtualaccount"
        ],
        "example": "Card",
        "description": "決済種別（一括決済に対応しているもの）\n\n- `Card`: カード\n- `Virtualaccount`: 銀行振込（バーチャル口座）\n"
      },
      "file_name": {
        "type": "string",
        "minLength": 1,
        "maxLength": 100,
        "description": "一括決済データファイル名\n"
      },
      "PaymentBulk.ListRetrieving.QueryParams": {
        "type": "object",
        "properties": {
          "process_plan_date_from": {
            "type": "string",
            "nullable": true,
            "example": "2022/05/01",
            "description": "処理予定日の範囲指定（開始日）を指定します。\\\n処理予定日（`process_plan_date`）を対象に範囲検索を行います。この日付以降に処理予定日が設定された一括決済情報を検索します。\\\n\\\n形式： `yyyy/MM/dd`\n"
          },
          "process_plan_date_to": {
            "type": "string",
            "nullable": true,
            "example": "2022/05/31",
            "description": "処理予定日の範囲指定（終了日）を指定します。\\\n処理予定日（`process_plan_date`）を対象に範囲検索を行います。この日付以前に処理予定日が設定された一括決済情報を検索します。\\\n\\\n形式： `yyyy/MM/dd`\n"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentBulkStatus"
              }
            ],
            "description": "一括決済 ステータス。カンマ区切りにすることで複数指定（OR検索）できます。\n\n- `CHECKING`: チェック中\n- `CHECKED`: チェック済み\n- `RUNNING`: 決済処理中\n- `COMPLETED`: 完了\n- `ERROR`: エラー\n"
          },
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentBulkPayType"
              }
            ]
          },
          "file_name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/file_name"
              }
            ],
            "description": "一括決済データファイル名\\\n`file_name`に対する部分一致検索を行います。\n"
          },
          "delete_flag": {
            "allOf": [
              {
                "$ref": "#/components/schemas/delete_flag"
              }
            ]
          },
          "created_from": {
            "type": "string",
            "nullable": true,
            "example": "2022/05/01",
            "description": "作成日時の範囲指定（開始日）を指定します。\\\n作成日時（`created`）を対象に範囲検索を行います。この日付以降に登録された一括決済情報を検索します。\\\n\\\n形式： `yyyy/MM/dd`\n"
          },
          "created_to": {
            "type": "string",
            "nullable": true,
            "example": "2022/05/31",
            "description": "作成日時の範囲指定（終了日）を指定します。\\\n作成日時（`created`）を対象に範囲検索を行います。この日付以前に登録された一括決済情報を検索します。\\\n\\\n形式： `yyyy/MM/dd`\n"
          },
          "sort": {
            "allOf": [
              {
                "$ref": "#/components/schemas/sort"
              }
            ],
            "nullable": true,
            "description": "ソートする項目と順序を指定します。\\\n例： `?sort=created␣asc,process_plan_date␣desc`\\\n\\\nソート可能な項目\n\n- `process_plan_date`: 一括決済 処理予定日\n- `status`: ステータス\n- `pay_type`: 決済種別\n- `file_name`: 一括決済データファイル名\n- `delete_flag`: 削除フラグ\n- `created`: 作成日時\n"
          }
        }
      },
      "PaymentBulk": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 25,
            "maxLength": 25,
            "description": "一括決済ID\n"
          },
          "shop_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Shop_properties-id"
              }
            ]
          },
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentBulkPayType"
              }
            ]
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentBulkStatus"
              }
            ]
          },
          "process_plan_date": {
            "type": "string",
            "description": "一括決済 処理予定日\\\nこの一括決済の処理予定日です。\\\npay_type=`Card`の場合は指定必須です。\\\n形式：`yyyy/MM/dd`\n"
          },
          "file_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "description": "一括決済データファイル名\n"
          },
          "process_start_date": {
            "type": "string",
            "nullable": true,
            "description": "一括決済 処理開始日時\\\nこの一括決済の処理開始日時です。\\\n\\\n形式：`yyyy/MM/dd HH:mm:ss.SSS`\n"
          },
          "process_end_date": {
            "type": "string",
            "nullable": true,
            "description": "一括決済 処理終了日時\\\nこの一括決済の処理終了日時です。\\\n\\\n形式：`yyyy/MM/dd HH:mm:ss.SSS`\n"
          },
          "total_count": {
            "type": "integer",
            "format": "int32",
            "description": "一括決済 総件数\\\nこの一括決済に含まれる決済の件数です。\n"
          },
          "process_success_count": {
            "type": "integer",
            "format": "int32",
            "description": "一括決済 成功件数\\\nこの一括決済の処理に成功した決済の件数です。\n"
          },
          "process_failure_count": {
            "type": "integer",
            "format": "int32",
            "description": "一括決済 失敗件数\\\nこの一括決済の処理に失敗した決済の件数です。\n"
          },
          "error_code": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/error_code"
              }
            ],
            "description": "この一括決済において発生したエラーのうち、一番最新のエラーのエラーコードです。\\\n[各エラーコードの定義はこちらを参照](https://mpb-mizuhobank-docs.fincode.jp/develop_support/error)して確認できます。\n"
          },
          "delete_flag": {
            "allOf": [
              {
                "$ref": "#/components/schemas/delete_flag"
              }
            ]
          },
          "created": {
            "nullable": false,
            "allOf": [
              {
                "$ref": "#/components/schemas/created"
              }
            ]
          },
          "updated": {
            "nullable": false,
            "allOf": [
              {
                "$ref": "#/components/schemas/updated"
              }
            ]
          }
        },
        "x-req-properties": {
          "file": {
            "type": "string",
            "description": "一括決済情報を記載したJSONファイル。\\\n\\\n以下のようなファイルをアップロードします。\\\npay_type=`Card`の場合\n```json\n{\n    \"data\": [\n        {\n            \"id\": \"order_001\",\n            \"amount\": \"1000\",\n            \"tax\": \"100\",\n            \"customer_id\": \"c_**********************\",\n            \"card_id\": \"cs_**********************\",\n            \"client_field_1\": \"自由項目1\",\n            \"client_field_2\": \"自由項目2\",\n            \"client_field_3\": \"自由項目3\"\n        },\n        {\n            \"id\": \"order_002\",\n            \"amount\": \"1000\",\n            \"customer_id\": \"c_**********************\",\n            \"card_id\": \"cs_**********************\"\n        },\n        ...\n    ]\n}\n```\nパラメータ仕様は以下の通りで、各パラメータの形式は決済登録・決済実行APIに準拠します。（*は必須項目）\n\n- `data`: 決済情報のリストを格納する配列\n- `data[].id`: オーダーID\n- `data[].amount`: 利用金額*\n- `data[].tax`: 税送料\n- `data[].customer_id`: 顧客ID*\n- `data[].card_id`: カードID\n- `data[].client_field_1`: 自由項目1\n- `data[].client_field_2`: 自由項目2\n- `data[].client_field_3`: 自由項目3\n\npay_type=`Virtualaccount`の場合\n```json\n{\n    \"data\": [\n        {\n            \"id\": \"order_001\",\n            \"billing_amount\": \"1000\",\n            \"billing_tax\": \"100\",\n            \"customer_id\": \"c_**********************\",\n            \"payment_method_id\": \"pm_**********************\",\n            \"client_field_1\": \"自由項目1\",\n            \"client_field_2\": \"自由項目2\",\n            \"client_field_3\": \"自由項目3\"\n        },\n        {\n            \"id\": \"order_002\",\n            \"billing_amount\": \"1000\",\n            \"payment_term_day\":\"2\",\n            \"reference_order_id\":\"order_101\",\n            \"use_exact_deposit_amount\": true\n        },\n        ...\n    ]\n}\n```\nパラメータ仕様は以下の通りで、各パラメータの形式は決済登録・決済実行APIに準拠します。（*は必須項目）\n\n- `data`: 決済情報のリストを格納する配列\n- `data[].id`: オーダーID\n- `data[].billing_amount`: 請求金額*\n- `data[].billing_tax`: 請求税送料\n- `data[].customer_id`: 顧客ID\n- `data[].payment_method_id`: 決済手段ID\n- `data[].client_field_1`: 自由項目1\n- `data[].client_field_2`: 自由項目2\n- `data[].client_field_3`: 自由項目3\n- `data[].payment_term_day`: 支払期限日数\n- `data[].reference_order_id`: バーチャル口座 再利用 オーダーID\n- `data[].use_exact_deposit_amount`: 入金可能額設定\n"
          }
        }
      },
      "PaymentBulk.list": {
        "type": "object",
        "properties": {
          "list": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PaymentBulk"
            }
          }
        }
      },
      "PaymentBulk.ListRetrieving.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/_ListResponse"
          },
          {
            "$ref": "#/components/schemas/PaymentBulk.list"
          }
        ]
      },
      "process_plan_date": {
        "type": "string",
        "description": "一括決済 処理予定日\\\nこの一括決済の処理予定日です。\\\npay_type=`Card`の場合は指定必須です。\\\n形式：`yyyy/MM/dd`\n"
      },
      "file": {
        "type": "string",
        "description": "一括決済情報を記載したJSONファイル。\\\n\\\n以下のようなファイルをアップロードします。\\\npay_type=`Card`の場合\n```json\n{\n    \"data\": [\n        {\n            \"id\": \"order_001\",\n            \"amount\": \"1000\",\n            \"tax\": \"100\",\n            \"customer_id\": \"c_**********************\",\n            \"card_id\": \"cs_**********************\",\n            \"client_field_1\": \"自由項目1\",\n            \"client_field_2\": \"自由項目2\",\n            \"client_field_3\": \"自由項目3\"\n        },\n        {\n            \"id\": \"order_002\",\n            \"amount\": \"1000\",\n            \"customer_id\": \"c_**********************\",\n            \"card_id\": \"cs_**********************\"\n        },\n        ...\n    ]\n}\n```\nパラメータ仕様は以下の通りで、各パラメータの形式は決済登録・決済実行APIに準拠します。（*は必須項目）\n\n- `data`: 決済情報のリストを格納する配列\n- `data[].id`: オーダーID\n- `data[].amount`: 利用金額*\n- `data[].tax`: 税送料\n- `data[].customer_id`: 顧客ID*\n- `data[].card_id`: カードID\n- `data[].client_field_1`: 自由項目1\n- `data[].client_field_2`: 自由項目2\n- `data[].client_field_3`: 自由項目3\n\npay_type=`Virtualaccount`の場合\n```json\n{\n    \"data\": [\n        {\n            \"id\": \"order_001\",\n            \"billing_amount\": \"1000\",\n            \"billing_tax\": \"100\",\n            \"customer_id\": \"c_**********************\",\n            \"payment_method_id\": \"pm_**********************\",\n            \"client_field_1\": \"自由項目1\",\n            \"client_field_2\": \"自由項目2\",\n            \"client_field_3\": \"自由項目3\"\n        },\n        {\n            \"id\": \"order_002\",\n            \"billing_amount\": \"1000\",\n            \"payment_term_day\":\"2\",\n            \"reference_order_id\":\"order_101\",\n            \"use_exact_deposit_amount\": true\n        },\n        ...\n    ]\n}\n```\nパラメータ仕様は以下の通りで、各パラメータの形式は決済登録・決済実行APIに準拠します。（*は必須項目）\n\n- `data`: 決済情報のリストを格納する配列\n- `data[].id`: オーダーID\n- `data[].billing_amount`: 請求金額*\n- `data[].billing_tax`: 請求税送料\n- `data[].customer_id`: 顧客ID\n- `data[].payment_method_id`: 決済手段ID\n- `data[].client_field_1`: 自由項目1\n- `data[].client_field_2`: 自由項目2\n- `data[].client_field_3`: 自由項目3\n- `data[].payment_term_day`: 支払期限日数\n- `data[].reference_order_id`: バーチャル口座 再利用 オーダーID\n- `data[].use_exact_deposit_amount`: 入金可能額設定\n"
      },
      "PaymentBulk.Creating.Request": {
        "type": "object",
        "properties": {
          "file": {
            "allOf": [
              {
                "$ref": "#/components/schemas/file"
              }
            ]
          }
        }
      },
      "PaymentBulk.Creating.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/PaymentBulk"
          }
        ]
      },
      "PaymentBulkId_schema": {
        "type": "string",
        "example": "bp_**********************"
      },
      "PaymentBulkDetailStatus": {
        "type": "string",
        "enum": [
          "CHECKED",
          "SUCCEEDED",
          "FAILED"
        ],
        "description": "ステータス\n\n- `CHECKED`: チェック済み<br /><span class=\"smallText\">データのチェックが完了し、決済処理の実行を待っています。</span>\n- `SUCCEEDED`: 決済成功<br /><span class=\"smallText\">この決済の処理においてエラーが発生せず請求が完了しました。</span>\n- `FAILED`: 決済失敗<br /><span class=\"smallText\">この決済の処理において1件以上のエラーが発生しました。</span>\n"
      },
      "PaymentBulkDetail.ListRetrieving.QueryParams": {
        "type": "object",
        "properties": {
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentBulkPayType"
              }
            ],
            "description": "決済種別\\\n決済種別を指定します。\n\n- `Card`: カード\n- `Virtualaccount`: 銀行振込（バーチャル口座）\n"
          },
          "order_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Payment_properties-id"
              }
            ]
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentBulkDetailStatus"
              }
            ],
            "description": "ステータス\\\n決済ステータスを指定します。カンマ区切りにすることで複数指定（OR検索）できます。\n\n- `CHECKED`: チェック済み<br /><span class=\"smallText\">データのチェックが完了し、決済処理の実行を待っています。</span>\n- `SUCCEEDED`: 決済成功<br /><span class=\"smallText\">この決済の処理においてエラーが発生せず請求が完了しました。</span>\n- `FAILED`: 決済失敗<br /><span class=\"smallText\">この決済の処理において1件以上のエラーが発生しました。</span>\n"
          }
        },
        "required": [
          "pay_type"
        ]
      },
      "Payment_properties-amount": {
        "type": "integer",
        "nullable": false,
        "example": 1000,
        "description": "利用金額\n"
      },
      "Payment_properties-tax": {
        "type": "integer",
        "nullable": false,
        "example": 100,
        "description": "税送料\n"
      },
      "properties-total_amount": {
        "type": "integer",
        "format": "int64",
        "nullable": false,
        "example": 1100,
        "description": "合計金額\\\n`amount`と`tax`の合計値です。\n"
      },
      "item_code": {
        "type": "string",
        "nullable": true,
        "minLength": 7,
        "maxLength": 7,
        "description": "商品コード\n"
      },
      "transaction_id": {
        "type": "string",
        "nullable": true,
        "minLength": 28,
        "maxLength": 28,
        "example": null,
        "description": "トランザクションID\n"
      },
      "approve": {
        "type": "string",
        "nullable": true,
        "minLength": 1,
        "maxLength": 7,
        "example": null,
        "description": "承認番号\n"
      },
      "forward": {
        "type": "string",
        "nullable": true,
        "minLength": 1,
        "maxLength": 7,
        "example": "12345",
        "description": "仕向け先\n"
      },
      "PaymentBulkDetail": {
        "type": "object",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentBulk_properties-id"
              }
            ]
          },
          "shop_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Shop_properties-id"
              }
            ]
          },
          "order_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Payment_properties-id"
              }
            ]
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentBulkDetailStatus"
              }
            ],
            "description": "決済ステータス\n\n- `CHECKED`: チェック済み<br /><span class=\"smallText\">データのチェックが完了し、決済処理の実行を待っています。</span>\n- `SUCCEEDED`: 決済成功<br /><span class=\"smallText\">この決済の処理においてエラーが発生せず請求が完了しました。</span>\n- `FAILED`: 決済失敗<br /><span class=\"smallText\">この決済の処理において1件以上のエラーが発生しました。</span>\n"
          },
          "access_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/access_id"
              }
            ]
          },
          "job_code": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CardPaymentJobCode"
              }
            ],
            "description": "取引種別\n\n- `CAPTURE`：売上確定\n"
          },
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Payment_properties-amount"
              }
            ]
          },
          "tax": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Payment_properties-tax"
              }
            ]
          },
          "total_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-total_amount"
              }
            ]
          },
          "method": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CardPayMethod"
              }
            ]
          },
          "pay_times": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CardPayTimesResponse"
              }
            ]
          },
          "customer_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/id"
              }
            ]
          },
          "card_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-id"
              }
            ]
          },
          "client_field_1": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 1"
          },
          "client_field_2": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 2"
          },
          "client_field_3": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 3"
          },
          "error_code": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/error_code"
              }
            ],
            "description": "この決済において発生したエラーのうち、一番最新のエラーのエラーコードです。\\\n[各エラーコードの定義はこちらを参照](https://mpb-mizuhobank-docs.fincode.jp/develop_support/error)して確認できます。\n"
          },
          "created": {
            "allOf": [
              {
                "$ref": "#/components/schemas/created"
              }
            ]
          },
          "updated": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updated"
              }
            ]
          },
          "item_code": {
            "allOf": [
              {
                "$ref": "#/components/schemas/item_code"
              }
            ]
          },
          "transaction_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/transaction_id"
              }
            ]
          },
          "approve": {
            "allOf": [
              {
                "$ref": "#/components/schemas/approve"
              }
            ]
          },
          "forward": {
            "allOf": [
              {
                "$ref": "#/components/schemas/forward"
              }
            ]
          }
        }
      },
      "PaymentBulkDetail.list": {
        "type": "object",
        "properties": {
          "list": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PaymentBulkDetail"
            },
            "description": "一括決済詳細リスト\\\n\\\n決済1件につき1オブジェクトが格納され、オブジェクト内には決済情報が格納されます。\n"
          }
        }
      },
      "PaymentBulkErrorDetail": {
        "type": "object",
        "properties": {
          "number": {
            "type": "string",
            "description": "行数\n"
          },
          "order_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Payment_properties-id"
              }
            ]
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FincodeAPIError"
            }
          }
        }
      },
      "PaymentBulkErrorDetail.list": {
        "type": "object",
        "properties": {
          "error_detail": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PaymentBulkErrorDetail"
            },
            "description": "一括決済エラー詳細リスト\\\n\\\nエラー1件につき1オブジェクトが格納され、オブジェクト内にはエラーが発生した決済のIDとその決済で発生したエラーのリストが格納されます。\n"
          }
        }
      },
      "properties-billing_amount": {
        "type": "integer",
        "format": "int64",
        "minLength": 1,
        "maxLength": 10,
        "example": 1000,
        "description": "振込依頼金額\n"
      },
      "properties-billing_tax": {
        "type": "integer",
        "format": "int64",
        "nullable": true,
        "minLength": 1,
        "maxLength": 10,
        "example": 100,
        "description": "振込依頼金額（税送料）\n"
      },
      "billing_total_amount": {
        "type": "integer",
        "format": "int64",
        "minLength": 1,
        "maxLength": 10,
        "example": 1100,
        "description": "振込依頼金額 合計\\\n振込依頼金額と振込依頼金額（税送料）の合計金額です。\n"
      },
      "payment_method_id": {
        "allOf": [
          {
            "$ref": "#/components/schemas/PaymentMethod_properties-id"
          }
        ]
      },
      "transaction_date": {
        "type": "string",
        "nullable": false,
        "example": "2022/05/16",
        "description": "取引日\\\n\\\n形式： `yyyy/MM/dd`\n"
      },
      "value_date": {
        "type": "string",
        "nullable": true,
        "example": "2022/05/16",
        "description": "起算日\\\n\\\n銀行で入金が処理された営業日\\\n形式： `yyyy/MM/dd`\n"
      },
      "remitter_account_name": {
        "type": "string",
        "nullable": true,
        "maxLength": 48,
        "example": "ヤマダ　タロウ",
        "description": "振込依頼人 氏名\\\n\\\n振込依頼人（購入者）の氏名です。\n"
      },
      "remitter_bank_name": {
        "type": "string",
        "nullable": true,
        "maxLength": 30,
        "example": "イロハギンコウ",
        "description": "振込依頼人 銀行名\\\n\\\n振込依頼人（購入者）の銀行名です。\n"
      },
      "remitter_branch_name": {
        "type": "string",
        "nullable": true,
        "maxLength": 15,
        "example": "ホンテン",
        "description": "振込依頼人 支店名\\\n\\\n振込依頼人（購入者）の支店名です。\n"
      },
      "overpayment_flag": {
        "type": "string",
        "enum": [
          "0",
          "1"
        ],
        "description": "多重支払フラグ\\\nこの決済に対して複数回支払いが行われた場合`1`になります。\n\n- `0`: 0回、または1回の支払いが行われた\n- `1`: 2回以上、同一のバーチャル口座に対して支払いが行われた\n"
      },
      "cancel_overpayment_flag": {
        "type": "string",
        "enum": [
          "0",
          "1"
        ],
        "description": "キャンセル後支払フラグ\\\nこの決済をキャンセルした後に購入者がバーチャル口座に対して支払いを行った場合`1`になります。\n\n- `0`: キャンセル後支払は行われていない\n- `1`: キャンセル後支払が行われた\n"
      },
      "expire_overpayment_flag": {
        "type": "string",
        "enum": [
          "0",
          "1"
        ],
        "description": "期限切れ後支払フラグ\\\nこの決済の支払期限が過ぎた後に購入者がバーチャル口座に対して支払いを行った場合`1`になります。\n\n- `0`: 期限切れ後支払は行われていない\n- `1`: 期限切れ後支払が行われた\n"
      },
      "properties-payment_term_day": {
        "type": "integer",
        "format": "int64",
        "minLength": 1,
        "maxLength": 2,
        "example": 3,
        "description": "支払期限日数\\\n\\\n実行日から見て、支払期限日数後の翌日AMに期限切れになります。\\\n例）2024/4/1に、`支払期限日数=2`で決済実行した場合、2024/4/4 AMに期限切れ\n"
      },
      "payment_term": {
        "type": "string",
        "nullable": true,
        "example": "2022/05/16 23:59:59.999",
        "description": "支払期限\\\n形式： `yyyy/MM/dd HH:mm:ss.SSS`\n"
      },
      "properties-use_exact_deposit_amount": {
        "type": "boolean",
        "enum": [
          true,
          false
        ],
        "description": "入金可能額設定利用フラグ\\\nこの決済で使用されるバーチャル口座に対して入金可能額を設定するかどうかを示すフラグです。\n設定した場合、購入者は請求金額以外の金額を振り込むことができなくなります。\n\n- `true`: 入金可能額を設定する\n- `false`: 入金可能額を設定しない（デフォルト）\n"
      },
      "PaymentBulkDetail.VirtualAccount": {
        "type": "object",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentBulk_properties-id"
              }
            ]
          },
          "shop_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Shop_properties-id"
              }
            ]
          },
          "order_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Payment_properties-id"
              }
            ]
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentBulkDetailStatus"
              }
            ],
            "description": "決済ステータス\n\n- `CHECKED`: チェック済み<br /><span class=\"smallText\">データのチェックが完了し、決済処理の実行を待っています。</span>\n- `SUCCEEDED`: 決済成功<br /><span class=\"smallText\">この決済の処理においてエラーが発生せず請求が完了しました。</span>\n- `FAILED`: 決済失敗<br /><span class=\"smallText\">この決済の処理において1件以上のエラーが発生しました。</span>\n"
          },
          "access_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/access_id"
              }
            ]
          },
          "billing_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-billing_amount"
              }
            ]
          },
          "billing_tax": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-billing_tax"
              }
            ]
          },
          "billing_total_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/billing_total_amount"
              }
            ]
          },
          "customer_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/id"
              }
            ]
          },
          "payment_method_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/payment_method_id"
              }
            ]
          },
          "va_branch_code": {
            "allOf": [
              {
                "$ref": "#/components/schemas/va_branch_code"
              }
            ]
          },
          "va_branch_name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/va_branch_name"
              }
            ]
          },
          "va_account_number": {
            "allOf": [
              {
                "$ref": "#/components/schemas/va_account_number"
              }
            ]
          },
          "va_account_name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/va_account_name"
              }
            ]
          },
          "virtual_account_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/virtual_account_id"
              }
            ]
          },
          "account_assignment_date": {
            "allOf": [
              {
                "$ref": "#/components/schemas/account_assignment_date"
              }
            ]
          },
          "transaction_date": {
            "allOf": [
              {
                "$ref": "#/components/schemas/transaction_date"
              }
            ]
          },
          "value_date": {
            "allOf": [
              {
                "$ref": "#/components/schemas/value_date"
              }
            ]
          },
          "remitter_account_name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/remitter_account_name"
              }
            ]
          },
          "remitter_bank_name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/remitter_bank_name"
              }
            ]
          },
          "remitter_branch_name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/remitter_branch_name"
              }
            ]
          },
          "overpayment_flag": {
            "allOf": [
              {
                "$ref": "#/components/schemas/overpayment_flag"
              }
            ]
          },
          "cancel_overpayment_flag": {
            "allOf": [
              {
                "$ref": "#/components/schemas/cancel_overpayment_flag"
              }
            ]
          },
          "expire_overpayment_flag": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expire_overpayment_flag"
              }
            ]
          },
          "client_field_1": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 1"
          },
          "client_field_2": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 2"
          },
          "client_field_3": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 3"
          },
          "payment_term_day": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-payment_term_day"
              }
            ]
          },
          "payment_term": {
            "allOf": [
              {
                "$ref": "#/components/schemas/payment_term"
              }
            ]
          },
          "reference_order_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/reference_order_id"
              }
            ]
          },
          "use_exact_deposit_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-use_exact_deposit_amount"
              }
            ]
          }
        }
      },
      "PaymentBulkDetail.VirtualAccount.list": {
        "type": "object",
        "properties": {
          "list": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PaymentBulkDetail.VirtualAccount"
            },
            "description": "一括決済詳細リスト\\\n\\\n決済1件につき1オブジェクトが格納され、オブジェクト内には決済情報が格納されます。\n"
          }
        }
      },
      "PaymentBulkDetail.ListRetrieving.Response": {
        "oneOf": [
          {
            "allOf": [
              {
                "$ref": "#/components/schemas/_ListResponse"
              },
              {
                "properties": {
                  "error_code": {
                    "nullable": true,
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/error_code"
                      }
                    ],
                    "description": "この一括決済処理において発生したエラーのうち、一番最新のエラーのエラーコードです。\\\n[各エラーコードの定義はこちらを参照](https://mpb-mizuhobank-docs.fincode.jp/develop_support/error)して確認できます。\n"
                  }
                }
              },
              {
                "$ref": "#/components/schemas/PaymentBulkDetail.list"
              },
              {
                "$ref": "#/components/schemas/PaymentBulkErrorDetail.list"
              }
            ],
            "title": "カード決済"
          },
          {
            "allOf": [
              {
                "$ref": "#/components/schemas/_ListResponse"
              },
              {
                "properties": {
                  "error_code": {
                    "nullable": true,
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/error_code"
                      }
                    ],
                    "description": "この一括決済処理において発生したエラーのうち、一番最新のエラーのエラーコードです。\\\n[各エラーコードの定義はこちらを参照](https://mpb-mizuhobank-docs.fincode.jp/develop_support/error)して確認できます。\n"
                  }
                }
              },
              {
                "$ref": "#/components/schemas/PaymentBulkDetail.VirtualAccount.list"
              },
              {
                "$ref": "#/components/schemas/PaymentBulkErrorDetail.list"
              }
            ],
            "title": "銀行振込（バーチャル口座）"
          }
        ]
      },
      "PaymentBulk.Deleting.Response": {
        "type": "object",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentBulk_properties-id"
              }
            ],
            "description": "削除された一括決済のID"
          },
          "delete_flag": {
            "allOf": [
              {
                "$ref": "#/components/schemas/delete_flag"
              }
            ]
          }
        }
      },
      "Invoice.ListRetrieving.QueryParams": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "description": "インボイス請求書のステータス  \n   \nカンマ(,)区切りで複数指定も可能です。  \n   \n- `DRAFT`: 下書き\n- `AWAITING_CUSTOMER_PAYMENT`: 支払い待ち\n- `PAID`: 支払い完了\n- `CANCELED`: キャンセル済\n"
          },
          "keyword": {
            "type": "string",
            "minLength": 1,
            "maxLength": 150,
            "description": "キーワード  \n  \n指定した場合、請求書作成時に指定した client_field_1, client_field_2, client_field_3 のいずれかにおいて指定したワードが部分一致する請求データのみを取得します。\n"
          },
          "due_date_from": {
            "type": "string",
            "minLength": 10,
            "maxLength": 10,
            "description": "支払期日範囲（開始）  \n形式： `yyyy/MM/dd`  \n  \n指定した場合、支払期日が指定日以降である請求データのみを取得します。\n"
          },
          "due_date_to": {
            "type": "string",
            "minLength": 10,
            "maxLength": 10,
            "description": "支払期日範囲（終了）  \n形式： `yyyy/MM/dd`  \n  \n指定した場合、支払期日が指定日以前の請求データのみを取得します。\n"
          },
          "issue_date_from": {
            "type": "string",
            "minLength": 10,
            "maxLength": 10,
            "description": "発行日範囲（開始）  \n形式： `yyyy/MM/dd`  \n  \n指定した場合、発行日が指定日以降である請求データのみを取得します。\n"
          },
          "issue_date_to": {
            "type": "string",
            "minLength": 10,
            "maxLength": 10,
            "description": "発行日の範囲指定（終了）  \n形式： `yyyy/MM/dd`  \n  \n指定した場合、発行日が指定日以前の請求データのみを取得します。\n"
          },
          "total_amount_max": {
            "type": "number",
            "minLength": 1,
            "maxLength": 14,
            "description": "合計金額範囲（上限）  \n  \n指定した場合、合計金額が指定金額以下の請求データのみを取得します。\n"
          },
          "total_amount_min": {
            "type": "number",
            "minLength": 1,
            "maxLength": 14,
            "description": "合計金額範囲（下限）  \n  \n指定した場合、合計金額が指定金額以上の請求データのみを取得します。\n"
          },
          "created_from": {
            "type": "string",
            "minLength": 10,
            "maxLength": 10,
            "description": "作成日範囲（開始）  \n形式： `yyyy/MM/dd`  \n  \n指定した場合、作成日が指定日以降である請求データのみを取得します。\n"
          },
          "created_to": {
            "type": "string",
            "minLength": 10,
            "maxLength": 10,
            "description": "作成日範囲（終了）  \n形式： `yyyy/MM/dd`  \n  \n指定した場合、作成日が指定日以前の請求データのみを取得します。\n"
          },
          "customer_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 60,
            "description": "顧客ID  \n  \n指定した場合、顧客IDが完全一致する請求データのみを取得します。\n"
          },
          "customer_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 384,
            "description": "顧客名（請求先宛名）  \n  \n指定した場合、顧客名が部分一致する請求データのみを取得します。\n"
          },
          "invoice_number": {
            "type": "string",
            "minLength": 1,
            "maxLength": 30,
            "description": "請求番号  \n  \n指定した場合、請求番号が一致する請求データのみを取得します。\n"
          },
          "lines_date_from": {
            "type": "string",
            "minLength": 10,
            "maxLength": 10,
            "description": "取引日付範囲（開始）  \n形式： `yyyy/MM/dd`  \n  \n指定した場合、「取引の日付」として入力した取引日が指定日以降の請求データのみを取得します。\n"
          },
          "lines_date_to": {
            "type": "string",
            "minLength": 10,
            "maxLength": 10,
            "description": "取引日範囲（終了）  \n形式： `yyyy/MM/dd`  \n  \n指定した場合、「取引の日付」として入力した取引日が指定日以前の請求データのみを取得します。\n"
          },
          "transaction_date_from": {
            "type": "string",
            "minLength": 10,
            "maxLength": 10,
            "description": "支払完了日範囲（開始）  \n形式： `yyyy/MM/dd`  \n  \n指定した場合、支払い完了日が指定日以降の請求データのみを取得します。\n"
          },
          "transaction_date_to": {
            "type": "string",
            "minLength": 10,
            "maxLength": 10,
            "description": "支払完了日範囲（終了）  \n形式： `yyyy/MM/dd`  \n  \n指定した場合、支払い完了日が指定日以前の請求データのみを取得します。\n"
          },
          "is_uncollectible": {
            "type": "boolean",
            "description": "回収困難マーク\n\n- `true`: 回収困難マーク済の請求データのみを取得\n- `false`: 回収困難マークの無い請求データのみを取得\n- `null`: いずれも取得\n"
          },
          "is_backfill": {
            "type": "boolean",
            "description": "インボイス_領収書後付け発行フラグ\n\n- `true`: 後付けで発行された請求データのみを取得\n- `false`: 後付けで発行されていない請求データのみを取得\n- `null`: いずれも取得\n"
          }
        }
      },
      "Invoice.ListItem": {
        "type": "object",
        "description": "インボイス情報 一覧項目",
        "properties": {
          "id": {
            "type": "string",
            "description": "インボイスID\n",
            "minLength": 1,
            "maxLength": 30
          },
          "status": {
            "type": "string",
            "description": "インボイス請求書のステータス\n\n- `DRAFT`: 下書き\n- `AWAITING_CUSTOMER_PAYMENT`: 支払い待ち\n- `PAID`: 支払い完了\n- `CANCELED`: キャンセル済\n",
            "minLength": 1,
            "maxLength": 25
          },
          "bill_pdf_url": {
            "type": "string",
            "description": "[非推奨] インボイス請求書PDFダウンロードURL\\\n※ 2024年10月現在、請求書を表示するWebページのURLがレスポンスされます。このページへはインボイス 請求ページからアクセスできます。\n",
            "minLength": 1,
            "maxLength": 256
          },
          "receipt_pdf_url": {
            "type": "string",
            "description": "[非推奨] インボイス領収書PDFダウンロードURL\\\n※ 2024年10月現在、領収書を表示するWebページのURLがレスポンスされます。このページへは支払い完了後にインボイス 請求ページからアクセスできます。\n",
            "minLength": 1,
            "maxLength": 256
          },
          "invoice_number": {
            "type": "string",
            "description": "請求番号\n",
            "minLength": 1,
            "maxLength": 30
          },
          "bill_id": {
            "type": "string",
            "description": "請求ID\n",
            "minLength": 1,
            "maxLength": 30
          },
          "invoice_backfill": {
            "type": "object",
            "description": "後付け請求情報\\\n既存決済に対して後付けでインボイス（領収書）を紐付けた場合に設定されます。\n",
            "properties": {
              "order_id": {
                "type": "string",
                "nullable": true,
                "minLength": 1,
                "maxLength": 30,
                "description": "紐付け対象決済のオーダーID\n"
              },
              "access_id": {
                "type": "string",
                "nullable": true,
                "minLength": 24,
                "maxLength": 24,
                "description": "紐付け対象決済の取引ID\n"
              },
              "paid_date": {
                "type": "string",
                "nullable": true,
                "minLength": 10,
                "maxLength": 10,
                "description": "紐付け対象決済の支払日\\\n形式： `yyyy/MM/dd`\n"
              }
            }
          },
          "customer_id": {
            "type": "string",
            "description": "顧客（請求先）ID\n",
            "minLength": 1,
            "maxLength": 60
          },
          "customer_name": {
            "type": "string",
            "description": "顧客（請求先）宛名\n",
            "minLength": 1,
            "maxLength": 384
          },
          "overwrite_customer_name": {
            "type": "string",
            "description": "上書き顧客（請求先）宛名\n",
            "minLength": 1,
            "maxLength": 384
          },
          "issue_date": {
            "type": "string",
            "description": "発行年月日\n形式： `yyyy/MM/dd`\n",
            "minLength": 1,
            "maxLength": 10
          },
          "total_amount": {
            "type": "number",
            "description": "合計金額\n",
            "minimum": 0,
            "maximum": 99999999999999
          },
          "billing_total_amount": {
            "type": "number",
            "description": "請求金額合計\n",
            "minimum": 0,
            "maximum": 99999999999999
          },
          "pay_types": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "利用可能な決済種別リスト\n\n- `\"Virtualaccount\"`: 銀行振込（バーチャル口座）決済\n- `\"Card\"`: カード決済\n- `\"Directdebit\"`: 口座振替決済\n- `\"Payeeaccount\"`: 銀行振込（指定口座）決済\n"
          },
          "due_date": {
            "type": "string",
            "maxLength": 10,
            "description": "支払期日\nyyyy/MM/dd形式\n"
          },
          "client_field_1": {
            "type": "string",
            "maxLength": 100,
            "description": "加盟店自由項目1"
          },
          "client_field_2": {
            "type": "string",
            "maxLength": 100,
            "description": "加盟店自由項目2"
          },
          "client_field_3": {
            "type": "string",
            "maxLength": 100,
            "description": "加盟店自由項目3"
          },
          "is_uncollectible": {
            "type": "boolean",
            "description": "回収困難フラグ\n"
          },
          "is_paid_externally": {
            "type": "boolean",
            "description": "M's PayBridge外支払フラグ\n"
          },
          "transaction_date": {
            "type": "string",
            "description": "支払完了日 形式：`yyyy/MM/dd HH:mm:ss.SSS`"
          },
          "created": {
            "type": "string",
            "description": "作成日時 形式： `yyyy/MM/dd HH:mm:ss.SSS`"
          },
          "updated": {
            "type": "string",
            "description": "更新日時 形式： `yyyy/MM/dd HH:mm:ss.SSS`"
          }
        }
      },
      "Invoice.list": {
        "type": "object",
        "properties": {
          "list": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Invoice.ListItem"
            }
          }
        }
      },
      "Invoice.ListRetrieving.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/_ListResponse"
          },
          {
            "$ref": "#/components/schemas/Invoice.list"
          }
        ]
      },
      "tax_included_amount": {
        "type": "number",
        "description": "税込金額  \n"
      },
      "input_type": {
        "type": "string",
        "enum": [
          "amount"
        ],
        "description": "取引金額の入力方式\n- null：単価入力時(デフォルト)\n- `amount`：金額(税込)入力時\n"
      },
      "properties-payment_method_id": {
        "type": "string",
        "minLength": 1,
        "maxLength": 25,
        "description": "決済手段ID"
      },
      "properties-target_date": {
        "type": "string",
        "description": "振替指定日\n形式：`YYYY/MM/DD`\n"
      },
      "properties-remarks": {
        "type": "string",
        "description": "ご利用明細表示内容"
      },
      "directdebit_failure_mail_send_flag": {
        "type": "string",
        "enum": [
          "0",
          "1"
        ],
        "description": "口座振替失敗メール送信フラグ\n\n口座振替失敗時に請求元に対し通知メールを送るか決定するフラグ\n\n- `0`：メールを送信しない（デフォルト）\n- `1`：メールを送信する\n"
      },
      "payment_method_ids": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "利用可能な決済手段IDリスト"
      },
      "Invoice.Creating.Request": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 30,
            "description": "インボイスID  \n  \nショップ内で一意な値を設定してください。  \n未指定の場合自動生成します。\n"
          },
          "bill_mail_send_flag": {
            "type": "string",
            "description": "請求書メール送信フラグ  \n  \n- `0`: メールを送信しない（デフォルト）  \n- `1`: メールを送信する  \n"
          },
          "receipt_mail_send_flag": {
            "type": "string",
            "description": "領収書メール送信フラグ  \n  \n- `0`: メールを送信しない（デフォルト）  \n- `1`: メールを送信する  \n"
          },
          "underpayment_mail_send_flag": {
            "type": "string",
            "description": "差額請求メール送信フラグ  \n  \n- `0`: メールを送信しない（デフォルト）  \n- `1`: メールを送信する  \n"
          },
          "invoice_number": {
            "type": "string",
            "minLength": 1,
            "maxLength": 30,
            "description": "請求番号  \n指定しないまま請求書を開始した場合、自動採番されます。\n"
          },
          "customer_id": {
            "type": "string",
            "maxLength": 60,
            "description": "顧客（請求先）ID"
          },
          "customer_honorific": {
            "type": "string",
            "maxLength": 20,
            "description": "顧客（請求先）敬称"
          },
          "customer_overwrite": {
            "type": "object",
            "description": "上書き顧客（請求先）情報\\\n`customer_id`で指定した顧客の情報のうち、上書きを行う場合に指定します。\\\n顧客情報の上書きはこのインボイス情報においてのみ適用されます。\n",
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 384,
                "description": "上書き顧客（請求先）宛名"
              },
              "email": {
                "type": "string",
                "maxLength": 254,
                "description": "上書き顧客（請求先）メールアドレス"
              },
              "addr_country": {
                "type": "string",
                "maxLength": 3,
                "description": "上書き顧客（請求先）住所の国コード"
              },
              "addr_state": {
                "type": "string",
                "maxLength": 3,
                "description": "上書き顧客（請求先） 住所の都道府県コード"
              },
              "addr_city": {
                "type": "string",
                "maxLength": 50,
                "description": "上書き顧客（請求先） 住所の市区町村"
              },
              "addr_line_1": {
                "type": "string",
                "maxLength": 50,
                "description": "上書き顧客（請求先） 住所の町名・番地"
              },
              "addr_line_2": {
                "type": "string",
                "maxLength": 50,
                "description": "上書き顧客（請求先） 住所の建物名・部屋番号"
              },
              "addr_line_3": {
                "type": "string",
                "maxLength": 50,
                "description": "上書き顧客（請求先）住所 その他"
              },
              "addr_post_code": {
                "type": "string",
                "maxLength": 16,
                "description": "上書き顧客（請求先） 住所の郵便番号"
              }
            }
          },
          "issuer_overwrite": {
            "type": "object",
            "description": "発行元事業者情報  \n指定しなかった場合、本番環境申請の際にご提出いただいた情報を利用します。  \n",
            "properties": {
              "addr_country": {
                "type": "string",
                "maxLength": 3,
                "description": "発行元事業者住所の国コード"
              },
              "addr_state": {
                "type": "string",
                "maxLength": 3,
                "description": "発行元事業者住所の都道府県コード"
              },
              "addr_city": {
                "type": "string",
                "maxLength": 50,
                "description": "発行元事業者住所の市区町村"
              },
              "addr_line_1": {
                "type": "string",
                "maxLength": 100,
                "description": "発行元事業者住所の町名・番地"
              },
              "addr_line_2": {
                "type": "string",
                "maxLength": 100,
                "description": "発行元事業者住所の建物名・部屋番号"
              },
              "addr_line_3": {
                "type": "string",
                "maxLength": 50,
                "description": "発行元事業者住所 その他"
              },
              "addr_post_code": {
                "type": "string",
                "maxLength": 8,
                "description": "発行元事業者住所の郵便番号"
              },
              "email": {
                "type": "string",
                "maxLength": 254,
                "description": "発行元事業者のメールアドレス"
              },
              "phone_number": {
                "type": "string",
                "maxLength": 15,
                "description": "発行元事業者の電話番号"
              }
            }
          },
          "is_tax_included": {
            "type": "boolean",
            "description": "内税表記有無  \n  \n- `true`: 内税表記  \n- `false`: 外税表記  \n"
          },
          "due_date": {
            "type": "string",
            "maxLength": 10,
            "description": "支払期日  \nyyyy/MM/dd形式  \n"
          },
          "memo": {
            "type": "string",
            "description": "備考"
          },
          "lines": {
            "type": "array",
            "description": "取引内容",
            "items": {
              "type": "object",
              "properties": {
                "date": {
                  "type": "string",
                  "minLength": 10,
                  "maxLength": 10,
                  "description": "日付  \nyyyy/MM/dd  \n"
                },
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200,
                  "description": "品目"
                },
                "unit_price": {
                  "type": "number",
                  "minLength": 1,
                  "maxLength": 11,
                  "description": "単価  \n"
                },
                "quantity": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 2147483647,
                  "description": "数量  \n"
                },
                "tax_rate": {
                  "type": "number",
                  "minLength": 1,
                  "maxLength": 3,
                  "description": "適用税率（%）"
                },
                "tax_included_amount": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/tax_included_amount"
                    }
                  ]
                }
              }
            }
          },
          "pay_types": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "ショップで利用可能な決済種別のリスト  \n利用可能にする決済種別全てを指定してください。  \n  \n- `Virtualaccount`: 銀行振込（バーチャル口座）決済\n- `Card`: カード決済\n- `Directdebit`: 口座振替決済\n- `Payeeaccount`: 銀行振込（指定口座）決済\n"
          },
          "input_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/input_type"
              }
            ]
          },
          "card": {
            "type": "object",
            "description": "カード決済情報",
            "properties": {
              "job_code": {
                "type": "string",
                "minLength": 1,
                "maxLength": 7,
                "default": "AUTH",
                "description": "処理区分  \n以下のいずれかを指定してください。  \n\n- `AUTH`: 仮売上  \n- `CAPTURE`: 即時売上  \n"
              },
              "tds_type": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1,
                "description": "3DS利用種別  \n3DSを使用して決済を行うかを設定します。  \n- `0`: 行わない（デフォルト）  \n- `2`: 行う（3DS2.0を利用）  \n"
              },
              "tds2_type": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1,
                "description": "3DS2非対応時設定  \n仕向先カード会社が3DS2.0に未対応な場合の、後続処理を設定します。  \n- `1`: 3DS1.0での認証を実施  \n- `2`: エラーとして処理終了（デフォルト）  \n- `3`: 通常オーソリを実施\n"
              },
              "tds2_tenant_name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 25,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n3Dセキュア表示店舗名  \n"
              },
              "tds2_ch_acc_change": {
                "type": "string",
                "minLength": 8,
                "maxLength": 8,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n3DSリクエスター アカウント最終更新日  \nyyyyMMdd形式  \n"
              },
              "tds2_ch_acc_date": {
                "type": "string",
                "minLength": 8,
                "maxLength": 8,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n3DSリクエスター アカウント開設日  \nyyyyMMdd形式  \n"
              },
              "tds2_ch_acc_pw_change": {
                "type": "string",
                "minLength": 8,
                "maxLength": 8,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n3DSリクエスター アカウントパスワード変更日  \nyyyyMMdd形式  \n"
              },
              "tds2_nb_purchase_account": {
                "type": "string",
                "minLength": 1,
                "maxLength": 4,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n過去6ヶ月間の購入回数  \n"
              },
              "tds2_payment_acc_age": {
                "type": "string",
                "minLength": 8,
                "maxLength": 8,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \nカード登録日  \nyyyyMMdd形式  \n"
              },
              "tds2_provision_attempts_day": {
                "type": "string",
                "minLength": 1,
                "maxLength": 3,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n過去24時間のカード追加の試行回数  \n"
              },
              "tds2_ship_address_usage": {
                "type": "string",
                "minLength": 8,
                "maxLength": 8,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n出荷先住所の最初の使用日  \nyyyyMMdd形式  \n"
              },
              "tds2_ship_name_ind": {
                "type": "string",
                "minLength": 2,
                "maxLength": 2,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \nカード顧客名と出荷先名の一致/不一致情報  \n  \n- `01`: カード顧客名と配送先名が一致  \n- `02`: カード顧客名と配送先名が不一致  \n"
              },
              "tds2_suspicious_acc_activity": {
                "type": "string",
                "minLength": 2,
                "maxLength": 2,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \nアカウントの不審行為情報  \nカード顧客で、不審な行動（過去の不正行為を含む）を加盟店様が発見したかどうかを設定  \n  \n- `01`: 不審な行動は見られなかった  \n- `02`: 不審な行動が見られた  \n"
              },
              "tds2_txn_activity_day": {
                "type": "string",
                "minLength": 1,
                "maxLength": 3,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n過去24時間の取引回数  \n"
              },
              "tds2_txn_activity_year": {
                "type": "string",
                "minLength": 1,
                "maxLength": 3,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n前年の取引回数  \n"
              },
              "tds2_three_ds_req_auth_data": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \nログイン証跡  \nログイン証跡を設定した場合  \nログイン方法/ログイン日時の設定が必要 \n01 = 認証なし（ゲストとしてログイン）  \n02 = 加盟店様自身の認証情報  \n03 = SSO(シングルサインオン)  \n04 = イシュアーの認証情報  \n05 = サードパーティ認証  \n06 = FIDO認証  \n"
              },
              "tds2_three_ds_req_auth_timestamp": {
                "type": "string",
                "minLength": 12,
                "maxLength": 12,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \nログイン日時  \nログイン日時を設定した場合  \nログイン証跡/ログイン方法の設定が必要  \nYYYYMMDDHHMM形式  \n"
              },
              "tds2_addr_match": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n請求先住所と配送先住所の一致/不一致情報  \nカード顧客の配送先住所とカード顧客の請求先住所の一致/不一致の設定が必要  \nY=一致  \nN=不一致  \n"
              },
              "tds2_bill_addr_city": {
                "type": "string",
                "minLength": 1,
                "maxLength": 50,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \nカード顧客の請求先住所の都市  \nショップ側で顧客の住所情報を保持している場合、指定が必須となります。  \n※住所情報を保持していない場合、指定は不要です。\n"
              },
              "tds2_bill_addr_country": {
                "type": "string",
                "minLength": 1,
                "maxLength": 3,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \nカード顧客の請求先住所の国コード  \nショップ側で顧客の住所情報を保持している場合、指定が必須となります。  \n※住所情報を保持していない場合、指定は不要です。\n"
              },
              "tds2_bill_addr_line_1": {
                "type": "string",
                "minLength": 1,
                "maxLength": 50,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \nカード顧客の請求先住所の区域部分の１行目  \nショップ側で顧客の住所情報を保持している場合、指定が必須となります。  \n※住所情報を保持していない場合、指定は不要です。\n"
              },
              "tds2_bill_addr_line_2": {
                "type": "string",
                "minLength": 1,
                "maxLength": 50,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \nカード顧客の請求先住所の区域部分の２行目  \n"
              },
              "tds2_bill_addr_line_3": {
                "type": "string",
                "minLength": 1,
                "maxLength": 50,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \nカード顧客の請求先住所の区域部分の３行目  \n"
              },
              "tds2_bill_addr_post_code": {
                "type": "string",
                "minLength": 1,
                "maxLength": 16,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \nカード顧客の請求先住所の郵便番号  \nショップ側で顧客の住所情報を保持している場合、指定が必須となります。  \n※住所情報を保持していない場合、指定は不要です。\n"
              },
              "tds2_bill_addr_state": {
                "type": "string",
                "minLength": 1,
                "maxLength": 3,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \nカード顧客の請求先住所の州または都道府県コード  \nショップ側で顧客の住所情報を保持している場合、指定が必須となります。  \n※住所情報を保持していない場合、指定は不要です。\n"
              },
              "tds2_email": {
                "type": "string",
                "minLength": 1,
                "maxLength": 254,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \nカード顧客のメールアドレス  \n"
              },
              "tds2_home_phone_cc": {
                "type": "string",
                "minLength": 1,
                "maxLength": 3,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n自宅電話の国コード（+を含まない）  \n自宅電話の国コードを設定した場合  \n自宅電話番号の設定が必要  \n"
              },
              "tds2_home_phone_no": {
                "type": "string",
                "minLength": 1,
                "maxLength": 15,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n自宅電話番号  \n自宅電話番号を設定した場合  \n自宅電話の国コードの設定が必要  \nハイフン（-）なし、数字のみ  \n"
              },
              "tds2_mobile_phone_cc": {
                "type": "string",
                "minLength": 1,
                "maxLength": 3,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n携帯電話の国コード（+を含まない）  \n携帯電話の国コードを設定した場合  \n携帯電話番号の設定が必要  \n"
              },
              "tds2_mobile_phone_no": {
                "type": "string",
                "minLength": 1,
                "maxLength": 15,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n携帯電話番号  \n携帯電話番号の国コードを設定した場合  \nハイフン（-）なし、数字のみ  \n"
              },
              "tds2_work_phone_cc": {
                "type": "string",
                "minLength": 1,
                "maxLength": 3,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n職場電話の国コード（+を含まない）  \n職場電話の国コードを設定した場合  \n職場電話番号の設定が必要  \n"
              },
              "tds2_work_phone_no": {
                "type": "string",
                "minLength": 1,
                "maxLength": 15,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n職場電話番号  \n職場電話番号を設定した場合  \nハイフン（-）なし、数字のみ  \n"
              },
              "tds2_ship_addr_city": {
                "type": "string",
                "minLength": 1,
                "maxLength": 50,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n出荷先住所の都市  \n"
              },
              "tds2_ship_addr_country": {
                "type": "string",
                "minLength": 1,
                "maxLength": 3,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n出荷先住所の国コード  \n"
              },
              "tds2_ship_addr_line_1": {
                "type": "string",
                "minLength": 1,
                "maxLength": 50,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n出荷先住所の区域部分の１行目  \n"
              },
              "tds2_ship_addr_line_2": {
                "type": "string",
                "minLength": 1,
                "maxLength": 50,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n出荷先住所の区域部分の２行目  \n"
              },
              "tds2_ship_addr_line_3": {
                "type": "string",
                "minLength": 1,
                "maxLength": 50,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n出荷先住所の区域部分の３行目  \n"
              },
              "tds2_ship_addr_post_code": {
                "type": "string",
                "minLength": 1,
                "maxLength": 16,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n出荷先住所の郵便番号  \n"
              },
              "tds2_ship_addr_state": {
                "type": "string",
                "minLength": 1,
                "maxLength": 3,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n出荷先住所の州または都道府県コード  \n"
              },
              "tds2_delivery_email_address": {
                "type": "string",
                "minLength": 1,
                "maxLength": 254,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n納品先電子メールアドレス  \n"
              },
              "tds2_delivery_timeframe": {
                "type": "string",
                "minLength": 2,
                "maxLength": 2,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n商品納品時間枠  \n01 = 電子デリバリー  \n02 = 当日出荷  \n03 = 翌日出荷  \n04 = 2日目以降の出荷  \n"
              },
              "tds2_gift_card_amount": {
                "type": "string",
                "minLength": 1,
                "maxLength": 15,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \nプリペイドカードまたはギフトカードの総購入金額  \n"
              },
              "tds2_gift_card_count": {
                "type": "string",
                "minLength": 2,
                "maxLength": 2,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n購入されたプリペイドカードまたはギフトカード / コードの総数  \n0埋め2桁の数字  \n"
              },
              "tds2_gift_card_curr": {
                "type": "string",
                "minLength": 3,
                "maxLength": 3,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n通貨コード  \n※以下のコードは対象外  \n955, 956, 957, 958, 959, 960, 961, 962,  \n963, 964, 999  \n"
              },
              "tds2_pre_order_date": {
                "type": "string",
                "minLength": 8,
                "maxLength": 8,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n商品の発売予定日  \nYYYYMMDD形式  \n"
              },
              "tds2_pre_order_purchase_ind": {
                "type": "string",
                "minLength": 2,
                "maxLength": 2,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n商品の販売時期情報  \n01 = 発売済み\n02 = 先行予約商品  \n"
              },
              "tds2_reorder_items_ind": {
                "type": "string",
                "minLength": 2,
                "maxLength": 2,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n商品の注文情報  \n01 = 初回注文  \n02 = 再注文  \n"
              },
              "tds2_ship_ind": {
                "type": "string",
                "minLength": 2,
                "maxLength": 2,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n取引の出荷方法  \n01 = カード顧客の請求先住所に配送する  \n02 = 加盟店様が保持している別の、確認済み住所に配送する  \n03 = カード顧客の請求先住所と異なる住所に配送する  \n04 = 店舗へ配送 / 近所の店舗での受け取り（店舗の住所は配送先住所で指定する）  \n05 = デジタル商品（オンラインサービス、電子ギフトカードおよび償還コードを含む）  \n06 = 配送なし（旅行およびイベントのチケット）  \n07 = その他（ゲーム、配送されないデジタルサービス、電子メディアの購読料など）  \n"
              },
              "tds2_recurring_expiry": {
                "type": "string",
                "minLength": 8,
                "maxLength": 8,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n継続課金の期限  \nYYYYMMDD形式  \n"
              },
              "tds2_recurring_frequency": {
                "type": "string",
                "minLength": 1,
                "maxLength": 4,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n継続課金の課金最小間隔日数\n"
              }
            }
          },
          "virtual_account": {
            "type": "object",
            "description": "銀行振込（バーチャル口座）情報",
            "properties": {
              "reference_invoice_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 30,
                "description": "バーチャル口座 再利用 インボイスID\\\n\\\nあるインボイス情報が持つバーチャル口座を再利用する場合、そのインボイス情報のIDを参照先として指定します。\\\nバーチャル口座の再利用が可能なインボイスの条件は以下の通りです。\n\n - 参照するインボイスのステータスが `PAID` であること\n - 参照するインボイスのステータスが `PAID` に遷移してから90日以内であること\n"
              },
              "use_exact_deposit_amount": {
                "type": "boolean",
                "enum": [
                  true,
                  false
                ],
                "description": "入金可能額設定利用フラグ\\\nこの決済で使用されるバーチャル口座に対して入金可能額を設定するかどうかを示すフラグです。\n設定した場合、購入者は請求金額以外の金額を振り込むことができなくなります。\n\n- `true`: 入金可能額を設定する\n- `false`: 入金可能額を設定しない（デフォルト）\n"
              }
            }
          },
          "directdebit": {
            "type": "object",
            "description": "口座振替情報\n",
            "properties": {
              "payment_method_id": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/properties-payment_method_id"
                  }
                ]
              },
              "target_date": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/properties-target_date"
                  }
                ]
              },
              "remarks": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/properties-remarks"
                  }
                ]
              },
              "directdebit_failure_mail_send_flag": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/directdebit_failure_mail_send_flag"
                  }
                ]
              }
            }
          },
          "payee_account": {
            "type": "object",
            "description": "銀行振込（指定口座）情報\n",
            "properties": {
              "payment_method_ids": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/payment_method_ids"
                  }
                ]
              }
            }
          },
          "client_field_1": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "description": "加盟店自由項目1"
          },
          "client_field_2": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "description": "加盟店自由項目2"
          },
          "client_field_3": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "description": "加盟店自由項目3"
          },
          "invoice_backfill": {
            "type": "object",
            "description": "領収書後付け発行情報\\\n指定した場合、インボイス発行時に既存決済を紐づけます。\\\n指定する場合は3項目すべての指定が必要です。\\\n指定できる決済種別は `Card` / `Virtualaccount` / `Directdebit` のみで、複数の決済手段を同時に指定することはできません。\\\n",
            "properties": {
              "order_id": {
                "type": "string",
                "maxLength": 30,
                "description": "既存決済のオーダーID"
              },
              "access_id": {
                "type": "string",
                "minLength": 24,
                "maxLength": 24,
                "description": "既存決済の取引ID"
              },
              "paid_date": {
                "type": "string",
                "maxLength": 10,
                "description": "既存決済の支払日\\\n形式： `yyyy/MM/dd`\n"
              }
            }
          }
        }
      },
      "Invoice": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "インボイスID\n",
            "minLength": 1,
            "maxLength": 30
          },
          "status": {
            "type": "string",
            "description": "インボイス請求書のステータス  \n  \n- `DRAFT`: 下書き\n- `AWAITING_CUSTOMER_PAYMENT`: 支払い待ち\n- `PAID`: 支払い完了\n- `CANCELED`: キャンセル済\n",
            "minLength": 1,
            "maxLength": 25
          },
          "invoice_url": {
            "type": "string",
            "description": "インボイス 請求ページURL\n",
            "minLength": 1,
            "maxLength": 256
          },
          "bill_mail_send_flag": {
            "type": "string",
            "description": "請求書メール送信フラグ (0: メールを送信しない 1: メールを送信する)\n",
            "enum": [
              "0",
              "1"
            ]
          },
          "bill_pdf_url": {
            "type": "string",
            "description": "[非推奨] インボイス請求書PDFダウンロードURL\\\n※ 2024年10月現在、請求書を表示するWebページのURLがレスポンスされます。このページへはインボイス 請求ページからアクセスできます。\n",
            "minLength": 1,
            "maxLength": 256
          },
          "receipt_mail_send_flag": {
            "type": "string",
            "description": "領収書メール送信フラグ (0: メールを送信しない 1: メールを送信する)\n",
            "enum": [
              "0",
              "1"
            ]
          },
          "underpayment_mail_send_flag": {
            "type": "string",
            "description": "差額請求メール送信フラグ (0: メールを送信しない 1: メールを送信する)\n",
            "enum": [
              "0",
              "1"
            ]
          },
          "receipt_pdf_url": {
            "type": "string",
            "description": "[非推奨] インボイス領収書PDFダウンロードURL\\\n※ 2024年10月現在、領収書を表示するWebページのURLがレスポンスされます。このページへは支払い完了後にインボイス 請求ページからアクセスできます。\n",
            "minLength": 1,
            "maxLength": 256
          },
          "invoice_number": {
            "type": "string",
            "description": "請求番号\n",
            "minLength": 1,
            "maxLength": 30
          },
          "customer_id": {
            "type": "string",
            "description": "顧客（請求先）ID\n",
            "minLength": 1,
            "maxLength": 60
          },
          "customer_honorific": {
            "type": "string",
            "description": "顧客（請求先）敬称\n",
            "minLength": 1,
            "maxLength": 20
          },
          "customer": {
            "type": "object",
            "description": "顧客（請求先）情報\n",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 384,
                "description": "顧客（請求先）宛名\n"
              },
              "email": {
                "type": "string",
                "minLength": 1,
                "maxLength": 254,
                "description": "顧客（請求先）メールアドレス\n"
              },
              "addr_country": {
                "type": "string",
                "description": "顧客（請求先）住所の国コード  \n",
                "minLength": 1,
                "maxLength": 3
              },
              "addr_state": {
                "type": "string",
                "description": "顧客（請求先）住所の都道府県コード  \n",
                "minLength": 1,
                "maxLength": 3
              },
              "addr_city": {
                "type": "string",
                "description": "顧客（請求先）住所の市区町村  \n",
                "minLength": 1,
                "maxLength": 50
              },
              "addr_line_1": {
                "type": "string",
                "description": "顧客（請求先）住所の町名・番地  \n",
                "minLength": 1,
                "maxLength": 50
              },
              "addr_line_2": {
                "type": "string",
                "description": "顧客（請求先）住所の建物名・部屋番号  \n",
                "minLength": 1,
                "maxLength": 50
              },
              "addr_line_3": {
                "type": "string",
                "description": "顧客（請求先）住所 その他  \n",
                "minLength": 1,
                "maxLength": 50
              },
              "addr_post_code": {
                "type": "string",
                "description": "顧客（請求先）住所の郵便番号  \n",
                "minLength": 1,
                "maxLength": 16
              }
            }
          },
          "customer_overwrite": {
            "type": "object",
            "description": "上書き顧客（請求先）情報  \n",
            "properties": {
              "name": {
                "type": "string",
                "description": "上書き顧客（請求先）宛名  \n",
                "minLength": 1,
                "maxLength": 384
              },
              "email": {
                "type": "string",
                "description": "上書き顧客（請求先）メールアドレス  \n",
                "minLength": 1,
                "maxLength": 254
              },
              "addr_country": {
                "type": "string",
                "description": "上書き顧客（請求先）住所の国コード  \n",
                "minLength": 1,
                "maxLength": 3
              },
              "addr_state": {
                "type": "string",
                "description": "上書き顧客（請求先）住所の都道府県コード  \n",
                "minLength": 1,
                "maxLength": 3
              },
              "addr_city": {
                "type": "string",
                "description": "上書き顧客（請求先）住所の市区町村  \n",
                "minLength": 1,
                "maxLength": 50
              },
              "addr_line_1": {
                "type": "string",
                "description": "上書き顧客（請求先）住所の町名・番地  \n",
                "minLength": 1,
                "maxLength": 50
              },
              "addr_line_2": {
                "type": "string",
                "description": "上書き顧客（請求先）住所の建物名・部屋番号  \n",
                "minLength": 1,
                "maxLength": 50
              },
              "addr_line_3": {
                "type": "string",
                "description": "上書き顧客（請求先）住所 その他  \n",
                "minLength": 1,
                "maxLength": 50
              },
              "addr_post_code": {
                "type": "string",
                "description": "上書き顧客（請求先）住所の郵便番号  \n",
                "minLength": 1,
                "maxLength": 16
              }
            }
          },
          "issuer": {
            "type": "object",
            "description": "発行元事業者情報  \n",
            "properties": {
              "name": {
                "type": "string",
                "description": "発行元事業者名  \n",
                "minLength": 1,
                "maxLength": 150
              },
              "invoice_registration_number": {
                "type": "string",
                "description": "適格請求書発行事業者登録番号  \n",
                "minLength": 1,
                "maxLength": 14
              },
              "addr_state": {
                "type": "string",
                "description": "発行元事業者住所の都道府県コード  \n",
                "minLength": 1,
                "maxLength": 3
              },
              "addr_city": {
                "type": "string",
                "description": "発行元事業者住所の市区町村  \n",
                "minLength": 1,
                "maxLength": 50
              },
              "addr_line_1": {
                "type": "string",
                "description": "発行元事業者住所の町名・番地  \n",
                "minLength": 1,
                "maxLength": 100
              },
              "addr_line_2": {
                "type": "string",
                "description": "発行元事業者住所の建物名・部屋番号  \n",
                "minLength": 1,
                "maxLength": 100
              },
              "addr_line_3": {
                "type": "string",
                "description": "発行元事業者住所 その他  \n",
                "minLength": 1,
                "maxLength": 50
              },
              "addr_post_code": {
                "type": "string",
                "description": "発行元事業者住所の郵便番号  \n",
                "minLength": 1,
                "maxLength": 8
              },
              "email": {
                "type": "string",
                "description": "発行元事業者のメールアドレス  \n",
                "minLength": 3,
                "maxLength": 254
              },
              "phone_number": {
                "type": "string",
                "description": "発行元事業者の電話番号  \n",
                "minLength": 1,
                "maxLength": 15
              }
            }
          },
          "issuer_overwrite": {
            "type": "object",
            "description": "上書き発行元事業者情報  \n",
            "properties": {
              "addr_state": {
                "type": "string",
                "description": "発行元事業者住所の都道府県コード  \n",
                "minLength": 1,
                "maxLength": 3
              },
              "addr_city": {
                "type": "string",
                "description": "発行元事業者住所の市区町村  \n",
                "minLength": 1,
                "maxLength": 50
              },
              "addr_line_1": {
                "type": "string",
                "description": "発行元事業者住所の町名・番地  \n",
                "minLength": 1,
                "maxLength": 100
              },
              "addr_line_2": {
                "type": "string",
                "description": "発行元事業者住所の建物名・部屋番号  \n",
                "minLength": 1,
                "maxLength": 100
              },
              "addr_line_3": {
                "type": "string",
                "description": "発行元事業者住所 その他  \n",
                "minLength": 1,
                "maxLength": 50
              },
              "addr_post_code": {
                "type": "string",
                "description": "発行元事業者住所の郵便番号  \n",
                "minLength": 1,
                "maxLength": 8
              },
              "email": {
                "type": "string",
                "description": "発行元事業者のメールアドレス  \n",
                "minLength": 3,
                "maxLength": 254
              },
              "phone_number": {
                "type": "string",
                "description": "発行元事業者の電話番号  \n",
                "minLength": 1,
                "maxLength": 15
              }
            }
          },
          "issue_date": {
            "type": "string",
            "description": "発行年月日  \n形式： `yyyy/MM/dd`  \n",
            "minLength": 1,
            "maxLength": 10
          },
          "lines": {
            "type": "array",
            "description": "取引内容レコード  \n",
            "items": {
              "type": "object",
              "properties": {
                "date": {
                  "type": "string",
                  "description": "日付  \n形式： `yyyy/MM/dd`  \n",
                  "minLength": 1,
                  "maxLength": 10
                },
                "name": {
                  "type": "string",
                  "description": "品目  \n",
                  "minLength": 1,
                  "maxLength": 200
                },
                "unit_price": {
                  "type": "number",
                  "description": "単価  \n",
                  "minimum": 0,
                  "maximum": 99999999999
                },
                "quantity": {
                  "type": "integer",
                  "description": "数量  \n",
                  "minimum": 1,
                  "maximum": 2147483647
                },
                "tax_rate": {
                  "type": "number",
                  "description": "適用税率（%）  \n"
                },
                "tax_included_amount": {
                  "type": "number",
                  "description": "税込金額  \n"
                }
              }
            }
          },
          "total_amount": {
            "type": "number",
            "description": "合計金額  \n",
            "minimum": 0,
            "maximum": 99999999999999
          },
          "billing_total_amount": {
            "type": "number",
            "description": "請求金額合計  \n",
            "minimum": 0,
            "maximum": 99999999999999
          },
          "pay_types": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "利用可能な決済種別リスト  \n  \n- `\"Virtualaccount\"`: 銀行振込（バーチャル口座）決済\n- `\"Card\"`: カード決済\n- `\"Directdebit\"`: 口座振替決済\n- `\"Payeeaccount\"`: 銀行振込（指定口座）決済\n"
          },
          "input_type": {
            "type": "string",
            "enum": [
              "amount"
            ],
            "description": "取引金額の入力方式\n- null：単価入力時(デフォルト)\n- `amount`：金額(税込)入力時\n"
          },
          "card": {
            "type": "object",
            "description": "カード決済情報\n",
            "properties": {
              "job_code": {
                "type": "string",
                "description": "処理区分  \n",
                "minLength": 1,
                "maxLength": 7
              },
              "tds_type": {
                "type": "string",
                "description": "3DS利用種別  \n",
                "minLength": 1,
                "maxLength": 1
              },
              "tds2_type": {
                "type": "string",
                "description": "3DS2非対応時設定  \n",
                "minLength": 1,
                "maxLength": 1
              },
              "td_tenant_name": {
                "type": "string",
                "description": "3Dセキュア表示店舗名  \n",
                "minLength": 1,
                "maxLength": 25
              },
              "tds2_ch_acc_change": {
                "type": "string",
                "description": "3DSリクエスター アカウント最終更新日  \nyyyyMMdd形式  \n",
                "minLength": 8,
                "maxLength": 8
              },
              "tds2_ch_acc_date": {
                "type": "string",
                "description": "3DSリクエスター アカウント開設日  \nyyyyMMdd形式  \n",
                "minLength": 8,
                "maxLength": 8
              },
              "tds2_ch_acc_pw_change": {
                "type": "string",
                "description": "3DSリクエスター アカウントパスワード変更日  \nyyyyMMdd形式  \n",
                "minLength": 8,
                "maxLength": 8
              },
              "tds2_nb_purchase_account": {
                "type": "string",
                "description": "過去6ヶ月間の購入回数  \n",
                "minLength": 1,
                "maxLength": 4
              },
              "tds2_payment_acc_age": {
                "type": "string",
                "description": "カード登録日  \nyyyyMMdd形式  \n",
                "minLength": 8,
                "maxLength": 8
              },
              "tds2_provision_attempts_day": {
                "type": "string",
                "description": "過去24時間のカード追加の試行回数  \n",
                "minLength": 1,
                "maxLength": 3
              },
              "tds2_ship_address_usage": {
                "type": "string",
                "description": "出荷先住所の最初の使用日  \nyyyyMMdd形式  \n",
                "minLength": 8,
                "maxLength": 8
              },
              "tds2_ship_name_ind": {
                "type": "string",
                "description": "カード顧客名と出荷先名の一致/不一致情報  \n01 = カード顧客名と配送先名が一致  \n02 = カード顧客名と配送先名が不一致  \n",
                "minLength": 2,
                "maxLength": 2
              },
              "tds2_suspicious_acc_activity": {
                "type": "string",
                "description": "アカウントの不審行為情報  \n01 = 不審な行動は見られなかった  \n02 = 不審な行動が見られた  \n",
                "minLength": 2,
                "maxLength": 2
              },
              "tds2_txn_activity_day": {
                "type": "string",
                "description": "過去24時間の取引回数  \n",
                "minLength": 1,
                "maxLength": 3
              },
              "tds2_txn_activity_year": {
                "type": "string",
                "description": "前年の取引回数  \n",
                "minLength": 1,
                "maxLength": 3
              },
              "tds2_three_ds_req_auth_data": {
                "type": "string",
                "description": "ログイン証跡  \nログイン方法/ログイン日時の設定が必要  \n",
                "minLength": 1,
                "maxLength": 2048
              },
              "tds2_three_ds_req_auth_method": {
                "type": "string",
                "description": "ログイン方法  \n01 = 認証なし（ゲストとしてログイン）  \n02 = 加盟店様自身の認証情報  \n03 = SSO(シングルサインオン)  \n04 = イシュアーの認証情報  \n05 = サードパーティ認証  \n06 = FIDO認証  \n",
                "minLength": 2,
                "maxLength": 2
              },
              "tds2_three_ds_req_auth_timestamp": {
                "type": "string",
                "description": "ログイン日時  \nYYYYMMDDHHMM形式  \n",
                "minLength": 12,
                "maxLength": 12
              },
              "tds2_addr_match": {
                "type": "string",
                "description": "請求先住所と配送先住所の一致/不一致情報  \n  \n- `Y`: 一致  \n- `N`: 不一致  \n",
                "minLength": 1,
                "maxLength": 1
              },
              "tds2_bill_addr_city": {
                "type": "string",
                "description": "カード顧客の請求先住所の都市  \n",
                "minLength": 1,
                "maxLength": 50
              },
              "tds2_bill_addr_country": {
                "type": "string",
                "description": "カード顧客の請求先住所の国コード  \n",
                "minLength": 1,
                "maxLength": 3
              },
              "tds2_bill_addr_line_1": {
                "type": "string",
                "description": "カード顧客の請求先住所の区域部分の１行目  \n",
                "minLength": 1,
                "maxLength": 50
              },
              "tds2_bill_addr_line_2": {
                "type": "string",
                "description": "カード顧客の請求先住所の区域部分の２行目  \n",
                "minLength": 1,
                "maxLength": 50
              },
              "tds2_bill_addr_line_3": {
                "type": "string",
                "description": "カード顧客の請求先住所の区域部分の３行目  \n",
                "minLength": 1,
                "maxLength": 50
              },
              "tds2_bill_addr_post_code": {
                "type": "string",
                "description": "カード顧客の請求先住所の郵便番号  \n",
                "minLength": 1,
                "maxLength": 16
              },
              "tds2_bill_addr_state": {
                "type": "string",
                "description": "カード顧客の請求先住所の州または都道府県コード  \n",
                "minLength": 1,
                "maxLength": 3
              },
              "tds2_email": {
                "type": "string",
                "description": "カード顧客のメールアドレス  \n",
                "minLength": 1,
                "maxLength": 254
              },
              "tds2_home_phone_cc": {
                "type": "string",
                "description": "自宅電話の国コード（+を含まない）  \n",
                "minLength": 1,
                "maxLength": 3
              },
              "tds2_home_phone_no": {
                "type": "string",
                "description": "自宅電話番号  \nハイフン（-）なし、数字のみ  \n",
                "minLength": 1,
                "maxLength": 15
              },
              "tds2_mobile_phone_cc": {
                "type": "string",
                "description": "携帯電話の国コード（+を含まない）  \n",
                "minLength": 1,
                "maxLength": 3
              },
              "tds2_mobile_phone_no": {
                "type": "string",
                "description": "携帯電話番号  \nハイフン（-）なし、数字のみ  \n",
                "minLength": 1,
                "maxLength": 15
              },
              "tds2_work_phone_cc": {
                "type": "string",
                "description": "職場電話の国コード（+を含まない）  \n",
                "minLength": 1,
                "maxLength": 3
              },
              "tds2_work_phone_no": {
                "type": "string",
                "description": "職場電話番号  \nハイフン（-）なし、数字のみ  \n",
                "minLength": 1,
                "maxLength": 15
              },
              "tds2_ship_addr_city": {
                "type": "string",
                "description": "出荷先住所の都市  \n",
                "minLength": 1,
                "maxLength": 50
              },
              "tds2_ship_addr_country": {
                "type": "string",
                "description": "出荷先住所の国コード  \n",
                "minLength": 1,
                "maxLength": 3
              },
              "tds2_ship_addr_line_1": {
                "type": "string",
                "description": "出荷先住所の区域部分の１行目  \n",
                "minLength": 1,
                "maxLength": 50
              },
              "tds2_ship_addr_line_2": {
                "type": "string",
                "description": "出荷先住所の区域部分の２行目  \n",
                "minLength": 1,
                "maxLength": 50
              },
              "tds2_ship_addr_line_3": {
                "type": "string",
                "description": "出荷先住所の区域部分の３行目  \n",
                "minLength": 1,
                "maxLength": 50
              },
              "tds2_ship_addr_post_code": {
                "type": "string",
                "description": "出荷先住所の郵便番号  \n",
                "minLength": 1,
                "maxLength": 16
              },
              "tds2_ship_addr_state": {
                "type": "string",
                "description": "出荷先住所の州または都道府県コード  \n",
                "minLength": 1,
                "maxLength": 3
              },
              "tds2_delivery_email_address": {
                "type": "string",
                "description": "出荷先住所のメールアドレス  \n",
                "minLength": 1,
                "maxLength": 254
              },
              "tds2_delivery_timeframe": {
                "type": "string",
                "description": "商品納品時間枠  \n  \n- `01`: 電子デリバリー\n- `02`: 当日出荷\n- `03`: 翌日出荷\n- `04`: 2日目以降の出荷\n",
                "minLength": 2,
                "maxLength": 2
              },
              "tds2_gift_card_amount": {
                "type": "string",
                "description": "プリペイドカードまたはギフトカードの総購入金額  \n",
                "minLength": 1,
                "maxLength": 15
              },
              "tds2_gift_card_count": {
                "type": "string",
                "description": "購入されたプリペイドカードまたはギフトカード / コードの総数  \n",
                "minLength": 2,
                "maxLength": 2
              },
              "tds2_gift_card_curr": {
                "type": "string",
                "description": "通貨コード  \n",
                "minLength": 3,
                "maxLength": 3
              },
              "tds2_pre_order_date": {
                "type": "string",
                "description": "商品の発売予定日  \nYYYYMMDD形式  \n",
                "minLength": 8,
                "maxLength": 8
              },
              "tds2_pre_order_purchase_ind": {
                "type": "string",
                "description": "商品の販売時期情報  \n  \n- `01`: 発売済み商品\n- `02`: 先行予約商品\n",
                "minLength": 2,
                "maxLength": 2
              },
              "tds2_reorder_items_ind": {
                "type": "string",
                "description": "商品の注文情報  \n  \n- `01`: 初回注文  \n- `02`: 再注文\n",
                "minLength": 2,
                "maxLength": 2
              },
              "tds2_ship_ind": {
                "type": "string",
                "description": "取引の出荷方法  \n  \n- `01`: カード顧客の請求先住所に配送する  \n- `02`: 加盟店様が保持している別の、確認済み住所に配送する  \n- `03`: カード顧客の請求先住所と異なる住所に配送する  \n- `04`: 店舗へ配送 / 近所の店舗での受け取り（店舗の住所は配送先住所で指定する）  \n- `05`: デジタル商品（オンラインサービス、電子ギフトカードおよび償還コードを含む）  \n- `06`: 配送なし（旅行およびイベントのチケット）  \n- `07`: その他（ゲーム、配送されないデジタルサービス、電子メディアの購読料など）  \n",
                "minLength": 2,
                "maxLength": 2
              },
              "tds2_recurring_expiry": {
                "type": "string",
                "description": "継続課金の期限  \nYYYYMMDD形式  \n",
                "minLength": 8,
                "maxLength": 8
              },
              "tds2_recurring_frequency": {
                "type": "string",
                "description": "継続課金の課金最小間隔日数  \n",
                "minLength": 1,
                "maxLength": 4
              }
            }
          },
          "virtual_account": {
            "type": "object",
            "description": "銀行振込（バーチャル口座）情報  \n",
            "properties": {
              "reference_invoice_id": {
                "type": "string",
                "description": "バーチャル口座 再利用 インボイスID  \n",
                "minLength": 0,
                "maxLength": 30
              },
              "use_exact_deposit_amount": {
                "type": "boolean",
                "enum": [
                  true,
                  false
                ],
                "description": "入金可能額設定利用フラグ\\\nこの決済で使用されるバーチャル口座に対して入金可能額を設定するかどうかを示すフラグです。\n設定した場合、購入者は請求金額以外の金額を振り込むことができなくなります。\n\n- `true`: 入金可能額を設定する\n- `false`: 入金可能額を設定しない（デフォルト）\n"
              }
            }
          },
          "embedded_virtual_account": {
            "type": "object",
            "description": "このインボイス情報に対して発行されたバーチャル口座情報\\\nこのバーチャル口座に対して振込を行うことでインボイスによる請求に対して支払いできます。\n",
            "properties": {
              "virtual_account_id": {
                "type": "string",
                "description": "バーチャル口座ID  \n",
                "minLength": 1,
                "maxLength": 25
              },
              "branch_name": {
                "type": "string",
                "description": "支店名  \n",
                "minLength": 1,
                "maxLength": 15
              },
              "branch_code": {
                "type": "string",
                "description": "支店コード  \n",
                "minLength": 1,
                "maxLength": 3
              },
              "account_number": {
                "type": "string",
                "description": "口座番号  \n",
                "minLength": 7,
                "maxLength": 7
              },
              "account_name": {
                "type": "string",
                "description": "口座名義  \n",
                "minLength": 1,
                "maxLength": 40
              }
            }
          },
          "is_tax_included": {
            "type": "boolean",
            "description": "内税表記有無  \n  \n- `true`: 内税表記  \n- `false`: 外税表記  \n"
          },
          "due_date": {
            "type": "string",
            "maxLength": 10,
            "description": "支払期日  \nyyyy/MM/dd形式\n"
          },
          "memo": {
            "type": "string",
            "description": "備考"
          },
          "client_field_1": {
            "type": "string",
            "maxLength": 100,
            "description": "加盟店自由項目1"
          },
          "client_field_2": {
            "type": "string",
            "maxLength": 100,
            "description": "加盟店自由項目2"
          },
          "client_field_3": {
            "type": "string",
            "maxLength": 100,
            "description": "加盟店自由項目3"
          },
          "is_uncollectible": {
            "type": "boolean",
            "description": "回収困難フラグ  \n"
          },
          "is_paid_externally": {
            "type": "boolean",
            "description": "M's PayBridge外支払フラグ  \n"
          },
          "transaction_date": {
            "type": "string",
            "description": "支払完了日"
          },
          "bill_id": {
            "type": "string",
            "description": "請求ID\n",
            "minLength": 1,
            "maxLength": 30
          },
          "directdebit": {
            "type": "object",
            "description": "口座振替情報\n",
            "properties": {
              "payment_method_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 25,
                "description": "決済手段ID"
              },
              "target_date": {
                "type": "string",
                "description": "振替指定日\n形式：`YYYY/MM/DD`\n"
              },
              "remarks": {
                "type": "string",
                "description": "ご利用明細表示内容"
              },
              "settlement_route": {
                "type": "string",
                "description": "振替サービス\n- `1`: 口座振替（5・6・23・27日）\n- `2`: 口座振替（1・5・20・26日）\n"
              },
              "directdebit_failure_mail_send_flag": {
                "type": "string",
                "enum": [
                  "0",
                  "1"
                ],
                "description": "口座振替失敗メール送信フラグ\n\n口座振替失敗時に請求元に対し通知メールを送るか決定するフラグ\n\n- `0`：メールを送信しない（デフォルト）\n- `1`：メールを送信する\n"
              }
            }
          },
          "payee_account": {
            "type": "object",
            "description": "銀行振込（指定口座）情報\n",
            "properties": {
              "payment_method_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "利用可能な決済手段IDリスト"
              },
              "used_payment_method_id": {
                "type": "string",
                "description": "使用した決済手段ID"
              }
            }
          },
          "embedded_directdebit": {
            "type": "object",
            "description": "このインボイス情報に対する口座振替の口座情報 この口座から引き落とし完了することでインボイスによる請求に対して支払いできます。\n",
            "properties": {
              "bank_name": {
                "type": "string",
                "description": "金融機関名"
              },
              "bank_code": {
                "type": "string",
                "description": "金融機関コード"
              },
              "branch_name": {
                "type": "string",
                "description": "支店名"
              },
              "branch_code": {
                "type": "string",
                "description": "支店コード"
              },
              "account_type": {
                "type": "string",
                "description": "預金種別"
              },
              "account_number": {
                "type": "string",
                "description": "口座番号"
              },
              "account_name_kana": {
                "type": "string",
                "description": "口座名義人名（カナ）"
              }
            }
          },
          "embedded_payee_accounts": {
            "type": "array",
            "description": "このインボイス情報に対する銀行振込（指定口座）口座情報 この口座情報に対して振込を行うことでインボイスによる請求に対して支払いできます。\n",
            "items": {
              "type": "object",
              "properties": {
                "payment_method_id": {
                  "type": "string",
                  "description": "決済手段ID"
                },
                "bank_name": {
                  "type": "string",
                  "description": "金融機関名"
                },
                "bank_code": {
                  "type": "string",
                  "description": "金融機関コード"
                },
                "branch_name": {
                  "type": "string",
                  "description": "支店名"
                },
                "branch_code": {
                  "type": "string",
                  "description": "支店コード"
                },
                "account_type": {
                  "type": "string",
                  "description": "預金種別"
                },
                "account_number": {
                  "type": "string",
                  "description": "口座番号"
                },
                "account_name_kana": {
                  "type": "string",
                  "description": "口座名義人名（カナ）"
                },
                "display_number": {
                  "type": "string",
                  "description": "表示順序"
                }
              }
            }
          },
          "billing_file_import_entry_id": {
            "type": "string",
            "description": "請求インポートファイル読み込みエントリーID"
          },
          "trade_client_field_1": {
            "type": "string",
            "nullable": true,
            "description": "決済情報自由項目 1"
          },
          "trade_client_field_2": {
            "type": "string",
            "nullable": true,
            "description": "決済情報自由項目 2"
          },
          "trade_client_field_3": {
            "type": "string",
            "nullable": true,
            "description": "決済情報自由項目 3"
          },
          "invoice_backfill": {
            "type": "object",
            "description": "後付け請求情報\\\n既存決済に対して後付けでインボイス（領収書）を紐付けた場合に設定されます。\n",
            "properties": {
              "order_id": {
                "type": "string",
                "nullable": true,
                "minLength": 1,
                "maxLength": 30,
                "description": "紐付け対象決済のオーダーID\n"
              },
              "access_id": {
                "type": "string",
                "nullable": true,
                "minLength": 24,
                "maxLength": 24,
                "description": "紐付け対象決済の取引ID\n"
              },
              "paid_date": {
                "type": "string",
                "nullable": true,
                "minLength": 10,
                "maxLength": 10,
                "description": "紐付け対象決済の支払日\\\n形式： `yyyy/MM/dd`\n"
              }
            }
          },
          "created": {
            "type": "string",
            "description": "作成日時"
          },
          "updated": {
            "type": "string",
            "description": "更新日時"
          }
        }
      },
      "Invoice.Creating.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Invoice"
          }
        ]
      },
      "Invoice.CompanyStamp": {
        "type": "object",
        "properties": {
          "company_stamp_data": {
            "type": "string",
            "description": "社印データをBase64エンコードした文字列"
          }
        }
      },
      "InvoiceDetail.Retrieving.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Invoice"
          },
          {
            "$ref": "#/components/schemas/Invoice.CompanyStamp"
          }
        ]
      },
      "InvoiceDetail.Updating.Request": {
        "type": "object",
        "properties": {
          "is_uncollectible": {
            "type": "boolean",
            "description": "回収困難フラグ"
          },
          "bill_mail_send_flag": {
            "type": "string",
            "description": "請求書メール送信フラグ  \n  \n- `0`: メールを送信しない（デフォルト）  \n- `1`: メールを送信する\n"
          },
          "receipt_mail_send_flag": {
            "type": "string",
            "description": "領収書メール送信フラグ  \n  \n- `0`: メールを送信しない（デフォルト）  \n- `1`: メールを送信する\n"
          },
          "underpayment_mail_send_flag": {
            "type": "string",
            "description": "差額請求メール送信フラグ  \n  \n- `0`: メールを送信しない（デフォルト）  \n- `1`: メールを送信する\n"
          },
          "invoice_number": {
            "type": "string",
            "minLength": 1,
            "maxLength": 30,
            "description": "請求番号  \n指定しないまま請求書を開始した場合、自動採番されます。\n"
          },
          "customer_id": {
            "type": "string",
            "maxLength": 60,
            "description": "顧客（請求先）ID"
          },
          "customer_honorific": {
            "type": "string",
            "maxLength": 20,
            "description": "顧客（請求先）敬称"
          },
          "customer_overwrite": {
            "type": "object",
            "description": "上書き顧客（請求先）情報\\\n`customer_id`で指定した顧客の情報のうち、上書きを行う場合に指定します。\\\n顧客情報の上書きはこのインボイス情報においてのみ適用されます。\n",
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 384,
                "description": "上書き顧客（請求先）宛名"
              },
              "email": {
                "type": "string",
                "maxLength": 254,
                "description": "上書き顧客（請求先）メールアドレス"
              },
              "addr_country": {
                "type": "string",
                "maxLength": 3,
                "description": "上書き顧客（請求先）住所の国コード"
              },
              "addr_state": {
                "type": "string",
                "maxLength": 3,
                "description": "上書き顧客（請求先） 住所の都道府県コード"
              },
              "addr_city": {
                "type": "string",
                "maxLength": 50,
                "description": "上書き顧客（請求先） 住所の市区町村"
              },
              "addr_line_1": {
                "type": "string",
                "maxLength": 50,
                "description": "上書き顧客（請求先） 住所の町名・番地"
              },
              "addr_line_2": {
                "type": "string",
                "maxLength": 50,
                "description": "上書き顧客（請求先） 住所の建物名・部屋番号"
              },
              "addr_line_3": {
                "type": "string",
                "maxLength": 50,
                "description": "上書き顧客（請求先）住所 その他"
              },
              "addr_post_code": {
                "type": "string",
                "maxLength": 16,
                "description": "上書き顧客（請求先） 住所の郵便番号"
              }
            }
          },
          "issuer_overwrite": {
            "type": "object",
            "description": "発行元事業者情報  \n指定しなかった場合、本番環境申請の際にご提出いただいた情報を利用します。\n",
            "properties": {
              "addr_country": {
                "type": "string",
                "maxLength": 3,
                "description": "発行元事業者住所の国コード"
              },
              "addr_state": {
                "type": "string",
                "maxLength": 3,
                "description": "発行元事業者住所の都道府県コード"
              },
              "addr_city": {
                "type": "string",
                "maxLength": 50,
                "description": "発行元事業者住所の市区町村"
              },
              "addr_line_1": {
                "type": "string",
                "maxLength": 100,
                "description": "発行元事業者住所の町名・番地"
              },
              "addr_line_2": {
                "type": "string",
                "maxLength": 100,
                "description": "発行元事業者住所の建物名・部屋番号"
              },
              "addr_line_3": {
                "type": "string",
                "maxLength": 50,
                "description": "発行元事業者住所 その他"
              },
              "addr_post_code": {
                "type": "string",
                "maxLength": 8,
                "description": "発行元事業者住所の郵便番号"
              },
              "email": {
                "type": "string",
                "maxLength": 254,
                "description": "発行元事業者のメールアドレス"
              },
              "phone_number": {
                "type": "string",
                "maxLength": 15,
                "description": "発行元事業者の電話番号"
              }
            }
          },
          "is_tax_included": {
            "type": "boolean",
            "description": "内税表記有無  \n  \n- `true`: 内税表記  \n- `false`: 外税表記  \n"
          },
          "due_date": {
            "type": "string",
            "maxLength": 10,
            "description": "支払期日  \nyyyy/MM/dd形式  \n"
          },
          "memo": {
            "type": "string",
            "description": "備考"
          },
          "lines": {
            "type": "array",
            "description": "取引内容",
            "items": {
              "type": "object",
              "properties": {
                "date": {
                  "type": "string",
                  "minLength": 10,
                  "maxLength": 10,
                  "description": "日付  \nyyyy/MM/dd\n"
                },
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200,
                  "description": "品目"
                },
                "unit_price": {
                  "type": "number",
                  "minLength": 1,
                  "maxLength": 11,
                  "description": "単価\n"
                },
                "quantity": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 2147483647,
                  "description": "数量\n"
                },
                "tax_rate": {
                  "type": "number",
                  "minLength": 1,
                  "maxLength": 3,
                  "description": "適用税率（%）"
                },
                "tax_included_amount": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/tax_included_amount"
                    }
                  ]
                }
              }
            }
          },
          "pay_types": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "ショップで利用可能な決済種別のリスト  \n利用可能にする決済種別全てを指定してください。  \n  \n- `Virtualaccount`: 銀行振込（バーチャル口座）決済\n- `Card`: カード決済\n- `Directdebit`: 口座振替決済\n- `Payeeaccount`: 銀行振込（指定口座）決済\n"
          },
          "input_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/input_type"
              }
            ]
          },
          "card": {
            "type": "object",
            "description": "カード決済情報",
            "properties": {
              "job_code": {
                "type": "string",
                "minLength": 1,
                "maxLength": 7,
                "default": "AUTH",
                "description": "処理区分  \n以下のいずれかを指定してください。  \n\n- `AUTH`: 仮売上  \n- `CAPTURE`: 即時売上\n"
              },
              "tds_type": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1,
                "description": "3DS利用種別  \n3DSを使用して決済を行うかを設定します。  \n- `0`: 行わない（デフォルト）  \n- `2`: 行う（3DS2.0を利用）\n"
              },
              "tds2_type": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1,
                "description": "3DS2非対応時設定  \n仕向先カード会社が3DS2.0に未対応な場合の、後続処理を設定します。  \n- `1`: 3DS1.0での認証を実施  \n- `2`: エラーとして処理終了（デフォルト）  \n- `3`: 通常オーソリを実施\n"
              },
              "tds2_tenant_name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 25,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n3Dセキュア表示店舗名\n"
              },
              "tds2_ch_acc_change": {
                "type": "string",
                "minLength": 8,
                "maxLength": 8,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n3DSリクエスター アカウント最終更新日  \nyyyyMMdd形式\n"
              },
              "tds2_ch_acc_date": {
                "type": "string",
                "minLength": 8,
                "maxLength": 8,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n3DSリクエスター アカウント開設日  \nyyyyMMdd形式\n"
              },
              "tds2_ch_acc_pw_change": {
                "type": "string",
                "minLength": 8,
                "maxLength": 8,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n3DSリクエスター アカウントパスワード変更日  \nyyyyMMdd形式\n"
              },
              "tds2_nb_purchase_account": {
                "type": "string",
                "minLength": 1,
                "maxLength": 4,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n過去6ヶ月間の購入回数\n"
              },
              "tds2_payment_acc_age": {
                "type": "string",
                "minLength": 8,
                "maxLength": 8,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \nカード登録日  \nyyyyMMdd形式\n"
              },
              "tds2_provision_attempts_day": {
                "type": "string",
                "minLength": 1,
                "maxLength": 3,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n過去24時間のカード追加の試行回数\n"
              },
              "tds2_ship_address_usage": {
                "type": "string",
                "minLength": 8,
                "maxLength": 8,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n出荷先住所の最初の使用日  \nyyyyMMdd形式\n"
              },
              "tds2_ship_name_ind": {
                "type": "string",
                "minLength": 2,
                "maxLength": 2,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \nカード顧客名と出荷先名の一致/不一致情報  \n  \n- `01`: カード顧客名と配送先名が一致  \n- `02`: カード顧客名と配送先名が不一致\n"
              },
              "tds2_suspicious_acc_activity": {
                "type": "string",
                "minLength": 2,
                "maxLength": 2,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \nアカウントの不審行為情報  \nカード顧客で、不審な行動（過去の不正行為を含む）を加盟店様が発見したかどうかを設定  \n  \n- `01`: 不審な行動は見られなかった  \n- `02`: 不審な行動が見られた\n"
              },
              "tds2_txn_activity_day": {
                "type": "string",
                "minLength": 1,
                "maxLength": 3,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n過去24時間の取引回数\n"
              },
              "tds2_txn_activity_year": {
                "type": "string",
                "minLength": 1,
                "maxLength": 3,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n前年の取引回数\n"
              },
              "tds2_three_ds_req_auth_data": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \nログイン証跡  \nログイン証跡を設定した場合  \nログイン方法/ログイン日時の設定が必要 \n01 = 認証なし（ゲストとしてログイン）  \n02 = 加盟店様自身の認証情報  \n03 = SSO(シングルサインオン)  \n04 = イシュアーの認証情報  \n05 = サードパーティ認証  \n06 = FIDO認証\n"
              },
              "tds2_three_ds_req_auth_timestamp": {
                "type": "string",
                "minLength": 12,
                "maxLength": 12,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \nログイン日時  \nログイン日時を設定した場合  \nログイン証跡/ログイン方法の設定が必要  \nYYYYMMDDHHMM形式\n"
              },
              "tds2_addr_match": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n請求先住所と配送先住所の一致/不一致情報  \nカード顧客の配送先住所とカード顧客の請求先住所の一致/不一致の設定が必要  \nY=一致  \nN=不一致\n"
              },
              "tds2_bill_addr_city": {
                "type": "string",
                "minLength": 1,
                "maxLength": 50,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \nカード顧客の請求先住所の都市  \nショップ側で顧客の住所情報を保持している場合、指定が必須となります。  \n※住所情報を保持していない場合、指定は不要です。\n"
              },
              "tds2_bill_addr_country": {
                "type": "string",
                "minLength": 1,
                "maxLength": 3,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \nカード顧客の請求先住所の国コード  \nショップ側で顧客の住所情報を保持している場合、指定が必須となります。  \n※住所情報を保持していない場合、指定は不要です。\n"
              },
              "tds2_bill_addr_line_1": {
                "type": "string",
                "minLength": 1,
                "maxLength": 50,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \nカード顧客の請求先住所の区域部分の１行目  \nショップ側で顧客の住所情報を保持している場合、指定が必須となります。  \n※住所情報を保持していない場合、指定は不要です。\n"
              },
              "tds2_bill_addr_line_2": {
                "type": "string",
                "minLength": 1,
                "maxLength": 50,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \nカード顧客の請求先住所の区域部分の２行目\n"
              },
              "tds2_bill_addr_line_3": {
                "type": "string",
                "minLength": 1,
                "maxLength": 50,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \nカード顧客の請求先住所の区域部分の３行目\n"
              },
              "tds2_bill_addr_post_code": {
                "type": "string",
                "minLength": 1,
                "maxLength": 16,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \nカード顧客の請求先住所の郵便番号  \nショップ側で顧客の住所情報を保持している場合、指定が必須となります。  \n※住所情報を保持していない場合、指定は不要です。\n"
              },
              "tds2_bill_addr_state": {
                "type": "string",
                "minLength": 1,
                "maxLength": 3,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \nカード顧客の請求先住所の州または都道府県コード  \nショップ側で顧客の住所情報を保持している場合、指定が必須となります。  \n※住所情報を保持していない場合、指定は不要です。\n"
              },
              "tds2_email": {
                "type": "string",
                "minLength": 1,
                "maxLength": 254,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \nカード顧客のメールアドレス\n"
              },
              "tds2_home_phone_cc": {
                "type": "string",
                "minLength": 1,
                "maxLength": 3,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n自宅電話の国コード（+を含まない）  \n自宅電話の国コードを設定した場合  \n自宅電話番号の設定が必要\n"
              },
              "tds2_home_phone_no": {
                "type": "string",
                "minLength": 1,
                "maxLength": 15,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n自宅電話番号  \n自宅電話番号を設定した場合  \n自宅電話の国コードの設定が必要  \nハイフン（-）なし、数字のみ\n"
              },
              "tds2_mobile_phone_cc": {
                "type": "string",
                "minLength": 1,
                "maxLength": 3,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n携帯電話の国コード（+を含まない）  \n携帯電話の国コードを設定した場合  \n携帯電話番号の設定が必要\n"
              },
              "tds2_mobile_phone_no": {
                "type": "string",
                "minLength": 1,
                "maxLength": 15,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n携帯電話番号  \n携帯電話番号の国コードを設定した場合  \nハイフン（-）なし、数字のみ\n"
              },
              "tds2_work_phone_cc": {
                "type": "string",
                "minLength": 1,
                "maxLength": 3,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n職場電話の国コード（+を含まない）  \n職場電話の国コードを設定した場合  \n職場電話番号の設定が必要\n"
              },
              "tds2_work_phone_no": {
                "type": "string",
                "minLength": 1,
                "maxLength": 15,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n職場電話番号  \n職場電話番号を設定した場合  \nハイフン（-）なし、数字のみ\n"
              },
              "tds2_ship_addr_city": {
                "type": "string",
                "minLength": 1,
                "maxLength": 50,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n出荷先住所の都市\n"
              },
              "tds2_ship_addr_country": {
                "type": "string",
                "minLength": 1,
                "maxLength": 3,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n出荷先住所の国コード\n"
              },
              "tds2_ship_addr_line_1": {
                "type": "string",
                "minLength": 1,
                "maxLength": 50,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n出荷先住所の区域部分の１行目\n"
              },
              "tds2_ship_addr_line_2": {
                "type": "string",
                "minLength": 1,
                "maxLength": 50,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n出荷先住所の区域部分の２行目\n"
              },
              "tds2_ship_addr_line_3": {
                "type": "string",
                "minLength": 1,
                "maxLength": 50,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n出荷先住所の区域部分の３行目\n"
              },
              "tds2_ship_addr_post_code": {
                "type": "string",
                "minLength": 1,
                "maxLength": 16,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n出荷先住所の郵便番号\n"
              },
              "tds2_ship_addr_state": {
                "type": "string",
                "minLength": 1,
                "maxLength": 3,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n出荷先住所の州または都道府県コード\n"
              },
              "tds2_delivery_email_address": {
                "type": "string",
                "minLength": 1,
                "maxLength": 254,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n納品先電子メールアドレス\n"
              },
              "tds2_delivery_timeframe": {
                "type": "string",
                "minLength": 2,
                "maxLength": 2,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n商品納品時間枠  \n01 = 電子デリバリー  \n02 = 当日出荷  \n03 = 翌日出荷  \n04 = 2日目以降の出荷\n"
              },
              "tds2_gift_card_amount": {
                "type": "string",
                "minLength": 1,
                "maxLength": 15,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \nプリペイドカードまたはギフトカードの総購入金額\n"
              },
              "tds2_gift_card_count": {
                "type": "string",
                "minLength": 2,
                "maxLength": 2,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n購入されたプリペイドカードまたはギフトカード / コードの総数  \n0埋め2桁の数字\n"
              },
              "tds2_gift_card_curr": {
                "type": "string",
                "minLength": 3,
                "maxLength": 3,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n通貨コード  \n※以下のコードは対象外  \n955, 956, 957, 958, 959, 960, 961, 962,  \n963, 964, 999\n"
              },
              "tds2_pre_order_date": {
                "type": "string",
                "minLength": 8,
                "maxLength": 8,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n商品の発売予定日  \nYYYYMMDD形式\n"
              },
              "tds2_pre_order_purchase_ind": {
                "type": "string",
                "minLength": 2,
                "maxLength": 2,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n商品の販売時期情報  \n01 = 発売済み\n02 = 先行予約商品\n"
              },
              "tds2_reorder_items_ind": {
                "type": "string",
                "minLength": 2,
                "maxLength": 2,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n商品の注文情報  \n01 = 初回注文  \n02 = 再注文\n"
              },
              "tds2_ship_ind": {
                "type": "string",
                "minLength": 2,
                "maxLength": 2,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n取引の出荷方法  \n01 = カード顧客の請求先住所に配送する  \n02 = 加盟店様が保持している別の、確認済み住所に配送する  \n03 = カード顧客の請求先住所と異なる住所に配送する  \n04 = 店舗へ配送 / 近所の店舗での受け取り（店舗の住所は配送先住所で指定する）  \n05 = デジタル商品（オンラインサービス、電子ギフトカードおよび償還コードを含む）  \n06 = 配送なし（旅行およびイベントのチケット）  \n07 = その他（ゲーム、配送されないデジタルサービス、電子メディアの購読料など）\n"
              },
              "tds2_recurring_expiry": {
                "type": "string",
                "minLength": 8,
                "maxLength": 8,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n継続課金の期限  \nYYYYMMDD形式\n"
              },
              "tds2_recurring_frequency": {
                "type": "string",
                "minLength": 1,
                "maxLength": 4,
                "description": "<span class=\"smallText color--blue-400\">[3Dセキュア認証パラメータ]</span>  \n継続課金の課金最小間隔日数\n"
              }
            }
          },
          "virtual_account": {
            "type": "object",
            "description": "銀行振込（バーチャル口座）情報",
            "properties": {
              "reference_invoice_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 30,
                "description": "バーチャル口座 再利用 インボイスID\\\n\\\nあるインボイス情報が持つバーチャル口座を再利用する場合、そのインボイス情報のIDを参照先として指定します。\\\nバーチャル口座の再利用が可能なインボイスの条件は以下の通りです。\n\n - 参照するインボイスのステータスが `PAID` であること\n - 参照するインボイスのステータスが `PAID` に遷移してから90日以内であること\n"
              },
              "use_exact_deposit_amount": {
                "type": "boolean",
                "enum": [
                  true,
                  false
                ],
                "description": "入金可能額設定利用フラグ\\\nこの決済で使用されるバーチャル口座に対して入金可能額を設定するかどうかを示すフラグです。\n設定した場合、購入者は請求金額以外の金額を振り込むことができなくなります。\n\n- `true`: 入金可能額を設定する\n- `false`: 入金可能額を設定しない（デフォルト）\n"
              }
            }
          },
          "directdebit": {
            "type": "object",
            "description": "口座振替情報\n",
            "properties": {
              "payment_method_id": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/properties-payment_method_id"
                  }
                ]
              },
              "target_date": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/properties-target_date"
                  }
                ]
              },
              "remarks": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/properties-remarks"
                  }
                ]
              },
              "directdebit_failure_mail_send_flag": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/directdebit_failure_mail_send_flag"
                  }
                ]
              }
            }
          },
          "payee_account": {
            "type": "object",
            "description": "銀行振込（指定口座）情報\n",
            "properties": {
              "payment_method_ids": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/payment_method_ids"
                  }
                ]
              }
            }
          },
          "client_field_1": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "description": "加盟店自由項目1"
          },
          "client_field_2": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "description": "加盟店自由項目2"
          },
          "client_field_3": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "description": "加盟店自由項目3"
          },
          "invoice_backfill": {
            "type": "object",
            "description": "領収書後付け発行情報\\\n指定した場合、インボイス発行時に既存決済を紐づけます。\\\n指定する場合は3項目すべての指定が必要です。\\\n指定できる決済種別は `Card` / `Virtualaccount` / `Directdebit` のみで、複数の決済手段を同時に指定することはできません。\\\n",
            "properties": {
              "order_id": {
                "type": "string",
                "maxLength": 30,
                "description": "既存決済のオーダーID"
              },
              "access_id": {
                "type": "string",
                "minLength": 24,
                "maxLength": 24,
                "description": "既存決済の取引ID"
              },
              "paid_date": {
                "type": "string",
                "maxLength": 10,
                "description": "既存決済の支払日\\\n形式： `yyyy/MM/dd`\n"
              }
            }
          }
        }
      },
      "InvoiceDetail.Updating.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Invoice"
          }
        ]
      },
      "InvoiceDetail.Deleting.Response": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "インボイスID\n",
            "minLength": 1,
            "maxLength": 30
          },
          "delete_flag": {
            "type": "string",
            "description": "削除フラグ  \n  \n - `1`: 成功\n"
          }
        }
      },
      "InvoiceDetail.Opening.Request": {
        "type": "object",
        "properties": {
          "bill_mail_send_flag": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1,
            "description": "請求書メール送信フラグ  \n登録や更新で設定している場合も、こちらの設定が優先されます。  \n\n- `0`: メールを送信しない（デフォルト）  \n- `1`: メールを送信する  \n"
          },
          "receipt_mail_send_flag": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1,
            "description": "領収書メール送信フラグ  \n登録や更新で設定している場合も、こちらの設定が優先されます。  \n\n- `0`: メールを送信しない（デフォルト）  \n- `1`: メールを送信する  \n"
          },
          "underpayment_mail_send_flag": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1,
            "description": "差額請求メール送信フラグ  \n登録や更新で設定している場合も、こちらの設定が優先されます。  \n\n- `0`: メールを送信しない（デフォルト）  \n- `1`: メールを送信する  \n"
          }
        }
      },
      "InvoiceDetail.Opening.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Invoice"
          },
          {
            "$ref": "#/components/schemas/Invoice.CompanyStamp"
          }
        ]
      },
      "InvoiceDetail.Canceling.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Invoice"
          }
        ]
      },
      "InvoiceDetail.Marking.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Invoice"
          }
        ]
      },
      "InvoiceDetail.Refresh.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Invoice"
          }
        ]
      },
      "Invoice.PayeeAccount.AmountRegistering.Request": {
        "type": "object",
        "required": [
          "amount"
        ],
        "properties": {
          "amount": {
            "type": "string",
            "minLength": 1,
            "maxLength": 14,
            "description": "入金額（[インボイス 支払い完了（銀行振込（指定口座））API](#operation/captureInvoicePayeeAccount)を実行するまでは更新可能）\n"
          }
        }
      },
      "Invoice.PayeeAccount.AmountRegistering.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Invoice"
          }
        ]
      },
      "Invoice.PayeeAccount.Capturing.Request": {
        "type": "object",
        "required": [
          "payment_method_id"
        ],
        "properties": {
          "payment_method_id": {
            "type": "string",
            "minLength": 25,
            "maxLength": 25,
            "pattern": "^pm_[A-Za-z0-9_-]{22}$",
            "example": "pm_**********************",
            "description": "ショップ決済手段ID（入金口座）\n"
          },
          "transaction_date": {
            "type": "string",
            "minLength": 10,
            "maxLength": 10,
            "description": "取引日 形式：`yyyy/MM/dd`\\\n未来日付は指定不可。未指定の場合は API 実行日が設定されます。\n"
          }
        }
      },
      "Invoice.PayeeAccount.Capturing.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Invoice"
          }
        ]
      },
      "Billing.ListRetrieving.QueryParams": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "description": "インボイス請求書のステータス  \n   \nカンマ(,)区切りで複数指定も可能です。  \n   \n- `DRAFT`: 下書き\n- `AWAITING_CUSTOMER_PAYMENT`: 支払い待ち\n- `PAID`: 支払い完了\n- `CANCELED`: キャンセル済\n"
          },
          "keyword": {
            "type": "string",
            "minLength": 1,
            "maxLength": 150,
            "description": "キーワード  \n  \n指定した場合、請求書作成時に指定した client_field_1, client_field_2, client_field_3 のいずれかにおいて指定したワードが部分一致する請求データのみを取得します。\n"
          },
          "due_date_from": {
            "type": "string",
            "minLength": 10,
            "maxLength": 10,
            "description": "支払期日範囲（開始）  \n形式： `yyyy/MM/dd`  \n  \n指定した場合、支払期日が指定日以降である請求データのみを取得します。\n"
          },
          "due_date_to": {
            "type": "string",
            "minLength": 10,
            "maxLength": 10,
            "description": "支払期日範囲（終了）  \n形式： `yyyy/MM/dd`  \n  \n指定した場合、支払期日が指定日以前の請求データのみを取得します。\n"
          },
          "issue_date_from": {
            "type": "string",
            "minLength": 10,
            "maxLength": 10,
            "description": "発行日範囲（開始）  \n形式： `yyyy/MM/dd`  \n  \n指定した場合、発行日が指定日以降である請求データのみを取得します。\n"
          },
          "issue_date_to": {
            "type": "string",
            "minLength": 10,
            "maxLength": 10,
            "description": "発行日の範囲指定（終了）  \n形式： `yyyy/MM/dd`  \n  \n指定した場合、発行日が指定日以前の請求データのみを取得します。\n"
          },
          "total_amount_max": {
            "type": "number",
            "minLength": 1,
            "maxLength": 14,
            "description": "合計金額範囲（上限）  \n  \n指定した場合、合計金額が指定金額以下の請求データのみを取得します。\n"
          },
          "total_amount_min": {
            "type": "number",
            "minLength": 1,
            "maxLength": 14,
            "description": "合計金額範囲（下限）  \n  \n指定した場合、合計金額が指定金額以上の請求データのみを取得します。\n"
          },
          "created_from": {
            "type": "string",
            "minLength": 10,
            "maxLength": 10,
            "description": "作成日範囲（開始）  \n形式： `yyyy/MM/dd`  \n  \n指定した場合、作成日が指定日以降である請求データのみを取得します。\n"
          },
          "created_to": {
            "type": "string",
            "minLength": 10,
            "maxLength": 10,
            "description": "作成日範囲（終了）  \n形式： `yyyy/MM/dd`  \n  \n指定した場合、作成日が指定日以前の請求データのみを取得します。\n"
          },
          "customer_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 60,
            "description": "顧客ID  \n  \n指定した場合、顧客IDが完全一致する請求データのみを取得します。\n"
          },
          "customer_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 384,
            "description": "顧客名（請求先宛名）  \n  \n指定した場合、顧客名が部分一致する請求データのみを取得します。\n"
          },
          "invoice_number": {
            "type": "string",
            "minLength": 1,
            "maxLength": 30,
            "description": "請求番号  \n  \n指定した場合、請求番号が一致する請求データのみを取得します。\n"
          },
          "lines_date_from": {
            "type": "string",
            "minLength": 10,
            "maxLength": 10,
            "description": "取引日付範囲（開始）  \n形式： `yyyy/MM/dd`  \n  \n指定した場合、「取引の日付」として入力した取引日が指定日以降の請求データのみを取得します。\n"
          },
          "lines_date_to": {
            "type": "string",
            "minLength": 10,
            "maxLength": 10,
            "description": "取引日範囲（終了）  \n形式： `yyyy/MM/dd`  \n  \n指定した場合、「取引の日付」として入力した取引日が指定日以前の請求データのみを取得します。\n"
          },
          "transaction_date_from": {
            "type": "string",
            "minLength": 10,
            "maxLength": 10,
            "description": "支払完了日範囲（開始）  \n形式： `yyyy/MM/dd`  \n  \n指定した場合、支払い完了日が指定日以降の請求データのみを取得します。\n"
          },
          "transaction_date_to": {
            "type": "string",
            "minLength": 10,
            "maxLength": 10,
            "description": "支払完了日範囲（終了）  \n形式： `yyyy/MM/dd`  \n  \n指定した場合、支払い完了日が指定日以前の請求データのみを取得します。\n"
          },
          "is_uncollectible": {
            "type": "boolean",
            "description": "回収困難マーク  \n  \n- `true`: 回収困難マーク済の請求データのみを取得\n- `false`: 回収困難マークの無い請求データのみを取得\n- `null`: いずれも取得\n"
          }
        }
      },
      "Billing.ListItem": {
        "type": "object",
        "description": "請求情報 一覧項目",
        "properties": {
          "id": {
            "type": "string",
            "description": "請求ID\n",
            "minLength": 1,
            "maxLength": 30
          },
          "bill_type": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2,
            "description": "請求方式\n- `01`: インボイス\n- `02`: リダイレクト型決済\n- `03`: 決済（請求情報下書き）\n"
          },
          "status": {
            "type": "string",
            "description": "請求のステータス\n- `DRAFT`: 下書き\n- `AWAITING_CUSTOMER_PAYMENT`: 支払い待ち\n- `PAID`: 支払い完了\n- `CANCELED`: キャンセル済\n",
            "minLength": 1,
            "maxLength": 25
          },
          "billing_total_amount": {
            "type": "string",
            "description": "合計請求金額"
          },
          "total_amount": {
            "type": "string",
            "description": "合計金額"
          },
          "is_uncollectible": {
            "type": "boolean",
            "description": "回収不能フラグ"
          },
          "due_date": {
            "type": "string",
            "minLength": 1,
            "maxLength": 10,
            "description": "支払期日 形式： `yyyy/MM/dd`"
          },
          "transaction_date": {
            "type": "string",
            "description": "支払完了日 形式：`yyyy/MM/dd HH:mm:ss.SSS`"
          },
          "customer_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 60,
            "description": "顧客（請求先）ID"
          },
          "customer_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 384,
            "description": "顧客（請求先）宛名"
          },
          "overwrite_customer_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 384,
            "description": "上書き顧客（請求先）宛名"
          },
          "bill_pdf_url": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "description": "請求書PDFダウンロードURL"
          },
          "receipt_pdf_url": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "description": "領収書PDFダウンロードURL"
          },
          "mail_customer_name": {
            "type": "string",
            "description": "メール用顧客名（リダイレクト型決済の請求先表示名）\n"
          },
          "pay_types": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "利用可能な決済種別リスト"
          },
          "billing_file_import_entry_id": {
            "type": "string",
            "description": "請求インポートファイル読み込みエントリーID"
          },
          "used_pay_type": {
            "type": "string",
            "description": "利用された決済種別"
          },
          "issue_date": {
            "type": "string",
            "minLength": 1,
            "maxLength": 10,
            "description": "発行年月日 形式： `yyyy/MM/dd`"
          },
          "is_tax_included": {
            "type": "boolean",
            "description": "内税表記有無\n\n- `true`: 内税表記\n- `false`: 外税表記\n"
          },
          "invoice_number": {
            "type": "string",
            "minLength": 1,
            "maxLength": 30,
            "description": "請求番号"
          },
          "input_type": {
            "type": "string",
            "enum": [
              "amount"
            ],
            "description": "取引金額の入力方式\n- null：単価入力時(デフォルト)\n- `amount`：金額(税込)入力時\n"
          },
          "lines": {
            "type": "array",
            "description": "取引内容",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200,
                  "description": "品目"
                },
                "unit_price": {
                  "type": "number",
                  "minLength": 1,
                  "maxLength": 10,
                  "description": "単価"
                },
                "quantity": {
                  "type": "number",
                  "minLength": 1,
                  "maxLength": 10,
                  "maximum": 2147483647,
                  "description": "数量"
                },
                "tax_rate": {
                  "type": "number",
                  "minLength": 1,
                  "maxLength": 3,
                  "description": "適用税率（%）"
                },
                "tax_included_amount": {
                  "type": "number",
                  "description": "税込金額  \n"
                }
              }
            }
          },
          "tax": {
            "type": "string",
            "minLength": 1,
            "maxLength": 10,
            "description": "税送料"
          },
          "created": {
            "type": "string",
            "description": "作成日時 形式： `yyyy/MM/dd HH:mm:ss.SSS`"
          },
          "updated": {
            "type": "string",
            "description": "更新日時 形式： `yyyy/MM/dd HH:mm:ss.SSS`"
          }
        }
      },
      "Billing.list": {
        "type": "object",
        "properties": {
          "list": {
            "type": "array",
            "description": "データリスト\n検索結果が0件の場合、空のリストを返却します。\n",
            "items": {
              "$ref": "#/components/schemas/Billing.ListItem"
            }
          }
        }
      },
      "Billing.ListRetrieving.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/_ListResponse"
          },
          {
            "$ref": "#/components/schemas/Billing.list"
          }
        ]
      },
      "bill_type": {
        "type": "string",
        "minLength": 1,
        "maxLength": 2,
        "description": "請求方式\n- `01`: インボイス\n- `02`: リダイレクト型決済\n- `03`: 決済（請求情報下書き）\n"
      },
      "Billing_properties-customer_id": {
        "type": "string",
        "description": "顧客（請求先）ID\n",
        "minLength": 1,
        "maxLength": 60
      },
      "customer_honorific": {
        "type": "string",
        "description": "顧客（請求先）敬称\n",
        "minLength": 1,
        "maxLength": 20
      },
      "customer_overwrite": {
        "type": "object",
        "description": "上書き顧客（請求先）情報",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 384,
            "description": "上書き顧客（請求先）宛名"
          },
          "email": {
            "type": "string",
            "minLength": 1,
            "maxLength": 254,
            "description": "上書き顧客（請求先）メールアドレス"
          },
          "addr_country": {
            "type": "string",
            "minLength": 1,
            "maxLength": 3,
            "description": "上書き顧客（請求先）住所の国コード"
          },
          "addr_state": {
            "type": "string",
            "minLength": 1,
            "maxLength": 3,
            "description": "上書き顧客（請求先）住所の都道府県コード"
          },
          "addr_city": {
            "type": "string",
            "minLength": 1,
            "maxLength": 50,
            "description": "上書き顧客（請求先）住所の市区町村"
          },
          "addr_line_1": {
            "type": "string",
            "minLength": 1,
            "maxLength": 50,
            "description": "上書き顧客（請求先）住所の町名・番地"
          },
          "addr_line_2": {
            "type": "string",
            "minLength": 1,
            "maxLength": 50,
            "description": "上書き顧客（請求先）住所の建物名・部屋番号"
          },
          "addr_line_3": {
            "type": "string",
            "minLength": 1,
            "maxLength": 50,
            "description": "上書き顧客（請求先）住所 その他"
          },
          "addr_post_code": {
            "type": "string",
            "minLength": 1,
            "maxLength": 16,
            "description": "上書き顧客（請求先）住所の郵便番号"
          }
        }
      },
      "issuer_overwrite": {
        "type": "object",
        "description": "上書き発行元事業者情報",
        "properties": {
          "email": {
            "type": "string",
            "minLength": 3,
            "maxLength": 254,
            "description": "発行元事業者のメールアドレス"
          },
          "addr_state": {
            "type": "string",
            "minLength": 1,
            "maxLength": 3,
            "description": "発行元事業者住所の都道府県コード"
          },
          "addr_city": {
            "type": "string",
            "minLength": 1,
            "maxLength": 50,
            "description": "発行元事業者住所の市区町村"
          },
          "addr_line_1": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "description": "発行元事業者住所の町名・番地"
          },
          "addr_line_2": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "description": "発行元事業者住所の建物名・部屋番号"
          },
          "addr_line_3": {
            "type": "string",
            "minLength": 1,
            "maxLength": 50,
            "description": "発行元事業者住所 その他"
          },
          "addr_post_code": {
            "type": "string",
            "minLength": 1,
            "maxLength": 8,
            "description": "発行元事業者住所の郵便番号"
          },
          "phone_number": {
            "type": "string",
            "minLength": 1,
            "maxLength": 15,
            "description": "発行元事業者の電話番号"
          }
        }
      },
      "is_tax_included": {
        "type": "boolean",
        "description": "内税表記有無  \n  \n- `true`: 内税表記  \n- `false`: 外税表記 \n"
      },
      "due_date": {
        "type": "string",
        "minLength": 1,
        "maxLength": 10,
        "description": "支払期日 形式： `yyyy/MM/dd`"
      },
      "memo": {
        "type": "string",
        "minLength": 1,
        "maxLength": 1000,
        "description": "備考"
      },
      "Billing_properties-client_field_1": {
        "type": "string",
        "minLength": 1,
        "maxLength": 100,
        "description": "加盟店自由項目1"
      },
      "Billing_properties-client_field_2": {
        "type": "string",
        "minLength": 1,
        "maxLength": 100,
        "description": "加盟店自由項目2"
      },
      "Billing_properties-client_field_3": {
        "type": "string",
        "minLength": 1,
        "maxLength": 100,
        "description": "加盟店自由項目3"
      },
      "invoice_number": {
        "type": "string",
        "minLength": 1,
        "maxLength": 30,
        "description": "請求番号"
      },
      "lines": {
        "type": "array",
        "description": "取引内容",
        "items": {
          "type": "object",
          "properties": {
            "date": {
              "type": "string",
              "minLength": 1,
              "maxLength": 10,
              "description": "日付 形式： `yyyy/MM/dd`"
            },
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200,
              "description": "品目"
            },
            "unit_price": {
              "type": "number",
              "minLength": 1,
              "maxLength": 10,
              "description": "単価"
            },
            "quantity": {
              "type": "number",
              "minLength": 1,
              "maxLength": 10,
              "maximum": 2147483647,
              "description": "数量"
            },
            "tax_rate": {
              "type": "number",
              "minLength": 1,
              "maxLength": 3,
              "description": "適用税率（%）"
            },
            "tax_included_amount": {
              "type": "number",
              "minLength": 1,
              "maxLength": 14,
              "description": "税込金額"
            }
          }
        }
      },
      "properties-card": {
        "type": "object",
        "description": "カード決済情報",
        "properties": {
          "job_code": {
            "type": "string",
            "description": "処理区分"
          },
          "tds_type": {
            "type": "string",
            "description": "3DS利用種別"
          },
          "td_tenant_name": {
            "type": "string",
            "description": "3Dセキュア表示店舗名"
          },
          "tds2_type": {
            "type": "string",
            "description": "3DS2非対応時設定"
          },
          "tds2_ch_acc_change": {
            "type": "string",
            "description": "3DSリクエスター アカウント最終更新日"
          },
          "tds2_ch_acc_date": {
            "type": "string",
            "description": "3DSリクエスター アカウント開設日"
          },
          "tds2_ch_acc_pw_change": {
            "type": "string",
            "description": "3DSリクエスター アカウントパスワード変更日"
          },
          "tds2_nb_purchase_account": {
            "type": "string",
            "description": "3DSリクエスター 購入アカウント数"
          },
          "tds2_payment_acc_age": {
            "type": "string",
            "description": "3DSリクエスター 支払いアカウント年齢"
          },
          "tds2_provision_attempts_day": {
            "type": "string",
            "description": "3DSリクエスター 1日あたりの提供試行回数"
          },
          "tds2_ship_address_usage": {
            "type": "string",
            "description": "3DSリクエスター 配送先住所使用日"
          },
          "tds2_ship_name_ind": {
            "type": "string",
            "description": "3DSリクエスター 配送先名インジケータ"
          },
          "tds2_suspicious_acc_activity": {
            "type": "string",
            "description": "3DSリクエスター 不審なアカウント活動"
          },
          "tds2_txn_activity_day": {
            "type": "string",
            "description": "3DSリクエスター 1日あたりの取引活動"
          },
          "tds2_txn_activity_year": {
            "type": "string",
            "description": "3DSリクエスター 1年あたりの取引活動"
          },
          "tds2_three_ds_req_auth_data": {
            "type": "string",
            "description": "3DSリクエスター 認証データ"
          },
          "tds2_three_ds_req_auth_method": {
            "type": "string",
            "description": "3DSリクエスター 認証方法"
          },
          "tds2_three_ds_req_auth_timestamp": {
            "type": "string",
            "description": "3DSリクエスター 認証タイムスタンプ"
          },
          "tds2_addr_match": {
            "type": "string",
            "description": "3DSリクエスター 住所一致"
          },
          "tds2_bill_addr_city": {
            "type": "string",
            "description": "3DSリクエスター 請求先市区町村"
          },
          "tds2_bill_addr_country": {
            "type": "string",
            "description": "3DSリクエスター 請求先国"
          },
          "tds2_bill_addr_line_1": {
            "type": "string",
            "description": "3DSリクエスター 請求先住所1"
          },
          "tds2_bill_addr_line_2": {
            "type": "string",
            "description": "3DSリクエスター 請求先住所2"
          },
          "tds2_bill_addr_line_3": {
            "type": "string",
            "description": "3DSリクエスター 請求先住所3"
          },
          "tds2_bill_addr_post_code": {
            "type": "string",
            "description": "3DSリクエスター 請求先郵便番号"
          },
          "tds2_bill_addr_state": {
            "type": "string",
            "description": "3DSリクエスター 請求先都道府県"
          },
          "tds2_email": {
            "type": "string",
            "description": "3DSリクエスター メールアドレス"
          },
          "tds2_home_phone_cc": {
            "type": "string",
            "description": "3DSリクエスター 自宅電話国番号（+を含まない）"
          },
          "tds2_home_phone_no": {
            "type": "string",
            "description": "3DSリクエスター 自宅電話番号"
          },
          "tds2_mobile_phone_cc": {
            "type": "string",
            "description": "3DSリクエスター 携帯電話国番号（+を含まない）"
          },
          "tds2_mobile_phone_no": {
            "type": "string",
            "description": "3DSリクエスター 携帯電話番号"
          },
          "tds2_work_phone_cc": {
            "type": "string",
            "description": "3DSリクエスター 勤務先電話国番号（+を含まない）"
          },
          "tds2_work_phone_no": {
            "type": "string",
            "description": "3DSリクエスター 勤務先電話番号"
          },
          "tds2_ship_addr_city": {
            "type": "string",
            "description": "3DSリクエスター 配送先市区町村"
          },
          "tds2_ship_addr_country": {
            "type": "string",
            "description": "3DSリクエスター 配送先国"
          },
          "tds2_ship_addr_line_1": {
            "type": "string",
            "description": "3DSリクエスター 配送先住所1"
          },
          "tds2_ship_addr_line_2": {
            "type": "string",
            "description": "3DSリクエスター 配送先住所2"
          },
          "tds2_ship_addr_line_3": {
            "type": "string",
            "description": "3DSリクエスター 配送先住所3"
          },
          "tds2_ship_addr_post_code": {
            "type": "string",
            "description": "3DSリクエスター 配送先郵便番号"
          },
          "tds2_ship_addr_state": {
            "type": "string",
            "description": "3DSリクエスター 配送先都道府県"
          },
          "tds2_delivery_email_address": {
            "type": "string",
            "description": "3DSリクエスター 配送先メールアドレス"
          },
          "tds2_delivery_timeframe": {
            "type": "string",
            "description": "3DSリクエスター 配送時間枠"
          },
          "tds2_gift_card_amount": {
            "type": "string",
            "description": "3DSリクエスター ギフトカード金額"
          },
          "tds2_gift_card_count": {
            "type": "string",
            "description": "3DSリクエスター ギフトカード枚数"
          },
          "tds2_gift_card_curr": {
            "type": "string",
            "description": "3DSリクエスター ギフトカード通貨"
          },
          "tds2_pre_order_date": {
            "type": "string",
            "description": "3DSリクエスター 予約注文日"
          },
          "tds2_pre_order_purchase_ind": {
            "type": "string",
            "description": "3DSリクエスター 予約注文インジケータ"
          },
          "tds2_reorder_items_ind": {
            "type": "string",
            "description": "3DSリクエスター 再注文インジケータ"
          },
          "tds2_ship_ind": {
            "type": "string",
            "description": "3DSリクエスター 配送インジケータ"
          },
          "tds2_recurring_expiry": {
            "type": "string",
            "description": "3DSリクエスター 定期支払い有効期限"
          },
          "tds2_recurring_frequency": {
            "type": "string",
            "description": "3DSリクエスター 定期支払い頻度"
          }
        }
      },
      "virtual_account": {
        "type": "object",
        "description": "銀行振込（バーチャル口座）情報",
        "properties": {
          "reference_bill_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 30,
            "description": "バーチャル口座を引き継ぐ請求ID"
          },
          "use_exact_deposit_amount": {
            "type": "boolean",
            "enum": [
              true,
              false
            ],
            "description": "入金可能額設定利用フラグ\\\nこの決済で使用されるバーチャル口座に対して入金可能額を設定するかどうかを示すフラグです。\n設定した場合、購入者は請求金額以外の金額を振り込むことができなくなります。\n\n- `true`: 入金可能額を設定する\n- `false`: 入金可能額を設定しない（デフォルト）\n"
          }
        }
      },
      "bill_mail_send_flag": {
        "type": "string",
        "minLength": 1,
        "maxLength": 1,
        "description": "請求書メール送信フラグ\n\n- `0`: メールを送信しない（デフォルト）\n- `1`: メールを送信する\n"
      },
      "receipt_mail_send_flag": {
        "type": "string",
        "minLength": 1,
        "maxLength": 1,
        "description": "領収書メール送信フラグ\n\n- `0`: メールを送信しない（デフォルト）\n- `1`: メールを送信する\n"
      },
      "underpayment_mail_send_flag": {
        "type": "string",
        "minLength": 1,
        "maxLength": 1,
        "description": "差額請求メール送信フラグ\n\n- `0`: メールを送信しない（デフォルト）\n- `1`: メールを送信する\n"
      },
      "link_type-properties-success_url": {
        "allOf": [
          {
            "$ref": "#/components/schemas/success_url"
          }
        ]
      },
      "link_type-properties-cancel_url": {
        "allOf": [
          {
            "$ref": "#/components/schemas/cancel_url"
          }
        ]
      },
      "link_type-properties-expire": {
        "allOf": [
          {
            "$ref": "#/components/schemas/PaymentSession_properties-expire"
          }
        ]
      },
      "link_type-properties-shop_service_name": {
        "allOf": [
          {
            "$ref": "#/components/schemas/shop_service_name"
          }
        ]
      },
      "link_type-properties-receiver_mail": {
        "allOf": [
          {
            "$ref": "#/components/schemas/receiver_mail"
          }
        ]
      },
      "link_type-properties-mail_customer_name": {
        "allOf": [
          {
            "$ref": "#/components/schemas/mail_customer_name"
          }
        ]
      },
      "link_type-properties-guide_mail_send_flag": {
        "allOf": [
          {
            "$ref": "#/components/schemas/guide_mail_send_flag"
          }
        ]
      },
      "properties-thanks_mail_send_flag": {
        "allOf": [
          {
            "$ref": "#/components/schemas/thanks_mail_send_flag"
          }
        ]
      },
      "link_type-properties-shop_mail_template_id": {
        "allOf": [
          {
            "$ref": "#/components/schemas/shop_mail_template_id"
          }
        ]
      },
      "PaymentSession_properties-card": {
        "nullable": false,
        "allOf": [
          {
            "$ref": "#/components/schemas/PaymentSession.Card"
          }
        ],
        "description": "カード決済に関する情報\n"
      },
      "link_type-properties-card": {
        "allOf": [
          {
            "$ref": "#/components/schemas/PaymentSession_properties-card"
          }
        ]
      },
      "konbini": {
        "nullable": false,
        "allOf": [
          {
            "$ref": "#/components/schemas/PaymentSession.Konbini"
          }
        ],
        "description": "コンビニ決済に関する情報\n"
      },
      "properties-konbini": {
        "allOf": [
          {
            "$ref": "#/components/schemas/konbini"
          }
        ]
      },
      "paypay": {
        "nullable": false,
        "allOf": [
          {
            "$ref": "#/components/schemas/PaymentSession.PayPay"
          }
        ],
        "description": "PayPayに関する情報\n"
      },
      "properties-paypay": {
        "allOf": [
          {
            "$ref": "#/components/schemas/paypay"
          }
        ]
      },
      "virtualaccount_reception_url": {
        "type": "string",
        "nullable": true,
        "maxLength": 256,
        "example": "https://secure.test.fincode.jp/v1/links/lk_**********************/virtualaccount",
        "description": "銀行振込（バーチャル口座） 支払い画面URL\n"
      },
      "PaymentSession.VirtualAccount_properties-payment_term_day": {
        "type": "integer",
        "format": "int64",
        "minLength": 1,
        "maxLength": 2,
        "example": 90,
        "description": "支払期限日数\\\n\\\n実行日から見て、支払期限日数後の翌日AMに期限切れになります。\\\n例）2024/4/1に、`支払期限日数=2`で決済実行した場合、2024/4/4 AMに期限切れ\n"
      },
      "properties-virtual_account": {
        "type": "object",
        "description": "銀行振込（バーチャル口座）に関する情報\n",
        "properties": {
          "reference_bill_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 30,
            "description": "バーチャル口座を引き継ぐ請求ID"
          },
          "use_exact_deposit_amount": {
            "type": "boolean",
            "enum": [
              true,
              false
            ],
            "description": "入金可能額設定利用フラグ\\\nこの決済で使用されるバーチャル口座に対して入金可能額を設定するかどうかを示すフラグです。\n設定した場合、購入者は請求金額以外の金額を振り込むことができなくなります。\n\n- `true`: 入金可能額を設定する\n- `false`: 入金可能額を設定しない（デフォルト）\n"
          },
          "virtualaccount_reception_url": {
            "allOf": [
              {
                "$ref": "#/components/schemas/virtualaccount_reception_url"
              }
            ]
          },
          "payment_term_day": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentSession.VirtualAccount_properties-payment_term_day"
              }
            ]
          },
          "virtualaccount_reception_mail_send_flag": {
            "allOf": [
              {
                "$ref": "#/components/schemas/virtualaccount_reception_mail_send_flag"
              }
            ]
          }
        }
      },
      "properties-billing_total_amount": {
        "type": "string",
        "minLength": 1,
        "maxLength": 14,
        "description": "合計金額\n"
      },
      "properties-lines": {
        "type": "array",
        "description": "取引内容\n",
        "items": {
          "type": "object",
          "properties": {
            "date": {
              "type": "string",
              "minLength": 10,
              "maxLength": 10,
              "description": "日付 形式： `yyyy/MM/dd`"
            },
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200,
              "description": "品目"
            },
            "unit_price": {
              "type": "number",
              "minLength": 1,
              "maxLength": 10,
              "description": "単価"
            },
            "quantity": {
              "type": "number",
              "minLength": 1,
              "maxLength": 10,
              "maximum": 2147483647,
              "description": "数量"
            },
            "tax_rate": {
              "type": "number",
              "minLength": 1,
              "maxLength": 3,
              "description": "適用税率（%）"
            }
          }
        }
      },
      "Billing.Creating.Request": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 30,
            "description": "請求ID\nショップ内で一意な値を設定してください。  \n未指定の場合自動生成します。\n"
          },
          "bill_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/bill_type"
              }
            ]
          },
          "customer_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Billing_properties-customer_id"
              }
            ]
          },
          "customer_honorific": {
            "allOf": [
              {
                "$ref": "#/components/schemas/customer_honorific"
              }
            ]
          },
          "customer_overwrite": {
            "allOf": [
              {
                "$ref": "#/components/schemas/customer_overwrite"
              }
            ]
          },
          "issuer_overwrite": {
            "allOf": [
              {
                "$ref": "#/components/schemas/issuer_overwrite"
              }
            ]
          },
          "is_tax_included": {
            "allOf": [
              {
                "$ref": "#/components/schemas/is_tax_included"
              }
            ]
          },
          "due_date": {
            "allOf": [
              {
                "$ref": "#/components/schemas/due_date"
              }
            ]
          },
          "memo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/memo"
              }
            ]
          },
          "client_field_1": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Billing_properties-client_field_1"
              }
            ]
          },
          "client_field_2": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Billing_properties-client_field_2"
              }
            ]
          },
          "client_field_3": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Billing_properties-client_field_3"
              }
            ]
          },
          "pay_types": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "Card",
                "Konbini",
                "Paypay",
                "Virtualaccount",
                "Directdebit",
                "Payeeaccount"
              ]
            },
            "description": "ショップで利用可能な決済種別のリスト  \n利用可能にする決済種別全てを指定してください。  \n  \n- `Card`：カード決済\n- `Konbini`：コンビニ決済 (bill_type = 01(インボイス)の場合は指定不可）\n- `Paypay`：PayPay (bill_type = 01(インボイス)の場合は指定不可）\n- `Virtualaccount`：銀行振込（バーチャル口座）決済\n- `Directdebit`：口座振替決済 (bill_type = 02(リダイレクト型決済)の場合は指定不可）\n- `Payeeaccount`：銀行振込（指定口座）決済 (bill_type = 02(リダイレクト型決済)の場合は指定不可）\n"
          },
          "input_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/input_type"
              }
            ]
          },
          "invoice": {
            "type": "object",
            "description": "インボイスに関する情報\n\nbill_type = 01(インボイス)用の設定情報\n",
            "properties": {
              "invoice_number": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/invoice_number"
                  }
                ]
              },
              "lines": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/lines"
                  }
                ]
              },
              "card": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/properties-card"
                  }
                ]
              },
              "virtual_account": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/virtual_account"
                  }
                ]
              },
              "bill_mail_send_flag": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/bill_mail_send_flag"
                  }
                ]
              },
              "receipt_mail_send_flag": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/receipt_mail_send_flag"
                  }
                ]
              },
              "underpayment_mail_send_flag": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/underpayment_mail_send_flag"
                  }
                ]
              },
              "directdebit": {
                "type": "object",
                "description": "口座振替情報\n",
                "properties": {
                  "payment_method_id": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/properties-payment_method_id"
                      }
                    ]
                  },
                  "target_date": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/properties-target_date"
                      }
                    ]
                  },
                  "remarks": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/properties-remarks"
                      }
                    ]
                  },
                  "directdebit_failure_mail_send_flag": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/directdebit_failure_mail_send_flag"
                      }
                    ]
                  }
                }
              },
              "payee_account": {
                "type": "object",
                "description": "銀行振込（指定口座）情報\n",
                "properties": {
                  "payment_method_ids": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/payment_method_ids"
                      }
                    ]
                  }
                }
              }
            }
          },
          "link_type": {
            "type": "object",
            "description": "リダイレクト型決済に関する情報\n\nbill_type = 02(リダイレクト型決済)用の設定情報\n",
            "properties": {
              "success_url": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/link_type-properties-success_url"
                  }
                ]
              },
              "cancel_url": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/link_type-properties-cancel_url"
                  }
                ]
              },
              "expire": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/link_type-properties-expire"
                  }
                ]
              },
              "shop_service_name": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/link_type-properties-shop_service_name"
                  }
                ]
              },
              "receiver_mail": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/link_type-properties-receiver_mail"
                  }
                ]
              },
              "mail_customer_name": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/link_type-properties-mail_customer_name"
                  }
                ]
              },
              "guide_mail_send_flag": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/link_type-properties-guide_mail_send_flag"
                  }
                ]
              },
              "thanks_mail_send_flag": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/properties-thanks_mail_send_flag"
                  }
                ]
              },
              "shop_mail_template_id": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/link_type-properties-shop_mail_template_id"
                  }
                ]
              },
              "transaction": {
                "type": "object",
                "properties": {
                  "amount": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "description": "利用金額"
                  },
                  "tax": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "description": "税送料"
                  }
                }
              },
              "card": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/link_type-properties-card"
                  }
                ]
              },
              "konbini": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/properties-konbini"
                  }
                ]
              },
              "paypay": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/properties-paypay"
                  }
                ]
              },
              "virtual_account": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/properties-virtual_account"
                  }
                ]
              }
            }
          },
          "draft": {
            "type": "object",
            "description": "下書き情報\n\nbill_type = 03(決済（請求情報下書き）)用の設定情報\n",
            "properties": {
              "invoice_number": {
                "type": "string",
                "minLength": 1,
                "maxLength": 30,
                "description": "請求番号\n指定しないまま請求書を開始した場合、自動採番されます。\n"
              },
              "billing_total_amount": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/properties-billing_total_amount"
                  }
                ]
              },
              "lines": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/properties-lines"
                  }
                ]
              }
            }
          }
        }
      },
      "link_url": {
        "type": "string",
        "nullable": false,
        "maxLength": 100,
        "example": "https://secure.test.fincode.jp/v1/links/lk_**********************",
        "description": "リダイレクト型決済URL\n"
      },
      "Billing": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "請求ID\n",
            "minLength": 1,
            "maxLength": 30
          },
          "bill_type": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2,
            "description": "請求方式\n- `01`: インボイス\n- `02`: リダイレクト型決済\n- `03`: 決済（請求情報下書き）\n"
          },
          "status": {
            "type": "string",
            "description": "請求のステータス  \n- `DRAFT`: 下書き\n- `AWAITING_CUSTOMER_PAYMENT`: 支払い待ち\n- `PAID`: 支払い完了\n- `CANCELED`: キャンセル済\n",
            "minLength": 1,
            "maxLength": 25
          },
          "customer_id": {
            "type": "string",
            "description": "顧客（請求先）ID\n",
            "minLength": 1,
            "maxLength": 60
          },
          "customer_honorific": {
            "type": "string",
            "description": "顧客（請求先）敬称\n",
            "minLength": 1,
            "maxLength": 20
          },
          "customer": {
            "type": "object",
            "description": "顧客（請求先）情報\n",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 384,
                "description": "顧客（請求先）宛名"
              },
              "email": {
                "type": "string",
                "minLength": 1,
                "maxLength": 254,
                "description": "顧客（請求先）メールアドレス"
              },
              "addr_country": {
                "type": "string",
                "minLength": 1,
                "maxLength": 3,
                "description": "顧客（請求先）住所の国コード"
              },
              "addr_state": {
                "type": "string",
                "minLength": 1,
                "maxLength": 3,
                "description": "顧客（請求先）住所の都道府県コード"
              },
              "addr_city": {
                "type": "string",
                "minLength": 1,
                "maxLength": 50,
                "description": "顧客（請求先）住所の市区町村"
              },
              "addr_line_1": {
                "type": "string",
                "minLength": 1,
                "maxLength": 50,
                "description": "顧客（請求先）住所の町名・番地"
              },
              "addr_line_2": {
                "type": "string",
                "minLength": 1,
                "maxLength": 50,
                "description": "顧客（請求先）住所の建物名・部屋番号"
              },
              "addr_line_3": {
                "type": "string",
                "minLength": 1,
                "maxLength": 50,
                "description": "顧客（請求先）住所 その他"
              },
              "addr_post_code": {
                "type": "string",
                "minLength": 1,
                "maxLength": 16,
                "description": "顧客（請求先）住所の郵便番号"
              }
            }
          },
          "customer_overwrite": {
            "type": "object",
            "description": "上書き顧客（請求先）情報",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 384,
                "description": "上書き顧客（請求先）宛名"
              },
              "email": {
                "type": "string",
                "minLength": 1,
                "maxLength": 254,
                "description": "上書き顧客（請求先）メールアドレス"
              },
              "addr_country": {
                "type": "string",
                "minLength": 1,
                "maxLength": 3,
                "description": "上書き顧客（請求先）住所の国コード"
              },
              "addr_state": {
                "type": "string",
                "minLength": 1,
                "maxLength": 3,
                "description": "上書き顧客（請求先）住所の都道府県コード"
              },
              "addr_city": {
                "type": "string",
                "minLength": 1,
                "maxLength": 50,
                "description": "上書き顧客（請求先）住所の市区町村"
              },
              "addr_line_1": {
                "type": "string",
                "minLength": 1,
                "maxLength": 50,
                "description": "上書き顧客（請求先）住所の町名・番地"
              },
              "addr_line_2": {
                "type": "string",
                "minLength": 1,
                "maxLength": 50,
                "description": "上書き顧客（請求先）住所の建物名・部屋番号"
              },
              "addr_line_3": {
                "type": "string",
                "minLength": 1,
                "maxLength": 50,
                "description": "上書き顧客（請求先）住所 その他"
              },
              "addr_post_code": {
                "type": "string",
                "minLength": 1,
                "maxLength": 16,
                "description": "上書き顧客（請求先）住所の郵便番号"
              }
            }
          },
          "issuer": {
            "type": "object",
            "description": "発行元事業者情報",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 150,
                "description": "発行元事業者名"
              },
              "invoice_registration_number": {
                "type": "string",
                "minLength": 1,
                "maxLength": 14,
                "description": "適格請求書発行事業者登録番号"
              },
              "email": {
                "type": "string",
                "minLength": 3,
                "maxLength": 254,
                "description": "発行元事業者のメールアドレス"
              },
              "addr_state": {
                "type": "string",
                "minLength": 1,
                "maxLength": 3,
                "description": "発行元事業者住所の都道府県コード"
              },
              "addr_city": {
                "type": "string",
                "minLength": 1,
                "maxLength": 50,
                "description": "発行元事業者住所の市区町村"
              },
              "addr_line_1": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100,
                "description": "発行元事業者住所の町名・番地"
              },
              "addr_line_2": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100,
                "description": "発行元事業者住所の建物名・部屋番号"
              },
              "addr_line_3": {
                "type": "string",
                "minLength": 1,
                "maxLength": 50,
                "description": "発行元事業者住所 その他"
              },
              "addr_post_code": {
                "type": "string",
                "minLength": 1,
                "maxLength": 8,
                "description": "発行元事業者住所の郵便番号"
              },
              "phone_number": {
                "type": "string",
                "minLength": 1,
                "maxLength": 15,
                "description": "発行元事業者の電話番号"
              }
            }
          },
          "issuer_overwrite": {
            "type": "object",
            "description": "上書き発行元事業者情報",
            "properties": {
              "email": {
                "type": "string",
                "minLength": 3,
                "maxLength": 254,
                "description": "発行元事業者のメールアドレス"
              },
              "addr_state": {
                "type": "string",
                "minLength": 1,
                "maxLength": 3,
                "description": "発行元事業者住所の都道府県コード"
              },
              "addr_city": {
                "type": "string",
                "minLength": 1,
                "maxLength": 50,
                "description": "発行元事業者住所の市区町村"
              },
              "addr_line_1": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100,
                "description": "発行元事業者住所の町名・番地"
              },
              "addr_line_2": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100,
                "description": "発行元事業者住所の建物名・部屋番号"
              },
              "addr_line_3": {
                "type": "string",
                "minLength": 1,
                "maxLength": 50,
                "description": "発行元事業者住所 その他"
              },
              "addr_post_code": {
                "type": "string",
                "minLength": 1,
                "maxLength": 8,
                "description": "発行元事業者住所の郵便番号"
              },
              "phone_number": {
                "type": "string",
                "minLength": 1,
                "maxLength": 15,
                "description": "発行元事業者の電話番号"
              }
            }
          },
          "issue_date": {
            "type": "string",
            "minLength": 1,
            "maxLength": 10,
            "description": "発行年月日 形式： `yyyy/MM/dd`"
          },
          "is_tax_included": {
            "type": "boolean",
            "description": "内税表記有無  \n  \n- `true`: 内税表記  \n- `false`: 外税表記 \n"
          },
          "due_date": {
            "type": "string",
            "minLength": 1,
            "maxLength": 10,
            "description": "支払期日 形式： `yyyy/MM/dd`"
          },
          "memo": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000,
            "description": "備考"
          },
          "client_field_1": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "description": "加盟店自由項目1"
          },
          "client_field_2": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "description": "加盟店自由項目2"
          },
          "client_field_3": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "description": "加盟店自由項目3"
          },
          "is_uncollectible": {
            "type": "boolean",
            "description": "回収不能フラグ"
          },
          "is_paid_externally": {
            "type": "boolean",
            "description": "M's PayBridge外支払フラグ \n"
          },
          "transaction_date": {
            "type": "string",
            "description": "支払完了日 形式： `yyyy/MM/dd`"
          },
          "total_amount": {
            "type": "string",
            "description": "合計金額"
          },
          "billing_total_amount": {
            "type": "string",
            "description": "合計請求金額"
          },
          "pay_types": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "利用可能な決済種別リスト"
          },
          "input_type": {
            "type": "string",
            "enum": [
              "amount"
            ],
            "description": "取引金額の入力方式\n- null：単価入力時(デフォルト)\n- `amount`：金額(税込)入力時\n"
          },
          "used_pay_type": {
            "type": "string",
            "description": "利用された決済種別"
          },
          "invoice": {
            "type": "object",
            "description": "インボイスに関する情報",
            "properties": {
              "invoice_url": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256,
                "description": "インボイス 請求ページURL"
              },
              "bill_pdf_url": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256,
                "description": "インボイス請求書PDFダウンロードURL"
              },
              "receipt_pdf_url": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256,
                "description": "インボイス領収書PDFダウンロードURL"
              },
              "invoice_number": {
                "type": "string",
                "minLength": 1,
                "maxLength": 30,
                "description": "請求番号"
              },
              "lines": {
                "type": "array",
                "description": "取引内容",
                "items": {
                  "type": "object",
                  "properties": {
                    "date": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 10,
                      "description": "日付 形式： `yyyy/MM/dd`"
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200,
                      "description": "品目"
                    },
                    "unit_price": {
                      "type": "number",
                      "minLength": 1,
                      "maxLength": 10,
                      "description": "単価"
                    },
                    "quantity": {
                      "type": "number",
                      "minLength": 1,
                      "maxLength": 10,
                      "maximum": 2147483647,
                      "description": "数量"
                    },
                    "tax_rate": {
                      "type": "number",
                      "minLength": 1,
                      "maxLength": 3,
                      "description": "適用税率（%）"
                    },
                    "tax_included_amount": {
                      "type": "number",
                      "minLength": 1,
                      "maxLength": 14,
                      "description": "税込金額"
                    }
                  }
                }
              },
              "card": {
                "type": "object",
                "description": "カード決済情報",
                "properties": {
                  "job_code": {
                    "type": "string",
                    "description": "処理区分"
                  },
                  "tds_type": {
                    "type": "string",
                    "description": "3DS利用種別"
                  },
                  "td_tenant_name": {
                    "type": "string",
                    "description": "3Dセキュア表示店舗名"
                  },
                  "tds2_type": {
                    "type": "string",
                    "description": "3DS2非対応時設定"
                  },
                  "tds2_ch_acc_change": {
                    "type": "string",
                    "description": "3DSリクエスター アカウント最終更新日"
                  },
                  "tds2_ch_acc_date": {
                    "type": "string",
                    "description": "3DSリクエスター アカウント開設日"
                  },
                  "tds2_ch_acc_pw_change": {
                    "type": "string",
                    "description": "3DSリクエスター アカウントパスワード変更日"
                  },
                  "tds2_nb_purchase_account": {
                    "type": "string",
                    "description": "3DSリクエスター 購入アカウント数"
                  },
                  "tds2_payment_acc_age": {
                    "type": "string",
                    "description": "3DSリクエスター 支払いアカウント年齢"
                  },
                  "tds2_provision_attempts_day": {
                    "type": "string",
                    "description": "3DSリクエスター 1日あたりの提供試行回数"
                  },
                  "tds2_ship_address_usage": {
                    "type": "string",
                    "description": "3DSリクエスター 配送先住所使用日"
                  },
                  "tds2_ship_name_ind": {
                    "type": "string",
                    "description": "3DSリクエスター 配送先名インジケータ"
                  },
                  "tds2_suspicious_acc_activity": {
                    "type": "string",
                    "description": "3DSリクエスター 不審なアカウント活動"
                  },
                  "tds2_txn_activity_day": {
                    "type": "string",
                    "description": "3DSリクエスター 1日あたりの取引活動"
                  },
                  "tds2_txn_activity_year": {
                    "type": "string",
                    "description": "3DSリクエスター 1年あたりの取引活動"
                  },
                  "tds2_three_ds_req_auth_data": {
                    "type": "string",
                    "description": "3DSリクエスター 認証データ"
                  },
                  "tds2_three_ds_req_auth_method": {
                    "type": "string",
                    "description": "3DSリクエスター 認証方法"
                  },
                  "tds2_three_ds_req_auth_timestamp": {
                    "type": "string",
                    "description": "3DSリクエスター 認証タイムスタンプ"
                  },
                  "tds2_addr_match": {
                    "type": "string",
                    "description": "3DSリクエスター 住所一致"
                  },
                  "tds2_bill_addr_city": {
                    "type": "string",
                    "description": "3DSリクエスター 請求先市区町村"
                  },
                  "tds2_bill_addr_country": {
                    "type": "string",
                    "description": "3DSリクエスター 請求先国"
                  },
                  "tds2_bill_addr_line_1": {
                    "type": "string",
                    "description": "3DSリクエスター 請求先住所1"
                  },
                  "tds2_bill_addr_line_2": {
                    "type": "string",
                    "description": "3DSリクエスター 請求先住所2"
                  },
                  "tds2_bill_addr_line_3": {
                    "type": "string",
                    "description": "3DSリクエスター 請求先住所3"
                  },
                  "tds2_bill_addr_post_code": {
                    "type": "string",
                    "description": "3DSリクエスター 請求先郵便番号"
                  },
                  "tds2_bill_addr_state": {
                    "type": "string",
                    "description": "3DSリクエスター 請求先都道府県"
                  },
                  "tds2_email": {
                    "type": "string",
                    "description": "3DSリクエスター メールアドレス"
                  },
                  "tds2_home_phone_cc": {
                    "type": "string",
                    "description": "3DSリクエスター 自宅電話国番号（+を含まない）"
                  },
                  "tds2_home_phone_no": {
                    "type": "string",
                    "description": "3DSリクエスター 自宅電話番号"
                  },
                  "tds2_mobile_phone_cc": {
                    "type": "string",
                    "description": "3DSリクエスター 携帯電話国番号（+を含まない）"
                  },
                  "tds2_mobile_phone_no": {
                    "type": "string",
                    "description": "3DSリクエスター 携帯電話番号"
                  },
                  "tds2_work_phone_cc": {
                    "type": "string",
                    "description": "3DSリクエスター 勤務先電話国番号（+を含まない）"
                  },
                  "tds2_work_phone_no": {
                    "type": "string",
                    "description": "3DSリクエスター 勤務先電話番号"
                  },
                  "tds2_ship_addr_city": {
                    "type": "string",
                    "description": "3DSリクエスター 配送先市区町村"
                  },
                  "tds2_ship_addr_country": {
                    "type": "string",
                    "description": "3DSリクエスター 配送先国"
                  },
                  "tds2_ship_addr_line_1": {
                    "type": "string",
                    "description": "3DSリクエスター 配送先住所1"
                  },
                  "tds2_ship_addr_line_2": {
                    "type": "string",
                    "description": "3DSリクエスター 配送先住所2"
                  },
                  "tds2_ship_addr_line_3": {
                    "type": "string",
                    "description": "3DSリクエスター 配送先住所3"
                  },
                  "tds2_ship_addr_post_code": {
                    "type": "string",
                    "description": "3DSリクエスター 配送先郵便番号"
                  },
                  "tds2_ship_addr_state": {
                    "type": "string",
                    "description": "3DSリクエスター 配送先都道府県"
                  },
                  "tds2_delivery_email_address": {
                    "type": "string",
                    "description": "3DSリクエスター 配送先メールアドレス"
                  },
                  "tds2_delivery_timeframe": {
                    "type": "string",
                    "description": "3DSリクエスター 配送時間枠"
                  },
                  "tds2_gift_card_amount": {
                    "type": "string",
                    "description": "3DSリクエスター ギフトカード金額"
                  },
                  "tds2_gift_card_count": {
                    "type": "string",
                    "description": "3DSリクエスター ギフトカード枚数"
                  },
                  "tds2_gift_card_curr": {
                    "type": "string",
                    "description": "3DSリクエスター ギフトカード通貨"
                  },
                  "tds2_pre_order_date": {
                    "type": "string",
                    "description": "3DSリクエスター 予約注文日"
                  },
                  "tds2_pre_order_purchase_ind": {
                    "type": "string",
                    "description": "3DSリクエスター 予約注文インジケータ"
                  },
                  "tds2_reorder_items_ind": {
                    "type": "string",
                    "description": "3DSリクエスター 再注文インジケータ"
                  },
                  "tds2_ship_ind": {
                    "type": "string",
                    "description": "3DSリクエスター 配送インジケータ"
                  },
                  "tds2_recurring_expiry": {
                    "type": "string",
                    "description": "3DSリクエスター 定期支払い有効期限"
                  },
                  "tds2_recurring_frequency": {
                    "type": "string",
                    "description": "3DSリクエスター 定期支払い頻度"
                  }
                }
              },
              "virtual_account": {
                "type": "object",
                "description": "銀行振込（バーチャル口座）情報",
                "properties": {
                  "reference_bill_id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 30,
                    "description": "バーチャル口座を引き継ぐ請求ID"
                  },
                  "use_exact_deposit_amount": {
                    "type": "boolean",
                    "enum": [
                      true,
                      false
                    ],
                    "description": "入金可能額設定利用フラグ\\\nこの決済で使用されるバーチャル口座に対して入金可能額を設定するかどうかを示すフラグです。\n設定した場合、購入者は請求金額以外の金額を振り込むことができなくなります。\n\n- `true`: 入金可能額を設定する\n- `false`: 入金可能額を設定しない（デフォルト）\n"
                  }
                }
              },
              "embedded_virtual_account": {
                "type": "object",
                "description": "このインボイス情報に対して発行された銀行振込（バーチャル口座）情報\nこのバーチャル口座に対して振込を行うことでインボイスによる請求に対して支払いできます。\n",
                "properties": {
                  "virtual_account_id": {
                    "type": "string",
                    "description": "バーチャル口座ID"
                  },
                  "branch_name": {
                    "type": "string",
                    "description": "支店名"
                  },
                  "branch_code": {
                    "type": "string",
                    "description": "支店コード"
                  },
                  "account_number": {
                    "type": "string",
                    "description": "口座番号"
                  },
                  "account_name": {
                    "type": "string",
                    "description": "口座名義"
                  }
                }
              },
              "bill_mail_send_flag": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1,
                "description": "請求書メール送信フラグ\n\n- `0`: メールを送信しない（デフォルト）\n- `1`: メールを送信する\n"
              },
              "receipt_mail_send_flag": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1,
                "description": "領収書メール送信フラグ\n\n- `0`: メールを送信しない（デフォルト）\n- `1`: メールを送信する\n"
              },
              "underpayment_mail_send_flag": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1,
                "description": "差額請求メール送信フラグ\n\n- `0`: メールを送信しない（デフォルト）\n- `1`: メールを送信する\n"
              },
              "directdebit": {
                "type": "object",
                "description": "口座振替情報\n",
                "properties": {
                  "payment_method_id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 25,
                    "description": "決済手段ID"
                  },
                  "target_date": {
                    "type": "string",
                    "description": "振替指定日\n形式：`YYYY/MM/DD`\n"
                  },
                  "remarks": {
                    "type": "string",
                    "description": "ご利用明細表示内容"
                  },
                  "settlement_route": {
                    "type": "string",
                    "description": "振替サービス\n- `1`: 口座振替（5・6・23・27日）\n- `2`: 口座振替（1・5・20・26日）\n"
                  },
                  "directdebit_failure_mail_send_flag": {
                    "type": "string",
                    "enum": [
                      "0",
                      "1"
                    ],
                    "description": "口座振替失敗メール送信フラグ\n\n口座振替失敗時に請求元に対し通知メールを送るか決定するフラグ\n\n- `0`：メールを送信しない（デフォルト）\n- `1`：メールを送信する\n"
                  }
                }
              },
              "payee_account": {
                "type": "object",
                "description": "銀行振込（指定口座）情報\n",
                "properties": {
                  "payment_method_ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "利用可能な決済手段IDリスト"
                  },
                  "used_payment_method_id": {
                    "type": "string",
                    "description": "使用した決済手段ID"
                  }
                }
              },
              "embedded_directdebit": {
                "type": "object",
                "description": "このインボイス情報に対する口座振替の口座情報 この口座から引き落とし完了することでインボイスによる請求に対して支払いできます。\n",
                "properties": {
                  "bank_name": {
                    "type": "string",
                    "description": "金融機関名"
                  },
                  "bank_code": {
                    "type": "string",
                    "description": "金融機関コード"
                  },
                  "branch_name": {
                    "type": "string",
                    "description": "支店名"
                  },
                  "branch_code": {
                    "type": "string",
                    "description": "支店コード"
                  },
                  "account_type": {
                    "type": "string",
                    "description": "預金種別"
                  },
                  "account_number": {
                    "type": "string",
                    "description": "口座番号"
                  },
                  "account_name_kana": {
                    "type": "string",
                    "description": "口座名義人名（カナ）"
                  }
                }
              },
              "embedded_payee_accounts": {
                "type": "array",
                "description": "このインボイス情報に対する銀行振込（指定口座）口座情報 この口座情報に対して振込を行うことでインボイスによる請求に対して支払いできます。\n",
                "items": {
                  "type": "object",
                  "properties": {
                    "payment_method_id": {
                      "type": "string",
                      "description": "決済手段ID"
                    },
                    "bank_name": {
                      "type": "string",
                      "description": "金融機関名"
                    },
                    "bank_code": {
                      "type": "string",
                      "description": "金融機関コード"
                    },
                    "branch_name": {
                      "type": "string",
                      "description": "支店名"
                    },
                    "branch_code": {
                      "type": "string",
                      "description": "支店コード"
                    },
                    "account_type": {
                      "type": "string",
                      "description": "預金種別"
                    },
                    "account_number": {
                      "type": "string",
                      "description": "口座番号"
                    },
                    "account_name_kana": {
                      "type": "string",
                      "description": "口座名義人名（カナ）"
                    },
                    "display_number": {
                      "type": "string",
                      "description": "表示順序"
                    }
                  }
                }
              }
            }
          },
          "link_type": {
            "type": "object",
            "description": "リダイレクト型決済に関する情報",
            "properties": {
              "link_url": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/link_url"
                  }
                ]
              },
              "success_url": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/success_url"
                  }
                ]
              },
              "cancel_url": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/cancel_url"
                  }
                ]
              },
              "expire": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/PaymentSession_properties-expire"
                  }
                ]
              },
              "shop_service_name": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/shop_service_name"
                  }
                ]
              },
              "receiver_mail": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/receiver_mail"
                  }
                ]
              },
              "mail_customer_name": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/mail_customer_name"
                  }
                ]
              },
              "guide_mail_send_flag": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/guide_mail_send_flag"
                  }
                ]
              },
              "thanks_mail_send_flag": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/thanks_mail_send_flag"
                  }
                ]
              },
              "shop_mail_template_id": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/shop_mail_template_id"
                  }
                ]
              },
              "transaction": {
                "type": "object",
                "properties": {
                  "amount": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "description": "利用金額"
                  },
                  "tax": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "description": "税送料"
                  }
                }
              },
              "card": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/PaymentSession_properties-card"
                  }
                ]
              },
              "konbini": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/konbini"
                  }
                ]
              },
              "paypay": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/paypay"
                  }
                ]
              },
              "virtual_account": {
                "type": "object",
                "description": "銀行振込（バーチャル口座）に関する情報\n",
                "properties": {
                  "reference_bill_id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 30,
                    "description": "バーチャル口座を引き継ぐ請求ID"
                  },
                  "use_exact_deposit_amount": {
                    "type": "boolean",
                    "enum": [
                      true,
                      false
                    ],
                    "description": "入金可能額設定利用フラグ\\\nこの決済で使用されるバーチャル口座に対して入金可能額を設定するかどうかを示すフラグです。\n設定した場合、購入者は請求金額以外の金額を振り込むことができなくなります。\n\n- `true`: 入金可能額を設定する\n- `false`: 入金可能額を設定しない（デフォルト）\n"
                  },
                  "virtualaccount_reception_url": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/virtualaccount_reception_url"
                      }
                    ]
                  },
                  "payment_term_day": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/PaymentSession.VirtualAccount_properties-payment_term_day"
                      }
                    ]
                  },
                  "virtualaccount_reception_mail_send_flag": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/virtualaccount_reception_mail_send_flag"
                      }
                    ]
                  }
                }
              }
            }
          },
          "draft": {
            "type": "object",
            "description": "下書き情報",
            "properties": {
              "invoice_number": {
                "type": "string",
                "minLength": 1,
                "maxLength": 30,
                "description": "請求番号"
              },
              "billing_total_amount": {
                "type": "string",
                "minLength": 1,
                "maxLength": 14,
                "description": "合計金額\n"
              },
              "lines": {
                "type": "array",
                "description": "取引内容\n",
                "items": {
                  "type": "object",
                  "properties": {
                    "date": {
                      "type": "string",
                      "minLength": 10,
                      "maxLength": 10,
                      "description": "日付 形式： `yyyy/MM/dd`"
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200,
                      "description": "品目"
                    },
                    "unit_price": {
                      "type": "number",
                      "minLength": 1,
                      "maxLength": 10,
                      "description": "単価"
                    },
                    "quantity": {
                      "type": "number",
                      "minLength": 1,
                      "maxLength": 10,
                      "maximum": 2147483647,
                      "description": "数量"
                    },
                    "tax_rate": {
                      "type": "number",
                      "minLength": 1,
                      "maxLength": 3,
                      "description": "適用税率（%）"
                    }
                  }
                }
              }
            }
          },
          "billing_file_import_entry_id": {
            "type": "string",
            "description": "請求インポートファイル読み込みエントリーID"
          },
          "trade_client_field_1": {
            "type": "string",
            "nullable": true,
            "description": "決済情報自由項目 1"
          },
          "trade_client_field_2": {
            "type": "string",
            "nullable": true,
            "description": "決済情報自由項目 2"
          },
          "trade_client_field_3": {
            "type": "string",
            "nullable": true,
            "description": "決済情報自由項目 3"
          },
          "created": {
            "type": "string",
            "description": "作成日時 形式： `yyyy/MM/dd HH:mm:ss.SSS`"
          },
          "updated": {
            "type": "string",
            "description": "更新日時 形式： `yyyy/MM/dd HH:mm:ss.SSS`"
          }
        }
      },
      "Billing.Creating.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Billing"
          }
        ]
      },
      "Billing.CompanyStamp": {
        "type": "object",
        "properties": {
          "company_stamp_data": {
            "type": "string",
            "nullable": true,
            "description": "社印データをBase64エンコードした文字列"
          }
        }
      },
      "BillingDetail.Retrieving.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Billing"
          },
          {
            "$ref": "#/components/schemas/Billing.CompanyStamp"
          }
        ]
      },
      "BillingDetail.Updating.Request": {
        "type": "object",
        "properties": {
          "is_uncollectible": {
            "type": "boolean",
            "description": "回収困難フラグ"
          },
          "bill_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/bill_type"
              }
            ]
          },
          "customer_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Billing_properties-customer_id"
              }
            ]
          },
          "customer_honorific": {
            "allOf": [
              {
                "$ref": "#/components/schemas/customer_honorific"
              }
            ]
          },
          "customer_overwrite": {
            "allOf": [
              {
                "$ref": "#/components/schemas/customer_overwrite"
              }
            ]
          },
          "issuer_overwrite": {
            "allOf": [
              {
                "$ref": "#/components/schemas/issuer_overwrite"
              }
            ]
          },
          "is_tax_included": {
            "allOf": [
              {
                "$ref": "#/components/schemas/is_tax_included"
              }
            ]
          },
          "due_date": {
            "allOf": [
              {
                "$ref": "#/components/schemas/due_date"
              }
            ]
          },
          "memo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/memo"
              }
            ]
          },
          "client_field_1": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Billing_properties-client_field_1"
              }
            ]
          },
          "client_field_2": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Billing_properties-client_field_2"
              }
            ]
          },
          "client_field_3": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Billing_properties-client_field_3"
              }
            ]
          },
          "pay_types": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "Card",
                "Konbini",
                "Paypay",
                "Virtualaccount",
                "Directdebit",
                "Payeeaccount"
              ]
            },
            "description": "ショップで利用可能な決済種別のリスト  \n利用可能にする決済種別全てを指定してください。  \n  \n- `Card`：カード決済\n- `Konbini`：コンビニ決済 (bill_type = 01(インボイス)の場合は指定不可）\n- `Paypay`：PayPay (bill_type = 01(インボイス)の場合は指定不可）\n- `Virtualaccount`：銀行振込（バーチャル口座）決済\n- `Directdebit`：口座振替決済 (bill_type = 02(リダイレクト型決済)の場合は指定不可）\n- `Payeeaccount`：銀行振込（指定口座）決済 (bill_type = 02(リダイレクト型決済)の場合は指定不可）\n"
          },
          "input_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/input_type"
              }
            ]
          },
          "invoice": {
            "type": "object",
            "description": "インボイス情報\n\nbill_type = 01(インボイス)用の設定情報\n",
            "properties": {
              "invoice_number": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/invoice_number"
                  }
                ]
              },
              "lines": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/lines"
                  }
                ]
              },
              "card": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/properties-card"
                  }
                ]
              },
              "virtual_account": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/virtual_account"
                  }
                ]
              },
              "bill_mail_send_flag": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/bill_mail_send_flag"
                  }
                ]
              },
              "receipt_mail_send_flag": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/receipt_mail_send_flag"
                  }
                ]
              },
              "underpayment_mail_send_flag": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/underpayment_mail_send_flag"
                  }
                ]
              },
              "directdebit": {
                "type": "object",
                "description": "口座振替情報\n",
                "properties": {
                  "payment_method_id": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/properties-payment_method_id"
                      }
                    ]
                  },
                  "target_date": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/properties-target_date"
                      }
                    ]
                  },
                  "remarks": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/properties-remarks"
                      }
                    ]
                  },
                  "directdebit_failure_mail_send_flag": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/directdebit_failure_mail_send_flag"
                      }
                    ]
                  }
                }
              },
              "payee_account": {
                "type": "object",
                "description": "銀行振込（指定口座）情報\n",
                "properties": {
                  "payment_method_ids": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/payment_method_ids"
                      }
                    ]
                  }
                }
              }
            }
          },
          "link_type": {
            "type": "object",
            "description": "リダイレクト型決済情報\n\nbill_type = 02(リダイレクト型決済)用の設定情報\n",
            "properties": {
              "success_url": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/link_type-properties-success_url"
                  }
                ]
              },
              "cancel_url": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/link_type-properties-cancel_url"
                  }
                ]
              },
              "expire": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/link_type-properties-expire"
                  }
                ]
              },
              "shop_service_name": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/link_type-properties-shop_service_name"
                  }
                ]
              },
              "receiver_mail": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/link_type-properties-receiver_mail"
                  }
                ]
              },
              "mail_customer_name": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/link_type-properties-mail_customer_name"
                  }
                ]
              },
              "guide_mail_send_flag": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/link_type-properties-guide_mail_send_flag"
                  }
                ]
              },
              "thanks_mail_send_flag": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/properties-thanks_mail_send_flag"
                  }
                ]
              },
              "shop_mail_template_id": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/link_type-properties-shop_mail_template_id"
                  }
                ]
              },
              "transaction": {
                "type": "object",
                "properties": {
                  "amount": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "description": "利用金額"
                  },
                  "tax": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "description": "税送料"
                  }
                }
              },
              "card": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/link_type-properties-card"
                  }
                ]
              },
              "konbini": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/properties-konbini"
                  }
                ]
              },
              "paypay": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/properties-paypay"
                  }
                ]
              },
              "virtual_account": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/properties-virtual_account"
                  }
                ]
              }
            }
          },
          "draft": {
            "type": "object",
            "description": "下書き情報\n\nbill_type = 03(決済（請求情報下書き）)用の設定情報\n",
            "properties": {
              "invoice_number": {
                "type": "string",
                "minLength": 1,
                "maxLength": 30,
                "description": "請求番号\n指定しないまま請求書を開始した場合、自動採番されます。\n"
              },
              "billing_total_amount": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/properties-billing_total_amount"
                  }
                ]
              },
              "lines": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/properties-lines"
                  }
                ]
              }
            }
          }
        }
      },
      "BillingDetail.Updating.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Billing"
          }
        ]
      },
      "BillingDetail.Deleting.Response": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "請求ID\n",
            "minLength": 1,
            "maxLength": 30
          },
          "delete_flag": {
            "type": "string",
            "description": "削除フラグ  \n  \n - `1`: 成功\n"
          }
        }
      },
      "BillingDetail.Opening.Request": {
        "type": "object",
        "properties": {
          "invoice": {
            "type": "object",
            "description": "インボイス情報",
            "properties": {
              "bill_mail_send_flag": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1,
                "description": "請求書メール送信フラグ  \n登録や更新で設定している場合も、こちらの設定が優先されます。  \n\n- `0`: メールを送信しない（デフォルト）  \n- `1`: メールを送信する  \n"
              },
              "receipt_mail_send_flag": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1,
                "description": "領収書メール送信フラグ  \n登録や更新で設定している場合も、こちらの設定が優先されます。  \n\n- `0`: メールを送信しない（デフォルト）  \n- `1`: メールを送信する  \n"
              },
              "underpayment_mail_send_flag": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1,
                "description": "差額請求メール送信フラグ  \n登録や更新で設定している場合も、こちらの設定が優先されます。  \n\n- `0`: メールを送信しない（デフォルト）  \n- `1`: メールを送信する  \n"
              }
            }
          }
        }
      },
      "BillingDetail.Opening.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Billing"
          }
        ]
      },
      "BillingDetail.Canceling.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Billing"
          }
        ]
      },
      "BillingDetail.Marking.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Billing"
          }
        ]
      },
      "BillingDetail.Refresh.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Billing"
          }
        ]
      },
      "Billing.PayeeAccount.AmountRegistering.Request": {
        "type": "object",
        "required": [
          "amount"
        ],
        "properties": {
          "amount": {
            "type": "string",
            "minLength": 1,
            "maxLength": 14,
            "description": "入金額（[請求 支払完了（銀行振込（指定口座））API](#operation/captureBillingPayeeAccount)を実行するまでは更新可能）\n"
          }
        }
      },
      "Billing.PayeeAccount.AmountRegistering.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Billing"
          }
        ]
      },
      "Billing.PayeeAccount.Capturing.Request": {
        "type": "object",
        "required": [
          "payment_method_id"
        ],
        "properties": {
          "payment_method_id": {
            "type": "string",
            "minLength": 25,
            "maxLength": 25,
            "pattern": "^pm_[A-Za-z0-9_-]{22}$",
            "example": "pm_**********************",
            "description": "ショップ決済手段ID（入金口座）\n"
          },
          "transaction_date": {
            "type": "string",
            "minLength": 10,
            "maxLength": 10,
            "description": "取引日 形式：`yyyy/MM/dd`\\\n未指定の場合は API 実行日が設定されます。\n"
          }
        }
      },
      "Billing.PayeeAccount.Capturing.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Billing"
          }
        ]
      },
      "DepositStatusCode": {
        "type": "integer",
        "enum": [
          3001,
          3002,
          3003,
          3004,
          3005,
          3006,
          3007,
          3008,
          3009,
          3010,
          3011,
          3012,
          3013
        ],
        "description": "入金ステータス\n\n- `3001`: 金額確定前<br /><span class=\"smallText\">この集計期間中の売上入金に関してまだ集計中であり金額が確定していない状態。入金はされていません。</span>\n- `3002`: 金額確定済み<br /><span class=\"smallText\">この集計期間中の売上入金の金額が確定した状態。入金はされていません。</span>\n- `3003`: 入金済み<br /><span class=\"smallText\">この集計期間中のM's PayBridgeからの売上の入金が完了した状態。</span>\n- `3004`: 入金停止中<br /><span class=\"smallText\">この集計期間中のM's PayBridgeからの売上の入金に際し何らかの懸念事項があり差し止めている状態。解消後M's PayBridgeはできるだけ早く入金を再試行します。</span>\n- `3005`: 入金エラー<br /><span class=\"smallText\">この集計期間中のM's PayBridgeからの売上の入金に何らかの理由で失敗した状態。解消後M's PayBridgeはできるだけ早く入金を再試行します。</span>\n- `3006`: 請求中<br /><span class=\"smallText\">集計期間中のキャンセル金額が売上金額を上回り、M's PayBridgeからショップへ請求している状態。</span>\n- `3007`: 請求エラー<br /><span class=\"smallText\">集計期間中のキャンセル金額が売上金額を上回り、M's PayBridgeからショップへ請求が必要になったものの何らかのエラーにより失敗した状態。</span>\n- `3008`: 請求停止中<br /><span class=\"smallText\">集計期間中のキャンセル金額が売上金額を上回り、M's PayBridgeからショップへ請求が必要になったものの何らかの理由により差し止めている状態。</span>\n- `3009`: 支払済み<br /><span class=\"smallText\">集計期間中のキャンセル金額が売上金額を上回り発生したM's PayBridgeからショップへの請求に対する入金が確認できた状担。</span>\n- `3010`: 本人確認書類未確認<br /><span class=\"smallText\">この集計期間中のM's PayBridgeからの売上の入金に際し本人確認書類の提出が確認できないため差し止めている状態。解消後M's PayBridgeはできるだけ早く入金を再試行します。</span>\n- `3011`: 精算済み<br /><span class=\"smallText\">売上が0円のまま入金額が確定した状態。</span>\n- `3012`: 入金開始前<br /><span class=\"smallText\">初回入金がまだ実施されていない状態。</span>\n- `3013`: 契約不成立<br /><span class=\"smallText\">M's PayBridgeとの契約が不成立となった状態。</span>\n"
      },
      "Account.ListRetrieving.QueryParams": {
        "type": "object",
        "properties": {
          "processed": {
            "type": "string",
            "nullable": true,
            "example": "2022/05",
            "description": "確定日（入金サイクルの締め日）を月単位で絞り込みます。\\\n形式： `yyyy/MM`\n"
          },
          "status": {
            "$ref": "#/components/schemas/DepositStatusCode",
            "nullable": true,
            "description": "入金ステータス\\\nカンマ区切りにすることで複数指定（OR検索）できます。\n\n- `3001`: 金額確定前\n- `3002`: 金額確定済み\n- `3003`: 入金済み\n- `3004`: 入金停止中\n- `3005`: 入金エラー\n- `3006`: 請求中\n- `3007`: 請求エラー\n- `3008`: 請求停止中\n- `3009`: 支払済み\n- `3010`: 本人確認書類未確認\n- `3011`: 精算済み\n- `3012`: 入金開始前\n- `3013`: 契約不成立\n"
          },
          "scheduled_from": {
            "type": "string",
            "format": "date",
            "nullable": true,
            "example": "2022/05/01",
            "description": "入金予定日の範囲指定（開始日）を指定します。\\\nこの日付以降に入金が行われた売上入金情報を検索できます。\\\n形式： `yyyy/MM/dd`\n"
          },
          "scheduled_to": {
            "type": "string",
            "format": "date",
            "nullable": true,
            "example": "2022/05/31",
            "description": "入金予定日の範囲指定（終了日）を指定します。\\\nこの日付以前に入金が行われた売上入金情報を検索できます。\\\n形式： `yyyy/MM/dd`\n"
          }
        }
      },
      "Account_properties-id": {
        "type": "string",
        "minLength": 32,
        "maxLength": 32,
        "example": "sales_s_***********_******_*****",
        "description": "売上入金ID\n"
      },
      "account_id": {
        "type": "integer",
        "minLength": 7,
        "maxLength": 7,
        "example": 1234567,
        "description": "精算ID\n"
      },
      "shop_id": {
        "type": "string",
        "minLength": 13,
        "maxLength": 13,
        "example": "s_***********",
        "description": "ショップID\n"
      },
      "scheduled_deposit_date": {
        "type": "string",
        "nullable": false,
        "example": "2022/05/16 23:59",
        "description": "売上入金 入金予定日\\\n形式： `yyyy/MM/dd HH:MM`\n"
      },
      "aggregate_term_start": {
        "type": "string",
        "nullable": false,
        "example": "2022/05/16 23:59",
        "description": "売上入金 集計期間の開始日\\\n形式： `yyyy/MM/dd HH:MM`\n"
      },
      "aggregate_term_end": {
        "type": "string",
        "nullable": false,
        "example": "2022/05/16 23:59",
        "description": "売上入金 集計期間の終了日\\\n形式： `yyyy/MM/dd HH:MM`\n"
      },
      "deposit_date": {
        "type": "string",
        "nullable": true,
        "example": "2022/05/16 23:59",
        "description": "売上入金 入金実績日\\\n形式： `yyyy/MM/dd HH:MM`\n"
      },
      "payment_deadline": {
        "type": "string",
        "nullable": true,
        "example": null,
        "description": "（請求が発生した場合）支払期限日\\\n形式： `yyyy/MM/dd HH:MM`\n"
      },
      "payment_completion_date": {
        "type": "string",
        "nullable": true,
        "example": null,
        "description": "（請求が発生した場合）請求日\\\n形式： `yyyy/MM/dd HH:MM`\n"
      },
      "count": {
        "type": "integer",
        "nullable": false,
        "example": 3,
        "description": "この売上入金に含まれる売上入金詳細の件数\n"
      },
      "bank_transfer_fee": {
        "type": "integer",
        "format": "int64",
        "nullable": false,
        "example": 0,
        "description": "振込手数料\n"
      },
      "Account_properties-total_amount": {
        "type": "integer",
        "format": "int64",
        "nullable": false,
        "example": 1000,
        "description": "この売上入金において精算の対象となった取引の総額。\n"
      },
      "fee_amount": {
        "type": "integer",
        "format": "int64",
        "nullable": false,
        "example": 30,
        "description": "この売上入金において精算の対象となった取引にかかるM's PayBridgeへの手数料\n"
      },
      "deposit_amount": {
        "type": "integer",
        "format": "int64",
        "nullable": false,
        "example": 568,
        "description": "売上入金 入金額\n\nショップに入金される（入金が予定されている）売上金額です。\\\n精算金額（`settlement_amount`）から振込手数料（`bank_transfer_fee`）を引いた金額に一致します。\n"
      },
      "platform_fee_amount": {
        "type": "integer",
        "format": "int64",
        "nullable": false,
        "example": 0,
        "description": "この売上入金において精算の対象となった取引にかかるプラットフォーム利用料\\\n※ テナントのみ\n"
      },
      "platform_fee_tax_amount": {
        "type": "integer",
        "format": "int64",
        "nullable": false,
        "example": 0,
        "description": "この売上入金において精算の対象となった取引にかかるプラットフォーム利用料の消費税\\\n※ テナントのみ\n"
      },
      "AccountListItem": {
        "type": "object",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Account_properties-id"
              }
            ]
          },
          "account_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/account_id"
              }
            ]
          },
          "shop_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/shop_id"
              }
            ]
          },
          "scheduled_deposit_date": {
            "allOf": [
              {
                "$ref": "#/components/schemas/scheduled_deposit_date"
              }
            ]
          },
          "aggregate_term_start": {
            "allOf": [
              {
                "$ref": "#/components/schemas/aggregate_term_start"
              }
            ]
          },
          "aggregate_term_end": {
            "allOf": [
              {
                "$ref": "#/components/schemas/aggregate_term_end"
              }
            ]
          },
          "deposit_date": {
            "allOf": [
              {
                "$ref": "#/components/schemas/deposit_date"
              }
            ]
          },
          "payment_deadline": {
            "allOf": [
              {
                "$ref": "#/components/schemas/payment_deadline"
              }
            ]
          },
          "payment_completion_date": {
            "allOf": [
              {
                "$ref": "#/components/schemas/payment_completion_date"
              }
            ]
          },
          "status_code": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DepositStatusCode"
              }
            ]
          },
          "count": {
            "allOf": [
              {
                "$ref": "#/components/schemas/count"
              }
            ]
          },
          "bank_transfer_fee": {
            "allOf": [
              {
                "$ref": "#/components/schemas/bank_transfer_fee"
              }
            ]
          },
          "total_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Account_properties-total_amount"
              }
            ]
          },
          "fee_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/fee_amount"
              }
            ]
          },
          "deposit_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/deposit_amount"
              }
            ]
          },
          "platform_fee_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/platform_fee_amount"
              }
            ]
          },
          "platform_fee_tax_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/platform_fee_tax_amount"
              }
            ]
          },
          "created": {
            "allOf": [
              {
                "$ref": "#/components/schemas/created"
              }
            ]
          },
          "updated": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updated"
              }
            ]
          }
        }
      },
      "AccountListItem.list": {
        "type": "object",
        "properties": {
          "list": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AccountListItem"
            }
          }
        }
      },
      "Account.ListRetrieving.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/_ListResponse"
          },
          {
            "$ref": "#/components/schemas/AccountListItem.list"
          }
        ]
      },
      "AccountId_schema": {
        "type": "string",
        "example": "sales_s_***********_******_*****"
      },
      "DepositTargetBankAccountInfo": {
        "type": "object",
        "properties": {
          "corporate": {
            "type": "boolean",
            "example": true,
            "description": "法人口座か\n\n- `true`: 法人口座\n- `false`: 個人口座\n"
          },
          "recipient_corporate_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 150,
            "description": "入金先法人名\n"
          },
          "recipient_represntative_last_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 208,
            "description": "入金先代表者氏名 姓\n"
          },
          "recipient_represntative_first_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 208,
            "description": "入金先代表者氏名 名\n"
          },
          "bank_code": {
            "type": "string",
            "minLength": 1,
            "maxLength": 32,
            "description": "入金先 金融機関コード\n"
          },
          "bank_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 96,
            "description": "入金先 金融機関名\n"
          },
          "bank_name_kana": {
            "type": "string",
            "minLength": 1,
            "maxLength": 208,
            "description": "入金先 金融機関名 カナ\n"
          },
          "branch_code": {
            "type": "string",
            "minLength": 1,
            "maxLength": 32,
            "description": "入金先 支店コード\n"
          },
          "branch_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 208,
            "description": "入金先 支店名\n"
          },
          "branch_name_kana": {
            "type": "string",
            "minLength": 1,
            "maxLength": 208,
            "description": "入金先 支店名 カナ\n"
          },
          "account_kind": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "入金先 口座種別\n\n- `0`: 普通\n- `1`: 当座\n"
          },
          "account_number": {
            "type": "string",
            "minLength": 1,
            "maxLength": 208,
            "description": "入金先 口座番号\n"
          },
          "account_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 208,
            "description": "入金先 口座名義\n"
          }
        }
      },
      "Account": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 32,
            "maxLength": 32,
            "example": "sales_s_***********_******_*****",
            "description": "売上入金ID\n"
          },
          "account_id": {
            "type": "integer",
            "minLength": 7,
            "maxLength": 7,
            "example": 1234567,
            "description": "精算ID\n"
          },
          "shop_id": {
            "type": "string",
            "minLength": 13,
            "maxLength": 13,
            "example": "s_***********",
            "description": "ショップID\n"
          },
          "deposit_amount": {
            "type": "integer",
            "format": "int64",
            "nullable": false,
            "example": 568,
            "description": "売上入金 入金額\n\nショップに入金される（入金が予定されている）売上金額です。\\\n精算金額（`settlement_amount`）から振込手数料（`bank_transfer_fee`）を引いた金額に一致します。\n"
          },
          "deposit_date": {
            "type": "string",
            "nullable": true,
            "example": "2022/05/16 23:59",
            "description": "売上入金 入金実績日\\\n形式： `yyyy/MM/dd HH:MM`\n"
          },
          "scheduled_deposit_date": {
            "type": "string",
            "nullable": false,
            "example": "2022/05/16 23:59",
            "description": "売上入金 入金予定日\\\n形式： `yyyy/MM/dd HH:MM`\n"
          },
          "aggregate_term_start": {
            "type": "string",
            "nullable": false,
            "example": "2022/05/16 23:59",
            "description": "売上入金 集計期間の開始日\\\n形式： `yyyy/MM/dd HH:MM`\n"
          },
          "aggregate_term_end": {
            "type": "string",
            "nullable": false,
            "example": "2022/05/16 23:59",
            "description": "売上入金 集計期間の終了日\\\n形式： `yyyy/MM/dd HH:MM`\n"
          },
          "payment_deadline": {
            "type": "string",
            "nullable": true,
            "example": null,
            "description": "（請求が発生した場合）支払期限日\\\n形式： `yyyy/MM/dd HH:MM`\n"
          },
          "payment_completion_date": {
            "type": "string",
            "nullable": true,
            "example": null,
            "description": "（請求が発生した場合）請求日\\\n形式： `yyyy/MM/dd HH:MM`\n"
          },
          "status_code": {
            "$ref": "#/components/schemas/DepositStatusCode"
          },
          "count": {
            "type": "integer",
            "nullable": false,
            "example": 3,
            "description": "この売上入金に含まれる売上入金詳細の件数\n"
          },
          "settlement_amount": {
            "type": "integer",
            "format": "int64",
            "nullable": false,
            "example": 538,
            "description": "この売上入金において精算の対象となった取引の総額。\n"
          },
          "bank_transfer_fee": {
            "type": "integer",
            "format": "int64",
            "nullable": false,
            "example": 0,
            "description": "振込手数料\n"
          },
          "total_amount": {
            "type": "integer",
            "format": "int64",
            "nullable": false,
            "example": 1000,
            "description": "この売上入金において精算の対象となった取引の総額。\n"
          },
          "fee_amount": {
            "type": "integer",
            "format": "int64",
            "nullable": false,
            "example": 30,
            "description": "この売上入金において精算の対象となった取引にかかるM's PayBridgeへの手数料\n"
          },
          "taxable_fee_amount": {
            "type": "integer",
            "format": "int64",
            "nullable": false,
            "example": 400,
            "description": "課税対象手数料\t\n"
          },
          "nontaxable_fee_amount": {
            "type": "integer",
            "format": "int64",
            "nullable": false,
            "example": 400,
            "description": "非課税手数料\n"
          },
          "web_registration_fee_amount": {
            "type": "integer",
            "format": "int64",
            "nullable": false,
            "example": 400,
            "description": "この売上入金の精算期間中に発生した振替口座のWeb登録手数料\\\n※ 口座振替のみ\n"
          },
          "paper_registration_fee_amount": {
            "type": "integer",
            "format": "int64",
            "nullable": false,
            "example": 400,
            "description": "この売上入金の精算期間中に発生した振替口座の依頼書登録手数料\\\n※ 口座振替のみ\n"
          },
          "tax_amount": {
            "type": "integer",
            "format": "int64",
            "nullable": false,
            "example": 2,
            "description": "この売上入金において精算の対象となった取引にかかるM's PayBridgeへの手数料にかかる消費税\n"
          },
          "platform_fee_amount": {
            "type": "integer",
            "format": "int64",
            "nullable": false,
            "example": 0,
            "description": "この売上入金において精算の対象となった取引にかかるプラットフォーム利用料\\\n※ テナントのみ\n"
          },
          "platform_fee_tax_amount": {
            "type": "integer",
            "format": "int64",
            "nullable": false,
            "example": 0,
            "description": "この売上入金において精算の対象となった取引にかかるプラットフォーム利用料の消費税\\\n※ テナントのみ\n"
          },
          "platform_web_registration_fee_amount": {
            "type": "integer",
            "format": "int64",
            "nullable": false,
            "example": 0,
            "description": "売上入金 精算期間中に発生した、プラットフォームが設定した振替口座のWeb登録手数料\\\n※ 口座振替 かつ テナントのみ\n"
          },
          "platform_paper_registration_fee_amount": {
            "type": "integer",
            "format": "int64",
            "nullable": false,
            "example": 0,
            "description": "売上入金 精算期間中に発生した、プラットフォームが設定した振替口座の依頼書登録手数料\\\n※ 口座振替 かつ テナントのみ\n"
          },
          "created": {
            "allOf": [
              {
                "$ref": "#/components/schemas/created"
              }
            ]
          },
          "updated": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updated"
              }
            ]
          },
          "deposit_destination": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DepositTargetBankAccountInfo"
              }
            ],
            "description": "売上入金 入金先口座情報\n"
          }
        }
      },
      "Account.Retrieving.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Account"
          }
        ]
      },
      "AccountDetailTradeType": {
        "type": "integer",
        "enum": [
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8
        ],
        "example": 1,
        "description": "取引種別\\\n値によって、集計の際にこの売上入金明細の利用金額が加算されるか減算されるかが異なります。\n\n- `1`: 決済（加算）<br /><span class=\"smallText\">この売上入金明細はある決済1件に対し発生したものであることを示します。</span>\n- `2`: 返金（減算）<br /><span class=\"smallText\">この売上入金明細はある決済に対し発生したキャンセル1件に対し発生したものであることを示します。</span>\n- `3`: チャージバック（減算）<br /><span class=\"smallText\">この売上入金明細はある決済に対し発生したチャージバック1件に対し発生したものであることを示します。</span>\n- `4`: 調整（加算）<br /><span class=\"smallText\">この売上入金明細は何らかの理由で売上入金情報を調整するために発生したものであることを示します。減算のためマイナス値が返されることもあります。</span>\n- `5`: チャージバックの取消（加算）<br /><span class=\"smallText\">この売上入金明細はある決済に対し発生したチャージバック1件が取り消されたとき発生したものであることを示します。</span>\n- `6`: 口座振替失敗時の手数料（減算）<br /><span class=\"smallText\">この売上入金明細はある口座振替が失敗し、その決済手数料により発生したものであることを示します。</span>\n- `7`: 口座振替 振替用口座Web登録手数料（減算）<br /><span class=\"smallText\">この売上入金明細は振替用口座のWeb登録に成功し、登録に係る手数料により発生したものであることを示します。</span>\n- `8`: 口座振替 振替用口座依頼書登録手数料（減算）<br /><span class=\"smallText\">この売上入金明細は振替用口座の依頼書登録に成功し、登録に係る手数料により発生したものであることを示します。</span>\n- `10`: バーチャル口座 入金可能額設定手数料（減算）<br /><span class=\"smallText\">この売上入金明細はバーチャル口座の入金可能額設定に成功し、設定に係る手数料により発生したものであることを示します。</span>\n- `11`: バーチャル口座 顧客型固定バーチャル口座登録手数料（減算）<br /><span class=\"smallText\">この売上入金明細は顧客型固定バーチャル口座の登録に成功し、登録に係る手数料により発生したものであることを示します。</span>\n- `12`: バーチャル口座 一括決済未使用手数料（減算）<br /><span class=\"smallText\">この売上入金明細はバーチャル口座の一括決済機能において、実際には使用されなかった口座に対して発生した手数料であることを示します。</span>\n"
      },
      "AccountPaymentMethod": {
        "type": "string",
        "enum": [
          "VM",
          "JA",
          "KONBINI",
          "PayPay",
          "ApplepayVM",
          "ApplepayJA",
          "GooglepayVM",
          "GooglepayJA",
          "Directdebit",
          "DirectdebitMizuho",
          "Virtualaccount"
        ],
        "example": "VM",
        "description": "この売上入金明細に対応する決済で利用された決済手段\n\n- `VM`: カード決済（VISA / Mastercard）\n- `JA`: カード決済（JCB / American Express / Diners Club / Discover）\n- `KONBINI`: コンビニ決済\n- `Paypay`: PayPay決済\n- `ApplepayVM`: Apple Pay決済（VISA / Mastercard）\n- `ApplepayJA`: Apple Pay決済（JCB / American Express / Discover）\n- `GooglepayVM`: Google Pay決済（VISA / Mastercard）\n- `GooglepayJA`: Google Pay決済（JCB / American Express / Diners Club）\n- `Directdebit`: 口座振替（5・6・23・27日）\n- `DirectdebitMizuho`: 口座振替（1・5・20・26日）\n- `Virtualaccount`: 銀行振込（バーチャル口座）\n"
      },
      "AccountDetail": {
        "type": "object",
        "properties": {
          "detail_id": {
            "type": "integer",
            "example": 12345,
            "description": "売上入金詳細 ID\n"
          },
          "shop_id": {
            "type": "string",
            "example": "s_***********",
            "description": "ショップID\n"
          },
          "scheduled_deposit_date": {
            "type": "string",
            "example": "2017/12/01 00:00",
            "description": "入金予定日  \n形式： `yyyy/MM/dd HH:MM`\n"
          },
          "trade_type": {
            "$ref": "#/components/schemas/AccountDetailTradeType"
          },
          "payment_method": {
            "$ref": "#/components/schemas/AccountPaymentMethod"
          },
          "amount_correction_type": {
            "type": "string",
            "nullable": true,
            "example": "課金訂正内容",
            "description": "課金訂正内容\n"
          },
          "account_id": {
            "type": "integer",
            "example": 1234567,
            "description": "精算ID\n"
          },
          "order_id": {
            "type": "string",
            "nullable": true,
            "example": "o_**********************",
            "description": "オーダー（決済）ID\n"
          },
          "access_id": {
            "type": "string",
            "nullable": true,
            "example": "a_**********************",
            "description": "取引ID\n"
          },
          "deposit_amount": {
            "type": "integer",
            "example": 963,
            "nullable": false,
            "description": "この取引による入金額（参考値）\\\n※実際の入金額は全ての売上入金詳細の入金額の合算した後に計算される消費税金額によるため、この値は参考値となります。\n"
          },
          "amount": {
            "type": "integer",
            "example": 1000,
            "nullable": false,
            "description": "利用金額\n"
          },
          "tax": {
            "type": "integer",
            "example": 0,
            "nullable": false,
            "description": "税送料\n"
          },
          "fee_total": {
            "type": "integer",
            "example": 36,
            "nullable": false,
            "description": "M's PayBridge決済手数料（税抜）\n"
          },
          "fee_total_taxin": {
            "type": "integer",
            "example": 37,
            "nullable": false,
            "description": "M's PayBridge決済手数料（税込）\n"
          },
          "fee_profit_tax": {
            "type": "integer",
            "example": 1,
            "nullable": false,
            "description": "M's PayBridge決済手数料にかかる消費税\n"
          },
          "fee_profit": {
            "type": "integer",
            "example": 11,
            "nullable": false,
            "description": "M's PayBridge決済手数料のうち、課税対象金額\n"
          },
          "fee_cost": {
            "type": "integer",
            "example": 25,
            "nullable": false,
            "description": "M's PayBridge決済手数料のうち、非課税対象金額\n"
          },
          "fee_rate_total": {
            "type": "number",
            "example": 3.6,
            "nullable": false,
            "description": "M's PayBridge決済手数料率\n"
          },
          "fixed_fee": {
            "type": "integer",
            "example": null,
            "nullable": true,
            "description": "M's PayBridge決済手数料 最低手数料\n"
          },
          "apply_type": {
            "type": "integer",
            "enum": [
              0,
              1
            ],
            "example": 0,
            "nullable": false,
            "description": "M's PayBridge手数料率 適用区分\n\n - `0`: 料率。<br /><span class=\"smallText\">この決済による売上に対し、M's PayBridge決済手数料率が適用されたことを示します。</span>\n - `1`: 最低手数料。<br /><span class=\"smallText\">この決済による売上に対し、M's PayBridge決済最低手数料が適用されたことを示します。</span>\n"
          },
          "web_registration_fee": {
            "type": "integer",
            "example": 0,
            "nullable": false,
            "description": "M's PayBridge振替口座 Web登録手数料（税抜）\\\n※ 口座振替のみ\n"
          },
          "web_registration_fee_taxin": {
            "type": "integer",
            "example": 0,
            "nullable": false,
            "description": "M's PayBridge振替口座 Web登録手数料（税込）\\\n※ 口座振替のみ\n"
          },
          "web_registration_fee_tax": {
            "type": "integer",
            "example": 0,
            "nullable": false,
            "description": "M's PayBridge手数料 Web登録手数料消費税\\\n※ 口座振替のみ\n"
          },
          "paper_registration_fee": {
            "type": "integer",
            "example": 0,
            "nullable": false,
            "description": "M's PayBridge振替口座 依頼書登録手数料（税抜）\\\n※ 口座振替のみ\n"
          },
          "paper_registration_fee_taxin": {
            "type": "integer",
            "example": 0,
            "nullable": false,
            "description": "M's PayBridge振替口座 依頼書登録手数料（税込）\\\n※ 口座振替のみ\n"
          },
          "paper_registration_fee_tax": {
            "type": "integer",
            "example": 0,
            "nullable": false,
            "description": "M's PayBridge手数料 依頼書登録手数料消費税\\\n※ 口座振替のみ\n"
          },
          "platform_fee": {
            "type": "integer",
            "example": 0,
            "nullable": true,
            "description": "プラットフォーム利用料（税抜）\\\n※ テナントのみ\n"
          },
          "platform_fee_taxin": {
            "type": "integer",
            "example": 0,
            "nullable": true,
            "description": "プラットフォーム利用料（税込）\\\n※ テナントのみ\n"
          },
          "platform_fee_rate": {
            "type": "number",
            "example": 0,
            "nullable": true,
            "description": "プラットフォーム利用料率\\\n※ テナントのみ\n"
          },
          "fixed_fee_for_platform_fee": {
            "type": "integer",
            "example": 0,
            "nullable": true,
            "description": "プラットフォーム利用料率 最低手数料\\\n※ テナントのみ\n"
          },
          "apply_type_for_platform_fee": {
            "type": "integer",
            "enum": [
              0,
              1
            ],
            "example": 0,
            "nullable": true,
            "description": "プラットフォーム利用料率 適用区分\n\n- `0`: 料率。<br /><span class=\"smallText\">この決済による売上に対し、プラットフォーム利用料率が適用されたことを示します。</span>\n- `1`: 最低手数料。<br /><span class=\"smallText\">この決済による売上に対し、プラットフォームが設定した最低利用料が適用されたことを示します。</span>\n\n※ テナントのみ\n"
          },
          "platform_web_registration_fee": {
            "type": "integer",
            "example": 0,
            "nullable": false,
            "description": "プラットフォームWeb登録利用料（税抜）\\\n※ 口座振替 かつ テナントのみ\n"
          },
          "platform_web_registration_fee_taxin": {
            "type": "integer",
            "example": 0,
            "nullable": false,
            "description": "プラットフォームWeb登録利用料（税込）\\\n※ 口座振替 かつ テナントのみ\n"
          },
          "platform_web_registration_fee_tax": {
            "type": "integer",
            "example": 0,
            "nullable": false,
            "description": "プラットフォームWeb登録利用料消費税\\\n※ 口座振替 かつ テナントのみ\n"
          },
          "platform_paper_registration_fee": {
            "type": "integer",
            "example": 0,
            "nullable": false,
            "description": "プラットフォーム依頼書登録利用料（税抜）\\\n※ 口座振替 かつ テナントのみ\n"
          },
          "platform_paper_registration_fee_taxin": {
            "type": "integer",
            "example": 0,
            "nullable": false,
            "description": "プラットフォーム依頼書登録利用料（税込）\\\n※ 口座振替 かつ テナントのみ\n"
          },
          "platform_paper_registration_fee_tax": {
            "type": "integer",
            "example": 0,
            "nullable": false,
            "description": "プラットフォーム依頼書登録利用料消費税\\\n※ 口座振替 かつ テナントのみ\n"
          },
          "processed_date": {
            "type": "string",
            "example": "2022/05/16 23:59",
            "nullable": false,
            "description": "取引の確定処理を行った日時 \\\n形式： `yyyy/MM/dd HH:MM`\n"
          },
          "aggregate_term_start": {
            "type": "string",
            "example": "2022/05/16 23:59",
            "nullable": false,
            "description": "集計期間の開始日\\\n形式： `yyyy/MM/dd HH:MM`\n"
          },
          "aggregate_term_end": {
            "type": "string",
            "example": "2022/05/16 23:59",
            "nullable": false,
            "description": "集計期間の終了日\\\n形式： `yyyy/MM/dd HH:MM`\n"
          },
          "client_field_1": {
            "type": "string",
            "nullable": true,
            "example": "加盟店自由項目 1",
            "description": "加盟店自由項目 1\n"
          },
          "client_field_2": {
            "type": "string",
            "nullable": true,
            "example": "加盟店自由項目 2",
            "description": "加盟店自由項目 2\n"
          },
          "client_field_3": {
            "type": "string",
            "nullable": true,
            "example": "加盟店自由項目 3",
            "description": "加盟店自由項目 3\n"
          },
          "created": {
            "allOf": [
              {
                "$ref": "#/components/schemas/created"
              }
            ]
          },
          "updated": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updated"
              }
            ]
          }
        }
      },
      "AccountDetail.list": {
        "type": "object",
        "properties": {
          "list": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AccountDetail"
            }
          }
        }
      },
      "AccountDetail.ListRetrieving.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/_ListResponse"
          },
          {
            "$ref": "#/components/schemas/AccountDetail.list"
          }
        ]
      },
      "PlatformAccount.ListRetrieving.QueryParams": {
        "type": "object",
        "properties": {
          "processed": {
            "type": "string",
            "nullable": true,
            "example": "2022/05",
            "description": "確定日（入金サイクルの締め日）を月単位で絞り込みます。\\\n形式： `yyyy/MM`\n"
          },
          "status": {
            "$ref": "#/components/schemas/DepositStatusCode",
            "nullable": true,
            "description": "入金ステータス\\\nカンマ区切りにすることで複数指定（OR検索）できます。\n\n- `3001`: 金額確定前\n- `3002`: 金額確定済み\n- `3003`: 入金済み\n- `3004`: 入金停止中\n- `3005`: 入金エラー\n- `3006`: 請求中\n- `3007`: 請求エラー\n- `3008`: 請求停止中\n- `3009`: 支払済み\n- `3010`: 本人確認書類未確認\n- `3011`: 精算済み\n- `3012`: 入金開始前\n- `3013`: 契約不成立\n"
          },
          "scheduled_from": {
            "type": "string",
            "format": "date",
            "nullable": true,
            "example": "2022/05/01",
            "description": "入金予定日の範囲指定（開始日）を指定します。\\\nこの日付以降に入金が行われた売上入金情報を検索できます。\\\n形式： `yyyy/MM/dd`\n"
          },
          "scheduled_to": {
            "type": "string",
            "format": "date",
            "nullable": true,
            "example": "2022/05/31",
            "description": "入金予定日の範囲指定（終了日）を指定します。\\\nこの日付以前に入金が行われた売上入金情報を検索できます。\\\n形式： `yyyy/MM/dd`\n"
          }
        }
      },
      "PlatformAccount_properties-id": {
        "type": "string",
        "minLength": 1,
        "maxLength": 20,
        "example": "sales_s_***********_******_*****",
        "description": "プラットフォーム利用料収入ID\n"
      },
      "properties-account_id": {
        "type": "integer",
        "minLength": 6,
        "maxLength": 6,
        "example": 123456,
        "description": "精算ID\n"
      },
      "properties-deposit_amount": {
        "type": "integer",
        "nullable": true,
        "example": 568,
        "description": "プラットフォーム利用料収入 入金額\\\n\\\nプラットフォームショップに入金される（入金が予定されている）プラットフォーム利用料による売上金の額です。\\\n精算金額（`settlement_amount`）から振込手数料（`bank_transfer_fee`）を引いた金額に一致します。\n"
      },
      "properties-deposit_date": {
        "type": "string",
        "nullable": true,
        "example": "2022/05/16 23:59",
        "description": "プラットフォーム利用料収入 入金実績日\\\n形式： `yyyy/MM/dd HH:MM`\n"
      },
      "properties-scheduled_deposit_date": {
        "type": "string",
        "nullable": true,
        "example": "2022/05/16 23:59",
        "description": "プラットフォーム利用料収入 入金予定日\\\n形式： `yyyy/MM/dd HH:MM`\n"
      },
      "properties-aggregate_term_start": {
        "type": "string",
        "nullable": true,
        "example": "2022/05/16 23:59",
        "description": "プラットフォーム利用料収入 集計期間 開始日\\\n形式： `yyyy/MM/dd HH:MM`\n"
      },
      "properties-aggregate_term_end": {
        "type": "string",
        "nullable": true,
        "example": "2022/05/16 23:59",
        "description": "プラットフォーム利用料収入 集計期間 終了日\\\n形式： `yyyy/MM/dd HH:MM`\n"
      },
      "properties-count": {
        "type": "integer",
        "nullable": true,
        "example": 3,
        "description": "このプラットフォーム利用料収入に含まれる決済の件数\n"
      },
      "settlement_amount": {
        "type": "integer",
        "nullable": true,
        "example": 568,
        "description": "精算金額\n"
      },
      "properties-bank_transfer_fee": {
        "type": "integer",
        "nullable": true,
        "example": 0,
        "description": "振込手数料\n"
      },
      "PlatformAccount_properties-total_amount": {
        "type": "integer",
        "nullable": true,
        "example": 1000,
        "description": "このプラットフォーム利用料入金において精算の対象となった取引の総額。\n"
      },
      "properties-fee_amount": {
        "type": "integer",
        "nullable": true,
        "example": 30,
        "description": "このプラットフォーム利用料入金において精算の対象となった取引にかかるM's PayBridgeへの手数料\n"
      },
      "properties-platform_fee_amount": {
        "type": "integer",
        "nullable": true,
        "example": 0,
        "description": "このプラットフォーム利用料入金において精算の対象となった取引にかかるプラットフォーム利用料\n"
      },
      "tax_amount": {
        "type": "integer",
        "nullable": true,
        "example": 2,
        "description": "決済手数料 消費税額\n"
      },
      "verified": {
        "type": "boolean",
        "example": true,
        "deprecated": true,
        "description": "検証確認フラグ\n"
      },
      "PlatformAccountListItem": {
        "type": "object",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PlatformAccount_properties-id"
              }
            ]
          },
          "account_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-account_id"
              }
            ]
          },
          "shop_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/shop_id"
              }
            ]
          },
          "deposit_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-deposit_amount"
              }
            ]
          },
          "deposit_date": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-deposit_date"
              }
            ]
          },
          "scheduled_deposit_date": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-scheduled_deposit_date"
              }
            ]
          },
          "aggregate_term_start": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-aggregate_term_start"
              }
            ]
          },
          "aggregate_term_end": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-aggregate_term_end"
              }
            ]
          },
          "payment_deadline": {
            "allOf": [
              {
                "$ref": "#/components/schemas/payment_deadline"
              }
            ]
          },
          "payment_completion_date": {
            "allOf": [
              {
                "$ref": "#/components/schemas/payment_completion_date"
              }
            ]
          },
          "status_code": {
            "$ref": "#/components/schemas/DepositStatusCode"
          },
          "count": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-count"
              }
            ]
          },
          "settlement_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/settlement_amount"
              }
            ]
          },
          "bank_transfer_fee": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-bank_transfer_fee"
              }
            ]
          },
          "total_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PlatformAccount_properties-total_amount"
              }
            ]
          },
          "fee_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-fee_amount"
              }
            ]
          },
          "platform_fee_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-platform_fee_amount"
              }
            ]
          },
          "platform_fee_tax_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-platform_fee_amount"
              }
            ]
          },
          "tax_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tax_amount"
              }
            ]
          },
          "created": {
            "allOf": [
              {
                "$ref": "#/components/schemas/created"
              }
            ]
          },
          "updated": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updated"
              }
            ]
          },
          "verified": {
            "allOf": [
              {
                "$ref": "#/components/schemas/verified"
              }
            ]
          }
        }
      },
      "PlatformAccountListItem.list": {
        "type": "object",
        "properties": {
          "list": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PlatformAccountListItem"
            },
            "description": "プラットフォーム利用料による売上入金情報のリスト\n"
          }
        }
      },
      "PlatformAccount.ListRetrieving.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/_ListResponse"
          },
          {
            "$ref": "#/components/schemas/PlatformAccountListItem.list"
          }
        ]
      },
      "PlatformAccountId_schema": {
        "type": "string",
        "example": "sales_s_***********_******_*****"
      },
      "PlatformAccount": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 20,
            "example": "sales_s_***********_******_*****",
            "description": "プラットフォーム利用料収入ID\n"
          },
          "account_id": {
            "type": "integer",
            "minLength": 6,
            "maxLength": 6,
            "example": 123456,
            "description": "精算ID\n"
          },
          "shop_id": {
            "type": "string",
            "minLength": 13,
            "maxLength": 13,
            "example": "s_***********",
            "description": "ショップID\n"
          },
          "deposit_amount": {
            "type": "integer",
            "nullable": true,
            "example": 568,
            "description": "プラットフォーム利用料収入 入金額\\\n\\\nプラットフォームショップに入金される（入金が予定されている）プラットフォーム利用料による売上金の額です。\\\n精算金額（`settlement_amount`）から振込手数料（`bank_transfer_fee`）を引いた金額に一致します。\n"
          },
          "deposit_date": {
            "type": "string",
            "nullable": true,
            "example": "2022/05/16 23:59",
            "description": "プラットフォーム利用料収入 入金実績日\\\n形式： `yyyy/MM/dd HH:MM`\n"
          },
          "scheduled_deposit_date": {
            "type": "string",
            "nullable": true,
            "example": "2022/05/16 23:59",
            "description": "プラットフォーム利用料収入 入金予定日\\\n形式： `yyyy/MM/dd HH:MM`\n"
          },
          "aggregate_term_start": {
            "type": "string",
            "nullable": true,
            "example": "2022/05/16 23:59",
            "description": "プラットフォーム利用料収入 集計期間 開始日\\\n形式： `yyyy/MM/dd HH:MM`\n"
          },
          "aggregate_term_end": {
            "type": "string",
            "nullable": true,
            "example": "2022/05/16 23:59",
            "description": "プラットフォーム利用料収入 集計期間 終了日\\\n形式： `yyyy/MM/dd HH:MM`\n"
          },
          "payment_deadline": {
            "type": "string",
            "nullable": true,
            "example": null,
            "description": "（請求が発生した場合）支払期限日\\\n形式： `yyyy/MM/dd HH:MM`\n"
          },
          "payment_completion_date": {
            "type": "string",
            "nullable": true,
            "example": null,
            "description": "（請求が発生した場合）請求日\\\n形式： `yyyy/MM/dd HH:MM`\n"
          },
          "status_code": {
            "$ref": "#/components/schemas/DepositStatusCode"
          },
          "count": {
            "type": "integer",
            "nullable": true,
            "example": 3,
            "description": "このプラットフォーム利用料収入に含まれる決済の件数\n"
          },
          "settlement_amount": {
            "type": "integer",
            "nullable": true,
            "example": 568,
            "description": "精算金額\n"
          },
          "bank_transfer_fee": {
            "type": "integer",
            "nullable": true,
            "example": 0,
            "description": "振込手数料\n"
          },
          "total_amount": {
            "type": "integer",
            "nullable": true,
            "example": 1000,
            "description": "このプラットフォーム利用料入金において精算の対象となった取引の総額。\n"
          },
          "fee_amount": {
            "type": "integer",
            "nullable": true,
            "example": 30,
            "description": "このプラットフォーム利用料入金において精算の対象となった取引にかかるM's PayBridgeへの手数料\n"
          },
          "taxable_fee_amount": {
            "type": "integer",
            "nullable": true,
            "example": 0,
            "description": "決済手数料 課税対象額\n"
          },
          "nontaxable_fee_amount": {
            "type": "integer",
            "nullable": true,
            "example": 0,
            "description": "決済手数料 非課税対象額\n"
          },
          "tax_amount": {
            "type": "integer",
            "nullable": true,
            "example": 2,
            "description": "決済手数料 消費税額\n"
          },
          "web_registration_fee_amount": {
            "type": "integer",
            "nullable": true,
            "example": 400,
            "description": "このプラットフォーム利用料入金の精算期間中に発生した振替口座のWeb登録手数料\\\n※ 口座振替のみ\n"
          },
          "platform_fee_amount": {
            "type": "integer",
            "nullable": true,
            "example": 0,
            "description": "このプラットフォーム利用料入金において精算の対象となった取引にかかるプラットフォーム利用料\n"
          },
          "platform_fee_tax_amount": {
            "type": "integer",
            "nullable": true,
            "example": 0,
            "description": "このプラットフォーム利用料入金において精算の対象となった取引にかかるプラットフォーム利用料の消費税\n"
          },
          "platform_web_registration_fee_amount": {
            "type": "integer",
            "nullable": true,
            "example": 0,
            "description": "このプラットフォーム利用料入金の精算期間中に発生した、プラットフォームが設定した振替口座のWeb登録手数料\n"
          },
          "created": {
            "allOf": [
              {
                "$ref": "#/components/schemas/created"
              }
            ]
          },
          "updated": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updated"
              }
            ]
          },
          "deposit_destination": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DepositTargetBankAccountInfo"
              }
            ],
            "description": "プラットフォーム利用料収入 入金先口座情報\n"
          },
          "verified": {
            "type": "boolean",
            "example": true,
            "deprecated": true,
            "description": "検証確認フラグ\n"
          }
        }
      },
      "PlatformAccount.Retrieving.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/PlatformAccount"
          }
        ]
      },
      "PlatformAccountSummary.ListRetrieving.QueryParams": {
        "type": "object",
        "properties": {
          "scheduled_from": {
            "type": "string",
            "format": "date",
            "nullable": true,
            "example": "2022/05/01",
            "description": "入金予定日の範囲指定（開始日）を指定します。\\\nこの日付以降に入金が行われた売上入金情報を検索できます。\\\n形式： `yyyy/MM/dd`\n"
          },
          "scheduled_to": {
            "type": "string",
            "format": "date",
            "nullable": true,
            "example": "2022/05/31",
            "description": "入金予定日の範囲指定（終了日）を指定します。\\\nこの日付以前に入金が行われた売上入金情報を検索できます。\\\n形式： `yyyy/MM/dd`\n"
          }
        }
      },
      "shop_name": {
        "type": "string",
        "minLength": 1,
        "maxLength": 20,
        "nullable": true,
        "example": "My Shop",
        "description": "ショップ名\n"
      },
      "taxable_fee_amount": {
        "type": "integer",
        "nullable": true,
        "example": 0,
        "description": "決済手数料 課税対象額\n"
      },
      "nontaxable_fee_amount": {
        "type": "integer",
        "nullable": true,
        "example": 0,
        "description": "決済手数料 非課税対象額\n"
      },
      "web_registration_fee_amount": {
        "type": "integer",
        "nullable": true,
        "example": 400,
        "description": "このプラットフォーム利用料入金の精算期間中に発生した振替口座のWeb登録手数料\\\n※ 口座振替のみ\n"
      },
      "platform_web_registration_fee_amount": {
        "type": "integer",
        "nullable": true,
        "example": 0,
        "description": "このプラットフォーム利用料入金の精算期間中に発生した、プラットフォームが設定した振替口座のWeb登録手数料\n"
      },
      "properties-platform_fee_tax_amount": {
        "type": "integer",
        "nullable": true,
        "example": 0,
        "description": "このプラットフォーム利用料入金において精算の対象となった取引にかかるプラットフォーム利用料の消費税\n"
      },
      "PlatformAccountSummary": {
        "type": "object",
        "properties": {
          "summary_id": {
            "type": "integer",
            "minLength": 8,
            "maxLength": 8,
            "example": 12345678,
            "description": "プラットフォーム利用料収入サマリーID\n"
          },
          "account_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-account_id"
              }
            ]
          },
          "shop_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Shop_properties-id"
              }
            ],
            "description": "ショップID（プラットフォーム）\n"
          },
          "tenant_shop_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Shop_properties-id"
              }
            ],
            "description": "ショップID（テナント）\\\n\\\nこの利用料収入サマリーはこのIDを持つテナントショップに関して作成されたものであることを示します。\n"
          },
          "tenant_shop_name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/shop_name"
              }
            ],
            "description": "ショップ名（テナント）\n"
          },
          "deposit_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-deposit_amount"
              }
            ]
          },
          "aggregate_term_start": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-aggregate_term_start"
              }
            ]
          },
          "aggregate_term_end": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-aggregate_term_end"
              }
            ]
          },
          "count": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-count"
              }
            ]
          },
          "total_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PlatformAccount_properties-total_amount"
              }
            ]
          },
          "fee_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-fee_amount"
              }
            ]
          },
          "taxable_fee_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/taxable_fee_amount"
              }
            ]
          },
          "nontaxable_fee_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/nontaxable_fee_amount"
              }
            ]
          },
          "tax_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tax_amount"
              }
            ]
          },
          "web_registration_fee_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/web_registration_fee_amount"
              }
            ]
          },
          "platform_web_registration_fee_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/platform_web_registration_fee_amount"
              }
            ]
          },
          "platform_fee_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-platform_fee_amount"
              }
            ]
          },
          "platform_fee_tax_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-platform_fee_tax_amount"
              }
            ]
          },
          "created": {
            "allOf": [
              {
                "$ref": "#/components/schemas/created"
              }
            ]
          },
          "updated": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updated"
              }
            ]
          },
          "tenant_account_process_id_list": {
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/Account_properties-id"
                }
              ]
            },
            "description": "テナントショップにおける、このサマリーの集計対象となった売上入金IDのリスト\n"
          }
        }
      },
      "PlatformAccountSummary.list": {
        "type": "object",
        "properties": {
          "list": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PlatformAccountSummary"
            },
            "description": "プラットフォーム利用料収入のサマリー情報のリスト\n"
          }
        }
      },
      "PlatformAccountSummary.ListRetrieving.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/_ListResponse"
          },
          {
            "$ref": "#/components/schemas/PlatformAccountSummary.list"
          }
        ]
      },
      "ShopChargeBack.ListRetrieving.QueryParams": {
        "type": "object",
        "properties": {
          "limit": {
            "type": "number",
            "description": "取得件数  \n"
          },
          "page": {
            "type": "number",
            "description": "ページ  \n"
          },
          "count_only": {
            "type": "boolean",
            "description": "総件数のみフラグ  \n"
          },
          "sort": {
            "type": "string",
            "description": "ソート  \n\n- `id`: チャージバック受付ID\n- `opened_to_shop_date`: 連絡日\n"
          },
          "order_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 30,
            "description": "オーダーID  \n"
          },
          "amount": {
            "type": "number",
            "minimum": 1,
            "maximum": 9999999999,
            "description": "決済金額  \n"
          },
          "request": {
            "type": "string",
            "description": "依頼内容  \n複数指定可能  \nカンマ区切りで複数の申出内容を指定可能です。  \n\n- `1`: 配送保留\t\n- `2`: 配送停止\t\n- `11`: 利用覚えなし\t\n- `12`: サービス未提供\t\n- `13`: サービス不履行\t\n- `14`: 商品未着\t\n- `15`: 商品相違\t\n- `16`: 金額相違\t\n- `17`: 商品瑕疵\t\n- `18`: キャンセル漏れ\t\n- `19`: 解約方法確認\t\n- `20`: 代行解約希望\t\n- `21`: 問合先確認\t\n- `22`: 取引内容確認\t\n"
          },
          "status_code": {
            "type": "string",
            "description": "チャージバックステータス  \nカンマ区切りで複数のステータスを指定可能です。  \n\n- `4005`: 要対応\n- `4006, 4007, 4011`: 回答済み\n- `4009`: 売上返還確定（`canceled` が `true` の場合は確定後取消）\n"
          },
          "category": {
            "type": "string",
            "description": "カテゴリ  \nカンマ区切りで複数のカテゴリを指定可能です。  \n\n- `0`: 不正利用懸念\n- `1`: 調査依頼\n- `2`: 不正利用確定\n"
          },
          "canceled": {
            "type": "boolean",
            "description": "チャージバック取消  \n※この検索条件はstatus_codeに4009（売上返還確定）を指定した場合のみ有効です。\nそれ以外のステータスが指定されている場合、本パラメータは無視されます。\n\n- `null`: 取消・取消以外の両方を取得\n- `true`: 取消のみ  \n- `false`: 取消以外  \n"
          },
          "process_date_since": {
            "type": "string",
            "minLength": 10,
            "maxLength": 10,
            "description": "作成日　検索期間始端  \nyyyy/MM/dd形式  \n"
          },
          "process_date_until": {
            "type": "string",
            "minLength": 10,
            "maxLength": 10,
            "description": "作成日　検索期間終端  \nyyyy/MM/dd形式  \n"
          },
          "opened_to_shop_date_since": {
            "type": "string",
            "minLength": 10,
            "maxLength": 10,
            "description": "連絡日　検索期間始端  \nyyyy/MM/dd形式  \n"
          },
          "opened_to_shop_date_until": {
            "type": "string",
            "minLength": 10,
            "maxLength": 10,
            "description": "連絡日　検索期間終端  \nyyyy/MM/dd形式  \n"
          }
        }
      },
      "ShopChargeBackListItem": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number",
            "description": "ID  \n"
          },
          "shop_id": {
            "type": "string",
            "minLength": 13,
            "maxLength": 13,
            "description": "ショップID  \n"
          },
          "order_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 27,
            "description": "オーダーID  \n"
          },
          "amount": {
            "type": "number",
            "minimum": 1,
            "maximum": 9999999999,
            "description": "金額  \n"
          },
          "trade_registration_date": {
            "type": "string",
            "minLength": 10,
            "maxLength": 10,
            "description": "取引登録日時  \nyyyy/MM/dd HH:mm形式  \n"
          },
          "category": {
            "type": "number",
            "minimum": 0,
            "maximum": 2,
            "description": "カテゴリ  \n\n- `0`: 不正利用懸念\n- `1`: 調査依頼\n- `2`: 不正利用確定\n"
          },
          "status_code": {
            "type": "number",
            "minimum": 4005,
            "maximum": 4011,
            "description": "ステータス  \n\n- `4005`: 要対応\n- `4006`: 回答済み\t\n- `4007`: 回答済み\t\n- `4009`: 売上返還確定（`canceled` が `true` の場合は確定後取消）\n- `4011`: 回答済み\t\n"
          },
          "request": {
            "type": "number",
            "description": "申出内容  \n\n- `1`: 配送保留\t\n- `2`: 配送停止\t\n- `11`: 利用覚えなし\t\n- `12`: サービス未提供\t\n- `13`: サービス不履行\t\n- `14`: 商品未着\t\n- `15`: 商品相違\t\n- `16`: 金額相違\t\n- `17`: 商品瑕疵\t\n- `18`: キャンセル漏れ\t\n- `19`: 解約方法確認\t\n- `20`: 代行解約希望\t\n- `21`: 問合先確認\t\n- `22`: 取引内容確認\t\n"
          },
          "process_date": {
            "type": "string",
            "minLength": 10,
            "maxLength": 10,
            "description": "注文日  \n"
          },
          "opened_to_shop_date": {
            "type": "string",
            "minLength": 15,
            "maxLength": 15,
            "description": "連絡日  \nyyyy/MM/dd HH:mm形式  \n"
          },
          "canceled": {
            "type": "string",
            "minLength": 4,
            "maxLength": 5,
            "description": "キャンセルフラグ  \n\n- `true`: チャージバックのキャンセル\n- `false`: 通常のチャージバック\n"
          },
          "canceled_date": {
            "type": "string",
            "minLength": 10,
            "maxLength": 10,
            "description": "キャンセル日  \nyyyy/MM/dd HH:mm形式  \n"
          }
        }
      },
      "ShopChargeBackListItem.list": {
        "type": "object",
        "properties": {
          "list": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ShopChargeBackListItem"
            }
          }
        }
      },
      "ShopChargeBack.ListRetrieving.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/_ListResponse"
          },
          {
            "$ref": "#/components/schemas/ShopChargeBackListItem.list"
          }
        ]
      },
      "ShopChargeBack.Retrieving.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ShopChargeBackListItem"
          }
        ]
      },
      "ShopChargeBack.Reply.Request": {
        "type": "object",
        "properties": {
          "contact_tel": {
            "type": "string",
            "nullable": true,
            "description": "連絡先電話番号\n"
          },
          "business_hours": {
            "type": "string",
            "nullable": true,
            "description": "営業時間\n"
          },
          "delivered": {
            "type": "boolean",
            "nullable": true,
            "description": "商品を発送・提供済みか\n"
          },
          "delivery_provider": {
            "type": "string",
            "nullable": true,
            "description": "配送業者\n"
          },
          "receipt_number": {
            "type": "string",
            "nullable": true,
            "description": "送り状番号\n"
          },
          "orderer_name": {
            "type": "string",
            "nullable": true,
            "description": "注文者氏名\n"
          },
          "orderer_address": {
            "type": "string",
            "nullable": true,
            "description": "注文者住所\n"
          },
          "orderer_tel": {
            "type": "string",
            "nullable": true,
            "description": "注文者電話番号\n"
          },
          "orderer_mail": {
            "type": "string",
            "nullable": true,
            "description": "注文者メールアドレス\n"
          },
          "receiver_name": {
            "type": "string",
            "nullable": true,
            "description": "受取者氏名\n"
          },
          "receiver_address": {
            "type": "string",
            "nullable": true,
            "description": "受取者住所\n"
          },
          "receiver_tel": {
            "type": "string",
            "nullable": true,
            "description": "受取者電話番号\n"
          },
          "provides_product": {
            "type": "boolean",
            "nullable": true,
            "description": "商品・サービスを提供したか\n"
          },
          "product_detail": {
            "type": "string",
            "nullable": true,
            "description": "商品・サービスの詳細\n"
          },
          "memo": {
            "type": "string",
            "nullable": true,
            "description": "メモ\n"
          }
        }
      },
      "ExaminationFileType": {
        "type": "string",
        "enum": [
          "DRIVER_LICENSE_FRONT",
          "DRIVER_LICENSE_BACK",
          "SEAL_REGISTRATION_FRONT",
          "RESIDENT_CARD_FRONT",
          "RESIDENT_CARD_BACK",
          "SPECIAL_PERMANENT_RESIDENT_FRONT",
          "SPECIAL_PERMANENT_RESIDENT_BACK",
          "CERTIFICATE_OF_RESIDENCE_FRONT",
          "MY_NUMBER_CARD_FRONT",
          "PRODUCT_IMAGE_1",
          "PRODUCT_IMAGE_2",
          "PRODUCT_IMAGE_3",
          "APP_IMAGE_TOP",
          "APP_IMAGE_ICON",
          "SALES_LICENSE_1",
          "SALES_LICENSE_2",
          "SALES_LICENSE_3"
        ],
        "example": "DRIVER_LICENSE_FRONT",
        "description": "審査ファイルタイプ\\\n\\\nM's PayBridge審査チームに提出する画像ファイル等の種別を指定します。\n\n- `DRIVER_LICENSE_FRONT`: 本人確認書類; 運転免許証（表）<br /><span class=\"smallText\">本人確認書類として運転免許証を提出する場合に指定します。裏面も提出する必要があります。</span>\n- `DRIVER_LICENSE_BACK`: 本人確認書類; 運転免許証（裏）<br /><span class=\"smallText\">本人確認書類として運転免許証を提出する場合に指定します。表面も提出する必要があります。</span>\n- `SEAL_REGISTRATION_FRONT`: 本人確認書類; 印鑑証明書（表）<br /><span class=\"smallText\">本人確認書類として印鑑証明書を提出する場合に指定します。</span>\n- `RESIDENT_CARD_FRONT`: 本人確認書類; 在留カード（表）<br /><span class=\"smallText\">本人確認書類として在留カードを提出する場合に指定します。裏面も提出する必要があります。</span>\n- `RESIDENT_CARD_BACK`: 本人確認書類; 在留カード（裏）<br /><span class=\"smallText\">本人確認書類として在留カードを提出する場合に指定します。表面も提出する必要があります。</span>\n- `SPECIAL_PERMANENT_RESIDENT_FRONT`: 本人確認書類; 特別永住者証明書（表）<br /><span class=\"smallText\">本人確認書類として特別永住者証明書を提出する場合に指定します。裏面も提出する必要があります。</span>\n- `SPECIAL_PERMANENT_RESIDENT_BACK`: 本人確認書類; 特別永住者証明書（裏）<br /><span class=\"smallText\">本人確認書類として特別永住者証明書を提出する場合に指定します。表面も提出する必要があります。</span>\n- `CERTIFICATE_OF_RESIDENCE_FRONT`: 本人確認書類; 住民票（表）<br /><span class=\"smallText\">本人確認書類として住民票を提出する場合に指定します。</span>\n- `MY_NUMBER_CARD_FRONT`: 本人確認書類; マイナンバーカード（表）<br /><span class=\"smallText\">本人確認書類としてマイナンバーカードを提出する場合に指定します。</span>\n- `PRODUCT_IMAGE_1`: 商材審査; 物販商材1 画像<br /><span class=\"smallText\">物販商材の情報を提出する場合に指定します。`product_content_info.content1_*`に対応する画像を添付してください。</span>\n- `PRODUCT_IMAGE_2`: 商材審査; 物販商材2 画像<br /><span class=\"smallText\">物販商材の情報を提出する場合に指定します。`product_content_info.content2_*`に対応する画像を添付してください。</span>\n- `PRODUCT_IMAGE_3`: 商材審査; 物販商材3 画像<br /><span class=\"smallText\">物販商材の情報を提出する場合に指定します。`product_content_info.content3_*`に対応する画像を添付してください。</span>\n- `APP_IMAGE_TOP`: アプリ審査; アプリトップ画像<br /><span class=\"smallText\">M's PayBridgeをスマートフォン上のネイティブアプリで使用し、かつM's PayBridgeによる審査時点でWebサイトが存在しない場合に指定します。アプリのトップ画面のスクリーンショットの画像を添付してください。</span>\n- `APP_IMAGE_ICON`: アプリ審査; アプリアイコン<br /><span class=\"smallText\">M's PayBridgeをスマートフォン上のネイティブアプリで使用し、かつM's PayBridgeによる審査時点でWebサイトが存在しない場合に指定します。アプリのアイコン画像を添付してください。</span>\n- `SALES_LICENSE_1`: 販売免許等; 販売免許等1<br />\n    <span class=\"smallText\">\n    ショップで取り扱う商品・サービスによっては、下記の許可証の提出が必要となります。免許・許可証の名義は契約名義と一致している必要があります。\n        <ul>\n            <li>酒類: 酒類小売業販売許可証</li>\n            <li>古物: 古物商許可証</li>\n            <li>コンタクトレンズ: 高度管理医療機器販売業許可証</li>\n            <li>象牙: 経済産業省の許可証</li>\n            <li>決済業者から免許証および許可証を求められた場合は提出を依頼することがあります。</li>\n        </ul>\n    </span>\n- `SALES_LICENSE_2`: 販売免許等; 販売免許等2<br /><span class=\"smallText\">許可証が複数ファイルに渡る場合、2ファイル目を提出する場合に指定します。</span>\n- `SALES_LICENSE_3`: 販売免許等; 販売免許等3<br /><span class=\"smallText\">許可証が複数ファイルに渡る場合、3ファイル目を提出する場合に指定します。</span>\n"
      },
      "data": {
        "description": "審査ファイルデータ\\\n\\\n画像ファイルをマルチパートアップロードするときはこの`data`フィールドに画像データを設定します。\n"
      },
      "ExaminationFile.Uploading.Request": {
        "type": "object",
        "required": [
          "type",
          "data"
        ],
        "properties": {
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ExaminationFileType"
              }
            ]
          },
          "data": {
            "allOf": [
              {
                "$ref": "#/components/schemas/data"
              }
            ]
          }
        }
      },
      "ExaminationFileUpload": {
        "type": "object",
        "properties": {
          "examination_files": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "shop_id": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Shop_properties-id"
                    }
                  ],
                  "description": "ショップID（テナント）\\\n\\\nこのIDのテナントショップに関して画像ファイルを受け付けたことを示します。\n"
                },
                "type": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ExaminationFileType"
                    }
                  ],
                  "description": "審査ファイルタイプ\n"
                },
                "filename": {
                  "type": "string",
                  "description": "審査ファイル名\\\n\\\n拡張子を含むアップロードされたファイルの名称\n"
                },
                "filesize": {
                  "type": "number",
                  "description": "審査ファイルサイズ\\\n\\\nアップロードされたファイルのサイズ（バイト）\n"
                }
              }
            }
          }
        },
        "x-req-properties": {
          "data": {
            "description": "審査ファイルデータ\\\n\\\n画像ファイルをマルチパートアップロードするときはこの`data`フィールドに画像データを設定します。\n"
          }
        }
      },
      "ExaminationFile.Uploading.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ExaminationFileUpload"
          }
        ]
      },
      "PlatformShop.ListRetrieving.QueryParams": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true,
            "minLength": 13,
            "maxLength": 13,
            "example": "s_***********",
            "default": null,
            "description": "ショップID\n"
          },
          "shop_name": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 20,
            "example": "My Shop",
            "default": null,
            "description": "ショップ名\n"
          },
          "shop_mail_address": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 255,
            "example": "platform-shop@example.com",
            "default": null,
            "description": "ショップメールアドレス\n"
          },
          "created_from": {
            "type": "string",
            "nullable": true,
            "example": "2022/05/16",
            "default": null,
            "description": "作成日の範囲指定 開始日\\\nこの日付以降に作成されたショップを検索できます。\\\n形式：`yyyy/MM/dd`\n"
          },
          "created_to": {
            "type": "string",
            "nullable": true,
            "example": "2022/05/16",
            "default": null,
            "description": "作成日の範囲指定 終了日\\\nこの日付以前に作成されたショップを検索できます。\\\n形式：`yyyy/MM/dd`\n"
          },
          "sort": {
            "allOf": [
              {
                "$ref": "#/components/schemas/sort"
              }
            ],
            "nullable": true,
            "description": "ソートする項目と順序を指定します。\\\n例： `?sort=updated␣desc,created␣asc`\\\n\\\nソート可能な項目\n\n- `id`: ショップID\n- `shop_name`: ショップ名\n- `created`: 作成日時\n- `updated`: 更新日時\n"
          }
        }
      },
      "ShopType": {
        "type": "string",
        "enum": [
          null,
          "platform",
          "tenant"
        ],
        "example": "platform",
        "description": "ショップタイプ。\n\n- `(null)`: スタンダードショップ\n- `platform`: プラットフォームショップ\n- `tenant`: テナントショップ\n"
      },
      "ExaminationMasterId": {
        "type": "string",
        "enum": [
          "vm",
          "jad",
          "applepay_vm",
          "applepay_jad",
          "googlepay_vm",
          "googlepay_jad",
          "konbini",
          "paypay",
          "directdebit",
          "directdebit_mizuho",
          "virtualaccount",
          "card_updater"
        ],
        "example": "vm",
        "description": "審査種別マスタID。\\\nプラットフォーム料率の適用対象とする決済手段の種別を表します。\n\n- `vm`: カード決済（VISA / Mastercard）\n- `jad`: カード決済（JCB / American Express / Diners Club / Discover）\n- `applepay_vm`: Apple Pay（VISA / Mastercard）\n- `applepay_jad`: Apple Pay（JCB / American Express / Diners Club / Discover）\n- `googlepay_vm`: Google Pay（VISA / Mastercard）\n- `googlepay_jad`: Google Pay(JCB / American Express / Diners Club / Discover）\n- `konbini`: コンビニ決済\n- `paypay`: PayPay\n- `directdebit`: 口座振替（5・6・23・27日）\n- `directdebit_mizuho`: 口座振替（1・5・20・26日）\n- `virtualaccount`: 銀行振込（バーチャル口座）\n- `card_updater`: 洗替\n"
      },
      "PlatformRateConfig": {
        "type": "object",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ExaminationMasterId"
              }
            ]
          },
          "platform_rate": {
            "type": "number",
            "format": "double",
            "nullable": true,
            "example": 5,
            "description": "（標準）プラットフォーム利用料率。\\\n個別のプラットフォーム利用料率が設定されていないテナントが`id`で指定した決済手段で決済を行うと、このプラットフォーム利用料率が適用されます。\\\n\\\n特定のテナントに個別のプラットフォーム利用料を適用するには テナントショップ 更新API を使用します。\n"
          },
          "fixed_fee": {
            "type": "integer",
            "format": "int32",
            "nullable": true,
            "example": 120,
            "description": "（標準）プラットフォーム利用料 最低料金。\\\nテナントが`examination_master_id`で指定した決済手段で決済を行った際、`platform_rate`による利用料がこの最低料金を下回ると、この最低料金が適用されます。\n"
          },
          "web_registration_fee": {
            "type": "number",
            "format": "double",
            "nullable": true,
            "example": 480,
            "description": "（標準）プラットフォーム利用料 Web登録手数料。\\\nテナントにおいて、口座振替における振替用口座登録（Web登録）に成功した際に適用されるWeb登録手数料です。\\\n※ 口座振替のみ\n"
          },
          "paypay_content_category_type": {
            "type": "integer",
            "enum": [
              1,
              2
            ],
            "nullable": true,
            "example": 1,
            "description": "PayPay審査により決定されるPayPay商材カテゴリー。\n\n- `1`: 物販／サービスショップ\n- `2`: デジタルコンテンツショップ\n\n※ PayPayのみ\n"
          }
        },
        "x-req-properties": {
          "platform_rate": {
            "type": "string",
            "nullable": true,
            "example": "5.0",
            "description": "（標準）プラットフォーム利用料率。\\\n個別のプラットフォーム利用料率が設定されていないテナントが`id`で指定した決済手段で決済を行うと、このプラットフォーム利用料率が適用されます。\\\n\\\n特定のテナントに個別のプラットフォーム利用料を適用するには テナントショップ 更新API を使用します。\n"
          },
          "fixed_fee": {
            "type": "string",
            "example": "120",
            "nullable": true,
            "description": "（標準）プラットフォーム利用料 最低料金。\\\nテナントが`examination_master_id`で指定した決済手段で決済を行った際、`platform_rate`による利用料がこの最低料金を下回ると、この最低料金が適用されます。\n"
          },
          "web_registration_fee": {
            "type": "string",
            "nullable": true,
            "example": "480",
            "description": "（標準）プラットフォーム利用料 Web登録手数料。\\\nテナントにおいて、口座振替における振替用口座登録（Web登録）に成功した際に適用されるWeb登録手数料です。\\\n※ 口座振替のみ\n"
          },
          "paypay_content_category_type": {
            "type": "string",
            "enum": [
              "1",
              "2"
            ],
            "nullable": true,
            "description": "PayPay審査により決定されるPayPay商材カテゴリー。\n\n- `1`: 物販／サービスショップ\n- `2`: デジタルコンテンツショップ\n\n※ PayPayのみ\n"
          }
        }
      },
      "Shop": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 13,
            "maxLength": 13,
            "example": "s_***********",
            "description": "ショップID\n"
          },
          "shop_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 20,
            "nullable": true,
            "example": "My Shop",
            "description": "ショップ名\n"
          },
          "shop_name_kana": {
            "type": "string",
            "minLength": 1,
            "maxLength": 40,
            "nullable": true,
            "example": "マイショップ",
            "description": "ショップ名（カナ）\n"
          },
          "shop_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ShopType"
              }
            ]
          },
          "platform_id": {
            "type": "string",
            "minLength": 13,
            "maxLength": 13,
            "example": "p_***********",
            "description": "プラットフォームID\n"
          },
          "platform_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 50,
            "example": "My Platform",
            "nullable": true,
            "description": "プラットフォーム名\n"
          },
          "shared_customer_flag": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1,
            "enum": [
              "0",
              "1"
            ],
            "example": "0",
            "nullable": true,
            "description": "顧客情報共有フラグ\n\n- `0`: 顧客情報を共有しない<br /><span class=\"smallText\">顧客情報は各テナントごとに管理され、各テナントは自ショップに登録された顧客に対してのみ決済を行えます。</span>\n- `1`: 顧客情報を共有する<br /><span class=\"smallText\">顧客情報はプラットフォーム全体で共有され、いずれのテナントもいずれの顧客に対し決済を行えます。</span>\n"
          },
          "customer_group_id": {
            "type": "string",
            "minLength": 13,
            "maxLength": 13,
            "example": "cg_***********",
            "nullable": true,
            "description": "顧客情報共有グループID\\\nM's PayBridgeは同じ顧客情報共有グループIDを持つショップ間で顧客情報を共有します。\n"
          },
          "platform_rate_list": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PlatformRateConfig"
            },
            "description": "決済手段ごとに存在するプラットフォーム手数料設定のリスト\n"
          },
          "send_mail_address": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255,
            "nullable": true,
            "example": "send@example.com",
            "description": "通知先メールアドレス\n"
          },
          "shop_mail_address": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255,
            "nullable": true,
            "example": "shop@example.com",
            "description": "ショップメールアドレス\n"
          },
          "log_keep_days": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9999,
            "nullable": true,
            "example": null,
            "description": "ログ保存日数\n"
          },
          "api_version": {
            "type": "string",
            "minLength": 1,
            "maxLength": 8,
            "nullable": true,
            "example": "20211001",
            "description": "APIバージョン\n"
          },
          "api_key_display_flag": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1,
            "nullable": true,
            "enum": [
              "0",
              "1"
            ],
            "example": "0",
            "description": "管理画面におけるAPIキー表示フラグ。\n\n- `0`: 表示しない\n- `1`: 表示する\n"
          },
          "created": {
            "allOf": [
              {
                "$ref": "#/components/schemas/created"
              }
            ]
          },
          "updated": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updated"
              }
            ]
          }
        }
      },
      "Shop.list": {
        "type": "object",
        "properties": {
          "list": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Shop"
            }
          }
        }
      },
      "PlatformShop.ListRetrieving.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Shop.list"
          }
        ]
      },
      "PlatformShop.Retrieving.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Shop"
          }
        ]
      },
      "platform_rate": {
        "type": "string",
        "nullable": true,
        "example": "5.0",
        "description": "（標準）プラットフォーム利用料率。\\\n個別のプラットフォーム利用料率が設定されていないテナントが`id`で指定した決済手段で決済を行うと、このプラットフォーム利用料率が適用されます。\\\n\\\n特定のテナントに個別のプラットフォーム利用料を適用するには テナントショップ 更新API を使用します。\n"
      },
      "fixed_fee": {
        "type": "string",
        "example": "120",
        "nullable": true,
        "description": "（標準）プラットフォーム利用料 最低料金。\\\nテナントが`examination_master_id`で指定した決済手段で決済を行った際、`platform_rate`による利用料がこの最低料金を下回ると、この最低料金が適用されます。\n"
      },
      "web_registration_fee": {
        "type": "string",
        "nullable": true,
        "example": "480",
        "description": "（標準）プラットフォーム利用料 Web登録手数料。\\\nテナントにおいて、口座振替における振替用口座登録（Web登録）に成功した際に適用されるWeb登録手数料です。\\\n※ 口座振替のみ\n"
      },
      "PlatformShop.Updating.Request": {
        "type": "object",
        "properties": {
          "examination_master_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ExaminationMasterId"
              }
            ]
          },
          "platform_rate": {
            "type": "string",
            "example": "5.0",
            "allOf": [
              {
                "$ref": "#/components/schemas/platform_rate"
              }
            ]
          },
          "fixed_fee": {
            "allOf": [
              {
                "$ref": "#/components/schemas/fixed_fee"
              }
            ]
          },
          "web_registration_fee": {
            "allOf": [
              {
                "$ref": "#/components/schemas/web_registration_fee"
              }
            ]
          }
        },
        "required": [
          "examination_master_id"
        ]
      },
      "PlatformShop.Updating.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Shop"
          }
        ]
      },
      "TenantShop.ListRetrieving.QueryParams": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true,
            "minLength": 13,
            "maxLength": 13,
            "example": "s_***********",
            "default": null,
            "description": "ショップID\n"
          },
          "shop_name": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 20,
            "example": "My Shop",
            "default": null,
            "description": "ショップ名\n"
          },
          "shop_mail_address": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 255,
            "example": "platform-shop@example.com",
            "default": null,
            "description": "ショップメールアドレス\n"
          },
          "created_from": {
            "type": "string",
            "nullable": true,
            "example": "2022/05/16",
            "default": null,
            "description": "作成日の範囲指定 開始日\\\nこの日付以降に作成されたショップを検索できます。\\\n形式：`yyyy/MM/dd`\n"
          },
          "created_to": {
            "type": "string",
            "nullable": true,
            "example": "2022/05/16",
            "default": null,
            "description": "作成日の範囲指定 終了日\\\nこの日付以前に作成されたショップを検索できます。\\\n形式：`yyyy/MM/dd`\n"
          },
          "sort": {
            "allOf": [
              {
                "$ref": "#/components/schemas/sort"
              }
            ],
            "nullable": true,
            "description": "ソートする項目と順序を指定します。\\\n例： `?sort=updated␣desc,created␣asc`\\\n\\\nソート可能な項目\n\n- `id`: ショップID\n- `shop_name`: ショップ名\n- `created`: 作成日時\n- `updated`: 更新日時\n"
          }
        }
      },
      "TenantInvoiceRegistration.Response": {
        "type": "object",
        "properties": {
          "registration_number": {
            "type": "string",
            "nullable": true,
            "maxLength": 14,
            "example": "T1234567890123",
            "description": "適格請求書発行事業者登録番号（T番号）。\\\n`T`に続く数字13桁。未登録の場合は `null`。\n"
          },
          "is_displayed": {
            "type": "boolean",
            "nullable": true,
            "example": true,
            "description": "適格請求書発行事業者登録番号の表示設定（マスタ）。\\\n`false` の場合、登録番号が登録されていても各画面・帳票には表示されません。未登録の場合は `null`。\n"
          },
          "is_displayed_for_invoice": {
            "type": "boolean",
            "nullable": true,
            "example": true,
            "description": "インボイス（請求書）における適格請求書発行事業者登録番号の表示設定。\\\n`is_displayed` が `true` の場合に有効。未登録の場合は `null`。\n"
          },
          "is_displayed_for_tenant_account_detail": {
            "type": "boolean",
            "nullable": true,
            "example": true,
            "description": "テナント売上明細における適格請求書発行事業者登録番号の表示設定。\\\n`is_displayed` が `true` の場合に有効。未登録の場合は `null`。\n"
          }
        }
      },
      "TenantShop.ListRetrieving.Response": {
        "type": "object",
        "properties": {
          "list": {
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/Shop"
                },
                {
                  "$ref": "#/components/schemas/TenantInvoiceRegistration.Response"
                }
              ]
            }
          }
        }
      },
      "TenantShop.Retrieving.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Shop"
          },
          {
            "$ref": "#/components/schemas/TenantInvoiceRegistration.Response"
          }
        ]
      },
      "paypay_content_category_type": {
        "type": "string",
        "enum": [
          "1",
          "2"
        ],
        "nullable": true,
        "description": "PayPay審査により決定されるPayPay商材カテゴリー。\n\n- `1`: 物販／サービスショップ\n- `2`: デジタルコンテンツショップ\n\n※ PayPayのみ\n"
      },
      "api_key_display_flag": {
        "type": "string",
        "minLength": 1,
        "maxLength": 1,
        "nullable": true,
        "enum": [
          "0",
          "1"
        ],
        "example": "0",
        "description": "管理画面におけるAPIキー表示フラグ。\n\n- `0`: 表示しない\n- `1`: 表示する\n"
      },
      "TenantShop.Updating.Request": {
        "type": "object",
        "properties": {
          "examination_master_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ExaminationMasterId"
              }
            ]
          },
          "platform_rate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/platform_rate"
              }
            ],
            "description": "（個別）プラットフォーム利用料率。\\\nこのテナントが`id`で指定した決済手段で決済を行うと、このプラットフォーム利用料率が適用されます。\n"
          },
          "fixed_fee": {
            "allOf": [
              {
                "$ref": "#/components/schemas/fixed_fee"
              }
            ],
            "description": "（個別）プラットフォーム利用料 最低料金。\\\nこのテナントが`examination_master_id`で指定した決済手段で決済を行った際、`platform_rate`による利用料がこの最低料金を下回ると、この最低料金が適用されます。\n"
          },
          "web_registration_fee": {
            "allOf": [
              {
                "$ref": "#/components/schemas/web_registration_fee"
              }
            ],
            "description": "（個別）プラットフォーム利用料 Web登録手数料。\\\nこのテナントに紐づく顧客が口座振替における振替用口座登録（Web登録）に成功した際に適用されるWeb登録手数料です。\n"
          },
          "paypay_content_category_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/paypay_content_category_type"
              }
            ],
            "description": "PayPay審査により決定されるPayPay商材カテゴリー。\\\nPayPayのプラットフォーム利用料（`platform_rate`）はこの`paypay_content_category_type`ごとに設定します。\n\n- `1`: 物販／サービスショップ\n- `2`: デジタルコンテンツショップ\n\n※ PayPayのみ\n"
          },
          "api_key_display_flag": {
            "allOf": [
              {
                "$ref": "#/components/schemas/api_key_display_flag"
              }
            ],
            "description": "APIキー表示フラグ\\\n`1`を指定するとテナントショップの管理画面上にAPIキーが表示されるようになります。\n\n- `0`: 表示しない\n- `1`: 表示する\n"
          },
          "registration_number": {
            "type": "string",
            "nullable": true,
            "maxLength": 14,
            "pattern": "^T[0-9]{13}$",
            "example": "T1234567890123",
            "description": "適格請求書発行事業者登録番号（T番号）。\\\n`T`に続けて数字13桁を指定してください。\n"
          },
          "is_displayed": {
            "type": "boolean",
            "example": true,
            "description": "適格請求書発行事業者登録番号の表示設定（マスタ）。\\\n登録番号を各画面・帳票に表示するかどうかを切り替えます。`false`を指定すると登録番号が登録されていても表示されません。\\\nboolean 以外の値を指定した場合は未指定として扱われます（既存値を維持）。\n\n- `false`: 表示しない\n- `true`: 表示する\n"
          },
          "is_displayed_for_invoice": {
            "type": "boolean",
            "example": true,
            "description": "インボイス（請求書）における適格請求書発行事業者登録番号の表示設定。\\\n`is_displayed` を `true` にした場合のみ `true` を指定できます。\\\nboolean 以外の値を指定した場合は未指定として扱われます（既存値を維持）。\n\n- `false`: 表示しない\n- `true`: 表示する\n"
          },
          "is_displayed_for_tenant_account_detail": {
            "type": "boolean",
            "example": true,
            "description": "テナント売上明細における適格請求書発行事業者登録番号の表示設定。\\\n`is_displayed` を `true` にした場合のみ `true` を指定できます。\\\nboolean 以外の値を指定した場合は未指定として扱われます（既存値を維持）。\n\n- `false`: 表示しない\n- `true`: 表示する\n"
          }
        }
      },
      "TenantShop.Updating.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Shop"
          },
          {
            "$ref": "#/components/schemas/TenantInvoiceRegistration.Response"
          }
        ]
      },
      "x-req-properties-email": {
        "type": "string",
        "minLength": 1,
        "maxLength": 254,
        "example": "new-mpb-user@example.com",
        "description": "メールアドレス\\\n\\\nM's PayBridgeに新規作成するユーザーのメールアドレス。\\\nすでに登録されているメールアドレスを指定するとエラーとなります。（エラーコード：`E0087012014`）\\\n\\\n形式： RFC 5322\n"
      },
      "password": {
        "type": "string",
        "minLength": 12,
        "maxLength": 254,
        "example": "password1234",
        "description": "パスワード\\\n\\\nM's PayBridgeに新規作成するユーザーのパスワード。\\\nパスワードは以下の条件を満たす必要があります。\n\n- 半角英数のみ\n- 12文字以上\n- 英数ともに使用\n- 大文字小文字ともに使用\n"
      },
      "x-req-properties-name": {
        "type": "string",
        "minLength": 1,
        "maxLength": 384,
        "example": "Epsilon Taro",
        "description": "ユーザー名\\\n\\\nM's PayBridgeに新規作成するユーザーの名前\n"
      },
      "tenant_url_id": {
        "type": "string",
        "minLength": 25,
        "maxLength": 25,
        "example": "tu_**********************",
        "description": "テナント登録URL ID\\\n\\\nテナント登録URLのID。\\\n[管理画面 > プラットフォームの運用と管理 > 構成](https://mpb-mizuhobank-dashboard.test.fincode.jp/platform/setting)の『テナント登録用のURL』の`tenant_url_id`の値をこのパラメータに指定します。\n"
      },
      "POST.TenantEntries.Request": {
        "type": "object",
        "properties": {
          "email": {
            "allOf": [
              {
                "$ref": "#/components/schemas/x-req-properties-email"
              }
            ]
          },
          "password": {
            "allOf": [
              {
                "$ref": "#/components/schemas/password"
              }
            ]
          },
          "name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/x-req-properties-name"
              }
            ]
          },
          "tenant_url_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tenant_url_id"
              }
            ]
          }
        },
        "required": [
          "email",
          "password",
          "name",
          "tenant_url_id"
        ]
      },
      "Role_properties-id": {
        "type": "integer",
        "minLength": 1,
        "maxLength": 11,
        "example": 9,
        "description": "ロールID\\\n\\\nユーザーの管理画面における権限を示すIDです。\n"
      },
      "User.business_operator": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 24,
            "maxLength": 24,
            "example": "u_**********************",
            "description": "ユーザーID\n"
          },
          "default_shop_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Shop_properties-id"
              }
            ],
            "description": "デフォルトショップID\\\n\\\nこのユーザーがログインした際、どのショップにログインするかを示すID\n"
          },
          "role_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Role_properties-id"
              }
            ]
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 384,
            "example": "Epsilon Taro",
            "description": "ユーザー名\n"
          },
          "email": {
            "type": "string",
            "minLength": 1,
            "maxLength": 384,
            "example": "new-mpb-user@example.com",
            "description": "メールアドレス\n"
          },
          "type": {
            "type": "string",
            "enum": [
              "01"
            ],
            "example": "01",
            "description": "ユーザー種別\n\n- `01`: ショップユーザー\n"
          },
          "two_factor_auth_status": {
            "type": "string",
            "enum": [
              "00",
              "01"
            ],
            "example": "00",
            "description": "二要素認証ステータス\n\n- `00`: 未設定\\\n- `01`: 設定済み\n"
          },
          "mail_auth_status": {
            "type": "string",
            "enum": [
              "00",
              "01"
            ],
            "example": "00",
            "description": "メールアドレス認証ステータス\n\n- `00`: 未設定\\\n- `01`: 設定済み\n"
          },
          "password_lock_status": {
            "type": "string",
            "enum": [
              "00",
              "01"
            ],
            "example": "00",
            "description": "パスワードロックステータス\n\n- `00`: ロックされていない\\\n- `01`: ロック中\n"
          },
          "last_login_date": {
            "type": "string",
            "nullable": true,
            "example": null,
            "description": "最終ログイン日時\\\n\\\n形式：`yyyy/MM/dd HH:mm:ss.SSS`\n"
          },
          "login_failure_date": {
            "type": "string",
            "nullable": true,
            "example": null,
            "description": "ログイン失敗日時\\\n\\\n形式：`yyyy/MM/dd HH:mm:ss.SSS`\n"
          },
          "login_failure_times": {
            "type": "integer",
            "example": 0,
            "description": "ログイン失敗回数\n"
          },
          "password_expire": {
            "type": "string",
            "nullable": true,
            "example": "2022/05/16 12.34.56.789",
            "description": "パスワード有効期限\\\n\\\n形式：`yyyy/MM/dd HH:mm:ss.SSS`\n"
          },
          "account_status": {
            "type": "string",
            "enum": [
              "00",
              "01"
            ],
            "example": "00",
            "description": "アカウントステータス\n\n- `00`: 有効\n- `01`: 無効\n"
          },
          "invite_status": {
            "type": "string",
            "enum": [
              "01",
              "02"
            ],
            "example": "02",
            "description": "招待ステータス\n\n- `01`: 招待中\n- `02`: 参加済み\n"
          },
          "business_operator_id": {
            "type": "string",
            "minLength": 26,
            "maxLength": 26,
            "example": "biz_Ab12Ab12Ab12Ab12Ab12Ab",
            "description": "事業者ID\n"
          },
          "created": {
            "allOf": [
              {
                "$ref": "#/components/schemas/created"
              }
            ]
          },
          "updated": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updated"
              }
            ]
          }
        }
      },
      "POST.TenantEntries.business_operator": {
        "type": "object",
        "properties": {
          "user_data": {
            "allOf": [
              {
                "$ref": "#/components/schemas/User.business_operator"
              }
            ],
            "description": "新規作成されたユーザー情報（このAPIによって新規作成されたテナントのショップIDを含む）\n"
          },
          "access_token": {
            "type": "string",
            "minLength": 112,
            "maxLength": 112,
            "example": "a_****_**************",
            "description": "アクセストークン\n"
          },
          "authorities": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "auth_id": {
                  "type": "integer",
                  "example": 18,
                  "description": "権限ID"
                },
                "endpoint": {
                  "type": "string",
                  "example": "/v1/payments",
                  "description": "エンドポイント"
                },
                "method": {
                  "type": "string",
                  "example": "GET",
                  "description": "HTTPメソッド"
                }
              }
            },
            "description": "ユーザーの権限情報\\\n\\\nこのユーザーが実行可能なエンドポイントとHTTPメソッドの情報\n"
          }
        },
        "x-req-properties": {
          "email": {
            "type": "string",
            "minLength": 1,
            "maxLength": 254,
            "example": "new-mpb-user@example.com",
            "description": "メールアドレス\\\n\\\nM's PayBridgeに新規作成するユーザーのメールアドレス。\\\nすでに登録されているメールアドレスを指定するとエラーとなります。（エラーコード：`E0087012014`）\\\n\\\n形式： RFC 5322\n"
          },
          "password": {
            "type": "string",
            "minLength": 12,
            "maxLength": 254,
            "example": "password1234",
            "description": "パスワード\\\n\\\nM's PayBridgeに新規作成するユーザーのパスワード。\\\nパスワードは以下の条件を満たす必要があります。\n\n- 半角英数のみ\n- 12文字以上\n- 英数ともに使用\n- 大文字小文字ともに使用\n"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 384,
            "example": "Epsilon Taro",
            "description": "ユーザー名\\\n\\\nM's PayBridgeに新規作成するユーザーの名前\n"
          },
          "tenant_url_id": {
            "type": "string",
            "minLength": 25,
            "maxLength": 25,
            "example": "tu_**********************",
            "description": "テナント登録URL ID\\\n\\\nテナント登録URLのID。\\\n[管理画面 > プラットフォームの運用と管理 > 構成](https://mpb-mizuhobank-dashboard.test.fincode.jp/platform/setting)の『テナント登録用のURL』の`tenant_url_id`の値をこのパラメータに指定します。\n"
          }
        }
      },
      "POST.TenantEntries.Response.business_operator": {
        "allOf": [
          {
            "$ref": "#/components/schemas/POST.TenantEntries.business_operator"
          }
        ]
      },
      "POST.JoinTenants_x-req-properties-email": {
        "type": "string",
        "minLength": 1,
        "maxLength": 254,
        "example": "new-mpb-user@example.com",
        "description": "メールアドレス\\\n\\\nプラットフォームショップのユーザーのメールアドレス。\n"
      },
      "x-req-properties-password": {
        "type": "string",
        "minLength": 12,
        "maxLength": 254,
        "example": "password1234",
        "description": "パスワード\\\n\\\nプラットフォームショップのユーザーのパスワード。\n"
      },
      "POST.JoinTenants.Request": {
        "type": "object",
        "properties": {
          "email": {
            "allOf": [
              {
                "$ref": "#/components/schemas/POST.JoinTenants_x-req-properties-email"
              }
            ]
          },
          "password": {
            "allOf": [
              {
                "$ref": "#/components/schemas/x-req-properties-password"
              }
            ]
          },
          "tenant_url_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tenant_url_id"
              }
            ]
          }
        },
        "required": [
          "email",
          "password",
          "tenant_url_id"
        ]
      },
      "shop_name_kana": {
        "type": "string",
        "minLength": 1,
        "maxLength": 40,
        "nullable": true,
        "example": "マイショップ",
        "description": "ショップ名（カナ）\n"
      },
      "platform_id": {
        "type": "string",
        "minLength": 13,
        "maxLength": 13,
        "example": "p_***********",
        "description": "プラットフォームID\n"
      },
      "platform_name": {
        "type": "string",
        "minLength": 1,
        "maxLength": 50,
        "example": "My Platform",
        "nullable": true,
        "description": "プラットフォーム名\n"
      },
      "shared_customer_flag": {
        "type": "string",
        "minLength": 1,
        "maxLength": 1,
        "enum": [
          "0",
          "1"
        ],
        "example": "0",
        "nullable": true,
        "description": "顧客情報共有フラグ\n\n- `0`: 顧客情報を共有しない<br /><span class=\"smallText\">顧客情報は各テナントごとに管理され、各テナントは自ショップに登録された顧客に対してのみ決済を行えます。</span>\n- `1`: 顧客情報を共有する<br /><span class=\"smallText\">顧客情報はプラットフォーム全体で共有され、いずれのテナントもいずれの顧客に対し決済を行えます。</span>\n"
      },
      "customer_group_id": {
        "type": "string",
        "minLength": 13,
        "maxLength": 13,
        "example": "cg_***********",
        "nullable": true,
        "description": "顧客情報共有グループID\\\nM's PayBridgeは同じ顧客情報共有グループIDを持つショップ間で顧客情報を共有します。\n"
      },
      "send_mail_address": {
        "type": "string",
        "minLength": 1,
        "maxLength": 255,
        "nullable": true,
        "example": "send@example.com",
        "description": "通知先メールアドレス\n"
      },
      "shop_mail_address": {
        "type": "string",
        "minLength": 1,
        "maxLength": 255,
        "nullable": true,
        "example": "shop@example.com",
        "description": "ショップメールアドレス\n"
      },
      "log_keep_days": {
        "type": "integer",
        "minimum": 0,
        "maximum": 9999,
        "nullable": true,
        "example": null,
        "description": "ログ保存日数\n"
      },
      "api_version": {
        "type": "string",
        "minLength": 1,
        "maxLength": 8,
        "nullable": true,
        "example": "20211001",
        "description": "APIバージョン\n"
      },
      "POST.JoinTenants": {
        "type": "object",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Shop_properties-id"
              }
            ]
          },
          "shop_name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/shop_name"
              }
            ]
          },
          "shop_name_kana": {
            "allOf": [
              {
                "$ref": "#/components/schemas/shop_name_kana"
              }
            ]
          },
          "shop_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ShopType"
              }
            ]
          },
          "platform_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/platform_id"
              }
            ]
          },
          "platform_name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/platform_name"
              }
            ]
          },
          "shared_customer_flag": {
            "allOf": [
              {
                "$ref": "#/components/schemas/shared_customer_flag"
              }
            ]
          },
          "customer_group_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/customer_group_id"
              }
            ]
          },
          "send_mail_address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/send_mail_address"
              }
            ]
          },
          "shop_mail_address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/shop_mail_address"
              }
            ]
          },
          "log_keep_days": {
            "allOf": [
              {
                "$ref": "#/components/schemas/log_keep_days"
              }
            ]
          },
          "api_version": {
            "allOf": [
              {
                "$ref": "#/components/schemas/api_version"
              }
            ]
          },
          "api_key_display_flag": {
            "allOf": [
              {
                "$ref": "#/components/schemas/api_key_display_flag"
              }
            ]
          },
          "created": {
            "allOf": [
              {
                "$ref": "#/components/schemas/created"
              }
            ]
          },
          "updated": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updated"
              }
            ]
          }
        },
        "x-req-properties": {
          "email": {
            "type": "string",
            "minLength": 1,
            "maxLength": 254,
            "example": "new-mpb-user@example.com",
            "description": "メールアドレス\\\n\\\nプラットフォームショップのユーザーのメールアドレス。\n"
          },
          "password": {
            "type": "string",
            "minLength": 12,
            "maxLength": 254,
            "example": "password1234",
            "description": "パスワード\\\n\\\nプラットフォームショップのユーザーのパスワード。\n"
          },
          "tenant_url_id": {
            "type": "string",
            "minLength": 25,
            "maxLength": 25,
            "example": "tu_**********************",
            "description": "テナント登録URL ID\\\n\\\nテナント登録URLのID。\\\n[管理画面 > プラットフォームの運用と管理 > 構成](https://mpb-mizuhobank-dashboard.test.fincode.jp/platform/setting)の『テナント登録用のURL』の`tenant_url_id`の値をこのパラメータに指定します。\n"
          }
        }
      },
      "POST.JoinTenants.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/POST.JoinTenants"
          }
        ]
      },
      "ContractStatus": {
        "type": "string",
        "enum": [
          "101",
          "102",
          "103",
          "105",
          "106",
          "107"
        ],
        "description": "契約ステータス\\\n\\\nM's PayBridgeとそのショップの運営事業者の契約のステータスを表します。\n\n- `101`: 未契約<br /><span class=\"smallText\">まだM's PayBridgeの本番環境申請の提出が完了していない状態です。</span>\n- `102`: 利用審査中<br /><span class=\"smallText\">M's PayBridgeの本番環境申請の提出が完了し、利用審査中の状態です。</span>\n- `103`: 利用審査中（VISA/Mastercard利用可）<br /><span class=\"smallText\">即時利用によりVISA/Mastercardブランドの決済受付が可能な状態です。審査は継続して行われます。</span>\n- `105`: 解約済\n- `106`: 契約不成立<br /><span class=\"smallText\">審査の結果、M's PayBridgeの利用が不可となった状態です。</span>\n- `107`: 稼働中<br /><span class=\"smallText\">M's PayBridgeの本番環境申請が完了し、クレジットカード決済の受付が可能な状態です。</span>\n"
      },
      "CorporateInfo.V2": {
        "type": "object",
        "properties": {
          "corporate_number": {
            "type": "string",
            "minLength": 13,
            "maxLength": 13,
            "nullable": true,
            "example": "1234567890123",
            "description": "法人番号\n"
          },
          "corporate_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 150,
            "example": "サンプル株式会社",
            "description": "法人名\n"
          },
          "corporate_name_kana": {
            "type": "string",
            "minLength": 1,
            "maxLength": 150,
            "example": "サンプルカブシキガイシャ",
            "description": "法人名（カナ）\n"
          },
          "hp": {
            "type": "string",
            "minLength": 1,
            "maxLength": 300,
            "nullable": true,
            "example": "https://www.sample-corp.example.com",
            "description": "企業サイトURL\n"
          },
          "capital": {
            "type": "number",
            "nullable": true,
            "minLength": 1,
            "maxLength": 19,
            "example": 1000000,
            "description": "資本金\n"
          },
          "established_at": {
            "type": "string",
            "nullable": true,
            "minLength": 10,
            "maxLength": 10,
            "example": "2020/01/01",
            "description": "設立日\n"
          },
          "yearly_sales": {
            "type": "number",
            "nullable": true,
            "minLength": 1,
            "maxLength": 19,
            "example": 1000000,
            "description": "年商\n"
          },
          "business_details": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 5000,
            "example": "○○の製造・販売を行っており、M's PayBridgeによるオンラインでの販売を予定。",
            "description": "事業内容\n"
          },
          "company_postal_code": {
            "type": "string",
            "nullable": true,
            "minLength": 8,
            "maxLength": 8,
            "example": "123-4567",
            "description": "会社住所 郵便番号\\\n形式： 半角数字（ハイフンあり）\n"
          },
          "company_prefecture": {
            "type": "string",
            "nullable": true,
            "minLength": 3,
            "maxLength": 4,
            "example": "東京都",
            "description": "会社住所 都道府県\\\n形式： 漢字\n"
          },
          "company_prefecture_kana": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 6,
            "example": "トウキョウト",
            "description": "会社住所 都道府県（カナ）\\\n形式： 全角カタカナ\n"
          },
          "company_address_municipality": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 50,
            "example": "渋谷区",
            "description": "会社住所 市区町村\\\n形式： 漢字/ひらがな/カタカナ/半角英数\n"
          },
          "company_address_municipality_kana": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 100,
            "example": "シブヤク",
            "description": "会社住所 市区町村（カナ）\\\n形式： 全角カタカナ\n"
          },
          "company_address_section": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 50,
            "example": "道玄坂",
            "description": "会社住所 町域\\\n形式： 漢字/ひらがな/カタカナ/半角英数\n"
          },
          "company_address_section_kana": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 100,
            "example": "ドウゲンザカ",
            "description": "会社住所 町域（カナ）\\\n形式： 全角カタカナ\n"
          },
          "company_address_chrome": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 100,
            "example": "1-2-3",
            "description": "会社住所 番地\\\n形式： 漢字/ひらがな/カタカナ/半角英数\n"
          },
          "company_address_chrome_kana": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 100,
            "example": "イチニサン",
            "description": "会社住所 番地（カナ）\\\n形式： 全角カタカナ\n"
          },
          "company_address_building_name": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 100,
            "example": "サンプルビル",
            "description": "会社住所 ビル名\\\n形式： 漢字/ひらがな/カタカナ/半角英数\n"
          },
          "company_address_building_name_kana": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 100,
            "example": "サンプルビル",
            "description": "会社住所 ビル名（カナ）\\\n形式： 全角カタカナ\n"
          },
          "company_tel": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 15,
            "example": "0312345678",
            "description": "会社情報 電話番号\\\n形式： 半角数字（ハイフンなし）\n"
          }
        },
        "required": [
          "corporate_number",
          "corporate_name",
          "corporate_name_kana",
          "company_postal_code",
          "company_prefecture",
          "company_prefecture_kana",
          "company_address_municipality",
          "company_address_municipality_kana",
          "company_address_section",
          "company_address_section_kana",
          "company_address_chrome",
          "company_address_chrome_kana",
          "company_tel",
          "capital",
          "established_at",
          "yearly_sales",
          "business_details"
        ]
      },
      "ContractInfo.V2": {
        "type": "object",
        "properties": {
          "representative_last_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 20,
            "nullable": true,
            "example": "山田",
            "description": "代表者 姓\n形式： 漢字/ひらがな/カタカナ/半角英字\n"
          },
          "representative_last_name_kana": {
            "type": "string",
            "minLength": 1,
            "maxLength": 20,
            "nullable": true,
            "example": "ヤマダ",
            "description": "代表者 姓（カナ）\\\n形式： 全角カナ\n"
          },
          "representative_first_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 20,
            "nullable": true,
            "example": "太郎",
            "description": "代表者 名\\\n形式： 漢字/ひらがな/カタカナ/半角英字\n"
          },
          "representative_first_name_kana": {
            "type": "string",
            "minLength": 1,
            "maxLength": 20,
            "nullable": true,
            "example": "タロウ",
            "description": "代表者 名（カナ）\\\n形式： 全角カナ\n"
          },
          "representative_postal_code": {
            "type": "string",
            "pattern": "^\\d{3}-\\d{4}$",
            "nullable": true,
            "minLength": 8,
            "maxLength": 8,
            "example": "150-0043",
            "description": "代表者 住所 郵便番号\\\n形式：`xxx-xxxx`\n"
          },
          "representative_prefecture": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4,
            "nullable": true,
            "example": "東京都",
            "description": "代表者 住所 都道府県\\\n形式： 漢字\n"
          },
          "representative_prefecture_kana": {
            "type": "string",
            "minLength": 1,
            "maxLength": 6,
            "nullable": true,
            "example": "トウキョウト",
            "description": "代表者 住所 都道府県（カナ）\\\n形式： 全角カナ\n"
          },
          "representative_address_municipality": {
            "type": "string",
            "minLength": 1,
            "maxLength": 50,
            "nullable": true,
            "example": "渋谷区",
            "description": "代表者 住所 市区町村\\\n形式： 漢字/ひらがな/カタカナ/半角英数\n"
          },
          "representative_address_municipality_kana": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "nullable": true,
            "example": "シブヤク",
            "description": "代表者 住所 市区町村（カナ）\\\n形式： 全角カナ\n"
          },
          "representative_address_section": {
            "type": "string",
            "minLength": 1,
            "maxLength": 50,
            "nullable": true,
            "example": "道玄坂",
            "description": "代表者 住所 町域\\\n形式： 漢字/ひらがな/カタカナ/半角英数\n"
          },
          "representative_address_section_kana": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "nullable": true,
            "example": "ドウゲンザカ",
            "description": "代表者 住所 町域（カナ）\\\n形式： 全角カナ\n"
          },
          "representative_address_chrome": {
            "type": "string",
            "minLength": 1,
            "maxLength": 50,
            "nullable": true,
            "example": "1-14-6",
            "description": "代表者 住所 番地\\\n形式： 漢字/ひらがな/カタカナ/半角英数\n"
          },
          "representative_address_chrome_kana": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "nullable": true,
            "example": "1-14-6",
            "description": "代表者 住所 番地（カナ）\n"
          },
          "representative_address_building_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "nullable": true,
            "example": "ヒューマックス渋谷ビル 7F",
            "description": "代表者 住所 建物名\\\n形式： 漢字/ひらがな/カタカナ/半角英数\n"
          },
          "representative_address_building_name_kana": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "nullable": true,
            "example": "ヒューマックスシブヤビル ナナカイ",
            "description": "代表者 住所 建物名（カナ）\\\n形式： 全角カナ\n"
          },
          "representative_tel": {
            "type": "string",
            "minLength": 1,
            "maxLength": 15,
            "pattern": "^\\d{1,15}$",
            "nullable": true,
            "example": "0364330000",
            "description": "代表者 電話番号\\\n形式： 半角数字（ハイフンなし、PHS番号不可）\n"
          },
          "representative_birthday": {
            "type": "string",
            "pattern": "^\\d{4}/\\d{2}/\\d{2}$",
            "nullable": true,
            "example": "1980/01/01",
            "description": "代表者 生年月日\\\n\\\n形式：`yyyy/MM/dd`\n"
          },
          "representative_gender": {
            "type": "integer",
            "enum": [
              0,
              1
            ],
            "nullable": true,
            "example": 0,
            "description": "代表者 性別\n\n- `0`: 男性\n- `1`: 女性\n"
          },
          "staff1_last_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 20,
            "nullable": true,
            "example": "鈴木",
            "description": "担当者1 姓\\\n形式： 漢字/ひらがな/カタカナ/半角英字\\\n\\\nM's PayBridgeは担当者1,2宛てに審査結果の通知や審査保留対応の連絡などを行います。\n"
          },
          "staff1_last_name_kana": {
            "type": "string",
            "minLength": 1,
            "maxLength": 20,
            "nullable": true,
            "example": "スズキ",
            "description": "担当者1 姓（カナ）\\\n形式： 全角カナ\n"
          },
          "staff1_first_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 20,
            "nullable": true,
            "example": "次郎",
            "description": "担当者1 名\\\n形式： 漢字/ひらがな/カタカナ/半角英字\n"
          },
          "staff1_first_name_kana": {
            "type": "string",
            "minLength": 1,
            "maxLength": 20,
            "nullable": true,
            "example": "ジロウ",
            "description": "担当者1 名（カナ）\\\n形式： 全角カナ\n"
          },
          "staff1_company_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 150,
            "nullable": true,
            "example": "サンプル株式会社",
            "description": "担当者1 会社名\\\n形式： 漢字/ひらがな/カタカナ/半角英数\n"
          },
          "staff1_belongs": {
            "type": "string",
            "minLength": 1,
            "maxLength": 50,
            "nullable": true,
            "example": "EC事業部",
            "description": "担当者1 部署名\\\n形式： 漢字/ひらがな/カタカナ/半角英数\n"
          },
          "staff1_tel": {
            "type": "string",
            "minLength": 1,
            "maxLength": 15,
            "pattern": "^\\d{1,15}$",
            "nullable": true,
            "example": "09000000000",
            "description": "担当者1 電話番号\\\n形式： 半角数字（ハイフンなし、PHS番号不可）\n"
          },
          "staff1_mail": {
            "type": "string",
            "minLength": 1,
            "maxLength": 254,
            "format": "email",
            "nullable": true,
            "example": "staff-1@example.com",
            "description": "担当者1 メールアドレス\\\n形式： RFC 5322\n"
          },
          "staff2_last_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 20,
            "nullable": true,
            "example": "佐藤",
            "description": "担当者2 姓\\\n形式： 漢字/ひらがな/カタカナ/半角英字\n"
          },
          "staff2_last_name_kana": {
            "type": "string",
            "minLength": 1,
            "maxLength": 20,
            "nullable": true,
            "example": "サトウ",
            "description": "担当者2 姓（カナ）\\\n形式： 全角カナ\n"
          },
          "staff2_first_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 20,
            "nullable": true,
            "example": "三郎",
            "description": "担当者2 名\\\n形式： 漢字/ひらがな/カタカナ/半角英字\n"
          },
          "staff2_first_name_kana": {
            "type": "string",
            "minLength": 1,
            "maxLength": 20,
            "nullable": true,
            "example": "サブロウ",
            "description": "担当者2 名（カナ）\\\n形式： 全角カナ\n"
          },
          "staff2_company_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 150,
            "nullable": true,
            "example": "サンプル株式会社",
            "description": "担当者2 会社名\\\n形式： 漢字/ひらがな/カタカナ/半角英数\n"
          },
          "staff2_belongs": {
            "type": "string",
            "minLength": 1,
            "maxLength": 50,
            "nullable": true,
            "example": "営業統括部",
            "description": "担当者2 部署名\\\n形式： 漢字/ひらがな/カタカナ/半角英数\n"
          },
          "staff2_tel": {
            "type": "string",
            "minLength": 1,
            "maxLength": 15,
            "pattern": "^\\d{1,15}$",
            "nullable": true,
            "example": "09000000000",
            "description": "担当者2 電話番号\\\n形式： 半角数字（ハイフンなし、PHS番号不可）\n"
          },
          "staff2_mail": {
            "type": "string",
            "minLength": 1,
            "maxLength": 254,
            "format": "email",
            "nullable": true,
            "example": "staff-2@example.com",
            "description": "担当者2 メールアドレス\\\n形式： RFC 5322\n"
          },
          "corporate": {
            "type": "boolean",
            "nullable": true,
            "example": true,
            "description": "事業形態\\\n\\\n- `true`: 法人\\\n- `false`: 個人事業主\n"
          },
          "corporate_info": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CorporateInfo.V2"
              }
            ],
            "nullable": true,
            "description": "法人情報\n\\\n`corporate`が`true`のとき必須\n"
          }
        },
        "required": [
          "representative_last_name",
          "representative_last_name_kana",
          "representative_first_name",
          "representative_first_name_kana",
          "representative_postal_code",
          "representative_prefecture",
          "representative_prefecture_kana",
          "representative_address_municipality",
          "representative_address_municipality_kana",
          "representative_address_section",
          "representative_address_section_kana",
          "representative_address_chrome",
          "representative_address_chrome_kana",
          "representative_tel",
          "representative_birthday",
          "representative_gender",
          "staff1_last_name",
          "staff1_last_name_kana",
          "staff1_first_name",
          "staff1_first_name_kana",
          "staff1_company_name",
          "staff1_tel",
          "staff1_mail",
          "corporate"
        ]
      },
      "ContentInfo.V2": {
        "type": "object",
        "required": [
          "content1_name",
          "content1_description",
          "content1_unit_price"
        ],
        "properties": {
          "content1_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "example": "サンプル商材1",
            "description": "商材1 名称\n"
          },
          "content1_description": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "example": "サンプル商材1の説明",
            "description": "商材1 説明\n"
          },
          "content1_unit_price": {
            "type": "integer",
            "minLength": 1,
            "maxLength": 19,
            "example": 1000,
            "description": "商材1 単価\n"
          },
          "content2_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "example": "サンプル商材2",
            "description": "商材2 名称\n"
          },
          "content2_description": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "example": "サンプル商材2の説明",
            "description": "商材2 説明\n"
          },
          "content2_unit_price": {
            "type": "integer",
            "minLength": 1,
            "maxLength": 19,
            "example": 2000,
            "description": "商材2 単価\n"
          },
          "content3_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "example": "サンプル商材3",
            "description": "商材3 名称\n"
          },
          "content3_description": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "example": "サンプル商材3の説明",
            "description": "商材3 説明\n"
          },
          "content3_unit_price": {
            "type": "integer",
            "minLength": 1,
            "maxLength": 19,
            "example": 3000,
            "description": "商材3 単価\n"
          }
        }
      },
      "ShopInfo.V2": {
        "type": "object",
        "properties": {
          "shop_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "example": "サンプルショップ東京",
            "description": "M's PayBridgeにおけるショップ名\n"
          },
          "shop_name_kana": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "example": "サンプルショップトウキョウ",
            "description": "M's PayBridgeにおけるショップ名（カナ）\n"
          },
          "shop_name_en": {
            "type": "string",
            "minLength": 1,
            "maxLength": 25,
            "example": "Sample Shop Tokyo",
            "description": "M's PayBridgeにおけるショップ名（英語）\n"
          },
          "support_mail": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 254,
            "example": "support@example.com",
            "description": "購入者向けサポート窓口 メールアドレス\\\n形式： RFC 5322\n"
          },
          "support_tel": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 15,
            "example": 312345678,
            "description": "購入者向けサポート窓口 電話番号\\\n形式： 電話番号（ハイフンなし）\n"
          },
          "unit_price": {
            "type": "number",
            "nullable": true,
            "minLength": 1,
            "maxLength": 23,
            "example": 1000,
            "description": "1回の決済における金額（単価）\\\n\\\n例： `1000`（1000円）\n"
          },
          "deals_long_apply_content": {
            "type": "boolean",
            "nullable": true,
            "example": true,
            "description": "M's PayBridge審査に時間がかかるコンテンツを取り扱うかどうかの表明\n\n- `true`: M's PayBridge審査に時間がかかるコンテンツを取り扱う\n- `false`: M's PayBridge審査に時間がかかるコンテンツを取り扱わない\n\n以下の商材を取り扱う場合は`true`を指定する必要があります。\n\n- 呉服\n- コンサルディングサービス\n- エステ、美容サロン、美容医療\n- スポーツ施設・フィットネスクラブ\n- カルチャースクール・通信講座\n- データ販売\n- 情報詳細（情報の内容自体が商品となるもの）\n- 占い\n- サプリメント・健康食品\n- 美容品・化粧品\n- カツラ\n- 旅行業に該当するサービス\n- タバコ・CBD\n- 寄付金\n"
          },
          "deals_insecure_content": {
            "type": "boolean",
            "nullable": true,
            "example": true,
            "description": "M's PayBridgeで取扱不可の商材を取り扱わないことの表明\n\n- `true`: 取扱不可の商材を取り扱う予定はない\n- `false`: 取扱不可の商材を取り扱う予定がある\n\nM's PayBridgeの禁止商材は以下の通りです。\n\n- 金融行為（クレジットカードショッピング枠の現金化等）\n- 仮想通貨取引、金券（印紙、切手等含む）、商品券、プリペイドカード、有価証券\n- 賭博、ギャンブル\n- RMT（リアルマネートレーディング）\n- ペット等の生き物全般（※標本・剥製も含む）\n- お布施\n- 危険ドラッグ、デザイナーズドラッグ\n- 処方箋なしで購入できる処方薬（ルミガン・ラディース・クラッシュビスタ・ケアプロスト等）\n- 第三者の著作権・肖像権・知的所有権等を侵害する恐れがあるもの\n- 公序良俗に反するもの（アダルト、出会い系サイトを含む）\n- 法律・法令の定めに違反するもの（銃刀法・麻薬取締法・ワシントン条約・薬事法）\n"
          },
          "lost_trial": {
            "type": "boolean",
            "nullable": true,
            "example": true,
            "description": "改正割賦販売法に基づく訴訟敗訴歴があるかどうかの表明\n\n- `true`: 改正割賦販売法に基づく訴訟敗訴歴がない\n- `false`: 改正割賦販売法に基づく訴訟敗訴歴がある\n"
          },
          "use_of_fincode": {
            "type": "object",
            "properties": {
              "used_on_web": {
                "type": "boolean",
                "nullable": true,
                "example": true,
                "description": "Webサイト利用有無\\\n\\\nWebサイト/WebアプリでM's PayBridgeを使用するかどうか\n\n- `true`: Webサイト/WebアプリでM's PayBridgeを使用する\n"
              },
              "used_on_app": {
                "type": "boolean",
                "nullable": true,
                "example": true,
                "description": "ネイティブアプリ利用有無\\\n\\\nネイティブアプリでM's PayBridgeを使用するかどうか\n\n- `true`: ネイティブアプリでM's PayBridgeを使用する\n"
              }
            }
          },
          "site_published": {
            "type": "boolean",
            "nullable": true,
            "example": true,
            "description": "Webサイトの公開状況\\\n\\\nM's PayBridge審査時点で決済機能を提供するWebサイトが閲覧可能かどうかを示します。\\\n`usage_of_fincode.used_on_web`が`true`の場合、指定必須です。\n\n- `true`: M's PayBridge審査チームがサイトを閲覧可能\n- `false`: M's PayBridge審査チームがサイトを閲覧不可能\n"
          },
          "site_info": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string",
                "nullable": true,
                "minLength": 1,
                "maxLength": 300,
                "example": "https://example.com",
                "description": "WebサイトURL\\\n\\\nM's PayBridge審査チームがサイトを閲覧するためのURL\n"
              },
              "credential": {
                "type": "string",
                "nullable": true,
                "minLength": 1,
                "maxLength": 100,
                "example": "ID: example_user,Password: password",
                "description": "ログイン情報\\\n\\\nM's PayBridge審査チームがサイトを閲覧するためのログイン情報\n"
              }
            },
            "required": [
              "url"
            ],
            "description": "Webサイト情報\\\n\\\nM's PayBridge審査チームが審査上確認をする、M's PayBridgeによる決済を行うWebサイトの情報\n"
          },
          "prepaid_point": {
            "type": "boolean",
            "nullable": true,
            "example": true,
            "description": "プリペイドポイントの有無\\\n\\\nショップがプリペイドポイントを導入しているかどうか\n"
          },
          "prepaid_point_info": {
            "type": "object",
            "properties": {
              "how_to_use": {
                "type": "string",
                "nullable": true,
                "minLength": 1,
                "maxLength": 300,
                "example": "ポイントは購入時に利用可能で、合計金額からポイントを差し引いて決済を行う。",
                "description": "ポイント利用方法\\\n\\\nプリペイドポイントの利用方法\n"
              },
              "about_expiration": {
                "type": "string",
                "nullable": true,
                "minLength": 1,
                "maxLength": 300,
                "example": "ポイントは1年間有効。",
                "description": "ポイント有効期限について\\\n\\\nプリペイドポイントの有効期限について\n"
              }
            }
          },
          "provides": {
            "type": "object",
            "description": "商材情報\n",
            "properties": {
              "product": {
                "type": "boolean",
                "nullable": true,
                "example": false,
                "description": "物販商材 提供有無\\\n\\\nショップが物品販売を行うかどうか\n"
              },
              "service": {
                "type": "boolean",
                "nullable": true,
                "example": false,
                "description": "サービス商材 提供有無\\\n\\\nショップがサービス提供を行うかどうか\n"
              },
              "digital_contents": {
                "type": "boolean",
                "nullable": true,
                "example": true,
                "description": "デジタルコンテンツ 提供有無\\\n\\\nショップがデジタルコンテンツ販売を行うかどうか\n"
              }
            }
          },
          "content_description": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 5000,
            "example": "本サービスは、ユーザーが自由にWeb記事を投稿・販売できるコンテンツを提供しています。\n",
            "description": "取扱商材の説明\\\n\\\nショップの提供する商材についての説明\n"
          },
          "product_content_info": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ContentInfo.V2"
              }
            ],
            "description": "物販商材情報<br>webサイトが公開されていない場合、取扱商材の詳細情報が必要になります。<br><a style=\"color: rgb(212, 31, 28);\">※ use_of_fincode.used_on_web または site_publishedが</a> `false` <a style=\"color: rgb(212, 31, 28);\"><br>かつ provides.productが</a> `true` <a style=\"color: rgb(212, 31, 28);\">のとき必須</a>"
          },
          "service_content_info": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ContentInfo.V2"
              }
            ],
            "description": "サービス商材情報<br>webサイトが公開されていない場合、取扱商材の詳細情報が必要になります。<br><a style=\"color: rgb(212, 31, 28);\">※ use_of_fincode.used_on_web または site_publishedが</a> `false` <a style=\"color: rgb(212, 31, 28);\"><br>かつ provides.serviceが</a> `true` <a style=\"color: rgb(212, 31, 28);\">のとき必須</a>"
          },
          "digital_content_info": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ContentInfo.V2"
              }
            ],
            "description": "デジタルコンテンツ商材情報<br>webサイトが公開されていない場合、取扱商材の詳細情報が必要になります。<br><a style=\"color: rgb(212, 31, 28);\">※ use_of_fincode.used_on_web または site_publishedが</a> `false` <a style=\"color: rgb(212, 31, 28);\"><br>かつ provides.digital_contentsが</a> `true` <a style=\"color: rgb(212, 31, 28);\">のとき必須</a>"
          },
          "additional_info": {
            "type": "object",
            "nullable": true,
            "description": "追加提出情報\\\n\\\n審査開始時点でショップのWebサイトが公開されていない場合（`use_of_fincode.used_on_web`が`false`または`site_published`が`false`の場合）、追加で提供する情報です。\\\n特定商取引法に基づく表示情報を基に値を設定してください。\n",
            "properties": {
              "shop_sales_manager_name": {
                "type": "string",
                "nullable": true,
                "minLength": 1,
                "maxLength": 300,
                "example": "イプシロン太郎",
                "description": "販売責任者氏名\\\n\\\nショップの販売責任者の氏名\n"
              },
              "shop_service_name": {
                "type": "string",
                "nullable": true,
                "minLength": 1,
                "maxLength": 300,
                "example": "サンプルショップ",
                "description": "屋号・サービス名\\\n\\\nショップのサービスの名称\n"
              },
              "shop_how_to_pay": {
                "type": "string",
                "nullable": true,
                "minLength": 1,
                "maxLength": 1000,
                "example": "クレジットカード、コンビニ決済",
                "description": "支払い方法\\\n\\\nショップで利用可能な支払い方法\n"
              },
              "shop_charge_description": {
                "type": "string",
                "nullable": true,
                "minLength": 1,
                "maxLength": 5000,
                "example": "インターネット接続費用およびその他インターネット利用に必要な費用。モバイルデバイスをご利用の場合にはデータ通信料が発生する場合があります。\n",
                "description": "商品代金以外の料金の説明\\\n\\\n送料、手数料、消費税などの商品代金以外の料金についての説明\n"
              },
              "shop_product_delivery_time": {
                "type": "string",
                "nullable": true,
                "minLength": 1,
                "maxLength": 1000,
                "example": "サンプルショップのサービス提供開始日はユーザーアカウントで初めて認証手続を行った日となります。\n",
                "description": "商品の引き渡し時期\\\n\\\n商品の引き渡し時期についての説明\n"
              },
              "shop_return_goods_handing_conditions": {
                "type": "string",
                "nullable": true,
                "minLength": 1,
                "maxLength": 5000,
                "example": "1. サービス開始月中に解約した場合、サービスの月額利用料が全額発生します。\n2. デジタルコンテンツサービスの特性上、購入後の返品・キャンセルはお受付いたしかねます。\n",
                "description": "返品・交換に関する条件\\\n\\\n返品・交換に関する条件についての説明\n"
              }
            },
            "required": [
              "shop_sales_manager_name",
              "shop_servoce_name",
              "shop_how_to_pay",
              "shop_product_delivery_time",
              "shop_return_goods_handing_conditions"
            ]
          }
        },
        "required": [
          "shop_name",
          "shop_name_kana",
          "shop_name_en",
          "support_mail",
          "support_tel",
          "deals_long_apply_content",
          "deals_insecure_content",
          "lost_trial",
          "use_of_fincode",
          "provides",
          "content_description"
        ]
      },
      "BankAccountInfo.V2.Response": {
        "type": "object",
        "properties": {
          "bank_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 20,
            "example": "GMOあおぞらネット銀行",
            "description": "金融機関名\n"
          },
          "bank_name_kana": {
            "type": "string",
            "minLength": 1,
            "maxLength": 20,
            "example": "ジーエムオーアオゾラネットギンコウ",
            "description": "金融機関名カナ\n"
          },
          "bank_code": {
            "type": "string",
            "minLength": 4,
            "maxLength": 4,
            "example": "0001",
            "description": "金融機関コード\n"
          },
          "branch_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 20,
            "example": "うみ支店",
            "description": "支店名\n"
          },
          "branch_name_kana": {
            "type": "string",
            "minLength": 1,
            "maxLength": 20,
            "example": "ウミシテン",
            "description": "支店名カナ\n"
          },
          "branch_code": {
            "type": "string",
            "minLength": 3,
            "maxLength": 3,
            "example": "001",
            "description": "支店コード\n"
          },
          "account_kind": {
            "type": "number",
            "enum": [
              0,
              1
            ],
            "example": 0,
            "description": "口座種別\n\n- `0`: 普通\n- `1`: 当座\n"
          },
          "account_number": {
            "type": "string",
            "minLength": 1,
            "maxLength": 7,
            "example": "1234567",
            "description": "口座番号\n"
          },
          "account_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 47,
            "example": "サンプル株式会社",
            "description": "口座名義\n"
          }
        },
        "required": [
          "bank_code",
          "branch_code",
          "account_kind",
          "account_number",
          "account_name"
        ]
      },
      "BusinessOperatorBankAccountInfo.V2": {
        "type": "object",
        "properties": {
          "bank_name": {
            "type": "string",
            "example": "GMOあおぞらネット銀行",
            "minLength": 1,
            "maxLength": 20,
            "description": "金融機関名\n"
          },
          "bank_name_kana": {
            "type": "string",
            "example": "ジーエムオーアオゾラネットギンコウ",
            "minLength": 1,
            "maxLength": 100,
            "description": "金融機関名カナ\n"
          },
          "bank_code": {
            "type": "string",
            "minLength": 4,
            "maxLength": 4,
            "example": "0001",
            "description": "金融機関コード\n"
          },
          "branch_name": {
            "type": "string",
            "example": "うみ支店",
            "minLength": 1,
            "maxLength": 20,
            "description": "支店名\n"
          },
          "branch_name_kana": {
            "type": "string",
            "example": "ウミシテン",
            "minLength": 1,
            "maxLength": 20,
            "description": "支店名カナ\n"
          },
          "branch_code": {
            "type": "string",
            "minLength": 3,
            "maxLength": 3,
            "example": "001",
            "description": "支店コード\n"
          },
          "account_kind": {
            "type": "number",
            "enum": [
              0,
              1
            ],
            "example": 0,
            "description": "口座種別\n\n- `0`: 普通\n- `1`: 当座\n"
          },
          "account_number": {
            "type": "string",
            "minLength": 1,
            "maxLength": 7,
            "example": "1234567",
            "description": "口座番号\n"
          },
          "account_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 16,
            "example": "サンプル株式会社",
            "description": "口座名義カナ\n"
          }
        }
      },
      "DepositCycleMasterId": {
        "type": "integer",
        "example": 1,
        "enum": [
          1,
          2
        ],
        "description": "入金サイクルマスタID\\\n入金サイクルについては[Docs > 精算管理 > クレジットカード決済の入金サイクル](https://mpb-mizuhobank-docs.fincode.jp/business_management/deposit)を参照できます。\n\n- `1`: スタンダード（月1回, 月末締め翌月末入金）\n- `2`: スタンダード（月2回, 15日&月末締め15日後入金）\n"
      },
      "DepositCycleInfo.V2": {
        "type": "object",
        "properties": {
          "deposit_cycle_master_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DepositCycleMasterId"
              }
            ]
          }
        },
        "required": [
          "deposit_cycle_master_id"
        ]
      },
      "ExaminationInfo.V2.business_operator": {
        "type": "object",
        "properties": {
          "status_code": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ContractStatus"
              }
            ]
          },
          "contract_info": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ContractInfo.V2"
              }
            ],
            "description": "契約情報\\\n\\\nM's PayBridgeと契約をする事業者の情報\n"
          },
          "shop_info": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ShopInfo.V2"
              }
            ],
            "description": "ショップ情報\\\n\\\nM's PayBridgeにおけるショップの情報\n"
          },
          "bank_account_info": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BankAccountInfo.V2.Response"
              }
            ],
            "description": "銀行口座情報\\\n\\\nM's PayBridge上での売上入金を受け取るための銀行口座情報\n"
          },
          "business_operator_bank_account_info": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BusinessOperatorBankAccountInfo.V2"
              }
            ],
            "description": "事業者口座情報\n"
          },
          "deposit_cycle_info": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DepositCycleInfo.V2"
              }
            ],
            "description": "入金サイクル情報\\\n\\\nM's PayBridge上での売上入金の入金サイクルに関する情報\n"
          }
        }
      },
      "ExaminationInfo.V2.Retrieving.Response.business_operator": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ExaminationInfo.V2.business_operator"
          }
        ]
      },
      "BankAccountInfo.V2": {
        "type": "object",
        "properties": {
          "bank_code": {
            "type": "string",
            "minLength": 4,
            "maxLength": 4,
            "example": "0001",
            "description": "金融機関コード\n"
          },
          "branch_code": {
            "type": "string",
            "minLength": 3,
            "maxLength": 3,
            "example": "001",
            "description": "支店コード\n"
          },
          "account_kind": {
            "type": "number",
            "enum": [
              0,
              1
            ],
            "example": 0,
            "description": "口座種別\n\n- `0`: 普通\n- `1`: 当座\n"
          },
          "account_number": {
            "type": "string",
            "minLength": 1,
            "maxLength": 7,
            "example": "1234567",
            "description": "口座番号\n"
          },
          "account_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 47,
            "example": "サンプル株式会社",
            "description": "口座名義\n"
          }
        },
        "required": [
          "bank_code",
          "branch_code",
          "account_kind",
          "account_number",
          "account_name"
        ]
      },
      "BusinessOperatorBankAccountInfo.PUT.V2": {
        "type": "object",
        "properties": {
          "bank_code": {
            "type": "string",
            "minLength": 4,
            "maxLength": 4,
            "example": "0001",
            "description": "金融機関コード\n"
          },
          "branch_code": {
            "type": "string",
            "minLength": 3,
            "maxLength": 3,
            "example": "001",
            "description": "支店コード\n"
          },
          "account_kind": {
            "type": "number",
            "enum": [
              0,
              1
            ],
            "example": 0,
            "description": "口座種別\n\n- `0`: 普通\n- `1`: 当座\n"
          },
          "account_number": {
            "type": "string",
            "minLength": 1,
            "maxLength": 7,
            "example": "1234567",
            "description": "口座番号\n"
          },
          "account_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 50,
            "example": "サンプル株式会社",
            "description": "口座名義\n"
          }
        },
        "required": [
          "bank_code",
          "branch_code",
          "account_kind",
          "account_number",
          "account_name"
        ]
      },
      "ExaminationInfo.V2.Updating.Request.business_operator": {
        "type": "object",
        "properties": {
          "contract_info": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ContractInfo.V2"
              }
            ],
            "description": "契約情報\\\n\\\nM's PayBridgeと契約をする事業者の情報\n"
          },
          "shop_info": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ShopInfo.V2"
              }
            ],
            "description": "ショップ情報\\\n\\\nM's PayBridgeにおけるショップの情報\n"
          },
          "bank_account_info": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BankAccountInfo.V2"
              }
            ],
            "description": "銀行口座情報\\\n\\\nM's PayBridge上での売上入金を受け取るための銀行口座情報\n"
          },
          "business_operator_bank_account_info": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BusinessOperatorBankAccountInfo.PUT.V2"
              }
            ],
            "description": "事業者口座情報\n"
          },
          "deposit_cycle_info": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DepositCycleInfo.V2"
              }
            ],
            "description": "入金サイクル情報\\\n\\\nM's PayBridge上での売上入金の入金サイクルに関する情報\n"
          },
          "merchant_category_code": {
            "type": "string",
            "minLength": 4,
            "maxLength": 4,
            "example": null,
            "nullable": true,
            "description": "業種コード\\\n\\\nM's PayBridgeから指定するよう要求されている場合にのみ指定します。\n"
          }
        }
      },
      "ExaminationInfo.V2.Updating.Response.business_operator": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ExaminationInfo.V2.business_operator"
          }
        ]
      },
      "enable_immediate_use": {
        "type": "boolean",
        "example": true,
        "description": "VISA/Mastercard即時利用をリクエストするかどうか\n\n- `true`： 即時利用をリクエストする\n- `false`： 即時利用をリクエストしない\n\n即時利用は以下の場合リクエストできません。\n\n- `本番環境申請情報.contract_info.site_published`が`true`でない（審査時点でWebサイトが用意されていない）\n- `本番環境申請情報.shop_info.deals_long_apply_content`が`true`である（審査に時間がかかる商材を取り扱うと表明している）\n"
      },
      "POST.ContractsExaminations.Request.business_operator": {
        "type": "object",
        "properties": {
          "shop_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Shop_properties-id"
              }
            ]
          },
          "enable_immediate_use": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enable_immediate_use"
              }
            ]
          },
          "force_credit_check_skip": {
            "type": "boolean",
            "description": "信用情報チェックを強制的にスキップする。\n\n- `true`: 審査管理画面から強制OKをする場合のみ\n- `false`: 本番環境申請時\n"
          }
        },
        "required": [
          "shop_id",
          "enable_immediate_use",
          "force_credit_check_skip",
          "use_gmo_sign"
        ]
      },
      "POST.ContractsExaminations": {
        "type": "object",
        "properties": {
          "shop_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Shop_properties-id"
              }
            ],
            "description": "ショップID（テナント）\\\n\\\n審査申請を行うテナントのショップID\n"
          },
          "status_code": {
            "type": "number",
            "enum": [
              1,
              2,
              3
            ],
            "example": 1,
            "description": "申請ステータス\n\n- `1`: OK<br /><span class=\"smallText\">申請が完了しました。審査を行います。<br />`enable_immediate_use = true`の場合は即時利用が認められ、VISA/Mastercardブランドの決済受付が可能な状態です。</span>\n- `2`: NG<br /><span class=\"smallText\">M's PayBridgeの利用が認められませんでした。</span>\n- `3`: 保留<br /><span class=\"smallText\">即時利用が認められませんでした。申請は完了しており、審査は継続して行われます。</span>\n"
          }
        },
        "x-req-properties": {
          "enable_immediate_use": {
            "type": "boolean",
            "example": true,
            "description": "VISA/Mastercard即時利用をリクエストするかどうか\n\n- `true`： 即時利用をリクエストする\n- `false`： 即時利用をリクエストしない\n\n即時利用は以下の場合リクエストできません。\n\n- `本番環境申請情報.contract_info.site_published`が`true`でない（審査時点でWebサイトが用意されていない）\n- `本番環境申請情報.shop_info.deals_long_apply_content`が`true`である（審査に時間がかかる商材を取り扱うと表明している）\n"
          }
        }
      },
      "POST.ContractsExaminations.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/POST.ContractsExaminations"
          }
        ]
      },
      "PaymentProvider": {
        "type": "string",
        "enum": [
          "PAYSLE",
          "PAYPAY",
          "APPLE_PAY_UC",
          "APPLE_PAY_JCB_AMEX",
          "GOOGLE_PAY_UC",
          "GOOGLE_PAY_TFC",
          "GOOGLE_PAY_ORICO",
          "GOOGLE_PAY_AFS",
          "GOOGLE_PAY_MUN",
          "GOOGLE_PAY_JCB_AMEX",
          "GOOGLE_PAY_DINERS",
          "DIRECT_DEBIT",
          "DIRECT_DEBIT_MIZUHO",
          "VIRTUAL_ACCOUNT",
          "VIRTUAL_ACCOUNT_BULK",
          "CARD_UPDATER",
          "PAYEE_ACCOUNT"
        ],
        "description": "- `PAYSLE`: コンビニ決済\n- `PAYPAY`: PayPay\n- `APPLE_PAY_UC`: Apple Pay（VISA/Mastercard- UCカード）\n- `APPLE_PAY_JCB_AMEX`: Apple Pay（JCB/American Express）\n- `GOOGLE_PAY_UC`: Google Pay（VISA/Mastercard - UCカード）\n- `GOOGLE_PAY_TFC`: Google Pay（VISA/Mastercard - トヨタファイナンス）\n- `GOOGLE_PAY_ORICO`: Google Pay（VISA/Mastercard - オリエントコーポレーション）\n- `GOOGLE_PAY_AFS`: Google Pay（VISA/Mastercard - イオンフィナンシャルサービス）\n- `GOOGLE_PAY_MUN`: Google Pay（VISA/Mastercard - 三菱UFJニコス）\n- `GOOGLE_PAY_JCB_AMEX`: Google Pay（JCB/American Express）\n- `GOOGLE_PAY_DINERS`: Google Pay（Diners Club）\n- `DIRECT_DEBIT`: 口座振替（5・6・23・27日）\n- `DIRECT_DEBIT_MIZUHO`: 口座振替（1・5・20・26日）\n- `VIRTUAL_ACCOUNT`: 銀行振込（バーチャル口座）\n- `VIRTUAL_ACCOUNT_BULK`: 一括決済（バーチャル口座）\n- `CARD_UPDATER`: 洗替\n- `PAYEE_ACCOUNT`: 銀行振込（指定口座）\n"
      },
      "provider": {
        "type": "array",
        "items": {
          "allOf": [
            {
              "$ref": "#/components/schemas/PaymentProvider"
            }
          ]
        },
        "example": [
          "PAYSLE",
          "PAYPAY",
          "APPLE_PAY_UC",
          "APPLE_PAY_JCB_AMEX",
          "GOOGLE_PAY_UC",
          "GOOGLE_PAY_TFC",
          "GOOGLE_PAY_ORICO",
          "GOOGLE_PAY_AFS",
          "GOOGLE_PAY_MUN",
          "GOOGLE_PAY_JCB_AMEX",
          "GOOGLE_PAY_DINERS",
          "DIRECT_DEBIT",
          "DIRECT_DEBIT_MIZUHO",
          "VIRTUAL_ACCOUNT",
          "VIRTUAL_ACCOUNT_BULK",
          "CARD_UPDATER",
          "PAYEE_ACCOUNT"
        ],
        "description": "追加対象決済手段\\\n\\\n追加で申請する決済手段をリストで指定します。\n\n- `PAYSLE`: コンビニ決済\n- `PAYPAY`: PayPay\n- `APPLE_PAY_UC`: Apple Pay（VISA/Mastercard- UCカード）\n- `APPLE_PAY_JCB_AMEX`: Apple Pay（JCB/American Express）\n- `GOOGLE_PAY_UC`: Google Pay（VISA/Mastercard - UCカード）\n- `GOOGLE_PAY_TFC`: Google Pay（VISA/Mastercard - トヨタファイナンス）\n- `GOOGLE_PAY_ORICO`: Google Pay（VISA/Mastercard - オリエントコーポレーション）\n- `GOOGLE_PAY_AFS`: Google Pay（VISA/Mastercard - イオンフィナンシャルサービス）\n- `GOOGLE_PAY_MUN`: Google Pay（VISA/Mastercard - 三菱UFJニコス）\n- `GOOGLE_PAY_JCB_AMEX`: Google Pay（JCB/American Express）\n- `GOOGLE_PAY_DINERS`: Google Pay（Diners Club）\n- `DIRECT_DEBIT`: 口座振替（5・6・23・27日）\n- `DIRECT_DEBIT_MIZUHO`: 口座振替（1・5・20・26日）\n- `VIRTUAL_ACCOUNT`: 銀行振込（バーチャル口座）\n- `VIRTUAL_ACCOUNT_BULK`: 一括決済（バーチャル口座）\n- `CARD_UPDATER`: 洗替\n- `PAYEE_ACCOUNT`: 銀行振込（指定口座）\n"
      },
      "POST.ProviderReserve.Request": {
        "type": "object",
        "properties": {
          "provider": {
            "allOf": [
              {
                "$ref": "#/components/schemas/provider"
              }
            ]
          }
        },
        "required": [
          "provider"
        ]
      },
      "POST.ProviderReserve": {
        "type": "object",
        "properties": {
          "reservation_list": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "reservation_id": {
                  "type": "integer",
                  "minLength": 1,
                  "maxLength": 20,
                  "example": 123456,
                  "description": "追加申請ID"
                },
                "shop_id": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Shop_properties-id"
                    }
                  ]
                },
                "provider": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/PaymentProvider"
                    }
                  ]
                }
              }
            },
            "description": "決済手段追加 申請リスト\\\n\\\n申請中の決済手段のリストです。\n"
          }
        },
        "x-req-properties": {
          "provider": {
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/PaymentProvider"
                }
              ]
            },
            "example": [
              "PAYSLE",
              "PAYPAY",
              "APPLE_PAY_UC",
              "APPLE_PAY_JCB_AMEX",
              "GOOGLE_PAY_UC",
              "GOOGLE_PAY_TFC",
              "GOOGLE_PAY_ORICO",
              "GOOGLE_PAY_AFS",
              "GOOGLE_PAY_MUN",
              "GOOGLE_PAY_JCB_AMEX",
              "GOOGLE_PAY_DINERS",
              "DIRECT_DEBIT",
              "DIRECT_DEBIT_MIZUHO",
              "VIRTUAL_ACCOUNT",
              "VIRTUAL_ACCOUNT_BULK",
              "CARD_UPDATER",
              "PAYEE_ACCOUNT"
            ],
            "description": "追加対象決済手段\\\n\\\n追加で申請する決済手段をリストで指定します。\n\n- `PAYSLE`: コンビニ決済\n- `PAYPAY`: PayPay\n- `APPLE_PAY_UC`: Apple Pay（VISA/Mastercard- UCカード）\n- `APPLE_PAY_JCB_AMEX`: Apple Pay（JCB/American Express）\n- `GOOGLE_PAY_UC`: Google Pay（VISA/Mastercard - UCカード）\n- `GOOGLE_PAY_TFC`: Google Pay（VISA/Mastercard - トヨタファイナンス）\n- `GOOGLE_PAY_ORICO`: Google Pay（VISA/Mastercard - オリエントコーポレーション）\n- `GOOGLE_PAY_AFS`: Google Pay（VISA/Mastercard - イオンフィナンシャルサービス）\n- `GOOGLE_PAY_MUN`: Google Pay（VISA/Mastercard - 三菱UFJニコス）\n- `GOOGLE_PAY_JCB_AMEX`: Google Pay（JCB/American Express）\n- `GOOGLE_PAY_DINERS`: Google Pay（Diners Club）\n- `DIRECT_DEBIT`: 口座振替（5・6・23・27日）\n- `DIRECT_DEBIT_MIZUHO`: 口座振替（1・5・20・26日）\n- `VIRTUAL_ACCOUNT`: 銀行振込（バーチャル口座）\n- `VIRTUAL_ACCOUNT_BULK`: 一括決済（バーチャル口座）\n- `CARD_UPDATER`: 洗替\n- `PAYEE_ACCOUNT`: 銀行振込（指定口座）\n"
          }
        }
      },
      "POST.ProviderReserve.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/POST.ProviderReserve"
          }
        ]
      },
      "ContractExaminationMasterId": {
        "type": "number",
        "enum": [
          1,
          2,
          3,
          4,
          5,
          6,
          51,
          52,
          56,
          57,
          58,
          59,
          60,
          61,
          101,
          201,
          301,
          302,
          401,
          403,
          701,
          402
        ],
        "example": 1,
        "description": "審査種別マスタID\\\nこの審査情報がどの決済手段の審査かを示す値です。\n\n- `1`：  カード決済（VISA / Mastercard, UCカード社）\n- `2`：  カード決済（JCB / American Express / Diners Club / Discover）\n- `3`：  カード決済（VISA / Mastercard, トヨタファイナンス社）\n- `4`：  カード決済（VISA / Mastercard, オリエントコーポレーション）\n- `5`：  カード決済（VISA / Mastercard, イオンフィナンシャルサービス）\n- `6`：  カード決済（VISA / Mastercard, 三菱UFJニコス）\n- `51`： Apple Pay（VISA / Mastercard, UCカード社）\n- `52`： Apple Pay（JCB / American Express）\n- `56`： Google Pay（VISA / Mastercard, UCカード社）\n- `57`： Google Pay（JCB / American Express / Diners Club）\n- `58`： Google Pay（VISA / Mastercard, トヨタファイナンス社）\n- `59`： Google Pay（VISA / Mastercard, オリエントコーポレーション）\n- `60`： Google Pay（VISA / Mastercard, イオンフィナンシャルサービス）\n- `61`： Google Pay（VISA / Mastercard, 三菱UFJニコス）\n- `101`： コンビニ決済\n- `201`： PayPay\n- `301`： 口座振替（5・6・23・27日）\n- `302`： 口座振替（1・5・20・26日）\n- `401`： 銀行振込（バーチャル口座）\n- `403`： 一括決済（バーチャル口座）\n- `701`： 洗替\n- `402`： 銀行振込（指定口座）\n"
      },
      "ExaminationStatus": {
        "type": "string",
        "enum": [
          "1",
          "2",
          "3"
        ],
        "description": "審査ステータス\n\n- `1`: 審査中<br /><span class=\"smallText\">まだこの決済手段による決済を受け付けることはできません。</span>\n- `2`: 審査OK<br /><span class=\"smallText\">この決済手段による決済を受け付けることができます。</span>\n- `3`: 審査NG<br /><span class=\"smallText\">この決済手段による決済を受け付けることはできません。</span>\n"
      },
      "Examination": {
        "type": "object",
        "properties": {
          "examination_master_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ContractExaminationMasterId"
              }
            ]
          },
          "status_code": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ExaminationStatus"
              }
            ]
          },
          "member_code": {
            "type": "string",
            "minLength": 1,
            "maxLength": 20,
            "nullable": true,
            "description": "加盟店番号\n"
          },
          "tds_available": {
            "type": "boolean",
            "nullable": true,
            "description": "3Dセキュア認証利用可否\n\n- `true`: 利用可\n- `false`: 利用不可\n"
          },
          "installments_payment_available": {
            "type": "boolean",
            "nullable": true,
            "description": "分割払い利用可否\n\n- `true`: 利用可\n- `false`: 利用不可\n"
          },
          "mcc_1": {
            "type": "string",
            "nullable": true,
            "description": "MCC 1\n"
          },
          "mcc_2": {
            "type": "string",
            "nullable": true,
            "description": "MCC 2\n"
          },
          "paypay_mid": {
            "type": "string",
            "nullable": true,
            "description": "PayPay 加盟店番号\n"
          },
          "paypay_store_id": {
            "type": "string",
            "nullable": true,
            "description": "PayPay 店舗ID\n"
          },
          "paysle_merchant_code": {
            "type": "string",
            "nullable": true,
            "description": "PAYSLE 企業コード\n"
          },
          "paysle_user_id": {
            "type": "string",
            "nullable": true,
            "description": "PAYSLE ログイン企業ID\n"
          },
          "paysle_user_password": {
            "type": "string",
            "nullable": true,
            "description": "PAYSLE システム接続パスワード\n"
          },
          "cut_over_at": {
            "type": "string",
            "nullable": true,
            "description": "利用開始日\\\n形式：`yyyy/MM/dd`\n"
          }
        }
      },
      "corporate_number": {
        "type": "string",
        "minLength": 13,
        "maxLength": 13,
        "nullable": true,
        "example": "1234567890123",
        "description": "法人番号\n"
      },
      "corporate_name": {
        "type": "string",
        "minLength": 1,
        "maxLength": 150,
        "example": "サンプル株式会社",
        "description": "法人名\n"
      },
      "corporate_name_kana": {
        "type": "string",
        "minLength": 1,
        "maxLength": 150,
        "example": "サンプルカブシキガイシャ",
        "description": "法人名（カナ）\n"
      },
      "hp": {
        "type": "string",
        "minLength": 1,
        "maxLength": 300,
        "nullable": true,
        "example": "https://www.sample-corp.example.com",
        "description": "企業サイトURL\n"
      },
      "capital": {
        "type": "number",
        "nullable": true,
        "minLength": 1,
        "maxLength": 19,
        "example": 1000000,
        "description": "資本金\n"
      },
      "established_at": {
        "type": "string",
        "nullable": true,
        "minLength": 10,
        "maxLength": 10,
        "example": "2020/01/01",
        "description": "設立日\n"
      },
      "yearly_sales": {
        "type": "number",
        "nullable": true,
        "minLength": 1,
        "maxLength": 19,
        "example": 1000000,
        "description": "年商\n"
      },
      "business_details": {
        "type": "string",
        "nullable": true,
        "minLength": 1,
        "maxLength": 5000,
        "example": "○○の製造・販売を行っており、M's PayBridgeによるオンラインでの販売を予定。",
        "description": "事業内容\n"
      },
      "company_postal_code": {
        "type": "string",
        "nullable": true,
        "minLength": 8,
        "maxLength": 8,
        "example": "123-4567",
        "description": "会社住所 郵便番号\\\n形式： 半角数字（ハイフンあり）\n"
      },
      "company_prefecture": {
        "type": "string",
        "nullable": true,
        "minLength": 3,
        "maxLength": 4,
        "example": "東京都",
        "description": "会社住所 都道府県\\\n形式： 漢字\n"
      },
      "company_prefecture_kana": {
        "type": "string",
        "nullable": true,
        "minLength": 1,
        "maxLength": 6,
        "example": "トウキョウト",
        "description": "会社住所 都道府県（カナ）\\\n形式： 全角カタカナ\n"
      },
      "company_address_municipality": {
        "type": "string",
        "nullable": true,
        "minLength": 1,
        "maxLength": 50,
        "example": "渋谷区",
        "description": "会社住所 市区町村\\\n形式： 漢字/ひらがな/カタカナ/半角英数\n"
      },
      "company_address_municipality_kana": {
        "type": "string",
        "nullable": true,
        "minLength": 1,
        "maxLength": 100,
        "example": "シブヤク",
        "description": "会社住所 市区町村（カナ）\\\n形式： 全角カタカナ\n"
      },
      "company_address_section": {
        "type": "string",
        "nullable": true,
        "minLength": 1,
        "maxLength": 50,
        "example": "道玄坂",
        "description": "会社住所 町域\\\n形式： 漢字/ひらがな/カタカナ/半角英数\n"
      },
      "company_address_section_kana": {
        "type": "string",
        "nullable": true,
        "minLength": 1,
        "maxLength": 100,
        "example": "ドウゲンザカ",
        "description": "会社住所 町域（カナ）\\\n形式： 全角カタカナ\n"
      },
      "company_address_chrome": {
        "type": "string",
        "nullable": true,
        "minLength": 1,
        "maxLength": 100,
        "example": "1-2-3",
        "description": "会社住所 番地\\\n形式： 漢字/ひらがな/カタカナ/半角英数\n"
      },
      "company_address_chrome_kana": {
        "type": "string",
        "nullable": true,
        "minLength": 1,
        "maxLength": 100,
        "example": "イチニサン",
        "description": "会社住所 番地（カナ）\\\n形式： 全角カタカナ\n"
      },
      "company_address_building_name": {
        "type": "string",
        "nullable": true,
        "minLength": 1,
        "maxLength": 100,
        "example": "サンプルビル",
        "description": "会社住所 ビル名\\\n形式： 漢字/ひらがな/カタカナ/半角英数\n"
      },
      "company_address_building_name_kana": {
        "type": "string",
        "nullable": true,
        "minLength": 1,
        "maxLength": 100,
        "example": "サンプルビル",
        "description": "会社住所 ビル名（カナ）\\\n形式： 全角カタカナ\n"
      },
      "company_tel": {
        "type": "string",
        "nullable": true,
        "minLength": 1,
        "maxLength": 15,
        "example": "0312345678",
        "description": "会社情報 電話番号\\\n形式： 半角数字（ハイフンなし）\n"
      },
      "representative_last_name": {
        "type": "string",
        "minLength": 1,
        "maxLength": 20,
        "nullable": true,
        "example": "山田",
        "description": "代表者 姓\n形式： 漢字/ひらがな/カタカナ/半角英字\n"
      },
      "representative_last_name_kana": {
        "type": "string",
        "minLength": 1,
        "maxLength": 20,
        "nullable": true,
        "example": "ヤマダ",
        "description": "代表者 姓（カナ）\\\n形式： 全角カナ\n"
      },
      "representative_first_name": {
        "type": "string",
        "minLength": 1,
        "maxLength": 20,
        "nullable": true,
        "example": "太郎",
        "description": "代表者 名\\\n形式： 漢字/ひらがな/カタカナ/半角英字\n"
      },
      "representative_first_name_kana": {
        "type": "string",
        "minLength": 1,
        "maxLength": 20,
        "nullable": true,
        "example": "タロウ",
        "description": "代表者 名（カナ）\\\n形式： 全角カナ\n"
      },
      "representative_birthday": {
        "type": "string",
        "pattern": "^\\d{4}/\\d{2}/\\d{2}$",
        "nullable": true,
        "example": "1980/01/01",
        "description": "代表者 生年月日\\\n\\\n形式：`yyyy/MM/dd`\n"
      },
      "representative_gender": {
        "type": "integer",
        "enum": [
          0,
          1
        ],
        "nullable": true,
        "example": 0,
        "description": "代表者 性別\n\n- `0`: 男性\n- `1`: 女性\n"
      },
      "representative_postal_code": {
        "type": "string",
        "pattern": "^\\d{3}-\\d{4}$",
        "nullable": true,
        "minLength": 8,
        "maxLength": 8,
        "example": "150-0043",
        "description": "代表者 住所 郵便番号\\\n形式：`xxx-xxxx`\n"
      },
      "representative_prefecture": {
        "type": "string",
        "minLength": 1,
        "maxLength": 4,
        "nullable": true,
        "example": "東京都",
        "description": "代表者 住所 都道府県\\\n形式： 漢字\n"
      },
      "representative_prefecture_kana": {
        "type": "string",
        "minLength": 1,
        "maxLength": 6,
        "nullable": true,
        "example": "トウキョウト",
        "description": "代表者 住所 都道府県（カナ）\\\n形式： 全角カナ\n"
      },
      "representative_address_municipality": {
        "type": "string",
        "minLength": 1,
        "maxLength": 50,
        "nullable": true,
        "example": "渋谷区",
        "description": "代表者 住所 市区町村\\\n形式： 漢字/ひらがな/カタカナ/半角英数\n"
      },
      "representative_address_municipality_kana": {
        "type": "string",
        "minLength": 1,
        "maxLength": 100,
        "nullable": true,
        "example": "シブヤク",
        "description": "代表者 住所 市区町村（カナ）\\\n形式： 全角カナ\n"
      },
      "representative_address_section": {
        "type": "string",
        "minLength": 1,
        "maxLength": 50,
        "nullable": true,
        "example": "道玄坂",
        "description": "代表者 住所 町域\\\n形式： 漢字/ひらがな/カタカナ/半角英数\n"
      },
      "representative_address_section_kana": {
        "type": "string",
        "minLength": 1,
        "maxLength": 100,
        "nullable": true,
        "example": "ドウゲンザカ",
        "description": "代表者 住所 町域（カナ）\\\n形式： 全角カナ\n"
      },
      "representative_address_chrome": {
        "type": "string",
        "minLength": 1,
        "maxLength": 50,
        "nullable": true,
        "example": "1-14-6",
        "description": "代表者 住所 番地\\\n形式： 漢字/ひらがな/カタカナ/半角英数\n"
      },
      "representative_address_chrome_kana": {
        "type": "string",
        "minLength": 1,
        "maxLength": 100,
        "nullable": true,
        "example": "1-14-6",
        "description": "代表者 住所 番地（カナ）\n"
      },
      "representative_address_building_name": {
        "type": "string",
        "minLength": 1,
        "maxLength": 100,
        "nullable": true,
        "example": "ヒューマックス渋谷ビル 7F",
        "description": "代表者 住所 建物名\\\n形式： 漢字/ひらがな/カタカナ/半角英数\n"
      },
      "representative_address_building_name_kana": {
        "type": "string",
        "minLength": 1,
        "maxLength": 100,
        "nullable": true,
        "example": "ヒューマックスシブヤビル ナナカイ",
        "description": "代表者 住所 建物名（カナ）\\\n形式： 全角カナ\n"
      },
      "representative_tel": {
        "type": "string",
        "minLength": 1,
        "maxLength": 15,
        "pattern": "^\\d{1,15}$",
        "nullable": true,
        "example": "0364330000",
        "description": "代表者 電話番号\\\n形式： 半角数字（ハイフンなし、PHS番号不可）\n"
      },
      "staff1_last_name": {
        "type": "string",
        "minLength": 1,
        "maxLength": 20,
        "nullable": true,
        "example": "鈴木",
        "description": "担当者1 姓\\\n形式： 漢字/ひらがな/カタカナ/半角英字\\\n\\\nM's PayBridgeは担当者1,2宛てに審査結果の通知や審査保留対応の連絡などを行います。\n"
      },
      "staff1_last_name_kana": {
        "type": "string",
        "minLength": 1,
        "maxLength": 20,
        "nullable": true,
        "example": "スズキ",
        "description": "担当者1 姓（カナ）\\\n形式： 全角カナ\n"
      },
      "staff1_first_name": {
        "type": "string",
        "minLength": 1,
        "maxLength": 20,
        "nullable": true,
        "example": "次郎",
        "description": "担当者1 名\\\n形式： 漢字/ひらがな/カタカナ/半角英字\n"
      },
      "staff1_first_name_kana": {
        "type": "string",
        "minLength": 1,
        "maxLength": 20,
        "nullable": true,
        "example": "ジロウ",
        "description": "担当者1 名（カナ）\\\n形式： 全角カナ\n"
      },
      "staff1_company_name": {
        "type": "string",
        "minLength": 1,
        "maxLength": 150,
        "nullable": true,
        "example": "サンプル株式会社",
        "description": "担当者1 会社名\\\n形式： 漢字/ひらがな/カタカナ/半角英数\n"
      },
      "staff1_belongs": {
        "type": "string",
        "minLength": 1,
        "maxLength": 50,
        "nullable": true,
        "example": "EC事業部",
        "description": "担当者1 部署名\\\n形式： 漢字/ひらがな/カタカナ/半角英数\n"
      },
      "staff1_tel": {
        "type": "string",
        "minLength": 1,
        "maxLength": 15,
        "pattern": "^\\d{1,15}$",
        "nullable": true,
        "example": "09000000000",
        "description": "担当者1 電話番号\\\n形式： 半角数字（ハイフンなし、PHS番号不可）\n"
      },
      "staff1_mail": {
        "type": "string",
        "minLength": 1,
        "maxLength": 254,
        "format": "email",
        "nullable": true,
        "example": "staff-1@example.com",
        "description": "担当者1 メールアドレス\\\n形式： RFC 5322\n"
      },
      "staff2_last_name": {
        "type": "string",
        "minLength": 1,
        "maxLength": 20,
        "nullable": true,
        "example": "佐藤",
        "description": "担当者2 姓\\\n形式： 漢字/ひらがな/カタカナ/半角英字\n"
      },
      "staff2_last_name_kana": {
        "type": "string",
        "minLength": 1,
        "maxLength": 20,
        "nullable": true,
        "example": "サトウ",
        "description": "担当者2 姓（カナ）\\\n形式： 全角カナ\n"
      },
      "staff2_first_name": {
        "type": "string",
        "minLength": 1,
        "maxLength": 20,
        "nullable": true,
        "example": "三郎",
        "description": "担当者2 名\\\n形式： 漢字/ひらがな/カタカナ/半角英字\n"
      },
      "staff2_first_name_kana": {
        "type": "string",
        "minLength": 1,
        "maxLength": 20,
        "nullable": true,
        "example": "サブロウ",
        "description": "担当者2 名（カナ）\\\n形式： 全角カナ\n"
      },
      "staff2_company_name": {
        "type": "string",
        "minLength": 1,
        "maxLength": 150,
        "nullable": true,
        "example": "サンプル株式会社",
        "description": "担当者2 会社名\\\n形式： 漢字/ひらがな/カタカナ/半角英数\n"
      },
      "staff2_belongs": {
        "type": "string",
        "minLength": 1,
        "maxLength": 50,
        "nullable": true,
        "example": "営業統括部",
        "description": "担当者2 部署名\\\n形式： 漢字/ひらがな/カタカナ/半角英数\n"
      },
      "staff2_tel": {
        "type": "string",
        "minLength": 1,
        "maxLength": 15,
        "pattern": "^\\d{1,15}$",
        "nullable": true,
        "example": "09000000000",
        "description": "担当者2 電話番号\\\n形式： 半角数字（ハイフンなし、PHS番号不可）\n"
      },
      "staff2_mail": {
        "type": "string",
        "minLength": 1,
        "maxLength": 254,
        "format": "email",
        "nullable": true,
        "example": "staff-2@example.com",
        "description": "担当者2 メールアドレス\\\n形式： RFC 5322\n"
      },
      "used_on_app": {
        "type": "boolean",
        "nullable": true,
        "example": true,
        "description": "ネイティブアプリ利用有無\\\n\\\nネイティブアプリでM's PayBridgeを使用するかどうか\n\n- `true`: ネイティブアプリでM's PayBridgeを使用する\n"
      },
      "used_on_web": {
        "type": "boolean",
        "nullable": true,
        "example": true,
        "description": "Webサイト利用有無\\\n\\\nWebサイト/WebアプリでM's PayBridgeを使用するかどうか\n\n- `true`: Webサイト/WebアプリでM's PayBridgeを使用する\n"
      },
      "url": {
        "type": "string",
        "nullable": true,
        "minLength": 1,
        "maxLength": 300,
        "example": "https://example.com",
        "description": "WebサイトURL\\\n\\\nM's PayBridge審査チームがサイトを閲覧するためのURL\n"
      },
      "credential": {
        "type": "string",
        "nullable": true,
        "minLength": 1,
        "maxLength": 100,
        "example": "ID: example_user,Password: password",
        "description": "ログイン情報\\\n\\\nM's PayBridge審査チームがサイトを閲覧するためのログイン情報\n"
      },
      "properties-shop_name": {
        "type": "string",
        "minLength": 1,
        "maxLength": 100,
        "example": "サンプルショップ東京",
        "description": "M's PayBridgeにおけるショップ名\n"
      },
      "properties-shop_name_kana": {
        "type": "string",
        "minLength": 1,
        "maxLength": 100,
        "example": "サンプルショップトウキョウ",
        "description": "M's PayBridgeにおけるショップ名（カナ）\n"
      },
      "shop_name_en": {
        "type": "string",
        "minLength": 1,
        "maxLength": 25,
        "example": "Sample Shop Tokyo",
        "description": "M's PayBridgeにおけるショップ名（英語）\n"
      },
      "shop_sales_manager_name": {
        "type": "string",
        "nullable": true,
        "minLength": 1,
        "maxLength": 300,
        "example": "イプシロン太郎",
        "description": "販売責任者氏名\\\n\\\nショップの販売責任者の氏名\n"
      },
      "additional_info-properties-shop_service_name": {
        "type": "string",
        "nullable": true,
        "minLength": 1,
        "maxLength": 300,
        "example": "サンプルショップ",
        "description": "屋号・サービス名\\\n\\\nショップのサービスの名称\n"
      },
      "shop_how_to_pay": {
        "type": "string",
        "nullable": true,
        "minLength": 1,
        "maxLength": 1000,
        "example": "クレジットカード、コンビニ決済",
        "description": "支払い方法\\\n\\\nショップで利用可能な支払い方法\n"
      },
      "shop_charge_description": {
        "type": "string",
        "nullable": true,
        "minLength": 1,
        "maxLength": 5000,
        "example": "インターネット接続費用およびその他インターネット利用に必要な費用。モバイルデバイスをご利用の場合にはデータ通信料が発生する場合があります。\n",
        "description": "商品代金以外の料金の説明\\\n\\\n送料、手数料、消費税などの商品代金以外の料金についての説明\n"
      },
      "shop_product_delivery_time": {
        "type": "string",
        "nullable": true,
        "minLength": 1,
        "maxLength": 1000,
        "example": "サンプルショップのサービス提供開始日はユーザーアカウントで初めて認証手続を行った日となります。\n",
        "description": "商品の引き渡し時期\\\n\\\n商品の引き渡し時期についての説明\n"
      },
      "shop_return_goods_handing_conditions": {
        "type": "string",
        "nullable": true,
        "minLength": 1,
        "maxLength": 5000,
        "example": "1. サービス開始月中に解約した場合、サービスの月額利用料が全額発生します。\n2. デジタルコンテンツサービスの特性上、購入後の返品・キャンセルはお受付いたしかねます。\n",
        "description": "返品・交換に関する条件\\\n\\\n返品・交換に関する条件についての説明\n"
      },
      "support_tel": {
        "type": "string",
        "nullable": true,
        "minLength": 1,
        "maxLength": 15,
        "example": 312345678,
        "description": "購入者向けサポート窓口 電話番号\\\n形式： 電話番号（ハイフンなし）\n"
      },
      "support_mail": {
        "type": "string",
        "nullable": true,
        "minLength": 1,
        "maxLength": 254,
        "example": "support@example.com",
        "description": "購入者向けサポート窓口 メールアドレス\\\n形式： RFC 5322\n"
      },
      "product": {
        "type": "boolean",
        "nullable": true,
        "example": false,
        "description": "物販商材 提供有無\\\n\\\nショップが物品販売を行うかどうか\n"
      },
      "service": {
        "type": "boolean",
        "nullable": true,
        "example": false,
        "description": "サービス商材 提供有無\\\n\\\nショップがサービス提供を行うかどうか\n"
      },
      "digital_contents": {
        "type": "boolean",
        "nullable": true,
        "example": true,
        "description": "デジタルコンテンツ 提供有無\\\n\\\nショップがデジタルコンテンツ販売を行うかどうか\n"
      },
      "prepaid_point": {
        "type": "boolean",
        "nullable": true,
        "example": true,
        "description": "プリペイドポイントの有無\\\n\\\nショップがプリペイドポイントを導入しているかどうか\n"
      },
      "unit_price": {
        "type": "number",
        "nullable": true,
        "minLength": 1,
        "maxLength": 23,
        "example": 1000,
        "description": "1回の決済における金額（単価）\\\n\\\n例： `1000`（1000円）\n"
      },
      "content_description": {
        "type": "string",
        "nullable": true,
        "minLength": 1,
        "maxLength": 5000,
        "example": "本サービスは、ユーザーが自由にWeb記事を投稿・販売できるコンテンツを提供しています。\n",
        "description": "取扱商材の説明\\\n\\\nショップの提供する商材についての説明\n"
      },
      "about_expiration": {
        "type": "string",
        "nullable": true,
        "minLength": 1,
        "maxLength": 300,
        "example": "ポイントは1年間有効。",
        "description": "ポイント有効期限について\\\n\\\nプリペイドポイントの有効期限について\n"
      },
      "how_to_use": {
        "type": "string",
        "nullable": true,
        "minLength": 1,
        "maxLength": 300,
        "example": "ポイントは購入時に利用可能で、合計金額からポイントを差し引いて決済を行う。",
        "description": "ポイント利用方法\\\n\\\nプリペイドポイントの利用方法\n"
      },
      "lost_trial": {
        "type": "boolean",
        "nullable": true,
        "example": true,
        "description": "改正割賦販売法に基づく訴訟敗訴歴があるかどうかの表明\n\n- `true`: 改正割賦販売法に基づく訴訟敗訴歴がない\n- `false`: 改正割賦販売法に基づく訴訟敗訴歴がある\n"
      },
      "deals_insecure_content": {
        "type": "boolean",
        "nullable": true,
        "example": true,
        "description": "M's PayBridgeで取扱不可の商材を取り扱わないことの表明\n\n- `true`: 取扱不可の商材を取り扱う予定はない\n- `false`: 取扱不可の商材を取り扱う予定がある\n\nM's PayBridgeの禁止商材は以下の通りです。\n\n- 金融行為（クレジットカードショッピング枠の現金化等）\n- 仮想通貨取引、金券（印紙、切手等含む）、商品券、プリペイドカード、有価証券\n- 賭博、ギャンブル\n- RMT（リアルマネートレーディング）\n- ペット等の生き物全般（※標本・剥製も含む）\n- お布施\n- 危険ドラッグ、デザイナーズドラッグ\n- 処方箋なしで購入できる処方薬（ルミガン・ラディース・クラッシュビスタ・ケアプロスト等）\n- 第三者の著作権・肖像権・知的所有権等を侵害する恐れがあるもの\n- 公序良俗に反するもの（アダルト、出会い系サイトを含む）\n- 法律・法令の定めに違反するもの（銃刀法・麻薬取締法・ワシントン条約・薬事法）\n"
      },
      "deals_long_apply_content": {
        "type": "boolean",
        "nullable": true,
        "example": true,
        "description": "M's PayBridge審査に時間がかかるコンテンツを取り扱うかどうかの表明\n\n- `true`: M's PayBridge審査に時間がかかるコンテンツを取り扱う\n- `false`: M's PayBridge審査に時間がかかるコンテンツを取り扱わない\n\n以下の商材を取り扱う場合は`true`を指定する必要があります。\n\n- 呉服\n- コンサルディングサービス\n- エステ、美容サロン、美容医療\n- スポーツ施設・フィットネスクラブ\n- カルチャースクール・通信講座\n- データ販売\n- 情報詳細（情報の内容自体が商品となるもの）\n- 占い\n- サプリメント・健康食品\n- 美容品・化粧品\n- カツラ\n- 旅行業に該当するサービス\n- タバコ・CBD\n- 寄付金\n"
      },
      "ContractDetail": {
        "type": "object",
        "properties": {
          "corporate": {
            "type": "boolean",
            "nullable": true,
            "example": true,
            "description": "事業形態\n\n- `true`: 法人\n- `false`: 個人事業主\n"
          },
          "corporate_number": {
            "allOf": [
              {
                "$ref": "#/components/schemas/corporate_number"
              }
            ],
            "nullable": true
          },
          "corporate_name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/corporate_name"
              }
            ],
            "nullable": true
          },
          "corporate_name_kana": {
            "allOf": [
              {
                "$ref": "#/components/schemas/corporate_name_kana"
              }
            ],
            "nullable": true
          },
          "hp": {
            "allOf": [
              {
                "$ref": "#/components/schemas/hp"
              }
            ],
            "nullable": true
          },
          "capital": {
            "allOf": [
              {
                "$ref": "#/components/schemas/capital"
              }
            ],
            "nullable": true
          },
          "established_at": {
            "allOf": [
              {
                "$ref": "#/components/schemas/established_at"
              }
            ],
            "nullable": true
          },
          "yearly_sales": {
            "allOf": [
              {
                "$ref": "#/components/schemas/yearly_sales"
              }
            ],
            "nullable": true
          },
          "business_details": {
            "allOf": [
              {
                "$ref": "#/components/schemas/business_details"
              }
            ],
            "nullable": true
          },
          "company_postal_code": {
            "allOf": [
              {
                "$ref": "#/components/schemas/company_postal_code"
              }
            ],
            "nullable": true
          },
          "company_prefecture": {
            "allOf": [
              {
                "$ref": "#/components/schemas/company_prefecture"
              }
            ],
            "nullable": true
          },
          "company_prefecture_kana": {
            "allOf": [
              {
                "$ref": "#/components/schemas/company_prefecture_kana"
              }
            ],
            "nullable": true
          },
          "company_address_municipality": {
            "allOf": [
              {
                "$ref": "#/components/schemas/company_address_municipality"
              }
            ],
            "nullable": true
          },
          "company_address_municipality_kana": {
            "allOf": [
              {
                "$ref": "#/components/schemas/company_address_municipality_kana"
              }
            ],
            "nullable": true
          },
          "company_address_section": {
            "allOf": [
              {
                "$ref": "#/components/schemas/company_address_section"
              }
            ],
            "nullable": true
          },
          "company_address_section_kana": {
            "allOf": [
              {
                "$ref": "#/components/schemas/company_address_section_kana"
              }
            ],
            "nullable": true
          },
          "company_address_chrome": {
            "allOf": [
              {
                "$ref": "#/components/schemas/company_address_chrome"
              }
            ],
            "nullable": true
          },
          "company_address_chrome_kana": {
            "allOf": [
              {
                "$ref": "#/components/schemas/company_address_chrome_kana"
              }
            ],
            "nullable": true
          },
          "company_address_building_name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/company_address_building_name"
              }
            ],
            "nullable": true
          },
          "company_address_building_name_kana": {
            "allOf": [
              {
                "$ref": "#/components/schemas/company_address_building_name_kana"
              }
            ],
            "nullable": true
          },
          "company_tel": {
            "allOf": [
              {
                "$ref": "#/components/schemas/company_tel"
              }
            ],
            "nullable": true
          },
          "representative_last_name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/representative_last_name"
              }
            ],
            "nullable": true
          },
          "representative_last_name_kana": {
            "allOf": [
              {
                "$ref": "#/components/schemas/representative_last_name_kana"
              }
            ],
            "nullable": true
          },
          "representative_first_name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/representative_first_name"
              }
            ],
            "nullable": true
          },
          "representative_first_name_kana": {
            "allOf": [
              {
                "$ref": "#/components/schemas/representative_first_name_kana"
              }
            ],
            "nullable": true
          },
          "representative_birthday": {
            "allOf": [
              {
                "$ref": "#/components/schemas/representative_birthday"
              }
            ],
            "nullable": true
          },
          "representative_gender": {
            "allOf": [
              {
                "$ref": "#/components/schemas/representative_gender"
              }
            ],
            "nullable": true
          },
          "representative_postal_code": {
            "allOf": [
              {
                "$ref": "#/components/schemas/representative_postal_code"
              }
            ],
            "nullable": true
          },
          "representative_prefecture": {
            "allOf": [
              {
                "$ref": "#/components/schemas/representative_prefecture"
              }
            ],
            "nullable": true
          },
          "representative_prefecture_kana": {
            "allOf": [
              {
                "$ref": "#/components/schemas/representative_prefecture_kana"
              }
            ],
            "nullable": true
          },
          "representative_address_municipality": {
            "allOf": [
              {
                "$ref": "#/components/schemas/representative_address_municipality"
              }
            ],
            "nullable": true
          },
          "representative_address_municipality_kana": {
            "allOf": [
              {
                "$ref": "#/components/schemas/representative_address_municipality_kana"
              }
            ],
            "nullable": true
          },
          "representative_address_section": {
            "allOf": [
              {
                "$ref": "#/components/schemas/representative_address_section"
              }
            ],
            "nullable": true
          },
          "representative_address_section_kana": {
            "allOf": [
              {
                "$ref": "#/components/schemas/representative_address_section_kana"
              }
            ],
            "nullable": true
          },
          "representative_address_chrome": {
            "allOf": [
              {
                "$ref": "#/components/schemas/representative_address_chrome"
              }
            ],
            "nullable": true
          },
          "representative_address_chrome_kana": {
            "allOf": [
              {
                "$ref": "#/components/schemas/representative_address_chrome_kana"
              }
            ],
            "nullable": true
          },
          "representative_address_building_name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/representative_address_building_name"
              }
            ],
            "nullable": true
          },
          "representative_address_building_name_kana": {
            "allOf": [
              {
                "$ref": "#/components/schemas/representative_address_building_name_kana"
              }
            ],
            "nullable": true
          },
          "representative_tel": {
            "allOf": [
              {
                "$ref": "#/components/schemas/representative_tel"
              }
            ],
            "nullable": true
          },
          "staff1_last_name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/staff1_last_name"
              }
            ],
            "nullable": true
          },
          "staff1_last_name_kana": {
            "allOf": [
              {
                "$ref": "#/components/schemas/staff1_last_name_kana"
              }
            ],
            "nullable": true
          },
          "staff1_first_name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/staff1_first_name"
              }
            ],
            "nullable": true
          },
          "staff1_first_name_kana": {
            "allOf": [
              {
                "$ref": "#/components/schemas/staff1_first_name_kana"
              }
            ],
            "nullable": true
          },
          "staff1_company_name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/staff1_company_name"
              }
            ],
            "nullable": true
          },
          "staff1_belongs": {
            "allOf": [
              {
                "$ref": "#/components/schemas/staff1_belongs"
              }
            ],
            "nullable": true
          },
          "staff1_tel": {
            "allOf": [
              {
                "$ref": "#/components/schemas/staff1_tel"
              }
            ],
            "nullable": true
          },
          "staff1_mail": {
            "allOf": [
              {
                "$ref": "#/components/schemas/staff1_mail"
              }
            ],
            "nullable": true
          },
          "staff2_last_name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/staff2_last_name"
              }
            ],
            "nullable": true
          },
          "staff2_last_name_kana": {
            "allOf": [
              {
                "$ref": "#/components/schemas/staff2_last_name_kana"
              }
            ],
            "nullable": true
          },
          "staff2_first_name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/staff2_first_name"
              }
            ],
            "nullable": true
          },
          "staff2_first_name_kana": {
            "allOf": [
              {
                "$ref": "#/components/schemas/staff2_first_name_kana"
              }
            ],
            "nullable": true
          },
          "staff2_company_name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/staff2_company_name"
              }
            ],
            "nullable": true
          },
          "staff2_belongs": {
            "allOf": [
              {
                "$ref": "#/components/schemas/staff2_belongs"
              }
            ],
            "nullable": true
          },
          "staff2_tel": {
            "allOf": [
              {
                "$ref": "#/components/schemas/staff2_tel"
              }
            ],
            "nullable": true
          },
          "staff2_mail": {
            "allOf": [
              {
                "$ref": "#/components/schemas/staff2_mail"
              }
            ],
            "nullable": true
          },
          "used_on_app": {
            "allOf": [
              {
                "$ref": "#/components/schemas/used_on_app"
              }
            ],
            "nullable": true
          },
          "used_on_web": {
            "allOf": [
              {
                "$ref": "#/components/schemas/used_on_web"
              }
            ],
            "nullable": true
          },
          "used_on_other": {
            "type": "boolean",
            "nullable": true,
            "example": false,
            "description": "その他の箇所での利用有無\\\n\\\nWebアプリケーションやネイティブアプリ上でない箇所で利用があるかどうか\n\n- `true`: Webアプリ／ネイティブアプリでない箇所でM's PayBridgeを使用する\n"
          },
          "site_existing": {
            "type": "number",
            "enum": [
              0,
              1,
              2
            ],
            "description": "Webサイトの公開状況\\\n\\\nM's PayBridge審査時点で決済機能を提供するWebサイトが閲覧可能かどうかを示します。\n\n- `0`: M's PayBridge審査チームがサイトを閲覧可能\n- `1`: M's PayBridge審査チームがサイトを閲覧不可能（ただし準備中）\n- `2`: M's PayBridge審査チームがサイトを閲覧不可能\n"
          },
          "url": {
            "allOf": [
              {
                "$ref": "#/components/schemas/url"
              }
            ],
            "nullable": true
          },
          "site_credential": {
            "allOf": [
              {
                "$ref": "#/components/schemas/credential"
              }
            ],
            "nullable": true
          },
          "shop_name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-shop_name"
              }
            ],
            "nullable": true
          },
          "shop_name_kana": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-shop_name_kana"
              }
            ],
            "nullable": true
          },
          "shop_name_en": {
            "allOf": [
              {
                "$ref": "#/components/schemas/shop_name_en"
              }
            ],
            "nullable": true
          },
          "shop_distributor_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 300,
            "nullable": true,
            "description": "販売者業者名\n"
          },
          "shop_sales_manager_name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/shop_sales_manager_name"
              }
            ],
            "nullable": true
          },
          "shop_service_name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/additional_info-properties-shop_service_name"
              }
            ],
            "nullable": true
          },
          "shop_support_tel": {
            "type": "string",
            "minLength": 1,
            "maxLength": 15,
            "nullable": true,
            "description": "問い合わせ先電話番号\\\n\\\n購入者が問い合わせる窓口となる電話番号\n"
          },
          "shop_support_mail": {
            "type": "string",
            "minLength": 1,
            "maxLength": 254,
            "nullable": true,
            "description": "問い合わせ先メールアドレス\\\n\\\n購入者が問い合わせる窓口となるメールアドレス\n"
          },
          "shop_post_code": {
            "type": "string",
            "minLength": 1,
            "maxLength": 8,
            "nullable": true,
            "description": "ショップ住所 郵便番号\n"
          },
          "shop_prefecture": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4,
            "nullable": true,
            "description": "ショップ住所 都道府県\n"
          },
          "shop_address_municipality": {
            "type": "string",
            "minLength": 1,
            "maxLength": 50,
            "nullable": true,
            "description": "ショップ住所 市区町村\n"
          },
          "shop_address_section": {
            "type": "string",
            "minLength": 1,
            "maxLength": 50,
            "nullable": true,
            "description": "ショップ住所 町域\n"
          },
          "shop_address_chrome": {
            "type": "string",
            "minLength": 1,
            "maxLength": 50,
            "nullable": true,
            "description": "ショップ住所 番地\n"
          },
          "shop_address_building_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "nullable": true,
            "description": "ショップ住所 建物名等\n"
          },
          "shop_address_building_name_kana": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "nullable": true,
            "description": "ショップ住所 建物名等（カナ）\n"
          },
          "shop_payment_method": {
            "allOf": [
              {
                "$ref": "#/components/schemas/shop_how_to_pay"
              }
            ],
            "nullable": true
          },
          "shop_charge_description": {
            "allOf": [
              {
                "$ref": "#/components/schemas/shop_charge_description"
              }
            ],
            "nullable": true
          },
          "shop_product_delievery_time": {
            "allOf": [
              {
                "$ref": "#/components/schemas/shop_product_delivery_time"
              }
            ],
            "nullable": true
          },
          "shop_return_goods_handing_conditions": {
            "allOf": [
              {
                "$ref": "#/components/schemas/shop_return_goods_handing_conditions"
              }
            ],
            "nullable": true
          },
          "platform_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "nullable": true,
            "description": "プラットフォーム名\n"
          },
          "support_tel": {
            "allOf": [
              {
                "$ref": "#/components/schemas/support_tel"
              }
            ],
            "nullable": true
          },
          "support_mail": {
            "allOf": [
              {
                "$ref": "#/components/schemas/support_mail"
              }
            ],
            "nullable": true
          },
          "provides_product": {
            "allOf": [
              {
                "$ref": "#/components/schemas/product"
              }
            ],
            "nullable": true
          },
          "provides_service": {
            "allOf": [
              {
                "$ref": "#/components/schemas/service"
              }
            ],
            "nullable": true
          },
          "provides_digital_content": {
            "allOf": [
              {
                "$ref": "#/components/schemas/digital_contents"
              }
            ],
            "nullable": true
          },
          "prepaid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/prepaid_point"
              }
            ],
            "nullable": true
          },
          "unit_price": {
            "allOf": [
              {
                "$ref": "#/components/schemas/unit_price"
              }
            ],
            "nullable": true
          },
          "content_category_master_id": {
            "type": "number",
            "minLength": 1,
            "maxLength": 10,
            "nullable": true,
            "description": "取扱商材カテゴリID\n"
          },
          "content_description": {
            "allOf": [
              {
                "$ref": "#/components/schemas/content_description"
              }
            ],
            "nullable": true
          },
          "expiration_date_of_point": {
            "allOf": [
              {
                "$ref": "#/components/schemas/about_expiration"
              }
            ],
            "nullable": true
          },
          "usage_of_point": {
            "allOf": [
              {
                "$ref": "#/components/schemas/how_to_use"
              }
            ],
            "nullable": true
          },
          "lost_trial": {
            "allOf": [
              {
                "$ref": "#/components/schemas/lost_trial"
              }
            ],
            "nullable": true
          },
          "deals_insecure_content": {
            "allOf": [
              {
                "$ref": "#/components/schemas/deals_insecure_content"
              }
            ],
            "nullable": true
          },
          "deals_long_apply_content": {
            "allOf": [
              {
                "$ref": "#/components/schemas/deals_long_apply_content"
              }
            ],
            "nullable": true
          }
        }
      },
      "ShopPaymentMethod": {
        "type": "number",
        "enum": [
          0,
          1
        ],
        "description": "支払い方法\\\n\\\nキャンセル金額の超過などによりM's PayBridgeへの支払が発生した場合の支払い方法\n\n- `0`: クレジットカード\n- `1`: 銀行口座\n"
      },
      "ContractBankAccountInfo": {
        "type": "object",
        "properties": {
          "bank_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 20,
            "description": "銀行名\n"
          },
          "bank_name_kana": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "description": "銀行名（カナ）\n"
          },
          "bank_code": {
            "type": "string",
            "minLength": 4,
            "maxLength": 4,
            "description": "金融機関コード\n"
          },
          "branch_code": {
            "type": "string",
            "minLength": 3,
            "maxLength": 3,
            "description": "支店コード\n"
          },
          "branch_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "description": "支店名\n"
          },
          "branch_name_kana": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "description": "支店名（カナ）\n"
          },
          "account_kind": {
            "type": "number",
            "enum": [
              0,
              1
            ],
            "description": "口座種別\n\n- `0`: 普通\n- `1`: 当座\n"
          },
          "account_number": {
            "type": "string",
            "minLength": 7,
            "maxLength": 7,
            "description": "口座番号\n"
          },
          "account_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 47,
            "description": "口座名義（カタカナ）\n"
          }
        }
      },
      "CardDestination": {
        "type": "object",
        "properties": {
          "contract_card_info_master_id": {
            "type": "integer",
            "nullable": true,
            "minLength": 1,
            "maxLength": 10,
            "example": 123456789,
            "description": "カードマスタID\n"
          },
          "examination_master_id": {
            "type": "number",
            "nullable": true,
            "enum": [
              1,
              2,
              3,
              4,
              5,
              6
            ],
            "example": 1,
            "description": "審査種別マスタID  \n- `1`：  カード決済（VISA / Mastercard, UCカード社）\n- `2`：  カード決済（JCB / American Express / Diners Club / Discover）\n- `3`：  カード決済（VISA / Mastercard, トヨタファイナンス社）\n- `4`：  カード決済（VISA / Mastercard, オリエントコーポレーション）\n- `5`：  カード決済（VISA / Mastercard, イオンフィナンシャルサービス）\n- `6`：  カード決済（VISA / Mastercard, 三菱UFJニコス）\n"
          },
          "destination": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 13,
            "description": "仕向け先\n"
          },
          "destination_type": {
            "type": "number",
            "nullable": true,
            "minLength": 1,
            "maxLength": 3,
            "description": "仕向け先種別\n"
          }
        }
      },
      "CardPaymentSetting": {
        "type": "object",
        "properties": {
          "vm_tds_available": {
            "type": "boolean",
            "nullable": true,
            "example": true,
            "description": "（VISA／Mastercard）3Dセキュア認証が有効かどうか\n\n- `true`: 3Dセキュア認証が有効\n- `false`: 3Dセキュア認証が無効\n"
          },
          "vm_tds_required": {
            "type": "boolean",
            "nullable": true,
            "example": true,
            "description": "（VISA／Mastercard）3Dセキュア認証の利用が必須かどうか\n\n- `true`: 3Dセキュア認証の使用が必須\n- `false`: 3Dセキュア認証の使用が任意\n"
          },
          "ja_tds_available": {
            "type": "boolean",
            "nullable": true,
            "example": true,
            "description": "（JCB／AMEX）3Dセキュア認証が有効かどうか\n\n- `true`: 3Dセキュア認証が有効\n- `false`: 3Dセキュア認証が無効\n"
          },
          "ja_tds_required": {
            "type": "boolean",
            "nullable": true,
            "example": true,
            "description": "（JCB／AMEX）3Dセキュア認証の利用が必須かどうか\n\n- `true`: 3Dセキュア認証の使用が必須\n- `false`: 3Dセキュア認証の使用が任意\n"
          },
          "install_payment_available": {
            "type": "boolean",
            "nullable": true,
            "example": true,
            "description": "分割払い／リボ払いが利用可能かどうか\n\n- `true`: 利用可能\n- `false`: 利用不可\n"
          }
        }
      },
      "RegistryCorporateInfo": {
        "type": "object",
        "properties": {
          "company_name": {
            "type": "string",
            "nullable": true,
            "description": "法人名\n"
          },
          "company_name_kana": {
            "type": "string",
            "nullable": true,
            "description": "法人名（カナ）\n"
          },
          "company_kind": {
            "type": "string",
            "nullable": true,
            "description": "法人種別（国税庁既定のコード定義に準拠）\n"
          },
          "company_postal_code": {
            "type": "string",
            "nullable": true,
            "description": "会社情報 郵便番号\n"
          },
          "company_prefecture_code": {
            "type": "string",
            "nullable": true,
            "description": "会社情報 都道府県コード\n"
          },
          "company_city_code": {
            "type": "string",
            "nullable": true,
            "description": "会社情報 市区町村コード\n"
          },
          "company_prefecture": {
            "type": "string",
            "nullable": true,
            "description": "会社情報 都道府県\n"
          },
          "company_prefecture_kana": {
            "type": "string",
            "nullable": true,
            "description": "会社情報 都道府県（カナ）\n"
          },
          "company_city": {
            "type": "string",
            "nullable": true,
            "description": "会社情報 市区町村\n"
          },
          "company_city_kana": {
            "type": "string",
            "nullable": true,
            "description": "会社情報 市区町村（カナ）\n"
          },
          "company_street": {
            "type": "string",
            "nullable": true,
            "description": "会社情報 町域・丁目・番地\n"
          },
          "company_street_kana": {
            "type": "string",
            "nullable": true,
            "description": "会社情報 町域・丁目・番地（カナ）\n"
          }
        }
      },
      "BusinessOperator": {
        "type": "object",
        "properties": {
          "business_operator_id": {
            "type": "string",
            "nullable": true,
            "description": "事業者ID\n"
          },
          "business_operator_name": {
            "type": "string",
            "nullable": true,
            "description": "事業者名\n"
          },
          "business_operator_name_kana": {
            "type": "string",
            "nullable": true,
            "description": "事業者名カナ\n"
          },
          "service_name": {
            "type": "string",
            "nullable": true,
            "description": "サービス名\n"
          },
          "business_operator_examination_status_code": {
            "type": "number",
            "nullable": true,
            "description": "事業者審査ステータス\n"
          }
        }
      },
      "Contract.business_operator": {
        "type": "object",
        "properties": {
          "shop_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Shop_properties-id"
              }
            ],
            "description": "ショップID（テナント）\n"
          },
          "platform_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/platform_id"
              }
            ]
          },
          "shop_type": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/ShopType"
              }
            ]
          },
          "status_code": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ContractStatus"
              }
            ]
          },
          "examination": {
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/Examination"
                }
              ]
            },
            "description": "審査情報\\\n\\\n決済事業者ごとの審査状況を配列に格納しています。\\\nある決済手段について審査が開始されていない場合、その決済手段に対応する`examination_master_id`をもつオブジェクトは配列中に存在しません。\n"
          },
          "available_status_code": {
            "type": "integer",
            "enum": [
              201,
              202
            ],
            "example": 201,
            "description": "利用可能モード\n\n- 201: テスト環境のみ利用可能\n- 202: 本番環境利用可能\n"
          },
          "create_date": {
            "type": "string",
            "example": "2021/01/01",
            "description": "ショップを作成したユーザーの登録日\n\n形式：`yyyy/MM/dd`\n"
          },
          "contracted_at": {
            "type": "string",
            "nullable": true,
            "example": "2021/01/01",
            "description": "本番環境申請日\n\n形式：`yyyy/MM/dd`\n"
          },
          "start_charging_at": {
            "type": "string",
            "nullable": true,
            "example": "2021/01/01",
            "description": "初回登録完了日\n\n形式：`yyyy/MM/dd`\n"
          },
          "expired_at": {
            "type": "string",
            "nullable": true,
            "example": "2021/12/01",
            "description": "解約日\n\n形式：`yyyy/MM/dd`\n"
          },
          "sales_deposit_status_code": {
            "type": "integer",
            "enum": [
              501,
              502
            ],
            "nullable": true,
            "description": "本人確認手続き ステータス\n\n入金開始に必要な本人確認手続きのステータスを表します。\n- `501`: 入金に必要な手続きが未完了\n- `502`: 入金可能\n"
          },
          "sales_deposit_status_updated_date": {
            "type": "string",
            "nullable": true,
            "example": "2021/01/21",
            "description": "売上入金 可否ステータス 更新日\n\n形式：`yyyy/MM/dd`\n"
          },
          "denied_at": {
            "type": "string",
            "nullable": true,
            "example": null,
            "description": "契約不成立日\n\n形式：`yyyy/MM/dd`\n"
          },
          "suspended_billing": {
            "type": "boolean",
            "nullable": true,
            "example": false,
            "description": "請求停止フラグ\n"
          },
          "suspended_billing_date": {
            "type": "string",
            "nullable": true,
            "example": null,
            "description": "請求停止フラグ 更新日\n\n形式：`yyyy/MM/dd`\n"
          },
          "suspended_payment": {
            "type": "boolean",
            "nullable": true,
            "example": false,
            "description": "入金停止フラグ\n"
          },
          "suspended_payment_date": {
            "type": "string",
            "nullable": true,
            "example": null,
            "description": "入金停止フラグ 更新日\n\n形式：`yyyy/MM/dd`\n"
          },
          "suspended_service": {
            "type": "boolean",
            "nullable": true,
            "example": false,
            "description": "サービス停止フラグ\n"
          },
          "suspended_service_date": {
            "type": "string",
            "nullable": true,
            "example": null,
            "description": "サービス停止フラグ 更新日\n\n形式：`yyyy/MM/dd`\n"
          },
          "suspeded_immediate_use": {
            "type": "boolean",
            "nullable": true,
            "example": false,
            "description": "即時利用停止フラグ\n"
          },
          "suspended_immediate_use_date": {
            "type": "string",
            "nullable": true,
            "example": null,
            "description": "即時利用停止フラグ 更新日\n\n形式：`yyyy/MM/dd`\n"
          },
          "stop_cancelaltion_memo": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 5000,
            "example": null,
            "description": "停止・解約 備考\n"
          },
          "obligations_notice": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 5000,
            "example": null,
            "description": "特記事項（債権債務）\n"
          },
          "user_shop_name": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 50,
            "example": null,
            "description": "ショップ名（ユーザー用）\n"
          },
          "register_mail": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 384,
            "example": null,
            "description": "登録メールアドレス\n"
          },
          "platform_reprentative_shop": {
            "type": "boolean",
            "nullable": true,
            "example": false,
            "description": "プラットフォームの代表ショップか\n\n- true: 代表ショップ\n- false: 代表ショップではない\n"
          },
          "shared_customer_flag": {
            "allOf": [
              {
                "$ref": "#/components/schemas/shared_customer_flag"
              }
            ]
          },
          "contract_detail": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ContractDetail"
              },
              {
                "type": "object",
                "properties": {
                  "pay_by": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/ShopPaymentMethod"
                      }
                    ]
                  }
                }
              }
            ],
            "description": "契約情報\n"
          },
          "contract_bank_account": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ContractBankAccountInfo"
              }
            ],
            "description": "入金先口座\n"
          },
          "contract_virtual_bank": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ContractBankAccountInfo"
              }
            ],
            "description": "バーチャル口座情報\\\n\\\nこのショップに関してM's PayBridgeへの支払いが売上入金額を上回った場合、この口座に所定の期日までに入金を行う必要があります。\n"
          },
          "contract_card_destination": {
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/CardDestination"
                }
              ]
            },
            "description": "カード決済 仕向け先のリスト\n"
          },
          "credit_card_setting": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CardPaymentSetting"
              }
            ],
            "description": "カード決済 設定\\\n\\\n3Dセキュアが有効かどうか・審査の結果、3Dセキュアの利用が必須となったかどうか・分割払い／リボ払い利用ができるかどうかなどの情報が含まれます。\n"
          },
          "official_registered_corporate_info": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RegistryCorporateInfo"
              }
            ],
            "description": "登記簿上の法人情報\n"
          },
          "business_operator": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BusinessOperator"
              }
            ],
            "description": "事業者情報\n"
          }
        }
      },
      "Contracts.Retrieving.Response.business_operator": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Contract.business_operator"
          }
        ]
      },
      "corporate": {
        "type": "boolean",
        "nullable": true,
        "example": true,
        "description": "事業形態\n\n- `true`: 法人\n- `false`: 個人事業主\n"
      },
      "properties-corporate_number": {
        "allOf": [
          {
            "$ref": "#/components/schemas/corporate_number"
          }
        ],
        "nullable": true
      },
      "properties-corporate_name": {
        "allOf": [
          {
            "$ref": "#/components/schemas/corporate_name"
          }
        ],
        "nullable": true
      },
      "properties-corporate_name_kana": {
        "allOf": [
          {
            "$ref": "#/components/schemas/corporate_name_kana"
          }
        ],
        "nullable": true
      },
      "properties-hp": {
        "allOf": [
          {
            "$ref": "#/components/schemas/hp"
          }
        ],
        "nullable": true
      },
      "properties-capital": {
        "allOf": [
          {
            "$ref": "#/components/schemas/capital"
          }
        ],
        "nullable": true
      },
      "properties-established_at": {
        "allOf": [
          {
            "$ref": "#/components/schemas/established_at"
          }
        ],
        "nullable": true
      },
      "properties-yearly_sales": {
        "allOf": [
          {
            "$ref": "#/components/schemas/yearly_sales"
          }
        ],
        "nullable": true
      },
      "properties-business_details": {
        "allOf": [
          {
            "$ref": "#/components/schemas/business_details"
          }
        ],
        "nullable": true
      },
      "properties-company_postal_code": {
        "allOf": [
          {
            "$ref": "#/components/schemas/company_postal_code"
          }
        ],
        "nullable": true
      },
      "properties-company_prefecture": {
        "allOf": [
          {
            "$ref": "#/components/schemas/company_prefecture"
          }
        ],
        "nullable": true
      },
      "properties-company_prefecture_kana": {
        "allOf": [
          {
            "$ref": "#/components/schemas/company_prefecture_kana"
          }
        ],
        "nullable": true
      },
      "properties-company_address_municipality": {
        "allOf": [
          {
            "$ref": "#/components/schemas/company_address_municipality"
          }
        ],
        "nullable": true
      },
      "properties-company_address_municipality_kana": {
        "allOf": [
          {
            "$ref": "#/components/schemas/company_address_municipality_kana"
          }
        ],
        "nullable": true
      },
      "properties-company_address_section": {
        "allOf": [
          {
            "$ref": "#/components/schemas/company_address_section"
          }
        ],
        "nullable": true
      },
      "properties-company_address_section_kana": {
        "allOf": [
          {
            "$ref": "#/components/schemas/company_address_section_kana"
          }
        ],
        "nullable": true
      },
      "properties-company_address_chrome": {
        "allOf": [
          {
            "$ref": "#/components/schemas/company_address_chrome"
          }
        ],
        "nullable": true
      },
      "properties-company_address_chrome_kana": {
        "allOf": [
          {
            "$ref": "#/components/schemas/company_address_chrome_kana"
          }
        ],
        "nullable": true
      },
      "properties-company_address_building_name": {
        "allOf": [
          {
            "$ref": "#/components/schemas/company_address_building_name"
          }
        ],
        "nullable": true
      },
      "properties-company_address_building_name_kana": {
        "allOf": [
          {
            "$ref": "#/components/schemas/company_address_building_name_kana"
          }
        ],
        "nullable": true
      },
      "properties-company_tel": {
        "allOf": [
          {
            "$ref": "#/components/schemas/company_tel"
          }
        ],
        "nullable": true
      },
      "properties-representative_last_name": {
        "allOf": [
          {
            "$ref": "#/components/schemas/representative_last_name"
          }
        ],
        "nullable": true
      },
      "properties-representative_first_name": {
        "allOf": [
          {
            "$ref": "#/components/schemas/representative_first_name"
          }
        ],
        "nullable": true
      },
      "properties-representative_last_name_kana": {
        "allOf": [
          {
            "$ref": "#/components/schemas/representative_last_name_kana"
          }
        ],
        "nullable": true
      },
      "properties-representative_first_name_kana": {
        "allOf": [
          {
            "$ref": "#/components/schemas/representative_first_name_kana"
          }
        ],
        "nullable": true
      },
      "properties-representative_birthday": {
        "allOf": [
          {
            "$ref": "#/components/schemas/representative_birthday"
          }
        ],
        "nullable": true
      },
      "properties-representative_gender": {
        "allOf": [
          {
            "$ref": "#/components/schemas/representative_gender"
          }
        ],
        "nullable": true
      },
      "properties-representative_postal_code": {
        "allOf": [
          {
            "$ref": "#/components/schemas/representative_postal_code"
          }
        ],
        "nullable": true
      },
      "properties-representative_prefecture": {
        "allOf": [
          {
            "$ref": "#/components/schemas/representative_prefecture"
          }
        ],
        "nullable": true
      },
      "properties-representative_prefecture_kana": {
        "allOf": [
          {
            "$ref": "#/components/schemas/representative_prefecture_kana"
          }
        ],
        "nullable": true
      },
      "properties-representative_address_municipality": {
        "allOf": [
          {
            "$ref": "#/components/schemas/representative_address_municipality"
          }
        ],
        "nullable": true
      },
      "properties-representative_address_municipality_kana": {
        "allOf": [
          {
            "$ref": "#/components/schemas/representative_address_municipality_kana"
          }
        ],
        "nullable": true
      },
      "properties-representative_address_section": {
        "allOf": [
          {
            "$ref": "#/components/schemas/representative_address_section"
          }
        ],
        "nullable": true
      },
      "properties-representative_address_section_kana": {
        "allOf": [
          {
            "$ref": "#/components/schemas/representative_address_section_kana"
          }
        ],
        "nullable": true
      },
      "properties-representative_address_chrome": {
        "allOf": [
          {
            "$ref": "#/components/schemas/representative_address_chrome"
          }
        ],
        "nullable": true
      },
      "properties-representative_address_chrome_kana": {
        "allOf": [
          {
            "$ref": "#/components/schemas/representative_address_chrome_kana"
          }
        ],
        "nullable": true
      },
      "properties-representative_address_building_name": {
        "allOf": [
          {
            "$ref": "#/components/schemas/representative_address_building_name"
          }
        ],
        "nullable": true
      },
      "properties-representative_address_building_name_kana": {
        "allOf": [
          {
            "$ref": "#/components/schemas/representative_address_building_name_kana"
          }
        ],
        "nullable": true
      },
      "properties-representative_tel": {
        "allOf": [
          {
            "$ref": "#/components/schemas/representative_tel"
          }
        ],
        "nullable": true
      },
      "properties-staff1_last_name": {
        "allOf": [
          {
            "$ref": "#/components/schemas/staff1_last_name"
          }
        ],
        "nullable": true
      },
      "properties-staff1_first_name": {
        "allOf": [
          {
            "$ref": "#/components/schemas/staff1_first_name"
          }
        ],
        "nullable": true
      },
      "properties-staff1_last_name_kana": {
        "allOf": [
          {
            "$ref": "#/components/schemas/staff1_last_name_kana"
          }
        ],
        "nullable": true
      },
      "properties-staff1_first_name_kana": {
        "allOf": [
          {
            "$ref": "#/components/schemas/staff1_first_name_kana"
          }
        ],
        "nullable": true
      },
      "properties-staff1_company_name": {
        "allOf": [
          {
            "$ref": "#/components/schemas/staff1_company_name"
          }
        ],
        "nullable": true
      },
      "properties-staff1_belongs": {
        "allOf": [
          {
            "$ref": "#/components/schemas/staff1_belongs"
          }
        ],
        "nullable": true
      },
      "properties-staff1_tel": {
        "allOf": [
          {
            "$ref": "#/components/schemas/staff1_tel"
          }
        ],
        "nullable": true
      },
      "properties-staff1_mail": {
        "allOf": [
          {
            "$ref": "#/components/schemas/staff1_mail"
          }
        ],
        "nullable": true
      },
      "properties-staff2_last_name": {
        "allOf": [
          {
            "$ref": "#/components/schemas/staff2_last_name"
          }
        ],
        "nullable": true
      },
      "properties-staff2_first_name": {
        "allOf": [
          {
            "$ref": "#/components/schemas/staff2_first_name"
          }
        ],
        "nullable": true
      },
      "properties-staff2_last_name_kana": {
        "allOf": [
          {
            "$ref": "#/components/schemas/staff2_last_name_kana"
          }
        ],
        "nullable": true
      },
      "properties-staff2_first_name_kana": {
        "allOf": [
          {
            "$ref": "#/components/schemas/staff2_first_name_kana"
          }
        ],
        "nullable": true
      },
      "properties-staff2_company_name": {
        "allOf": [
          {
            "$ref": "#/components/schemas/staff2_company_name"
          }
        ],
        "nullable": true
      },
      "properties-staff2_belongs": {
        "allOf": [
          {
            "$ref": "#/components/schemas/staff2_belongs"
          }
        ],
        "nullable": true
      },
      "properties-staff2_tel": {
        "allOf": [
          {
            "$ref": "#/components/schemas/staff2_tel"
          }
        ],
        "nullable": true
      },
      "properties-staff2_mail": {
        "allOf": [
          {
            "$ref": "#/components/schemas/staff2_mail"
          }
        ],
        "nullable": true
      },
      "properties-used_on_web": {
        "allOf": [
          {
            "$ref": "#/components/schemas/used_on_web"
          }
        ],
        "nullable": true
      },
      "properties-used_on_app": {
        "allOf": [
          {
            "$ref": "#/components/schemas/used_on_app"
          }
        ],
        "nullable": true
      },
      "used_on_other": {
        "type": "boolean",
        "nullable": true,
        "example": false,
        "description": "その他の箇所での利用有無\\\n\\\nWebアプリケーションやネイティブアプリ上でない箇所で利用があるかどうか\n\n- `true`: Webアプリ／ネイティブアプリでない箇所でM's PayBridgeを使用する\n"
      },
      "properties-url": {
        "allOf": [
          {
            "$ref": "#/components/schemas/url"
          }
        ],
        "nullable": true
      },
      "site_credential": {
        "allOf": [
          {
            "$ref": "#/components/schemas/credential"
          }
        ],
        "nullable": true
      },
      "ContractDetail_properties-shop_name": {
        "allOf": [
          {
            "$ref": "#/components/schemas/properties-shop_name"
          }
        ],
        "nullable": true
      },
      "ContractDetail_properties-shop_name_kana": {
        "allOf": [
          {
            "$ref": "#/components/schemas/properties-shop_name_kana"
          }
        ],
        "nullable": true
      },
      "properties-shop_name_en": {
        "allOf": [
          {
            "$ref": "#/components/schemas/shop_name_en"
          }
        ],
        "nullable": true
      },
      "properties-support_tel": {
        "allOf": [
          {
            "$ref": "#/components/schemas/support_tel"
          }
        ],
        "nullable": true
      },
      "properties-support_mail": {
        "allOf": [
          {
            "$ref": "#/components/schemas/support_mail"
          }
        ],
        "nullable": true
      },
      "provides_product": {
        "allOf": [
          {
            "$ref": "#/components/schemas/product"
          }
        ],
        "nullable": true
      },
      "provides_service": {
        "allOf": [
          {
            "$ref": "#/components/schemas/service"
          }
        ],
        "nullable": true
      },
      "prepaid": {
        "allOf": [
          {
            "$ref": "#/components/schemas/prepaid_point"
          }
        ],
        "nullable": true
      },
      "properties-unit_price": {
        "allOf": [
          {
            "$ref": "#/components/schemas/unit_price"
          }
        ],
        "nullable": true
      },
      "properties-content_description": {
        "allOf": [
          {
            "$ref": "#/components/schemas/content_description"
          }
        ],
        "nullable": true
      },
      "ChangeRequest.Registering.Request": {
        "type": "object",
        "required": [
          "shop_id",
          "need_change_examination"
        ],
        "properties": {
          "shop_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Shop_properties-id"
              }
            ]
          },
          "need_change_examination": {
            "type": "boolean",
            "description": "変更申請（審査）を行うか\n"
          },
          "corporate": {
            "$ref": "#/components/schemas/corporate"
          },
          "corporate_number": {
            "$ref": "#/components/schemas/properties-corporate_number"
          },
          "corporate_name": {
            "$ref": "#/components/schemas/properties-corporate_name"
          },
          "corporate_name_kana": {
            "$ref": "#/components/schemas/properties-corporate_name_kana"
          },
          "hp": {
            "$ref": "#/components/schemas/properties-hp"
          },
          "capital": {
            "$ref": "#/components/schemas/properties-capital"
          },
          "established_at": {
            "$ref": "#/components/schemas/properties-established_at"
          },
          "yearly_sales": {
            "$ref": "#/components/schemas/properties-yearly_sales"
          },
          "business_details": {
            "$ref": "#/components/schemas/properties-business_details"
          },
          "company_postal_code": {
            "$ref": "#/components/schemas/properties-company_postal_code"
          },
          "company_prefecture": {
            "$ref": "#/components/schemas/properties-company_prefecture"
          },
          "company_prefecture_kana": {
            "$ref": "#/components/schemas/properties-company_prefecture_kana"
          },
          "company_address_municipality": {
            "$ref": "#/components/schemas/properties-company_address_municipality"
          },
          "company_address_municipality_kana": {
            "$ref": "#/components/schemas/properties-company_address_municipality_kana"
          },
          "company_address_section": {
            "$ref": "#/components/schemas/properties-company_address_section"
          },
          "company_address_section_kana": {
            "$ref": "#/components/schemas/properties-company_address_section_kana"
          },
          "company_address_chrome": {
            "$ref": "#/components/schemas/properties-company_address_chrome"
          },
          "company_address_chrome_kana": {
            "$ref": "#/components/schemas/properties-company_address_chrome_kana"
          },
          "company_address_building_name": {
            "$ref": "#/components/schemas/properties-company_address_building_name"
          },
          "company_address_building_name_kana": {
            "$ref": "#/components/schemas/properties-company_address_building_name_kana"
          },
          "company_tel": {
            "$ref": "#/components/schemas/properties-company_tel"
          },
          "representative_last_name": {
            "$ref": "#/components/schemas/properties-representative_last_name"
          },
          "representative_first_name": {
            "$ref": "#/components/schemas/properties-representative_first_name"
          },
          "representative_last_name_kana": {
            "$ref": "#/components/schemas/properties-representative_last_name_kana"
          },
          "representative_first_name_kana": {
            "$ref": "#/components/schemas/properties-representative_first_name_kana"
          },
          "representative_birthday": {
            "$ref": "#/components/schemas/properties-representative_birthday"
          },
          "representative_gender": {
            "$ref": "#/components/schemas/properties-representative_gender"
          },
          "representative_postal_code": {
            "$ref": "#/components/schemas/properties-representative_postal_code"
          },
          "representative_prefecture": {
            "$ref": "#/components/schemas/properties-representative_prefecture"
          },
          "representative_prefecture_kana": {
            "$ref": "#/components/schemas/properties-representative_prefecture_kana"
          },
          "representative_address_municipality": {
            "$ref": "#/components/schemas/properties-representative_address_municipality"
          },
          "representative_address_municipality_kana": {
            "$ref": "#/components/schemas/properties-representative_address_municipality_kana"
          },
          "representative_address_section": {
            "$ref": "#/components/schemas/properties-representative_address_section"
          },
          "representative_address_section_kana": {
            "$ref": "#/components/schemas/properties-representative_address_section_kana"
          },
          "representative_address_chrome": {
            "$ref": "#/components/schemas/properties-representative_address_chrome"
          },
          "representative_address_chrome_kana": {
            "$ref": "#/components/schemas/properties-representative_address_chrome_kana"
          },
          "representative_address_building_name": {
            "$ref": "#/components/schemas/properties-representative_address_building_name"
          },
          "representative_address_building_name_kana": {
            "$ref": "#/components/schemas/properties-representative_address_building_name_kana"
          },
          "representative_tel": {
            "$ref": "#/components/schemas/properties-representative_tel"
          },
          "staff1_last_name": {
            "$ref": "#/components/schemas/properties-staff1_last_name"
          },
          "staff1_first_name": {
            "$ref": "#/components/schemas/properties-staff1_first_name"
          },
          "staff1_last_name_kana": {
            "$ref": "#/components/schemas/properties-staff1_last_name_kana"
          },
          "staff1_first_name_kana": {
            "$ref": "#/components/schemas/properties-staff1_first_name_kana"
          },
          "staff1_company_name": {
            "$ref": "#/components/schemas/properties-staff1_company_name"
          },
          "staff1_belongs": {
            "$ref": "#/components/schemas/properties-staff1_belongs"
          },
          "staff1_tel": {
            "$ref": "#/components/schemas/properties-staff1_tel"
          },
          "staff1_mail": {
            "$ref": "#/components/schemas/properties-staff1_mail"
          },
          "staff2_last_name": {
            "$ref": "#/components/schemas/properties-staff2_last_name"
          },
          "staff2_first_name": {
            "$ref": "#/components/schemas/properties-staff2_first_name"
          },
          "staff2_last_name_kana": {
            "$ref": "#/components/schemas/properties-staff2_last_name_kana"
          },
          "staff2_first_name_kana": {
            "$ref": "#/components/schemas/properties-staff2_first_name_kana"
          },
          "staff2_company_name": {
            "$ref": "#/components/schemas/properties-staff2_company_name"
          },
          "staff2_belongs": {
            "$ref": "#/components/schemas/properties-staff2_belongs"
          },
          "staff2_tel": {
            "$ref": "#/components/schemas/properties-staff2_tel"
          },
          "staff2_mail": {
            "$ref": "#/components/schemas/properties-staff2_mail"
          },
          "used_on_web": {
            "$ref": "#/components/schemas/properties-used_on_web"
          },
          "used_on_app": {
            "$ref": "#/components/schemas/properties-used_on_app"
          },
          "used_on_other": {
            "$ref": "#/components/schemas/used_on_other"
          },
          "url": {
            "$ref": "#/components/schemas/properties-url"
          },
          "site_credential": {
            "$ref": "#/components/schemas/site_credential"
          },
          "shop_name": {
            "$ref": "#/components/schemas/ContractDetail_properties-shop_name"
          },
          "shop_name_kana": {
            "$ref": "#/components/schemas/ContractDetail_properties-shop_name_kana"
          },
          "shop_name_en": {
            "$ref": "#/components/schemas/properties-shop_name_en"
          },
          "support_tel": {
            "$ref": "#/components/schemas/properties-support_tel"
          },
          "support_mail": {
            "$ref": "#/components/schemas/properties-support_mail"
          },
          "provides_product": {
            "$ref": "#/components/schemas/provides_product"
          },
          "provides_service": {
            "$ref": "#/components/schemas/provides_service"
          },
          "provides_digital_contents": {
            "type": "boolean",
            "nullable": true,
            "description": "デジタルコンテンツを取り扱うか\n"
          },
          "prepaid": {
            "$ref": "#/components/schemas/prepaid"
          },
          "unit_price": {
            "$ref": "#/components/schemas/properties-unit_price"
          },
          "content_description": {
            "$ref": "#/components/schemas/properties-content_description"
          },
          "bank_name": {
            "type": "string",
            "nullable": true,
            "description": "銀行名\n"
          },
          "bank_name_kana": {
            "type": "string",
            "nullable": true,
            "description": "銀行名（カナ）\n"
          },
          "bank_code": {
            "type": "string",
            "nullable": true,
            "description": "銀行コード\n"
          },
          "branch_name": {
            "type": "string",
            "nullable": true,
            "description": "支店名\n"
          },
          "branch_name_kana": {
            "type": "string",
            "nullable": true,
            "description": "支店名（カナ）\n"
          },
          "branch_code": {
            "type": "string",
            "nullable": true,
            "description": "支店コード\n"
          },
          "account_kind": {
            "type": "integer",
            "nullable": true,
            "description": "預金種別\n"
          },
          "account_number": {
            "type": "string",
            "nullable": true,
            "description": "口座番号\n"
          },
          "account_name": {
            "type": "string",
            "nullable": true,
            "description": "口座名義\n"
          },
          "business_operator_bank_name": {
            "type": "string",
            "nullable": true,
            "description": "事業者 銀行名\n"
          },
          "business_operator_bank_name_kana": {
            "type": "string",
            "nullable": true,
            "description": "事業者 銀行名（カナ）\n"
          },
          "business_operator_bank_code": {
            "type": "string",
            "nullable": true,
            "description": "事業者 銀行コード\n"
          },
          "business_operator_branch_name": {
            "type": "string",
            "nullable": true,
            "description": "事業者 支店名\n"
          },
          "business_operator_branch_name_kana": {
            "type": "string",
            "nullable": true,
            "description": "事業者 支店名（カナ）\n"
          },
          "business_operator_branch_code": {
            "type": "string",
            "nullable": true,
            "description": "事業者 支店コード\n"
          },
          "business_operator_account_kind": {
            "type": "integer",
            "nullable": true,
            "description": "事業者 預金種別\n"
          },
          "business_operator_account_number": {
            "type": "string",
            "nullable": true,
            "description": "事業者 口座番号\n"
          },
          "business_operator_account_name": {
            "type": "string",
            "nullable": true,
            "description": "事業者 口座名義\n"
          },
          "memo": {
            "type": "string",
            "nullable": true,
            "description": "メモ\n"
          }
        }
      },
      "ChangeRequest.Registering.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ChangeRequest.Registering.Request"
          },
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "変更申請ID\n"
              },
              "status_code": {
                "type": "integer",
                "nullable": true,
                "description": "申請ステータス\n"
              }
            }
          }
        ]
      },
      "ChangeRequest.Retrieving.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ChangeRequest.Registering.Request"
          },
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "変更申請ID\n"
              },
              "status_code": {
                "type": "integer",
                "nullable": true,
                "description": "申請ステータス\n"
              }
            }
          }
        ]
      },
      "CompanyStamp": {
        "type": "object",
        "properties": {
          "shop_id": {
            "type": "string",
            "minLength": 13,
            "maxLength": 13,
            "description": "ショップID"
          },
          "filename": {
            "type": "string",
            "maxLength": 100,
            "description": "社印ファイル名\\\n\\\n拡張子を含むアップロードされたファイルの名称\n"
          },
          "extension": {
            "type": "string",
            "maxLength": 10,
            "description": "社印ファイルの拡張子（`png`, `jpg`, `jpeg`）\n"
          },
          "data": {
            "type": "string",
            "description": "社印ファイルデータ（Base64 エンコード文字列）  \nファイルサイズは512KB以下\n"
          },
          "delete_flag": {
            "type": "string",
            "enum": [
              "0"
            ],
            "description": "削除フラグ\n* `0` - 未削除\n"
          },
          "create_date": {
            "type": "string",
            "format": "date-time",
            "description": "作成日時 形式：`yyyy/MM/dd HH:mm:ss.SSS`\n"
          },
          "update_date": {
            "type": "string",
            "format": "date-time",
            "description": "更新日時 形式：`yyyy/MM/dd HH:mm:ss.SSS`\n"
          }
        },
        "x-req-properties": {
          "data": {
            "type": "string",
            "format": "binary",
            "description": "社印ファイルデータ（マルチパートアップロード）\\\n\\\n画像ファイルをマルチパートアップロードするときはこの `data` フィールドに画像データを設定します。\n"
          }
        }
      },
      "CompanyStamp.Retrieving.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/CompanyStamp"
          }
        ]
      },
      "x-req-properties-data": {
        "type": "string",
        "format": "binary",
        "description": "社印ファイルデータ（マルチパートアップロード）\\\n\\\n画像ファイルをマルチパートアップロードするときはこの `data` フィールドに画像データを設定します。\n"
      },
      "CompanyStamp.Creating.Request": {
        "type": "object",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "allOf": [
              {
                "$ref": "#/components/schemas/x-req-properties-data"
              }
            ]
          }
        }
      },
      "CompanyStamp.Creating.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/CompanyStamp"
          }
        ]
      },
      "CompanyStamp.Deleting.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/CompanyStamp"
          }
        ]
      },
      "FincodeEvent": {
        "type": "string",
        "enum": [
          "payments.card.regist",
          "payments.card.exec",
          "payments.card.capture",
          "payments.card.cancel",
          "payments.card.auth",
          "payments.card.change",
          "payments.card.secure2.authenticate",
          "payments.card.secure2.result",
          "payments.card.secure",
          "payments.applepay.regist",
          "payments.applepay.exec",
          "payments.applepay.capture",
          "payments.applepay.cancel",
          "payments.googlepay.regist",
          "payments.googlepay.exec",
          "payments.googlepay.capture",
          "payments.googlepay.cancel",
          "payments.googlepay.auth",
          "payments.googlepay.change",
          "payments.googlepay.secure2.authenticate",
          "payments.googlepay.secure2.result",
          "payments.googlepay.secure",
          "payments.konbini.regist",
          "payments.konbini.exec",
          "payments.konbini.cancel",
          "payments.konbini.complete",
          "payments.konbini.complete.stub",
          "payments.konbini.expired.update.batch",
          "payments.paypay.regist",
          "payments.paypay.exec",
          "payments.paypay.capture",
          "payments.paypay.cancel",
          "payments.paypay.change",
          "payments.paypay.complete",
          "payments.directdebit.regist",
          "payments.directdebit.exec",
          "payments.directdebit.cancel",
          "payments.directdebit.change",
          "payments.directdebit.complete",
          "payments.directdebit.complete.stub",
          "customers.payment_methods.created",
          "customers.payment_methods.updated",
          "customers.payment_methods.inactivated",
          "customers.payment_methods.activated",
          "customers.payment_methods.deleted",
          "card.regist",
          "card.update",
          "card.updater.complete",
          "subscription.card.regist",
          "subscription.card.delete",
          "subscription.card.update",
          "recurring.card.batch",
          "subscription.directdebit.regist",
          "subscription.directdebit.delete",
          "subscription.directdebit.update",
          "recurring.directdebit.batch",
          "payments.bulk.card.regist",
          "payments.bulk.card.batch",
          "payments.bulk.virtualaccount.regist",
          "payments.bulk.virtualaccount.batch",
          "contracts.status_code.updated",
          "invoice.create",
          "invoice.update",
          "invoice.open",
          "invoice.cancel",
          "invoice.delete",
          "invoice.expired",
          "invoice.paid",
          "charge_backs.regist",
          "charge_backs.update",
          "change_requests.regist",
          "change_requests.update"
        ],
        "minLength": 1,
        "maxLength": 40,
        "example": "payments.card.secure",
        "description": "Webhook通知 トリガーイベント\n"
      },
      "WebhookSetting": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 50,
            "example": "w_*********************",
            "description": "Webhook設定ID\n"
          },
          "url": {
            "type": "string",
            "format": "uri",
            "example": "https://your-service.example.com/webhook-receiver",
            "description": "Webhook通知先 URL\\\n\\\nWebhookの通知先URLを指定します。\\\nM's PayBridgeのWebhookはHTTPS通信かつ443ポートでのみ受信可能です。\n"
          },
          "event": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FincodeEvent"
              }
            ]
          },
          "signature": {
            "type": "string",
            "minLength": 1,
            "maxLength": 60,
            "example": "WEBHOOK_FROM_MPB",
            "description": "署名\\\n\\\nこのWebhookがM's PayBridgeから送信されたことを確認するための署名です。\\\nM's PayBridgeからのWebhook通知において`Fincode-Signature`ヘッダーにこの値が含まれます。\n"
          },
          "created": {
            "nullable": false,
            "allOf": [
              {
                "$ref": "#/components/schemas/created"
              }
            ]
          },
          "updated": {
            "nullable": false,
            "allOf": [
              {
                "$ref": "#/components/schemas/updated"
              }
            ]
          }
        }
      },
      "WebhookSetting.list": {
        "type": "object",
        "properties": {
          "list": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WebhookSetting"
            }
          }
        }
      },
      "WebhookSetting.ListRetrieving.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookSetting.list"
          }
        ]
      },
      "WebhookSetting_properties-id": {
        "type": "string",
        "minLength": 1,
        "maxLength": 50,
        "example": "w_*********************",
        "description": "Webhook設定ID\n"
      },
      "WebhookSetting_properties-url": {
        "type": "string",
        "format": "uri",
        "example": "https://your-service.example.com/webhook-receiver",
        "description": "Webhook通知先 URL\\\n\\\nWebhookの通知先URLを指定します。\\\nM's PayBridgeのWebhookはHTTPS通信かつ443ポートでのみ受信可能です。\n"
      },
      "signature": {
        "type": "string",
        "minLength": 1,
        "maxLength": 60,
        "example": "WEBHOOK_FROM_MPB",
        "description": "署名\\\n\\\nこのWebhookがM's PayBridgeから送信されたことを確認するための署名です。\\\nM's PayBridgeからのWebhook通知において`Fincode-Signature`ヘッダーにこの値が含まれます。\n"
      },
      "WebhookSetting.Creating.Request": {
        "type": "object",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WebhookSetting_properties-id"
              }
            ]
          },
          "url": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WebhookSetting_properties-url"
              }
            ]
          },
          "event": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FincodeEvent"
              }
            ]
          },
          "signature": {
            "allOf": [
              {
                "$ref": "#/components/schemas/signature"
              }
            ]
          }
        },
        "required": [
          "event"
        ]
      },
      "WebhookSetting.Creating.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookSetting"
          }
        ]
      },
      "WebhookSettingId_schema": {
        "type": "string",
        "example": "w_**********************"
      },
      "WebhookSetting.Retrieving.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookSetting"
          }
        ]
      },
      "WebhookSetting.Updating.Request": {
        "type": "object",
        "properties": {
          "url": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WebhookSetting_properties-url"
              }
            ]
          },
          "event": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FincodeEvent"
              }
            ]
          },
          "signature": {
            "allOf": [
              {
                "$ref": "#/components/schemas/signature"
              }
            ]
          }
        }
      },
      "WebhookSetting.Updating.Response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookSetting"
          }
        ]
      },
      "WebhookSetting.Deleting.Response": {
        "type": "object",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WebhookSetting_properties-id"
              }
            ],
            "description": "削除されたWebhook設定のID"
          },
          "delete_flag": {
            "allOf": [
              {
                "$ref": "#/components/schemas/delete_flag"
              }
            ]
          }
        }
      },
      "CurrencyCode": {
        "type": "string",
        "enum": [
          "JPY"
        ],
        "example": "JPY",
        "description": "通貨コード\\\nこの決済で利用された通貨のコードです。\n\n- `JPY`: 日本円\n"
      },
      "job_code": {
        "type": "string",
        "enum": [
          "CHECK",
          "AUTH",
          "CAPTURE",
          "CANCEL"
        ],
        "example": "CAPTURE",
        "description": "取引種別\n\n- `CHECK`：有効性チェックのみ行う\n- `AUTH`：仮売上\n- `CAPTURE`：即時売上\n- `CANCEL`：キャンセル\n"
      },
      "WebhookEvent.Payment.Card": {
        "type": "object",
        "properties": {
          "shop_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Shop_properties-id"
              }
            ]
          },
          "order_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Payment_properties-id"
              }
            ]
          },
          "access_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/access_id"
              }
            ]
          },
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ],
            "description": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Card`: カード\n"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentStatus"
              }
            ],
            "description": "決済ステータス\n\n- `UNPROCESSED`: 未処理<br /><span class=\"smallText\">請求はまだ実行されていません。</span>\n- `CHECKED`: 有効性チェック済み<br /><span class=\"smallText\">カードの有効性チェックが完了しています。</span>\n- `AUTHORIZED`: 仮売上<br /><span class=\"smallText\">仮売上として与信枠の確保が完了しており、売上確定により請求を完了できます。</span>\n- `CAPTURED`: 売上確定<br /><span class=\"smallText\">請求が完了し、売上が確定しています。</span>\n- `CANCELED`: キャンセル<br /><span class=\"smallText\">この決済はキャンセルされました。</span>\n- `AUTHENTICATED`: 未処理（3Dセキュア認証待ち）<br /><span class=\"smallText\">3Dセキュア認証を使用する決済を実行した直後の状態です。認証後決済実行を行うまで請求や仮売上はされません。</span>\n"
          },
          "customer_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/id"
              }
            ]
          },
          "method": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CardPayMethod"
              }
            ]
          },
          "pay_times": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CardPayTimes"
              }
            ]
          },
          "client_field_1": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 1\n"
          },
          "client_field_2": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 2\n"
          },
          "client_field_3": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 3\n"
          },
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/amount"
              }
            ],
            "maxLength": 7,
            "description": "利用金額\n"
          },
          "tax": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tax"
              }
            ],
            "maxLength": 7,
            "description": "税送料\n"
          },
          "currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CurrencyCode"
              }
            ]
          },
          "job_code": {
            "allOf": [
              {
                "$ref": "#/components/schemas/job_code"
              }
            ]
          },
          "subscription_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/Subscription_properties-id"
              }
            ]
          },
          "bulk_payment_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentBulk_properties-id"
              }
            ]
          },
          "forward": {
            "allOf": [
              {
                "$ref": "#/components/schemas/forward"
              }
            ]
          },
          "transaction_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/transaction_id"
              }
            ]
          },
          "transaction_date": {
            "type": "string",
            "nullable": false,
            "example": "2022/05/16 23:59:59.999",
            "description": "決済 処理日時\n"
          },
          "approve": {
            "allOf": [
              {
                "$ref": "#/components/schemas/approve"
              }
            ]
          },
          "error_code": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/error_code"
              }
            ],
            "description": "この決済において発生したエラーのうち、一番最新のエラーのエラーコードです。\\\n[各エラーコードの定義はこちらを参照](https://mpb-mizuhobank-docs.fincode.jp/develop_support/error)して確認できます。\n"
          },
          "event": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FincodeEvent"
              }
            ]
          }
        }
      },
      "WebhookResponse": {
        "type": "object",
        "properties": {
          "receive": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1,
            "enum": [
              "0",
              "1"
            ],
            "example": "0",
            "description": "Webhook通知受信\\\n\\\nWebhookの受信が正常に完了したかどうかをM's PayBridgeにレスポンスします。\n\n- `0`: 受信成功<br /><span class=\"smallText\">M's PayBridgeは受信に成功したと判断し、通知を終了します。</span>\n- `1`: 受信失敗<br /><span class=\"smallText\">M's PayBridgeは受信に失敗したと判断します。Webhookの受信に失敗した場合は、M's PayBridgeはリトライを行います。</span>\n"
          }
        }
      },
      "WebhookResponse-plain": {
        "type": "string",
        "description": "- `0`: 受信成功<br /><span class=\"smallText\">M's PayBridgeは受信に成功したと判断し、通知を終了します。</span>\n- `1`: 受信失敗<br /><span class=\"smallText\">M's PayBridgeは受信に失敗したと判断します。Webhookの受信に失敗した場合は、M's PayBridgeはリトライを行います。</span>\n",
        "example": 0
      },
      "properties-job_code": {
        "type": "string",
        "enum": [
          "AUTH",
          "CAPTURE",
          "CANCEL"
        ],
        "example": "CAPTURE",
        "description": "取引種別\n\n- `AUTH`：仮売上\n- `CAPTURE`：即時売上\n- `CANCEL`：キャンセル\n"
      },
      "WebhookEvent.Payment.ApplePay": {
        "type": "object",
        "properties": {
          "shop_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Shop_properties-id"
              }
            ]
          },
          "order_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Payment_properties-id"
              }
            ]
          },
          "access_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/access_id"
              }
            ]
          },
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ],
            "description": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Applepay`: Apple Pay\n"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentStatus"
              }
            ],
            "description": "決済ステータス\n\n- `UNPROCESSED`: 未処理<br /><span class=\"smallText\">請求はまだ実行されていません。</span>\n- `AUTHORIZED`: 仮売上<br /><span class=\"smallText\">仮売上として与信枠の確保が完了しており、売上確定により請求を完了できます。</span>\n- `CAPTURED`: 売上確定<br /><span class=\"smallText\">請求が完了し、売上が確定しています。</span>\n- `CANCELED`: キャンセル<br /><span class=\"smallText\">この決済はキャンセルされました。</span>\n"
          },
          "customer_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/id"
              }
            ]
          },
          "method": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CardPayMethod"
              }
            ]
          },
          "client_field_1": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 1\n"
          },
          "client_field_2": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 2\n"
          },
          "client_field_3": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 3\n"
          },
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/amount"
              }
            ],
            "maxLength": 7,
            "description": "利用金額\n"
          },
          "tax": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tax"
              }
            ],
            "maxLength": 7,
            "description": "税送料\n"
          },
          "currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CurrencyCode"
              }
            ]
          },
          "job_code": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-job_code"
              }
            ]
          },
          "forward": {
            "allOf": [
              {
                "$ref": "#/components/schemas/forward"
              }
            ]
          },
          "transaction_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/transaction_id"
              }
            ]
          },
          "transaction_date": {
            "type": "string",
            "nullable": false,
            "example": "2022/05/16 23:59:59.999",
            "description": "決済 処理日時\n"
          },
          "approve": {
            "allOf": [
              {
                "$ref": "#/components/schemas/approve"
              }
            ]
          },
          "error_code": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/error_code"
              }
            ],
            "description": "この決済において発生したエラーのうち、一番最新のエラーのエラーコードです。\\\n[各エラーコードの定義はこちらを参照](https://mpb-mizuhobank-docs.fincode.jp/develop_support/error)して確認できます。\n"
          },
          "event": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FincodeEvent"
              }
            ]
          }
        }
      },
      "WebhookEvent.Payment.GooglePay": {
        "type": "object",
        "properties": {
          "shop_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Shop_properties-id"
              }
            ]
          },
          "order_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Payment_properties-id"
              }
            ]
          },
          "access_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/access_id"
              }
            ]
          },
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ],
            "description": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Googlepay`: Google Pay\n"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentStatus"
              }
            ],
            "description": "決済ステータス\n\n- `UNPROCESSED`: 未処理<br /><span class=\"smallText\">請求はまだ実行されていません。</span>\n- `CHECKED`: 有効性チェック済み<br /><span class=\"smallText\">カードの有効性チェックが完了しています。</span>\n- `AUTHORIZED`: 仮売上<br /><span class=\"smallText\">仮売上として与信枠の確保が完了しており、売上確定により請求を完了できます。</span>\n- `CAPTURED`: 売上確定<br /><span class=\"smallText\">請求が完了し、売上が確定しています。</span>\n- `CANCELED`: キャンセル<br /><span class=\"smallText\">この決済はキャンセルされました。</span>\n- `AUTHENTICATED`: 未処理（3Dセキュア認証待ち）<br /><span class=\"smallText\">3Dセキュア認証を使用する決済を実行した直後の状態です。認証後決済実行を行うまで請求や仮売上はされません。</span>\n"
          },
          "customer_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/id"
              }
            ]
          },
          "method": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CardPayMethod"
              }
            ]
          },
          "pay_times": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CardPayTimes"
              }
            ]
          },
          "client_field_1": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 1\n"
          },
          "client_field_2": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 2\n"
          },
          "client_field_3": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 3\n"
          },
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/amount"
              }
            ],
            "maxLength": 7,
            "description": "利用金額\n"
          },
          "tax": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tax"
              }
            ],
            "maxLength": 7,
            "description": "税送料\n"
          },
          "currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CurrencyCode"
              }
            ]
          },
          "job_code": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-job_code"
              }
            ]
          },
          "forward": {
            "allOf": [
              {
                "$ref": "#/components/schemas/forward"
              }
            ]
          },
          "transaction_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/transaction_id"
              }
            ]
          },
          "transaction_date": {
            "type": "string",
            "nullable": false,
            "example": "2022/05/16 23:59:59.999",
            "description": "決済 処理日時\n"
          },
          "approve": {
            "allOf": [
              {
                "$ref": "#/components/schemas/approve"
              }
            ]
          },
          "error_code": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/error_code"
              }
            ],
            "description": "この決済において発生したエラーのうち、一番最新のエラーのエラーコードです。\\\n[各エラーコードの定義はこちらを参照](/develop_support/error)して確認できます。\n"
          },
          "event": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FincodeEvent"
              }
            ]
          }
        }
      },
      "properties-overpayment_flag": {
        "type": "string",
        "enum": [
          "0",
          "1"
        ],
        "description": "多重支払フラグ\\\nこの決済に対して複数回支払いが行われた場合`1`になります。\n\n- `0`: 0回、または1回の支払いが行われた\n- `1`: 2回以上、同一のバーコードを用いて支払いが行われた\n"
      },
      "properties-cancel_overpayment_flag": {
        "type": "string",
        "enum": [
          "0",
          "1"
        ],
        "description": "キャンセル後支払フラグ\\\nこの決済をキャンセルした後に購入者がバーコードを用いて支払いを行った場合`1`になります。\n\n- `0`: キャンセル後支払は行われていない\n- `1`: キャンセル後、購入者による支払いが行われた\n"
      },
      "payment_date": {
        "type": "string",
        "nullable": true,
        "description": "支払日時\\\nコンビニ店頭で購入者が支払いを行った日時です。\\\n\\\n形式：`yyyy/MM/dd HH:mm:ss.SSS`\n"
      },
      "properties-payment_term": {
        "type": "string",
        "nullable": true,
        "description": "支払い期限日時\\\nコンビニ決済の支払い期限日時です。\\\n\\\n形式：`yyyy/MM/dd HH:mm:ss.SSS`\n"
      },
      "Payment_properties-process_date": {
        "type": "string",
        "example": "2022/01/01 12:34:56.789",
        "description": "決済 処理日時\\\n決済の各種処理（決済実行、キャンセルなど）が行われた日時です。\n"
      },
      "konbini_store_code": {
        "nullable": true,
        "minLength": 1,
        "maxLength": 8,
        "description": "コンビニ店舗コード\\\nコンビニ事業者ごとに独自体系の店舗コードです。\n"
      },
      "order_serial": {
        "type": "string",
        "nullable": true,
        "minLength": 1,
        "maxLength": 18,
        "description": "注文管理ID\n"
      },
      "invoice_id": {
        "type": "string",
        "nullable": true,
        "minLength": 1,
        "maxLength": 20,
        "description": "請求ID\n"
      },
      "WebhookEvent.Payment.Konbini": {
        "type": "object",
        "properties": {
          "shop_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Shop_properties-id"
              }
            ]
          },
          "order_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Payment_properties-id"
              }
            ]
          },
          "access_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/access_id"
              }
            ]
          },
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ],
            "description": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Konbini`: コンビニ決済\n"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentStatus"
              }
            ],
            "description": "決済ステータス\n\n- `UNPROCESSED`: 未処理<br /><span class=\"smallText\">請求はまだ実行されていません。</span>\n- `AWAITING_CUSTOMER_PAYMENT`: 購入者の支払い待ち<br /><span class=\"smallText\">購入者によるコンビニ店頭レジでの払い込みを待っている状態。</span>\n- `CAPTURED`: 売上確定<br /><span class=\"smallText\">請求が完了し、売上が確定しています。</span>\n- `CANCELED`: キャンセル<br /><span class=\"smallText\">この決済はキャンセルされました。</span>\n- `EXPIRED`: 決済の期限切れ<br /><span class=\"smallText\">この決済は期限が切れています。</span>\n"
          },
          "customer_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/id"
              }
            ]
          },
          "overpayment_flag": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-overpayment_flag"
              }
            ]
          },
          "cancel_overpayment_flag": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-cancel_overpayment_flag"
              }
            ]
          },
          "payment_date": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/payment_date"
              }
            ]
          },
          "payment_term": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-payment_term"
              }
            ]
          },
          "process_date": {
            "nullable": false,
            "allOf": [
              {
                "$ref": "#/components/schemas/Payment_properties-process_date"
              }
            ]
          },
          "client_field_1": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 1\n"
          },
          "client_field_2": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 2\n"
          },
          "client_field_3": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 3\n"
          },
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/amount"
              }
            ],
            "maxLength": 6,
            "description": "利用金額\n"
          },
          "tax": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tax"
              }
            ],
            "maxLength": 6,
            "description": "税送料\n"
          },
          "konbini_code": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/KonbiniCode"
              }
            ]
          },
          "konbini_store_code": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/konbini_store_code"
              }
            ]
          },
          "order_serial": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/order_serial"
              }
            ]
          },
          "invoice_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/invoice_id"
              }
            ]
          },
          "error_code": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/error_code"
              }
            ],
            "description": "この決済において発生したエラーのうち、一番最新のエラーのエラーコードです。\\\n[各エラーコードの定義はこちらを参照](https://mpb-mizuhobank-docs.fincode.jp/develop_support/error)して確認できます。\n"
          },
          "event": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FincodeEvent"
              }
            ]
          }
        }
      },
      "code_expiry_date": {
        "type": "string",
        "nullable": true,
        "example": "2022/05/16 12:34:56.999",
        "description": "支払期限\\\n形式： `yyyy/MM/dd HH:mm:ss.SSS`\n"
      },
      "auth_max_date": {
        "type": "string",
        "nullable": true,
        "example": "2022/05/16",
        "description": "仮売上期限\\\n形式： `yyyy/MM/dd`\n"
      },
      "code_id": {
        "type": "string",
        "nullable": true,
        "minLength": 1,
        "maxLength": 64,
        "example": "123456",
        "description": "PayPayの支払いコードID\n"
      },
      "payment_id": {
        "type": "string",
        "nullable": true,
        "minLength": 1,
        "maxLength": 64,
        "description": "PayPay 決済ID\n"
      },
      "properties-payment_date": {
        "type": "string",
        "nullable": true,
        "example": "2022/05/16 12:34:56.999",
        "description": "支払日時\\\n形式： `yyyy/MM/dd HH:mm:ss.SSS`\n"
      },
      "merchant_payment_id": {
        "type": "string",
        "nullable": true,
        "minLength": 1,
        "maxLength": 64,
        "description": "PayPay トランザクションID\n"
      },
      "merchant_update_id": {
        "type": "string",
        "nullable": true,
        "minLength": 1,
        "maxLength": 64,
        "description": "PayPay 金額変更ID\n"
      },
      "merchant_revert_id": {
        "type": "string",
        "nullable": true,
        "minLength": 1,
        "maxLength": 64,
        "description": "PayPay キャンセルID\n"
      },
      "merchant_refund_id": {
        "type": "string",
        "nullable": true,
        "minLength": 1,
        "maxLength": 64,
        "description": "PayPay 返金ID\n"
      },
      "WebhookEvent.Payment.PayPay": {
        "type": "object",
        "properties": {
          "shop_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Shop_properties-id"
              }
            ]
          },
          "order_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Payment_properties-id"
              }
            ]
          },
          "access_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/access_id"
              }
            ]
          },
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ],
            "description": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Paypay`: PayPay\n"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentStatus"
              }
            ],
            "description": "決済ステータス\n\n- `UNPROCESSED`: 未処理<br /><span class=\"smallText\">請求はまだ実行されていません。</span>\n- `AWAITING_CUSTOMER_PAYMENT`: 購入者の支払い待ち<br /><span class=\"smallText\">購入者によるPayPay上での取引承認を待っている状態。</span>\n- `AUTHORIZED`: 仮売上<br /><span class=\"smallText\">仮売上としてPayPay残高の確保が完了しており、売上確定により請求を完了できます。</span>\n- `CAPTURED`: 売上確定<br /><span class=\"smallText\">請求が完了し、売上が確定しています。</span>\n- `CANCELED`: キャンセル<br /><span class=\"smallText\">この決済はキャンセルされました。</span>\n- `EXPIRED`: 決済の期限切れ<br /><span class=\"smallText\">この決済は期限が切れています。</span>\n"
          },
          "customer_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/id"
              }
            ]
          },
          "process_date": {
            "nullable": false,
            "allOf": [
              {
                "$ref": "#/components/schemas/Payment_properties-process_date"
              }
            ]
          },
          "job_code": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-job_code"
              }
            ]
          },
          "client_field_1": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 1\n"
          },
          "client_field_2": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 2\n"
          },
          "client_field_3": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 3\n"
          },
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/amount"
              }
            ],
            "maxLength": 9,
            "description": "利用金額\n"
          },
          "tax": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tax"
              }
            ],
            "maxLength": 9,
            "description": "税送料\n"
          },
          "code_expiry_date": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/code_expiry_date"
              }
            ]
          },
          "auth_max_date": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/auth_max_date"
              }
            ]
          },
          "order_description": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/order_description"
              }
            ]
          },
          "code_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/code_id"
              }
            ]
          },
          "payment_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/payment_id"
              }
            ]
          },
          "payment_date": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-payment_date"
              }
            ]
          },
          "merchant_payment_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/merchant_payment_id"
              }
            ]
          },
          "merchant_update_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/merchant_update_id"
              }
            ]
          },
          "merchant_revert_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/merchant_revert_id"
              }
            ]
          },
          "merchant_refund_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/merchant_refund_id"
              }
            ]
          },
          "error_code": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/error_code"
              }
            ],
            "description": "この決済において発生したエラーのうち、一番最新のエラーのエラーコードです。\\\n[各エラーコードの定義はこちらを参照](https://mpb-mizuhobank-docs.fincode.jp/develop_support/error)して確認できます。\n"
          },
          "event": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FincodeEvent"
              }
            ]
          }
        }
      },
      "withdrawal_date": {
        "type": "string",
        "nullable": true,
        "example": "2022/05/06",
        "description": "引き落とし日\\\n実際に購入者の口座から引き落としが行われた実績日です。\\\n\\\n形式： `yyyy/MM/dd`\n"
      },
      "request_accept_end_date": {
        "type": "string",
        "nullable": true,
        "example": "2022/04/25",
        "description": "請求依頼受付期間 終了日\\\n振替依頼を受け付ける最終日。この日付の23:59までに振替依頼（決済実行）を受け付けます。\\\n\\\n形式： `yyyy/MM/dd`\\\n詳細は[Docs > 口座振替年間スケジュール](https://mpb-mizuhobank-docs.fincode.jp/payment/directdebit/schedule)の「請求依頼受付期間終了日」の列で確認できます。\n"
      },
      "transfer_return_date": {
        "type": "string",
        "nullable": true,
        "example": "2022/05/11",
        "description": "請求結果反映 予定日\\\n\\\n形式： `yyyy/MM/dd`\\\n詳細は[Docs > 口座振替年間スケジュール](https://mpb-mizuhobank-docs.fincode.jp/payment/directdebit/schedule)の「振替結果返却日」の列で確認できます。\n"
      },
      "WebhookEvent.Payment.DirectDebit": {
        "type": "object",
        "properties": {
          "shop_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Shop_properties-id"
              }
            ]
          },
          "order_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Payment_properties-id"
              }
            ]
          },
          "access_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/access_id"
              }
            ]
          },
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ],
            "description": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Directdebit`: 口座振替\n"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentStatus"
              }
            ],
            "description": "決済ステータス\n\n- `UNPROCESSED`: 未処理<br /><span class=\"smallText\">振替はまだ実行されていません。</span>\n- `AWAITING_PAYMENT_APPROVAL`: 決済処理待ち<br /><span class=\"smallText\">M's PayBridgeおよび金融機関による振替処理を待っています。</span>\n- `CAPTURED`: 売上確定<br /><span class=\"smallText\">振替が完了し、売上が確定しています。</span>\n- `CANCELED`: キャンセル<br /><span class=\"smallText\">この振替はキャンセルされました。</span>\n- `FAILED`: 請求失敗<br /><span class=\"smallText\">何らかの理由により振替に失敗しました。</span>\n"
          },
          "customer_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/id"
              }
            ]
          },
          "payment_method_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentMethod_properties-id"
              }
            ]
          },
          "result_code": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/DirectDebitResultCode"
              }
            ]
          },
          "client_field_1": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 1\n"
          },
          "client_field_2": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 2\n"
          },
          "client_field_3": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 3\n"
          },
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/amount"
              }
            ],
            "maxLength": 10,
            "description": "利用金額\n"
          },
          "tax": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tax"
              }
            ],
            "maxLength": 10,
            "description": "税送料\n"
          },
          "process_date": {
            "nullable": false,
            "allOf": [
              {
                "$ref": "#/components/schemas/Payment_properties-process_date"
              }
            ]
          },
          "target_date": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/target_date"
              }
            ],
            "description": "振替指定日\n"
          },
          "withdrawal_date": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/withdrawal_date"
              }
            ]
          },
          "request_accept_end_date": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/request_accept_end_date"
              }
            ]
          },
          "transfer_return_date": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/transfer_return_date"
              }
            ]
          },
          "remarks": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/remarks"
              }
            ],
            "description": "ご利用明細表示内容\n"
          },
          "subscription_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/Subscription_properties-id"
              }
            ]
          },
          "error_code": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/error_code"
              }
            ],
            "description": "この決済において発生したエラーのうち、一番最新のエラーのエラーコードです。\\\n[各エラーコードの定義はこちらを参照](https://mpb-mizuhobank-docs.fincode.jp/develop_support/error)して確認できます。\n"
          },
          "event": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FincodeEvent"
              }
            ]
          }
        }
      },
      "bulk_payment_id": {
        "nullable": true,
        "allOf": [
          {
            "$ref": "#/components/schemas/PaymentBulk_properties-id"
          }
        ],
        "description": "一括決済ID\\\nこの決済情報が一括決済機能を用いて登録されたものである場合、このフィールドに一括決済IDが設定されます。\n"
      },
      "use_static_virtual_account": {
        "type": "boolean",
        "enum": [
          true,
          false
        ],
        "description": "顧客固定バーチャル口座利用フラグ\\\nこの決済において顧客固定バーチャル口座が利用されているかどうかを示すフラグです。\n\n- `true`: 顧客固定バーチャル口座を利用している\n- `false`: 顧客固定バーチャル口座を利用していない\n"
      },
      "WebhookEvent.Payment.VirtualAccount": {
        "type": "object",
        "properties": {
          "shop_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Shop_properties-id"
              }
            ]
          },
          "order_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Payment_properties-id"
              }
            ]
          },
          "access_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/access_id"
              }
            ]
          },
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayType"
              }
            ],
            "description": "決済種別\\\nこの決済で利用する決済手段です。\n\n- `Virtualaccount`: 銀行振込（バーチャル口座）\n"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentStatus"
              }
            ],
            "description": "決済ステータス\n\n- `UNPROCESSED`: 未処理<br /><span class=\"smallText\">請求はまだ実行されていません。</span>\n- `AWAITING_CUSTOMER_PAYMENT`: 購入者の支払い待ち<br /><span class=\"smallText\">購入者によるバーチャル口座への振込を待っている状態。</span>\n- `CAPTURED`: 売上確定<br /><span class=\"smallText\">振込が完了し、売上が確定しています。</span>\n- `CANCELED`: キャンセル<br /><span class=\"smallText\">この決済はキャンセルされました。</span>\n- `EXPIRED`: 決済の期限切れ<br /><span class=\"smallText\">この決済は期限が切れています。</span>\n"
          },
          "customer_group_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/customer_group_id"
              }
            ]
          },
          "customer_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/id"
              }
            ]
          },
          "process_date": {
            "nullable": false,
            "allOf": [
              {
                "$ref": "#/components/schemas/Payment_properties-process_date"
              }
            ]
          },
          "client_field_1": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 1\n"
          },
          "client_field_2": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 2\n"
          },
          "client_field_3": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 3\n"
          },
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/amount"
              }
            ],
            "maxLength": 20,
            "description": "利用金額\n"
          },
          "tax": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tax"
              }
            ],
            "maxLength": 20,
            "description": "税送料\n"
          },
          "billing_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/billing_amount"
              }
            ]
          },
          "billing_tax": {
            "allOf": [
              {
                "$ref": "#/components/schemas/billing_tax"
              }
            ]
          },
          "billing_total_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/billing_total_amount"
              }
            ]
          },
          "payment_term_day": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-payment_term_day"
              }
            ]
          },
          "payment_term": {
            "allOf": [
              {
                "$ref": "#/components/schemas/payment_term"
              }
            ]
          },
          "payment_method_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentMethod_properties-id"
              }
            ]
          },
          "va_branch_code": {
            "allOf": [
              {
                "$ref": "#/components/schemas/va_branch_code"
              }
            ]
          },
          "va_branch_name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/va_branch_name"
              }
            ]
          },
          "va_account_number": {
            "allOf": [
              {
                "$ref": "#/components/schemas/va_account_number"
              }
            ]
          },
          "va_account_name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/va_account_name"
              }
            ]
          },
          "account_assignment_date": {
            "allOf": [
              {
                "$ref": "#/components/schemas/account_assignment_date"
              }
            ]
          },
          "virtual_account_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/virtual_account_id"
              }
            ]
          },
          "transaction_date": {
            "allOf": [
              {
                "$ref": "#/components/schemas/transaction_date"
              }
            ]
          },
          "value_date": {
            "allOf": [
              {
                "$ref": "#/components/schemas/value_date"
              }
            ]
          },
          "remitter_bank_name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/remitter_bank_name"
              }
            ]
          },
          "remitter_branch_name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/remitter_branch_name"
              }
            ]
          },
          "remitter_account_name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/remitter_account_name"
              }
            ]
          },
          "error_code": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/error_code"
              }
            ],
            "description": "この決済において発生したエラーのうち、一番最新のエラーのエラーコードです。\\\n[各エラーコードの定義はこちらを参照](https://mpb-mizuhobank-docs.fincode.jp/develop_support/error)して確認できます。\n"
          },
          "overpayment_flag": {
            "allOf": [
              {
                "$ref": "#/components/schemas/overpayment_flag"
              }
            ]
          },
          "cancel_overpayment_flag": {
            "allOf": [
              {
                "$ref": "#/components/schemas/cancel_overpayment_flag"
              }
            ]
          },
          "expire_overpayment_flag": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expire_overpayment_flag"
              }
            ]
          },
          "bulk_payment_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/bulk_payment_id"
              }
            ]
          },
          "use_static_virtual_account": {
            "allOf": [
              {
                "$ref": "#/components/schemas/use_static_virtual_account"
              }
            ]
          },
          "use_exact_deposit_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-use_exact_deposit_amount"
              }
            ]
          },
          "event": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FincodeEvent"
              }
            ]
          }
        }
      },
      "WebhookEvent.CustomerPaymentMethodCard": {
        "type": "object",
        "properties": {
          "shop_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Shop_properties-id"
              }
            ]
          },
          "order_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Payment_properties-id"
              }
            ]
          },
          "card_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentMethodStatus"
              }
            ]
          },
          "customer_group_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/customer_group_id"
              }
            ]
          },
          "customer_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/id"
              }
            ]
          },
          "card_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-id"
              }
            ]
          },
          "process_date": {
            "nullable": false,
            "allOf": [
              {
                "$ref": "#/components/schemas/Payment_properties-process_date"
              }
            ]
          },
          "process_type": {
            "type": "string",
            "enum": [
              "I",
              "U"
            ],
            "description": "処理タイプ\n\n- `I`: 登録\n- `U`: 更新\n"
          },
          "card_no_display": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-card_no"
              }
            ]
          },
          "expire_display": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-expire"
              }
            ]
          },
          "forward": {
            "allOf": [
              {
                "$ref": "#/components/schemas/forward"
              }
            ]
          },
          "default_flag": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/default_flag"
              }
            ]
          },
          "status": {
            "type": "string",
            "nullable": true,
            "enum": [
              "AUTHENTICATED",
              "CHECK"
            ],
            "example": "AUTHENTICATED",
            "description": "3Dセキュア2.0認証処理 ステータス\n\n- `AUTHENTICATED`: 3Dセキュア認証中<br /><span class=\"smallText\">認証でNGとなった際もこの値で通知されます</span>\n- `CHECK`: 3Dセキュア認証完了\n\n3Dセキュア認証を利用しない場合はnullを設定します\n"
          },
          "access_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/access_id"
              }
            ]
          },
          "transaction_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/transaction_id"
              }
            ]
          },
          "approve": {
            "allOf": [
              {
                "$ref": "#/components/schemas/approve"
              }
            ]
          },
          "client_field_1": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 1\n"
          },
          "client_field_2": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 2\n"
          },
          "client_field_3": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 3\n"
          },
          "error_code": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/error_code"
              }
            ]
          },
          "pay_type": {
            "type": "string",
            "enum": [
              "Card"
            ],
            "description": "決済種別\n"
          },
          "event": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FincodeEvent"
              }
            ]
          }
        }
      },
      "WebhookPaymentMethodDirectdebit": {
        "type": "object",
        "properties": {
          "application_type": {
            "nullable": false,
            "allOf": [
              {
                "$ref": "#/components/schemas/DirectDebitApplicationType"
              }
            ]
          },
          "request_form_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 20,
            "nullable": true,
            "description": "依頼書ID。\\\n依頼書を管理画面から登録した際に登録者が指定した、依頼書を一意に識別するIDです。\n"
          },
          "paper_failure_description": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 200,
            "description": "依頼書登録に失敗した理由。\n"
          }
        }
      },
      "WebhookEvent.CustomerPaymentMethodDirectDebit": {
        "type": "object",
        "properties": {
          "shop_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Shop_properties-id"
              }
            ]
          },
          "customer_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/id"
              }
            ]
          },
          "payment_method_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentMethod_properties-id"
              }
            ]
          },
          "process_date": {
            "nullable": false,
            "allOf": [
              {
                "$ref": "#/components/schemas/Payment_properties-process_date"
              }
            ]
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentMethodStatus"
              }
            ]
          },
          "client_field_1": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 1\n"
          },
          "client_field_2": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 2\n"
          },
          "client_field_3": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 3\n"
          },
          "pay_type": {
            "type": "string",
            "enum": [
              "Directdebit"
            ],
            "description": "決済種別\n"
          },
          "directdebit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WebhookPaymentMethodDirectdebit"
              }
            ],
            "description": "口座振替 決済手段登録情報\n"
          },
          "event": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FincodeEvent"
              }
            ]
          }
        }
      },
      "last_activated_date": {
        "type": "string",
        "example": "2022/05/16 23:59:59.999",
        "nullable": true,
        "description": "最終有効化日時\\\nこのバーチャル口座が有効化された最終日時です。\\\n形式：`yyyy/MM/dd HH:mm:ss.SSS`\n"
      },
      "latest_transaction_date": {
        "type": "string",
        "example": "2022/05/16",
        "nullable": true,
        "description": "最新取引日時\\\nこのバーチャル口座で発生した取引のうち、最も新しい日時です。\\\n形式：`yyyy/MM/dd`\n"
      },
      "WebhookPaymentMethodVirtualaccount": {
        "type": "object",
        "properties": {
          "va_branch_code": {
            "allOf": [
              {
                "$ref": "#/components/schemas/va_branch_code"
              }
            ]
          },
          "va_branch_name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/va_branch_name"
              }
            ]
          },
          "va_account_number": {
            "allOf": [
              {
                "$ref": "#/components/schemas/va_account_number"
              }
            ]
          },
          "va_account_name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/va_account_name"
              }
            ]
          },
          "virtual_account_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/virtual_account_id"
              }
            ]
          },
          "account_assignment_date": {
            "allOf": [
              {
                "$ref": "#/components/schemas/account_assignment_date"
              }
            ]
          },
          "last_activated_date": {
            "allOf": [
              {
                "$ref": "#/components/schemas/last_activated_date"
              }
            ]
          },
          "latest_transaction_date": {
            "allOf": [
              {
                "$ref": "#/components/schemas/latest_transaction_date"
              }
            ]
          }
        }
      },
      "WebhookEvent.CustomerPaymentMethodVirtualAccount": {
        "type": "object",
        "properties": {
          "shop_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Shop_properties-id"
              }
            ]
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentMethod_properties-id"
              }
            ],
            "description": "決済手段ID\n"
          },
          "pay_type": {
            "type": "string",
            "enum": [
              "Virtualaccount"
            ],
            "description": "決済種別\n"
          },
          "customer_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/id"
              }
            ]
          },
          "process_date": {
            "nullable": false,
            "allOf": [
              {
                "$ref": "#/components/schemas/Payment_properties-process_date"
              }
            ]
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentMethodStatus"
              }
            ]
          },
          "default_flag": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-default_flag"
              }
            ]
          },
          "delete_flag": {
            "allOf": [
              {
                "$ref": "#/components/schemas/delete_flag"
              }
            ]
          },
          "client_field_1": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 1\n"
          },
          "client_field_2": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 2\n"
          },
          "client_field_3": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 3\n"
          },
          "created": {
            "allOf": [
              {
                "$ref": "#/components/schemas/created"
              }
            ]
          },
          "updated": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updated"
              }
            ]
          },
          "virtual_account": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WebhookPaymentMethodVirtualaccount"
              }
            ],
            "description": "銀行振込（バーチャル口座） 決済手段登録情報\n"
          },
          "event": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FincodeEvent"
              }
            ]
          }
        }
      },
      "properties-customer_group_id": {
        "type": "string",
        "nullable": true,
        "minLength": 13,
        "maxLength": 13,
        "example": "cg_**********",
        "description": "顧客情報共有グループID\\\nプラットフォームショップにおいて顧客情報が共有されている場合、顧客が所属する共有グループのIDです。\n"
      },
      "WebhookEvent.Card": {
        "type": "object",
        "properties": {
          "shop_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Shop_properties-id"
              }
            ]
          },
          "customer_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/id"
              }
            ]
          },
          "customer_group_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-customer_group_id"
              }
            ]
          },
          "card_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-id"
              }
            ]
          },
          "default_flag": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/default_flag"
              }
            ]
          },
          "card_no_display": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-card_no"
              }
            ]
          },
          "expire_display": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-expire"
              }
            ]
          },
          "process_date": {
            "type": "string",
            "example": "2022/01/01 12:34:56.789",
            "description": "処理日時\n"
          },
          "process_type": {
            "type": "string",
            "enum": [
              "I",
              "U"
            ],
            "description": "処理タイプ\n\n- `I`: 登録\n- `U`: 更新\n"
          },
          "pay_type": {
            "type": "string",
            "enum": [
              "Card"
            ],
            "description": "決済種別\n"
          },
          "forward": {
            "allOf": [
              {
                "$ref": "#/components/schemas/forward"
              }
            ]
          },
          "event": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FincodeEvent"
              }
            ]
          }
        }
      },
      "WebhookEvent.CardUpdaterComplete": {
        "type": "object",
        "properties": {
          "shop_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Shop_properties-id"
              }
            ]
          },
          "customer_group_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-customer_group_id"
              }
            ]
          },
          "card_updater_process_month": {
            "type": "string",
            "nullable": true,
            "example": "202601",
            "description": "カード更新実行年月\n形式：`yyyyMM`\n"
          },
          "success_count": {
            "type": "integer",
            "nullable": true,
            "example": 10,
            "description": "カード更新成功件数\n"
          },
          "processed_count": {
            "type": "integer",
            "nullable": true,
            "example": 12,
            "description": "カード更新実施件数\n"
          },
          "event": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FincodeEvent"
              }
            ]
          }
        }
      },
      "next_charge_date": {
        "type": "string",
        "example": "2022/06/16 00:00:00.000",
        "description": "次回課金日\\\nサブスクリプションの次回課金日です。\\\n\\\n形式：`yyyy/MM/dd HH:mm:ss.SSS`\n"
      },
      "WebhookEvent.Subscription.Card": {
        "type": "object",
        "properties": {
          "shop_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Shop_properties-id"
              }
            ]
          },
          "subscription_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/Subscription_properties-id"
              }
            ]
          },
          "plan_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/Plan_properties-id"
              }
            ]
          },
          "customer_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/id"
              }
            ]
          },
          "card_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-id"
              }
            ]
          },
          "default_card_flag": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/default_flag"
              }
            ]
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SubscriptionStatus"
              }
            ]
          },
          "client_field_1": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 1\n"
          },
          "client_field_2": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 2\n"
          },
          "client_field_3": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 3\n"
          },
          "process_date": {
            "nullable": false,
            "allOf": [
              {
                "$ref": "#/components/schemas/Payment_properties-process_date"
              }
            ]
          },
          "start_date": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/start_date"
              }
            ]
          },
          "stop_date": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/stop_date"
              }
            ]
          },
          "next_charge_date": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/next_charge_date"
              }
            ]
          },
          "end_month_flag": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/end_month_flag"
              }
            ]
          },
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SubscriptionPayType"
              }
            ]
          },
          "event": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FincodeEvent"
              }
            ]
          }
        }
      },
      "WebhookEvent.Subscription.DirectDebit": {
        "type": "object",
        "properties": {
          "shop_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Shop_properties-id"
              }
            ]
          },
          "subscription_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/Subscription_properties-id"
              }
            ]
          },
          "plan_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/Plan_properties-id"
              }
            ]
          },
          "customer_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/id"
              }
            ]
          },
          "payment_method_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentMethod_properties-id"
              }
            ]
          },
          "default_flag": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/properties-default_flag"
              }
            ]
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SubscriptionStatus"
              }
            ]
          },
          "client_field_1": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 1\n"
          },
          "client_field_2": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 2\n"
          },
          "client_field_3": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/client_field_n"
              }
            ],
            "description": "加盟店自由項目 3\n"
          },
          "remarks": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/remarks"
              }
            ],
            "description": "ご利用明細表示内容\n"
          },
          "start_date": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/start_date"
              }
            ]
          },
          "stop_date": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/stop_date"
              }
            ]
          },
          "next_charge_date": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/next_charge_date"
              }
            ]
          },
          "end_month_flag": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/end_month_flag"
              }
            ]
          },
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SubscriptionPayType"
              }
            ]
          },
          "event": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FincodeEvent"
              }
            ]
          }
        }
      },
      "WebhookEvent.RecurringBatch.Card": {
        "type": "object",
        "properties": {
          "shop_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Shop_properties-id"
              }
            ]
          },
          "succeeded": {
            "type": "string",
            "maxLength": 10,
            "description": "成功件数\\\n\\\n今回のサブスクリプション課金において成功した決済の件数です。\n"
          },
          "failed": {
            "type": "string",
            "maxLength": 10,
            "description": "失敗件数\\\n\\\n今回のサブスクリプション課金において失敗した決済の件数です。\n"
          },
          "retry_scheduled": {
            "type": "string",
            "maxLength": 10,
            "description": "次回リトライ予定件数\\\n\\\n今回のサブスクリプション課金において失敗した決済のうち、次回のサブスクリプション課金でリトライ対象となる決済の件数です。\n"
          },
          "total": {
            "type": "string",
            "maxLength": 10,
            "description": "合計件数\\\n\\\n今回のサブスクリプション課金において発生した決済の合計件数です。\n"
          },
          "process_date": {
            "nullable": false,
            "allOf": [
              {
                "$ref": "#/components/schemas/Payment_properties-process_date"
              }
            ]
          },
          "charge_date": {
            "type": "string",
            "example": "2022/06/16",
            "description": "課金日\\\n今回のサブスクリプションの課金日です。\\\n\\\n形式：`yyyy/MM/dd`\n"
          },
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SubscriptionPayType"
              }
            ]
          },
          "event": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FincodeEvent"
              }
            ]
          }
        }
      },
      "WebhookEvent.RecurringBatch.DirectDebit": {
        "type": "object",
        "properties": {
          "shop_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Shop_properties-id"
              }
            ]
          },
          "succeeded": {
            "type": "string",
            "maxLength": 10,
            "description": "成功件数\\\n\\\n今回のサブスクリプション課金において成功した決済の件数です。\n"
          },
          "failed": {
            "type": "string",
            "maxLength": 10,
            "description": "失敗件数\\\n\\\n今回のサブスクリプション課金において失敗した決済の件数です。\n"
          },
          "total": {
            "type": "string",
            "maxLength": 10,
            "description": "合計件数\\\n\\\n今回のサブスクリプション課金において発生した決済の合計件数です。\n"
          },
          "process_date": {
            "nullable": false,
            "allOf": [
              {
                "$ref": "#/components/schemas/Payment_properties-process_date"
              }
            ]
          },
          "charge_date": {
            "type": "string",
            "example": "2022/06/16",
            "description": "課金日\\\n今回のサブスクリプションの課金日です。\\\n\\\n形式：`yyyy/MM/dd`\n"
          },
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SubscriptionPayType"
              }
            ]
          },
          "event": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FincodeEvent"
              }
            ]
          }
        }
      },
      "WebhookEvent.PaymentBulk.Regist.Card": {
        "type": "object",
        "properties": {
          "shop_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Shop_properties-id"
              }
            ]
          },
          "bulk_payment_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentBulk_properties-id"
              }
            ]
          },
          "file_name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/file_name"
              }
            ]
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentBulkStatus"
              }
            ]
          },
          "regist_total_count": {
            "type": "string",
            "minLength": 1,
            "maxLength": 10,
            "description": "総件数\\\n\\\nこの一括決済に登録された決済の件数です。\n"
          },
          "error_total_count": {
            "type": "string",
            "minLength": 1,
            "maxLength": 10,
            "description": "エラー件数\\\n\\\nこの一括決済においてエラーが発生した決済の件数です。\n"
          },
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentBulkPayType"
              }
            ]
          },
          "bulk_search_url": {
            "type": "string",
            "example": "https://api.test.fincode.jp/v1/payments/bulk/{bulk_payment_id}?pay_type=Card",
            "description": "この一括決済の一括決済 詳細情報一覧取得APIのURLです。\n"
          },
          "error_code": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/error_code"
              }
            ],
            "description": "この一括決済において発生したエラーのうち、一番最新のエラーのエラーコードです。\\\n[各エラーコードの定義はこちらを参照](https://mpb-mizuhobank-docs.fincode.jp/develop_support/error)して確認できます。\n"
          },
          "event": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FincodeEvent"
              }
            ]
          }
        }
      },
      "WebhookEvent.PaymentBulk.Batch.Card": {
        "type": "object",
        "properties": {
          "shop_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Shop_properties-id"
              }
            ]
          },
          "bulk_payment_id": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentBulk_properties-id"
              }
            ]
          },
          "file_name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/file_name"
              }
            ]
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentBulkStatus"
              }
            ]
          },
          "succeeded_count": {
            "type": "string",
            "maxLength": 10,
            "description": "成功件数\\\n\\\n今回の一括決済課金において成功した決済の件数です。\n"
          },
          "failed_count": {
            "type": "string",
            "maxLength": 10,
            "description": "失敗件数\\\n\\\n今回の一括決済課金において失敗した決済の件数です。\n"
          },
          "total_count": {
            "type": "string",
            "maxLength": 10,
            "description": "合計件数\\\n\\\n今回の一括決済課金において発生した決済の合計件数です。\n"
          },
          "pay_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentBulkPayType"
              }
            ]
          },
          "event": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FincodeEvent"
              }
            ]
          }
        }
      },
      "Acquirer": {
        "type": "string",
        "enum": [
          "UC",
          "TFC",
          "ORICO",
          "AFS",
          "MUN",
          "JCB/AMEX",
          "DINERS",
          "APPLE PAY UC",
          "APPLE PAY JCB/AMEX",
          "GOOGLE PAY UC",
          "GOOGLE PAY TFC",
          "GOOGLE PAY ORICO",
          "GOOGLE PAY AFS",
          "GOOGLE PAY MUN",
          "GOOGLE PAY JCB/AMEX",
          "GOOGLE PAY DINERS",
          "PAYSLE",
          "PAYPAY",
          "DIRECT DEBIT",
          "DIRECT DEBIT MIZUHO",
          "VIRTUAL ACCOUNT",
          "VIRTUAL ACCOUNT BULK",
          "CARD UPDATER",
          "PAYEE ACCOUNT"
        ],
        "description": "審査対象\n\n- `UC`: VISA／Mastercard（UCカード）\n- `TFC`: VISA／Mastercard（トヨタファイナンス）\n- `ORICO`: VISA／Mastercard（オリエントコーポレーション）\n- `AFS`: VISA／Mastercard（イオンフィナンシャルサービス）\n- `MUN`: VISA／Mastercard（三菱UFJニコス）\n- `JCB/AMEX`: JCB／AMEX（JCB）\n- `DINERS`: DINERS（JCB）\n- `APPLE PAY UC`: Apple Pay（UCカード）\n- `APPLE PAY JCB/AMEX`: Apple Pay（JCB）\n- `GOOGLE PAY UC`: Google Pay（UCカード）\n- `GOOGLE PAY TFC`: Google Pay（トヨタファイナンス）\n- `GOOGLE PAY ORICO`: Google Pay（オリエントコーポレーション）\n- `GOOGLE PAY AFS`: Google Pay（イオンフィナンシャルサービス）\n- `GOOGLE PAY MUN`: Google Pay（三菱UFJニコス）\n- `GOOGLE PAY JCB/AMEX`: Google Pay（JCB）\n- `GOOGLE PAY DINERS`: Google Pay（Diners Club）\n- `PAYSLE`: コンビニ決済（電算システム）\n- `PAYPAY`: コンビニ決済（PayPay）\n- `DIRECT DEBIT`: 口座振替（5・6・23・27日）\n- `DIRECT DEBIT MIZUHO`: 口座振替（1・5・20・26日）\n- `VIRTUAL ACCOUNT`: 銀行振込（バーチャル口座）\n- `VIRTUAL ACCOUNT BULK`: 一括決済（バーチャル口座）\n- `CARD UPDATER`: 洗替\n- `PAYEE ACCOUNT`: 銀行振込（指定口座）\n",
        "x-ja-description": "審査対象（和名）\n\n- `決済事業者審査: VISA/MASTER-UC`\n- `決済事業者審査: VISA/MASTER-TFC`\n- `決済事業者審査： VISA/MASTER-ORICO`\n- `決済事業者審査： VISA/MASTER-AFS`\n- `決済事業者審査： VISA/MASTER-MUN`\n- `決済事業者審査: JCB/AMEX`\n- `決済事業者審査: DINERS`\n- `決済事業者審査: ApplePay-UC`\n- `決済事業者審査: ApplePay-JCB/AMEX`\n- `決済事業者審査: GooglePay-UC`\n- `決済事業者審査: GooglePay-TFC`\n- `決済事業者審査： GooglePay-ORICO`\n- `決済事業者審査： GooglePay-AFS`\n- `決済事業者審査： GooglePay-MUN`\n- `決済事業者審査: GooglePay-JCB/AMEX`\n- `決済事業者審査: GooglePay-DINERS`\n- `決済事業者審査: コンビニ決済`\n- `決済事業者審査: PayPay決済`\n- `決済事業者審査: 口座振替（5・6・23・27日）`\n- `決済事業者審査: 口座振替（1・5・20・26日）`\n- `決済事業者審査: 銀行振込（バーチャル口座）`\n- `決済事業者審査: 一括決済（バーチャル口座）`\n- `決済事業者審査: 洗替`\n- `決済事業者審査: 銀行振込（指定口座）`\n"
      },
      "WebhookProvider": {
        "type": "string",
        "enum": [
          "UC",
          "TFC",
          "ORICO",
          "AFS",
          "MUN",
          "JCB_AMEX",
          "DINERS",
          "APPLE_PAY_UC",
          "APPLE_PAY_JCB_AMEX",
          "GOOGLE_PAY_UC",
          "GOOGLE_PAY_TFC",
          "GOOGLE_PAY_ORICO",
          "GOOGLE_PAY_AFS",
          "GOOGLE_PAY_MUN",
          "GOOGLE_PAY_JCB",
          "GOOGLE_PAY_DINERS",
          "PAYSLE",
          "PAYPAY",
          "DIRECT_DEBIT",
          "DIRECT_DEBIT_MIZUHO",
          "VIRTUAL_ACCOUNT",
          "VIRTUAL_ACCOUNT_BULK",
          "CARD_UPDATER",
          "PAYEE_ACCOUNT"
        ],
        "example": "UC",
        "description": "決済事業者\\\n\n- `UC`: VISA／Mastercard（UCカード）\n- `TFC`: VISA／Mastercard（トヨタファイナンス）\n- `ORICO`: VISA／Mastercard（オリエントコーポレーション）\n- `AFS`: VISA／Mastercard（イオンフィナンシャルサービス）\n- `MUN`: VISA／Mastercard（三菱UFJニコス）\n- `JCB_AMEX`: JCB／AMEX（JCB）\n- `DINERS`: DINERS（JCB）\n- `APPLE_PAY_UC`: Apple Pay（UCカード）\n- `APPLE_PAY_JCB_AMEX`: Apple Pay（JCB）\n- `GOOGLE_PAY_UC`: Google Pay（UCカード）\n- `GOOGLE_PAY_TFC`: Google Pay（トヨタファイナンス）\n- `GOOGLE_PAY_ORICO`: Google Pay（オリエントコーポレーション）\n- `GOOGLE_PAY_AFS`: Google Pay（イオンフィナンシャルサービス）\n- `GOOGLE_PAY_MUN`: Google Pay（三菱UFJニコス）\n- `GOOGLE_PAY_JCB`: Google Pay（JCB）\n- `GOOGLE_PAY_DINERS`: Google Pay（Diners Club）\n- `PAYSLE`: コンビニ決済（電算システム）\n- `PAYPAY`: コンビニ決済（PayPay）\n- `DIRECT_DEBIT`: 口座振替（5・6・23・27日）\n- `DIRECT_DEBIT_MIZUHO`: 口座振替（1・5・20・26日）\n- `VIRTUAL_ACCOUNT`: 銀行振込（バーチャル口座）\n- `VIRTUAL_ACCOUNT_BULK`: 一括決済（バーチャル口座）\n- `CARD_UPDATER`: 洗替\n- `PAYEE_ACCOUNT`: 銀行振込（指定口座）\n"
      },
      "AcquirerContractStatus": {
        "type": "string",
        "enum": [
          "701",
          "702",
          "703",
          "704",
          "705",
          "706",
          "707",
          "708",
          "709"
        ],
        "description": "決済事業者 契約ステータス\n\n- `701`: 申込なし<br /><span class=\"smallText\">まだこの決済手段を利用申請していません</span>\n- `702`: 審査受付<br /><span class=\"smallText\">M's PayBridgeが審査を受け付けました。まだこの決済手段は利用できません。</span>\n- `703`: 審査待ち<br /><span class=\"smallText\">M's PayBridgeによる審査開始を待っています。まだこの決済手段は利用できません。</span>\n- `704`: 審査中<br /><span class=\"smallText\">M's PayBridgeによる審査中です。まだこの決済手段は利用できません。</span>\n- `705`: 審査保留中<br /><span class=\"smallText\">審査の過程で保留中が発生しました。まだこの決済手段は利用できません。</span>\n- `706`: 審査OK<br /><span class=\"smallText\">M's PayBridgeによる審査の結果OKとなりました。まだこの決済手段は利用できません。</span>\n- `707`: 利用可能<br /><span class=\"smallText\">この決済手段は利用可能です。</span>\n- `708`: 審査NG<br /><span class=\"smallText\">M's PayBridgeによる審査の結果NGとなりました。この決済手段は利用できません。</span>\n- `709`: 申込中止<br /><span class=\"smallText\">この決済手段の利用申請を中止しました。</span>\n",
        "x-ja-description": "決済事業者 契約ステータス（和名）\n\n- `申込なし`\n- `審査受付`\n- `審査待ち`\n- `審査中`\n- `審査保留中`\n- `審査OK`\n- `利用可能`\n- `審査NG`\n- `申込中止`\n"
      },
      "WebhookEvent.Contract": {
        "type": "object",
        "properties": {
          "shop_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Shop_properties-id"
              }
            ]
          },
          "event": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FincodeEvent"
              }
            ]
          },
          "body": {
            "type": "array",
            "description": "決済手段 契約状況リスト\\\n\\\n決済手段の種別とその契約ステータスを含むオブジェクトの配列です。\n",
            "items": {
              "type": "object",
              "properties": {
                "acquirer": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Acquirer"
                    }
                  ]
                },
                "provider": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/WebhookProvider"
                    }
                  ]
                },
                "examination_task": {
                  "type": "string",
                  "description": "審査対象（和名）\n\n- `決済事業者審査: VISA/MASTER-UC`\n- `決済事業者審査: VISA/MASTER-TFC`\n- `決済事業者審査： VISA/MASTER-ORICO`\n- `決済事業者審査： VISA/MASTER-AFS`\n- `決済事業者審査： VISA/MASTER-MUN`\n- `決済事業者審査: JCB/AMEX`\n- `決済事業者審査: DINERS`\n- `決済事業者審査: ApplePay-UC`\n- `決済事業者審査: ApplePay-JCB/AMEX`\n- `決済事業者審査: GooglePay-UC`\n- `決済事業者審査: GooglePay-TFC`\n- `決済事業者審査： GooglePay-ORICO`\n- `決済事業者審査： GooglePay-AFS`\n- `決済事業者審査： GooglePay-MUN`\n- `決済事業者審査: GooglePay-JCB/AMEX`\n- `決済事業者審査: GooglePay-DINERS`\n- `決済事業者審査: コンビニ決済`\n- `決済事業者審査: PayPay決済`\n- `決済事業者審査: 口座振替（5・6・23・27日）`\n- `決済事業者審査: 口座振替（1・5・20・26日）`\n- `決済事業者審査: 銀行振込（バーチャル口座）`\n- `決済事業者審査: 一括決済（バーチャル口座）`\n- `決済事業者審査: 洗替`\n- `決済事業者審査: 銀行振込（指定口座）`\n"
                },
                "status_code": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/AcquirerContractStatus"
                    }
                  ]
                },
                "status": {
                  "type": "string",
                  "description": "決済事業者 契約ステータス（和名）\n\n- `申込なし`\n- `審査受付`\n- `審査待ち`\n- `審査中`\n- `審査保留中`\n- `審査OK`\n- `利用可能`\n- `審査NG`\n- `申込中止`\n"
                },
                "is_updated": {
                  "type": "boolean",
                  "description": "更新の有無\\\n\\\n更新があった場合は `true`になります。\n"
                }
              }
            }
          }
        }
      },
      "Invoice_properties-id": {
        "type": "string",
        "description": "インボイスID\n",
        "minLength": 1,
        "maxLength": 30
      },
      "WebhookEvent.Invoice": {
        "type": "object",
        "properties": {
          "shop_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Shop_properties-id"
              }
            ]
          },
          "invoice_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Invoice_properties-id"
              }
            ],
            "description": "イベントが発生したインボイスID\\\nこのIDを指定してインボイス 取得APIを呼び出すことで、最新のインボイス情報を取得できます。\n"
          },
          "event": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FincodeEvent"
              }
            ],
            "description": "Webhook通知 トリガーイベント\n\n- `invoice.create`: インボイス 作成\n- `invoice.update`: インボイス 更新\n- `invoice.open`: インボイス 発行（請求実行）\n- `invoice.cancel`: インボイス キャンセル\n- `invoice.delete`: インボイス 削除\n- `invoice.expired`: インボイス 支払期限超過\n- `invoice.paid`: インボイス 支払い完了\n"
          }
        }
      },
      "WebhookEvent.ChargeBack": {
        "type": "object",
        "properties": {
          "shop_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Shop_properties-id"
              }
            ],
            "description": "イベントが発生したチャージバックが属するショップIDです。\n"
          },
          "charge_back_id": {
            "type": "string",
            "description": "イベントが発生したチャージバックIDです。\\\nこのIDを指定してチャージバック 取得APIを呼び出すことで、最新のチャージバック情報を取得できます。\n"
          },
          "status": {
            "type": "integer",
            "description": "通知時点のチャージバックのステータスです。\\\nチャージバック 取得APIのレスポンスの `status_code` と同値です。\n\n- `4005`: 要対応\n- `4006`: 回答済み\n- `4007`: 回答済み\n- `4009`: 売上返還確定（`canceled` が `true` の場合は確定後取消）\n- `4011`: 回答済み\n"
          },
          "event": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FincodeEvent"
              }
            ],
            "description": "Webhook通知 トリガーイベント\n\n- `charge_backs.regist`: チャージバック 公開（加盟店へ初めて公開されたとき）\n- `charge_backs.update`: チャージバック 更新（公開済みチャージバックのステータスが変化したとき）\n"
          }
        }
      },
      "WebhookEvent.ChangeRequest": {
        "type": "object",
        "properties": {
          "shop_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Shop_properties-id"
              }
            ],
            "description": "イベントが発生した変更申請が属するショップIDです。\n"
          },
          "change_request_id": {
            "type": "string",
            "description": "イベントが発生した変更申請IDです。\\\nこのIDとショップIDを指定して変更申請 取得APIを呼び出すことで、最新の変更申請情報を取得できます。\n"
          },
          "event": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FincodeEvent"
              }
            ],
            "description": "Webhook通知 トリガーイベント\n\n- `change_requests.regist`: 変更申請 登録（変更申請が発生したとき）\n- `change_requests.update`: 変更申請 更新（変更申請のステータスが更新されたとき）\n"
          }
        }
      }
    },
    "examples": {
      "payment_method": {
        "summary": "口座振替・銀行振込（バーチャル口座）",
        "value": "pm_**********************"
      },
      "card": {
        "summary": "カード",
        "value": "cs_**********************"
      }
    }
  },
  "x-tagGroups": [
    {
      "name": "Getting Started",
      "tags": [
        "文字コード",
        "リクエストヘッダー",
        "ページネーション",
        "冪等処理",
        "エラーオブジェクト",
        "エラー"
      ]
    },
    {
      "name": "顧客情報",
      "tags": [
        "顧客",
        "決済手段",
        "カード"
      ]
    },
    {
      "name": "決済",
      "tags": [
        "決済"
      ]
    },
    {
      "name": "3Dセキュア認証",
      "tags": [
        "3Dセキュア認証"
      ]
    },
    {
      "name": "リダイレクト型",
      "tags": [
        "リダイレクト型決済",
        "リダイレクト型カード登録"
      ]
    },
    {
      "name": "サブスクリプション機能",
      "tags": [
        "プラン",
        "サブスクリプション"
      ]
    },
    {
      "name": "一括決済機能",
      "tags": [
        "一括決済"
      ]
    },
    {
      "name": "インボイス機能",
      "tags": [
        "インボイス機能"
      ]
    },
    {
      "name": "請求管理",
      "tags": [
        "請求管理"
      ]
    },
    {
      "name": "ショップの入金情報",
      "tags": [
        "売上入金",
        "プラットフォーム利用料収入",
        "チャージバック"
      ]
    },
    {
      "name": "プラットフォーム管理",
      "tags": [
        "プラットフォームショップ",
        "テナントショップ"
      ]
    },
    {
      "name": "ショップ管理",
      "tags": [
        "社印",
        "ショップ決済手段"
      ]
    },
    {
      "name": "テナント申請管理 (Limited)",
      "tags": [
        "テナント申請管理"
      ]
    },
    {
      "name": "Webhook",
      "tags": [
        "Webhook設定",
        "Webhook_通知仕様"
      ]
    }
  ]
}