{"openapi":"3.1.0","info":{"title":"hello_pay","description":"","license":{"name":""},"version":"0.1.0"},"paths":{"/v1/application_fees":{"get":{"tags":["Application Fees"],"operationId":"list_application_fees","parameters":[{"name":"limit","in":"query","description":"Number of items to return (1-100, default 10)","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"starting_after","in":"query","description":"Cursor for forward pagination","required":false,"schema":{"type":"string"}},{"name":"application_fee_id","in":"query","description":"Filter by application fee friendly ID","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["object","data","has_more","url"],"properties":{"data":{"type":"array","items":{"type":"object","required":["id","object","amount","amount_refunded","refunded","currency","account","charge","created"],"properties":{"account":{"type":"string","description":"手数料の負担元 (分配先) の接続アカウント (friendly ID)。"},"amount":{"type":"integer","format":"int32","description":"プラットフォームが天引きした手数料額。"},"amount_refunded":{"type":"integer","format":"int32","description":"refund 連動で戻された累計額。"},"charge":{"type":"string","description":"元になった charge (friendly ID)。"},"created":{"type":"integer","format":"int64"},"currency":{"type":"string"},"id":{"type":"string"},"object":{"type":"string"},"refunded":{"type":"boolean","description":"全額戻し済みかどうか (= `amount_refunded == amount`)。\n手数料 0 円の場合は作成時点で `true` になる。"}}}},"has_more":{"type":"boolean"},"object":{"type":"string"},"url":{"type":"string"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/application_fees/summary":{"get":{"tags":["Application Fees"],"operationId":"summarize_application_fees","parameters":[{"name":"created_gte","in":"query","description":"Filter by created_at >= (Unix timestamp)","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"created_lte","in":"query","description":"Filter by created_at <= (Unix timestamp)","required":false,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationFeeSummaryResponseBody"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/bank_accounts":{"get":{"tags":["Bank Accounts"],"operationId":"list_bank_accounts","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["object","data","has_more","url"],"properties":{"data":{"type":"array","items":{"type":"object","required":["id","object","bank_name","bank_code","branch_name","branch_code","account_type","account_holder_name","is_default","status","created_at"],"properties":{"account_holder_name":{"type":"string"},"account_number_last4":{"type":["string","null"],"description":"`null` when the stored number is 4 characters or fewer, where the \"last 4\"\nwould be the whole account number."},"account_type":{"type":"string"},"bank_code":{"type":"string"},"bank_name":{"type":"string"},"branch_code":{"type":"string"},"branch_name":{"type":"string"},"created_at":{"type":"integer","format":"int64"},"id":{"type":"string"},"is_default":{"type":"boolean"},"object":{"type":"string"},"status":{"$ref":"#/components/schemas/BankAccountStatus"}}}},"has_more":{"type":"boolean"},"object":{"type":"string"},"url":{"type":"string"}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]},"post":{"tags":["Bank Accounts"],"operationId":"create_bank_account","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBankAccountRequest"}}},"required":true},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankAccountResponseBody"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/bank_accounts/{id}":{"get":{"tags":["Bank Accounts"],"operationId":"get_bank_account","parameters":[{"name":"id","in":"path","description":"Bank account ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankAccountResponseBody"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]},"post":{"tags":["Bank Accounts"],"operationId":"update_bank_account","parameters":[{"name":"id","in":"path","description":"Bank account ID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBankAccountRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankAccountResponseBody"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]},"delete":{"tags":["Bank Accounts"],"operationId":"delete_bank_account","parameters":[{"name":"id","in":"path","description":"Bank account ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletedBankAccountResponseBody"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/charges":{"get":{"tags":["Charges"],"operationId":"list_charges","parameters":[{"name":"payment_intent","in":"query","description":"Filter by payment intent ID","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Number of items to return (1-100, default 10)","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"starting_after","in":"query","description":"Cursor for forward pagination","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["object","data","has_more","url"],"properties":{"data":{"type":"array","items":{"type":"object","required":["id","object","amount","amount_captured","amount_refunded","currency","status","captured","payment_intent","payment_method_details","created"],"properties":{"amount":{"type":"integer","format":"int32"},"amount_captured":{"type":"integer","format":"int32","description":"実際に売上計上（capture）された金額。capture 前は `0`。"},"amount_refunded":{"type":"integer","format":"int32"},"application_fee":{"type":["string","null"],"description":"capture 時に作成された application fee (friendly ID)。capture 前・通常決済では `null`。"},"application_fee_amount":{"type":["integer","null"],"format":"int32","description":"Destination 決済でプラットフォームが天引きする手数料額。通常決済では `null`。"},"captured":{"type":"boolean","description":"売上計上（capture）済みかどうか。与信のみ（capture 前）は `false`。"},"created":{"type":"integer","format":"int64"},"currency":{"type":"string"},"decline_code":{"type":["string","null"]},"failure_code":{"type":["string","null"]},"failure_message":{"type":["string","null"]},"id":{"type":"string"},"object":{"type":"string"},"payment_intent":{"type":"string"},"payment_method":{"type":["string","null"]},"payment_method_details":{"$ref":"#/components/schemas/PaymentMethodDetails"},"receipt_email":{"type":["string","null"]},"receipt_number":{"type":["string","null"]},"status":{"$ref":"#/components/schemas/ChargeStatus"},"transfer":{"type":["string","null"],"description":"capture 時に作成された transfer (friendly ID)。capture 前・通常決済では `null`。"},"transfer_data":{"oneOf":[{"$ref":"#/components/schemas/TransferDataResponse","description":"Destination 決済の分配設定。通常決済では `null`。"},{"type":"null"}]}}}},"has_more":{"type":"boolean"},"object":{"type":"string"},"url":{"type":"string"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/charges/{id}":{"get":{"tags":["Charges"],"operationId":"get_charge","parameters":[{"name":"id","in":"path","description":"Charge ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChargeResponseBody"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/connected_accounts":{"get":{"tags":["Connected Accounts"],"operationId":"list_connected_accounts","parameters":[{"name":"limit","in":"query","description":"Number of items to return (1-100, default 10)","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"starting_after","in":"query","description":"Cursor for forward pagination","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","description":"Filter by connected account status","required":false,"schema":{"type":"string"}},{"name":"search","in":"query","description":"Search by display name or connected account ID substring","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["object","data","has_more","url"],"properties":{"data":{"type":"array","items":{"type":"object","required":["id","object","status","payout_cycle","created_at"],"properties":{"business_type":{"type":["string","null"],"description":"`corporation` / `sole_proprietor`。未設定なら `null`。"},"created_at":{"type":"integer","format":"int64"},"default_bank_account":{"type":["string","null"],"description":"この connected account の既定振込口座 (friendly ID)。未設定なら `null`。"},"display_name":{"type":["string","null"]},"id":{"type":"string"},"metadata":{"type":["object","null"]},"object":{"type":"string"},"payout_cycle":{"type":"string","description":"`monthly` / `weekly` / `daily`。"},"status":{"type":"string","description":"`pending` / `under_review` / `active` / `rejected` / `suspended`。"}}}},"has_more":{"type":"boolean"},"object":{"type":"string"},"url":{"type":"string"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]},"post":{"tags":["Connected Accounts"],"operationId":"create_connected_account","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateConnectedAccountRequest"}}},"required":true},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectedAccountResponseBody"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/connected_accounts/{id}":{"get":{"tags":["Connected Accounts"],"operationId":"get_connected_account","parameters":[{"name":"id","in":"path","description":"Connected account ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectedAccountResponseBody"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]},"patch":{"tags":["Connected Accounts"],"operationId":"update_connected_account","parameters":[{"name":"id","in":"path","description":"Connected account ID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateConnectedAccountRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectedAccountResponseBody"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/connected_accounts/{id}/balance":{"get":{"tags":["Connected Accounts"],"operationId":"get_connected_account_balance","parameters":[{"name":"id","in":"path","description":"Connected account ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectedAccountBalanceResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/connected_accounts/{id}/bank_accounts":{"get":{"tags":["Connected Accounts"],"operationId":"list_connected_account_bank_accounts","parameters":[{"name":"id","in":"path","description":"Connected account ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["object","data","has_more","url"],"properties":{"data":{"type":"array","items":{"type":"object","required":["id","object","bank_name","bank_code","branch_name","branch_code","account_type","account_holder_name","is_default","status","created_at"],"properties":{"account_holder_name":{"type":"string"},"account_number_last4":{"type":["string","null"],"description":"`null` when the stored number is 4 characters or fewer, where the \"last 4\"\nwould be the whole account number."},"account_type":{"type":"string"},"bank_code":{"type":"string"},"bank_name":{"type":"string"},"branch_code":{"type":"string"},"branch_name":{"type":"string"},"created_at":{"type":"integer","format":"int64"},"id":{"type":"string"},"is_default":{"type":"boolean"},"object":{"type":"string"},"status":{"$ref":"#/components/schemas/BankAccountStatus"}}}},"has_more":{"type":"boolean"},"object":{"type":"string"},"url":{"type":"string"}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]},"post":{"tags":["Connected Accounts"],"operationId":"create_connected_account_bank_account","parameters":[{"name":"id","in":"path","description":"Connected account ID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBankAccountRequest"}}},"required":true},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankAccountResponseBody"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/connected_accounts/{id}/bank_accounts/{bank_account_id}":{"post":{"tags":["Connected Accounts"],"operationId":"update_connected_account_bank_account","parameters":[{"name":"id","in":"path","description":"Connected account ID","required":true,"schema":{"type":"string"}},{"name":"bank_account_id","in":"path","description":"Bank account ID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateConnectedAccountBankAccountRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankAccountResponseBody"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]},"delete":{"tags":["Connected Accounts"],"operationId":"delete_connected_account_bank_account","parameters":[{"name":"id","in":"path","description":"Connected account ID","required":true,"schema":{"type":"string"}},{"name":"bank_account_id","in":"path","description":"Bank account ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletedBankAccountResponseBody"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/connected_accounts/{id}/identity_verification":{"get":{"tags":["Connected Accounts"],"operationId":"get_identity_verification","parameters":[{"name":"id","in":"path","description":"Connected account ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentityVerificationResponseBody"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]},"patch":{"tags":["Connected Accounts"],"operationId":"update_identity_verification","parameters":[{"name":"id","in":"path","description":"Connected account ID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateIdentityVerificationRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentityVerificationResponseBody"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/connected_accounts/{id}/identity_verification/submit":{"post":{"tags":["Connected Accounts"],"operationId":"submit_identity_verification","parameters":[{"name":"id","in":"path","description":"Connected account ID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitIdentityVerificationRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentityVerificationResponseBody"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/connected_accounts/{id}/payouts":{"get":{"tags":["Payouts"],"operationId":"list_connected_account_payouts","parameters":[{"name":"id","in":"path","description":"Connected account ID","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Number of items to return (1-100, default 10)","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"starting_after","in":"query","description":"Cursor for forward pagination","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["object","data","has_more","url"],"properties":{"data":{"type":"array","items":{"type":"object","required":["id","object","status","start_date","end_date","gross_amount","refunds_amount","disputes_amount","fees_amount","plan_fee_amount","transfer_fee","reserve_amount","reserve_release_amount","adjustments_amount","net_amount","currency","metadata","created_at","adjustments"],"properties":{"adjustments":{"type":"array","items":{"$ref":"#/components/schemas/PayoutAdjustmentResponseBody"},"description":"この入金で精算した調整項目 (繰越チェーン全体の累積)。"},"adjustments_amount":{"type":"integer","format":"int32","description":"繰越チェーンで精算した調整の累積合計 (符号付き・税込)。`adjustments` の合計と一致する。"},"bank_account_id":{"type":["string","null"]},"created_at":{"type":"integer","format":"int64"},"currency":{"type":"string"},"disputes_amount":{"type":"integer","format":"int32"},"end_date":{"type":"string"},"fees_amount":{"type":"integer","format":"int32"},"gross_amount":{"type":"integer","format":"int32"},"id":{"type":"string"},"metadata":{},"net_amount":{"type":"integer","format":"int32"},"object":{"type":"string"},"paid_at":{"type":["integer","null"],"format":"int64"},"plan_fee_amount":{"type":"integer","format":"int32"},"refunds_amount":{"type":"integer","format":"int32"},"reserve_amount":{"type":"integer","format":"int32"},"reserve_release_amount":{"type":"integer","format":"int32"},"scheduled_date":{"type":["string","null"]},"start_date":{"type":"string"},"status":{"type":"string"},"transfer_fee":{"type":"integer","format":"int32"}}}},"has_more":{"type":"boolean"},"object":{"type":"string"},"url":{"type":"string"}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/connected_accounts/{id}/persons":{"get":{"tags":["Connected Accounts"],"operationId":"list_identity_persons","parameters":[{"name":"id","in":"path","description":"Connected account ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["object","data","has_more","url"],"properties":{"data":{"type":"array","items":{"type":"object","required":["id","object","relationship","created_at"],"properties":{"address_kana":{"oneOf":[{"$ref":"#/components/schemas/IdentityAddress"},{"type":"null"}]},"address_kanji":{"oneOf":[{"$ref":"#/components/schemas/IdentityAddress"},{"type":"null"}]},"created_at":{"type":"integer","format":"int64"},"dob":{"oneOf":[{"$ref":"#/components/schemas/IdentityDob"},{"type":"null"}]},"email":{"type":["string","null"]},"first_name":{"type":["string","null"]},"first_name_kana":{"type":["string","null"]},"first_name_kanji":{"type":["string","null"]},"id":{"type":"string"},"last_name":{"type":["string","null"]},"last_name_kana":{"type":["string","null"]},"last_name_kanji":{"type":["string","null"]},"object":{"type":"string"},"phone":{"type":["string","null"]},"relationship":{"$ref":"#/components/schemas/IdentityPersonRelationshipBody"}}}},"has_more":{"type":"boolean"},"object":{"type":"string"},"url":{"type":"string"}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]},"post":{"tags":["Connected Accounts"],"operationId":"create_identity_person","parameters":[{"name":"id","in":"path","description":"Connected account ID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveIdentityPersonRequest"}}},"required":true},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentityPersonResponseBody"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/connected_accounts/{id}/persons/{person_id}":{"get":{"tags":["Connected Accounts"],"operationId":"get_identity_person","parameters":[{"name":"id","in":"path","description":"Connected account ID","required":true,"schema":{"type":"string"}},{"name":"person_id","in":"path","description":"Person ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentityPersonResponseBody"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]},"delete":{"tags":["Connected Accounts"],"operationId":"delete_identity_person","parameters":[{"name":"id","in":"path","description":"Connected account ID","required":true,"schema":{"type":"string"}},{"name":"person_id","in":"path","description":"Person ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletedIdentityPersonResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]},"patch":{"tags":["Connected Accounts"],"operationId":"update_identity_person","parameters":[{"name":"id","in":"path","description":"Connected account ID","required":true,"schema":{"type":"string"}},{"name":"person_id","in":"path","description":"Person ID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveIdentityPersonRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentityPersonResponseBody"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/coupons":{"get":{"tags":["Coupons"],"operationId":"list_coupons","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":["integer","null"],"format":"int64"}},{"name":"starting_after","in":"query","required":false,"schema":{"type":["string","null"]}},{"name":"ending_before","in":"query","required":false,"schema":{"type":["string","null"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["object","data","has_more","url"],"properties":{"data":{"type":"array","items":{"type":"object","required":["id","object","duration","times_redeemed","valid","metadata","created"],"properties":{"amount_off":{"type":["integer","null"],"format":"int32"},"created":{"type":"integer","format":"int64"},"currency":{"type":["string","null"]},"duration":{"type":"string"},"duration_in_months":{"type":["integer","null"],"format":"int32"},"id":{"type":"string"},"max_redemptions":{"type":["integer","null"],"format":"int32"},"metadata":{"type":"object"},"name":{"type":["string","null"]},"object":{"type":"string"},"percent_off":{"type":["integer","null"],"format":"int32"},"times_redeemed":{"type":"integer","format":"int32"},"valid":{"type":"boolean"}}}},"has_more":{"type":"boolean"},"object":{"type":"string"},"url":{"type":"string"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]},"post":{"tags":["Coupons"],"operationId":"create_coupon","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCouponRequest"}}},"required":true},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CouponResponseBody"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/coupons/{id}":{"get":{"tags":["Coupons"],"operationId":"get_coupon","parameters":[{"name":"id","in":"path","description":"Coupon ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CouponResponseBody"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]},"delete":{"tags":["Coupons"],"operationId":"delete_coupon","parameters":[{"name":"id","in":"path","description":"Coupon ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletedCouponResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]},"patch":{"tags":["Coupons"],"operationId":"update_coupon","parameters":[{"name":"id","in":"path","description":"Coupon ID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCouponRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CouponResponseBody"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/customers":{"get":{"tags":["Customers"],"operationId":"list_customers","parameters":[{"name":"limit","in":"query","description":"Number of items to return (1-100, default 10)","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"starting_after","in":"query","description":"Cursor for forward pagination","required":false,"schema":{"type":"string"}},{"name":"ending_before","in":"query","description":"Cursor for backward pagination","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["object","data","has_more","url"],"properties":{"data":{"type":"array","items":{"type":"object","required":["id","object","name","created"],"properties":{"created":{"type":"integer","format":"int64"},"default_payment_method":{"type":["string","null"]},"email":{"type":["string","null"]},"id":{"type":"string"},"metadata":{"type":["object","null"]},"name":{"type":"string"},"object":{"type":"string"},"phone":{"type":["string","null"]}}}},"has_more":{"type":"boolean"},"object":{"type":"string"},"url":{"type":"string"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]},"post":{"tags":["Customers"],"operationId":"create_customer","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCustomerRequest"}}},"required":true},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerResponseBody"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/customers/{id}":{"get":{"tags":["Customers"],"operationId":"get_customer","parameters":[{"name":"id","in":"path","description":"Customer ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerResponseBody"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]},"post":{"tags":["Customers"],"operationId":"update_customer","parameters":[{"name":"id","in":"path","description":"Customer ID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCustomerRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerResponseBody"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]},"delete":{"tags":["Customers"],"operationId":"delete_customer","parameters":[{"name":"id","in":"path","description":"Customer ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletedCustomerResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/customers/{id}/payment_methods":{"get":{"tags":["Payment Methods"],"operationId":"list_customer_payment_methods","parameters":[{"name":"id","in":"path","description":"Customer ID","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Number of items to return (1-100, default 10)","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"starting_after","in":"query","description":"Cursor for forward pagination","required":false,"schema":{"type":"string"}},{"name":"ending_before","in":"query","description":"Cursor for backward pagination","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["object","data","has_more","url"],"properties":{"data":{"type":"array","items":{"type":"object","required":["id","object","type","created"],"properties":{"billing_details":{"oneOf":[{"$ref":"#/components/schemas/BillingDetails"},{"type":"null"}]},"card":{"oneOf":[{"$ref":"#/components/schemas/CardResponse"},{"type":"null"}]},"created":{"type":"integer","format":"int64"},"customer":{"type":["string","null"]},"id":{"type":"string"},"object":{"type":"string"},"type":{"type":"string"}}}},"has_more":{"type":"boolean"},"object":{"type":"string"},"url":{"type":"string"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/disputes":{"get":{"tags":["Disputes"],"operationId":"list_disputes","parameters":[{"name":"limit","in":"query","description":"Number of items to return (1-100, default 10)","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"starting_after","in":"query","description":"Cursor for forward pagination","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["object","data","has_more","url"],"properties":{"data":{"type":"array","items":{"type":"object","required":["id","object","project_id","payment_intent","external_id","amount","fee","status","evidence_files","effective_at","created_at"],"properties":{"amount":{"type":"integer","format":"int32"},"created_at":{"type":"integer","format":"int64"},"effective_at":{"type":"integer","format":"int64"},"evidence_files":{"type":"array","items":{"$ref":"#/components/schemas/DisputeEvidenceFileResponse"}},"evidence_submitted_at":{"type":["integer","null"],"format":"int64"},"evidence_text":{"type":["string","null"]},"external_id":{"type":"string"},"fee":{"type":"integer","format":"int32"},"id":{"type":"string"},"object":{"type":"string"},"payment_intent":{"type":"string"},"project_id":{"type":"string"},"reason":{"type":["string","null"]},"resolved_at":{"type":["integer","null"],"format":"int64"},"resolved_effective_at":{"type":["integer","null"],"format":"int64"},"status":{"type":"string"}}}},"has_more":{"type":"boolean"},"object":{"type":"string"},"url":{"type":"string"}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/disputes/{id}":{"get":{"tags":["Disputes"],"operationId":"get_dispute","parameters":[{"name":"id","in":"path","description":"Dispute ID (dp_xxx)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisputeResponseBody"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/events":{"get":{"tags":["Events"],"operationId":"list_events","parameters":[{"name":"limit","in":"query","description":"Number of items to return (1-100, default 10)","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"starting_after","in":"query","description":"Cursor for forward pagination","required":false,"schema":{"type":"string"}},{"name":"ending_before","in":"query","description":"Cursor for backward pagination","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["object","data","has_more","url"],"properties":{"data":{"type":"array","items":{"type":"object","required":["id","object","type","created","api_version","data","request","pending_webhooks"],"properties":{"api_version":{"type":"string"},"created":{"type":"integer","format":"int64"},"data":{"$ref":"#/components/schemas/EventDataBody"},"id":{"type":"string"},"object":{"type":"string"},"pending_webhooks":{"type":"integer","format":"int64"},"request":{"$ref":"#/components/schemas/EventRequestBody"},"type":{"type":"string"}}}},"has_more":{"type":"boolean"},"object":{"type":"string"},"url":{"type":"string"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/events/{id}":{"get":{"tags":["Events"],"operationId":"get_event","parameters":[{"name":"id","in":"path","description":"Event ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventResponseBody"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/invoices":{"get":{"tags":["Invoices"],"operationId":"list_invoices","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":["integer","null"],"format":"int64"}},{"name":"starting_after","in":"query","required":false,"schema":{"type":["string","null"]}},{"name":"ending_before","in":"query","required":false,"schema":{"type":["string","null"]}},{"name":"customer","in":"query","required":false,"schema":{"type":["string","null"]}},{"name":"subscription","in":"query","required":false,"schema":{"type":["string","null"]}},{"name":"status","in":"query","required":false,"schema":{"type":["string","null"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["object","data","has_more","url"],"properties":{"data":{"type":"array","items":{"type":"object","required":["id","object","customer","status","amount_due","subtotal","discount_amount","starting_balance","ending_balance","currency","period_start","period_end","metadata","created"],"properties":{"amount_due":{"type":"integer","format":"int32"},"created":{"type":"integer","format":"int64"},"currency":{"type":"string"},"customer":{"type":"string"},"discount_amount":{"type":"integer","format":"int32"},"ending_balance":{"type":"integer","format":"int32","description":"Customer balance after this invoice was finalized (`<= 0`)."},"id":{"type":"string"},"lines":{"type":["array","null"],"items":{"$ref":"#/components/schemas/InvoiceLineItemResponseBody"},"description":"Line-item breakdown. Detail responses contain the array; list responses return null."},"metadata":{"type":"object"},"object":{"type":"string"},"payment_intent":{"type":["string","null"]},"period_end":{"type":"integer","format":"int64"},"period_start":{"type":"integer","format":"int64"},"starting_balance":{"type":"integer","format":"int32","description":"Customer balance just before this invoice was finalized (`<= 0`)."},"status":{"type":"string"},"subscription":{"type":["string","null"]},"subtotal":{"type":"integer","format":"int32"},"total":{"type":["integer","null"],"format":"int32","description":"Signed total before the customer balance is applied. `null` for invoices\ncreated before the adjustment columns existed (then `amount_due` is\n`subtotal - discount_amount`)."}}}},"has_more":{"type":"boolean"},"object":{"type":"string"},"url":{"type":"string"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/invoices/create_preview":{"post":{"tags":["Invoices"],"operationId":"create_preview","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePreviewRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoicePreviewResponseBody"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/invoices/{id}":{"get":{"tags":["Invoices"],"operationId":"get_invoice","parameters":[{"name":"id","in":"path","description":"Invoice ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceResponseBody"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/invoices/{id}/pay":{"post":{"tags":["Invoices"],"operationId":"pay_invoice","parameters":[{"name":"id","in":"path","description":"Invoice ID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayInvoiceRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceResponseBody"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/payment_intents":{"get":{"tags":["Payment Intents"],"operationId":"list_payment_intents","parameters":[{"name":"limit","in":"query","description":"Number of items to return (1-100, default 10)","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"starting_after","in":"query","description":"Cursor for forward pagination","required":false,"schema":{"type":"string"}},{"name":"ending_before","in":"query","description":"Cursor for backward pagination","required":false,"schema":{"type":"string"}},{"name":"customer","in":"query","description":"Filter by customer ID","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","description":"Filter by status","required":false,"schema":{"$ref":"#/components/schemas/PaymentIntentStatus"}},{"name":"created_gte","in":"query","description":"Filter by created_at >= (Unix timestamp)","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"created_lte","in":"query","description":"Filter by created_at <= (Unix timestamp)","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"amount_gte","in":"query","description":"Filter by amount >= (in smallest currency unit)","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"amount_lte","in":"query","description":"Filter by amount <= (in smallest currency unit)","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"metadata","in":"query","description":"Filter by metadata key:value exact match (e.g. order_id:xyn712)","required":false,"schema":{"type":"string"}},{"name":"payment_link","in":"query","description":"Filter by payment link ID (e.g. plink_...)","required":false,"schema":{"type":"string"}},{"name":"connected_account","in":"query","description":"Filter by connected account ID (e.g. acct_...)","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["object","data","has_more","url"],"properties":{"data":{"type":"array","items":{"type":"object","required":["id","object","amount","currency","status","amount_refunded","metadata","created"],"properties":{"amount":{"type":"integer","format":"int32"},"amount_details":{"oneOf":[{"$ref":"#/components/schemas/AmountDetailsResponse","description":"請求明細。明細が無い場合は省略される。"},{"type":"null"}]},"amount_received":{"type":["integer","null"],"format":"int32"},"amount_refunded":{"type":"integer","format":"int32"},"application_fee_amount":{"type":["integer","null"],"format":"int32","description":"Destination 決済でプラットフォームが天引きする手数料額。通常決済では `null`。"},"canceled_at":{"type":["integer","null"],"format":"int64"},"captured_at":{"type":["integer","null"],"format":"int64"},"created":{"type":"integer","format":"int64"},"currency":{"type":"string"},"customer":{"type":["string","null"]},"customer_phone":{"type":["string","null"],"description":"決済リンクで購入者が入力した連絡先電話番号。新規入力は検証済み E.164 形式。未入力は null。"},"description":{"type":["string","null"]},"id":{"type":"string"},"latest_charge":{"oneOf":[{"$ref":"#/components/schemas/ChargeResponseBody"},{"type":"null"}]},"metadata":{"type":"object"},"next_action":{"oneOf":[{"$ref":"#/components/schemas/NextActionResponse"},{"type":"null"}]},"object":{"type":"string"},"payment_method":{"type":["string","null"]},"payment_method_options":{"oneOf":[{"$ref":"#/components/schemas/PaymentMethodOptions","description":"分割払いなどの支払オプション。1回払いの場合は省略される。"},{"type":"null"}]},"receipt_email":{"type":["string","null"]},"receipt_name":{"type":["string","null"]},"setup_future_usage":{"type":["string","null"]},"status":{"$ref":"#/components/schemas/PaymentIntentStatus"},"three_ds_sessions":{"type":"array","items":{"$ref":"#/components/schemas/ThreeDSSessionResponse"},"description":"この Payment Intent に紐づく 3D セキュア認証セッションの一覧。\n失敗・期限切れを含む全試行を作成日時の昇順で返す。試行が無い場合は省略される。"},"transfer_data":{"oneOf":[{"$ref":"#/components/schemas/TransferDataResponse","description":"Destination 決済の分配設定。通常決済では `null`。"},{"type":"null"}]}}}},"has_more":{"type":"boolean"},"object":{"type":"string"},"url":{"type":"string"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]},"post":{"tags":["Payment Intents"],"operationId":"create_payment_intent","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePaymentIntentRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentIntentResponseBody"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"413":{"description":"Payload Too Large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/payment_intents/{id}":{"get":{"tags":["Payment Intents"],"operationId":"get_payment_intent","parameters":[{"name":"id","in":"path","description":"Payment intent ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentIntentResponseBody"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]},"post":{"tags":["Payment Intents"],"operationId":"update_payment_intent","parameters":[{"name":"id","in":"path","description":"Payment intent ID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePaymentIntentRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentIntentResponseBody"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"413":{"description":"Payload Too Large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/payment_intents/{id}/cancel":{"post":{"tags":["Payment Intents"],"operationId":"cancel_payment_intent","parameters":[{"name":"id","in":"path","description":"Payment intent ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentIntentResponseBody"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/payment_intents/{id}/capture":{"post":{"tags":["Payment Intents"],"operationId":"capture_payment_intent","parameters":[{"name":"id","in":"path","description":"Payment intent ID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CapturePaymentIntentRequest"},{"type":"null"}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentIntentResponseBody"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"413":{"description":"Payload Too Large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"503":{"description":"The capture result could not be confirmed (gateway timeout). The payment intent is left in processing status and must be reconciled; do not retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/payment_intents/{id}/send_receipt":{"post":{"tags":["Payment Intents"],"operationId":"send_receipt","parameters":[{"name":"id","in":"path","description":"Payment intent ID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendReceiptRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentIntentResponseBody"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"413":{"description":"Payload Too Large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/payment_methods":{"post":{"tags":["Payment Methods"],"operationId":"create_payment_method","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePaymentMethodRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentMethodResponseBody"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/payment_methods/{id}":{"get":{"tags":["Payment Methods"],"operationId":"get_payment_method","parameters":[{"name":"id","in":"path","description":"Payment method ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentMethodResponseBody"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/payment_methods/{id}/attach":{"post":{"tags":["Payment Methods"],"operationId":"attach_payment_method","parameters":[{"name":"id","in":"path","description":"Payment method ID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachPaymentMethodRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentMethodResponseBody"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/payment_methods/{id}/detach":{"post":{"tags":["Payment Methods"],"operationId":"detach_payment_method","parameters":[{"name":"id","in":"path","description":"Payment method ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentMethodResponseBody"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/payouts":{"get":{"tags":["Payouts"],"operationId":"list_payouts","parameters":[{"name":"limit","in":"query","description":"Number of items to return (1-100, default 10)","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"starting_after","in":"query","description":"Cursor for forward pagination","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["object","data","has_more","url"],"properties":{"data":{"type":"array","items":{"type":"object","required":["id","object","status","start_date","end_date","gross_amount","refunds_amount","disputes_amount","fees_amount","plan_fee_amount","transfer_fee","reserve_amount","reserve_release_amount","adjustments_amount","net_amount","currency","metadata","created_at","adjustments"],"properties":{"adjustments":{"type":"array","items":{"$ref":"#/components/schemas/PayoutAdjustmentResponseBody"},"description":"この入金で精算した調整項目 (繰越チェーン全体の累積)。"},"adjustments_amount":{"type":"integer","format":"int32","description":"繰越チェーンで精算した調整の累積合計 (符号付き・税込)。`adjustments` の合計と一致する。"},"bank_account_id":{"type":["string","null"]},"created_at":{"type":"integer","format":"int64"},"currency":{"type":"string"},"disputes_amount":{"type":"integer","format":"int32"},"end_date":{"type":"string"},"fees_amount":{"type":"integer","format":"int32"},"gross_amount":{"type":"integer","format":"int32"},"id":{"type":"string"},"metadata":{},"net_amount":{"type":"integer","format":"int32"},"object":{"type":"string"},"paid_at":{"type":["integer","null"],"format":"int64"},"plan_fee_amount":{"type":"integer","format":"int32"},"refunds_amount":{"type":"integer","format":"int32"},"reserve_amount":{"type":"integer","format":"int32"},"reserve_release_amount":{"type":"integer","format":"int32"},"scheduled_date":{"type":["string","null"]},"start_date":{"type":"string"},"status":{"type":"string"},"transfer_fee":{"type":"integer","format":"int32"}}}},"has_more":{"type":"boolean"},"object":{"type":"string"},"url":{"type":"string"}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/payouts/{id}":{"get":{"tags":["Payouts"],"operationId":"get_payout","parameters":[{"name":"id","in":"path","description":"Payout ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayoutResponseBody"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/prices":{"get":{"tags":["Prices"],"operationId":"list_prices","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":["integer","null"],"format":"int64"}},{"name":"starting_after","in":"query","required":false,"schema":{"type":["string","null"]}},{"name":"ending_before","in":"query","required":false,"schema":{"type":["string","null"]}},{"name":"product","in":"query","required":false,"schema":{"type":["string","null"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["object","data","has_more","url"],"properties":{"data":{"type":"array","items":{"type":"object","required":["id","object","product","unit_amount","currency","recurring","metadata","created","updated"],"properties":{"created":{"type":"integer","format":"int64"},"currency":{"type":"string"},"id":{"type":"string"},"metadata":{"type":"object"},"name":{"type":["string","null"]},"object":{"type":"string"},"product":{"type":"string"},"recurring":{"$ref":"#/components/schemas/PriceRecurring"},"unit_amount":{"type":"integer","format":"int32"},"updated":{"type":"integer","format":"int64"}}}},"has_more":{"type":"boolean"},"object":{"type":"string"},"url":{"type":"string"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]},"post":{"tags":["Prices"],"operationId":"create_price","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePriceRequest"}}},"required":true},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceResponseBody"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/prices/{id}":{"get":{"tags":["Prices"],"operationId":"get_price","parameters":[{"name":"id","in":"path","description":"Price ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceResponseBody"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]},"delete":{"tags":["Prices"],"operationId":"delete_price","parameters":[{"name":"id","in":"path","description":"Price ID","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Price deleted"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"409":{"description":"The price is used by subscriptions that may still be billed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]},"patch":{"tags":["Prices"],"operationId":"update_price","parameters":[{"name":"id","in":"path","description":"Price ID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePriceRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceResponseBody"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/products":{"get":{"tags":["Products"],"operationId":"list_products","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":["integer","null"],"format":"int64"}},{"name":"starting_after","in":"query","required":false,"schema":{"type":["string","null"]}},{"name":"ending_before","in":"query","required":false,"schema":{"type":["string","null"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["object","data","has_more","url"],"properties":{"data":{"type":"array","items":{"type":"object","required":["id","object","name","metadata","created","updated"],"properties":{"created":{"type":"integer","format":"int64"},"description":{"type":["string","null"]},"id":{"type":"string"},"metadata":{"type":"object"},"name":{"type":"string"},"object":{"type":"string"},"updated":{"type":"integer","format":"int64"}}}},"has_more":{"type":"boolean"},"object":{"type":"string"},"url":{"type":"string"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]},"post":{"tags":["Products"],"operationId":"create_product","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProductRequest"}}},"required":true},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductResponseBody"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/products/{id}":{"get":{"tags":["Products"],"operationId":"get_product","parameters":[{"name":"id","in":"path","description":"Product ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductResponseBody"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]},"delete":{"tags":["Products"],"operationId":"delete_product","parameters":[{"name":"id","in":"path","description":"Product ID","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Product deleted"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"409":{"description":"A price of the product is used by subscriptions that may still be billed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]},"patch":{"tags":["Products"],"operationId":"update_product","parameters":[{"name":"id","in":"path","description":"Product ID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProductRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductResponseBody"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/promotion_codes":{"get":{"tags":["Promotion Codes"],"operationId":"list_promotion_codes","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":["integer","null"],"format":"int64"}},{"name":"starting_after","in":"query","required":false,"schema":{"type":["string","null"]}},{"name":"ending_before","in":"query","required":false,"schema":{"type":["string","null"]}},{"name":"code","in":"query","description":"コード文字列での完全一致フィルタ（コード → ID の解決用）","required":false,"schema":{"type":["string","null"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["object","data","has_more","url"],"properties":{"data":{"type":"array","items":{"type":"object","required":["id","object","code","coupon","active","times_redeemed","metadata","created"],"properties":{"active":{"type":"boolean"},"code":{"type":"string"},"coupon":{"$ref":"#/components/schemas/CouponResponseBody"},"created":{"type":"integer","format":"int64"},"expires_at":{"type":["integer","null"],"format":"int64"},"id":{"type":"string"},"max_redemptions":{"type":["integer","null"],"format":"int32"},"metadata":{"type":"object"},"object":{"type":"string"},"times_redeemed":{"type":"integer","format":"int32"}}}},"has_more":{"type":"boolean"},"object":{"type":"string"},"url":{"type":"string"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]},"post":{"tags":["Promotion Codes"],"operationId":"create_promotion_code","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePromotionCodeRequest"}}},"required":true},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromotionCodeResponseBody"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/promotion_codes/{id}":{"get":{"tags":["Promotion Codes"],"operationId":"get_promotion_code","parameters":[{"name":"id","in":"path","description":"Promotion Code ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromotionCodeResponseBody"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]},"patch":{"tags":["Promotion Codes"],"operationId":"update_promotion_code","parameters":[{"name":"id","in":"path","description":"Promotion Code ID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePromotionCodeRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromotionCodeResponseBody"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/refunds":{"get":{"tags":["Refunds"],"operationId":"list_refunds","parameters":[{"name":"payment_intent","in":"query","description":"Filter by payment intent ID","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Number of items to return (1-100, default 10)","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"starting_after","in":"query","description":"Cursor for forward pagination","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["object","data","has_more","url"],"properties":{"data":{"type":"array","items":{"type":"object","required":["id","object","amount","currency","payment_intent","status","created_at"],"properties":{"amount":{"type":"integer","format":"int32"},"created_at":{"type":"integer","format":"int64"},"currency":{"type":"string"},"id":{"type":"string"},"object":{"type":"string"},"payment_intent":{"type":"string"},"reason":{"type":["string","null"]},"status":{"$ref":"#/components/schemas/RefundStatus"}}}},"has_more":{"type":"boolean"},"object":{"type":"string"},"url":{"type":"string"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]},"post":{"tags":["Refunds"],"operationId":"create_refund","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRefundPayload"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundResponseBody"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"503":{"description":"The refund result could not be confirmed (gateway timeout). The refund is held for reconciliation and further refunds on this payment intent are refused; do not retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/refunds/{id}":{"get":{"tags":["Refunds"],"operationId":"get_refund","parameters":[{"name":"id","in":"path","description":"Refund ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundResponseBody"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/setup_intents":{"get":{"tags":["Setup Intents"],"operationId":"list_setup_intents","parameters":[{"name":"limit","in":"query","description":"Number of items to return (1-100, default 10)","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"starting_after","in":"query","description":"Cursor for forward pagination","required":false,"schema":{"type":"string"}},{"name":"ending_before","in":"query","description":"Cursor for backward pagination","required":false,"schema":{"type":"string"}},{"name":"customer","in":"query","description":"Filter by customer ID","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","description":"Filter by status","required":false,"schema":{"$ref":"#/components/schemas/SetupIntentStatus"}},{"name":"created_gte","in":"query","description":"Filter by created_at >= (Unix timestamp)","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"created_lte","in":"query","description":"Filter by created_at <= (Unix timestamp)","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"metadata","in":"query","description":"Filter by metadata key:value exact match (e.g. order_id:xyn712)","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["object","data","has_more","url"],"properties":{"data":{"type":"array","items":{"type":"object","required":["id","object","status","metadata","created"],"properties":{"canceled_at":{"type":["integer","null"],"format":"int64"},"created":{"type":"integer","format":"int64"},"customer":{"type":["string","null"]},"description":{"type":["string","null"]},"id":{"type":"string"},"metadata":{"type":"object"},"next_action":{"oneOf":[{"$ref":"#/components/schemas/NextActionResponse"},{"type":"null"}]},"object":{"type":"string"},"payment_method":{"type":["string","null"]},"status":{"$ref":"#/components/schemas/SetupIntentStatusResponse"}}}},"has_more":{"type":"boolean"},"object":{"type":"string"},"url":{"type":"string"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]},"post":{"tags":["Setup Intents"],"operationId":"create_setup_intent","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSetupIntentRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetupIntentResponseBody"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/setup_intents/{id}":{"get":{"tags":["Setup Intents"],"operationId":"get_setup_intent","parameters":[{"name":"id","in":"path","description":"Setup intent ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetupIntentResponseBody"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]},"post":{"tags":["Setup Intents"],"operationId":"update_setup_intent","parameters":[{"name":"id","in":"path","description":"Setup intent ID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSetupIntentRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetupIntentResponseBody"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/setup_intents/{id}/cancel":{"post":{"tags":["Setup Intents"],"operationId":"cancel_setup_intent","parameters":[{"name":"id","in":"path","description":"Setup intent ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetupIntentResponseBody"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/subscriptions":{"get":{"tags":["Subscriptions"],"operationId":"list_subscriptions","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":["integer","null"],"format":"int64"}},{"name":"starting_after","in":"query","required":false,"schema":{"type":["string","null"]}},{"name":"ending_before","in":"query","required":false,"schema":{"type":["string","null"]}},{"name":"customer","in":"query","required":false,"schema":{"type":["string","null"]}},{"name":"status","in":"query","required":false,"schema":{"type":["string","null"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["object","data","has_more","url"],"properties":{"data":{"type":"array","items":{"type":"object","required":["id","object","customer","status","current_period_start","current_period_end","cancel_at_period_end","metadata","created"],"properties":{"cancel_at":{"type":["integer","null"],"format":"int64"},"cancel_at_period_end":{"type":"boolean"},"canceled_at":{"type":["integer","null"],"format":"int64"},"created":{"type":"integer","format":"int64"},"current_period_end":{"type":"integer","format":"int64"},"current_period_start":{"type":"integer","format":"int64"},"customer":{"type":"string"},"customer_name":{"type":["string","null"]},"default_payment_method":{"type":["string","null"]},"discount":{"oneOf":[{"$ref":"#/components/schemas/DiscountResponseBody","description":"アクティブな割引。`build()` は常に `None` を返し、詳細系ハンドラが\n個別に埋める（webhook payload は同期構築のため常に `null` になる）。"},{"type":"null"}]},"id":{"type":"string"},"items":{"type":["array","null"],"items":{"$ref":"#/components/schemas/SubscriptionItemResponseBody"}},"latest_invoice":{"type":["string","null"]},"metadata":{"type":"object"},"object":{"type":"string"},"status":{"type":"string"},"trial_end":{"type":["integer","null"],"format":"int64"}}}},"has_more":{"type":"boolean"},"object":{"type":"string"},"url":{"type":"string"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]},"post":{"tags":["Subscriptions"],"operationId":"create_subscription","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSubscriptionRequest"}}},"required":true},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionResponseBody"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/subscriptions/{id}":{"get":{"tags":["Subscriptions"],"operationId":"get_subscription","parameters":[{"name":"id","in":"path","description":"Subscription ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionResponseBody"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]},"delete":{"tags":["Subscriptions"],"operationId":"cancel_subscription","parameters":[{"name":"id","in":"path","description":"Subscription ID","required":true,"schema":{"type":"string"}},{"name":"at_period_end","in":"query","required":false,"schema":{"type":["boolean","null"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionResponseBody"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]},"patch":{"tags":["Subscriptions"],"operationId":"update_subscription","parameters":[{"name":"id","in":"path","description":"Subscription ID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSubscriptionRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionResponseBody"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/subscriptions/{id}/discount":{"delete":{"tags":["Subscriptions"],"operationId":"delete_subscription_discount","parameters":[{"name":"id","in":"path","description":"Subscription ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletedDiscountResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/transfers":{"get":{"tags":["Transfers"],"operationId":"list_transfers","parameters":[{"name":"limit","in":"query","description":"Number of items to return (1-100, default 10)","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"starting_after","in":"query","description":"Cursor for forward pagination","required":false,"schema":{"type":"string"}},{"name":"transfer_id","in":"query","description":"Filter by transfer friendly ID","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["object","data","has_more","url"],"properties":{"data":{"type":"array","items":{"type":"object","required":["id","object","amount","amount_reversed","reversed","currency","destination","source_transaction","payment_intent","created"],"properties":{"amount":{"type":"integer","format":"int32","description":"分配額 (= 実売上額 - application_fee)。"},"amount_reversed":{"type":"integer","format":"int32","description":"refund 連動で戻された累計額。"},"created":{"type":"integer","format":"int64"},"currency":{"type":"string"},"destination":{"type":"string","description":"分配先の接続アカウント (friendly ID)。"},"id":{"type":"string"},"object":{"type":"string"},"payment_intent":{"type":"string","description":"元になった payment_intent (friendly ID)。HelloPay 拡張フィールド。"},"reversed":{"type":"boolean","description":"全額戻し済みかどうか (= `amount_reversed == amount`)。\n手数料が実売上額と同額の場合は分配額 0 のため作成時点で `true` になる。"},"source_transaction":{"type":"string","description":"元になった charge (friendly ID)。"}}}},"has_more":{"type":"boolean"},"object":{"type":"string"},"url":{"type":"string"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}},"/v1/transfers/summary":{"get":{"tags":["Transfers"],"operationId":"summarize_transfers","parameters":[{"name":"created_gte","in":"query","description":"Filter by created_at >= (Unix timestamp)","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"created_lte","in":"query","description":"Filter by created_at <= (Unix timestamp)","required":false,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferSummaryResponseBody"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"bearer_auth":[]}]}}},"components":{"schemas":{"Address":{"type":"object","description":"住所表現。","properties":{"city":{"type":["string","null"],"description":"市区町村。"},"country":{"type":["string","null"],"description":"ISO 3166-1 alpha-2 の国コード (例: \"JP\")。"},"line1":{"type":["string","null"],"description":"番地・建物名など (住所 1 行目)。"},"line2":{"type":["string","null"],"description":"部屋番号など (住所 2 行目)。"},"postal_code":{"type":["string","null"],"description":"郵便番号。"},"state":{"type":["string","null"],"description":"都道府県・州。"}}},"AmountDetailsParams":{"type":"object","description":"PaymentIntent 作成時に渡す `amount_details`。","properties":{"discount_amount":{"type":["integer","null"],"format":"int32","description":"取引全体の割引額 (最小通貨単位、正の整数)。指定時は\n`Sum(quantity × unit_amount) − discount_amount == amount` で検証する。\n`line_items` なしで `discount_amount` のみの指定はエラー。\n`discount_amount == 0` もエラー。","minimum":0},"line_items":{"type":["array","null"],"items":{"$ref":"#/components/schemas/CreatePaymentIntentLineItem"}}},"additionalProperties":false},"AmountDetailsResponse":{"type":"object","description":"請求明細の内訳。","required":["line_items"],"properties":{"discount_amount":{"type":["integer","null"],"format":"int32","description":"取引全体の割引額 (最小通貨単位)。未指定の既存決済では `null`。"},"line_items":{"type":"array","items":{"$ref":"#/components/schemas/LineItemResponse"}}}},"ApiErrorResponse":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/ErrorBody"}}},"ApplicationFeeSummaryResponseBody":{"type":"object","description":"手数料の期間集計レスポンス。金額は `i64` (集計により int32 を超えうる)。","required":["object","count","total_amount","total_refunded","net_amount","currency"],"properties":{"count":{"type":"integer","format":"int64","description":"集計対象の手数料件数。"},"currency":{"type":"string"},"net_amount":{"type":"integer","format":"int64","description":"実質手数料収益 (= `total_amount - total_refunded`)。"},"object":{"type":"string"},"total_amount":{"type":"integer","format":"int64","description":"手数料総額 (gross)。返金前の合計。"},"total_refunded":{"type":"integer","format":"int64","description":"refund 連動で返金された累計額の合計。"}}},"AttachPaymentMethodRequest":{"type":"object","required":["customer"],"properties":{"customer":{"type":"string"}}},"BankAccountResponseBody":{"type":"object","required":["id","object","bank_name","bank_code","branch_name","branch_code","account_type","account_holder_name","is_default","status","created_at"],"properties":{"account_holder_name":{"type":"string"},"account_number_last4":{"type":["string","null"],"description":"`null` when the stored number is 4 characters or fewer, where the \"last 4\"\nwould be the whole account number."},"account_type":{"type":"string"},"bank_code":{"type":"string"},"bank_name":{"type":"string"},"branch_code":{"type":"string"},"branch_name":{"type":"string"},"created_at":{"type":"integer","format":"int64"},"id":{"type":"string"},"is_default":{"type":"boolean"},"object":{"type":"string"},"status":{"$ref":"#/components/schemas/BankAccountStatus"}}},"BankAccountStatus":{"type":"string","enum":["active","inactive"]},"BillingDetails":{"type":"object","description":"請求先情報。`payment_methods.billing_details` /\n`cde.payment_tokens.billing_details` に JSONB としてそのまま保存される。","properties":{"address":{"oneOf":[{"$ref":"#/components/schemas/Address","description":"請求先住所。"},{"type":"null"}]},"email":{"type":["string","null"],"description":"請求先メールアドレス。"},"name":{"type":["string","null"],"description":"請求先の氏名 (フルネーム)。"},"phone":{"type":["string","null"],"description":"請求先電話番号。"}}},"CapturePaymentIntentRequest":{"type":"object","properties":{"amount_to_capture":{"type":["integer","null"],"format":"int32","minimum":0}},"additionalProperties":false},"CardPaymentMethodOptions":{"type":"object","properties":{"installments":{"oneOf":[{"$ref":"#/components/schemas/InstallmentsOptions"},{"type":"null"}]}},"additionalProperties":false},"CardResponse":{"type":"object","properties":{"brand":{"type":["string","null"]},"exp_month":{"type":["integer","null"],"format":"int32"},"exp_year":{"type":["integer","null"],"format":"int32"},"last4":{"type":["string","null"]}}},"ChargeCardResponse":{"type":"object","properties":{"brand":{"type":["string","null"]},"exp_month":{"type":["integer","null"],"format":"int32"},"exp_year":{"type":["integer","null"],"format":"int32"},"iin":{"type":["string","null"],"description":"カード番号の先頭桁（IIN）。16 桁のカードは先頭 8 桁、それ以外は先頭 6 桁。\n先頭桁を保持していないカード（この項目の提供を始める前に登録したカードなど）では null。","example":"42424242"},"last4":{"type":["string","null"]},"three_d_secure":{"oneOf":[{"$ref":"#/components/schemas/ThreeDSecureResponse"},{"type":"null"}]}}},"ChargeResponseBody":{"type":"object","required":["id","object","amount","amount_captured","amount_refunded","currency","status","captured","payment_intent","payment_method_details","created"],"properties":{"amount":{"type":"integer","format":"int32"},"amount_captured":{"type":"integer","format":"int32","description":"実際に売上計上（capture）された金額。capture 前は `0`。"},"amount_refunded":{"type":"integer","format":"int32"},"application_fee":{"type":["string","null"],"description":"capture 時に作成された application fee (friendly ID)。capture 前・通常決済では `null`。"},"application_fee_amount":{"type":["integer","null"],"format":"int32","description":"Destination 決済でプラットフォームが天引きする手数料額。通常決済では `null`。"},"captured":{"type":"boolean","description":"売上計上（capture）済みかどうか。与信のみ（capture 前）は `false`。"},"created":{"type":"integer","format":"int64"},"currency":{"type":"string"},"decline_code":{"type":["string","null"]},"failure_code":{"type":["string","null"]},"failure_message":{"type":["string","null"]},"id":{"type":"string"},"object":{"type":"string"},"payment_intent":{"type":"string"},"payment_method":{"type":["string","null"]},"payment_method_details":{"$ref":"#/components/schemas/PaymentMethodDetails"},"receipt_email":{"type":["string","null"]},"receipt_number":{"type":["string","null"]},"status":{"$ref":"#/components/schemas/ChargeStatus"},"transfer":{"type":["string","null"],"description":"capture 時に作成された transfer (friendly ID)。capture 前・通常決済では `null`。"},"transfer_data":{"oneOf":[{"$ref":"#/components/schemas/TransferDataResponse","description":"Destination 決済の分配設定。通常決済では `null`。"},{"type":"null"}]}}},"ChargeStatus":{"type":"string","description":"Charge ステータス。\n\nHelloPay はカード決済のみを扱うため、Stripe が非同期決済に用いる `pending` は返さない。\n与信のみ（capture 前）でも与信が成功していれば `succeeded` を返し、capture 済みかどうかは\n`captured` / `amount_captured` で判定する。","enum":["succeeded","failed"]},"ConnectedAccountBalanceResponse":{"type":"object","required":["object","available","currency"],"properties":{"available":{"type":"integer","format":"int64"},"currency":{"type":"string"},"object":{"type":"string"}}},"ConnectedAccountResponseBody":{"type":"object","required":["id","object","status","payout_cycle","created_at"],"properties":{"business_type":{"type":["string","null"],"description":"`corporation` / `sole_proprietor`。未設定なら `null`。"},"created_at":{"type":"integer","format":"int64"},"default_bank_account":{"type":["string","null"],"description":"この connected account の既定振込口座 (friendly ID)。未設定なら `null`。"},"display_name":{"type":["string","null"]},"id":{"type":"string"},"metadata":{"type":["object","null"]},"object":{"type":"string"},"payout_cycle":{"type":"string","description":"`monthly` / `weekly` / `daily`。"},"status":{"type":"string","description":"`pending` / `under_review` / `active` / `rejected` / `suspended`。"}}},"CouponResponseBody":{"type":"object","required":["id","object","duration","times_redeemed","valid","metadata","created"],"properties":{"amount_off":{"type":["integer","null"],"format":"int32"},"created":{"type":"integer","format":"int64"},"currency":{"type":["string","null"]},"duration":{"type":"string"},"duration_in_months":{"type":["integer","null"],"format":"int32"},"id":{"type":"string"},"max_redemptions":{"type":["integer","null"],"format":"int32"},"metadata":{"type":"object"},"name":{"type":["string","null"]},"object":{"type":"string"},"percent_off":{"type":["integer","null"],"format":"int32"},"times_redeemed":{"type":"integer","format":"int32"},"valid":{"type":"boolean"}}},"CreateBankAccountRequest":{"type":"object","required":["bank_name","bank_code","branch_name","branch_code","account_type","account_number","account_holder_name"],"properties":{"account_holder_name":{"type":"string"},"account_number":{"type":"string"},"account_type":{"type":"string"},"bank_code":{"type":"string"},"bank_name":{"type":"string"},"branch_code":{"type":"string"},"branch_name":{"type":"string"},"is_default":{"type":["boolean","null"]}}},"CreateConnectedAccountRequest":{"type":"object","properties":{"business_type":{"type":["string","null"],"description":"`corporation` / `sole_proprietor` (任意)。"},"display_name":{"type":["string","null"],"description":"接続アカウントの表示名 (任意)。"},"initialize_application":{"type":["boolean","null"],"description":"true (既定) の場合、作成と同時に加盟店調査 (application) の素体も作成する。"},"metadata":{"type":["object","null"]}}},"CreateCouponRequest":{"type":"object","required":["duration"],"properties":{"amount_off":{"type":["integer","null"],"format":"int32"},"currency":{"type":["string","null"]},"duration":{"type":"string","description":"\"once\" / \"repeating\" / \"forever\""},"duration_in_months":{"type":["integer","null"],"format":"int32"},"max_redemptions":{"type":["integer","null"],"format":"int32"},"metadata":{"type":["object","null"]},"name":{"type":["string","null"]},"percent_off":{"type":["integer","null"],"format":"int32"}}},"CreateCustomerRequest":{"type":"object","properties":{"email":{"type":["string","null"]},"metadata":{"type":["object","null"]},"name":{"type":["string","null"]},"payment_method":{"type":["string","null"]},"phone":{"type":["string","null"]}}},"CreatePaymentIntentLineItem":{"type":"object","description":"PaymentIntent 作成時に渡す 1 明細分のリクエスト。","required":["description","unit_amount","amount"],"properties":{"amount":{"type":"integer","format":"int32","description":"行の合計金額 (最小通貨単位)。`quantity * unit_amount` と一致する必要がある。","minimum":0},"description":{"type":"string","description":"品目名。"},"discount_amount":{"type":["integer","null"],"format":"int32","description":"行ごとの割引額 (最小通貨単位、正の整数)。指定時は\n`Sum(quantity × unit_amount − 行discount_amount) == amount` で検証する。\nトップレベルの `discount_amount` との同時指定はエラー。\n`discount_amount == 0` もエラー。","minimum":0},"metadata":{"description":"明細ごとのメタデータ。"},"quantity":{"type":"integer","format":"int32","description":"数量。省略時は 1。","minimum":0},"unit_amount":{"type":"integer","format":"int32","description":"単価 (最小通貨単位)。","minimum":0}},"additionalProperties":false},"CreatePaymentIntentRequest":{"type":"object","required":["amount"],"properties":{"amount":{"type":"integer","format":"int32","minimum":0},"amount_details":{"oneOf":[{"$ref":"#/components/schemas/AmountDetailsParams","description":"請求明細。指定すると明細合計が\n`amount` と一致することを検証する。"},{"type":"null"}]},"apple_pay_token":{"type":["string","null"]},"application_fee_amount":{"type":["integer","null"],"format":"int32","description":"Destination 決済の天引き手数料。未指定なら接続アカウントの既定料率で算出。"},"billing_details":{"oneOf":[{"$ref":"#/components/schemas/BillingDetails"},{"type":"null"}]},"customer":{"type":["string","null"]},"description":{"type":["string","null"]},"metadata":{},"off_session":{"type":["boolean","null"]},"payment_method":{"type":["string","null"]},"payment_method_options":{"oneOf":[{"$ref":"#/components/schemas/PaymentMethodOptions"},{"type":"null"}]},"receipt_email":{"type":["string","null"]},"require_3ds":{"type":["boolean","null"]},"return_url":{"type":["string","null"]},"setup_future_usage":{"type":["string","null"]},"transfer_data":{"oneOf":[{"$ref":"#/components/schemas/TransferDataParams","description":"Destination 決済の分配設定。未指定なら従来決済。"},{"type":"null"}]}}},"CreatePaymentMethodRequest":{"type":"object","required":["type","token"],"properties":{"token":{"type":"string"},"type":{"type":"string"}}},"CreatePreviewRequest":{"type":"object","required":["subscription"],"properties":{"subscription":{"type":"string"},"subscription_details":{"oneOf":[{"$ref":"#/components/schemas/PreviewSubscriptionDetails"},{"type":"null"}]}}},"CreatePriceRequest":{"type":"object","required":["product","unit_amount","currency","recurring"],"properties":{"currency":{"type":"string"},"metadata":{"type":["object","null"]},"name":{"type":["string","null"]},"product":{"type":"string"},"recurring":{"$ref":"#/components/schemas/RecurringInput"},"unit_amount":{"type":"integer","format":"int32"}}},"CreateProductRequest":{"type":"object","required":["name"],"properties":{"description":{"type":["string","null"]},"metadata":{"type":["object","null"]},"name":{"type":"string"}}},"CreatePromotionCodeRequest":{"type":"object","required":["coupon","code"],"properties":{"code":{"type":"string","description":"顧客が入力するコード文字列（プロジェクト・モード内で一意）"},"coupon":{"type":"string","description":"紐づける Coupon ID（`cpn_...`）"},"expires_at":{"type":["integer","null"],"format":"int64"},"max_redemptions":{"type":["integer","null"],"format":"int32"},"metadata":{"type":["object","null"]}}},"CreateRefundPayload":{"type":"object","required":["payment_intent"],"properties":{"amount":{"type":["integer","null"],"format":"int32","minimum":0},"payment_intent":{"type":"string"},"reason":{"type":["string","null"]}}},"CreateSetupIntentRequest":{"type":"object","required":["payment_method","customer"],"properties":{"customer":{"type":"string"},"description":{"type":["string","null"]},"metadata":{"type":["object","null"]},"payment_method":{"type":"string"},"require_3ds":{"type":["boolean","null"]},"return_url":{"type":["string","null"]}}},"CreateSubscriptionRequest":{"type":"object","required":["customer","items"],"properties":{"coupon":{"type":["string","null"],"description":"適用する Coupon ID（`cpn_...`）。promotion_code と同時指定不可。"},"customer":{"type":"string"},"default_payment_method":{"type":["string","null"]},"items":{"type":"array","items":{"$ref":"#/components/schemas/SubscriptionItemInput"}},"metadata":{"type":["object","null"]},"promotion_code":{"type":["string","null"],"description":"適用する Promotion Code ID（`promo_...`）。coupon と同時指定不可。"},"trial_end":{"type":["integer","null"],"format":"int64"}}},"CustomerResponseBody":{"type":"object","required":["id","object","name","created"],"properties":{"created":{"type":"integer","format":"int64"},"default_payment_method":{"type":["string","null"]},"email":{"type":["string","null"]},"id":{"type":"string"},"metadata":{"type":["object","null"]},"name":{"type":"string"},"object":{"type":"string"},"phone":{"type":["string","null"]}}},"DeletedBankAccountResponseBody":{"type":"object","required":["id","object","deleted"],"properties":{"deleted":{"type":"boolean"},"id":{"type":"string"},"object":{"type":"string"}}},"DeletedCouponResponse":{"type":"object","required":["id","object","deleted"],"properties":{"deleted":{"type":"boolean"},"id":{"type":"string"},"object":{"type":"string"}}},"DeletedCustomerResponse":{"type":"object","required":["id","object","deleted"],"properties":{"deleted":{"type":"boolean"},"id":{"type":"string"},"object":{"type":"string"}}},"DeletedDiscountResponse":{"type":"object","required":["id","object","deleted"],"properties":{"deleted":{"type":"boolean"},"id":{"type":"string"},"object":{"type":"string"}}},"DeletedIdentityPersonResponse":{"type":"object","required":["id","object","deleted"],"properties":{"deleted":{"type":"boolean"},"id":{"type":"string"},"object":{"type":"string"}}},"DiscountResponseBody":{"type":"object","required":["id","object","coupon","subscription","customer","start"],"properties":{"coupon":{"$ref":"#/components/schemas/CouponResponseBody"},"customer":{"type":"string"},"end":{"type":["integer","null"],"format":"int64"},"id":{"type":"string"},"object":{"type":"string"},"promotion_code":{"type":["string","null"]},"start":{"type":"integer","format":"int64"},"subscription":{"type":"string"}}},"DisputeEvidenceFileResponse":{"type":"object","required":["id","file_name","content_type","file_size","created_at"],"properties":{"content_type":{"type":"string"},"created_at":{"type":"integer","format":"int64"},"file_name":{"type":"string"},"file_size":{"type":"integer","format":"int32"},"id":{"type":"string"}}},"DisputeResponseBody":{"type":"object","required":["id","object","project_id","payment_intent","external_id","amount","fee","status","evidence_files","effective_at","created_at"],"properties":{"amount":{"type":"integer","format":"int32"},"created_at":{"type":"integer","format":"int64"},"effective_at":{"type":"integer","format":"int64"},"evidence_files":{"type":"array","items":{"$ref":"#/components/schemas/DisputeEvidenceFileResponse"}},"evidence_submitted_at":{"type":["integer","null"],"format":"int64"},"evidence_text":{"type":["string","null"]},"external_id":{"type":"string"},"fee":{"type":"integer","format":"int32"},"id":{"type":"string"},"object":{"type":"string"},"payment_intent":{"type":"string"},"project_id":{"type":"string"},"reason":{"type":["string","null"]},"resolved_at":{"type":["integer","null"],"format":"int64"},"resolved_effective_at":{"type":["integer","null"],"format":"int64"},"status":{"type":"string"}}},"ErrorBody":{"type":"object","required":["type","message"],"properties":{"code":{"oneOf":[{"$ref":"#/components/schemas/ErrorCode"},{"type":"null"}]},"decline_code":{"oneOf":[{"$ref":"#/components/schemas/ErrorCode","description":"For `card_error`, the granular decline reason (mirrors Stripe's\n`decline_code`). `code` stays the high-level `card_declined`."},{"type":"null"}]},"errors":{"type":["array","null"],"items":{"$ref":"#/components/schemas/FieldError"}},"message":{"type":"string"},"param":{"type":["string","null"]},"type":{"$ref":"#/components/schemas/ErrorType"}}},"ErrorCode":{"type":"string","enum":["parameter_missing","parameter_invalid","parameter_unknown","request_body_too_large","resource_missing","card_declined","insufficient_funds","expired_card","incorrect_cvc","incorrect_number","stolen_card","processing_error","authentication_required","charge_expired","refund_result_ambiguous","authorization_expired","capture_result_ambiguous","missing_token","invalid_token_format","invalid_api_key","api_key_revoked","project_not_active","project_deleted","ephemeral_key_read_only","idempotency_key_reused","brand_not_supported","rate_limit_exceeded"]},"ErrorType":{"type":"string","enum":["invalid_request_error","authentication_error","card_error","rate_limit_error","api_error"]},"EventDataBody":{"type":"object","required":["object"],"properties":{"object":{},"previous_attributes":{}}},"EventRequestBody":{"type":"object","properties":{"id":{"type":["string","null"]},"idempotency_key":{"type":["string","null"]}}},"EventResponseBody":{"type":"object","required":["id","object","type","created","api_version","data","request","pending_webhooks"],"properties":{"api_version":{"type":"string"},"created":{"type":"integer","format":"int64"},"data":{"$ref":"#/components/schemas/EventDataBody"},"id":{"type":"string"},"object":{"type":"string"},"pending_webhooks":{"type":"integer","format":"int64"},"request":{"$ref":"#/components/schemas/EventRequestBody"},"type":{"type":"string"}}},"FieldError":{"type":"object","required":["field","message"],"properties":{"field":{"type":"string"},"message":{"type":"string"}}},"IdentityAddress":{"type":"object","description":"住所 (Stripe の `address_kanji` / `address_kana` hash 相当)。","properties":{"city":{"type":["string","null"],"description":"市区町村。"},"line1":{"type":["string","null"],"description":"番地等。"},"line2":{"type":["string","null"],"description":"建物・部屋番号等。"},"postal_code":{"type":["string","null"],"description":"郵便番号 (ハイフンなし 7 桁)。"},"state":{"type":["string","null"],"description":"都道府県。"},"town":{"type":["string","null"],"description":"町名。"}}},"IdentityBusinessProfile":{"type":"object","description":"事業プロファイル (Stripe の `business_profile` hash + 独自拡張)。","properties":{"mcc":{"type":["string","null"],"description":"業種 (MCC)。"},"product_description":{"type":["string","null"],"description":"事業・商材の説明。"},"transaction_purpose":{"type":["string","null"],"description":"取引を行う目的 (Stripe 拡張フィールド)。"},"url":{"type":["string","null"],"description":"事業/サイト URL。"}}},"IdentityCompany":{"type":"object","description":"法人の本人特定事項 (Stripe の `company` hash 相当)。","properties":{"address_kana":{"oneOf":[{"$ref":"#/components/schemas/IdentityAddress"},{"type":"null"}]},"address_kanji":{"oneOf":[{"$ref":"#/components/schemas/IdentityAddress"},{"type":"null"}]},"name":{"type":["string","null"]},"name_kana":{"type":["string","null"]},"name_kanji":{"type":["string","null"]},"phone":{"type":["string","null"]},"tax_id":{"type":["string","null"],"description":"法人番号 (13 桁)。"}}},"IdentityDob":{"type":"object","description":"生年月日 (Stripe の `dob` hash 相当)。","properties":{"day":{"type":["integer","null"],"format":"int32"},"month":{"type":["integer","null"],"format":"int32"},"year":{"type":["integer","null"],"format":"int32"}}},"IdentityIndividual":{"type":"object","description":"個人 (自然人) の本人特定事項 (Stripe の `individual` hash 相当)。","properties":{"address_kana":{"oneOf":[{"$ref":"#/components/schemas/IdentityAddress"},{"type":"null"}]},"address_kanji":{"oneOf":[{"$ref":"#/components/schemas/IdentityAddress"},{"type":"null"}]},"dob":{"oneOf":[{"$ref":"#/components/schemas/IdentityDob"},{"type":"null"}]},"email":{"type":["string","null"]},"first_name":{"type":["string","null"]},"first_name_kana":{"type":["string","null"]},"first_name_kanji":{"type":["string","null"]},"last_name":{"type":["string","null"]},"last_name_kana":{"type":["string","null"]},"last_name_kanji":{"type":["string","null"]},"occupation":{"type":["string","null"],"description":"職業 (Stripe 拡張フィールド)。"},"phone":{"type":["string","null"]}}},"IdentityOwnershipDeclarationBody":{"type":"object","description":"`ownership_declaration` hash (Stripe 準拠)。","required":["date"],"properties":{"date":{"type":"integer","format":"int64"}}},"IdentityPersonRelationshipBody":{"type":"object","description":"person の `relationship` hash (Stripe 準拠)。","required":["representative","owner","percent_ownership_over_25"],"properties":{"owner":{"type":"boolean"},"percent_ownership_over_25":{"type":"boolean","description":"議決権比率が 25% を超えるか。"},"representative":{"type":"boolean"},"title":{"type":["string","null"],"description":"役職。"}}},"IdentityPersonRelationshipRequest":{"type":"object","properties":{"owner":{"type":["boolean","null"],"description":"実質的支配者か。"},"percent_ownership_over_25":{"type":["boolean","null"],"description":"議決権比率が 25% を超えるか。"},"representative":{"type":["boolean","null"],"description":"取引担当者 (実際に取引を行う自然人) か。"},"title":{"type":["string","null"],"description":"役職。"}}},"IdentityPersonResponseBody":{"type":"object","required":["id","object","relationship","created_at"],"properties":{"address_kana":{"oneOf":[{"$ref":"#/components/schemas/IdentityAddress"},{"type":"null"}]},"address_kanji":{"oneOf":[{"$ref":"#/components/schemas/IdentityAddress"},{"type":"null"}]},"created_at":{"type":"integer","format":"int64"},"dob":{"oneOf":[{"$ref":"#/components/schemas/IdentityDob"},{"type":"null"}]},"email":{"type":["string","null"]},"first_name":{"type":["string","null"]},"first_name_kana":{"type":["string","null"]},"first_name_kanji":{"type":["string","null"]},"id":{"type":"string"},"last_name":{"type":["string","null"]},"last_name_kana":{"type":["string","null"]},"last_name_kanji":{"type":["string","null"]},"object":{"type":"string"},"phone":{"type":["string","null"]},"relationship":{"$ref":"#/components/schemas/IdentityPersonRelationshipBody"}}},"IdentityTosAcceptanceBody":{"type":"object","description":"`tos_acceptance` hash (Stripe 準拠)。","required":["date"],"properties":{"date":{"type":"integer","format":"int64"},"ip":{"type":["string","null"]}}},"IdentityVerificationResponseBody":{"type":"object","required":["object","connected_account","business_type","status","persons","created_at"],"properties":{"business_profile":{"oneOf":[{"$ref":"#/components/schemas/IdentityBusinessProfile"},{"type":"null"}]},"business_type":{"type":"string","description":"`company` / `individual`。"},"company":{"oneOf":[{"$ref":"#/components/schemas/IdentityCompany"},{"type":"null"}]},"connected_account":{"type":"string","description":"対象の接続アカウント (friendly ID)。"},"created_at":{"type":"integer","format":"int64"},"individual":{"oneOf":[{"$ref":"#/components/schemas/IdentityIndividual"},{"type":"null"}]},"object":{"type":"string"},"ownership_declaration":{"oneOf":[{"$ref":"#/components/schemas/IdentityOwnershipDeclarationBody"},{"type":"null"}]},"ownership_exemption_reason":{"type":["string","null"],"description":"実質的支配者を登録しない例外事由 (上場会社等)。"},"persons":{"type":"array","items":{"$ref":"#/components/schemas/IdentityPersonResponseBody"}},"status":{"type":"string","description":"`draft` / `submitted`。"},"submitted_at":{"type":["integer","null"],"format":"int64"},"tos_acceptance":{"oneOf":[{"$ref":"#/components/schemas/IdentityTosAcceptanceBody"},{"type":"null"}]}}},"InstallmentPlan":{"type":"object","description":"分割払いプラン。Stripe の `installments.plan` に準拠する。\n\n- `type = \"fixed_count\"`: `count` 回の分割払い (`interval` は `\"month\"` のみ)\n- `type = \"bonus\"`: ボーナス一括払い\n- `type = \"revolving\"`: リボルビング払い","required":["type"],"properties":{"count":{"type":["integer","null"],"format":"int32","minimum":0},"interval":{"type":["string","null"]},"type":{"type":"string"}},"additionalProperties":false},"InstallmentsOptions":{"type":"object","properties":{"plan":{"oneOf":[{"$ref":"#/components/schemas/InstallmentPlan","description":"分割プラン。`null` を明示すると 1回払いとして扱う。"},{"type":"null"}]}},"additionalProperties":false},"InvoiceLineItemResponseBody":{"type":"object","description":"A single invoice line. Normal debits expose their gross amount and discount;\nproration adjustments carry a signed `amount` that is already net of any\ndiscount (`discountable = false`).","required":["id","object","invoice","amount","discount_amount","line_type","discountable","created"],"properties":{"amount":{"type":"integer","format":"int32","description":"Signed amount. Negative for unused-time credits, positive for new charges."},"created":{"type":"integer","format":"int64"},"currency":{"type":["string","null"]},"description":{"type":["string","null"]},"discount_amount":{"type":"integer","format":"int32"},"discountable":{"type":"boolean"},"id":{"type":"string"},"invoice":{"type":"string"},"line_type":{"type":"string","description":"`normal` or `proration`."},"object":{"type":"string"},"original_line_item":{"type":["string","null"],"description":"Source invoice line of a proration credit, when known."},"period_end":{"type":["integer","null"],"format":"int64"},"period_start":{"type":["integer","null"],"format":"int64"},"price":{"type":["string","null"]},"price_name":{"type":["string","null"]},"product_name":{"type":["string","null"]},"proration_date":{"type":["integer","null"],"format":"int64"},"quantity":{"type":["integer","null"],"format":"int32"},"subscription_item":{"type":["string","null"]},"unit_amount":{"type":["integer","null"],"format":"int32"}}},"InvoicePreviewLineResponseBody":{"type":"object","required":["object","subscription_item","price","product_name","quantity","unit_amount","amount","discount_amount","line_type","discountable","period_start","period_end"],"properties":{"amount":{"type":"integer","format":"int32","description":"Signed amount. Negative for unused-time credits, positive for new charges."},"description":{"type":["string","null"]},"discount_amount":{"type":"integer","format":"int32"},"discountable":{"type":"boolean"},"line_type":{"type":"string","description":"`normal` or `proration`."},"object":{"type":"string"},"original_line_item":{"type":["string","null"]},"period_end":{"type":"integer","format":"int64"},"period_start":{"type":"integer","format":"int64"},"price":{"type":"string"},"price_name":{"type":["string","null"]},"product_name":{"type":"string"},"proration_date":{"type":["integer","null"],"format":"int64"},"quantity":{"type":"integer","format":"int32"},"subscription_item":{"type":"string"},"unit_amount":{"type":"integer","format":"int32"}}},"InvoicePreviewResponseBody":{"type":"object","required":["object","subscription","currency","proration_behavior","proration_date","subtotal","discount_amount","adjustment_amount","total","starting_balance","ending_balance","amount_due","lines","preview_token"],"properties":{"adjustment_amount":{"type":"integer","format":"int32","description":"Sum of the signed proration adjustments."},"amount_due":{"type":"integer","format":"int32"},"currency":{"type":"string"},"discount_amount":{"type":"integer","format":"int32","description":"Discount on the normal lines only; proration lines are already net."},"ending_balance":{"type":"integer","format":"int32"},"lines":{"type":"array","items":{"$ref":"#/components/schemas/InvoicePreviewLineResponseBody"}},"object":{"type":"string"},"preview_token":{"type":"string","description":"Opaque token to pass back on the dashboard update so a stale preview is\nrejected. Public API callers may ignore it."},"proration_behavior":{"type":"string","description":"`create_prorations`, `always_invoice`, or `none`."},"proration_date":{"type":"integer","format":"int64"},"starting_balance":{"type":"integer","format":"int32"},"subscription":{"type":"string"},"subtotal":{"type":"integer","format":"int32","description":"Sum of the next period's normal lines before discounts."},"total":{"type":"integer","format":"int32","description":"`subtotal - discount_amount + adjustment_amount`."}}},"InvoiceResponseBody":{"type":"object","required":["id","object","customer","status","amount_due","subtotal","discount_amount","starting_balance","ending_balance","currency","period_start","period_end","metadata","created"],"properties":{"amount_due":{"type":"integer","format":"int32"},"created":{"type":"integer","format":"int64"},"currency":{"type":"string"},"customer":{"type":"string"},"discount_amount":{"type":"integer","format":"int32"},"ending_balance":{"type":"integer","format":"int32","description":"Customer balance after this invoice was finalized (`<= 0`)."},"id":{"type":"string"},"lines":{"type":["array","null"],"items":{"$ref":"#/components/schemas/InvoiceLineItemResponseBody"},"description":"Line-item breakdown. Detail responses contain the array; list responses return null."},"metadata":{"type":"object"},"object":{"type":"string"},"payment_intent":{"type":["string","null"]},"period_end":{"type":"integer","format":"int64"},"period_start":{"type":"integer","format":"int64"},"starting_balance":{"type":"integer","format":"int32","description":"Customer balance just before this invoice was finalized (`<= 0`)."},"status":{"type":"string"},"subscription":{"type":["string","null"]},"subtotal":{"type":"integer","format":"int32"},"total":{"type":["integer","null"],"format":"int32","description":"Signed total before the customer balance is applied. `null` for invoices\ncreated before the adjustment columns existed (then `amount_due` is\n`subtotal - discount_amount`)."}}},"LineItemResponse":{"type":"object","description":"請求明細 1 件の公開ビュー。","required":["description","quantity","unit_amount","amount","metadata"],"properties":{"amount":{"type":"integer","format":"int32"},"description":{"type":"string"},"discount_amount":{"type":["integer","null"],"format":"int32","description":"行ごとの割引額 (最小通貨単位)。NULL = 割引なし。"},"metadata":{"type":"object"},"quantity":{"type":"integer","format":"int32"},"unit_amount":{"type":"integer","format":"int32"}}},"NextActionResponse":{"type":"object","required":["type","redirect_to_url"],"properties":{"redirect_to_url":{"$ref":"#/components/schemas/RedirectToUrlResponse"},"type":{"type":"string"}}},"PayInvoiceRequest":{"type":"object","properties":{"payment_method":{"type":["string","null"]}}},"PaymentIntentResponseBody":{"type":"object","required":["id","object","amount","currency","status","amount_refunded","metadata","created"],"properties":{"amount":{"type":"integer","format":"int32"},"amount_details":{"oneOf":[{"$ref":"#/components/schemas/AmountDetailsResponse","description":"請求明細。明細が無い場合は省略される。"},{"type":"null"}]},"amount_received":{"type":["integer","null"],"format":"int32"},"amount_refunded":{"type":"integer","format":"int32"},"application_fee_amount":{"type":["integer","null"],"format":"int32","description":"Destination 決済でプラットフォームが天引きする手数料額。通常決済では `null`。"},"canceled_at":{"type":["integer","null"],"format":"int64"},"captured_at":{"type":["integer","null"],"format":"int64"},"created":{"type":"integer","format":"int64"},"currency":{"type":"string"},"customer":{"type":["string","null"]},"customer_phone":{"type":["string","null"],"description":"決済リンクで購入者が入力した連絡先電話番号。新規入力は検証済み E.164 形式。未入力は null。"},"description":{"type":["string","null"]},"id":{"type":"string"},"latest_charge":{"oneOf":[{"$ref":"#/components/schemas/ChargeResponseBody"},{"type":"null"}]},"metadata":{"type":"object"},"next_action":{"oneOf":[{"$ref":"#/components/schemas/NextActionResponse"},{"type":"null"}]},"object":{"type":"string"},"payment_method":{"type":["string","null"]},"payment_method_options":{"oneOf":[{"$ref":"#/components/schemas/PaymentMethodOptions","description":"分割払いなどの支払オプション。1回払いの場合は省略される。"},{"type":"null"}]},"receipt_email":{"type":["string","null"]},"receipt_name":{"type":["string","null"]},"setup_future_usage":{"type":["string","null"]},"status":{"$ref":"#/components/schemas/PaymentIntentStatus"},"three_ds_sessions":{"type":"array","items":{"$ref":"#/components/schemas/ThreeDSSessionResponse"},"description":"この Payment Intent に紐づく 3D セキュア認証セッションの一覧。\n失敗・期限切れを含む全試行を作成日時の昇順で返す。試行が無い場合は省略される。"},"transfer_data":{"oneOf":[{"$ref":"#/components/schemas/TransferDataResponse","description":"Destination 決済の分配設定。通常決済では `null`。"},{"type":"null"}]}}},"PaymentIntentStatus":{"type":"string","enum":["requires_payment_method","requires_confirmation","requires_action","processing","requires_capture","canceled","succeeded"]},"PaymentMethodDetails":{"type":"object","required":["type","card"],"properties":{"card":{"$ref":"#/components/schemas/ChargeCardResponse"},"type":{"type":"string"}}},"PaymentMethodOptions":{"type":"object","description":"支払い方法のオプション。現状は card のみサポートする。","properties":{"card":{"oneOf":[{"$ref":"#/components/schemas/CardPaymentMethodOptions"},{"type":"null"}]}},"additionalProperties":false},"PaymentMethodResponseBody":{"type":"object","required":["id","object","type","created"],"properties":{"billing_details":{"oneOf":[{"$ref":"#/components/schemas/BillingDetails"},{"type":"null"}]},"card":{"oneOf":[{"$ref":"#/components/schemas/CardResponse"},{"type":"null"}]},"created":{"type":"integer","format":"int64"},"customer":{"type":["string","null"]},"id":{"type":"string"},"object":{"type":"string"},"type":{"type":"string"}}},"PayoutAdjustmentResponseBody":{"type":"object","description":"入金明細に 1 行ずつ表示する調整項目。","required":["id","object","type","amount","amount_excluding_tax","tax_amount","tax_rate","description","created_at"],"properties":{"amount":{"type":"integer","format":"int32","description":"符号付き・税込。負 = 入金から差し引く、正 = 入金に加算する。"},"amount_excluding_tax":{"type":"integer","format":"int32"},"created_at":{"type":"integer","format":"int64"},"description":{"type":"string","description":"加盟店に見せる調整の理由。"},"id":{"type":"string"},"object":{"type":"string"},"tax_amount":{"type":"integer","format":"int32"},"tax_rate":{"type":"integer","format":"int32"},"type":{"type":"string","description":"`processing_fee` / `plan_fee` / `transfer_fee` / `compensation`"}}},"PayoutResponseBody":{"type":"object","required":["id","object","status","start_date","end_date","gross_amount","refunds_amount","disputes_amount","fees_amount","plan_fee_amount","transfer_fee","reserve_amount","reserve_release_amount","adjustments_amount","net_amount","currency","metadata","created_at","adjustments"],"properties":{"adjustments":{"type":"array","items":{"$ref":"#/components/schemas/PayoutAdjustmentResponseBody"},"description":"この入金で精算した調整項目 (繰越チェーン全体の累積)。"},"adjustments_amount":{"type":"integer","format":"int32","description":"繰越チェーンで精算した調整の累積合計 (符号付き・税込)。`adjustments` の合計と一致する。"},"bank_account_id":{"type":["string","null"]},"created_at":{"type":"integer","format":"int64"},"currency":{"type":"string"},"disputes_amount":{"type":"integer","format":"int32"},"end_date":{"type":"string"},"fees_amount":{"type":"integer","format":"int32"},"gross_amount":{"type":"integer","format":"int32"},"id":{"type":"string"},"metadata":{},"net_amount":{"type":"integer","format":"int32"},"object":{"type":"string"},"paid_at":{"type":["integer","null"],"format":"int64"},"plan_fee_amount":{"type":"integer","format":"int32"},"refunds_amount":{"type":"integer","format":"int32"},"reserve_amount":{"type":"integer","format":"int32"},"reserve_release_amount":{"type":"integer","format":"int32"},"scheduled_date":{"type":["string","null"]},"start_date":{"type":"string"},"status":{"type":"string"},"transfer_fee":{"type":"integer","format":"int32"}}},"PreviewSubscriptionDetails":{"type":"object","properties":{"items":{"type":["array","null"],"items":{"$ref":"#/components/schemas/PreviewSubscriptionItemInput"}},"proration_behavior":{"type":["string","null"]},"proration_date":{"type":["integer","null"],"format":"int64"}}},"PreviewSubscriptionItemInput":{"type":"object","required":["id"],"properties":{"id":{"type":"string"},"price":{"type":["string","null"]},"quantity":{"type":["integer","null"],"format":"int32"}}},"PriceRecurring":{"type":"object","required":["interval","interval_count"],"properties":{"interval":{"type":"string"},"interval_count":{"type":"integer","format":"int32"}}},"PriceResponseBody":{"type":"object","required":["id","object","product","unit_amount","currency","recurring","metadata","created","updated"],"properties":{"created":{"type":"integer","format":"int64"},"currency":{"type":"string"},"id":{"type":"string"},"metadata":{"type":"object"},"name":{"type":["string","null"]},"object":{"type":"string"},"product":{"type":"string"},"recurring":{"$ref":"#/components/schemas/PriceRecurring"},"unit_amount":{"type":"integer","format":"int32"},"updated":{"type":"integer","format":"int64"}}},"ProductResponseBody":{"type":"object","required":["id","object","name","metadata","created","updated"],"properties":{"created":{"type":"integer","format":"int64"},"description":{"type":["string","null"]},"id":{"type":"string"},"metadata":{"type":"object"},"name":{"type":"string"},"object":{"type":"string"},"updated":{"type":"integer","format":"int64"}}},"PromotionCodeResponseBody":{"type":"object","required":["id","object","code","coupon","active","times_redeemed","metadata","created"],"properties":{"active":{"type":"boolean"},"code":{"type":"string"},"coupon":{"$ref":"#/components/schemas/CouponResponseBody"},"created":{"type":"integer","format":"int64"},"expires_at":{"type":["integer","null"],"format":"int64"},"id":{"type":"string"},"max_redemptions":{"type":["integer","null"],"format":"int32"},"metadata":{"type":"object"},"object":{"type":"string"},"times_redeemed":{"type":"integer","format":"int32"}}},"RecurringInput":{"type":"object","required":["interval"],"properties":{"interval":{"type":"string"},"interval_count":{"type":"integer","format":"int32"}}},"RedirectToUrlResponse":{"type":"object","required":["url","return_url"],"properties":{"return_url":{"type":"string"},"url":{"type":"string"}}},"RefundResponseBody":{"type":"object","required":["id","object","amount","currency","payment_intent","status","created_at"],"properties":{"amount":{"type":"integer","format":"int32"},"created_at":{"type":"integer","format":"int64"},"currency":{"type":"string"},"id":{"type":"string"},"object":{"type":"string"},"payment_intent":{"type":"string"},"reason":{"type":["string","null"]},"status":{"$ref":"#/components/schemas/RefundStatus"}}},"RefundStatus":{"type":"string","enum":["pending","succeeded","failed"]},"SaveIdentityPersonRequest":{"type":"object","properties":{"address_kana":{"oneOf":[{"$ref":"#/components/schemas/IdentityAddress"},{"type":"null"}]},"address_kanji":{"oneOf":[{"$ref":"#/components/schemas/IdentityAddress"},{"type":"null"}]},"dob":{"oneOf":[{"$ref":"#/components/schemas/IdentityDob"},{"type":"null"}]},"email":{"type":["string","null"]},"first_name":{"type":["string","null"]},"first_name_kana":{"type":["string","null"]},"first_name_kanji":{"type":["string","null"]},"last_name":{"type":["string","null"]},"last_name_kana":{"type":["string","null"]},"last_name_kanji":{"type":["string","null"]},"phone":{"type":["string","null"]},"relationship":{"oneOf":[{"$ref":"#/components/schemas/IdentityPersonRelationshipRequest","description":"関係性。representative か owner のいずれかが true であること。"},{"type":"null"}]}}},"SendReceiptRequest":{"type":"object","required":["email"],"properties":{"email":{"type":"string","description":"Email address to send the receipt to."}}},"SetupIntentResponseBody":{"type":"object","required":["id","object","status","metadata","created"],"properties":{"canceled_at":{"type":["integer","null"],"format":"int64"},"created":{"type":"integer","format":"int64"},"customer":{"type":["string","null"]},"description":{"type":["string","null"]},"id":{"type":"string"},"metadata":{"type":"object"},"next_action":{"oneOf":[{"$ref":"#/components/schemas/NextActionResponse"},{"type":"null"}]},"object":{"type":"string"},"payment_method":{"type":["string","null"]},"status":{"$ref":"#/components/schemas/SetupIntentStatusResponse"}}},"SetupIntentStatus":{"type":"string","description":"OpenAPI スキーマ用の Setup Intent ステータス列挙型。\nハンドラーのクエリパラメータ型定義には使わず、`#[utoipa::path]` の params 注釈のみで参照する。\nPayment Intent と異なり `requires_capture` は存在しない (与信・売上計上を伴わないため)。","enum":["requires_payment_method","requires_confirmation","requires_action","processing","succeeded","canceled"]},"SetupIntentStatusResponse":{"type":"string","enum":["requires_payment_method","requires_confirmation","requires_action","processing","canceled","succeeded"]},"SubmitIdentityVerificationRequest":{"type":"object","properties":{"tos_shown_and_accepted":{"type":["boolean","null"],"description":"利用規約と本人確認事項への同意。`true` 必須。"}}},"SubscriptionItemInput":{"type":"object","required":["price"],"properties":{"price":{"type":"string"},"quantity":{"type":["integer","null"],"format":"int32"}}},"SubscriptionItemResponseBody":{"type":"object","required":["id","object","subscription","price","quantity","metadata","created"],"properties":{"created":{"type":"integer","format":"int64"},"id":{"type":"string"},"metadata":{"type":"object"},"object":{"type":"string"},"price":{"type":"string"},"quantity":{"type":"integer","format":"int32"},"subscription":{"type":"string"}}},"SubscriptionResponseBody":{"type":"object","required":["id","object","customer","status","current_period_start","current_period_end","cancel_at_period_end","metadata","created"],"properties":{"cancel_at":{"type":["integer","null"],"format":"int64"},"cancel_at_period_end":{"type":"boolean"},"canceled_at":{"type":["integer","null"],"format":"int64"},"created":{"type":"integer","format":"int64"},"current_period_end":{"type":"integer","format":"int64"},"current_period_start":{"type":"integer","format":"int64"},"customer":{"type":"string"},"customer_name":{"type":["string","null"]},"default_payment_method":{"type":["string","null"]},"discount":{"oneOf":[{"$ref":"#/components/schemas/DiscountResponseBody","description":"アクティブな割引。`build()` は常に `None` を返し、詳細系ハンドラが\n個別に埋める（webhook payload は同期構築のため常に `null` になる）。"},{"type":"null"}]},"id":{"type":"string"},"items":{"type":["array","null"],"items":{"$ref":"#/components/schemas/SubscriptionItemResponseBody"}},"latest_invoice":{"type":["string","null"]},"metadata":{"type":"object"},"object":{"type":"string"},"status":{"type":"string"},"trial_end":{"type":["integer","null"],"format":"int64"}}},"ThreeDSSessionResponse":{"type":"object","description":"3D セキュア認証セッション 1 件分の公開ビュー。\n\nmerchant のダッシュボードで認証試行のタイムラインを表示するための、\n機微情報を含まない安全なサブセット。CAVV や会員クレデンシャル等の\n内部フィールドは公開しない。","required":["id","status","created"],"properties":{"created":{"type":"integer","format":"int64","description":"セッション作成時刻 (Unix epoch 秒)。"},"electronic_commerce_indicator":{"type":["string","null"],"description":"Electronic Commerce Indicator (ECI)。"},"id":{"type":"string","description":"3DS セッション ID。"},"status":{"type":"string","description":"認証ステータス: `pending` / `processing` / `completed` / `failed` / `expired`。"},"transaction_status":{"type":["string","null"],"description":"3DS 取引ステータス (transStatus): `Y`/`N`/`U`/`A`/`R`/`C` 等。"},"version":{"type":["string","null"],"description":"3DS メッセージバージョン。"}}},"ThreeDSecureResponse":{"type":"object","properties":{"authentication_flow":{"type":["string","null"]},"electronic_commerce_indicator":{"type":["string","null"]},"result":{"type":["string","null"]},"transaction_id":{"type":["string","null"]},"version":{"type":["string","null"]}}},"TransferDataParams":{"type":"object","description":"`transfer_data`。Destination 決済の分配先を指定する。","required":["destination"],"properties":{"destination":{"type":"string","description":"分配先の接続アカウント (friendly ID)。"}},"additionalProperties":false},"TransferDataResponse":{"type":"object","description":"`transfer_data`。Destination 決済の分配設定。通常決済では `null`。","required":["destination"],"properties":{"destination":{"type":"string","description":"分配先の接続アカウント (friendly ID)。"}}},"TransferSummaryResponseBody":{"type":"object","description":"分配の期間集計レスポンス。金額は `i64` (集計により int32 を超えうる)。","required":["object","count","total_amount","total_reversed","net_amount","currency"],"properties":{"count":{"type":"integer","format":"int64","description":"集計対象の分配件数。"},"currency":{"type":"string"},"net_amount":{"type":"integer","format":"int64","description":"実質分配額 (= `total_amount - total_reversed`)。"},"object":{"type":"string"},"total_amount":{"type":"integer","format":"int64","description":"分配総額 (gross)。戻し前の合計。"},"total_reversed":{"type":"integer","format":"int64","description":"refund 連動で戻された累計額の合計。"}}},"UpdateBankAccountRequest":{"type":"object","properties":{"account_holder_name":{"type":["string","null"]},"account_number":{"type":["string","null"]},"account_type":{"type":["string","null"]},"bank_code":{"type":["string","null"]},"bank_name":{"type":["string","null"]},"branch_code":{"type":["string","null"]},"branch_name":{"type":["string","null"]},"is_default":{"type":["boolean","null"]}}},"UpdateConnectedAccountBankAccountRequest":{"type":"object","properties":{"account_holder_name":{"type":["string","null"]},"account_number":{"type":["string","null"]},"account_type":{"type":["string","null"]},"bank_code":{"type":["string","null"]},"bank_name":{"type":["string","null"]},"branch_code":{"type":["string","null"]},"branch_name":{"type":["string","null"]},"status":{"oneOf":[{"$ref":"#/components/schemas/BankAccountStatus","description":"既定口座は先に既定解除しなければ inactive にできない。"},{"type":"null"}]}}},"UpdateConnectedAccountRequest":{"type":"object","properties":{"business_type":{"type":["string","null"],"description":"`corporation` / `sole_proprietor`。`null` で未設定に戻す。"},"default_bank_account":{"type":["string","null"],"description":"既定振込口座の friendly ID (`ba_...`)。`null` で解除する。"},"display_name":{"type":["string","null"]},"metadata":{"type":["object","null"]}}},"UpdateCouponRequest":{"type":"object","properties":{"metadata":{"type":["object","null"]},"name":{"type":["string","null"]}}},"UpdateCustomerRequest":{"type":"object","properties":{"default_payment_method":{"type":["string","null"]},"email":{"type":["string","null"]},"metadata":{"type":["object","null"]},"name":{"type":["string","null"]},"phone":{"type":["string","null"]}}},"UpdateIdentityVerificationRequest":{"type":"object","properties":{"business_profile":{"oneOf":[{"$ref":"#/components/schemas/IdentityBusinessProfile","description":"事業プロファイル。指定した場合は hash 全体を置き換える。"},{"type":"null"}]},"company":{"oneOf":[{"$ref":"#/components/schemas/IdentityCompany","description":"法人の本人特定事項。指定した場合は hash 全体を置き換える。"},{"type":"null"}]},"individual":{"oneOf":[{"$ref":"#/components/schemas/IdentityIndividual","description":"個人 (自然人) の本人特定事項。指定した場合は hash 全体を置き換える。"},{"type":"null"}]},"ownership_exemption_reason":{"type":["string","null"],"description":"実質的支配者を登録しない例外事由 (上場会社等)。`null` でクリア。"}}},"UpdatePaymentIntentRequest":{"type":"object","properties":{"amount":{"type":["integer","null"],"format":"int32","minimum":0},"description":{"type":["string","null"]},"metadata":{"type":["object","null"]},"payment_method":{"type":["string","null"]},"payment_method_options":{"oneOf":[{"$ref":"#/components/schemas/PaymentMethodOptions"},{"type":"null"}]}}},"UpdatePriceRequest":{"type":"object","properties":{"metadata":{"type":["object","null"]},"name":{"type":["string","null"]}}},"UpdateProductRequest":{"type":"object","properties":{"description":{"type":["string","null"]},"metadata":{"type":["object","null"]},"name":{"type":["string","null"]}}},"UpdatePromotionCodeRequest":{"type":"object","properties":{"active":{"type":["boolean","null"]},"metadata":{"type":["object","null"]}}},"UpdateSetupIntentRequest":{"type":"object","properties":{"description":{"type":["string","null"]},"metadata":{"type":["object","null"]}}},"UpdateSubscriptionItemInput":{"type":"object","required":["id"],"properties":{"id":{"type":"string"},"price":{"type":["string","null"],"description":"変更先の Price ID（`price_...`）。省略時は現在の Price を維持する。"},"quantity":{"type":["integer","null"],"format":"int32","description":"数量。Price を変更して省略すると 1 になる。数量のみの変更も日割り対象。"}}},"UpdateSubscriptionRequest":{"type":"object","properties":{"cancel_at":{"type":["integer","null"],"format":"int64","description":"解約予約日時（Unix timestamp）。指定時刻の到来後に請求 cron が解約を\n確定する。`null` を渡すと予約を解除する。cancel_at_period_end と排他。"},"cancel_at_period_end":{"type":["boolean","null"]},"coupon":{"type":["string","null"],"description":"適用する Coupon ID（`cpn_...`）。次回請求から適用される。"},"default_payment_method":{"type":["string","null"]},"items":{"type":["array","null"],"items":{"$ref":"#/components/schemas/UpdateSubscriptionItemInput"}},"metadata":{"type":["object","null"]},"payment_behavior":{"type":["string","null"],"description":"即時請求時の支払い挙動。初期対応は `allow_incomplete` のみ。"},"promotion_code":{"type":["string","null"],"description":"適用する Promotion Code ID（`promo_...`）。次回請求から適用される。"},"proration_behavior":{"type":["string","null"],"description":"日割りの方式。`create_prorations`（既定）、`always_invoice`、`none`。"},"proration_date":{"type":["integer","null"],"format":"int64","description":"日割りの計算基準（Unix timestamp 秒）。省略時は更新時刻。`none` とは併用不可。"}}}},"securitySchemes":{"bearer_auth":{"type":"http","scheme":"bearer","bearerFormat":"API Key"}}},"tags":[{"name":"Payment Intents","description":"Create and manage payment intents"},{"name":"Setup Intents","description":"Create and manage setup intents (save cards for future use)"},{"name":"Payment Methods","description":"Create and manage payment methods"},{"name":"Charges","description":"View charges"},{"name":"Refunds","description":"Create and manage refunds"},{"name":"Customers","description":"Create and manage customers"},{"name":"Bank Accounts","description":"Create and manage payout bank accounts"},{"name":"Payouts","description":"View payout records"},{"name":"Events","description":"View events"},{"name":"Disputes","description":"View disputes"},{"name":"Products","description":"Create and manage products"},{"name":"Prices","description":"Create and manage prices"},{"name":"Subscriptions","description":"Create and manage subscriptions"},{"name":"Coupons","description":"Create and manage coupons"},{"name":"Promotion Codes","description":"Create and manage promotion codes"},{"name":"Invoices","description":"View and pay invoices"},{"name":"Connected Accounts","description":"Create and manage connected accounts (submerchants)"},{"name":"Transfers","description":"View destination charge transfers to connected accounts"},{"name":"Application Fees","description":"View platform fees collected from destination charges"}]}