{"openapi":"3.0.0","info":{"title":"Stripe API","description":"The Stripe REST API. Please see https://stripe.com/docs/api for more details.","termsOfService":"https://stripe.com/us/terms/","contact":{"name":"Stripe Dev Platform Team","url":"https://stripe.com","email":"dev-platform@stripe.com"},"version":"2026-03-25.dahlia","x-stripeReleasePhase":"ga","x-stripeSpecAudience":"sdk","x-stripeSpecFilename":"spec3.ga.sdk"},"servers":[{"url":"https://api.stripe.com/"}],"security":[{"basicAuth":[]},{"bearerAuth":[]}],"paths":{"/v1/account":{"get":{"summary":"Retrieve account","description":"
Retrieves the details of an account.
","operationId":"GetAccount","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/account"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/account_links":{"post":{"summary":"Create an account link","description":"Creates an AccountLink object that includes a single-use Stripe URL that the platform can redirect their user to in order to take them through the Connect Onboarding flow.
","operationId":"PostAccountLinks","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["account","type"],"type":"object","properties":{"account":{"maxLength":5000,"type":"string","description":"The identifier of the account to create an account link for."},"collect":{"type":"string","description":"The collect parameter is deprecated. Use `collection_options` instead.","enum":["currently_due","eventually_due"]},"collection_options":{"title":"collection_options_params","type":"object","properties":{"fields":{"type":"string","description":"Specifies whether the platform collects only currently_due requirements (`currently_due`) or both currently_due and eventually_due requirements (`eventually_due`). If you don't specify `collection_options`, the default value is `currently_due`.","enum":["currently_due","eventually_due"]},"future_requirements":{"type":"string","description":"Specifies whether the platform collects future_requirements in addition to requirements in Connect Onboarding. The default value is `omit`.","enum":["include","omit"]}},"description":"Specifies the requirements that Stripe collects from connected accounts in the Connect Onboarding flow.","x-stripeMostCommon":["fields","future_requirements"]},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"refresh_url":{"type":"string","description":"The URL the user will be redirected to if the account link is expired, has been previously-visited, or is otherwise invalid. The URL you specify should attempt to generate a new account link with the same parameters used to create the original account link, then redirect the user to the new account link's URL so they can continue with Connect Onboarding. If a new account link cannot be generated or the redirect fails you should display a useful error to the user."},"return_url":{"type":"string","description":"The URL that the user will be redirected to upon leaving or completing the linked flow."},"type":{"type":"string","description":"The type of account link the user is requesting.\n\nYou can create Account Links of type `account_update` only for connected accounts where your platform is responsible for collecting requirements, including Custom accounts. You can't create them for accounts that have access to a Stripe-hosted Dashboard. If you use [Connect embedded components](/connect/get-started-connect-embedded-components), you can include components that allow your connected accounts to update their own information. For an account without Stripe-hosted Dashboard access where Stripe is liable for negative balances, you must use embedded components.","enum":["account_onboarding","account_update"],"x-stripeBypassValidation":true}},"additionalProperties":false,"x-stripeMostCommon":["account","refresh_url","return_url","type"]},"encoding":{"collection_options":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/account_link"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/account_sessions":{"post":{"summary":"Create an Account Session","description":"Creates a AccountSession object that includes a single-use token that the platform can use on their front-end to grant client-side API access.
","operationId":"PostAccountSessions","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["account","components"],"type":"object","properties":{"account":{"type":"string","description":"The identifier of the account to create an Account Session for."},"components":{"title":"account_session_create_components_param","type":"object","properties":{"account_management":{"title":"account_config_param","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the embedded component is enabled."},"features":{"title":"account_features_param","type":"object","properties":{"disable_stripe_user_authentication":{"type":"boolean","description":"Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`."},"external_account_collection":{"type":"boolean","description":"Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`."}},"description":"The list of features enabled in the embedded component.","x-stripeMostCommon":["disable_stripe_user_authentication","external_account_collection"]}},"description":"Configuration for the [account management](/connect/supported-embedded-components/account-management/) embedded component.","x-stripeMostCommon":["enabled","features"]},"account_onboarding":{"title":"account_config_param","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the embedded component is enabled."},"features":{"title":"account_features_param","type":"object","properties":{"disable_stripe_user_authentication":{"type":"boolean","description":"Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`."},"external_account_collection":{"type":"boolean","description":"Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`."}},"description":"The list of features enabled in the embedded component.","x-stripeMostCommon":["disable_stripe_user_authentication","external_account_collection"]}},"description":"Configuration for the [account onboarding](/connect/supported-embedded-components/account-onboarding/) embedded component.","x-stripeMostCommon":["enabled","features"]},"balances":{"title":"payouts_config_param","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the embedded component is enabled."},"features":{"title":"payouts_features_param","type":"object","properties":{"disable_stripe_user_authentication":{"type":"boolean","description":"Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`."},"edit_payout_schedule":{"type":"boolean","description":"Whether to allow payout schedule to be changed. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`."},"external_account_collection":{"type":"boolean","description":"Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`."},"instant_payouts":{"type":"boolean","description":"Whether instant payouts are enabled for this component."},"standard_payouts":{"type":"boolean","description":"Whether to allow creation of standard payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`."}},"description":"The list of features enabled in the embedded component.","x-stripeMostCommon":["disable_stripe_user_authentication","edit_payout_schedule","external_account_collection","instant_payouts","standard_payouts"]}},"description":"Configuration for the [balances](/connect/supported-embedded-components/balances/) embedded component.","x-stripeMostCommon":["enabled","features"]},"disputes_list":{"title":"disputes_list_config_param","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the embedded component is enabled."},"features":{"title":"disputes_list_features_param","type":"object","properties":{"capture_payments":{"type":"boolean","description":"Whether to allow capturing and cancelling payment intents. This is `true` by default."},"destination_on_behalf_of_charge_management":{"type":"boolean","description":"Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default."},"dispute_management":{"type":"boolean","description":"Whether responding to disputes is enabled, including submitting evidence and accepting disputes. This is `true` by default."},"refund_management":{"type":"boolean","description":"Whether sending refunds is enabled. This is `true` by default."}},"description":"The list of features enabled in the embedded component.","x-stripeMostCommon":["capture_payments","destination_on_behalf_of_charge_management","dispute_management","refund_management"]}},"description":"Configuration for the [disputes list](/connect/supported-embedded-components/disputes-list/) embedded component.","x-stripeMostCommon":["enabled","features"]},"documents":{"title":"base_config_param","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the embedded component is enabled."},"features":{"title":"base_features_param","type":"object","properties":{},"description":"An empty list, because this embedded component has no features."}},"description":"Configuration for the [documents](/connect/supported-embedded-components/documents/) embedded component.","x-stripeMostCommon":["enabled","features"]},"financial_account":{"title":"financial_account_config_param","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the embedded component is enabled."},"features":{"title":"financial_account_features_param","type":"object","properties":{"disable_stripe_user_authentication":{"type":"boolean","description":"Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`."},"external_account_collection":{"type":"boolean","description":"Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`."},"send_money":{"type":"boolean","description":"Whether to allow sending money."},"transfer_balance":{"type":"boolean","description":"Whether to allow transferring balance."}},"description":"The list of features enabled in the embedded component.","x-stripeMostCommon":["disable_stripe_user_authentication","external_account_collection","send_money","transfer_balance"]}},"description":"Configuration for the [financial account](/connect/supported-embedded-components/financial-account/) embedded component.","x-stripeMostCommon":["enabled","features"]},"financial_account_transactions":{"title":"financial_account_transactions_config_param","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the embedded component is enabled."},"features":{"title":"financial_account_transactions_features_param","type":"object","properties":{"card_spend_dispute_management":{"type":"boolean","description":"Whether to allow card spend dispute management features."}},"description":"The list of features enabled in the embedded component.","x-stripeMostCommon":["card_spend_dispute_management"]}},"description":"Configuration for the [financial account transactions](/connect/supported-embedded-components/financial-account-transactions/) embedded component.","x-stripeMostCommon":["enabled","features"]},"instant_payouts_promotion":{"title":"instant_payouts_promotion_config_param","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the embedded component is enabled."},"features":{"title":"instant_payouts_promotion_features_param","type":"object","properties":{"disable_stripe_user_authentication":{"type":"boolean","description":"Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`."},"external_account_collection":{"type":"boolean","description":"Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`."},"instant_payouts":{"type":"boolean","description":"Whether instant payouts are enabled for this component."}},"description":"The list of features enabled in the embedded component.","x-stripeMostCommon":["disable_stripe_user_authentication","external_account_collection","instant_payouts"]}},"description":"Configuration for the [instant payouts promotion](/connect/supported-embedded-components/instant-payouts-promotion/) embedded component.","x-stripeMostCommon":["enabled","features"]},"issuing_card":{"title":"issuing_card_config_param","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the embedded component is enabled."},"features":{"title":"issuing_card_features_param","type":"object","properties":{"card_management":{"type":"boolean","description":"Whether to allow card management features."},"card_spend_dispute_management":{"type":"boolean","description":"Whether to allow card spend dispute management features."},"cardholder_management":{"type":"boolean","description":"Whether to allow cardholder management features."},"spend_control_management":{"type":"boolean","description":"Whether to allow spend control management features."}},"description":"The list of features enabled in the embedded component.","x-stripeMostCommon":["card_management","card_spend_dispute_management","cardholder_management","spend_control_management"]}},"description":"Configuration for the [issuing card](/connect/supported-embedded-components/issuing-card/) embedded component.","x-stripeMostCommon":["enabled","features"]},"issuing_cards_list":{"title":"issuing_cards_list_config_param","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the embedded component is enabled."},"features":{"title":"issuing_cards_list_features_param","type":"object","properties":{"card_management":{"type":"boolean","description":"Whether to allow card management features."},"card_spend_dispute_management":{"type":"boolean","description":"Whether to allow card spend dispute management features."},"cardholder_management":{"type":"boolean","description":"Whether to allow cardholder management features."},"disable_stripe_user_authentication":{"type":"boolean","description":"Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`."},"spend_control_management":{"type":"boolean","description":"Whether to allow spend control management features."}},"description":"The list of features enabled in the embedded component.","x-stripeMostCommon":["card_management","card_spend_dispute_management","cardholder_management","disable_stripe_user_authentication","spend_control_management"]}},"description":"Configuration for the [issuing cards list](/connect/supported-embedded-components/issuing-cards-list/) embedded component.","x-stripeMostCommon":["enabled","features"]},"notification_banner":{"title":"account_config_param","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the embedded component is enabled."},"features":{"title":"account_features_param","type":"object","properties":{"disable_stripe_user_authentication":{"type":"boolean","description":"Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`."},"external_account_collection":{"type":"boolean","description":"Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`."}},"description":"The list of features enabled in the embedded component.","x-stripeMostCommon":["disable_stripe_user_authentication","external_account_collection"]}},"description":"Configuration for the [notification banner](/connect/supported-embedded-components/notification-banner/) embedded component.","x-stripeMostCommon":["enabled","features"]},"payment_details":{"title":"payments_config_param","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the embedded component is enabled."},"features":{"title":"payments_features_param","type":"object","properties":{"capture_payments":{"type":"boolean","description":"Whether to allow capturing and cancelling payment intents. This is `true` by default."},"destination_on_behalf_of_charge_management":{"type":"boolean","description":"Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default."},"dispute_management":{"type":"boolean","description":"Whether responding to disputes is enabled, including submitting evidence and accepting disputes. This is `true` by default."},"refund_management":{"type":"boolean","description":"Whether sending refunds is enabled. This is `true` by default."}},"description":"The list of features enabled in the embedded component.","x-stripeMostCommon":["capture_payments","destination_on_behalf_of_charge_management","dispute_management","refund_management"]}},"description":"Configuration for the [payment details](/connect/supported-embedded-components/payment-details/) embedded component.","x-stripeMostCommon":["enabled","features"]},"payment_disputes":{"title":"payment_disputes_config_param","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the embedded component is enabled."},"features":{"title":"payment_disputes_features_param","type":"object","properties":{"destination_on_behalf_of_charge_management":{"type":"boolean","description":"Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default."},"dispute_management":{"type":"boolean","description":"Whether responding to disputes is enabled, including submitting evidence and accepting disputes. This is `true` by default."},"refund_management":{"type":"boolean","description":"Whether sending refunds is enabled. This is `true` by default."}},"description":"The list of features enabled in the embedded component.","x-stripeMostCommon":["destination_on_behalf_of_charge_management","dispute_management","refund_management"]}},"description":"Configuration for the [payment disputes](/connect/supported-embedded-components/payment-disputes/) embedded component.","x-stripeMostCommon":["enabled","features"]},"payments":{"title":"payments_config_param","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the embedded component is enabled."},"features":{"title":"payments_features_param","type":"object","properties":{"capture_payments":{"type":"boolean","description":"Whether to allow capturing and cancelling payment intents. This is `true` by default."},"destination_on_behalf_of_charge_management":{"type":"boolean","description":"Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default."},"dispute_management":{"type":"boolean","description":"Whether responding to disputes is enabled, including submitting evidence and accepting disputes. This is `true` by default."},"refund_management":{"type":"boolean","description":"Whether sending refunds is enabled. This is `true` by default."}},"description":"The list of features enabled in the embedded component.","x-stripeMostCommon":["capture_payments","destination_on_behalf_of_charge_management","dispute_management","refund_management"]}},"description":"Configuration for the [payments](/connect/supported-embedded-components/payments/) embedded component.","x-stripeMostCommon":["enabled","features"]},"payout_details":{"title":"base_config_param","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the embedded component is enabled."},"features":{"title":"base_features_param","type":"object","properties":{},"description":"An empty list, because this embedded component has no features."}},"description":"Configuration for the [payout details](/connect/supported-embedded-components/payout-details/) embedded component.","x-stripeMostCommon":["enabled","features"]},"payouts":{"title":"payouts_config_param","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the embedded component is enabled."},"features":{"title":"payouts_features_param","type":"object","properties":{"disable_stripe_user_authentication":{"type":"boolean","description":"Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`."},"edit_payout_schedule":{"type":"boolean","description":"Whether to allow payout schedule to be changed. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`."},"external_account_collection":{"type":"boolean","description":"Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`."},"instant_payouts":{"type":"boolean","description":"Whether instant payouts are enabled for this component."},"standard_payouts":{"type":"boolean","description":"Whether to allow creation of standard payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`."}},"description":"The list of features enabled in the embedded component.","x-stripeMostCommon":["disable_stripe_user_authentication","edit_payout_schedule","external_account_collection","instant_payouts","standard_payouts"]}},"description":"Configuration for the [payouts](/connect/supported-embedded-components/payouts/) embedded component.","x-stripeMostCommon":["enabled","features"]},"payouts_list":{"title":"base_config_param","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the embedded component is enabled."},"features":{"title":"base_features_param","type":"object","properties":{},"description":"An empty list, because this embedded component has no features."}},"description":"Configuration for the [payouts list](/connect/supported-embedded-components/payouts-list/) embedded component.","x-stripeMostCommon":["enabled","features"]},"tax_registrations":{"title":"base_config_param","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the embedded component is enabled."},"features":{"title":"base_features_param","type":"object","properties":{},"description":"An empty list, because this embedded component has no features."}},"description":"Configuration for the [tax registrations](/connect/supported-embedded-components/tax-registrations/) embedded component.","x-stripeMostCommon":["enabled","features"]},"tax_settings":{"title":"base_config_param","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the embedded component is enabled."},"features":{"title":"base_features_param","type":"object","properties":{},"description":"An empty list, because this embedded component has no features."}},"description":"Configuration for the [tax settings](/connect/supported-embedded-components/tax-settings/) embedded component.","x-stripeMostCommon":["enabled","features"]}},"description":"Each key of the dictionary represents an embedded component, and each embedded component maps to its configuration (e.g. whether it has been enabled or not).","x-stripeMostCommon":["account_management","account_onboarding","agentic_commerce_settings","app_install","app_viewport","balances","capital_financing","capital_financing_application","capital_financing_promotion","capital_overview","check_scanning","disputes_list","documents","export_tax_transactions","financial_account","financial_account_rewards","financial_account_transactions","instant_payouts_promotion","issuing_card","issuing_cards_list","network_cost_passthrough_report","notification_banner","payment_details","payment_disputes","payment_method_settings","payments","payout_details","payouts","payouts_list","product_tax_code_selector","recipients","reporting_chart","tax_registrations","tax_settings","tax_threshold_monitoring","terminal_hardware_orders","terminal_hardware_shop"]},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}}},"additionalProperties":false,"x-stripeMostCommon":["account","components"]},"encoding":{"components":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/account_session"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/accounts":{"get":{"summary":"List all connected accounts","description":"Returns a list of accounts connected to your platform via Connect. If you’re not a platform, the list is empty.
","operationId":"GetAccounts","parameters":[{"name":"created","in":"query","description":"Only return connected accounts that were created during the given date interval.","required":false,"style":"deepObject","explode":true,"schema":{"anyOf":[{"title":"range_query_specs","type":"object","properties":{"gt":{"type":"integer","description":"Minimum value to filter by (exclusive)"},"gte":{"type":"integer","description":"Minimum value to filter by (inclusive)"},"lt":{"type":"integer","description":"Maximum value to filter by (exclusive)"},"lte":{"type":"integer","description":"Maximum value to filter by (inclusive)"}},"x-stripeMostCommon":["gt","gte","lt","lte"]},{"type":"integer"}]}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"AccountList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/account"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/accounts","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"description":"With Connect, you can create Stripe accounts for your users.\nTo do this, you’ll first need to register your platform.
\n\nIf you’ve already collected information for your connected accounts, you can prefill that information when\ncreating the account. Connect Onboarding won’t ask for the prefilled information during account onboarding.\nYou can prefill any information on the account.
","operationId":"PostAccounts","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"account_token":{"maxLength":5000,"type":"string","description":"An [account token](https://api.stripe.com#create_account_token), used to securely provide details to the account."},"business_profile":{"title":"business_profile_specs","type":"object","properties":{"annual_revenue":{"title":"annual_revenue_specs","required":["amount","currency","fiscal_year_end"],"type":"object","properties":{"amount":{"type":"integer","description":"A non-negative integer representing the amount in the [smallest currency unit](/currencies#zero-decimal)."},"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"fiscal_year_end":{"maxLength":5000,"type":"string","description":"The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023."}},"description":"The applicant's gross annual revenue for its preceding fiscal year.","x-stripeMostCommon":["amount","currency","fiscal_year_end"]},"estimated_worker_count":{"type":"integer","description":"An estimated upper bound of employees, contractors, vendors, etc. currently working for the business."},"mcc":{"maxLength":4,"type":"string","description":"[The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide."},"minority_owned_business_designation":{"type":"array","description":"Whether the business is a minority-owned, women-owned, and/or LGBTQI+ -owned business.","items":{"type":"string","enum":["lgbtqi_owned_business","minority_owned_business","none_of_these_apply","prefer_not_to_answer","women_owned_business"]}},"monthly_estimated_revenue":{"title":"monthly_estimated_revenue_specs","required":["amount","currency"],"type":"object","properties":{"amount":{"type":"integer","description":"A non-negative integer representing how much to charge in the [smallest currency unit](/currencies#zero-decimal)."},"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"}},"description":"An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.","x-stripeMostCommon":["amount","currency"]},"name":{"maxLength":5000,"type":"string","description":"The customer-facing business name."},"product_description":{"maxLength":40000,"type":"string","description":"Internal-only description of the product sold by, or service provided by, the business. Used by Stripe for risk and underwriting purposes."},"support_address":{"title":"address_specs","type":"object","properties":{"city":{"maxLength":100,"type":"string","description":"City, district, suburb, town, or village."},"country":{"maxLength":5000,"type":"string","description":"Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."},"line1":{"maxLength":200,"type":"string","description":"Address line 1, such as the street, PO Box, or company name."},"line2":{"maxLength":200,"type":"string","description":"Address line 2, such as the apartment, suite, unit, or building."},"postal_code":{"maxLength":5000,"type":"string","description":"ZIP or postal code."},"state":{"maxLength":5000,"type":"string","description":"State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))."}},"description":"A publicly available mailing address for sending support issues to.","x-stripeMostCommon":["city","country","line1","line2","postal_code","state"]},"support_email":{"type":"string","description":"A publicly available email address for sending support issues to."},"support_phone":{"maxLength":5000,"type":"string","description":"A publicly available phone number to call with support issues."},"support_url":{"description":"A publicly available website for handling support issues.","anyOf":[{"type":"string"},{"type":"string","enum":[""]}]},"url":{"type":"string","description":"The business's publicly available website."}},"description":"Business information about the account.","x-stripeMostCommon":["annual_revenue","customer_regions","estimated_worker_count","funding_source","industry","mcc","minority_owned_business_designation","monthly_estimated_revenue","name","payment_collection_methods","privacy_policy_url","product_description","singapore_account_activity_survey","specified_commercial_transactions_act_url","support_address","support_email","support_phone","support_url","terms_of_service_url","url","url_opt_out_reason"]},"business_type":{"type":"string","description":"The business type. Once you create an [Account Link](/api/account_links) or [Account Session](/api/account_sessions), this property can only be updated for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.","enum":["company","government_entity","individual","non_profit"],"x-stripeBypassValidation":true},"capabilities":{"title":"capabilities_param","type":"object","properties":{"acss_debit_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The acss_debit_payments capability.","x-stripeMostCommon":["preview","requested"]},"affirm_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The affirm_payments capability.","x-stripeMostCommon":["preview","requested"]},"afterpay_clearpay_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The afterpay_clearpay_payments capability.","x-stripeMostCommon":["preview","requested"]},"alma_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The alma_payments capability.","x-stripeMostCommon":["preview","requested"]},"amazon_pay_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The amazon_pay_payments capability.","x-stripeMostCommon":["preview","requested"]},"au_becs_debit_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The au_becs_debit_payments capability.","x-stripeMostCommon":["preview","requested"]},"bacs_debit_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The bacs_debit_payments capability.","x-stripeMostCommon":["preview","requested"]},"bancontact_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The bancontact_payments capability.","x-stripeMostCommon":["preview","requested"]},"bank_transfer_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The bank_transfer_payments capability.","x-stripeMostCommon":["preview","requested"]},"billie_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The billie_payments capability.","x-stripeMostCommon":["preview","requested"]},"blik_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The blik_payments capability.","x-stripeMostCommon":["preview","requested"]},"boleto_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The boleto_payments capability.","x-stripeMostCommon":["preview","requested"]},"card_issuing":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The card_issuing capability.","x-stripeMostCommon":["preview","requested"]},"card_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The card_payments capability.","x-stripeMostCommon":["preview","requested"]},"cartes_bancaires_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The cartes_bancaires_payments capability.","x-stripeMostCommon":["preview","requested"]},"cashapp_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The cashapp_payments capability.","x-stripeMostCommon":["preview","requested"]},"crypto_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The crypto_payments capability.","x-stripeMostCommon":["preview","requested"]},"eps_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The eps_payments capability.","x-stripeMostCommon":["preview","requested"]},"fpx_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The fpx_payments capability.","x-stripeMostCommon":["preview","requested"]},"gb_bank_transfer_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The gb_bank_transfer_payments capability.","x-stripeMostCommon":["preview","requested"]},"giropay_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The giropay_payments capability.","x-stripeMostCommon":["preview","requested"]},"grabpay_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The grabpay_payments capability.","x-stripeMostCommon":["preview","requested"]},"ideal_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The ideal_payments capability.","x-stripeMostCommon":["preview","requested"]},"india_international_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The india_international_payments capability.","x-stripeMostCommon":["preview","requested"]},"jcb_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The jcb_payments capability.","x-stripeMostCommon":["preview","requested"]},"jp_bank_transfer_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The jp_bank_transfer_payments capability.","x-stripeMostCommon":["preview","requested"]},"kakao_pay_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The kakao_pay_payments capability.","x-stripeMostCommon":["preview","requested"]},"klarna_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The klarna_payments capability.","x-stripeMostCommon":["preview","requested"]},"konbini_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The konbini_payments capability.","x-stripeMostCommon":["preview","requested"]},"kr_card_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The kr_card_payments capability.","x-stripeMostCommon":["preview","requested"]},"legacy_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The legacy_payments capability.","x-stripeMostCommon":["preview","requested"]},"link_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The link_payments capability.","x-stripeMostCommon":["preview","requested"]},"mb_way_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The mb_way_payments capability.","x-stripeMostCommon":["preview","requested"]},"mobilepay_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The mobilepay_payments capability.","x-stripeMostCommon":["preview","requested"]},"multibanco_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The multibanco_payments capability.","x-stripeMostCommon":["preview","requested"]},"mx_bank_transfer_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The mx_bank_transfer_payments capability.","x-stripeMostCommon":["preview","requested"]},"naver_pay_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The naver_pay_payments capability.","x-stripeMostCommon":["preview","requested"]},"nz_bank_account_becs_debit_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The nz_bank_account_becs_debit_payments capability.","x-stripeMostCommon":["preview","requested"]},"oxxo_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The oxxo_payments capability.","x-stripeMostCommon":["preview","requested"]},"p24_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The p24_payments capability.","x-stripeMostCommon":["preview","requested"]},"pay_by_bank_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The pay_by_bank_payments capability.","x-stripeMostCommon":["preview","requested"]},"payco_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The payco_payments capability.","x-stripeMostCommon":["preview","requested"]},"paynow_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The paynow_payments capability.","x-stripeMostCommon":["preview","requested"]},"payto_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The payto_payments capability.","x-stripeMostCommon":["preview","requested"]},"pix_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The pix_payments capability.","x-stripeMostCommon":["preview","requested"]},"promptpay_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The promptpay_payments capability.","x-stripeMostCommon":["preview","requested"]},"revolut_pay_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The revolut_pay_payments capability.","x-stripeMostCommon":["preview","requested"]},"samsung_pay_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The samsung_pay_payments capability.","x-stripeMostCommon":["preview","requested"]},"satispay_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The satispay_payments capability.","x-stripeMostCommon":["preview","requested"]},"sepa_bank_transfer_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The sepa_bank_transfer_payments capability.","x-stripeMostCommon":["preview","requested"]},"sepa_debit_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The sepa_debit_payments capability.","x-stripeMostCommon":["preview","requested"]},"sofort_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The sofort_payments capability.","x-stripeMostCommon":["preview","requested"]},"swish_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The swish_payments capability.","x-stripeMostCommon":["preview","requested"]},"tax_reporting_us_1099_k":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The tax_reporting_us_1099_k capability.","x-stripeMostCommon":["preview","requested"]},"tax_reporting_us_1099_misc":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The tax_reporting_us_1099_misc capability.","x-stripeMostCommon":["preview","requested"]},"transfers":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The transfers capability.","x-stripeMostCommon":["preview","requested"]},"treasury":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The treasury capability.","x-stripeMostCommon":["preview","requested"]},"twint_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The twint_payments capability.","x-stripeMostCommon":["preview","requested"]},"upi_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The upi_payments capability.","x-stripeMostCommon":["preview","requested"]},"us_bank_account_ach_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The us_bank_account_ach_payments capability.","x-stripeMostCommon":["preview","requested"]},"us_bank_transfer_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The us_bank_transfer_payments capability.","x-stripeMostCommon":["preview","requested"]},"zip_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The zip_payments capability.","x-stripeMostCommon":["preview","requested"]}},"description":"Each key of the dictionary represents a capability, and each capability\nmaps to its settings (for example, whether it has been requested or not). Each\ncapability is inactive until you have provided its specific\nrequirements and Stripe has verified them. An account might have some\nof its requested capabilities be active and some be inactive.\n\nRequired when [account.controller.stripe_dashboard.type](/api/accounts/create#create_account-controller-dashboard-type)\nis `none`, which includes Custom accounts.","x-stripeMostCommon":["ach_debit_payments","acss_debit_payments","affirm_payments","afterpay_clearpay_payments","agentic_payments","alipay_payments","alma_payments","amazon_pay_payments","app_distribution","apple_pay_later_payments","au_bank_transfer_payments","au_becs_debit_payments","automatic_indirect_tax","bacs_debit_payments","bacs_debit_stripe_sun_payments","bancontact_payments","bank_transfer_payments","beneficiary_transfers","billie_payments","bizum_payments","blik_payments","boleto_payments","ca_bank_transfer_payments","capchase_pay_payments","card_issuing","card_issuing_charge_card","card_issuing_charge_card_fifth_third","card_issuing_charge_card_stripe","card_issuing_consumer","card_issuing_consumer_revolving_credit_card_celtic","card_issuing_fa_prepaid_card_cross_river","card_issuing_fa_prepaid_card_lead","card_issuing_fa_spend_card_celtic","card_issuing_fa_spend_card_stripe","card_issuing_prepaid_card_cross_river","card_issuing_prepaid_card_lead","card_issuing_spend_card_cross_river","card_payments","cartes_bancaires_payments","cash_advances","cashapp_payments","click_to_pay_payments","crypto_financial_account_recipients","crypto_financial_accounts","crypto_payments","crypto_transfers","crypto_transfers_platform","demo_pay_payments","dispute_arbitration","duitnow_payments","dummy_passthrough_card_payments","edenred_payments","eps_payments","fpx_payments","fr_meal_voucher_conecs_payments","fund_and_send","funding_credit","gb_bank_transfer_payments","getbalance_payments","giropay_payments","gopay_payments","grabpay_payments","id_bank_transfer_payments","id_bank_transfer_payments_bca","id_credit_transfer_payments","ideal_payments","india_international_payments","jcb_payments","jp_bank_transfer_payments","kakao_pay_payments","klarna_international_payments","klarna_payments","konbini_payments","kr_card_payments","kr_market_payments","kriya_payments","legacy_payments","link_payments","loans","mb_way_payments","mobilepay_payments","momo_payments","mondu_payments","multibanco_payments","mx_bank_transfer_payments","naver_pay_payments","netbanking_payments","ng_bank_payments","ng_bank_transfer_payments","ng_card_payments","ng_market_payments","ng_ussd_payments","ng_wallet_payments","nz_bank_account_becs_debit_payments","nz_bank_transfer_payments","octopus_payments","oxxo_payments","p24_payments","pay_by_bank_payments","payco_payments","payments","paynow_payments","payouts","paypal_payments","paypay_payments","payto_payments","pix_payments","projects","promptpay_payments","qris_payments","rechnung_payments","revolut_pay_payments","samsung_pay_payments","satispay_payments","scalapay_payments","sepa_bank_transfer_payments","sepa_debit_payments","sequra_payments","shop_pay_payments","shopeepay_payments","sofort_payments","south_korea_market_payments","storer_holds_currencies_eur","storer_holds_currencies_eurc","storer_holds_currencies_gbp","storer_holds_currencies_usd","storer_holds_currencies_usdc","stripe_balance_payments","stripe_funded_fee_credits","submerchant_payments","sunbit_payments","swish_payments","tax_reporting_us_1099_k","tax_reporting_us_1099_misc","transfers","treasury","treasury_evolve","treasury_fifth_third","treasury_goldman_sachs","twint_payments","upi_payments","us_bank_account_ach_payments","us_bank_transfer_payments","us_cash_voucher_transfers","us_paper_check_payments","vipps_payments","wechat_pay_payments","wero_payments","zip_payments"]},"company":{"title":"company_specs","type":"object","properties":{"address":{"title":"legal_entity_and_kyc_address_specs","type":"object","properties":{"city":{"maxLength":100,"type":"string","description":"City, district, suburb, town, or village."},"country":{"maxLength":5000,"type":"string","description":"Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."},"line1":{"maxLength":200,"type":"string","description":"Address line 1, such as the street, PO Box, or company name."},"line2":{"maxLength":200,"type":"string","description":"Address line 2, such as the apartment, suite, unit, or building."},"postal_code":{"maxLength":5000,"type":"string","description":"ZIP or postal code."},"state":{"maxLength":5000,"type":"string","description":"State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))."}},"description":"The company's primary address.","x-stripeMostCommon":["city","country","line1","line2","postal_code","state"]},"address_kana":{"title":"japan_address_kana_specs","type":"object","properties":{"city":{"maxLength":5000,"type":"string","description":"City or ward."},"country":{"maxLength":5000,"type":"string","description":"Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."},"line1":{"maxLength":5000,"type":"string","description":"Block or building number."},"line2":{"maxLength":5000,"type":"string","description":"Building details."},"postal_code":{"maxLength":5000,"type":"string","description":"Postal code."},"state":{"maxLength":5000,"type":"string","description":"Prefecture."},"town":{"maxLength":5000,"type":"string","description":"Town or cho-me."}},"description":"The Kana variation of the company's primary address (Japan only).","x-stripeMostCommon":["city","country","db_code","line1","line2","postal_code","state","town"]},"address_kanji":{"title":"japan_address_kanji_specs","type":"object","properties":{"city":{"maxLength":5000,"type":"string","description":"City or ward."},"country":{"maxLength":5000,"type":"string","description":"Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."},"line1":{"maxLength":5000,"type":"string","description":"Block or building number."},"line2":{"maxLength":5000,"type":"string","description":"Building details."},"postal_code":{"maxLength":5000,"type":"string","description":"Postal code."},"state":{"maxLength":5000,"type":"string","description":"Prefecture."},"town":{"maxLength":5000,"type":"string","description":"Town or cho-me."}},"description":"The Kanji variation of the company's primary address (Japan only).","x-stripeMostCommon":["city","country","db_code","line1","line2","postal_code","state","town"]},"directors_provided":{"type":"boolean","description":"Whether the company's directors have been provided. Set this Boolean to `true` after creating all the company's directors with [the Persons API](/api/persons) for accounts with a `relationship.director` requirement. This value is not automatically set to `true` after creating directors, so it needs to be updated to indicate all directors have been provided."},"directorship_declaration":{"title":"company_directorship_declaration","type":"object","properties":{"date":{"type":"integer","description":"The Unix timestamp marking when the directorship declaration attestation was made.","format":"unix-time"},"ip":{"type":"string","description":"The IP address from which the directorship declaration attestation was made."},"user_agent":{"maxLength":5000,"type":"string","description":"The user agent of the browser from which the directorship declaration attestation was made."}},"description":"This hash is used to attest that the directors information provided to Stripe is both current and correct.","x-stripeMostCommon":["date","ip","user_agent"]},"executives_provided":{"type":"boolean","description":"Whether the company's executives have been provided. Set this Boolean to `true` after creating all the company's executives with [the Persons API](/api/persons) for accounts with a `relationship.executive` requirement."},"export_license_id":{"maxLength":5000,"type":"string","description":"The export license ID number of the company, also referred as Import Export Code (India only)."},"export_purpose_code":{"maxLength":5000,"type":"string","description":"The purpose code to use for export transactions (India only)."},"name":{"maxLength":100,"type":"string","description":"The company's legal name."},"name_kana":{"maxLength":100,"type":"string","description":"The Kana variation of the company's legal name (Japan only)."},"name_kanji":{"maxLength":100,"type":"string","description":"The Kanji variation of the company's legal name (Japan only)."},"owners_provided":{"type":"boolean","description":"Whether the company's owners have been provided. Set this Boolean to `true` after creating all the company's owners with [the Persons API](/api/persons) for accounts with a `relationship.owner` requirement."},"ownership_declaration":{"title":"company_ownership_declaration","type":"object","properties":{"date":{"type":"integer","description":"The Unix timestamp marking when the beneficial owner attestation was made.","format":"unix-time"},"ip":{"type":"string","description":"The IP address from which the beneficial owner attestation was made."},"user_agent":{"maxLength":5000,"type":"string","description":"The user agent of the browser from which the beneficial owner attestation was made."}},"description":"This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.","x-stripeMostCommon":["date","ip","user_agent"]},"ownership_exemption_reason":{"type":"string","description":"This value is used to determine if a business is exempt from providing ultimate beneficial owners. See [this support article](https://support.stripe.com/questions/exemption-from-providing-ownership-details) and [changelog](https://docs.stripe.com/changelog/acacia/2025-01-27/ownership-exemption-reason-accounts-api) for more details.","enum":["","qualified_entity_exceeds_ownership_threshold","qualifies_as_financial_institution"]},"phone":{"maxLength":5000,"type":"string","description":"The company's phone number (used for verification)."},"registration_date":{"description":"When the business was incorporated or registered.","anyOf":[{"title":"registration_date_specs","required":["day","month","year"],"type":"object","properties":{"day":{"type":"integer","description":"The day of registration, between 1 and 31."},"month":{"type":"integer","description":"The month of registration, between 1 and 12."},"year":{"type":"integer","description":"The four-digit year of registration."}},"x-stripeMostCommon":["day","month","year"]},{"type":"string","enum":[""]}]},"registration_number":{"maxLength":5000,"type":"string","description":"The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong)."},"representative_declaration":{"title":"company_representative_declaration","type":"object","properties":{"date":{"type":"integer","description":"The Unix timestamp marking when the representative declaration attestation was made.","format":"unix-time"},"ip":{"type":"string","description":"The IP address from which the representative declaration attestation was made."},"user_agent":{"maxLength":5000,"type":"string","description":"The user agent of the browser from which the representative declaration attestation was made."}},"description":"This hash is used to attest that the representative is authorized to act as the representative of their legal entity.","x-stripeMostCommon":["date","ip","user_agent"]},"structure":{"type":"string","description":"The category identifying the legal structure of the company or legal entity. See [Business structure](/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value.","enum":["","free_zone_establishment","free_zone_llc","government_instrumentality","governmental_unit","incorporated_non_profit","incorporated_partnership","limited_liability_partnership","llc","multi_member_llc","private_company","private_corporation","private_partnership","public_company","public_corporation","public_partnership","registered_charity","single_member_llc","sole_establishment","sole_proprietorship","tax_exempt_government_instrumentality","unincorporated_association","unincorporated_non_profit","unincorporated_partnership"],"x-stripeBypassValidation":true},"tax_id":{"maxLength":5000,"type":"string","description":"The business ID number of the company, as appropriate for the company’s country. (Examples are an Employer ID Number in the U.S., a Business Number in Canada, or a Company Number in the UK.)"},"tax_id_registrar":{"maxLength":5000,"type":"string","description":"The jurisdiction in which the `tax_id` is registered (Germany-based companies only)."},"vat_id":{"maxLength":5000,"type":"string","description":"The VAT number of the company."},"verification":{"title":"verification_specs","type":"object","properties":{"document":{"title":"verification_document_specs","type":"object","properties":{"back":{"maxLength":500,"type":"string","description":"The back of a document returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size."},"front":{"maxLength":500,"type":"string","description":"The front of a document returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size."}},"description":"A document verifying the business.","x-stripeMostCommon":["back","front"]}},"description":"Information on the verification state of the company.","x-stripeMostCommon":["document"]}},"description":"Information about the company or business. This field is available for any `business_type`. Once you create an [Account Link](/api/account_links) or [Account Session](/api/account_sessions), this property can only be updated for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.","x-stripeMostCommon":["address","address_kana","address_kanji","contact_point_verification_address","cross_border_transaction_classifications","directors_provided","directorship_declaration","executives_provided","export_license_id","export_purpose_code","fiscal_code","invoicing_recipient_code","name","name_kana","name_kanji","owners_provided","ownership_declaration","ownership_exemption_reason","pan","phone","registered_email","registration_date","registration_number","stock_data","structure","tax_deduction_account_number","tax_id","tax_id_registrar","trust_owned","vat_id","vat_registration_status","verification"]},"controller":{"title":"controller_specs","type":"object","properties":{"fees":{"title":"controller_fees_specs","type":"object","properties":{"payer":{"type":"string","description":"A value indicating the responsible payer of Stripe fees on this account. Defaults to `account`. Learn more about [fee behavior on connected accounts](https://docs.stripe.com/connect/direct-charges-fee-payer-behavior).","enum":["account","application"]}},"description":"A hash of configuration for who pays Stripe fees for product usage on this account.","x-stripeMostCommon":["payer"]},"losses":{"title":"controller_losses_specs","type":"object","properties":{"payments":{"type":"string","description":"A value indicating who is liable when this account can't pay back negative balances resulting from payments. Defaults to `stripe`.","enum":["application","stripe"]}},"description":"A hash of configuration for products that have negative balance liability, and whether Stripe or a Connect application is responsible for them.","x-stripeMostCommon":["payments"]},"requirement_collection":{"type":"string","description":"A value indicating responsibility for collecting updated information when requirements on the account are due or change. Defaults to `stripe`.","enum":["application","stripe"]},"stripe_dashboard":{"title":"controller_dashboard_specs","type":"object","properties":{"type":{"type":"string","description":"Whether this account should have access to the full Stripe Dashboard (`full`), to the Express Dashboard (`express`), or to no Stripe-hosted dashboard (`none`). Defaults to `full`.","enum":["express","full","none"]}},"description":"A hash of configuration for Stripe-hosted dashboards.","x-stripeMostCommon":["type"]}},"description":"A hash of configuration describing the account controller's attributes.","x-stripeMostCommon":["application","dashboard","fees","losses","requirement_collection","stripe_dashboard"]},"country":{"maxLength":5000,"type":"string","description":"The country in which the account holder resides, or in which the business is legally established. This should be an ISO 3166-1 alpha-2 country code. For example, if you are in the United States and the business for which you're creating an account is legally represented in Canada, you would use `CA` as the country for the account being created. Available countries include [Stripe's global markets](https://stripe.com/global) as well as countries where [cross-border payouts](https://stripe.com/docs/connect/cross-border-payouts) are supported."},"default_currency":{"type":"string","description":"Three-letter ISO currency code representing the default currency for the account. This must be a currency that [Stripe supports in the account's country](https://docs.stripe.com/payouts).","format":"currency"},"documents":{"title":"documents_specs","type":"object","properties":{"bank_account_ownership_verification":{"title":"documents_param","type":"object","properties":{"files":{"type":"array","description":"One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.","items":{"maxLength":500,"type":"string"}}},"description":"One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the account’s primary active bank account that displays the last 4 digits of the account number, either a statement or a check.","x-stripeMostCommon":["files"]},"company_license":{"title":"documents_param","type":"object","properties":{"files":{"type":"array","description":"One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.","items":{"maxLength":500,"type":"string"}}},"description":"One or more documents that demonstrate proof of a company's license to operate.","x-stripeMostCommon":["files"]},"company_memorandum_of_association":{"title":"documents_param","type":"object","properties":{"files":{"type":"array","description":"One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.","items":{"maxLength":500,"type":"string"}}},"description":"One or more documents showing the company's Memorandum of Association.","x-stripeMostCommon":["files"]},"company_ministerial_decree":{"title":"documents_param","type":"object","properties":{"files":{"type":"array","description":"One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.","items":{"maxLength":500,"type":"string"}}},"description":"(Certain countries only) One or more documents showing the ministerial decree legalizing the company's establishment.","x-stripeMostCommon":["files"]},"company_registration_verification":{"title":"documents_param","type":"object","properties":{"files":{"type":"array","description":"One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.","items":{"maxLength":500,"type":"string"}}},"description":"One or more documents that demonstrate proof of a company's registration with the appropriate local authorities.","x-stripeMostCommon":["files"]},"company_tax_id_verification":{"title":"documents_param","type":"object","properties":{"files":{"type":"array","description":"One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.","items":{"maxLength":500,"type":"string"}}},"description":"One or more documents that demonstrate proof of a company's tax ID.","x-stripeMostCommon":["files"]},"proof_of_address":{"title":"documents_param","type":"object","properties":{"files":{"type":"array","description":"One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.","items":{"maxLength":500,"type":"string"}}},"description":"One or more documents that demonstrate proof of address.","x-stripeMostCommon":["files"]},"proof_of_registration":{"title":"signer_param","type":"object","properties":{"files":{"type":"array","description":"One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.","items":{"maxLength":500,"type":"string"}},"signer":{"title":"signer_name_param","type":"object","properties":{"person":{"maxLength":5000,"type":"string","description":"The token of the person signing the document, if applicable."}},"description":"Information regarding the person signing the document if applicable.","x-stripeMostCommon":["person"]}},"description":"One or more documents showing the company’s proof of registration with the national business registry.","x-stripeMostCommon":["files","signer"]},"proof_of_ultimate_beneficial_ownership":{"title":"signer_param","type":"object","properties":{"files":{"type":"array","description":"One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.","items":{"maxLength":500,"type":"string"}},"signer":{"title":"signer_name_param","type":"object","properties":{"person":{"maxLength":5000,"type":"string","description":"The token of the person signing the document, if applicable."}},"description":"Information regarding the person signing the document if applicable.","x-stripeMostCommon":["person"]}},"description":"One or more documents that demonstrate proof of ultimate beneficial ownership.","x-stripeMostCommon":["files","signer"]}},"description":"Documents that may be submitted to satisfy various informational requests.","x-stripeMostCommon":["bank_account_ownership_verification","company_address_verification","company_license","company_memorandum_of_association","company_ministerial_decree","company_registration_verification","company_tax_id_verification","company_vat_id_verification","proof_of_address","proof_of_registration","proof_of_ultimate_beneficial_ownership"]},"email":{"type":"string","description":"The email address of the account holder. This is only to make the account easier to identify to you. If [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts, Stripe doesn't email the account without your consent."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"external_account":{"maxLength":5000,"type":"string","description":"A card or bank account to attach to the account for receiving [payouts](/connect/bank-debit-card-payouts) (you won’t be able to use it for top-ups). You can provide either a token, like the ones returned by [Stripe.js](/js), or a dictionary, as documented in the `external_account` parameter for [bank account](/api#account_create_bank_account) creation.Retrieves the details of an account.
","operationId":"GetAccountsAccount","parameters":[{"name":"account","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/account"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Update an account","description":"Updates a connected account by setting the values of the parameters passed. Any parameters not provided are\nleft unchanged.
\n\nFor accounts where controller.requirement_collection\nis application, which includes Custom accounts, you can update any information on the account.
For accounts where controller.requirement_collection\nis stripe, which includes Standard and Express accounts, you can update all information until you create\nan Account Link or Account Session to start Connect onboarding,\nafter which some properties can no longer be updated.
To update your own account, use the Dashboard. Refer to our\nConnect documentation to learn more about updating accounts.
","operationId":"PostAccountsAccount","parameters":[{"name":"account","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"account_token":{"maxLength":5000,"type":"string","description":"An [account token](https://api.stripe.com#create_account_token), used to securely provide details to the account."},"business_profile":{"title":"business_profile_update_specs","type":"object","properties":{"annual_revenue":{"title":"annual_revenue_specs","required":["amount","currency","fiscal_year_end"],"type":"object","properties":{"amount":{"type":"integer","description":"A non-negative integer representing the amount in the [smallest currency unit](/currencies#zero-decimal)."},"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"fiscal_year_end":{"maxLength":5000,"type":"string","description":"The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023."}},"description":"The applicant's gross annual revenue for its preceding fiscal year.","x-stripeMostCommon":["amount","currency","fiscal_year_end"]},"estimated_worker_count":{"type":"integer","description":"An estimated upper bound of employees, contractors, vendors, etc. currently working for the business."},"mcc":{"maxLength":4,"type":"string","description":"[The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide."},"minority_owned_business_designation":{"type":"array","description":"Whether the business is a minority-owned, women-owned, and/or LGBTQI+ -owned business.","items":{"type":"string","enum":["lgbtqi_owned_business","minority_owned_business","none_of_these_apply","prefer_not_to_answer","women_owned_business"]}},"monthly_estimated_revenue":{"title":"monthly_estimated_revenue_specs","required":["amount","currency"],"type":"object","properties":{"amount":{"type":"integer","description":"A non-negative integer representing how much to charge in the [smallest currency unit](/currencies#zero-decimal)."},"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"}},"description":"An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.","x-stripeMostCommon":["amount","currency"]},"name":{"maxLength":5000,"type":"string","description":"The customer-facing business name."},"product_description":{"maxLength":40000,"type":"string","description":"Internal-only description of the product sold by, or service provided by, the business. Used by Stripe for risk and underwriting purposes."},"support_address":{"title":"address_specs","type":"object","properties":{"city":{"maxLength":100,"type":"string","description":"City, district, suburb, town, or village."},"country":{"maxLength":5000,"type":"string","description":"Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."},"line1":{"maxLength":200,"type":"string","description":"Address line 1, such as the street, PO Box, or company name."},"line2":{"maxLength":200,"type":"string","description":"Address line 2, such as the apartment, suite, unit, or building."},"postal_code":{"maxLength":5000,"type":"string","description":"ZIP or postal code."},"state":{"maxLength":5000,"type":"string","description":"State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))."}},"description":"A publicly available mailing address for sending support issues to.","x-stripeMostCommon":["city","country","line1","line2","postal_code","state"]},"support_email":{"type":"string","description":"A publicly available email address for sending support issues to."},"support_phone":{"maxLength":5000,"type":"string","description":"A publicly available phone number to call with support issues."},"support_url":{"description":"A publicly available website for handling support issues.","anyOf":[{"type":"string"},{"type":"string","enum":[""]}]},"url":{"type":"string","description":"The business's publicly available website."}},"description":"Business information about the account.","x-stripeMostCommon":["annual_revenue","customer_regions","estimated_worker_count","funding_source","industry","mcc","minority_owned_business_designation","monthly_estimated_revenue","name","payment_collection_methods","privacy_policy_url","product_description","singapore_account_activity_survey","specified_commercial_transactions_act_url","support_address","support_email","support_phone","support_url","terms_of_service_url","url","url_opt_out_reason"]},"business_type":{"type":"string","description":"The business type. Once you create an [Account Link](/api/account_links) or [Account Session](/api/account_sessions), this property can only be updated for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.","enum":["company","government_entity","individual","non_profit"],"x-stripeBypassValidation":true},"capabilities":{"title":"capabilities_param","type":"object","properties":{"acss_debit_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The acss_debit_payments capability.","x-stripeMostCommon":["preview","requested"]},"affirm_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The affirm_payments capability.","x-stripeMostCommon":["preview","requested"]},"afterpay_clearpay_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The afterpay_clearpay_payments capability.","x-stripeMostCommon":["preview","requested"]},"alma_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The alma_payments capability.","x-stripeMostCommon":["preview","requested"]},"amazon_pay_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The amazon_pay_payments capability.","x-stripeMostCommon":["preview","requested"]},"au_becs_debit_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The au_becs_debit_payments capability.","x-stripeMostCommon":["preview","requested"]},"bacs_debit_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The bacs_debit_payments capability.","x-stripeMostCommon":["preview","requested"]},"bancontact_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The bancontact_payments capability.","x-stripeMostCommon":["preview","requested"]},"bank_transfer_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The bank_transfer_payments capability.","x-stripeMostCommon":["preview","requested"]},"billie_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The billie_payments capability.","x-stripeMostCommon":["preview","requested"]},"blik_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The blik_payments capability.","x-stripeMostCommon":["preview","requested"]},"boleto_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The boleto_payments capability.","x-stripeMostCommon":["preview","requested"]},"card_issuing":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The card_issuing capability.","x-stripeMostCommon":["preview","requested"]},"card_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The card_payments capability.","x-stripeMostCommon":["preview","requested"]},"cartes_bancaires_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The cartes_bancaires_payments capability.","x-stripeMostCommon":["preview","requested"]},"cashapp_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The cashapp_payments capability.","x-stripeMostCommon":["preview","requested"]},"crypto_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The crypto_payments capability.","x-stripeMostCommon":["preview","requested"]},"eps_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The eps_payments capability.","x-stripeMostCommon":["preview","requested"]},"fpx_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The fpx_payments capability.","x-stripeMostCommon":["preview","requested"]},"gb_bank_transfer_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The gb_bank_transfer_payments capability.","x-stripeMostCommon":["preview","requested"]},"giropay_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The giropay_payments capability.","x-stripeMostCommon":["preview","requested"]},"grabpay_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The grabpay_payments capability.","x-stripeMostCommon":["preview","requested"]},"ideal_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The ideal_payments capability.","x-stripeMostCommon":["preview","requested"]},"india_international_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The india_international_payments capability.","x-stripeMostCommon":["preview","requested"]},"jcb_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The jcb_payments capability.","x-stripeMostCommon":["preview","requested"]},"jp_bank_transfer_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The jp_bank_transfer_payments capability.","x-stripeMostCommon":["preview","requested"]},"kakao_pay_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The kakao_pay_payments capability.","x-stripeMostCommon":["preview","requested"]},"klarna_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The klarna_payments capability.","x-stripeMostCommon":["preview","requested"]},"konbini_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The konbini_payments capability.","x-stripeMostCommon":["preview","requested"]},"kr_card_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The kr_card_payments capability.","x-stripeMostCommon":["preview","requested"]},"legacy_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The legacy_payments capability.","x-stripeMostCommon":["preview","requested"]},"link_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The link_payments capability.","x-stripeMostCommon":["preview","requested"]},"mb_way_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The mb_way_payments capability.","x-stripeMostCommon":["preview","requested"]},"mobilepay_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The mobilepay_payments capability.","x-stripeMostCommon":["preview","requested"]},"multibanco_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The multibanco_payments capability.","x-stripeMostCommon":["preview","requested"]},"mx_bank_transfer_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The mx_bank_transfer_payments capability.","x-stripeMostCommon":["preview","requested"]},"naver_pay_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The naver_pay_payments capability.","x-stripeMostCommon":["preview","requested"]},"nz_bank_account_becs_debit_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The nz_bank_account_becs_debit_payments capability.","x-stripeMostCommon":["preview","requested"]},"oxxo_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The oxxo_payments capability.","x-stripeMostCommon":["preview","requested"]},"p24_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The p24_payments capability.","x-stripeMostCommon":["preview","requested"]},"pay_by_bank_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The pay_by_bank_payments capability.","x-stripeMostCommon":["preview","requested"]},"payco_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The payco_payments capability.","x-stripeMostCommon":["preview","requested"]},"paynow_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The paynow_payments capability.","x-stripeMostCommon":["preview","requested"]},"payto_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The payto_payments capability.","x-stripeMostCommon":["preview","requested"]},"pix_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The pix_payments capability.","x-stripeMostCommon":["preview","requested"]},"promptpay_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The promptpay_payments capability.","x-stripeMostCommon":["preview","requested"]},"revolut_pay_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The revolut_pay_payments capability.","x-stripeMostCommon":["preview","requested"]},"samsung_pay_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The samsung_pay_payments capability.","x-stripeMostCommon":["preview","requested"]},"satispay_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The satispay_payments capability.","x-stripeMostCommon":["preview","requested"]},"sepa_bank_transfer_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The sepa_bank_transfer_payments capability.","x-stripeMostCommon":["preview","requested"]},"sepa_debit_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The sepa_debit_payments capability.","x-stripeMostCommon":["preview","requested"]},"sofort_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The sofort_payments capability.","x-stripeMostCommon":["preview","requested"]},"swish_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The swish_payments capability.","x-stripeMostCommon":["preview","requested"]},"tax_reporting_us_1099_k":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The tax_reporting_us_1099_k capability.","x-stripeMostCommon":["preview","requested"]},"tax_reporting_us_1099_misc":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The tax_reporting_us_1099_misc capability.","x-stripeMostCommon":["preview","requested"]},"transfers":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The transfers capability.","x-stripeMostCommon":["preview","requested"]},"treasury":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The treasury capability.","x-stripeMostCommon":["preview","requested"]},"twint_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The twint_payments capability.","x-stripeMostCommon":["preview","requested"]},"upi_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The upi_payments capability.","x-stripeMostCommon":["preview","requested"]},"us_bank_account_ach_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The us_bank_account_ach_payments capability.","x-stripeMostCommon":["preview","requested"]},"us_bank_transfer_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The us_bank_transfer_payments capability.","x-stripeMostCommon":["preview","requested"]},"zip_payments":{"title":"capability_param","type":"object","properties":{"requested":{"type":"boolean","description":"Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays."}},"description":"The zip_payments capability.","x-stripeMostCommon":["preview","requested"]}},"description":"Each key of the dictionary represents a capability, and each capability\nmaps to its settings (for example, whether it has been requested or not). Each\ncapability is inactive until you have provided its specific\nrequirements and Stripe has verified them. An account might have some\nof its requested capabilities be active and some be inactive.\n\nRequired when [account.controller.stripe_dashboard.type](/api/accounts/create#create_account-controller-dashboard-type)\nis `none`, which includes Custom accounts.","x-stripeMostCommon":["ach_debit_payments","acss_debit_payments","affirm_payments","afterpay_clearpay_payments","agentic_payments","alipay_payments","alma_payments","amazon_pay_payments","app_distribution","apple_pay_later_payments","au_bank_transfer_payments","au_becs_debit_payments","automatic_indirect_tax","bacs_debit_payments","bacs_debit_stripe_sun_payments","bancontact_payments","bank_transfer_payments","beneficiary_transfers","billie_payments","bizum_payments","blik_payments","boleto_payments","ca_bank_transfer_payments","capchase_pay_payments","card_issuing","card_issuing_charge_card","card_issuing_charge_card_fifth_third","card_issuing_charge_card_stripe","card_issuing_consumer","card_issuing_consumer_revolving_credit_card_celtic","card_issuing_fa_prepaid_card_cross_river","card_issuing_fa_prepaid_card_lead","card_issuing_fa_spend_card_celtic","card_issuing_fa_spend_card_stripe","card_issuing_prepaid_card_cross_river","card_issuing_prepaid_card_lead","card_issuing_spend_card_cross_river","card_payments","cartes_bancaires_payments","cash_advances","cashapp_payments","click_to_pay_payments","crypto_financial_account_recipients","crypto_financial_accounts","crypto_payments","crypto_transfers","crypto_transfers_platform","demo_pay_payments","dispute_arbitration","duitnow_payments","dummy_passthrough_card_payments","edenred_payments","eps_payments","fpx_payments","fr_meal_voucher_conecs_payments","fund_and_send","funding_credit","gb_bank_transfer_payments","getbalance_payments","giropay_payments","gopay_payments","grabpay_payments","id_bank_transfer_payments","id_bank_transfer_payments_bca","id_credit_transfer_payments","ideal_payments","india_international_payments","jcb_payments","jp_bank_transfer_payments","kakao_pay_payments","klarna_international_payments","klarna_payments","konbini_payments","kr_card_payments","kr_market_payments","kriya_payments","legacy_payments","link_payments","loans","mb_way_payments","mobilepay_payments","momo_payments","mondu_payments","multibanco_payments","mx_bank_transfer_payments","naver_pay_payments","netbanking_payments","ng_bank_payments","ng_bank_transfer_payments","ng_card_payments","ng_market_payments","ng_ussd_payments","ng_wallet_payments","nz_bank_account_becs_debit_payments","nz_bank_transfer_payments","octopus_payments","oxxo_payments","p24_payments","pay_by_bank_payments","payco_payments","payments","paynow_payments","payouts","paypal_payments","paypay_payments","payto_payments","pix_payments","projects","promptpay_payments","qris_payments","rechnung_payments","revolut_pay_payments","samsung_pay_payments","satispay_payments","scalapay_payments","sepa_bank_transfer_payments","sepa_debit_payments","sequra_payments","shop_pay_payments","shopeepay_payments","sofort_payments","south_korea_market_payments","storer_holds_currencies_eur","storer_holds_currencies_eurc","storer_holds_currencies_gbp","storer_holds_currencies_usd","storer_holds_currencies_usdc","stripe_balance_payments","stripe_funded_fee_credits","submerchant_payments","sunbit_payments","swish_payments","tax_reporting_us_1099_k","tax_reporting_us_1099_misc","transfers","treasury","treasury_evolve","treasury_fifth_third","treasury_goldman_sachs","twint_payments","upi_payments","us_bank_account_ach_payments","us_bank_transfer_payments","us_cash_voucher_transfers","us_paper_check_payments","vipps_payments","wechat_pay_payments","wero_payments","zip_payments"]},"company":{"title":"company_update_specs","type":"object","properties":{"address":{"title":"legal_entity_and_kyc_address_specs","type":"object","properties":{"city":{"maxLength":100,"type":"string","description":"City, district, suburb, town, or village."},"country":{"maxLength":5000,"type":"string","description":"Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."},"line1":{"maxLength":200,"type":"string","description":"Address line 1, such as the street, PO Box, or company name."},"line2":{"maxLength":200,"type":"string","description":"Address line 2, such as the apartment, suite, unit, or building."},"postal_code":{"maxLength":5000,"type":"string","description":"ZIP or postal code."},"state":{"maxLength":5000,"type":"string","description":"State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))."}},"description":"The company's primary address.","x-stripeMostCommon":["city","country","line1","line2","postal_code","state"]},"address_kana":{"title":"japan_address_kana_specs","type":"object","properties":{"city":{"maxLength":5000,"type":"string","description":"City or ward."},"country":{"maxLength":5000,"type":"string","description":"Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."},"line1":{"maxLength":5000,"type":"string","description":"Block or building number."},"line2":{"maxLength":5000,"type":"string","description":"Building details."},"postal_code":{"maxLength":5000,"type":"string","description":"Postal code."},"state":{"maxLength":5000,"type":"string","description":"Prefecture."},"town":{"maxLength":5000,"type":"string","description":"Town or cho-me."}},"description":"The Kana variation of the company's primary address (Japan only).","x-stripeMostCommon":["city","country","db_code","line1","line2","postal_code","state","town"]},"address_kanji":{"title":"japan_address_kanji_specs","type":"object","properties":{"city":{"maxLength":5000,"type":"string","description":"City or ward."},"country":{"maxLength":5000,"type":"string","description":"Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."},"line1":{"maxLength":5000,"type":"string","description":"Block or building number."},"line2":{"maxLength":5000,"type":"string","description":"Building details."},"postal_code":{"maxLength":5000,"type":"string","description":"Postal code."},"state":{"maxLength":5000,"type":"string","description":"Prefecture."},"town":{"maxLength":5000,"type":"string","description":"Town or cho-me."}},"description":"The Kanji variation of the company's primary address (Japan only).","x-stripeMostCommon":["city","country","db_code","line1","line2","postal_code","state","town"]},"directors_provided":{"type":"boolean","description":"Whether the company's directors have been provided. Set this Boolean to `true` after creating all the company's directors with [the Persons API](/api/persons) for accounts with a `relationship.director` requirement. This value is not automatically set to `true` after creating directors, so it needs to be updated to indicate all directors have been provided."},"directorship_declaration":{"title":"company_directorship_declaration","type":"object","properties":{"date":{"type":"integer","description":"The Unix timestamp marking when the directorship declaration attestation was made.","format":"unix-time"},"ip":{"type":"string","description":"The IP address from which the directorship declaration attestation was made."},"user_agent":{"maxLength":5000,"type":"string","description":"The user agent of the browser from which the directorship declaration attestation was made."}},"description":"This hash is used to attest that the directors information provided to Stripe is both current and correct.","x-stripeMostCommon":["date","ip","user_agent"]},"executives_provided":{"type":"boolean","description":"Whether the company's executives have been provided. Set this Boolean to `true` after creating all the company's executives with [the Persons API](/api/persons) for accounts with a `relationship.executive` requirement."},"export_license_id":{"maxLength":5000,"type":"string","description":"The export license ID number of the company, also referred as Import Export Code (India only)."},"export_purpose_code":{"maxLength":5000,"type":"string","description":"The purpose code to use for export transactions (India only)."},"name":{"maxLength":100,"type":"string","description":"The company's legal name."},"name_kana":{"maxLength":100,"type":"string","description":"The Kana variation of the company's legal name (Japan only)."},"name_kanji":{"maxLength":100,"type":"string","description":"The Kanji variation of the company's legal name (Japan only)."},"owners_provided":{"type":"boolean","description":"Whether the company's owners have been provided. Set this Boolean to `true` after creating all the company's owners with [the Persons API](/api/persons) for accounts with a `relationship.owner` requirement."},"ownership_declaration":{"title":"company_ownership_declaration","type":"object","properties":{"date":{"type":"integer","description":"The Unix timestamp marking when the beneficial owner attestation was made.","format":"unix-time"},"ip":{"type":"string","description":"The IP address from which the beneficial owner attestation was made."},"user_agent":{"maxLength":5000,"type":"string","description":"The user agent of the browser from which the beneficial owner attestation was made."}},"description":"This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.","x-stripeMostCommon":["date","ip","user_agent"]},"ownership_exemption_reason":{"type":"string","description":"This value is used to determine if a business is exempt from providing ultimate beneficial owners. See [this support article](https://support.stripe.com/questions/exemption-from-providing-ownership-details) and [changelog](https://docs.stripe.com/changelog/acacia/2025-01-27/ownership-exemption-reason-accounts-api) for more details.","enum":["","qualified_entity_exceeds_ownership_threshold","qualifies_as_financial_institution"]},"phone":{"maxLength":5000,"type":"string","description":"The company's phone number (used for verification)."},"registration_date":{"anyOf":[{"title":"registration_date_specs","required":["day","month","year"],"type":"object","properties":{"day":{"type":"integer","description":"The day of registration, between 1 and 31."},"month":{"type":"integer","description":"The month of registration, between 1 and 12."},"year":{"type":"integer","description":"The four-digit year of registration."}},"x-stripeMostCommon":["day","month","year"]},{"type":"string","enum":[""]}]},"registration_number":{"maxLength":5000,"type":"string","description":"The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong)."},"representative_declaration":{"title":"company_representative_declaration","type":"object","properties":{"date":{"type":"integer","description":"The Unix timestamp marking when the representative declaration attestation was made.","format":"unix-time"},"ip":{"type":"string","description":"The IP address from which the representative declaration attestation was made."},"user_agent":{"maxLength":5000,"type":"string","description":"The user agent of the browser from which the representative declaration attestation was made."}},"description":"This hash is used to attest that the representative is authorized to act as the representative of their legal entity.","x-stripeMostCommon":["date","ip","user_agent"]},"structure":{"type":"string","description":"The category identifying the legal structure of the company or legal entity. See [Business structure](/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value.","enum":["","free_zone_establishment","free_zone_llc","government_instrumentality","governmental_unit","incorporated_non_profit","incorporated_partnership","limited_liability_partnership","llc","multi_member_llc","private_company","private_corporation","private_partnership","public_company","public_corporation","public_partnership","registered_charity","single_member_llc","sole_establishment","sole_proprietorship","tax_exempt_government_instrumentality","unincorporated_association","unincorporated_non_profit","unincorporated_partnership"],"x-stripeBypassValidation":true},"tax_id":{"maxLength":5000,"type":"string","description":"The business ID number of the company, as appropriate for the company’s country. (Examples are an Employer ID Number in the U.S., a Business Number in Canada, or a Company Number in the UK.)"},"tax_id_registrar":{"maxLength":5000,"type":"string","description":"The jurisdiction in which the `tax_id` is registered (Germany-based companies only)."},"vat_id":{"maxLength":5000,"type":"string","description":"The VAT number of the company."},"verification":{"title":"verification_specs","type":"object","properties":{"document":{"title":"verification_document_specs","type":"object","properties":{"back":{"maxLength":500,"type":"string","description":"The back of a document returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size."},"front":{"maxLength":500,"type":"string","description":"The front of a document returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size."}},"description":"A document verifying the business.","x-stripeMostCommon":["back","front"]}},"description":"Information on the verification state of the company.","x-stripeMostCommon":["document"]}},"description":"Information about the company or business. This field is available for any `business_type`. Once you create an [Account Link](/api/account_links) or [Account Session](/api/account_sessions), this property can only be updated for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.","x-stripeMostCommon":["address","address_kana","address_kanji","contact_point_verification_address","cross_border_transaction_classifications","directors_provided","directorship_declaration","executives_provided","export_license_id","export_purpose_code","fiscal_code","invoicing_recipient_code","name","name_kana","name_kanji","owners_provided","ownership_declaration","ownership_exemption_reason","pan","phone","registered_email","registration_date","registration_number","stock_data","structure","tax_deduction_account_number","tax_id","tax_id_registrar","trust_owned","vat_id","vat_registration_status","verification"]},"default_currency":{"type":"string","description":"Three-letter ISO currency code representing the default currency for the account. This must be a currency that [Stripe supports in the account's country](https://docs.stripe.com/payouts).","format":"currency"},"documents":{"title":"documents_specs","type":"object","properties":{"bank_account_ownership_verification":{"title":"documents_param","type":"object","properties":{"files":{"type":"array","description":"One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.","items":{"maxLength":500,"type":"string"}}},"description":"One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the account’s primary active bank account that displays the last 4 digits of the account number, either a statement or a check.","x-stripeMostCommon":["files"]},"company_license":{"title":"documents_param","type":"object","properties":{"files":{"type":"array","description":"One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.","items":{"maxLength":500,"type":"string"}}},"description":"One or more documents that demonstrate proof of a company's license to operate.","x-stripeMostCommon":["files"]},"company_memorandum_of_association":{"title":"documents_param","type":"object","properties":{"files":{"type":"array","description":"One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.","items":{"maxLength":500,"type":"string"}}},"description":"One or more documents showing the company's Memorandum of Association.","x-stripeMostCommon":["files"]},"company_ministerial_decree":{"title":"documents_param","type":"object","properties":{"files":{"type":"array","description":"One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.","items":{"maxLength":500,"type":"string"}}},"description":"(Certain countries only) One or more documents showing the ministerial decree legalizing the company's establishment.","x-stripeMostCommon":["files"]},"company_registration_verification":{"title":"documents_param","type":"object","properties":{"files":{"type":"array","description":"One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.","items":{"maxLength":500,"type":"string"}}},"description":"One or more documents that demonstrate proof of a company's registration with the appropriate local authorities.","x-stripeMostCommon":["files"]},"company_tax_id_verification":{"title":"documents_param","type":"object","properties":{"files":{"type":"array","description":"One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.","items":{"maxLength":500,"type":"string"}}},"description":"One or more documents that demonstrate proof of a company's tax ID.","x-stripeMostCommon":["files"]},"proof_of_address":{"title":"documents_param","type":"object","properties":{"files":{"type":"array","description":"One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.","items":{"maxLength":500,"type":"string"}}},"description":"One or more documents that demonstrate proof of address.","x-stripeMostCommon":["files"]},"proof_of_registration":{"title":"signer_param","type":"object","properties":{"files":{"type":"array","description":"One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.","items":{"maxLength":500,"type":"string"}},"signer":{"title":"signer_name_param","type":"object","properties":{"person":{"maxLength":5000,"type":"string","description":"The token of the person signing the document, if applicable."}},"description":"Information regarding the person signing the document if applicable.","x-stripeMostCommon":["person"]}},"description":"One or more documents showing the company’s proof of registration with the national business registry.","x-stripeMostCommon":["files","signer"]},"proof_of_ultimate_beneficial_ownership":{"title":"signer_param","type":"object","properties":{"files":{"type":"array","description":"One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.","items":{"maxLength":500,"type":"string"}},"signer":{"title":"signer_name_param","type":"object","properties":{"person":{"maxLength":5000,"type":"string","description":"The token of the person signing the document, if applicable."}},"description":"Information regarding the person signing the document if applicable.","x-stripeMostCommon":["person"]}},"description":"One or more documents that demonstrate proof of ultimate beneficial ownership.","x-stripeMostCommon":["files","signer"]}},"description":"Documents that may be submitted to satisfy various informational requests.","x-stripeMostCommon":["bank_account_ownership_verification","company_address_verification","company_license","company_memorandum_of_association","company_ministerial_decree","company_registration_verification","company_tax_id_verification","company_vat_id_verification","proof_of_address","proof_of_registration","proof_of_ultimate_beneficial_ownership"]},"email":{"type":"string","description":"The email address of the account holder. This is only to make the account easier to identify to you. If [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts, Stripe doesn't email the account without your consent."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"external_account":{"maxLength":5000,"type":"string","description":"A card or bank account to attach to the account for receiving [payouts](/connect/bank-debit-card-payouts) (you won’t be able to use it for top-ups). You can provide either a token, like the ones returned by [Stripe.js](/js), or a dictionary, as documented in the `external_account` parameter for [bank account](/api#account_create_bank_account) creation.With Connect, you can delete accounts you manage.
\n\nTest-mode accounts can be deleted at any time.
\n\nLive-mode accounts that have access to the standard dashboard and Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. All other Live-mode accounts, can be deleted when all balances are zero.
\n\nIf you want to delete your own account, use the account information tab in your account settings instead.
","operationId":"DeleteAccountsAccount","parameters":[{"name":"account","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/deleted_account"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/accounts/{account}/capabilities":{"get":{"summary":"List all account capabilities","description":"Returns a list of capabilities associated with the account. The capabilities are returned sorted by creation date, with the most recent capability appearing first.
","operationId":"GetAccountsAccountCapabilities","parameters":[{"name":"account","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"ListAccountCapability","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/capability"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/accounts/{account}/capabilities/{capability}":{"get":{"summary":"Retrieve an Account Capability","description":"Retrieves information about the specified Account Capability.
","operationId":"GetAccountsAccountCapabilitiesCapability","parameters":[{"name":"account","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"capability","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/capability"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Update an Account Capability","description":"Updates an existing Account Capability. Request or remove a capability by updating its requested parameter.
List external accounts for an account.
","operationId":"GetAccountsAccountExternalAccounts","parameters":[{"name":"account","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"object","in":"query","description":"Filter external accounts according to a particular object type.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string","enum":["bank_account","card"],"x-stripeBypassValidation":true,"x-stripeParam":{"class_name":"object_type"}}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"ExternalAccountList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","description":"The list contains all external accounts that have been attached to the Stripe account. These may be bank accounts or cards.","items":{"$ref":"#/components/schemas/external_account"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create an external account","description":"Create an external account for a given account.
","operationId":"PostAccountsAccountExternalAccounts","parameters":[{"name":"account","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["external_account"],"type":"object","properties":{"default_for_currency":{"type":"boolean","description":"When set to true, or if this is the first external account added in this currency, this account becomes the default external account for its currency."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"external_account":{"maxLength":5000,"type":"string","description":"A token, like the ones returned by [Stripe.js](https://docs.stripe.com/js) or a dictionary containing a user's external account details (with the options shown below). Please refer to full [documentation](https://stripe.com/docs/api/external_accounts) instead.","x-stripeBypassValidation":true},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."}},"additionalProperties":false,"x-stripeMostCommon":["external_account","metadata"]},"encoding":{"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/external_account"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/accounts/{account}/external_accounts/{id}":{"get":{"summary":"Retrieve an external account","description":"Retrieve a specified external account for a given account.
","operationId":"GetAccountsAccountExternalAccountsId","parameters":[{"name":"account","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"id","in":"path","description":"Unique identifier for the external account to be retrieved.","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/external_account"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"description":"Updates the metadata, account holder name, account holder type of a bank account belonging to\na connected account and optionally sets it as the default for its currency. Other bank account\ndetails are not editable by design.
\n\nYou can only update bank accounts when account.controller.requirement_collection is application, which includes Custom accounts.
You can re-enable a disabled bank account by performing an update call without providing any\narguments or changes.
","operationId":"PostAccountsAccountExternalAccountsId","parameters":[{"name":"account","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"id","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"account_holder_name":{"maxLength":5000,"type":"string","description":"The name of the person or business that owns the bank account."},"account_holder_type":{"maxLength":5000,"type":"string","description":"The type of entity that holds the account. This can be either `individual` or `company`.","enum":["","company","individual"]},"account_type":{"maxLength":5000,"type":"string","description":"The bank account type. This can only be `checking` or `savings` in most countries. In Japan, this can only be `futsu` or `toza`.","enum":["checking","futsu","savings","toza"]},"address_city":{"maxLength":5000,"type":"string","description":"City/District/Suburb/Town/Village."},"address_country":{"maxLength":5000,"type":"string","description":"Billing address country, if provided when creating card."},"address_line1":{"maxLength":5000,"type":"string","description":"Address line 1 (Street address/PO Box/Company name)."},"address_line2":{"maxLength":5000,"type":"string","description":"Address line 2 (Apartment/Suite/Unit/Building)."},"address_state":{"maxLength":5000,"type":"string","description":"State/County/Province/Region."},"address_zip":{"maxLength":5000,"type":"string","description":"ZIP or postal code."},"default_for_currency":{"type":"boolean","description":"When set to true, this becomes the default external account for its currency."},"documents":{"title":"external_account_documents_param","type":"object","properties":{"bank_account_ownership_verification":{"title":"documents_param","type":"object","properties":{"files":{"type":"array","description":"One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.","items":{"maxLength":500,"type":"string"}}},"description":"One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the bank account that displays the last 4 digits of the account number, either a statement or a check.","x-stripeMostCommon":["files"]}},"description":"Documents that may be submitted to satisfy various informational requests.","x-stripeMostCommon":["bank_account_ownership_verification"]},"exp_month":{"maxLength":5000,"type":"string","description":"Two digit number representing the card’s expiration month."},"exp_year":{"maxLength":5000,"type":"string","description":"Four digit number representing the card’s expiration year."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"name":{"maxLength":5000,"type":"string","description":"Cardholder name."}},"additionalProperties":false,"x-stripeMostCommon":["default_for_currency","metadata"]},"encoding":{"documents":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/external_account"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"delete":{"summary":"Delete an external account","description":"Delete a specified external account for a given account.
","operationId":"DeleteAccountsAccountExternalAccountsId","parameters":[{"name":"account","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"id","in":"path","description":"Unique identifier for the external account to be deleted.","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/deleted_external_account"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/accounts/{account}/login_links":{"post":{"summary":"Create a login link","description":"Creates a login link for a connected account to access the Express Dashboard.
\n\nYou can only create login links for accounts that use the Express Dashboard and are connected to your platform.
","operationId":"PostAccountsAccountLoginLinks","parameters":[{"name":"account","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}}},"additionalProperties":false},"encoding":{"expand":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/login_link"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/accounts/{account}/persons":{"get":{"summary":"List all persons","description":"Returns a list of people associated with the account’s legal entity. The people are returned sorted by creation date, with the most recent people appearing first.
","operationId":"GetAccountsAccountPersons","parameters":[{"name":"account","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"relationship","in":"query","description":"Filters on the list of people returned based on the person's relationship to the account's company.","required":false,"style":"deepObject","explode":true,"schema":{"title":"all_people_relationship_specs","type":"object","properties":{"authorizer":{"type":"boolean","description":"A filter on the list of people returned based on whether these people are authorizers of the account's representative."},"director":{"type":"boolean","description":"A filter on the list of people returned based on whether these people are directors of the account's company."},"executive":{"type":"boolean","description":"A filter on the list of people returned based on whether these people are executives of the account's company."},"legal_guardian":{"type":"boolean","description":"A filter on the list of people returned based on whether these people are legal guardians of the account's representative."},"owner":{"type":"boolean","description":"A filter on the list of people returned based on whether these people are owners of the account's company."},"representative":{"type":"boolean","description":"A filter on the list of people returned based on whether these people are the representative of the account's company."}},"x-stripeMostCommon":["authorizer","director","executive","legal_guardian","officer","owner","partner","representative"]}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"PersonList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/person"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create a person","description":"Creates a new person.
","operationId":"PostAccountsAccountPersons","parameters":[{"name":"account","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"additional_tos_acceptances":{"title":"person_additional_tos_acceptances_specs","type":"object","properties":{"account":{"title":"settings_terms_of_service_specs","type":"object","properties":{"date":{"type":"integer","description":"The Unix timestamp marking when the account representative accepted the service agreement.","format":"unix-time"},"ip":{"type":"string","description":"The IP address from which the account representative accepted the service agreement."},"user_agent":{"description":"The user agent of the browser from which the account representative accepted the service agreement.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]}},"description":"Details on the legal guardian's acceptance of the main Stripe service agreement.","x-stripeMostCommon":["date","ip","user_agent"]}},"description":"Details on the legal guardian's or authorizer's acceptance of the required Stripe agreements.","x-stripeMostCommon":["account","representative"]},"address":{"title":"legal_entity_and_kyc_address_specs","type":"object","properties":{"city":{"maxLength":100,"type":"string","description":"City, district, suburb, town, or village."},"country":{"maxLength":5000,"type":"string","description":"Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."},"line1":{"maxLength":200,"type":"string","description":"Address line 1, such as the street, PO Box, or company name."},"line2":{"maxLength":200,"type":"string","description":"Address line 2, such as the apartment, suite, unit, or building."},"postal_code":{"maxLength":5000,"type":"string","description":"ZIP or postal code."},"state":{"maxLength":5000,"type":"string","description":"State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))."}},"description":"The person's address.","x-stripeMostCommon":["city","country","line1","line2","postal_code","state"]},"address_kana":{"title":"japan_address_kana_specs","type":"object","properties":{"city":{"maxLength":5000,"type":"string","description":"City or ward."},"country":{"maxLength":5000,"type":"string","description":"Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."},"line1":{"maxLength":5000,"type":"string","description":"Block or building number."},"line2":{"maxLength":5000,"type":"string","description":"Building details."},"postal_code":{"maxLength":5000,"type":"string","description":"Postal code."},"state":{"maxLength":5000,"type":"string","description":"Prefecture."},"town":{"maxLength":5000,"type":"string","description":"Town or cho-me."}},"description":"The Kana variation of the person's address (Japan only).","x-stripeMostCommon":["city","country","db_code","line1","line2","postal_code","state","town"]},"address_kanji":{"title":"japan_address_kanji_specs","type":"object","properties":{"city":{"maxLength":5000,"type":"string","description":"City or ward."},"country":{"maxLength":5000,"type":"string","description":"Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."},"line1":{"maxLength":5000,"type":"string","description":"Block or building number."},"line2":{"maxLength":5000,"type":"string","description":"Building details."},"postal_code":{"maxLength":5000,"type":"string","description":"Postal code."},"state":{"maxLength":5000,"type":"string","description":"Prefecture."},"town":{"maxLength":5000,"type":"string","description":"Town or cho-me."}},"description":"The Kanji variation of the person's address (Japan only).","x-stripeMostCommon":["city","country","db_code","line1","line2","postal_code","state","town"]},"dob":{"description":"The person's date of birth.","anyOf":[{"title":"date_of_birth_specs","required":["day","month","year"],"type":"object","properties":{"day":{"type":"integer","description":"The day of birth, between 1 and 31."},"month":{"type":"integer","description":"The month of birth, between 1 and 12."},"year":{"type":"integer","description":"The four-digit year of birth."}},"x-stripeMostCommon":["day","month","year"]},{"type":"string","enum":[""]}]},"documents":{"title":"person_documents_specs","type":"object","properties":{"company_authorization":{"title":"documents_param","type":"object","properties":{"files":{"type":"array","description":"One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.","items":{"anyOf":[{"maxLength":500,"type":"string"},{"type":"string","enum":[""]}]}}},"description":"One or more documents that demonstrate proof that this person is authorized to represent the company.","x-stripeMostCommon":["files"]},"passport":{"title":"documents_param","type":"object","properties":{"files":{"type":"array","description":"One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.","items":{"anyOf":[{"maxLength":500,"type":"string"},{"type":"string","enum":[""]}]}}},"description":"One or more documents showing the person's passport page with photo and personal data.","x-stripeMostCommon":["files"]},"visa":{"title":"documents_param","type":"object","properties":{"files":{"type":"array","description":"One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.","items":{"anyOf":[{"maxLength":500,"type":"string"},{"type":"string","enum":[""]}]}}},"description":"One or more documents showing the person's visa required for living in the country where they are residing.","x-stripeMostCommon":["files"]}},"description":"Documents that may be submitted to satisfy various informational requests.","x-stripeMostCommon":["DASHBOARD_proof_of_liveness","company_authorization","passport","visa"]},"email":{"type":"string","description":"The person's email address."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"first_name":{"maxLength":5000,"type":"string","description":"The person's first name."},"first_name_kana":{"maxLength":5000,"type":"string","description":"The Kana variation of the person's first name (Japan only)."},"first_name_kanji":{"maxLength":5000,"type":"string","description":"The Kanji variation of the person's first name (Japan only)."},"full_name_aliases":{"description":"A list of alternate names or aliases that the person is known by.","anyOf":[{"type":"array","items":{"maxLength":5000,"type":"string"}},{"type":"string","enum":[""]}]},"gender":{"type":"string","description":"The person's gender (International regulations require either \"male\" or \"female\")."},"id_number":{"maxLength":5000,"type":"string","description":"The person's ID number, as appropriate for their country. For example, a social security number in the U.S., social insurance number in Canada, etc. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://docs.stripe.com/js/tokens/create_token?type=pii)."},"id_number_secondary":{"maxLength":5000,"type":"string","description":"The person's secondary ID number, as appropriate for their country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://docs.stripe.com/js/tokens/create_token?type=pii)."},"last_name":{"maxLength":5000,"type":"string","description":"The person's last name."},"last_name_kana":{"maxLength":5000,"type":"string","description":"The Kana variation of the person's last name (Japan only)."},"last_name_kanji":{"maxLength":5000,"type":"string","description":"The Kanji variation of the person's last name (Japan only)."},"maiden_name":{"maxLength":5000,"type":"string","description":"The person's maiden name."},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"nationality":{"maxLength":5000,"type":"string","description":"The country where the person is a national. Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)), or \"XX\" if unavailable."},"person_token":{"maxLength":5000,"type":"string","description":"A [person token](https://docs.stripe.com/connect/account-tokens), used to securely provide details to the person."},"phone":{"type":"string","description":"The person's phone number."},"political_exposure":{"type":"string","description":"Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction.","enum":["existing","none"]},"registered_address":{"title":"address_specs","type":"object","properties":{"city":{"maxLength":100,"type":"string","description":"City, district, suburb, town, or village."},"country":{"maxLength":5000,"type":"string","description":"Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."},"line1":{"maxLength":200,"type":"string","description":"Address line 1, such as the street, PO Box, or company name."},"line2":{"maxLength":200,"type":"string","description":"Address line 2, such as the apartment, suite, unit, or building."},"postal_code":{"maxLength":5000,"type":"string","description":"ZIP or postal code."},"state":{"maxLength":5000,"type":"string","description":"State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))."}},"description":"The person's registered address.","x-stripeMostCommon":["city","country","line1","line2","postal_code","state"]},"relationship":{"title":"relationship_specs","type":"object","properties":{"authorizer":{"type":"boolean","description":"Whether the person is the authorizer of the account's representative."},"director":{"type":"boolean","description":"Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations."},"executive":{"type":"boolean","description":"Whether the person has significant responsibility to control, manage, or direct the organization."},"legal_guardian":{"type":"boolean","description":"Whether the person is the legal guardian of the account's representative."},"owner":{"type":"boolean","description":"Whether the person is an owner of the account’s legal entity."},"percent_ownership":{"description":"The percent owned by the person of the account's legal entity.","anyOf":[{"type":"number"},{"type":"string","enum":[""]}]},"representative":{"type":"boolean","description":"Whether the person is authorized as the primary representative of the account. This is the person nominated by the business to provide information about themselves, and general information about the account. There can only be one representative at any given time. At the time the account is created, this person should be set to the person responsible for opening the account."},"title":{"maxLength":5000,"type":"string","description":"The person's title (e.g., CEO, Support Engineer)."}},"description":"The relationship that this person has with the account's legal entity.","x-stripeMostCommon":["authorizer","controller","director","executive","legal_guardian","officer","owner","partner","percent_ownership","representative","title"]},"ssn_last_4":{"type":"string","description":"The last four digits of the person's Social Security number (U.S. only)."},"us_cfpb_data":{"title":"us_cfpb_data_specs","type":"object","properties":{"ethnicity_details":{"title":"us_cfpb_ethnicity_details_specs","type":"object","properties":{"ethnicity":{"type":"array","description":"The persons ethnicity","items":{"type":"string","enum":["cuban","hispanic_or_latino","mexican","not_hispanic_or_latino","other_hispanic_or_latino","prefer_not_to_answer","puerto_rican"]}},"ethnicity_other":{"maxLength":5000,"type":"string","description":"Please specify your origin, when other is selected."}},"description":"The persons ethnicity details","x-stripeMostCommon":["ethnicity","ethnicity_other"]},"race_details":{"title":"us_cfpb_race_details_specs","type":"object","properties":{"race":{"type":"array","description":"The persons race.","items":{"type":"string","enum":["african_american","american_indian_or_alaska_native","asian","asian_indian","black_or_african_american","chinese","ethiopian","filipino","guamanian_or_chamorro","haitian","jamaican","japanese","korean","native_hawaiian","native_hawaiian_or_other_pacific_islander","nigerian","other_asian","other_black_or_african_american","other_pacific_islander","prefer_not_to_answer","samoan","somali","vietnamese","white"]}},"race_other":{"maxLength":5000,"type":"string","description":"Please specify your race, when other is selected."}},"description":"The persons race details","x-stripeMostCommon":["race","race_other"]},"self_identified_gender":{"maxLength":5000,"type":"string","description":"The persons self-identified gender"}},"description":"Demographic data related to the person.","x-stripeMostCommon":["ethnicity_details","race_details","self_identified_gender"]},"verification":{"title":"person_verification_specs","type":"object","properties":{"additional_document":{"title":"person_verification_document_specs","type":"object","properties":{"back":{"maxLength":500,"type":"string","description":"The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size."},"front":{"maxLength":500,"type":"string","description":"The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size."}},"description":"A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.","x-stripeMostCommon":["back","electronic_id","front"]},"document":{"title":"person_verification_document_specs","type":"object","properties":{"back":{"maxLength":500,"type":"string","description":"The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size."},"front":{"maxLength":500,"type":"string","description":"The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size."}},"description":"An identifying document, either a passport or local ID card.","x-stripeMostCommon":["back","electronic_id","front"]}},"description":"The person's verification status.","x-stripeMostCommon":["additional_document","document","proof_of_liveness"]}},"additionalProperties":false,"x-stripeMostCommon":["address","dob","email","first_name","id_number","last_name","metadata","phone","relationship","ssn_last_4"]},"encoding":{"additional_tos_acceptances":{"style":"deepObject","explode":true},"address":{"style":"deepObject","explode":true},"address_kana":{"style":"deepObject","explode":true},"address_kanji":{"style":"deepObject","explode":true},"dob":{"style":"deepObject","explode":true},"documents":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"full_name_aliases":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true},"registered_address":{"style":"deepObject","explode":true},"relationship":{"style":"deepObject","explode":true},"us_cfpb_data":{"style":"deepObject","explode":true},"verification":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/person"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/accounts/{account}/persons/{person}":{"get":{"summary":"Retrieve a person","description":"Retrieves an existing person.
","operationId":"GetAccountsAccountPersonsPerson","parameters":[{"name":"account","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"person","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/person"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Update a person","description":"Updates an existing person.
","operationId":"PostAccountsAccountPersonsPerson","parameters":[{"name":"account","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"person","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"additional_tos_acceptances":{"title":"person_additional_tos_acceptances_specs","type":"object","properties":{"account":{"title":"settings_terms_of_service_specs","type":"object","properties":{"date":{"type":"integer","description":"The Unix timestamp marking when the account representative accepted the service agreement.","format":"unix-time"},"ip":{"type":"string","description":"The IP address from which the account representative accepted the service agreement."},"user_agent":{"description":"The user agent of the browser from which the account representative accepted the service agreement.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]}},"description":"Details on the legal guardian's acceptance of the main Stripe service agreement.","x-stripeMostCommon":["date","ip","user_agent"]}},"description":"Details on the legal guardian's or authorizer's acceptance of the required Stripe agreements.","x-stripeMostCommon":["account","representative"]},"address":{"title":"legal_entity_and_kyc_address_specs","type":"object","properties":{"city":{"maxLength":100,"type":"string","description":"City, district, suburb, town, or village."},"country":{"maxLength":5000,"type":"string","description":"Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."},"line1":{"maxLength":200,"type":"string","description":"Address line 1, such as the street, PO Box, or company name."},"line2":{"maxLength":200,"type":"string","description":"Address line 2, such as the apartment, suite, unit, or building."},"postal_code":{"maxLength":5000,"type":"string","description":"ZIP or postal code."},"state":{"maxLength":5000,"type":"string","description":"State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))."}},"description":"The person's address.","x-stripeMostCommon":["city","country","line1","line2","postal_code","state"]},"address_kana":{"title":"japan_address_kana_specs","type":"object","properties":{"city":{"maxLength":5000,"type":"string","description":"City or ward."},"country":{"maxLength":5000,"type":"string","description":"Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."},"line1":{"maxLength":5000,"type":"string","description":"Block or building number."},"line2":{"maxLength":5000,"type":"string","description":"Building details."},"postal_code":{"maxLength":5000,"type":"string","description":"Postal code."},"state":{"maxLength":5000,"type":"string","description":"Prefecture."},"town":{"maxLength":5000,"type":"string","description":"Town or cho-me."}},"description":"The Kana variation of the person's address (Japan only).","x-stripeMostCommon":["city","country","db_code","line1","line2","postal_code","state","town"]},"address_kanji":{"title":"japan_address_kanji_specs","type":"object","properties":{"city":{"maxLength":5000,"type":"string","description":"City or ward."},"country":{"maxLength":5000,"type":"string","description":"Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."},"line1":{"maxLength":5000,"type":"string","description":"Block or building number."},"line2":{"maxLength":5000,"type":"string","description":"Building details."},"postal_code":{"maxLength":5000,"type":"string","description":"Postal code."},"state":{"maxLength":5000,"type":"string","description":"Prefecture."},"town":{"maxLength":5000,"type":"string","description":"Town or cho-me."}},"description":"The Kanji variation of the person's address (Japan only).","x-stripeMostCommon":["city","country","db_code","line1","line2","postal_code","state","town"]},"dob":{"description":"The person's date of birth.","anyOf":[{"title":"date_of_birth_specs","required":["day","month","year"],"type":"object","properties":{"day":{"type":"integer","description":"The day of birth, between 1 and 31."},"month":{"type":"integer","description":"The month of birth, between 1 and 12."},"year":{"type":"integer","description":"The four-digit year of birth."}},"x-stripeMostCommon":["day","month","year"]},{"type":"string","enum":[""]}]},"documents":{"title":"person_documents_specs","type":"object","properties":{"company_authorization":{"title":"documents_param","type":"object","properties":{"files":{"type":"array","description":"One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.","items":{"anyOf":[{"maxLength":500,"type":"string"},{"type":"string","enum":[""]}]}}},"description":"One or more documents that demonstrate proof that this person is authorized to represent the company.","x-stripeMostCommon":["files"]},"passport":{"title":"documents_param","type":"object","properties":{"files":{"type":"array","description":"One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.","items":{"anyOf":[{"maxLength":500,"type":"string"},{"type":"string","enum":[""]}]}}},"description":"One or more documents showing the person's passport page with photo and personal data.","x-stripeMostCommon":["files"]},"visa":{"title":"documents_param","type":"object","properties":{"files":{"type":"array","description":"One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.","items":{"anyOf":[{"maxLength":500,"type":"string"},{"type":"string","enum":[""]}]}}},"description":"One or more documents showing the person's visa required for living in the country where they are residing.","x-stripeMostCommon":["files"]}},"description":"Documents that may be submitted to satisfy various informational requests.","x-stripeMostCommon":["DASHBOARD_proof_of_liveness","company_authorization","passport","visa"]},"email":{"type":"string","description":"The person's email address."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"first_name":{"maxLength":5000,"type":"string","description":"The person's first name."},"first_name_kana":{"maxLength":5000,"type":"string","description":"The Kana variation of the person's first name (Japan only)."},"first_name_kanji":{"maxLength":5000,"type":"string","description":"The Kanji variation of the person's first name (Japan only)."},"full_name_aliases":{"description":"A list of alternate names or aliases that the person is known by.","anyOf":[{"type":"array","items":{"maxLength":5000,"type":"string"}},{"type":"string","enum":[""]}]},"gender":{"type":"string","description":"The person's gender (International regulations require either \"male\" or \"female\")."},"id_number":{"maxLength":5000,"type":"string","description":"The person's ID number, as appropriate for their country. For example, a social security number in the U.S., social insurance number in Canada, etc. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://docs.stripe.com/js/tokens/create_token?type=pii)."},"id_number_secondary":{"maxLength":5000,"type":"string","description":"The person's secondary ID number, as appropriate for their country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://docs.stripe.com/js/tokens/create_token?type=pii)."},"last_name":{"maxLength":5000,"type":"string","description":"The person's last name."},"last_name_kana":{"maxLength":5000,"type":"string","description":"The Kana variation of the person's last name (Japan only)."},"last_name_kanji":{"maxLength":5000,"type":"string","description":"The Kanji variation of the person's last name (Japan only)."},"maiden_name":{"maxLength":5000,"type":"string","description":"The person's maiden name."},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"nationality":{"maxLength":5000,"type":"string","description":"The country where the person is a national. Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)), or \"XX\" if unavailable."},"person_token":{"maxLength":5000,"type":"string","description":"A [person token](https://docs.stripe.com/connect/account-tokens), used to securely provide details to the person."},"phone":{"type":"string","description":"The person's phone number."},"political_exposure":{"type":"string","description":"Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction.","enum":["existing","none"]},"registered_address":{"title":"address_specs","type":"object","properties":{"city":{"maxLength":100,"type":"string","description":"City, district, suburb, town, or village."},"country":{"maxLength":5000,"type":"string","description":"Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."},"line1":{"maxLength":200,"type":"string","description":"Address line 1, such as the street, PO Box, or company name."},"line2":{"maxLength":200,"type":"string","description":"Address line 2, such as the apartment, suite, unit, or building."},"postal_code":{"maxLength":5000,"type":"string","description":"ZIP or postal code."},"state":{"maxLength":5000,"type":"string","description":"State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))."}},"description":"The person's registered address.","x-stripeMostCommon":["city","country","line1","line2","postal_code","state"]},"relationship":{"title":"relationship_specs","type":"object","properties":{"authorizer":{"type":"boolean","description":"Whether the person is the authorizer of the account's representative."},"director":{"type":"boolean","description":"Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations."},"executive":{"type":"boolean","description":"Whether the person has significant responsibility to control, manage, or direct the organization."},"legal_guardian":{"type":"boolean","description":"Whether the person is the legal guardian of the account's representative."},"owner":{"type":"boolean","description":"Whether the person is an owner of the account’s legal entity."},"percent_ownership":{"description":"The percent owned by the person of the account's legal entity.","anyOf":[{"type":"number"},{"type":"string","enum":[""]}]},"representative":{"type":"boolean","description":"Whether the person is authorized as the primary representative of the account. This is the person nominated by the business to provide information about themselves, and general information about the account. There can only be one representative at any given time. At the time the account is created, this person should be set to the person responsible for opening the account."},"title":{"maxLength":5000,"type":"string","description":"The person's title (e.g., CEO, Support Engineer)."}},"description":"The relationship that this person has with the account's legal entity.","x-stripeMostCommon":["authorizer","controller","director","executive","legal_guardian","officer","owner","partner","percent_ownership","representative","title"]},"ssn_last_4":{"type":"string","description":"The last four digits of the person's Social Security number (U.S. only)."},"us_cfpb_data":{"title":"us_cfpb_data_specs","type":"object","properties":{"ethnicity_details":{"title":"us_cfpb_ethnicity_details_specs","type":"object","properties":{"ethnicity":{"type":"array","description":"The persons ethnicity","items":{"type":"string","enum":["cuban","hispanic_or_latino","mexican","not_hispanic_or_latino","other_hispanic_or_latino","prefer_not_to_answer","puerto_rican"]}},"ethnicity_other":{"maxLength":5000,"type":"string","description":"Please specify your origin, when other is selected."}},"description":"The persons ethnicity details","x-stripeMostCommon":["ethnicity","ethnicity_other"]},"race_details":{"title":"us_cfpb_race_details_specs","type":"object","properties":{"race":{"type":"array","description":"The persons race.","items":{"type":"string","enum":["african_american","american_indian_or_alaska_native","asian","asian_indian","black_or_african_american","chinese","ethiopian","filipino","guamanian_or_chamorro","haitian","jamaican","japanese","korean","native_hawaiian","native_hawaiian_or_other_pacific_islander","nigerian","other_asian","other_black_or_african_american","other_pacific_islander","prefer_not_to_answer","samoan","somali","vietnamese","white"]}},"race_other":{"maxLength":5000,"type":"string","description":"Please specify your race, when other is selected."}},"description":"The persons race details","x-stripeMostCommon":["race","race_other"]},"self_identified_gender":{"maxLength":5000,"type":"string","description":"The persons self-identified gender"}},"description":"Demographic data related to the person.","x-stripeMostCommon":["ethnicity_details","race_details","self_identified_gender"]},"verification":{"title":"person_verification_specs","type":"object","properties":{"additional_document":{"title":"person_verification_document_specs","type":"object","properties":{"back":{"maxLength":500,"type":"string","description":"The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size."},"front":{"maxLength":500,"type":"string","description":"The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size."}},"description":"A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.","x-stripeMostCommon":["back","electronic_id","front"]},"document":{"title":"person_verification_document_specs","type":"object","properties":{"back":{"maxLength":500,"type":"string","description":"The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size."},"front":{"maxLength":500,"type":"string","description":"The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size."}},"description":"An identifying document, either a passport or local ID card.","x-stripeMostCommon":["back","electronic_id","front"]}},"description":"The person's verification status.","x-stripeMostCommon":["additional_document","document","proof_of_liveness"]}},"additionalProperties":false,"x-stripeMostCommon":["address","dob","email","first_name","id_number","last_name","metadata","phone","relationship","ssn_last_4"]},"encoding":{"additional_tos_acceptances":{"style":"deepObject","explode":true},"address":{"style":"deepObject","explode":true},"address_kana":{"style":"deepObject","explode":true},"address_kanji":{"style":"deepObject","explode":true},"dob":{"style":"deepObject","explode":true},"documents":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"full_name_aliases":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true},"registered_address":{"style":"deepObject","explode":true},"relationship":{"style":"deepObject","explode":true},"us_cfpb_data":{"style":"deepObject","explode":true},"verification":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/person"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"delete":{"summary":"Delete a person","description":"Deletes an existing person’s relationship to the account’s legal entity. Any person with a relationship for an account can be deleted through the API, except if the person is the account_opener. If your integration is using the executive parameter, you cannot delete the only verified executive on file.
With Connect, you can reject accounts that you have flagged as suspicious.
\n\nOnly accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be rejected. Test-mode accounts can be rejected at any time. Live-mode accounts can only be rejected after all balances are zero.
","operationId":"PostAccountsAccountReject","parameters":[{"name":"account","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["reason"],"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"reason":{"maxLength":5000,"type":"string","description":"The reason for rejecting the account. Can be `fraud`, `terms_of_service`, or `other`."}},"additionalProperties":false,"x-stripeMostCommon":["reason"]},"encoding":{"expand":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/account"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/apple_pay/domains":{"get":{"description":"List apple pay domains.
","operationId":"GetApplePayDomains","parameters":[{"name":"domain_name","in":"query","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"ApplePayDomainList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/apple_pay_domain"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/apple_pay/domains","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"description":"Create an apple pay domain.
","operationId":"PostApplePayDomains","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["domain_name"],"type":"object","properties":{"domain_name":{"type":"string"},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}}},"additionalProperties":false,"x-stripeMostCommon":["domain_name"]},"encoding":{"expand":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/apple_pay_domain"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/apple_pay/domains/{domain}":{"get":{"description":"Retrieve an apple pay domain.
","operationId":"GetApplePayDomainsDomain","parameters":[{"name":"domain","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/apple_pay_domain"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"delete":{"description":"Delete an apple pay domain.
","operationId":"DeleteApplePayDomainsDomain","parameters":[{"name":"domain","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/deleted_apple_pay_domain"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/application_fees":{"get":{"summary":"List all application fees","description":"Returns a list of application fees you’ve previously collected. The application fees are returned in sorted order, with the most recent fees appearing first.
","operationId":"GetApplicationFees","parameters":[{"name":"charge","in":"query","description":"Only return application fees for the charge specified by this charge ID.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"created","in":"query","description":"Only return applications fees that were created during the given date interval.","required":false,"style":"deepObject","explode":true,"schema":{"anyOf":[{"title":"range_query_specs","type":"object","properties":{"gt":{"type":"integer","description":"Minimum value to filter by (exclusive)"},"gte":{"type":"integer","description":"Minimum value to filter by (inclusive)"},"lt":{"type":"integer","description":"Maximum value to filter by (exclusive)"},"lte":{"type":"integer","description":"Maximum value to filter by (inclusive)"}},"x-stripeMostCommon":["gt","gte","lt","lte"]},{"type":"integer"}]}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"PlatformEarningList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/application_fee"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/application_fees","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/application_fees/{fee}/refunds/{id}":{"get":{"summary":"Retrieve an application fee refund","description":"By default, you can see the 10 most recent refunds stored directly on the application fee object, but you can also retrieve details about a specific refund stored on the application fee.
","operationId":"GetApplicationFeesFeeRefundsId","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"fee","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"id","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/fee_refund"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Update an application fee refund","description":"Updates the specified application fee refund by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
\n\nThis request only accepts metadata as an argument.
","operationId":"PostApplicationFeesFeeRefundsId","parameters":[{"name":"fee","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"id","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]}},"additionalProperties":false,"x-stripeMostCommon":["metadata"]},"encoding":{"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/fee_refund"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/application_fees/{id}":{"get":{"summary":"Retrieve an application fee","description":"Retrieves the details of an application fee that your account has collected. The same information is returned when refunding the application fee.
","operationId":"GetApplicationFeesId","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"id","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/application_fee"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/application_fees/{id}/refunds":{"get":{"summary":"List all application fee refunds","description":"You can see a list of the refunds belonging to a specific application fee. Note that the 10 most recent refunds are always available by default on the application fee object. If you need more than those 10, you can use this API method and the limit and starting_after parameters to page through additional refunds.
Refunds an application fee that has previously been collected but not yet refunded.\nFunds will be refunded to the Stripe account from which the fee was originally collected.
\n\nYou can optionally refund only part of an application fee.\nYou can do so multiple times, until the entire fee has been refunded.
\n\nOnce entirely refunded, an application fee can’t be refunded again.\nThis method will raise an error when called on an already-refunded application fee,\nor when trying to refund more money than is left on an application fee.
","operationId":"PostApplicationFeesIdRefunds","parameters":[{"name":"id","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"amount":{"type":"integer","description":"A positive integer, in _cents (or local equivalent)_, representing how much of this fee to refund. Can refund only up to the remaining unrefunded amount of the fee."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."}},"additionalProperties":false,"x-stripeMostCommon":["amount","metadata"]},"encoding":{"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/fee_refund"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/apps/secrets":{"get":{"summary":"List secrets","description":"List all secrets stored on the given scope.
","operationId":"GetAppsSecrets","parameters":[{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"scope","in":"query","description":"Specifies the scoping of the secret. Requests originating from UI extensions can only access account-scoped secrets or secrets scoped to their own user.","required":true,"style":"deepObject","explode":true,"schema":{"title":"scope_param","required":["type"],"type":"object","properties":{"type":{"type":"string","description":"The secret scope type.","enum":["account","user"]},"user":{"maxLength":5000,"type":"string","description":"The user ID. This field is required if `type` is set to `user`, and should not be provided if `type` is set to `account`."}},"x-stripeMostCommon":["type","user"]}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"SecretServiceResourceSecretList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/apps.secret"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/apps/secrets","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Set a Secret","description":"Create or replace a secret in the secret store.
","operationId":"PostAppsSecrets","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["name","payload","scope"],"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"expires_at":{"type":"integer","description":"The Unix timestamp for the expiry time of the secret, after which the secret deletes.","format":"unix-time"},"name":{"maxLength":5000,"type":"string","description":"A name for the secret that's unique within the scope."},"payload":{"maxLength":5000,"type":"string","description":"The plaintext secret value to be stored."},"scope":{"title":"scope_param","required":["type"],"type":"object","properties":{"type":{"type":"string","description":"The secret scope type.","enum":["account","user"]},"user":{"maxLength":5000,"type":"string","description":"The user ID. This field is required if `type` is set to `user`, and should not be provided if `type` is set to `account`."}},"description":"Specifies the scoping of the secret. Requests originating from UI extensions can only access account-scoped secrets or secrets scoped to their own user.","x-stripeMostCommon":["type","user"]}},"additionalProperties":false,"x-stripeMostCommon":["expires_at","name","payload","scope"]},"encoding":{"expand":{"style":"deepObject","explode":true},"scope":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/apps.secret"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/apps/secrets/delete":{"post":{"summary":"Delete a Secret","description":"Deletes a secret from the secret store by name and scope.
","operationId":"PostAppsSecretsDelete","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["name","scope"],"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"name":{"maxLength":5000,"type":"string","description":"A name for the secret that's unique within the scope."},"scope":{"title":"scope_param","required":["type"],"type":"object","properties":{"type":{"type":"string","description":"The secret scope type.","enum":["account","user"]},"user":{"maxLength":5000,"type":"string","description":"The user ID. This field is required if `type` is set to `user`, and should not be provided if `type` is set to `account`."}},"description":"Specifies the scoping of the secret. Requests originating from UI extensions can only access account-scoped secrets or secrets scoped to their own user.","x-stripeMostCommon":["type","user"]}},"additionalProperties":false,"x-stripeMostCommon":["name","scope"]},"encoding":{"expand":{"style":"deepObject","explode":true},"scope":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/apps.secret"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/apps/secrets/find":{"get":{"summary":"Find a Secret","description":"Finds a secret in the secret store by name and scope.
","operationId":"GetAppsSecretsFind","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"name","in":"query","description":"A name for the secret that's unique within the scope.","required":true,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"scope","in":"query","description":"Specifies the scoping of the secret. Requests originating from UI extensions can only access account-scoped secrets or secrets scoped to their own user.","required":true,"style":"deepObject","explode":true,"schema":{"title":"scope_param","required":["type"],"type":"object","properties":{"type":{"type":"string","description":"The secret scope type.","enum":["account","user"]},"user":{"maxLength":5000,"type":"string","description":"The user ID. This field is required if `type` is set to `user`, and should not be provided if `type` is set to `account`."}},"x-stripeMostCommon":["type","user"]}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/apps.secret"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/balance":{"get":{"summary":"Retrieve balance","description":"Retrieves the current account balance, based on the authentication that was used to make the request.\n For a sample request, see Accounting for negative balances.
","operationId":"GetBalance","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/balance"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/balance_settings":{"get":{"summary":"Retrieve balance settings","description":"Retrieves balance settings for a given connected account.\n Related guide: Making API calls for connected accounts
","operationId":"GetBalanceSettings","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/balance_settings"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Update balance settings","description":"Updates balance settings for a given connected account.\n Related guide: Making API calls for connected accounts
","operationId":"PostBalanceSettings","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"payments":{"title":"payments","type":"object","properties":{"debit_negative_balances":{"type":"boolean","description":"A Boolean indicating whether Stripe should try to reclaim negative balances from an attached bank account. For details, see [Understanding Connect Account Balances](/connect/account-balances)."},"payouts":{"title":"payouts","type":"object","properties":{"minimum_balance_by_currency":{"description":"The minimum balance amount to retain per currency after automatic payouts. Only funds that exceed these amounts are paid out. Learn more about the [minimum balances for automatic payouts](/payouts/minimum-balances-for-automatic-payouts).","anyOf":[{"type":"object","additionalProperties":{"anyOf":[{"type":"integer"},{"type":"string","enum":[""]}]}},{"type":"string","enum":[""]}]},"schedule":{"title":"payout_schedule","type":"object","properties":{"interval":{"type":"string","description":"How frequently available funds are paid out. One of: `daily`, `manual`, `weekly`, or `monthly`. Default is `daily`.","enum":["daily","manual","monthly","weekly"]},"monthly_payout_days":{"type":"array","description":"The days of the month when available funds are paid out, specified as an array of numbers between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly`.","items":{"type":"integer"}},"weekly_payout_days":{"type":"array","description":"The days of the week when available funds are paid out, specified as an array, e.g., [`monday`, `tuesday`]. Required and applicable only if `interval` is `weekly`.","items":{"type":"string","enum":["friday","monday","thursday","tuesday","wednesday"],"x-stripeBypassValidation":true}}},"description":"Details on when funds from charges are available, and when they are paid out to an external account. For details, see our [Setting Bank and Debit Card Payouts](/connect/bank-transfers#payout-information) documentation.","x-stripeMostCommon":["interval","monthly_payout_days","weekly_payout_days"]},"statement_descriptor":{"maxLength":22,"type":"string","description":"The text that appears on the bank account statement for payouts. If not set, this defaults to the platform's bank descriptor as set in the Dashboard."}},"description":"Settings specific to the account's payouts.","x-stripeMostCommon":["automatic_transfer_rules_by_currency","default_payout_method_for_currency","minimum_balance_by_currency","schedule","statement_descriptor"]},"settlement_timing":{"title":"settlement_timing","type":"object","properties":{"delay_days_override":{"description":"Change `delay_days` for this account, which determines the number of days charge funds are held before becoming available. The maximum value is 31. Passing an empty string to `delay_days_override` will return `delay_days` to the default, which is the lowest available value for the account. [Learn more about controlling delay days](/connect/manage-payout-schedule).","anyOf":[{"type":"integer"},{"type":"string","enum":[""]}]}},"description":"Settings related to the account's balance settlement timing.","x-stripeMostCommon":["delay_days_override","payment_method_options"]}},"description":"Settings that apply to the [Payments Balance](https://docs.stripe.com/api/balance).","x-stripeMostCommon":["debit_negative_balances","payouts","settlement_timing","start_of_day"]}},"additionalProperties":false,"x-stripeMostCommon":["payments"]},"encoding":{"expand":{"style":"deepObject","explode":true},"payments":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/balance_settings"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/balance_transactions":{"get":{"summary":"List all balance transactions","description":"Returns a list of transactions that have contributed to the Stripe account balance (e.g., charges, transfers, and so forth). The transactions are returned in sorted order, with the most recent transactions appearing first.
\n\nNote that this endpoint was previously called “Balance history” and used the path /v1/balance/history.
Retrieves the balance transaction with the given ID.
\n\nNote that this endpoint previously used the path /v1/balance/history/:id.
Lists billing active and inactive alerts
","operationId":"GetBillingAlerts","parameters":[{"name":"alert_type","in":"query","description":"Filter results to only include this type of alert.","required":false,"style":"form","explode":true,"schema":{"type":"string","enum":["usage_threshold"],"x-stripeBypassValidation":true}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"meter","in":"query","description":"Filter results to only include alerts with the given meter.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"ThresholdsResourceAlertList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/billing.alert"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/billing/alerts","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create a billing alert","description":"Creates a billing alert
","operationId":"PostBillingAlerts","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["alert_type","title"],"type":"object","properties":{"alert_type":{"type":"string","description":"The type of alert to create.","enum":["usage_threshold"],"x-stripeBypassValidation":true},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"title":{"maxLength":256,"type":"string","description":"The title of the alert."},"usage_threshold":{"title":"usage_threshold_config","required":["gte","meter","recurrence"],"type":"object","properties":{"filters":{"type":"array","description":"The filters allows limiting the scope of this usage alert. You can only specify up to one filter at this time.","items":{"title":"usage_alert_filter","required":["type"],"type":"object","properties":{"customer":{"maxLength":5000,"type":"string","description":"Limit the scope to this usage alert only to this customer."},"type":{"type":"string","description":"What type of filter is being applied to this usage alert.","enum":["customer"]}},"x-stripeMostCommon":["customer","type"]}},"gte":{"type":"integer","description":"Defines the threshold value that triggers the alert."},"meter":{"maxLength":5000,"type":"string","description":"The [Billing Meter](/api/billing/meter) ID whose usage is monitored."},"recurrence":{"type":"string","description":"Defines how the alert will behave.","enum":["one_time"],"x-stripeBypassValidation":true}},"description":"The configuration of the usage threshold.","x-stripeMostCommon":["filters","gte","meter","recurrence"]}},"additionalProperties":false,"x-stripeMostCommon":["alert_type","title","usage_threshold"]},"encoding":{"expand":{"style":"deepObject","explode":true},"usage_threshold":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/billing.alert"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/billing/alerts/{id}":{"get":{"summary":"Retrieve a billing alert","description":"Retrieves a billing alert given an ID
","operationId":"GetBillingAlertsId","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"id","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/billing.alert"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/billing/alerts/{id}/activate":{"post":{"summary":"Activate a billing alert","description":"Reactivates this alert, allowing it to trigger again.
","operationId":"PostBillingAlertsIdActivate","parameters":[{"name":"id","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}}},"additionalProperties":false},"encoding":{"expand":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/billing.alert"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/billing/alerts/{id}/archive":{"post":{"summary":"Archive a billing alert","description":"Archives this alert, removing it from the list view and APIs. This is non-reversible.
","operationId":"PostBillingAlertsIdArchive","parameters":[{"name":"id","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}}},"additionalProperties":false},"encoding":{"expand":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/billing.alert"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/billing/alerts/{id}/deactivate":{"post":{"summary":"Deactivate a billing alert","description":"Deactivates this alert, preventing it from triggering.
","operationId":"PostBillingAlertsIdDeactivate","parameters":[{"name":"id","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}}},"additionalProperties":false},"encoding":{"expand":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/billing.alert"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/billing/credit_balance_summary":{"get":{"summary":"Retrieve the credit balance summary for a customer","description":"Retrieves the credit balance summary for a customer.
","operationId":"GetBillingCreditBalanceSummary","parameters":[{"name":"customer","in":"query","description":"The customer whose credit balance summary you're retrieving.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"customer_account","in":"query","description":"The account representing the customer whose credit balance summary you're retrieving.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"filter","in":"query","description":"The filter criteria for the credit balance summary.","required":true,"style":"deepObject","explode":true,"schema":{"title":"balance_summary_filter_param","required":["type"],"type":"object","properties":{"applicability_scope":{"title":"scope_param","type":"object","properties":{"price_type":{"type":"string","description":"The price type that credit grants can apply to. We currently only support the `metered` price type. Cannot be used in combination with `prices`.","enum":["metered"]},"prices":{"type":"array","description":"A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`.","items":{"title":"applicable_price_param","required":["id"],"type":"object","properties":{"id":{"maxLength":5000,"type":"string","description":"The price ID this credit grant should apply to."}},"x-stripeMostCommon":["id"]}}},"description":"The billing credit applicability scope for which to fetch credit balance summary.","x-stripeMostCommon":["billable_items","price_type","prices"]},"credit_grant":{"maxLength":5000,"type":"string","description":"The credit grant for which to fetch credit balance summary."},"type":{"type":"string","description":"Specify the type of this filter.","enum":["applicability_scope","credit_grant"]}},"x-stripeMostCommon":["applicability_scope","credit_grant","type"]}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/billing.credit_balance_summary"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/billing/credit_balance_transactions":{"get":{"summary":"List credit balance transactions","description":"Retrieve a list of credit balance transactions.
","operationId":"GetBillingCreditBalanceTransactions","parameters":[{"name":"credit_grant","in":"query","description":"The credit grant for which to fetch credit balance transactions.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"customer","in":"query","description":"The customer whose credit balance transactions you're retrieving.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"customer_account","in":"query","description":"The account representing the customer whose credit balance transactions you're retrieving.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"BillingCreditGrantsResourceBalanceTransactionList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/billing.credit_balance_transaction"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/billing/credit_grants","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/billing/credit_balance_transactions/{id}":{"get":{"summary":"Retrieve a credit balance transaction","description":"Retrieves a credit balance transaction.
","operationId":"GetBillingCreditBalanceTransactionsId","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"id","in":"path","description":"Unique identifier for the object.","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/billing.credit_balance_transaction"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/billing/credit_grants":{"get":{"summary":"List credit grants","description":"Retrieve a list of credit grants.
","operationId":"GetBillingCreditGrants","parameters":[{"name":"customer","in":"query","description":"Only return credit grants for this customer.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"customer_account","in":"query","description":"Only return credit grants for this account representing the customer.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"BillingCreditGrantsResourceCreditGrantList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/billing.credit_grant"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/billing/credit_grants","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create a credit grant","description":"Creates a credit grant.
","operationId":"PostBillingCreditGrants","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["amount","applicability_config"],"type":"object","properties":{"amount":{"title":"amount_param","required":["type"],"type":"object","properties":{"monetary":{"title":"monetary_amount_param","required":["currency","value"],"type":"object","properties":{"currency":{"type":"string","description":"Three-letter [ISO code for the currency](https://stripe.com/docs/currencies) of the `value` parameter.","format":"currency"},"value":{"type":"integer","description":"A positive integer representing the amount of the credit grant."}},"description":"The monetary amount.","x-stripeMostCommon":["currency","value"]},"type":{"type":"string","description":"The type of this amount. We currently only support `monetary` billing credits.","enum":["monetary"],"x-stripeBypassValidation":true}},"description":"Amount of this credit grant.","x-stripeMostCommon":["custom_pricing_unit","monetary","type"]},"applicability_config":{"title":"applicability_config_param","required":["scope"],"type":"object","properties":{"scope":{"title":"scope_param","type":"object","properties":{"price_type":{"type":"string","description":"The price type that credit grants can apply to. We currently only support the `metered` price type. Cannot be used in combination with `prices`.","enum":["metered"]},"prices":{"type":"array","description":"A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`.","items":{"title":"applicable_price_param","required":["id"],"type":"object","properties":{"id":{"maxLength":5000,"type":"string","description":"The price ID this credit grant should apply to."}},"x-stripeMostCommon":["id"]}}},"description":"Specify the scope of this applicability config.","x-stripeMostCommon":["billable_items","price_type","prices"]}},"description":"Configuration specifying what this credit grant applies to. We currently only support `metered` prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them.","x-stripeMostCommon":["scope"]},"category":{"type":"string","description":"The category of this credit grant. It defaults to `paid` if not specified.","enum":["paid","promotional"]},"customer":{"maxLength":5000,"type":"string","description":"ID of the customer receiving the billing credits."},"customer_account":{"maxLength":5000,"type":"string","description":"ID of the account representing the customer receiving the billing credits."},"effective_at":{"type":"integer","description":"The time when the billing credits become effective-when they're eligible for use. It defaults to the current timestamp if not specified.","format":"unix-time"},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"expires_at":{"type":"integer","description":"The time when the billing credits expire. If not specified, the billing credits don't expire.","format":"unix-time"},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of key-value pairs that you can attach to an object. You can use this to store additional information about the object (for example, cost basis) in a structured format."},"name":{"maxLength":100,"type":"string","description":"A descriptive name shown in the Dashboard."},"priority":{"type":"integer","description":"The desired priority for applying this credit grant. If not specified, it will be set to the default value of 50. The highest priority is 0 and the lowest is 100."}},"additionalProperties":false,"x-stripeMostCommon":["amount","applicability_config","category","customer","customer_account","effective_at","expires_at","metadata","name","priority"]},"encoding":{"amount":{"style":"deepObject","explode":true},"applicability_config":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/billing.credit_grant"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/billing/credit_grants/{id}":{"get":{"summary":"Retrieve a credit grant","description":"Retrieves a credit grant.
","operationId":"GetBillingCreditGrantsId","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"id","in":"path","description":"Unique identifier for the object.","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/billing.credit_grant"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Update a credit grant","description":"Updates a credit grant.
","operationId":"PostBillingCreditGrantsId","parameters":[{"name":"id","in":"path","description":"Unique identifier for the object.","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"expires_at":{"description":"The time when the billing credits created by this credit grant expire. If set to empty, the billing credits never expire.","anyOf":[{"type":"integer","format":"unix-time"},{"type":"string","enum":[""]}]},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of key-value pairs you can attach to an object. You can use this to store additional information about the object (for example, cost basis) in a structured format."}},"additionalProperties":false,"x-stripeMostCommon":["expires_at","metadata"]},"encoding":{"expand":{"style":"deepObject","explode":true},"expires_at":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/billing.credit_grant"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/billing/credit_grants/{id}/expire":{"post":{"summary":"Expire a credit grant","description":"Expires a credit grant.
","operationId":"PostBillingCreditGrantsIdExpire","parameters":[{"name":"id","in":"path","description":"Unique identifier for the object.","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}}},"additionalProperties":false},"encoding":{"expand":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/billing.credit_grant"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/billing/credit_grants/{id}/void":{"post":{"summary":"Void a credit grant","description":"Voids a credit grant.
","operationId":"PostBillingCreditGrantsIdVoid","parameters":[{"name":"id","in":"path","description":"Unique identifier for the object.","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}}},"additionalProperties":false},"encoding":{"expand":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/billing.credit_grant"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/billing/meter_event_adjustments":{"post":{"summary":"Create a billing meter event adjustment","description":"Creates a billing meter event adjustment.
","operationId":"PostBillingMeterEventAdjustments","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["event_name","type"],"type":"object","properties":{"cancel":{"title":"event_adjustment_cancel_settings_param","type":"object","properties":{"identifier":{"maxLength":100,"type":"string","description":"Unique identifier for the event. You can only cancel events within 24 hours of Stripe receiving them."}},"description":"Specifies which event to cancel.","x-stripeMostCommon":["identifier"]},"event_name":{"maxLength":100,"type":"string","description":"The name of the meter event. Corresponds with the `event_name` field on a meter."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"type":{"type":"string","description":"Specifies whether to cancel a single event or a range of events for a time period. Time period cancellation is not supported yet.","enum":["cancel"]}},"additionalProperties":false,"x-stripeMostCommon":["cancel","event_name","type"]},"encoding":{"cancel":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/billing.meter_event_adjustment"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/billing/meter_events":{"post":{"summary":"Create a billing meter event","description":"Creates a billing meter event.
","operationId":"PostBillingMeterEvents","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["event_name","payload"],"type":"object","properties":{"event_name":{"maxLength":100,"type":"string","description":"The name of the meter event. Corresponds with the `event_name` field on a meter."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"identifier":{"maxLength":100,"type":"string","description":"A unique identifier for the event. If not provided, one is generated. We recommend using UUID-like identifiers. We will enforce uniqueness within a rolling period of at least 24 hours. The enforcement of uniqueness primarily addresses issues arising from accidental retries or other problems occurring within extremely brief time intervals. This approach helps prevent duplicate entries and ensures data integrity in high-frequency operations."},"payload":{"type":"object","additionalProperties":{"type":"string"},"description":"The payload of the event. This must contain the fields corresponding to a meter's `customer_mapping.event_payload_key` (default is `stripe_customer_id`) and `value_settings.event_payload_key` (default is `value`). Read more about the [payload](https://docs.stripe.com/billing/subscriptions/usage-based/meters/configure#meter-configuration-attributes)."},"timestamp":{"type":"integer","description":"The time of the event. Measured in seconds since the Unix epoch. Must be within the past 35 calendar days or up to 5 minutes in the future. Defaults to current timestamp if not specified.","format":"unix-time"}},"additionalProperties":false,"x-stripeMostCommon":["event_name","identifier","payload","timestamp"]},"encoding":{"expand":{"style":"deepObject","explode":true},"payload":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/billing.meter_event"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/billing/meters":{"get":{"summary":"List billing meters","description":"Retrieve a list of billing meters.
","operationId":"GetBillingMeters","parameters":[{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"status","in":"query","description":"Filter results to only include meters with the given status.","required":false,"style":"form","explode":true,"schema":{"type":"string","enum":["active","inactive"]}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"BillingMeterResourceBillingMeterList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/billing.meter"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/billing/meters","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create a billing meter","description":"Creates a billing meter.
","operationId":"PostBillingMeters","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["default_aggregation","display_name","event_name"],"type":"object","properties":{"customer_mapping":{"title":"customer_mapping_param","required":["event_payload_key","type"],"type":"object","properties":{"event_payload_key":{"maxLength":100,"type":"string","description":"The key in the meter event payload to use for mapping the event to a customer."},"type":{"type":"string","description":"The method for mapping a meter event to a customer. Must be `by_id`.","enum":["by_id"]}},"description":"Fields that specify how to map a meter event to a customer.","x-stripeMostCommon":["event_payload_key","type"]},"default_aggregation":{"title":"aggregation_settings_param","required":["formula"],"type":"object","properties":{"formula":{"type":"string","description":"Specifies how events are aggregated. Allowed values are `count` to count the number of events, `sum` to sum each event's value and `last` to take the last event's value in the window.","enum":["count","last","sum"],"x-stripeBypassValidation":true}},"description":"The default settings to aggregate a meter's events with.","x-stripeMostCommon":["formula"]},"display_name":{"maxLength":250,"type":"string","description":"The meter’s name. Not visible to the customer."},"event_name":{"maxLength":100,"type":"string","description":"The name of the meter event to record usage for. Corresponds with the `event_name` field on meter events."},"event_time_window":{"type":"string","description":"The time window which meter events have been pre-aggregated for, if any.","enum":["day","hour"]},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"value_settings":{"title":"meter_value_settings_param","required":["event_payload_key"],"type":"object","properties":{"event_payload_key":{"maxLength":100,"type":"string","description":"The key in the usage event payload to use as the value for this meter. For example, if the event payload contains usage on a `bytes_used` field, then set the event_payload_key to \"bytes_used\"."}},"description":"Fields that specify how to calculate a meter event's value.","x-stripeMostCommon":["event_payload_key"]}},"additionalProperties":false,"x-stripeMostCommon":["customer_mapping","default_aggregation","display_name","event_name","event_time_window","value_settings"]},"encoding":{"customer_mapping":{"style":"deepObject","explode":true},"default_aggregation":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"value_settings":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/billing.meter"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/billing/meters/{id}":{"get":{"summary":"Retrieve a billing meter","description":"Retrieves a billing meter given an ID.
","operationId":"GetBillingMetersId","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"id","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/billing.meter"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Update a billing meter","description":"Updates a billing meter.
","operationId":"PostBillingMetersId","parameters":[{"name":"id","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"display_name":{"maxLength":250,"type":"string","description":"The meter’s name. Not visible to the customer."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}}},"additionalProperties":false,"x-stripeMostCommon":["display_name"]},"encoding":{"expand":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/billing.meter"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/billing/meters/{id}/deactivate":{"post":{"summary":"Deactivate a billing meter","description":"When a meter is deactivated, no more meter events will be accepted for this meter. You can’t attach a deactivated meter to a price.
","operationId":"PostBillingMetersIdDeactivate","parameters":[{"name":"id","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}}},"additionalProperties":false},"encoding":{"expand":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/billing.meter"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/billing/meters/{id}/event_summaries":{"get":{"summary":"List billing meter event summaries","description":"Retrieve a list of billing meter event summaries.
","operationId":"GetBillingMetersIdEventSummaries","parameters":[{"name":"customer","in":"query","description":"The customer for which to fetch event summaries.","required":true,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"end_time","in":"query","description":"The timestamp from when to stop aggregating meter events (exclusive). Must be aligned with minute boundaries.","required":true,"style":"form","explode":true,"schema":{"type":"integer","format":"unix-time"}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"id","in":"path","description":"Unique identifier for the object.","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"start_time","in":"query","description":"The timestamp from when to start aggregating meter events (inclusive). Must be aligned with minute boundaries.","required":true,"style":"form","explode":true,"schema":{"type":"integer","format":"unix-time"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"value_grouping_window","in":"query","description":"Specifies what granularity to use when generating event summaries. If not specified, a single event summary would be returned for the specified time range. For hourly granularity, start and end times must align with hour boundaries (e.g., 00:00, 01:00, ..., 23:00). For daily granularity, start and end times must align with UTC day boundaries (00:00 UTC).","required":false,"style":"form","explode":true,"schema":{"type":"string","enum":["day","hour"]}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"BillingMeterResourceBillingMeterEventSummaryList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/billing.meter_event_summary"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/billing/meters/[^/]+/event_summaries","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/billing/meters/{id}/reactivate":{"post":{"summary":"Reactivate a billing meter","description":"When a meter is reactivated, events for this meter can be accepted and you can attach the meter to a price.
","operationId":"PostBillingMetersIdReactivate","parameters":[{"name":"id","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}}},"additionalProperties":false},"encoding":{"expand":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/billing.meter"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/billing_portal/configurations":{"get":{"summary":"List portal configurations","description":"Returns a list of configurations that describe the functionality of the customer portal.
","operationId":"GetBillingPortalConfigurations","parameters":[{"name":"active","in":"query","description":"Only return configurations that are active or inactive (e.g., pass `true` to only list active configurations).","required":false,"style":"form","explode":true,"schema":{"type":"boolean"}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"is_default","in":"query","description":"Only return the default or non-default configurations (e.g., pass `true` to only list the default configuration).","required":false,"style":"form","explode":true,"schema":{"type":"boolean"}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"PortalPublicResourceConfigurationList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/billing_portal.configuration"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/billing_portal/configurations","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create a portal configuration","description":"Creates a configuration that describes the functionality and behavior of a PortalSession
","operationId":"PostBillingPortalConfigurations","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["features"],"type":"object","properties":{"business_profile":{"title":"business_profile_create_param","type":"object","properties":{"headline":{"description":"The messaging shown to customers in the portal.","anyOf":[{"maxLength":60,"type":"string"},{"type":"string","enum":[""]}]},"privacy_policy_url":{"type":"string","description":"A link to the business’s publicly available privacy policy."},"terms_of_service_url":{"type":"string","description":"A link to the business’s publicly available terms of service."}},"description":"The business information shown to customers in the portal.","x-stripeMostCommon":["headline","privacy_policy_url","terms_of_service_url"]},"default_return_url":{"description":"The default URL to redirect customers to when they click on the portal's link to return to your website. This can be [overriden](https://docs.stripe.com/api/customer_portal/sessions/create#create_portal_session-return_url) when creating the session.","anyOf":[{"type":"string"},{"type":"string","enum":[""]}]},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"features":{"title":"features_creation_param","type":"object","properties":{"customer_update":{"title":"customer_update_creation_param","required":["enabled"],"type":"object","properties":{"allowed_updates":{"description":"The types of customer updates that are supported. When empty, customers are not updateable.","anyOf":[{"type":"array","items":{"type":"string","enum":["address","email","name","phone","shipping","tax_id"]}},{"type":"string","enum":[""]}]},"enabled":{"type":"boolean","description":"Whether the feature is enabled."}},"description":"Information about updating the customer details in the portal.","x-stripeMostCommon":["allowed_updates","enabled"]},"invoice_history":{"title":"invoice_list_param","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the feature is enabled."}},"description":"Information about showing the billing history in the portal.","x-stripeMostCommon":["enabled"]},"payment_method_update":{"title":"payment_method_update_param","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the feature is enabled."},"payment_method_configuration":{"description":"The [Payment Method Configuration](/api/payment_method_configurations) to use for this portal session. When specified, customers will be able to update their payment method to one of the options specified by the payment method configuration. If not set or set to an empty string, the default payment method configuration is used.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]}},"description":"Information about updating payment methods in the portal.","x-stripeMostCommon":["enabled","payment_method_configuration"]},"subscription_cancel":{"title":"subscription_cancel_creation_param","required":["enabled"],"type":"object","properties":{"cancellation_reason":{"title":"subscription_cancellation_reason_creation_param","required":["enabled","options"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the feature is enabled."},"options":{"description":"Which cancellation reasons will be given as options to the customer.","anyOf":[{"type":"array","items":{"type":"string","enum":["customer_service","low_quality","missing_features","other","switched_service","too_complex","too_expensive","unused"]}},{"type":"string","enum":[""]}]}},"description":"Whether the cancellation reasons will be collected in the portal and which options are exposed to the customer","x-stripeMostCommon":["enabled","options"]},"enabled":{"type":"boolean","description":"Whether the feature is enabled."},"mode":{"type":"string","description":"Whether to cancel subscriptions immediately or at the end of the billing period.","enum":["at_period_end","immediately"]},"proration_behavior":{"type":"string","description":"Whether to create prorations when canceling subscriptions. Possible values are `none` and `create_prorations`, which is only compatible with `mode=immediately`. Passing `always_invoice` will result in an error. No prorations are generated when canceling a subscription at the end of its natural billing period.","enum":["always_invoice","create_prorations","none"]}},"description":"Information about canceling subscriptions in the portal.","x-stripeMostCommon":["cancellation_reason","cancellation_redirect","enabled","mode","proration_behavior","restrictions","retention_options"]},"subscription_update":{"title":"subscription_update_creation_param","required":["enabled"],"type":"object","properties":{"billing_cycle_anchor":{"type":"string","description":"Determines the value to use for the billing cycle anchor on subscription updates. Valid values are `now` or `unchanged`, and the default value is `unchanged`. Setting the value to `now` resets the subscription's billing cycle anchor to the current time (in UTC). For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle).","enum":["now","unchanged"]},"default_allowed_updates":{"description":"The types of subscription updates that are supported. When empty, subscriptions are not updateable.","anyOf":[{"type":"array","items":{"type":"string","enum":["price","promotion_code","quantity"]}},{"type":"string","enum":[""]}]},"enabled":{"type":"boolean","description":"Whether the feature is enabled."},"products":{"description":"The list of up to 10 products that support subscription updates.","anyOf":[{"type":"array","items":{"title":"subscription_update_product_param","required":["prices","product"],"type":"object","properties":{"adjustable_quantity":{"title":"subscription_update_product_adjustable_quantity_param","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Set to true if the quantity can be adjusted to any non-negative integer."},"maximum":{"type":"integer","description":"The maximum quantity that can be set for the product."},"minimum":{"type":"integer","description":"The minimum quantity that can be set for the product."}},"description":"Control whether the quantity of the product can be adjusted.","x-stripeMostCommon":["enabled","maximum","minimum"]},"prices":{"type":"array","description":"The list of price IDs for the product that a subscription can be updated to.","items":{"maxLength":5000,"type":"string"}},"product":{"maxLength":5000,"type":"string","description":"The product id."}},"x-stripeMostCommon":["adjustable_quantity","prices","product"]}},{"type":"string","enum":[""]}]},"proration_behavior":{"type":"string","description":"Determines how to handle prorations resulting from subscription updates. Valid values are `none`, `create_prorations`, and `always_invoice`.","enum":["always_invoice","create_prorations","none"]},"schedule_at_period_end":{"title":"schedule_update_at_period_end_creating_param","type":"object","properties":{"conditions":{"type":"array","description":"List of conditions. When any condition is true, the update will be scheduled at the end of the current period.","items":{"title":"schedule_update_at_period_end_condition_param","required":["type"],"type":"object","properties":{"type":{"type":"string","description":"The type of condition.","enum":["decreasing_item_amount","shortening_interval"]}},"x-stripeMostCommon":["type"]}}},"description":"Setting to control when an update should be scheduled at the end of the period instead of applying immediately.","x-stripeMostCommon":["conditions"]},"trial_update_behavior":{"type":"string","description":"The behavior when updating a subscription that is trialing.","enum":["continue_trial","end_trial"]}},"description":"Information about updating subscriptions in the portal.","x-stripeMostCommon":["billing_cycle_anchor","default_allowed_updates","enabled","packaging","products","proration_behavior","proration_date","restrictions","schedule_at_period_end","trial_update_behavior"]}},"description":"Information about the features available in the portal.","x-stripeMostCommon":["customer_update","invoice_history","payment_method_update","subscription_cancel","subscription_update","usage_based_billing"]},"login_page":{"title":"login_page_create_param","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Set to `true` to generate a shareable URL [`login_page.url`](https://docs.stripe.com/api/customer_portal/configuration#portal_configuration_object-login_page-url) that will take your customers to a hosted login page for the customer portal."}},"description":"The hosted login page for this configuration. Learn more about the portal login page in our [integration docs](https://stripe.com/docs/billing/subscriptions/integrating-customer-portal#share).","x-stripeMostCommon":["enabled"]},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"name":{"description":"The name of the configuration.","anyOf":[{"maxLength":256,"type":"string"},{"type":"string","enum":[""]}]}},"additionalProperties":false,"x-stripeMostCommon":["business_profile","default_return_url","features","login_page","metadata","name"]},"encoding":{"business_profile":{"style":"deepObject","explode":true},"default_return_url":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"features":{"style":"deepObject","explode":true},"login_page":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true},"name":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/billing_portal.configuration"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/billing_portal/configurations/{configuration}":{"get":{"summary":"Retrieve a portal configuration","description":"Retrieves a configuration that describes the functionality of the customer portal.
","operationId":"GetBillingPortalConfigurationsConfiguration","parameters":[{"name":"configuration","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/billing_portal.configuration"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Update a portal configuration","description":"Updates a configuration that describes the functionality of the customer portal.
","operationId":"PostBillingPortalConfigurationsConfiguration","parameters":[{"name":"configuration","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"active":{"type":"boolean","description":"Whether the configuration is active and can be used to create portal sessions."},"business_profile":{"title":"business_profile_update_param","type":"object","properties":{"headline":{"description":"The messaging shown to customers in the portal.","anyOf":[{"maxLength":60,"type":"string"},{"type":"string","enum":[""]}]},"privacy_policy_url":{"description":"A link to the business’s publicly available privacy policy.","anyOf":[{"type":"string"},{"type":"string","enum":[""]}]},"terms_of_service_url":{"description":"A link to the business’s publicly available terms of service.","anyOf":[{"type":"string"},{"type":"string","enum":[""]}]}},"description":"The business information shown to customers in the portal.","x-stripeMostCommon":["headline","privacy_policy_url","terms_of_service_url"]},"default_return_url":{"description":"The default URL to redirect customers to when they click on the portal's link to return to your website. This can be [overriden](https://docs.stripe.com/api/customer_portal/sessions/create#create_portal_session-return_url) when creating the session.","anyOf":[{"type":"string"},{"type":"string","enum":[""]}]},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"features":{"title":"features_updating_param","type":"object","properties":{"customer_update":{"title":"customer_update_updating_param","type":"object","properties":{"allowed_updates":{"description":"The types of customer updates that are supported. When empty, customers are not updateable.","anyOf":[{"type":"array","items":{"type":"string","enum":["address","email","name","phone","shipping","tax_id"]}},{"type":"string","enum":[""]}]},"enabled":{"type":"boolean","description":"Whether the feature is enabled."}},"description":"Information about updating the customer details in the portal.","x-stripeMostCommon":["allowed_updates","enabled"]},"invoice_history":{"title":"invoice_list_param","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the feature is enabled."}},"description":"Information about showing the billing history in the portal.","x-stripeMostCommon":["enabled"]},"payment_method_update":{"title":"payment_method_update_param","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the feature is enabled."},"payment_method_configuration":{"description":"The [Payment Method Configuration](/api/payment_method_configurations) to use for this portal session. When specified, customers will be able to update their payment method to one of the options specified by the payment method configuration. If not set or set to an empty string, the default payment method configuration is used.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]}},"description":"Information about updating payment methods in the portal.","x-stripeMostCommon":["enabled","payment_method_configuration"]},"subscription_cancel":{"title":"subscription_cancel_updating_param","type":"object","properties":{"cancellation_reason":{"title":"subscription_cancellation_reason_updating_param","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the feature is enabled."},"options":{"description":"Which cancellation reasons will be given as options to the customer.","anyOf":[{"type":"array","items":{"type":"string","enum":["customer_service","low_quality","missing_features","other","switched_service","too_complex","too_expensive","unused"]}},{"type":"string","enum":[""]}]}},"description":"Whether the cancellation reasons will be collected in the portal and which options are exposed to the customer","x-stripeMostCommon":["enabled","options"]},"enabled":{"type":"boolean","description":"Whether the feature is enabled."},"mode":{"type":"string","description":"Whether to cancel subscriptions immediately or at the end of the billing period.","enum":["at_period_end","immediately"]},"proration_behavior":{"type":"string","description":"Whether to create prorations when canceling subscriptions. Possible values are `none` and `create_prorations`, which is only compatible with `mode=immediately`. Passing `always_invoice` will result in an error. No prorations are generated when canceling a subscription at the end of its natural billing period.","enum":["always_invoice","create_prorations","none"]}},"description":"Information about canceling subscriptions in the portal.","x-stripeMostCommon":["cancellation_reason","cancellation_redirect","enabled","mode","proration_behavior","restrictions","retention_options"]},"subscription_update":{"title":"subscription_update_updating_param","type":"object","properties":{"billing_cycle_anchor":{"type":"string","description":"Determines the value to use for the billing cycle anchor on subscription updates. Valid values are `now` or `unchanged`, and the default value is `unchanged`. Setting the value to `now` resets the subscription's billing cycle anchor to the current time (in UTC). For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle).","enum":["now","unchanged"]},"default_allowed_updates":{"description":"The types of subscription updates that are supported. When empty, subscriptions are not updateable.","anyOf":[{"type":"array","items":{"type":"string","enum":["price","promotion_code","quantity"]}},{"type":"string","enum":[""]}]},"enabled":{"type":"boolean","description":"Whether the feature is enabled."},"products":{"description":"The list of up to 10 products that support subscription updates.","anyOf":[{"type":"array","items":{"title":"subscription_update_product_param","required":["prices","product"],"type":"object","properties":{"adjustable_quantity":{"title":"subscription_update_product_adjustable_quantity_param","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Set to true if the quantity can be adjusted to any non-negative integer."},"maximum":{"type":"integer","description":"The maximum quantity that can be set for the product."},"minimum":{"type":"integer","description":"The minimum quantity that can be set for the product."}},"description":"Control whether the quantity of the product can be adjusted.","x-stripeMostCommon":["enabled","maximum","minimum"]},"prices":{"type":"array","description":"The list of price IDs for the product that a subscription can be updated to.","items":{"maxLength":5000,"type":"string"}},"product":{"maxLength":5000,"type":"string","description":"The product id."}},"x-stripeMostCommon":["adjustable_quantity","prices","product"]}},{"type":"string","enum":[""]}]},"proration_behavior":{"type":"string","description":"Determines how to handle prorations resulting from subscription updates. Valid values are `none`, `create_prorations`, and `always_invoice`.","enum":["always_invoice","create_prorations","none"]},"schedule_at_period_end":{"title":"schedule_update_at_period_end_updating_param","type":"object","properties":{"conditions":{"description":"List of conditions. When any condition is true, the update will be scheduled at the end of the current period.","anyOf":[{"type":"array","items":{"title":"schedule_update_at_period_end_condition_param","required":["type"],"type":"object","properties":{"type":{"type":"string","description":"The type of condition.","enum":["decreasing_item_amount","shortening_interval"]}},"x-stripeMostCommon":["type"]}},{"type":"string","enum":[""]}]}},"description":"Setting to control when an update should be scheduled at the end of the period instead of applying immediately.","x-stripeMostCommon":["conditions"]},"trial_update_behavior":{"type":"string","description":"The behavior when updating a subscription that is trialing.","enum":["continue_trial","end_trial"]}},"description":"Information about updating subscriptions in the portal.","x-stripeMostCommon":["billing_cycle_anchor","default_allowed_updates","enabled","packaging","products","proration_behavior","proration_date","restrictions","schedule_at_period_end","trial_update_behavior"]}},"description":"Information about the features available in the portal.","x-stripeMostCommon":["customer_update","invoice_history","payment_method_update","subscription_cancel","subscription_update","usage_based_billing"]},"login_page":{"title":"login_page_update_param","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Set to `true` to generate a shareable URL [`login_page.url`](https://docs.stripe.com/api/customer_portal/configuration#portal_configuration_object-login_page-url) that will take your customers to a hosted login page for the customer portal.\n\nSet to `false` to deactivate the `login_page.url`."}},"description":"The hosted login page for this configuration. Learn more about the portal login page in our [integration docs](https://stripe.com/docs/billing/subscriptions/integrating-customer-portal#share).","x-stripeMostCommon":["enabled"]},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"name":{"description":"The name of the configuration.","anyOf":[{"maxLength":256,"type":"string"},{"type":"string","enum":[""]}]}},"additionalProperties":false,"x-stripeMostCommon":["active","business_profile","default_return_url","features","login_page","metadata","name"]},"encoding":{"business_profile":{"style":"deepObject","explode":true},"default_return_url":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"features":{"style":"deepObject","explode":true},"login_page":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true},"name":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/billing_portal.configuration"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/billing_portal/sessions":{"post":{"summary":"Create a portal session","description":"Creates a session of the customer portal.
","operationId":"PostBillingPortalSessions","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"configuration":{"maxLength":5000,"type":"string","description":"The ID of an existing [configuration](https://docs.stripe.com/api/customer_portal/configurations) to use for this session, describing its functionality and features. If not specified, the session uses the default configuration."},"customer":{"maxLength":5000,"type":"string","description":"The ID of an existing customer."},"customer_account":{"maxLength":5000,"type":"string","description":"The ID of an existing account."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"flow_data":{"title":"flow_data_param","required":["type"],"type":"object","properties":{"after_completion":{"title":"flow_data_after_completion_param","required":["type"],"type":"object","properties":{"hosted_confirmation":{"title":"after_completion_hosted_confirmation_param","type":"object","properties":{"custom_message":{"maxLength":500,"type":"string","description":"A custom message to display to the customer after the flow is completed."}},"description":"Configuration when `after_completion.type=hosted_confirmation`.","x-stripeMostCommon":["custom_message"]},"redirect":{"title":"after_completion_redirect_param","required":["return_url"],"type":"object","properties":{"return_url":{"type":"string","description":"The URL the customer will be redirected to after the flow is completed."}},"description":"Configuration when `after_completion.type=redirect`.","x-stripeMostCommon":["return_url"]},"type":{"type":"string","description":"The specified behavior after the flow is completed.","enum":["hosted_confirmation","portal_homepage","redirect"]}},"description":"Behavior after the flow is completed.","x-stripeMostCommon":["hosted_confirmation","redirect","type"]},"subscription_cancel":{"title":"flow_data_subscription_cancel_param","required":["subscription"],"type":"object","properties":{"retention":{"title":"retention_param","required":["coupon_offer","type"],"type":"object","properties":{"coupon_offer":{"title":"coupon_offer_param","required":["coupon"],"type":"object","properties":{"coupon":{"maxLength":5000,"type":"string","description":"The ID of the coupon to be offered."}},"description":"Configuration when `retention.type=coupon_offer`.","x-stripeMostCommon":["coupon"]},"type":{"type":"string","description":"Type of retention strategy to use with the customer.","enum":["coupon_offer"]}},"description":"Specify a retention strategy to be used in the cancellation flow.","x-stripeMostCommon":["coupon_offer","type"]},"subscription":{"maxLength":5000,"type":"string","description":"The ID of the subscription to be canceled."}},"description":"Configuration when `flow_data.type=subscription_cancel`.","x-stripeMostCommon":["retention","subscription"]},"subscription_update":{"title":"flow_data_subscription_update_param","required":["subscription"],"type":"object","properties":{"subscription":{"maxLength":5000,"type":"string","description":"The ID of the subscription to be updated."}},"description":"Configuration when `flow_data.type=subscription_update`.","x-stripeMostCommon":["subscription"]},"subscription_update_confirm":{"title":"flow_data_subscription_update_confirm_param","required":["items","subscription"],"type":"object","properties":{"discounts":{"type":"array","description":"The coupon or promotion code to apply to this subscription update.","items":{"title":"subscription_update_confirm_discount_params","type":"object","properties":{"coupon":{"maxLength":5000,"type":"string","description":"The ID of the coupon to apply to this subscription update."},"promotion_code":{"maxLength":5000,"type":"string","description":"The ID of a promotion code to apply to this subscription update."}},"x-stripeMostCommon":["coupon","promotion_code"]}},"items":{"type":"array","description":"The [subscription item](https://docs.stripe.com/api/subscription_items) to be updated through this flow. Currently, only up to one may be specified and subscriptions with multiple items are not updatable.","items":{"title":"subscription_update_confirm_item_params","required":["id"],"type":"object","properties":{"id":{"maxLength":5000,"type":"string","description":"The ID of the [subscription item](https://docs.stripe.com/api/subscriptions/object#subscription_object-items-data-id) to be updated."},"price":{"maxLength":5000,"type":"string","description":"The price the customer should subscribe to through this flow. The price must also be included in the configuration's [`features.subscription_update.products`](https://docs.stripe.com/api/customer_portal/configuration#portal_configuration_object-features-subscription_update-products)."},"quantity":{"type":"integer","description":"[Quantity](https://docs.stripe.com/subscriptions/quantities) for this item that the customer should subscribe to through this flow."}},"x-stripeMostCommon":["deleted","id","price","quantity"]}},"subscription":{"maxLength":5000,"type":"string","description":"The ID of the subscription to be updated."}},"description":"Configuration when `flow_data.type=subscription_update_confirm`.","x-stripeMostCommon":["discounts","items","recurring_items","subscription"]},"type":{"type":"string","description":"Type of flow that the customer will go through.","enum":["payment_method_update","subscription_cancel","subscription_update","subscription_update_confirm"]}},"description":"Information about a specific flow for the customer to go through. See the [docs](https://docs.stripe.com/customer-management/portal-deep-links) to learn more about using customer portal deep links and flows.","x-stripeMostCommon":["after_completion","subscription_cancel","subscription_update","subscription_update_confirm","type"]},"locale":{"type":"string","description":"The IETF language tag of the locale customer portal is displayed in. If blank or auto, the customer’s `preferred_locales` or browser’s locale is used.","enum":["auto","bg","cs","da","de","el","en","en-AU","en-CA","en-GB","en-IE","en-IN","en-NZ","en-SG","es","es-419","et","fi","fil","fr","fr-CA","hr","hu","id","it","ja","ko","lt","lv","ms","mt","nb","nl","pl","pt","pt-BR","ro","ru","sk","sl","sv","th","tr","vi","zh","zh-HK","zh-TW"]},"on_behalf_of":{"type":"string","description":"The `on_behalf_of` account to use for this session. When specified, only subscriptions and invoices with this `on_behalf_of` account appear in the portal. For more information, see the [docs](https://docs.stripe.com/connect/separate-charges-and-transfers#settlement-merchant). Use the [Accounts API](https://docs.stripe.com/api/accounts/object#account_object-settings-branding) to modify the `on_behalf_of` account's branding settings, which the portal displays."},"return_url":{"type":"string","description":"The default URL to redirect customers to when they click on the portal's link to return to your website."}},"additionalProperties":false,"x-stripeMostCommon":["configuration","customer","customer_account","flow_data","locale","on_behalf_of","return_url"]},"encoding":{"expand":{"style":"deepObject","explode":true},"flow_data":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/billing_portal.session"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/charges":{"get":{"summary":"List all charges","description":"Returns a list of charges you’ve previously created. The charges are returned in sorted order, with the most recent charges appearing first.
","operationId":"GetCharges","parameters":[{"name":"created","in":"query","description":"Only return charges that were created during the given date interval.","required":false,"style":"deepObject","explode":true,"schema":{"anyOf":[{"title":"range_query_specs","type":"object","properties":{"gt":{"type":"integer","description":"Minimum value to filter by (exclusive)"},"gte":{"type":"integer","description":"Minimum value to filter by (inclusive)"},"lt":{"type":"integer","description":"Maximum value to filter by (exclusive)"},"lte":{"type":"integer","description":"Maximum value to filter by (inclusive)"}},"x-stripeMostCommon":["gt","gte","lt","lte"]},{"type":"integer"}]}},{"name":"customer","in":"query","description":"Only return charges for the customer specified by this customer ID.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"payment_intent","in":"query","description":"Only return charges that were created by the PaymentIntent specified by this PaymentIntent ID.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"transfer_group","in":"query","description":"Only return charges for this transfer group, limited to 100.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"ChargeList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/charge"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/charges","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"description":"This method is no longer recommended—use the Payment Intents API\nto initiate a new payment instead. Confirmation of the PaymentIntent creates the Charge\nobject used to request payment.
Search for charges you’ve previously created using Stripe’s Search Query Language.\nDon’t use search in read-after-write flows where strict consistency is necessary. Under normal operating\nconditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up\nto an hour behind during outages. Search functionality is not available to merchants in India.
","operationId":"GetChargesSearch","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"page","in":"query","description":"A cursor for pagination across multiple pages of results. Don't include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"query","in":"query","description":"The search query string. See [search query language](https://docs.stripe.com/search#search-query-language) and the list of supported [query fields for charges](https://docs.stripe.com/search#query-fields-for-charges).","required":true,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"SearchResult","required":["data","has_more","next_page","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/charge"}},"has_more":{"type":"boolean"},"next_page":{"maxLength":5000,"type":"string","nullable":true},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value.","enum":["search_result"]},"total_count":{"type":"integer","description":"The total number of objects that match the query, only accurate up to 10,000."},"url":{"maxLength":5000,"type":"string"}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","next_page","object","total_count","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/charges/{charge}":{"get":{"summary":"Retrieve a charge","description":"Retrieves the details of a charge that has previously been created. Supply the unique charge ID that was returned from your previous request, and Stripe will return the corresponding charge information. The same information is returned when creating or refunding the charge.
","operationId":"GetChargesCharge","parameters":[{"name":"charge","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/charge"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Update a charge","description":"Updates the specified charge by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
","operationId":"PostChargesCharge","parameters":[{"name":"charge","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"customer":{"maxLength":5000,"type":"string","description":"The ID of an existing customer that will be associated with this request. This field may only be updated if there is no existing associated customer with this charge."},"description":{"maxLength":40000,"type":"string","description":"An arbitrary string which you can attach to a charge object. It is displayed when in the web interface alongside the charge. Note that if you use Stripe to send automatic email receipts to your customers, your receipt emails will include the `description` of the charge(s) that they are describing."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"fraud_details":{"title":"fraud_details","required":["user_report"],"type":"object","properties":{"user_report":{"maxLength":5000,"type":"string","description":"Either `safe` or `fraudulent`.","enum":["","fraudulent","safe"]}},"description":"A set of key-value pairs you can attach to a charge giving information about its riskiness. If you believe a charge is fraudulent, include a `user_report` key with a value of `fraudulent`. If you believe a charge is safe, include a `user_report` key with a value of `safe`. Stripe will use the information you send to improve our fraud detection algorithms.","x-stripeMostCommon":["user_report"]},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"receipt_email":{"maxLength":5000,"type":"string","description":"This is the email address that the receipt for this charge will be sent to. If this field is updated, then a new email receipt will be sent to the updated address."},"shipping":{"title":"optional_fields_shipping","required":["address","name"],"type":"object","properties":{"address":{"title":"optional_fields_address","type":"object","properties":{"city":{"maxLength":5000,"type":"string","description":"City, district, suburb, town, or village."},"country":{"maxLength":5000,"type":"string","description":"Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."},"line1":{"maxLength":5000,"type":"string","description":"Address line 1, such as the street, PO Box, or company name."},"line2":{"maxLength":5000,"type":"string","description":"Address line 2, such as the apartment, suite, unit, or building."},"postal_code":{"maxLength":5000,"type":"string","description":"ZIP or postal code."},"state":{"maxLength":5000,"type":"string","description":"State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))."}},"description":"Shipping address.","x-stripeMostCommon":["city","country","line1","line2","postal_code","state"]},"carrier":{"maxLength":5000,"type":"string","description":"The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc."},"name":{"maxLength":5000,"type":"string","description":"Recipient name."},"phone":{"maxLength":5000,"type":"string","description":"Recipient phone (including extension)."},"tracking_number":{"maxLength":5000,"type":"string","description":"The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas."}},"description":"Shipping information for the charge. Helps prevent fraud on charges for physical goods.","x-stripeMostCommon":["address","carrier","name","phone","tracking_number"]},"transfer_group":{"type":"string","description":"A string that identifies this transaction as part of a group. `transfer_group` may only be provided if it has not been set. See the [Connect documentation](https://docs.stripe.com/connect/separate-charges-and-transfers#transfer-options) for details."}},"additionalProperties":false,"x-stripeMostCommon":["customer","description","metadata","receipt_email","shipping"]},"encoding":{"expand":{"style":"deepObject","explode":true},"fraud_details":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true},"shipping":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/charge"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/charges/{charge}/capture":{"post":{"summary":"Capture a payment","description":"Capture the payment of an existing, uncaptured charge that was created with the capture option set to false.
Uncaptured payments expire a set number of days after they are created (7 by default), after which they are marked as refunded and capture attempts will fail.
\n\nDon’t use this method to capture a PaymentIntent-initiated charge. Use Capture a PaymentIntent.
","operationId":"PostChargesChargeCapture","parameters":[{"name":"charge","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"amount":{"type":"integer","description":"The amount to capture, which must be less than or equal to the original amount."},"application_fee":{"type":"integer","description":"An application fee to add on to this charge."},"application_fee_amount":{"type":"integer","description":"An application fee amount to add on to this charge, which must be less than or equal to the original amount."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"receipt_email":{"type":"string","description":"The email address to send this charge's receipt to. This will override the previously-specified email address for this charge, if one was set. Receipts will not be sent in test mode."},"statement_descriptor":{"maxLength":22,"type":"string","description":"For a non-card charge, text that appears on the customer's statement as the statement descriptor. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).\n\nFor a card charge, this value is ignored unless you don't specify a `statement_descriptor_suffix`, in which case this value is used as the suffix."},"statement_descriptor_suffix":{"maxLength":22,"type":"string","description":"Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement. If the account has no prefix value, the suffix is concatenated to the account's statement descriptor."},"transfer_data":{"title":"transfer_data_specs","type":"object","properties":{"amount":{"type":"integer","description":"The amount transferred to the destination account, if specified. By default, the entire charge amount is transferred to the destination account."}},"description":"An optional dictionary including the account to automatically transfer to as part of a destination charge. [See the Connect documentation](https://docs.stripe.com/connect/destination-charges) for details.","x-stripeMostCommon":["amount"]},"transfer_group":{"type":"string","description":"A string that identifies this transaction as part of a group. `transfer_group` may only be provided if it has not been set. See the [Connect documentation](https://docs.stripe.com/connect/separate-charges-and-transfers#transfer-options) for details."}},"additionalProperties":false,"x-stripeMostCommon":["amount","application_fee","receipt_email","statement_descriptor","statement_descriptor_suffix"]},"encoding":{"expand":{"style":"deepObject","explode":true},"transfer_data":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/charge"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/charges/{charge}/refunds":{"get":{"summary":"List all refunds","description":"You can see a list of the refunds belonging to a specific charge. Note that the 10 most recent refunds are always available by default on the charge object. If you need more than those 10, you can use this API method and the limit and starting_after parameters to page through additional refunds.
Retrieves the details of an existing refund.
","operationId":"GetChargesChargeRefundsRefund","parameters":[{"name":"charge","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"refund","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/refund"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/checkout/sessions":{"get":{"summary":"List all Checkout Sessions","description":"Returns a list of Checkout Sessions.
","operationId":"GetCheckoutSessions","parameters":[{"name":"created","in":"query","description":"Only return Checkout Sessions that were created during the given date interval.","required":false,"style":"deepObject","explode":true,"schema":{"anyOf":[{"title":"range_query_specs","type":"object","properties":{"gt":{"type":"integer","description":"Minimum value to filter by (exclusive)"},"gte":{"type":"integer","description":"Minimum value to filter by (inclusive)"},"lt":{"type":"integer","description":"Maximum value to filter by (exclusive)"},"lte":{"type":"integer","description":"Maximum value to filter by (inclusive)"}},"x-stripeMostCommon":["gt","gte","lt","lte"]},{"type":"integer"}]}},{"name":"customer","in":"query","description":"Only return the Checkout Sessions for the Customer specified.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"customer_account","in":"query","description":"Only return the Checkout Sessions for the Account specified.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"customer_details","in":"query","description":"Only return the Checkout Sessions for the Customer details specified.","required":false,"style":"deepObject","explode":true,"schema":{"title":"customer_details_params","required":["email"],"type":"object","properties":{"email":{"type":"string","description":"Customer's email address."}},"x-stripeMostCommon":["email"]}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"payment_intent","in":"query","description":"Only return the Checkout Session for the PaymentIntent specified.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"payment_link","in":"query","description":"Only return the Checkout Sessions for the Payment Link specified.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"status","in":"query","description":"Only return the Checkout Sessions matching the given status.","required":false,"style":"form","explode":true,"schema":{"type":"string","enum":["complete","expired","open"]}},{"name":"subscription","in":"query","description":"Only return the Checkout Session for the subscription specified.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"PaymentPagesCheckoutSessionList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/checkout.session"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create a Checkout Session","description":"Creates a Checkout Session object.
","operationId":"PostCheckoutSessions","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"adaptive_pricing":{"title":"adaptive_pricing_params","type":"object","properties":{"enabled":{"type":"boolean","description":"If set to `true`, Adaptive Pricing is available on [eligible sessions](https://docs.stripe.com/payments/currencies/localize-prices/adaptive-pricing?payment-ui=stripe-hosted#restrictions). Defaults to your [dashboard setting](https://dashboard.stripe.com/settings/adaptive-pricing)."}},"description":"Settings for price localization with [Adaptive Pricing](https://docs.stripe.com/payments/checkout/adaptive-pricing).","x-stripeMostCommon":["enabled"]},"after_expiration":{"title":"after_expiration_params","type":"object","properties":{"recovery":{"title":"recovery_params","required":["enabled"],"type":"object","properties":{"allow_promotion_codes":{"type":"boolean","description":"Enables user redeemable promotion codes on the recovered Checkout Sessions. Defaults to `false`"},"enabled":{"type":"boolean","description":"If `true`, a recovery URL will be generated to recover this Checkout Session if it\nexpires before a successful transaction is completed. It will be attached to the\nCheckout Session object upon expiration."}},"description":"Configure a Checkout Session that can be used to recover an expired session.","x-stripeMostCommon":["allow_promotion_codes","enabled"]}},"description":"Configure actions after a Checkout Session has expired. You can't set this parameter if `ui_mode` is `custom`.","x-stripeMostCommon":["recovery"]},"allow_promotion_codes":{"type":"boolean","description":"Enables user redeemable promotion codes."},"automatic_tax":{"title":"automatic_tax_params","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Set to `true` to [calculate tax automatically](https://docs.stripe.com/tax) using the customer's location.\n\nEnabling this parameter causes Checkout to collect any billing address information necessary for tax calculation."},"liability":{"title":"param","required":["type"],"type":"object","properties":{"account":{"type":"string","description":"The connected account being referenced when `type` is `account`."},"type":{"type":"string","description":"Type of the account referenced in the request.","enum":["account","self"],"x-stripeBypassValidation":true}},"description":"The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.","x-stripeMostCommon":["account","type"]}},"description":"Settings for automatic tax lookup for this session and resulting payments, invoices, and subscriptions.","x-stripeMostCommon":["enabled","liability"]},"billing_address_collection":{"type":"string","description":"Specify whether Checkout should collect the customer's billing address. Defaults to `auto`.","enum":["auto","required"]},"branding_settings":{"title":"branding_settings_params","type":"object","properties":{"background_color":{"description":"A hex color value starting with `#` representing the background color for the Checkout Session.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]},"border_style":{"type":"string","description":"The border style for the Checkout Session.","enum":["","pill","rectangular","rounded"]},"button_color":{"description":"A hex color value starting with `#` representing the button color for the Checkout Session.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]},"display_name":{"maxLength":5000,"type":"string","description":"A string to override the business name shown on the Checkout Session. This only shows at the top of the Checkout page, and your business name still appears in terms, receipts, and other places."},"font_family":{"type":"string","description":"The font family for the Checkout Session corresponding to one of the [supported font families](https://docs.stripe.com/payments/checkout/customization/appearance?payment-ui=stripe-hosted#font-compatibility).","enum":["","be_vietnam_pro","bitter","chakra_petch","default","hahmlet","inconsolata","inter","lato","lora","m_plus_1_code","montserrat","noto_sans","noto_sans_jp","noto_serif","nunito","open_sans","pridi","pt_sans","pt_serif","raleway","roboto","roboto_slab","source_sans_pro","titillium_web","ubuntu_mono","zen_maru_gothic"]},"icon":{"title":"icon_params","required":["type"],"type":"object","properties":{"file":{"type":"string","description":"The ID of a [File upload](https://stripe.com/docs/api/files) representing the icon. Purpose must be `business_icon`. Required if `type` is `file` and disallowed otherwise."},"type":{"type":"string","description":"The type of image for the icon. Must be one of `file` or `url`.","enum":["file","url"]},"url":{"type":"string","description":"The URL of the image. Required if `type` is `url` and disallowed otherwise."}},"description":"The icon for the Checkout Session. For best results, use a square image.","x-stripeMostCommon":["file","type","url"]},"logo":{"title":"logo_params","required":["type"],"type":"object","properties":{"file":{"type":"string","description":"The ID of a [File upload](https://stripe.com/docs/api/files) representing the logo. Purpose must be `business_logo`. Required if `type` is `file` and disallowed otherwise."},"type":{"type":"string","description":"The type of image for the logo. Must be one of `file` or `url`.","enum":["file","url"]},"url":{"type":"string","description":"The URL of the image. Required if `type` is `url` and disallowed otherwise."}},"description":"The logo for the Checkout Session.","x-stripeMostCommon":["file","type","url"]}},"description":"The branding settings for the Checkout Session. This parameter is not allowed if ui_mode is `custom`.","x-stripeMostCommon":["background_color","border_style","button_color","display_name","font_family","icon","logo"]},"cancel_url":{"type":"string","description":"If set, Checkout displays a back button and customers will be directed to this URL if they decide to cancel payment and return to your website. This parameter is not allowed if ui_mode is `embedded` or `custom`."},"client_reference_id":{"maxLength":200,"type":"string","description":"A unique string to reference the Checkout Session. This can be a\ncustomer ID, a cart ID, or similar, and can be used to reconcile the\nsession with your internal systems."},"consent_collection":{"title":"consent_collection_params","type":"object","properties":{"payment_method_reuse_agreement":{"title":"payment_method_reuse_agreement_params","required":["position"],"type":"object","properties":{"position":{"type":"string","description":"Determines the position and visibility of the payment method reuse agreement in the UI. When set to `auto`, Stripe's\ndefaults will be used. When set to `hidden`, the payment method reuse agreement text will always be hidden in the UI.","enum":["auto","hidden"]}},"description":"Determines the display of payment method reuse agreement text in the UI. If set to `hidden`, it will hide legal text related to the reuse of a payment method.","x-stripeMostCommon":["position"]},"promotions":{"type":"string","description":"If set to `auto`, enables the collection of customer consent for promotional communications. The Checkout\nSession will determine whether to display an option to opt into promotional communication\nfrom the merchant depending on the customer's locale. Only available to US merchants.","enum":["auto","none"]},"terms_of_service":{"type":"string","description":"If set to `required`, it requires customers to check a terms of service checkbox before being able to pay.\nThere must be a valid terms of service URL set in your [Dashboard settings](https://dashboard.stripe.com/settings/public).","enum":["none","required"]}},"description":"Configure fields for the Checkout Session to gather active consent from customers.","x-stripeMostCommon":["payment_method_reuse_agreement","promotions","terms_of_service"]},"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). Required in `setup` mode when `payment_method_types` is not set.","format":"currency"},"custom_fields":{"type":"array","description":"Collect additional information from your customer using custom fields. Up to 3 fields are supported. You can't set this parameter if `ui_mode` is `custom`.","items":{"title":"custom_field_param","required":["key","label","type"],"type":"object","properties":{"dropdown":{"title":"custom_field_dropdown_param","required":["options"],"type":"object","properties":{"default_value":{"maxLength":100,"type":"string","description":"The value that pre-fills the field on the payment page.Must match a `value` in the `options` array."},"options":{"type":"array","description":"The options available for the customer to select. Up to 200 options allowed.","items":{"title":"custom_field_option_param","required":["label","value"],"type":"object","properties":{"label":{"maxLength":100,"type":"string","description":"The label for the option, displayed to the customer. Up to 100 characters."},"value":{"maxLength":100,"type":"string","description":"The value for this option, not displayed to the customer, used by your integration to reconcile the option selected by the customer. Must be unique to this option, alphanumeric, and up to 100 characters."}},"x-stripeMostCommon":["label","value"]}}},"description":"Configuration for `type=dropdown` fields.","x-stripeMostCommon":["default_value","options"]},"key":{"maxLength":200,"type":"string","description":"String of your choice that your integration can use to reconcile this field. Must be unique to this field, alphanumeric, and up to 200 characters."},"label":{"title":"custom_field_label_param","required":["custom","type"],"type":"object","properties":{"custom":{"maxLength":50,"type":"string","description":"Custom text for the label, displayed to the customer. Up to 50 characters."},"type":{"type":"string","description":"The type of the label.","enum":["custom"]}},"description":"The label for the field, displayed to the customer.","x-stripeMostCommon":["custom","type"]},"numeric":{"title":"custom_field_numeric_param","type":"object","properties":{"default_value":{"maxLength":255,"type":"string","description":"The value that pre-fills the field on the payment page."},"maximum_length":{"type":"integer","description":"The maximum character length constraint for the customer's input."},"minimum_length":{"type":"integer","description":"The minimum character length requirement for the customer's input."}},"description":"Configuration for `type=numeric` fields.","x-stripeMostCommon":["default_value","maximum_length","minimum_length"]},"optional":{"type":"boolean","description":"Whether the customer is required to complete the field before completing the Checkout Session. Defaults to `false`."},"text":{"title":"custom_field_text_param","type":"object","properties":{"default_value":{"maxLength":255,"type":"string","description":"The value that pre-fills the field on the payment page."},"maximum_length":{"type":"integer","description":"The maximum character length constraint for the customer's input."},"minimum_length":{"type":"integer","description":"The minimum character length requirement for the customer's input."}},"description":"Configuration for `type=text` fields.","x-stripeMostCommon":["default_value","maximum_length","minimum_length"]},"type":{"type":"string","description":"The type of the field.","enum":["dropdown","numeric","text"]}},"x-stripeMostCommon":["dropdown","key","label","numeric","optional","text","type"]}},"custom_text":{"title":"custom_text_param","type":"object","properties":{"after_submit":{"description":"Custom text that should be displayed after the payment confirmation button.","anyOf":[{"title":"custom_text_position_param","required":["message"],"type":"object","properties":{"message":{"maxLength":1200,"type":"string","description":"Text can be up to 1200 characters in length."}},"x-stripeMostCommon":["message"]},{"type":"string","enum":[""]}]},"shipping_address":{"description":"Custom text that should be displayed alongside shipping address collection.","anyOf":[{"title":"custom_text_position_param","required":["message"],"type":"object","properties":{"message":{"maxLength":1200,"type":"string","description":"Text can be up to 1200 characters in length."}},"x-stripeMostCommon":["message"]},{"type":"string","enum":[""]}]},"submit":{"description":"Custom text that should be displayed alongside the payment confirmation button.","anyOf":[{"title":"custom_text_position_param","required":["message"],"type":"object","properties":{"message":{"maxLength":1200,"type":"string","description":"Text can be up to 1200 characters in length."}},"x-stripeMostCommon":["message"]},{"type":"string","enum":[""]}]},"terms_of_service_acceptance":{"description":"Custom text that should be displayed in place of the default terms of service agreement text.","anyOf":[{"title":"custom_text_position_param","required":["message"],"type":"object","properties":{"message":{"maxLength":1200,"type":"string","description":"Text can be up to 1200 characters in length."}},"x-stripeMostCommon":["message"]},{"type":"string","enum":[""]}]}},"description":"Display additional text for your customers using custom text. You can't set this parameter if `ui_mode` is `custom`.","x-stripeMostCommon":["after_submit","shipping_address","submit","terms_of_service_acceptance"]},"customer":{"maxLength":5000,"type":"string","description":"ID of an existing Customer, if one exists. In `payment` mode, the customer’s most recently saved card\npayment method will be used to prefill the email, name, card details, and billing address\non the Checkout page. In `subscription` mode, the customer’s [default payment method](https://docs.stripe.com/api/customers/update#update_customer-invoice_settings-default_payment_method)\nwill be used if it’s a card, otherwise the most recently saved card will be used. A valid billing address, billing name and billing email are required on the payment method for Checkout to prefill the customer's card details.\n\nIf the Customer already has a valid [email](https://docs.stripe.com/api/customers/object#customer_object-email) set, the email will be prefilled and not editable in Checkout.\nIf the Customer does not have a valid `email`, Checkout will set the email entered during the session on the Customer.\n\nIf blank for Checkout Sessions in `subscription` mode or with `customer_creation` set as `always` in `payment` mode, Checkout will create a new Customer object based on information provided during the payment flow.\n\nYou can set [`payment_intent_data.setup_future_usage`](https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-payment_intent_data-setup_future_usage) to have Checkout automatically attach the payment method to the Customer you pass in for future reuse."},"customer_account":{"maxLength":5000,"type":"string","description":"ID of an existing Account, if one exists. Has the same behavior as `customer`."},"customer_creation":{"type":"string","description":"Configure whether a Checkout Session creates a [Customer](https://docs.stripe.com/api/customers) during Session confirmation.\n\nWhen a Customer is not created, you can still retrieve email, address, and other customer data entered in Checkout\nwith [customer_details](https://docs.stripe.com/api/checkout/sessions/object#checkout_session_object-customer_details).\n\nSessions that don't create Customers instead are grouped by [guest customers](https://docs.stripe.com/payments/checkout/guest-customers)\nin the Dashboard. Promotion codes limited to first time customers will return invalid for these Sessions.\n\nCan only be set in `payment` and `setup` mode.","enum":["always","if_required"]},"customer_email":{"type":"string","description":"If provided, this value will be used when the Customer object is created.\nIf not provided, customers will be asked to enter their email address.\nUse this parameter to prefill customer data if you already have an email\non file. To access information about the customer once a session is\ncomplete, use the `customer` field."},"customer_update":{"title":"customer_update_params","type":"object","properties":{"address":{"type":"string","description":"Describes whether Checkout saves the billing address onto `customer.address`.\nTo always collect a full billing address, use `billing_address_collection`. Defaults to `never`.","enum":["auto","never"],"x-stripeBypassValidation":true},"name":{"type":"string","description":"Describes whether Checkout saves the name onto `customer.name`. Defaults to `never`.","enum":["auto","never"],"x-stripeBypassValidation":true},"shipping":{"type":"string","description":"Describes whether Checkout saves shipping information onto `customer.shipping`.\nTo collect shipping information, use `shipping_address_collection`. Defaults to `never`.","enum":["auto","never"],"x-stripeBypassValidation":true}},"description":"Controls what fields on Customer can be updated by the Checkout Session. Can only be provided when `customer` is provided.","x-stripeMostCommon":["address","name","shipping"]},"discounts":{"type":"array","description":"The coupon or promotion code to apply to this Session. Currently, only up to one may be specified.","items":{"title":"discount_params","type":"object","properties":{"coupon":{"maxLength":5000,"type":"string","description":"The ID of the coupon to apply to this Session."},"promotion_code":{"maxLength":5000,"type":"string","description":"The ID of a promotion code to apply to this Session."}},"x-stripeMostCommon":["coupon","coupon_data","promotion_code"]}},"excluded_payment_method_types":{"type":"array","description":"A list of the types of payment methods (e.g., `card`) that should be excluded from this Checkout Session. This should only be used when payment methods for this Checkout Session are managed through the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods).","items":{"type":"string","enum":["acss_debit","affirm","afterpay_clearpay","alipay","alma","amazon_pay","au_becs_debit","bacs_debit","bancontact","billie","blik","boleto","card","cashapp","crypto","customer_balance","eps","fpx","giropay","grabpay","ideal","kakao_pay","klarna","konbini","kr_card","mb_way","mobilepay","multibanco","naver_pay","nz_bank_account","oxxo","p24","pay_by_bank","payco","paynow","paypal","payto","pix","promptpay","revolut_pay","samsung_pay","satispay","sepa_debit","sofort","swish","twint","upi","us_bank_account","wechat_pay","zip"],"x-stripeBypassValidation":true}},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"expires_at":{"type":"integer","description":"The Epoch time in seconds at which the Checkout Session will expire. It can be anywhere from 30 minutes to 24 hours after Checkout Session creation. By default, this value is 24 hours from creation.","format":"unix-time"},"integration_identifier":{"maxLength":200,"type":"string","description":"The integration identifier for this Checkout Session. Multiple Checkout Sessions can have the same integration identifier."},"invoice_creation":{"title":"invoice_creation_params","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Set to `true` to enable invoice creation."},"invoice_data":{"title":"invoice_data_params","type":"object","properties":{"account_tax_ids":{"description":"The account tax IDs associated with the invoice.","anyOf":[{"type":"array","items":{"maxLength":5000,"type":"string"}},{"type":"string","enum":[""]}]},"custom_fields":{"description":"Default custom fields to be displayed on invoices for this customer.","anyOf":[{"type":"array","items":{"title":"custom_field_params","required":["name","value"],"type":"object","properties":{"name":{"maxLength":40,"type":"string","description":"The name of the custom field. This may be up to 40 characters."},"value":{"maxLength":140,"type":"string","description":"The value of the custom field. This may be up to 140 characters."}},"x-stripeMostCommon":["name","value"]}},{"type":"string","enum":[""]}]},"description":{"maxLength":1500,"type":"string","description":"An arbitrary string attached to the object. Often useful for displaying to users."},"footer":{"maxLength":5000,"type":"string","description":"Default footer to be displayed on invoices for this customer."},"issuer":{"title":"param","required":["type"],"type":"object","properties":{"account":{"type":"string","description":"The connected account being referenced when `type` is `account`."},"type":{"type":"string","description":"Type of the account referenced in the request.","enum":["account","self"],"x-stripeBypassValidation":true}},"description":"The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.","x-stripeMostCommon":["account","type"]},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"rendering_options":{"description":"Default options for invoice PDF rendering for this customer.","anyOf":[{"title":"checkout_rendering_options_param","type":"object","properties":{"amount_tax_display":{"type":"string","description":"How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.","enum":["","exclude_tax","include_inclusive_tax"]},"template":{"maxLength":5000,"type":"string","description":"ID of the invoice rendering template to use for this invoice."}},"x-stripeMostCommon":["amount_tax_display","invoice_title","template"]},{"type":"string","enum":[""]}]}},"description":"Parameters passed when creating invoices for payment-mode Checkout Sessions.","x-stripeMostCommon":["account_tax_ids","custom_fields","description","footer","issuer","metadata","rendering_options"]}},"description":"Generate a post-purchase Invoice for one-time payments.","x-stripeMostCommon":["enabled","invoice_data"]},"line_items":{"type":"array","description":"A list of items the customer is purchasing. Use this parameter to pass one-time or recurring [Prices](https://docs.stripe.com/api/prices). The parameter is required for `payment` and `subscription` mode.\n\nFor `payment` mode, there is a maximum of 100 line items, however it is recommended to consolidate line items if there are more than a few dozen.\n\nFor `subscription` mode, there is a maximum of 20 line items with recurring Prices and 20 line items with one-time Prices. Line items with one-time Prices will be on the initial invoice only.","items":{"title":"line_item_params","type":"object","properties":{"adjustable_quantity":{"title":"adjustable_quantity_params","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Set to true if the quantity can be adjusted to any non-negative integer."},"maximum":{"type":"integer","description":"The maximum quantity the customer can purchase for the Checkout Session. By default this value is 99. You can specify a value up to 999999."},"minimum":{"type":"integer","description":"The minimum quantity the customer must purchase for the Checkout Session. By default this value is 0."}},"description":"When set, provides configuration for this item’s quantity to be adjusted by the customer during Checkout.","x-stripeMostCommon":["enabled","maximum","minimum"]},"dynamic_tax_rates":{"type":"array","description":"The [tax rates](https://docs.stripe.com/api/tax_rates) that will be applied to this line item depending on the customer's billing/shipping address. We currently support the following countries: US, GB, AU, and all countries in the EU. You can't set this parameter if `ui_mode` is `custom`.","items":{"maxLength":5000,"type":"string"}},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"price":{"maxLength":5000,"type":"string","description":"The ID of the [Price](https://docs.stripe.com/api/prices) or [Plan](https://docs.stripe.com/api/plans) object. One of `price` or `price_data` is required."},"price_data":{"title":"price_data_with_product_data","required":["currency"],"type":"object","properties":{"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"product":{"maxLength":5000,"type":"string","description":"The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to. One of `product` or `product_data` is required."},"product_data":{"title":"product_data","required":["name"],"type":"object","properties":{"description":{"maxLength":40000,"type":"string","description":"The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes."},"images":{"type":"array","description":"A list of up to 8 URLs of images for this product, meant to be displayable to the customer.","items":{"type":"string"}},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"name":{"maxLength":5000,"type":"string","description":"The product's name, meant to be displayable to the customer."},"tax_code":{"maxLength":5000,"type":"string","description":"A [tax code](https://docs.stripe.com/tax/tax-categories) ID."},"unit_label":{"maxLength":12,"type":"string","description":"A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal."}},"description":"Data used to generate a new [Product](https://docs.stripe.com/api/products) object inline. One of `product` or `product_data` is required.","x-stripeMostCommon":["description","images","metadata","name","tax_code","tax_details","unit_label"]},"recurring":{"title":"recurring_adhoc","required":["interval"],"type":"object","properties":{"interval":{"type":"string","description":"Specifies billing frequency. Either `day`, `week`, `month` or `year`.","enum":["day","month","week","year"]},"interval_count":{"type":"integer","description":"The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks)."}},"description":"The recurring components of a price such as `interval` and `interval_count`.","x-stripeMostCommon":["interval"]},"tax_behavior":{"type":"string","description":"Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.","enum":["exclusive","inclusive","unspecified"]},"unit_amount":{"type":"integer","description":"A non-negative integer in cents (or local equivalent) representing how much to charge. One of `unit_amount` or `unit_amount_decimal` is required."},"unit_amount_decimal":{"type":"string","description":"Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.","format":"decimal"}},"description":"Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline. One of `price` or `price_data` is required.","x-stripeMostCommon":["currency","product","unit_amount"]},"quantity":{"type":"integer","description":"The quantity of the line item being purchased. Quantity should not be defined when `recurring.usage_type=metered`."},"tax_rates":{"type":"array","description":"The [tax rates](https://docs.stripe.com/api/tax_rates) which apply to this line item.","items":{"maxLength":5000,"type":"string"}}},"x-stripeMostCommon":["adjustable_quantity","dynamic_tax_rates","metadata","price","price_data","quantity","tax_rates"]}},"locale":{"type":"string","description":"The IETF language tag of the locale Checkout is displayed in. If blank or `auto`, the browser's locale is used.","enum":["auto","bg","cs","da","de","el","en","en-GB","es","es-419","et","fi","fil","fr","fr-CA","hr","hu","id","it","ja","ko","lt","lv","ms","mt","nb","nl","pl","pt","pt-BR","ro","ru","sk","sl","sv","th","tr","vi","zh","zh-HK","zh-TW"],"x-stripeBypassValidation":true},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"mode":{"type":"string","description":"The mode of the Checkout Session. Pass `subscription` if the Checkout Session includes at least one recurring item.","enum":["payment","setup","subscription"]},"name_collection":{"title":"name_collection_params","type":"object","properties":{"business":{"title":"name_collection_business_params","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Enable business name collection on the Checkout Session. Defaults to `false`."},"optional":{"type":"boolean","description":"Whether the customer is required to provide a business name before completing the Checkout Session. Defaults to `false`."}},"description":"Controls settings applied for collecting the customer's business name on the session.","x-stripeMostCommon":["enabled","optional"]},"individual":{"title":"name_collection_individual_params","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Enable individual name collection on the Checkout Session. Defaults to `false`."},"optional":{"type":"boolean","description":"Whether the customer is required to provide their name before completing the Checkout Session. Defaults to `false`."}},"description":"Controls settings applied for collecting the customer's individual name on the session.","x-stripeMostCommon":["enabled","optional"]}},"description":"Controls name collection settings for the session.\n\nYou can configure Checkout to collect your customers' business names, individual names, or both. Each name field can be either required or optional.\n\nIf a [Customer](https://docs.stripe.com/api/customers) is created or provided, the names can be saved to the Customer object as well.\n\nYou can't set this parameter if `ui_mode` is `custom`.","x-stripeMostCommon":["business","individual"]},"optional_items":{"type":"array","description":"A list of optional items the customer can add to their order at checkout. Use this parameter to pass one-time or recurring [Prices](https://docs.stripe.com/api/prices).\n\nThere is a maximum of 10 optional items allowed on a Checkout Session, and the existing limits on the number of line items allowed on a Checkout Session apply to the combined number of line items and optional items.\n\nFor `payment` mode, there is a maximum of 100 combined line items and optional items, however it is recommended to consolidate items if there are more than a few dozen.\n\nFor `subscription` mode, there is a maximum of 20 line items and optional items with recurring Prices and 20 line items and optional items with one-time Prices.\n\nYou can't set this parameter if `ui_mode` is `custom`.","items":{"title":"optional_item_params","required":["price","quantity"],"type":"object","properties":{"adjustable_quantity":{"title":"optional_item_adjustable_quantity_params","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Set to true if the quantity can be adjusted to any non-negative integer."},"maximum":{"type":"integer","description":"The maximum quantity of this item the customer can purchase. By default this value is 99. You can specify a value up to 999999."},"minimum":{"type":"integer","description":"The minimum quantity of this item the customer must purchase, if they choose to purchase it. Because this item is optional, the customer will always be able to remove it from their order, even if the `minimum` configured here is greater than 0. By default this value is 0."}},"description":"When set, provides configuration for the customer to adjust the quantity of the line item created when a customer chooses to add this optional item to their order.","x-stripeMostCommon":["enabled","maximum","minimum"]},"price":{"maxLength":5000,"type":"string","description":"The ID of the [Price](https://docs.stripe.com/api/prices) or [Plan](https://docs.stripe.com/api/plans) object."},"quantity":{"type":"integer","description":"The initial quantity of the line item created when a customer chooses to add this optional item to their order."}},"x-stripeMostCommon":["adjustable_quantity","price","quantity"]}},"origin_context":{"type":"string","description":"Where the user is coming from. This informs the optimizations that are applied to the session. You can't set this parameter if `ui_mode` is `custom`.","enum":["mobile_app","web"]},"payment_intent_data":{"title":"payment_intent_data_params","type":"object","properties":{"application_fee_amount":{"type":"integer","description":"The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts)."},"capture_method":{"type":"string","description":"Controls when the funds will be captured from the customer's account.","enum":["automatic","automatic_async","manual"]},"description":{"maxLength":1000,"type":"string","description":"An arbitrary string attached to the object. Often useful for displaying to users."},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"on_behalf_of":{"type":"string","description":"The Stripe account ID for which these funds are intended. For details,\nsee the PaymentIntents [use case for connected\naccounts](/docs/payments/connected-accounts)."},"receipt_email":{"type":"string","description":"Email address that the receipt for the resulting payment will be sent to. If `receipt_email` is specified for a payment in live mode, a receipt will be sent regardless of your [email settings](https://dashboard.stripe.com/account/emails)."},"setup_future_usage":{"type":"string","description":"Indicates that you intend to [make future payments](https://docs.stripe.com/payments/payment-intents#future-usage) with the payment\nmethod collected by this Checkout Session.\n\nWhen setting this to `on_session`, Checkout will show a notice to the\ncustomer that their payment details will be saved.\n\nWhen setting this to `off_session`, Checkout will show a notice to the\ncustomer that their payment details will be saved and used for future\npayments.\n\nIf a Customer has been provided or Checkout creates a new Customer,\nCheckout will attach the payment method to the Customer.\n\nIf Checkout does not create a Customer, the payment method is not attached\nto a Customer. To reuse the payment method, you can retrieve it from the\nCheckout Session's PaymentIntent.\n\nWhen processing card payments, Checkout also uses `setup_future_usage`\nto dynamically optimize your payment flow and comply with regional\nlegislation and network rules, such as SCA.","enum":["off_session","on_session"]},"shipping":{"title":"shipping","required":["address","name"],"type":"object","properties":{"address":{"title":"address","required":["line1"],"type":"object","properties":{"city":{"maxLength":5000,"type":"string","description":"City, district, suburb, town, or village."},"country":{"maxLength":5000,"type":"string","description":"Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."},"line1":{"maxLength":5000,"type":"string","description":"Address line 1, such as the street, PO Box, or company name."},"line2":{"maxLength":5000,"type":"string","description":"Address line 2, such as the apartment, suite, unit, or building."},"postal_code":{"maxLength":5000,"type":"string","description":"ZIP or postal code."},"state":{"maxLength":5000,"type":"string","description":"State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))."}},"description":"Shipping address.","x-stripeMostCommon":["city","country","line1","line2","postal_code","state"]},"carrier":{"maxLength":5000,"type":"string","description":"The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc."},"name":{"maxLength":5000,"type":"string","description":"Recipient name."},"phone":{"maxLength":5000,"type":"string","description":"Recipient phone (including extension)."},"tracking_number":{"maxLength":5000,"type":"string","description":"The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas."}},"description":"Shipping information for this payment.","x-stripeMostCommon":["address","carrier","name","phone","tracking_number"]},"statement_descriptor":{"maxLength":22,"type":"string","description":"Text that appears on the customer's statement as the statement descriptor for a non-card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).\n\nSetting this value for a card charge returns an error. For card charges, set the [statement_descriptor_suffix](https://docs.stripe.com/get-started/account/statement-descriptors#dynamic) instead."},"statement_descriptor_suffix":{"maxLength":22,"type":"string","description":"Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement."},"transfer_data":{"title":"transfer_data_params","required":["destination"],"type":"object","properties":{"amount":{"type":"integer","description":"The amount that will be transferred automatically when a charge succeeds."},"destination":{"type":"string","description":"If specified, successful charges will be attributed to the destination\naccount for tax reporting, and the funds from charges will be transferred\nto the destination account. The ID of the resulting transfer will be\nreturned on the successful charge's `transfer` field."}},"description":"The parameters used to automatically create a Transfer when the payment succeeds.\nFor more information, see the PaymentIntents [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts).","x-stripeMostCommon":["amount","destination"]},"transfer_group":{"type":"string","description":"A string that identifies the resulting payment as part of a group. See the PaymentIntents [use case for connected accounts](https://docs.stripe.com/connect/separate-charges-and-transfers) for details."}},"description":"A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in `payment` mode.","x-stripeMostCommon":["application_fee_amount","capture_method","cross_border_classification","description","fulfillment_date","metadata","on_behalf_of","receipt_email","setup_future_usage","shipping","statement_descriptor","statement_descriptor_suffix","transfer_data","transfer_group"]},"payment_method_collection":{"type":"string","description":"Specify whether Checkout should collect a payment method. When set to `if_required`, Checkout will not collect a payment method when the total due for the session is 0.\nThis may occur if the Checkout Session includes a free trial or a discount.\n\nCan only be set in `subscription` mode. Defaults to `always`.\n\nIf you'd like information on how to collect a payment method outside of Checkout, read the guide on configuring [subscriptions with a free trial](https://docs.stripe.com/payments/checkout/free-trials).","enum":["always","if_required"]},"payment_method_configuration":{"maxLength":100,"type":"string","description":"The ID of the payment method configuration to use with this Checkout session."},"payment_method_data":{"title":"payment_method_data_param","type":"object","properties":{"allow_redisplay":{"type":"string","description":"Allow redisplay will be set on the payment method on confirmation and indicates whether this payment method can be shown again to the customer in a checkout flow. Only set this field if you wish to override the allow_redisplay value determined by Checkout.","enum":["always","limited","unspecified"]}},"description":"This parameter allows you to set some attributes on the payment method created during a Checkout session.","x-stripeMostCommon":["allow_redisplay"]},"payment_method_options":{"title":"payment_method_options_param","type":"object","properties":{"acss_debit":{"title":"payment_method_options_param","type":"object","properties":{"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). This is only accepted for Checkout Sessions in `setup` mode.","enum":["cad","usd"]},"mandate_options":{"title":"mandate_options_param","type":"object","properties":{"custom_mandate_url":{"description":"A URL for custom mandate text to render during confirmation step.\nThe URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,\nor `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.","anyOf":[{"type":"string"},{"type":"string","enum":[""]}]},"default_for":{"type":"array","description":"List of Stripe products where this mandate can be selected automatically. Only usable in `setup` mode.","items":{"type":"string","enum":["invoice","subscription"]}},"interval_description":{"maxLength":500,"type":"string","description":"Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'."},"payment_schedule":{"type":"string","description":"Payment schedule for the mandate.","enum":["combined","interval","sporadic"]},"transaction_type":{"type":"string","description":"Transaction type of the mandate.","enum":["business","personal"]}},"description":"Additional fields for Mandate creation","x-stripeMostCommon":["custom_mandate_url","default_for","interval_description","payment_schedule","transaction_type"]},"setup_future_usage":{"type":"string","description":"Indicates that you intend to make future payments with this PaymentIntent's payment method.\n\nIf you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.\n\nIf the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.\n\nWhen processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).","enum":["none","off_session","on_session"]},"target_date":{"maxLength":5000,"type":"string","description":"Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now."},"verification_method":{"type":"string","description":"Verification method for the intent","enum":["automatic","instant","microdeposits"],"x-stripeBypassValidation":true}},"description":"contains details about the ACSS Debit payment method options. You can't set this parameter if `ui_mode` is `custom`.","x-stripeMostCommon":["currency","mandate_options","setup_future_usage","target_date","verification_method"]},"affirm":{"title":"payment_method_options_param","type":"object","properties":{"capture_method":{"type":"string","description":"Controls when the funds will be captured from the customer's account.","enum":["manual"]},"setup_future_usage":{"type":"string","description":"Indicates that you intend to make future payments with this PaymentIntent's payment method.\n\nIf you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.\n\nIf the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.\n\nWhen processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).","enum":["none"]}},"description":"contains details about the Affirm payment method options.","x-stripeMostCommon":["capture_method","setup_future_usage"]},"afterpay_clearpay":{"title":"payment_method_options_param","type":"object","properties":{"capture_method":{"type":"string","description":"Controls when the funds will be captured from the customer's account.","enum":["manual"]},"setup_future_usage":{"type":"string","description":"Indicates that you intend to make future payments with this PaymentIntent's payment method.\n\nIf you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.\n\nIf the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.\n\nWhen processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).","enum":["none"]}},"description":"contains details about the Afterpay Clearpay payment method options.","x-stripeMostCommon":["capture_method","setup_future_usage"]},"alipay":{"title":"payment_method_options_param","type":"object","properties":{"setup_future_usage":{"type":"string","description":"Indicates that you intend to make future payments with this PaymentIntent's payment method.\n\nIf you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.\n\nIf the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.\n\nWhen processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).","enum":["none"],"x-stripeBypassValidation":true}},"description":"contains details about the Alipay payment method options.","x-stripeMostCommon":["currency","setup_future_usage"]},"alma":{"title":"payment_method_options_param","type":"object","properties":{"capture_method":{"type":"string","description":"Controls when the funds will be captured from the customer's account.","enum":["manual"]}},"description":"contains details about the Alma payment method options.","x-stripeMostCommon":["capture_method"]},"amazon_pay":{"title":"payment_method_options_param","type":"object","properties":{"capture_method":{"type":"string","description":"Controls when the funds will be captured from the customer's account.","enum":["manual"]},"setup_future_usage":{"type":"string","description":"Indicates that you intend to make future payments with this PaymentIntent's payment method.\n\nIf you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.\n\nIf the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.\n\nWhen processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).","enum":["none","off_session"]}},"description":"contains details about the AmazonPay payment method options.","x-stripeMostCommon":["capture_method","setup_future_usage"]},"au_becs_debit":{"title":"payment_method_options_param","type":"object","properties":{"setup_future_usage":{"type":"string","description":"Indicates that you intend to make future payments with this PaymentIntent's payment method.\n\nIf you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.\n\nIf the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.\n\nWhen processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).","enum":["none"]},"target_date":{"maxLength":5000,"type":"string","description":"Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now."}},"description":"contains details about the AU Becs Debit payment method options.","x-stripeMostCommon":["setup_future_usage","target_date"]},"bacs_debit":{"title":"payment_method_options_param","type":"object","properties":{"mandate_options":{"title":"payment_method_options_mandate_options_param","type":"object","properties":{"reference_prefix":{"description":"Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.","anyOf":[{"maxLength":12,"type":"string"},{"type":"string","enum":[""]}]}},"description":"Additional fields for Mandate creation","x-stripeMostCommon":["reference_prefix"]},"setup_future_usage":{"type":"string","description":"Indicates that you intend to make future payments with this PaymentIntent's payment method.\n\nIf you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.\n\nIf the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.\n\nWhen processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).","enum":["none","off_session","on_session"]},"target_date":{"maxLength":5000,"type":"string","description":"Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now."}},"description":"contains details about the Bacs Debit payment method options.","x-stripeMostCommon":["mandate_options","setup_future_usage","target_date"]},"bancontact":{"title":"payment_method_options_param","type":"object","properties":{"setup_future_usage":{"type":"string","description":"Indicates that you intend to make future payments with this PaymentIntent's payment method.\n\nIf you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.\n\nIf the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.\n\nWhen processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).","enum":["none"]}},"description":"contains details about the Bancontact payment method options.","x-stripeMostCommon":["setup_future_usage"]},"billie":{"title":"payment_method_options_param","type":"object","properties":{"capture_method":{"type":"string","description":"Controls when the funds will be captured from the customer's account.","enum":["manual"]}},"description":"contains details about the Billie payment method options.","x-stripeMostCommon":["capture_method"]},"boleto":{"title":"payment_method_options_param","type":"object","properties":{"expires_after_days":{"type":"integer","description":"The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto invoice will expire on Wednesday at 23:59 America/Sao_Paulo time."},"setup_future_usage":{"type":"string","description":"Indicates that you intend to make future payments with this PaymentIntent's payment method.\n\nIf you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.\n\nIf the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.\n\nWhen processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).","enum":["none","off_session","on_session"]}},"description":"contains details about the Boleto payment method options.","x-stripeMostCommon":["expires_after_days","setup_future_usage"]},"card":{"title":"payment_method_options_param","type":"object","properties":{"capture_method":{"type":"string","description":"Controls when the funds will be captured from the customer's account.","enum":["manual"]},"installments":{"title":"installments_param","type":"object","properties":{"enabled":{"type":"boolean","description":"Setting to true enables installments for this Checkout Session.\nSetting to false will prevent any installment plan from applying to a payment."}},"description":"Installment options for card payments","x-stripeMostCommon":["enabled"]},"request_extended_authorization":{"type":"string","description":"Request ability to [capture beyond the standard authorization validity window](/payments/extended-authorization) for this CheckoutSession.","enum":["if_available","never"]},"request_incremental_authorization":{"type":"string","description":"Request ability to [increment the authorization](/payments/incremental-authorization) for this CheckoutSession.","enum":["if_available","never"]},"request_multicapture":{"type":"string","description":"Request ability to make [multiple captures](/payments/multicapture) for this CheckoutSession.","enum":["if_available","never"]},"request_overcapture":{"type":"string","description":"Request ability to [overcapture](/payments/overcapture) for this CheckoutSession.","enum":["if_available","never"]},"request_three_d_secure":{"type":"string","description":"We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.","enum":["any","automatic","challenge"],"x-stripeBypassValidation":true},"restrictions":{"title":"restrictions_param","type":"object","properties":{"brands_blocked":{"type":"array","description":"Specify the card brands to block in the Checkout Session. If a customer enters or selects a card belonging to a blocked brand, they can't complete the Session.","items":{"type":"string","enum":["american_express","discover_global_network","mastercard","visa"]}}},"description":"Restrictions to apply to the card payment method. For example, you can block specific card brands. You can't set this parameter if `ui_mode` is `custom`.","x-stripeMostCommon":["brands_blocked"]},"setup_future_usage":{"type":"string","description":"Indicates that you intend to make future payments with this PaymentIntent's payment method.\n\nIf you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.\n\nIf the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.\n\nWhen processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).","enum":["off_session","on_session"]},"statement_descriptor_suffix_kana":{"maxLength":22,"type":"string","description":"Provides information about a card payment that customers see on their statements. Concatenated with the Kana prefix (shortened Kana descriptor) or Kana statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 22 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 22 characters."},"statement_descriptor_suffix_kanji":{"maxLength":17,"type":"string","description":"Provides information about a card payment that customers see on their statements. Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 17 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 17 characters."}},"description":"contains details about the Card payment method options.","x-stripeMostCommon":["capture_method","installments","network_options","recipient_details","request_decremental_authorization","request_extended_authorization","request_incremental_authorization","request_multicapture","request_overcapture","request_three_d_secure","restrictions","sender_details","setup_future_usage","statement_descriptor_suffix_kana","statement_descriptor_suffix_kanji"]},"cashapp":{"title":"payment_method_options_param","type":"object","properties":{"capture_method":{"type":"string","description":"Controls when the funds will be captured from the customer's account.","enum":["manual"]},"setup_future_usage":{"type":"string","description":"Indicates that you intend to make future payments with this PaymentIntent's payment method.\n\nIf you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.\n\nIf the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.\n\nWhen processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).","enum":["none","off_session","on_session"]}},"description":"contains details about the Cashapp Pay payment method options.","x-stripeMostCommon":["capture_method","setup_future_usage"]},"crypto":{"title":"payment_method_options_param","type":"object","properties":{"setup_future_usage":{"type":"string","description":"Indicates that you intend to make future payments with this PaymentIntent's payment method.\n\nIf you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.\n\nIf the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.\n\nWhen processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).","enum":["none"],"x-stripeBypassValidation":true}},"description":"contains details about the Crypto payment method options.","x-stripeMostCommon":["setup_future_usage"]},"customer_balance":{"title":"payment_method_options_param","type":"object","properties":{"bank_transfer":{"title":"bank_transfer_param","required":["type"],"type":"object","properties":{"eu_bank_transfer":{"title":"eu_bank_transfer_params","required":["country"],"type":"object","properties":{"country":{"maxLength":5000,"type":"string","description":"The desired country code of the bank account information. Permitted values include: `DE`, `FR`, `IE`, or `NL`."}},"description":"Configuration for eu_bank_transfer funding type.","x-stripeMostCommon":["country"]},"requested_address_types":{"type":"array","description":"List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned.\n\nPermitted values include: `sort_code`, `zengin`, `iban`, or `spei`.","items":{"type":"string","enum":["aba","iban","sepa","sort_code","spei","swift","zengin"],"x-stripeBypassValidation":true}},"type":{"type":"string","description":"The list of bank transfer types that this PaymentIntent is allowed to use for funding.","enum":["eu_bank_transfer","gb_bank_transfer","jp_bank_transfer","mx_bank_transfer","us_bank_transfer"],"x-stripeBypassValidation":true}},"description":"Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.","x-stripeMostCommon":["eu_bank_transfer","id_bank_transfer","requested_address_types","type"]},"funding_type":{"type":"string","description":"The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.","enum":["bank_transfer"]},"setup_future_usage":{"type":"string","description":"Indicates that you intend to make future payments with this PaymentIntent's payment method.\n\nIf you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.\n\nIf the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.\n\nWhen processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).","enum":["none"]}},"description":"contains details about the Customer Balance payment method options.","x-stripeMostCommon":["bank_transfer","funding_type","setup_future_usage"]},"demo_pay":{"title":"payment_method_options_param","type":"object","properties":{"setup_future_usage":{"type":"string","description":"Indicates that you intend to make future payments with this PaymentIntent's payment method.\n\nIf you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.\n\nIf the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.\n\nWhen processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).","enum":["none","off_session"]}},"description":"contains details about the DemoPay payment method options.","x-stripeMostCommon":["setup_future_usage"]},"eps":{"title":"payment_method_options_param","type":"object","properties":{"setup_future_usage":{"type":"string","description":"Indicates that you intend to make future payments with this PaymentIntent's payment method.\n\nIf you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.\n\nIf the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.\n\nWhen processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).","enum":["none"]}},"description":"contains details about the EPS payment method options.","x-stripeMostCommon":["setup_future_usage"]},"fpx":{"title":"payment_method_options_param","type":"object","properties":{"setup_future_usage":{"type":"string","description":"Indicates that you intend to make future payments with this PaymentIntent's payment method.\n\nIf you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.\n\nIf the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.\n\nWhen processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).","enum":["none"]}},"description":"contains details about the FPX payment method options.","x-stripeMostCommon":["setup_future_usage"]},"giropay":{"title":"payment_method_options_param","type":"object","properties":{"setup_future_usage":{"type":"string","description":"Indicates that you intend to make future payments with this PaymentIntent's payment method.\n\nIf you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.\n\nIf the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.\n\nWhen processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).","enum":["none"]}},"description":"contains details about the Giropay payment method options.","x-stripeMostCommon":["setup_future_usage"]},"grabpay":{"title":"payment_method_options_param","type":"object","properties":{"setup_future_usage":{"type":"string","description":"Indicates that you intend to make future payments with this PaymentIntent's payment method.\n\nIf you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.\n\nIf the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.\n\nWhen processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).","enum":["none"]}},"description":"contains details about the Grabpay payment method options.","x-stripeMostCommon":["setup_future_usage"]},"ideal":{"title":"payment_method_options_param","type":"object","properties":{"setup_future_usage":{"type":"string","description":"Indicates that you intend to make future payments with this PaymentIntent's payment method.\n\nIf you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.\n\nIf the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.\n\nWhen processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).","enum":["none"]}},"description":"contains details about the Ideal payment method options.","x-stripeMostCommon":["setup_future_usage"]},"kakao_pay":{"title":"payment_method_options_param","type":"object","properties":{"capture_method":{"type":"string","description":"Controls when the funds will be captured from the customer's account.","enum":["manual"]},"setup_future_usage":{"type":"string","description":"Indicates that you intend to make future payments with this PaymentIntent's payment method.\n\nIf you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.\n\nIf the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.\n\nWhen processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).","enum":["none","off_session"]}},"description":"contains details about the Kakao Pay payment method options.","x-stripeMostCommon":["capture_method","setup_future_usage"]},"klarna":{"title":"payment_method_options_param","type":"object","properties":{"capture_method":{"type":"string","description":"Controls when the funds will be captured from the customer's account.","enum":["manual"]},"setup_future_usage":{"type":"string","description":"Indicates that you intend to make future payments with this PaymentIntent's payment method.\n\nIf you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.\n\nIf the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.\n\nWhen processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).","enum":["none"]},"subscriptions":{"description":"Subscription details if the Checkout Session sets up a future subscription.","anyOf":[{"type":"array","items":{"title":"setup_intent_subscription_param","required":["interval","next_billing","reference"],"type":"object","properties":{"interval":{"type":"string","description":"Unit of time between subscription charges.","enum":["day","month","week","year"]},"interval_count":{"type":"integer","description":"The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months."},"name":{"maxLength":255,"type":"string","description":"Name for subscription."},"next_billing":{"title":"subscription_next_billing_param","required":["amount","date"],"type":"object","properties":{"amount":{"type":"integer","description":"The amount of the next charge for the subscription."},"date":{"maxLength":5000,"type":"string","description":"The date of the next charge for the subscription in YYYY-MM-DD format."}},"description":"Describes the upcoming charge for this subscription.","x-stripeMostCommon":["amount","date"]},"reference":{"maxLength":255,"type":"string","description":"A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges."}},"x-stripeMostCommon":["interval","interval_count","name","next_billing","reference"]}},{"type":"string","enum":[""]}]}},"description":"contains details about the Klarna payment method options.","x-stripeMostCommon":["capture_method","interoperability_token","setup_future_usage","subscriptions"]},"konbini":{"title":"payment_method_options_param","type":"object","properties":{"expires_after_days":{"type":"integer","description":"The number of calendar days (between 1 and 60) after which Konbini payment instructions will expire. For example, if a PaymentIntent is confirmed with Konbini and `expires_after_days` set to 2 on Monday JST, the instructions will expire on Wednesday 23:59:59 JST. Defaults to 3 days."},"setup_future_usage":{"type":"string","description":"Indicates that you intend to make future payments with this PaymentIntent's payment method.\n\nIf you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.\n\nIf the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.\n\nWhen processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).","enum":["none"]}},"description":"contains details about the Konbini payment method options.","x-stripeMostCommon":["expires_after_days","setup_future_usage"]},"kr_card":{"title":"payment_method_options_param","type":"object","properties":{"capture_method":{"type":"string","description":"Controls when the funds will be captured from the customer's account.","enum":["manual"]},"setup_future_usage":{"type":"string","description":"Indicates that you intend to make future payments with this PaymentIntent's payment method.\n\nIf you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.\n\nIf the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.\n\nWhen processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).","enum":["none","off_session"]}},"description":"contains details about the Korean card payment method options.","x-stripeMostCommon":["capture_method","setup_future_usage"]},"link":{"title":"payment_method_options_param","type":"object","properties":{"capture_method":{"type":"string","description":"Controls when the funds will be captured from the customer's account.","enum":["manual"]},"setup_future_usage":{"type":"string","description":"Indicates that you intend to make future payments with this PaymentIntent's payment method.\n\nIf you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.\n\nIf the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.\n\nWhen processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).","enum":["none","off_session"]}},"description":"contains details about the Link payment method options.","x-stripeMostCommon":["capture_method","setup_future_usage"]},"mobilepay":{"title":"payment_method_options_param","type":"object","properties":{"capture_method":{"type":"string","description":"Controls when the funds will be captured from the customer's account.","enum":["manual"]},"setup_future_usage":{"type":"string","description":"Indicates that you intend to make future payments with this PaymentIntent's payment method.\n\nIf you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.\n\nIf the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.\n\nWhen processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).","enum":["none"]}},"description":"contains details about the Mobilepay payment method options.","x-stripeMostCommon":["capture_method","setup_future_usage"]},"multibanco":{"title":"payment_method_options_param","type":"object","properties":{"setup_future_usage":{"type":"string","description":"Indicates that you intend to make future payments with this PaymentIntent's payment method.\n\nIf you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.\n\nIf the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.\n\nWhen processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).","enum":["none"]}},"description":"contains details about the Multibanco payment method options.","x-stripeMostCommon":["setup_future_usage"]},"naver_pay":{"title":"payment_method_options_param","type":"object","properties":{"capture_method":{"type":"string","description":"Controls when the funds will be captured from the customer's account.","enum":["manual"]},"setup_future_usage":{"type":"string","description":"Indicates that you intend to make future payments with this PaymentIntent's payment method.\n\nIf you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.\n\nIf the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.\n\nWhen processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).","enum":["none","off_session"]}},"description":"contains details about the Naver Pay payment method options.","x-stripeMostCommon":["capture_method","setup_future_usage"]},"oxxo":{"title":"payment_method_options_param","type":"object","properties":{"expires_after_days":{"type":"integer","description":"The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time."},"setup_future_usage":{"type":"string","description":"Indicates that you intend to make future payments with this PaymentIntent's payment method.\n\nIf you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.\n\nIf the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.\n\nWhen processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).","enum":["none"]}},"description":"contains details about the OXXO payment method options.","x-stripeMostCommon":["expires_after_days","setup_future_usage"]},"p24":{"title":"payment_method_options_param","type":"object","properties":{"setup_future_usage":{"type":"string","description":"Indicates that you intend to make future payments with this PaymentIntent's payment method.\n\nIf you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.\n\nIf the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.\n\nWhen processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).","enum":["none"]},"tos_shown_and_accepted":{"type":"boolean","description":"Confirm that the payer has accepted the P24 terms and conditions."}},"description":"contains details about the P24 payment method options.","x-stripeMostCommon":["setup_future_usage","tos_shown_and_accepted"]},"pay_by_bank":{"title":"payment_method_options_param","type":"object","properties":{},"description":"contains details about the Pay By Bank payment method options.","x-stripeMostCommon":["allow_delayed_notification","country","locale","setup_future_usage","statement_descriptor"]},"payco":{"title":"payment_method_options_param","type":"object","properties":{"capture_method":{"type":"string","description":"Controls when the funds will be captured from the customer's account.","enum":["manual"]}},"description":"contains details about the PAYCO payment method options.","x-stripeMostCommon":["capture_method"]},"paynow":{"title":"payment_method_options_param","type":"object","properties":{"setup_future_usage":{"type":"string","description":"Indicates that you intend to make future payments with this PaymentIntent's payment method.\n\nIf you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.\n\nIf the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.\n\nWhen processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).","enum":["none"]}},"description":"contains details about the PayNow payment method options.","x-stripeMostCommon":["setup_future_usage"]},"paypal":{"title":"payment_method_options_param","type":"object","properties":{"capture_method":{"type":"string","description":"Controls when the funds will be captured from the customer's account.","enum":["","manual"]},"preferred_locale":{"type":"string","description":"[Preferred locale](https://docs.stripe.com/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.","enum":["cs-CZ","da-DK","de-AT","de-DE","de-LU","el-GR","en-GB","en-US","es-ES","fi-FI","fr-BE","fr-FR","fr-LU","hu-HU","it-IT","nl-BE","nl-NL","pl-PL","pt-PT","sk-SK","sv-SE"],"x-stripeBypassValidation":true},"reference":{"maxLength":127,"type":"string","description":"A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID."},"risk_correlation_id":{"maxLength":32,"type":"string","description":"The risk correlation ID for an on-session payment using a saved PayPal payment method."},"setup_future_usage":{"type":"string","description":"Indicates that you intend to make future payments with this PaymentIntent's payment method.\n\nIf you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.\n\nIf the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.\n\nWhen processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).\n\nIf you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.","enum":["","none","off_session"]}},"description":"contains details about the PayPal payment method options.","x-stripeMostCommon":["capture_method","preferred_locale","reference","reference_id","risk_correlation_id","setup_future_usage","subsellers"]},"payto":{"title":"payment_method_options_param","type":"object","properties":{"mandate_options":{"title":"setup_intent_payment_method_options_mandate_options_param","type":"object","properties":{"amount":{"description":"Amount that will be collected. It is required when `amount_type` is `fixed`.","anyOf":[{"type":"integer"},{"type":"string","enum":[""]}]},"amount_type":{"type":"string","description":"The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. Defaults to `maximum`.","enum":["","fixed","maximum"]},"end_date":{"description":"Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]},"payment_schedule":{"type":"string","description":"The periodicity at which payments will be collected. Defaults to `adhoc`.","enum":["","adhoc","annual","daily","fortnightly","monthly","quarterly","semi_annual","weekly"]},"payments_per_period":{"description":"The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.","anyOf":[{"type":"integer"},{"type":"string","enum":[""]}]},"purpose":{"type":"string","description":"The purpose for which payments are made. Has a default value based on your merchant category code.","enum":["","dependant_support","government","loan","mortgage","other","pension","personal","retail","salary","tax","utility"]},"start_date":{"description":"Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]}},"description":"Additional fields for Mandate creation","x-stripeMostCommon":["amount","amount_type","end_date","payment_schedule","payments_per_period","purpose","start_date"]},"setup_future_usage":{"type":"string","description":"Indicates that you intend to make future payments with this PaymentIntent's payment method.\n\nIf you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.\n\nIf the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.\n\nWhen processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).","enum":["none","off_session"]}},"description":"contains details about the PayTo payment method options.","x-stripeMostCommon":["mandate_options","setup_future_usage"]},"pix":{"title":"payment_method_options_param","type":"object","properties":{"amount_includes_iof":{"type":"string","description":"Determines if the amount includes the IOF tax. Defaults to `never`.","enum":["always","never"]},"expires_after_seconds":{"type":"integer","description":"The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds."},"setup_future_usage":{"type":"string","description":"Indicates that you intend to make future payments with this PaymentIntent's payment method.\n\nIf you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.\n\nIf the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.\n\nWhen processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).","enum":["none"],"x-stripeBypassValidation":true}},"description":"contains details about the Pix payment method options.","x-stripeMostCommon":["amount_includes_iof","expires_after_seconds","mandate_options","setup_future_usage"]},"revolut_pay":{"title":"payment_method_options_param","type":"object","properties":{"capture_method":{"type":"string","description":"Controls when the funds will be captured from the customer's account.","enum":["manual"]},"setup_future_usage":{"type":"string","description":"Indicates that you intend to make future payments with this PaymentIntent's payment method.\n\nIf you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.\n\nIf the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.\n\nWhen processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).","enum":["none","off_session"]}},"description":"contains details about the RevolutPay payment method options.","x-stripeMostCommon":["capture_method","setup_future_usage"]},"samsung_pay":{"title":"payment_method_options_param","type":"object","properties":{"capture_method":{"type":"string","description":"Controls when the funds will be captured from the customer's account.","enum":["manual"]}},"description":"contains details about the Samsung Pay payment method options.","x-stripeMostCommon":["capture_method"]},"satispay":{"title":"payment_method_options_param","type":"object","properties":{"capture_method":{"type":"string","description":"Controls when the funds will be captured from the customer's account.","enum":["manual"]}},"description":"contains details about the Satispay payment method options.","x-stripeMostCommon":["capture_method"]},"sepa_debit":{"title":"payment_method_options_param","type":"object","properties":{"mandate_options":{"title":"payment_method_options_mandate_options_param","type":"object","properties":{"reference_prefix":{"description":"Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.","anyOf":[{"maxLength":12,"type":"string"},{"type":"string","enum":[""]}]}},"description":"Additional fields for Mandate creation","x-stripeMostCommon":["reference","reference_prefix"]},"setup_future_usage":{"type":"string","description":"Indicates that you intend to make future payments with this PaymentIntent's payment method.\n\nIf you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.\n\nIf the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.\n\nWhen processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).","enum":["none","off_session","on_session"]},"target_date":{"maxLength":5000,"type":"string","description":"Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now."}},"description":"contains details about the Sepa Debit payment method options.","x-stripeMostCommon":["mandate_options","setup_future_usage","target_date","verification_method"]},"sofort":{"title":"payment_method_options_param","type":"object","properties":{"setup_future_usage":{"type":"string","description":"Indicates that you intend to make future payments with this PaymentIntent's payment method.\n\nIf you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.\n\nIf the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.\n\nWhen processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).","enum":["none"]}},"description":"contains details about the Sofort payment method options.","x-stripeMostCommon":["setup_future_usage"]},"swish":{"title":"payment_method_options_param","type":"object","properties":{"reference":{"maxLength":5000,"type":"string","description":"The order reference that will be displayed to customers in the Swish application. Defaults to the `id` of the Payment Intent."}},"description":"contains details about the Swish payment method options.","x-stripeMostCommon":["authorization_method","reference"]},"twint":{"title":"payment_method_options_param","type":"object","properties":{"setup_future_usage":{"type":"string","description":"Indicates that you intend to make future payments with this PaymentIntent's payment method.\n\nIf you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.\n\nIf the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.\n\nWhen processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).","enum":["none"],"x-stripeBypassValidation":true}},"description":"contains details about the TWINT payment method options.","x-stripeMostCommon":["setup_future_usage"]},"upi":{"title":"payment_method_options_param","type":"object","properties":{"mandate_options":{"title":"payment_method_options_mandate_options_param","type":"object","properties":{"amount":{"type":"integer","description":"Amount to be charged for future payments."},"amount_type":{"type":"string","description":"One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.","enum":["fixed","maximum"]},"description":{"maxLength":20,"type":"string","description":"A description of the mandate or subscription that is meant to be displayed to the customer."},"end_date":{"type":"integer","description":"End date of the mandate or subscription.","format":"unix-time"}},"description":"Additional fields for Mandate creation","x-stripeMostCommon":["amount","amount_type","description","end_date"]},"setup_future_usage":{"type":"string","enum":["","none","off_session","on_session"]}},"description":"contains details about the UPI payment method options.","x-stripeMostCommon":["mandate_options","setup_future_usage"]},"us_bank_account":{"title":"payment_method_options_param","type":"object","properties":{"financial_connections":{"title":"linked_account_options_param","type":"object","properties":{"permissions":{"type":"array","description":"The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.","items":{"maxLength":5000,"type":"string","enum":["balances","ownership","payment_method","transactions"],"x-stripeBypassValidation":true}},"prefetch":{"type":"array","description":"List of data features that you would like to retrieve upon account creation.","items":{"type":"string","enum":["balances","ownership","transactions"],"x-stripeBypassValidation":true}}},"description":"Additional fields for Financial Connections Session creation","x-stripeMostCommon":["permissions","prefetch"]},"setup_future_usage":{"type":"string","description":"Indicates that you intend to make future payments with this PaymentIntent's payment method.\n\nIf you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.\n\nIf the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.\n\nWhen processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).","enum":["none","off_session","on_session"]},"target_date":{"maxLength":5000,"type":"string","description":"Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now."},"verification_method":{"type":"string","description":"Verification method for the intent","enum":["automatic","instant"],"x-stripeBypassValidation":true}},"description":"contains details about the Us Bank Account payment method options.","x-stripeMostCommon":["financial_connections","setup_future_usage","target_date","verification_method"]},"wechat_pay":{"title":"payment_method_options_param","required":["client"],"type":"object","properties":{"app_id":{"maxLength":5000,"type":"string","description":"The app ID registered with WeChat Pay. Only required when client is ios or android."},"client":{"type":"string","description":"The client type that the end customer will pay from","enum":["android","ios","web"],"x-stripeBypassValidation":true},"setup_future_usage":{"type":"string","description":"Indicates that you intend to make future payments with this PaymentIntent's payment method.\n\nIf you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.\n\nIf the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.\n\nWhen processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).","enum":["none"]}},"description":"contains details about the WeChat Pay payment method options.","x-stripeMostCommon":["app_id","client","setup_future_usage"]}},"description":"Payment-method-specific configuration.","x-stripeMostCommon":["acss_debit","affirm","afterpay_clearpay","alipay","alma","amazon_pay","au_becs_debit","bacs_debit","bancontact","billie","boleto","card","cashapp","crypto","customer_balance","demo_pay","eps","fpx","giropay","grabpay","id_bank_transfer","ideal","kakao_pay","klarna","konbini","kr_card","kr_market","link","mobilepay","multibanco","naver_pay","ng_bank","ng_bank_transfer","ng_card","ng_market","ng_ussd","oxxo","p24","pay_by_bank","payco","paynow","paypal","payto","pix","revolut_pay","samsung_pay","satispay","sepa_debit","sofort","swish","twint","upi","us_bank_account","wechat_pay"]},"payment_method_types":{"type":"array","description":"A list of the types of payment methods (e.g., `card`) this Checkout Session can accept.\n\nYou can omit this attribute to manage your payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods).\nSee [Dynamic Payment Methods](https://docs.stripe.com/payments/payment-methods/integration-options#using-dynamic-payment-methods) for more details.\n\nRead more about the supported payment methods and their requirements in our [payment\nmethod details guide](/docs/payments/checkout/payment-methods).\n\nIf multiple payment methods are passed, Checkout will dynamically reorder them to\nprioritize the most relevant payment methods based on the customer's location and\nother characteristics.","items":{"type":"string","enum":["acss_debit","affirm","afterpay_clearpay","alipay","alma","amazon_pay","au_becs_debit","bacs_debit","bancontact","billie","blik","boleto","card","cashapp","crypto","customer_balance","eps","fpx","giropay","grabpay","ideal","kakao_pay","klarna","konbini","kr_card","link","mb_way","mobilepay","multibanco","naver_pay","nz_bank_account","oxxo","p24","pay_by_bank","payco","paynow","paypal","payto","pix","promptpay","revolut_pay","samsung_pay","satispay","sepa_debit","sofort","swish","twint","upi","us_bank_account","wechat_pay","zip"],"x-stripeBypassValidation":true}},"permissions":{"title":"permissions_param","type":"object","properties":{"update_shipping_details":{"type":"string","description":"Determines which entity is allowed to update the shipping details.\n\nDefault is `client_only`. Stripe Checkout client will automatically update the shipping details. If set to `server_only`, only your server is allowed to update the shipping details.\n\nWhen set to `server_only`, you must add the onShippingDetailsChange event handler when initializing the Stripe Checkout client and manually update the shipping details from your server using the Stripe API.","enum":["client_only","server_only"]}},"description":"This property is used to set up permissions for various actions (e.g., update) on the CheckoutSession object. Can only be set when creating `embedded` or `custom` sessions.\n\nFor specific permissions, please refer to their dedicated subsections, such as `permissions.update_shipping_details`.","x-stripeMostCommon":["update","update_discounts","update_line_items","update_shipping_details"]},"phone_number_collection":{"title":"phone_number_collection_params","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Set to `true` to enable phone number collection.\n\nCan only be set in `payment` and `subscription` mode."}},"description":"Controls phone number collection settings for the session.\n\nWe recommend that you review your privacy policy and check with your legal contacts\nbefore using this feature. Learn more about [collecting phone numbers with Checkout](https://docs.stripe.com/payments/checkout/phone-numbers).","x-stripeMostCommon":["enabled"]},"redirect_on_completion":{"type":"string","description":"This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://docs.stripe.com/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`.","enum":["always","if_required","never"]},"return_url":{"type":"string","description":"The URL to redirect your customer back to after they authenticate or cancel their payment on the\npayment method's app or site. This parameter is required if `ui_mode` is `embedded` or `custom`\nand redirect-based payment methods are enabled on the session."},"saved_payment_method_options":{"title":"saved_payment_method_options_param","type":"object","properties":{"allow_redisplay_filters":{"type":"array","description":"Uses the `allow_redisplay` value of each saved payment method to filter the set presented to a returning customer. By default, only saved payment methods with ’allow_redisplay: ‘always’ are shown in Checkout.","items":{"type":"string","enum":["always","limited","unspecified"]}},"payment_method_remove":{"type":"string","description":"Enable customers to choose if they wish to remove their saved payment methods. Disabled by default.","enum":["disabled","enabled"]},"payment_method_save":{"type":"string","description":"Enable customers to choose if they wish to save their payment method for future use. Disabled by default.","enum":["disabled","enabled"]}},"description":"Controls saved payment method settings for the session. Only available in `payment` and `subscription` mode.","x-stripeMostCommon":["allow_redisplay_filters","payment_method_remove","payment_method_save"]},"setup_intent_data":{"title":"setup_intent_data_param","type":"object","properties":{"description":{"maxLength":1000,"type":"string","description":"An arbitrary string attached to the object. Often useful for displaying to users."},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"on_behalf_of":{"type":"string","description":"The Stripe account for which the setup is intended."}},"description":"A subset of parameters to be passed to SetupIntent creation for Checkout Sessions in `setup` mode.","x-stripeMostCommon":["description","metadata","on_behalf_of"]},"shipping_address_collection":{"title":"shipping_address_collection_params","required":["allowed_countries"],"type":"object","properties":{"allowed_countries":{"type":"array","description":"An array of two-letter ISO country codes representing which countries Checkout should provide as options for\nshipping locations.","items":{"type":"string","enum":["AC","AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CV","CW","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MK","ML","MM","MN","MO","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SZ","TA","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","US","UY","UZ","VA","VC","VE","VG","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW","ZZ"]}}},"description":"When set, provides configuration for Checkout to collect a shipping address from a customer.","x-stripeMostCommon":["allowed_countries"]},"shipping_options":{"type":"array","description":"The shipping rate options to apply to this Session. Up to a maximum of 5.","items":{"title":"shipping_option_params","type":"object","properties":{"shipping_rate":{"maxLength":5000,"type":"string","description":"The ID of the Shipping Rate to use for this shipping option."},"shipping_rate_data":{"title":"method_params","required":["display_name"],"type":"object","properties":{"delivery_estimate":{"title":"delivery_estimate","type":"object","properties":{"maximum":{"title":"delivery_estimate_bound","required":["unit","value"],"type":"object","properties":{"unit":{"type":"string","description":"A unit of time.","enum":["business_day","day","hour","month","week"]},"value":{"type":"integer","description":"Must be greater than 0."}},"description":"The upper bound of the estimated range. If empty, represents no upper bound i.e., infinite.","x-stripeMostCommon":["unit","value"]},"minimum":{"title":"delivery_estimate_bound","required":["unit","value"],"type":"object","properties":{"unit":{"type":"string","description":"A unit of time.","enum":["business_day","day","hour","month","week"]},"value":{"type":"integer","description":"Must be greater than 0."}},"description":"The lower bound of the estimated range. If empty, represents no lower bound.","x-stripeMostCommon":["unit","value"]}},"description":"The estimated range for how long shipping will take, meant to be displayable to the customer. This will appear on CheckoutSessions.","x-stripeMostCommon":["maximum","minimum"]},"display_name":{"maxLength":100,"type":"string","description":"The name of the shipping rate, meant to be displayable to the customer. This will appear on CheckoutSessions."},"fixed_amount":{"title":"fixed_amount","required":["amount","currency"],"type":"object","properties":{"amount":{"type":"integer","description":"A non-negative integer in cents representing how much to charge."},"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"currency_options":{"type":"object","additionalProperties":{"title":"currency_option","required":["amount"],"type":"object","properties":{"amount":{"type":"integer","description":"A non-negative integer in cents representing how much to charge."},"tax_behavior":{"type":"string","description":"Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.","enum":["exclusive","inclusive","unspecified"]}},"x-stripeMostCommon":["amount","tax_behavior"]},"description":"Shipping rates defined in each available currency option. Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies)."}},"description":"Describes a fixed amount to charge for shipping. Must be present if type is `fixed_amount`.","x-stripeMostCommon":["amount","currency","currency_options"]},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"tax_behavior":{"type":"string","description":"Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.","enum":["exclusive","inclusive","unspecified"]},"tax_code":{"type":"string","description":"A [tax code](https://docs.stripe.com/tax/tax-categories) ID. The Shipping tax code is `txcd_92010001`."},"type":{"type":"string","description":"The type of calculation to use on the shipping rate.","enum":["fixed_amount"]}},"description":"Parameters to be passed to Shipping Rate creation for this shipping option.","x-stripeMostCommon":["display_name","fixed_amount","metadata","tax_behavior","tax_code","type"]}},"x-stripeMostCommon":["shipping_rate","shipping_rate_data"]}},"submit_type":{"type":"string","description":"Describes the type of transaction being performed by Checkout in order\nto customize relevant text on the page, such as the submit button.\n `submit_type` can only be specified on Checkout Sessions in\n`payment` or `subscription` mode. If blank or `auto`, `pay` is used.\nYou can't set this parameter if `ui_mode` is `custom`.","enum":["auto","book","donate","pay","subscribe"]},"subscription_data":{"title":"subscription_data_params","type":"object","properties":{"application_fee_percent":{"type":"number","description":"A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. To use an application fee percent, the request must be made on behalf of another account, using the `Stripe-Account` header or an OAuth key. For more information, see the application fees [documentation](https://stripe.com/docs/connect/subscriptions#collecting-fees-on-subscriptions)."},"billing_cycle_anchor":{"type":"integer","description":"A future timestamp to anchor the subscription's billing cycle for new subscriptions. You can't set this parameter if `ui_mode` is `custom`.","format":"unix-time"},"billing_mode":{"title":"billing_mode","required":["type"],"type":"object","properties":{"flexible":{"title":"flexible_params","type":"object","properties":{"proration_discounts":{"type":"string","description":"Controls how invoices and invoice items display proration amounts and discount amounts.","enum":["included","itemized"]}},"description":"Configure behavior for flexible billing mode.","x-stripeMostCommon":["proration_discounts"]},"type":{"type":"string","description":"Controls the calculation and orchestration of prorations and invoices for subscriptions. If no value is passed, the default is `flexible`.","enum":["classic","flexible"]}},"description":"Controls how prorations and invoices for subscriptions are calculated and orchestrated.","x-stripeMostCommon":["flexible","type"]},"default_tax_rates":{"type":"array","description":"The tax rates that will apply to any subscription item that does not have\n`tax_rates` set. Invoices created will have their `default_tax_rates` populated\nfrom the subscription.","items":{"maxLength":5000,"type":"string"}},"description":{"maxLength":500,"type":"string","description":"The subscription's description, meant to be displayable to the customer.\nUse this field to optionally store an explanation of the subscription\nfor rendering in the [customer portal](https://docs.stripe.com/customer-management)."},"invoice_settings":{"title":"invoice_settings_params","type":"object","properties":{"issuer":{"title":"param","required":["type"],"type":"object","properties":{"account":{"type":"string","description":"The connected account being referenced when `type` is `account`."},"type":{"type":"string","description":"Type of the account referenced in the request.","enum":["account","self"],"x-stripeBypassValidation":true}},"description":"The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.","x-stripeMostCommon":["account","type"]}},"description":"All invoices will be billed using the specified settings.","x-stripeMostCommon":["issuer"]},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"on_behalf_of":{"type":"string","description":"The account on behalf of which to charge, for each of the subscription's invoices."},"pending_invoice_item_interval":{"title":"pending_invoice_item_interval_params","required":["interval"],"type":"object","properties":{"interval":{"type":"string","description":"Specifies invoicing frequency. Either `day`, `week`, `month` or `year`.","enum":["day","month","week","year"]},"interval_count":{"type":"integer","description":"The number of intervals between invoices. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks)."}},"description":"Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling [Create an invoice](https://docs.stripe.com/api#create_invoice) for the given subscription at the specified interval.","x-stripeMostCommon":["interval","interval_count"]},"proration_behavior":{"type":"string","description":"Determines how to handle prorations resulting from the `billing_cycle_anchor`. If no value is passed, the default is `create_prorations`.","enum":["create_prorations","none"]},"transfer_data":{"title":"transfer_data_specs","required":["destination"],"type":"object","properties":{"amount_percent":{"type":"number","description":"A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination."},"destination":{"type":"string","description":"ID of an existing, connected Stripe account."}},"description":"If specified, the funds from the subscription's invoices will be transferred to the destination and the ID of the resulting transfers will be found on the resulting charges.","x-stripeMostCommon":["amount_percent","destination"]},"trial_end":{"type":"integer","description":"Unix timestamp representing the end of the trial period the customer will get before being charged for the first time. Has to be at least 48 hours in the future.","format":"unix-time"},"trial_period_days":{"type":"integer","description":"Integer representing the number of trial period days before the customer is charged for the first time. Has to be at least 1."},"trial_settings":{"title":"trial_settings_config","required":["end_behavior"],"type":"object","properties":{"end_behavior":{"title":"end_behavior","required":["missing_payment_method"],"type":"object","properties":{"missing_payment_method":{"type":"string","description":"Indicates how the subscription should change when the trial ends if the user did not provide a payment method.","enum":["cancel","create_invoice","pause"]}},"description":"Defines how the subscription should behave when the user's free trial ends.","x-stripeMostCommon":["missing_payment_method"]}},"description":"Settings related to subscription trials.","x-stripeMostCommon":["end_behavior"]}},"description":"A subset of parameters to be passed to subscription creation for Checkout Sessions in `subscription` mode.","x-stripeMostCommon":["application_fee_percent","billing_cycle_anchor","billing_mode","default_tax_rates","description","invoice_settings","metadata","on_behalf_of","pending_invoice_item_interval","proration_behavior","tax_filing_currency","transfer_data","trial_end","trial_period_days"]},"success_url":{"type":"string","description":"The URL to which Stripe should send customers when payment or setup\nis complete.\nThis parameter is not allowed if ui_mode is `embedded` or `custom`. If you'd like to use\ninformation from the successful Checkout Session on your page, read the\nguide on [customizing your success page](https://docs.stripe.com/payments/checkout/custom-success-page)."},"tax_id_collection":{"title":"tax_id_collection_params","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Enable tax ID collection during checkout. Defaults to `false`."},"required":{"type":"string","description":"Describes whether a tax ID is required during checkout. Defaults to `never`. You can't set this parameter if `ui_mode` is `custom`.","enum":["if_supported","never"]}},"description":"Controls tax ID collection during checkout.","x-stripeMostCommon":["enabled","required"]},"ui_mode":{"type":"string","description":"The UI mode of the Session. Defaults to `hosted`.","enum":["elements","embedded_page","form","hosted_page"],"x-stripeBypassValidation":true},"wallet_options":{"title":"wallet_options_param","type":"object","properties":{"link":{"title":"wallet_options_param","type":"object","properties":{"display":{"type":"string","description":"Specifies whether Checkout should display Link as a payment option. By default, Checkout will display all the supported wallets that the Checkout Session was created with. This is the `auto` behavior, and it is the default choice.","enum":["auto","never"]}},"description":"contains details about the Link wallet options.","x-stripeMostCommon":["display"]}},"description":"Wallet-specific configuration.","x-stripeMostCommon":["link"]}},"additionalProperties":false,"x-stripeMostCommon":["automatic_tax","client_reference_id","customer","customer_email","line_items","metadata","mode","return_url","success_url","ui_mode"]},"encoding":{"adaptive_pricing":{"style":"deepObject","explode":true},"after_expiration":{"style":"deepObject","explode":true},"automatic_tax":{"style":"deepObject","explode":true},"branding_settings":{"style":"deepObject","explode":true},"consent_collection":{"style":"deepObject","explode":true},"custom_fields":{"style":"deepObject","explode":true},"custom_text":{"style":"deepObject","explode":true},"customer_update":{"style":"deepObject","explode":true},"discounts":{"style":"deepObject","explode":true},"excluded_payment_method_types":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"invoice_creation":{"style":"deepObject","explode":true},"line_items":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true},"name_collection":{"style":"deepObject","explode":true},"optional_items":{"style":"deepObject","explode":true},"payment_intent_data":{"style":"deepObject","explode":true},"payment_method_data":{"style":"deepObject","explode":true},"payment_method_options":{"style":"deepObject","explode":true},"payment_method_types":{"style":"deepObject","explode":true},"permissions":{"style":"deepObject","explode":true},"phone_number_collection":{"style":"deepObject","explode":true},"saved_payment_method_options":{"style":"deepObject","explode":true},"setup_intent_data":{"style":"deepObject","explode":true},"shipping_address_collection":{"style":"deepObject","explode":true},"shipping_options":{"style":"deepObject","explode":true},"subscription_data":{"style":"deepObject","explode":true},"tax_id_collection":{"style":"deepObject","explode":true},"wallet_options":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/checkout.session"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/checkout/sessions/{session}":{"get":{"summary":"Retrieve a Checkout Session","description":"Retrieves a Checkout Session object.
","operationId":"GetCheckoutSessionsSession","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"session","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":66,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/checkout.session"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Update a Checkout Session","description":"Updates a Checkout Session object.
\n\nRelated guide: Dynamically update a Checkout Session
","operationId":"PostCheckoutSessionsSession","parameters":[{"name":"session","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"collected_information":{"title":"collected_information_params","type":"object","properties":{"shipping_details":{"title":"shipping_details_params","required":["address","name"],"type":"object","properties":{"address":{"title":"address","required":["country","line1"],"type":"object","properties":{"city":{"maxLength":5000,"type":"string","description":"City, district, suburb, town, or village."},"country":{"maxLength":5000,"type":"string","description":"Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."},"line1":{"maxLength":5000,"type":"string","description":"Address line 1, such as the street, PO Box, or company name."},"line2":{"maxLength":5000,"type":"string","description":"Address line 2, such as the apartment, suite, unit, or building."},"postal_code":{"maxLength":5000,"type":"string","description":"ZIP or postal code."},"state":{"maxLength":5000,"type":"string","description":"State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))."}},"description":"The address of the customer","x-stripeMostCommon":["city","country","line1","line2","postal_code","state"]},"name":{"maxLength":255,"type":"string","description":"The name of customer"}},"description":"The shipping details to apply to this Session.","x-stripeMostCommon":["address","name"]}},"description":"Information about the customer collected within the Checkout Session. Can only be set when updating `embedded` or `custom` sessions.","x-stripeMostCommon":["billing_details","shipping_details"]},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"line_items":{"type":"array","description":"A list of items the customer is purchasing.\n\nWhen updating line items, you must retransmit the entire array of line items.\n\nTo retain an existing line item, specify its `id`.\n\nTo update an existing line item, specify its `id` along with the new values of the fields to update.\n\nTo add a new line item, specify one of `price` or `price_data` and `quantity`.\n\nTo remove an existing line item, omit the line item's ID from the retransmitted array.\n\nTo reorder a line item, specify it at the desired position in the retransmitted array.","items":{"title":"line_item_params","type":"object","properties":{"adjustable_quantity":{"title":"adjustable_quantity_params","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Set to true if the quantity can be adjusted to any positive integer. Setting to false will remove any previously specified constraints on quantity."},"maximum":{"type":"integer","description":"The maximum quantity the customer can purchase for the Checkout Session. By default this value is 99. You can specify a value up to 999999."},"minimum":{"type":"integer","description":"The minimum quantity the customer must purchase for the Checkout Session. By default this value is 0."}},"description":"When set, provides configuration for this item’s quantity to be adjusted by the customer during Checkout.","x-stripeMostCommon":["enabled","maximum","minimum"]},"id":{"maxLength":5000,"type":"string","description":"ID of an existing line item."},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"price":{"maxLength":5000,"type":"string","description":"The ID of the [Price](https://docs.stripe.com/api/prices). One of `price` or `price_data` is required when creating a new line item."},"price_data":{"title":"price_data_with_product_data","required":["currency"],"type":"object","properties":{"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"product":{"maxLength":5000,"type":"string","description":"The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to. One of `product` or `product_data` is required."},"product_data":{"title":"product_data","required":["name"],"type":"object","properties":{"description":{"maxLength":40000,"type":"string","description":"The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes."},"images":{"type":"array","description":"A list of up to 8 URLs of images for this product, meant to be displayable to the customer.","items":{"type":"string"}},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"name":{"maxLength":5000,"type":"string","description":"The product's name, meant to be displayable to the customer."},"tax_code":{"maxLength":5000,"type":"string","description":"A [tax code](https://docs.stripe.com/tax/tax-categories) ID."},"unit_label":{"maxLength":12,"type":"string","description":"A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal."}},"description":"Data used to generate a new [Product](https://docs.stripe.com/api/products) object inline. One of `product` or `product_data` is required.","x-stripeMostCommon":["description","images","metadata","name","tax_code","tax_details","unit_label"]},"recurring":{"title":"recurring_adhoc","required":["interval"],"type":"object","properties":{"interval":{"type":"string","description":"Specifies billing frequency. Either `day`, `week`, `month` or `year`.","enum":["day","month","week","year"]},"interval_count":{"type":"integer","description":"The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks)."}},"description":"The recurring components of a price such as `interval` and `interval_count`.","x-stripeMostCommon":["interval"]},"tax_behavior":{"type":"string","description":"Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.","enum":["exclusive","inclusive","unspecified"]},"unit_amount":{"type":"integer","description":"A non-negative integer in cents (or local equivalent) representing how much to charge. One of `unit_amount` or `unit_amount_decimal` is required."},"unit_amount_decimal":{"type":"string","description":"Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.","format":"decimal"}},"description":"Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline. One of `price` or `price_data` is required when creating a new line item.","x-stripeMostCommon":["currency","product","unit_amount"]},"quantity":{"type":"integer","description":"The quantity of the line item being purchased. Quantity should not be defined when `recurring.usage_type=metered`."},"tax_rates":{"description":"The [tax rates](https://docs.stripe.com/api/tax_rates) which apply to this line item.","anyOf":[{"type":"array","items":{"maxLength":5000,"type":"string"}},{"type":"string","enum":[""]}]}},"x-stripeMostCommon":["adjustable_quantity","id","metadata","price","price_data","quantity","tax_rates"]}},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"shipping_options":{"description":"The shipping rate options to apply to this Session. Up to a maximum of 5.","anyOf":[{"type":"array","items":{"title":"shipping_option_params","type":"object","properties":{"shipping_rate":{"maxLength":5000,"type":"string","description":"The ID of the Shipping Rate to use for this shipping option."},"shipping_rate_data":{"title":"method_params","required":["display_name"],"type":"object","properties":{"delivery_estimate":{"title":"delivery_estimate","type":"object","properties":{"maximum":{"title":"delivery_estimate_bound","required":["unit","value"],"type":"object","properties":{"unit":{"type":"string","description":"A unit of time.","enum":["business_day","day","hour","month","week"]},"value":{"type":"integer","description":"Must be greater than 0."}},"description":"The upper bound of the estimated range. If empty, represents no upper bound i.e., infinite.","x-stripeMostCommon":["unit","value"]},"minimum":{"title":"delivery_estimate_bound","required":["unit","value"],"type":"object","properties":{"unit":{"type":"string","description":"A unit of time.","enum":["business_day","day","hour","month","week"]},"value":{"type":"integer","description":"Must be greater than 0."}},"description":"The lower bound of the estimated range. If empty, represents no lower bound.","x-stripeMostCommon":["unit","value"]}},"description":"The estimated range for how long shipping will take, meant to be displayable to the customer. This will appear on CheckoutSessions.","x-stripeMostCommon":["maximum","minimum"]},"display_name":{"maxLength":100,"type":"string","description":"The name of the shipping rate, meant to be displayable to the customer. This will appear on CheckoutSessions."},"fixed_amount":{"title":"fixed_amount","required":["amount","currency"],"type":"object","properties":{"amount":{"type":"integer","description":"A non-negative integer in cents representing how much to charge."},"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"currency_options":{"type":"object","additionalProperties":{"title":"currency_option","required":["amount"],"type":"object","properties":{"amount":{"type":"integer","description":"A non-negative integer in cents representing how much to charge."},"tax_behavior":{"type":"string","description":"Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.","enum":["exclusive","inclusive","unspecified"]}},"x-stripeMostCommon":["amount","tax_behavior"]},"description":"Shipping rates defined in each available currency option. Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies)."}},"description":"Describes a fixed amount to charge for shipping. Must be present if type is `fixed_amount`.","x-stripeMostCommon":["amount","currency","currency_options"]},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"tax_behavior":{"type":"string","description":"Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.","enum":["exclusive","inclusive","unspecified"]},"tax_code":{"type":"string","description":"A [tax code](https://docs.stripe.com/tax/tax-categories) ID. The Shipping tax code is `txcd_92010001`."},"type":{"type":"string","description":"The type of calculation to use on the shipping rate.","enum":["fixed_amount"]}},"description":"Parameters to be passed to Shipping Rate creation for this shipping option.","x-stripeMostCommon":["display_name","fixed_amount","metadata","tax_behavior","tax_code","type"]}},"x-stripeMostCommon":["shipping_rate","shipping_rate_data"]}},{"type":"string","enum":[""]}]}},"additionalProperties":false,"x-stripeMostCommon":["line_items","metadata"]},"encoding":{"collected_information":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"line_items":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true},"shipping_options":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/checkout.session"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/checkout/sessions/{session}/expire":{"post":{"summary":"Expire a Checkout Session","description":"A Checkout Session can be expired when it is in one of these statuses: open
After it expires, a customer can’t complete a Checkout Session and customers loading the Checkout Session see a message saying the Checkout Session is expired.
","operationId":"PostCheckoutSessionsSessionExpire","parameters":[{"name":"session","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}}},"additionalProperties":false},"encoding":{"expand":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/checkout.session"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/checkout/sessions/{session}/line_items":{"get":{"summary":"Retrieve a Checkout Session's line items","description":"When retrieving a Checkout Session, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
","operationId":"GetCheckoutSessionsSessionLineItems","parameters":[{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"session","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"PaymentPagesCheckoutSessionListLineItems","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","description":"Details about each object.","items":{"$ref":"#/components/schemas/item"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/climate/orders":{"get":{"summary":"List orders","description":"Lists all Climate order objects. The orders are returned sorted by creation date, with the\nmost recently created orders appearing first.
","operationId":"GetClimateOrders","parameters":[{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"ClimateRemovalsOrdersList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/climate.order"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/climate/orders","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create an order","description":"Creates a Climate order object for a given Climate product. The order will be processed immediately\nafter creation and payment will be deducted your Stripe balance.
","operationId":"PostClimateOrders","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["product"],"type":"object","properties":{"amount":{"type":"integer","description":"Requested amount of carbon removal units. Either this or `metric_tons` must be specified."},"beneficiary":{"title":"beneficiary_params","required":["public_name"],"type":"object","properties":{"public_name":{"maxLength":5000,"type":"string","description":"Publicly displayable name for the end beneficiary of carbon removal."}},"description":"Publicly sharable reference for the end beneficiary of carbon removal. Assumed to be the Stripe account if not set.","x-stripeMostCommon":["domain","email","public_name"]},"currency":{"maxLength":5000,"type":"string","description":"Request currency for the order as a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a supported [settlement currency for your account](https://stripe.com/docs/currencies). If omitted, the account's default currency will be used."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"metric_tons":{"type":"string","description":"Requested number of tons for the order. Either this or `amount` must be specified.","format":"decimal"},"product":{"maxLength":5000,"type":"string","description":"Unique identifier of the Climate product."}},"additionalProperties":false,"x-stripeMostCommon":["amount","beneficiary","currency","metadata","metric_tons","product"]},"encoding":{"beneficiary":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/climate.order"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/climate/orders/{order}":{"get":{"summary":"Retrieve an order","description":"Retrieves the details of a Climate order object with the given ID.
","operationId":"GetClimateOrdersOrder","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"order","in":"path","description":"Unique identifier of the order.","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/climate.order"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Update an order","description":"Updates the specified order by setting the values of the parameters passed.
","operationId":"PostClimateOrdersOrder","parameters":[{"name":"order","in":"path","description":"Unique identifier of the order.","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"beneficiary":{"description":"Publicly sharable reference for the end beneficiary of carbon removal. Assumed to be the Stripe account if not set.","anyOf":[{"title":"beneficiary_params","required":["public_name"],"type":"object","properties":{"public_name":{"description":"Publicly displayable name for the end beneficiary of carbon removal.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]}},"x-stripeMostCommon":["domain","email","public_name"]},{"type":"string","enum":[""]}]},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."}},"additionalProperties":false,"x-stripeMostCommon":["beneficiary","metadata"]},"encoding":{"beneficiary":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/climate.order"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/climate/orders/{order}/cancel":{"post":{"summary":"Cancel an order","description":"Cancels a Climate order. You can cancel an order within 24 hours of creation. Stripe refunds the\nreservation amount_subtotal, but not the amount_fees for user-triggered cancellations. Frontier\nmight cancel reservations if suppliers fail to deliver. If Frontier cancels the reservation, Stripe\nprovides 90 days advance notice and refunds the amount_total.
Lists all available Climate product objects.
","operationId":"GetClimateProducts","parameters":[{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"ClimateRemovalsProductsList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/climate.product"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/climate/products","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/climate/products/{product}":{"get":{"summary":"Retrieve a product","description":"Retrieves the details of a Climate product with the given ID.
","operationId":"GetClimateProductsProduct","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"product","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/climate.product"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/climate/suppliers":{"get":{"summary":"List suppliers","description":"Lists all available Climate supplier objects.
","operationId":"GetClimateSuppliers","parameters":[{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"ClimateRemovalsSuppliersList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/climate.supplier"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/climate/suppliers","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/climate/suppliers/{supplier}":{"get":{"summary":"Retrieve a supplier","description":"Retrieves a Climate supplier object.
","operationId":"GetClimateSuppliersSupplier","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"supplier","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/climate.supplier"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/confirmation_tokens/{confirmation_token}":{"get":{"summary":"Retrieve a ConfirmationToken","description":"Retrieves an existing ConfirmationToken object
","operationId":"GetConfirmationTokensConfirmationToken","parameters":[{"name":"confirmation_token","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/confirmation_token"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/country_specs":{"get":{"summary":"List Country Specs","description":"Lists all Country Spec objects available in the API.
","operationId":"GetCountrySpecs","parameters":[{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"CountrySpecList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/country_spec"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/country_specs","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/country_specs/{country}":{"get":{"summary":"Retrieve a Country Spec","description":"Returns a Country Spec for a given Country code.
","operationId":"GetCountrySpecsCountry","parameters":[{"name":"country","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/country_spec"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/coupons":{"get":{"summary":"List all coupons","description":"Returns a list of your coupons.
","operationId":"GetCoupons","parameters":[{"name":"created","in":"query","description":"A filter on the list, based on the object `created` field. The value can be a string with an integer Unix timestamp, or it can be a dictionary with a number of different query options.","required":false,"style":"deepObject","explode":true,"schema":{"anyOf":[{"title":"range_query_specs","type":"object","properties":{"gt":{"type":"integer","description":"Minimum value to filter by (exclusive)"},"gte":{"type":"integer","description":"Minimum value to filter by (inclusive)"},"lt":{"type":"integer","description":"Maximum value to filter by (exclusive)"},"lte":{"type":"integer","description":"Maximum value to filter by (inclusive)"}},"x-stripeMostCommon":["gt","gte","lt","lte"]},{"type":"integer"}]}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"CouponsResourceCouponList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/coupon"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/coupons","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create a coupon","description":"You can create coupons easily via the coupon management page of the Stripe dashboard. Coupon creation is also accessible via the API if you need to create coupons on the fly.
\n\nA coupon has either a percent_off or an amount_off and currency. If you set an amount_off, that amount will be subtracted from any invoice’s subtotal. For example, an invoice with a subtotal of amount_off of amount_off of
Retrieves the coupon with the given ID.
","operationId":"GetCouponsCoupon","parameters":[{"name":"coupon","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/coupon"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Update a coupon","description":"Updates the metadata of a coupon. Other coupon details (currency, duration, amount_off) are, by design, not editable.
","operationId":"PostCouponsCoupon","parameters":[{"name":"coupon","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"currency_options":{"type":"object","additionalProperties":{"title":"currency_option","required":["amount_off"],"type":"object","properties":{"amount_off":{"type":"integer","description":"A positive integer representing the amount to subtract from an invoice total."}},"x-stripeMostCommon":["amount_off"]},"description":"Coupons defined in each available currency option (only supported if the coupon is amount-based). Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies)."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"name":{"maxLength":40,"type":"string","description":"Name of the coupon displayed to customers on, for instance invoices, or receipts. By default the `id` is shown if `name` is not set."}},"additionalProperties":false,"x-stripeMostCommon":["metadata","name"]},"encoding":{"currency_options":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/coupon"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"delete":{"summary":"Delete a coupon","description":"You can delete coupons via the coupon management page of the Stripe dashboard. However, deleting a coupon does not affect any customers who have already applied the coupon; it means that new customers can’t redeem the coupon. You can also delete coupons via the API.
","operationId":"DeleteCouponsCoupon","parameters":[{"name":"coupon","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/deleted_coupon"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/credit_notes":{"get":{"summary":"List all credit notes","description":"Returns a list of credit notes.
","operationId":"GetCreditNotes","parameters":[{"name":"created","in":"query","description":"Only return credit notes that were created during the given date interval.","required":false,"style":"deepObject","explode":true,"schema":{"anyOf":[{"title":"range_query_specs","type":"object","properties":{"gt":{"type":"integer","description":"Minimum value to filter by (exclusive)"},"gte":{"type":"integer","description":"Minimum value to filter by (inclusive)"},"lt":{"type":"integer","description":"Maximum value to filter by (exclusive)"},"lte":{"type":"integer","description":"Maximum value to filter by (inclusive)"}},"x-stripeMostCommon":["gt","gte","lt","lte"]},{"type":"integer"}]}},{"name":"customer","in":"query","description":"Only return credit notes for the customer specified by this customer ID.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"customer_account","in":"query","description":"Only return credit notes for the account representing the customer specified by this account ID.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"invoice","in":"query","description":"Only return credit notes for the invoice specified by this invoice ID.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"CreditNotesList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/credit_note"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create a credit note","description":"Issue a credit note to adjust the amount of a finalized invoice. A credit note will first reduce the invoice’s amount_remaining (and amount_due), but not below zero.\nThis amount is indicated by the credit note’s pre_payment_amount. The excess amount is indicated by post_payment_amount, and it can result in any combination of the following:
refund_amount) or link existing refunds (using refunds).credit_amount) which will be automatically applied to their next invoice when it’s finalized.out_of_band_amount).The sum of refunds, customer balance credits, and outside of Stripe credits must equal the post_payment_amount.
You may issue multiple credit notes for an invoice. Each credit note may increment the invoice’s pre_payment_credit_notes_amount,\npost_payment_credit_notes_amount, or both, depending on the invoice’s amount_remaining at the time of credit note creation.
Get a preview of a credit note without creating it.
","operationId":"GetCreditNotesPreview","parameters":[{"name":"amount","in":"query","description":"The integer amount in cents (or local equivalent) representing the total amount of the credit note. One of `amount`, `lines`, or `shipping_cost` must be provided.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"credit_amount","in":"query","description":"The integer amount in cents (or local equivalent) representing the amount to credit the customer's balance, which will be automatically applied to their next invoice.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"effective_at","in":"query","description":"The date when this credit note is in effect. Same as `created` unless overwritten. When defined, this value replaces the system-generated 'Date of issue' printed on the credit note PDF.","required":false,"style":"form","explode":true,"schema":{"type":"integer","format":"unix-time"}},{"name":"email_type","in":"query","description":"Type of email to send to the customer, one of `credit_note` or `none` and the default is `credit_note`.","required":false,"style":"form","explode":true,"schema":{"type":"string","enum":["credit_note","none"]}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"invoice","in":"query","description":"ID of the invoice.","required":true,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"lines","in":"query","description":"Line items that make up the credit note. One of `amount`, `lines`, or `shipping_cost` must be provided.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"title":"credit_note_line_item_params","required":["type"],"type":"object","properties":{"amount":{"type":"integer","description":"The line item amount to credit. Only valid when `type` is `invoice_line_item`. If invoice is set up with `automatic_tax[enabled]=true`, this amount is tax exclusive"},"description":{"maxLength":5000,"type":"string","description":"The description of the credit note line item. Only valid when the `type` is `custom_line_item`."},"invoice_line_item":{"maxLength":5000,"type":"string","description":"The invoice line item to credit. Only valid when the `type` is `invoice_line_item`."},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"quantity":{"type":"integer","description":"The line item quantity to credit."},"tax_amounts":{"description":"A list of up to 10 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`.","anyOf":[{"type":"array","items":{"title":"tax_amount_with_tax_rate_param","required":["amount","tax_rate","taxable_amount"],"type":"object","properties":{"amount":{"type":"integer","description":"The amount, in cents (or local equivalent), of the tax."},"tax_rate":{"maxLength":5000,"type":"string","description":"The id of the tax rate for this tax amount. The tax rate must have been automatically created by Stripe."},"taxable_amount":{"type":"integer","description":"The amount on which tax is calculated, in cents (or local equivalent)."}},"x-stripeMostCommon":["amount","tax_rate","taxable_amount"]}},{"type":"string","enum":[""]}]},"tax_rates":{"description":"The tax rates which apply to the credit note line item. Only valid when the `type` is `custom_line_item` and `tax_amounts` is not used.","anyOf":[{"type":"array","items":{"maxLength":5000,"type":"string"}},{"type":"string","enum":[""]}]},"type":{"type":"string","description":"Type of the credit note line item, one of `invoice_line_item` or `custom_line_item`. `custom_line_item` is not valid when the invoice is set up with `automatic_tax[enabled]=true`.","enum":["custom_line_item","invoice_line_item"]},"unit_amount":{"type":"integer","description":"The integer unit amount in cents (or local equivalent) of the credit note line item. This `unit_amount` will be multiplied by the quantity to get the full amount to credit for this line item. Only valid when `type` is `custom_line_item`."},"unit_amount_decimal":{"type":"string","description":"Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.","format":"decimal"}},"x-stripeMostCommon":["amount","description","invoice_line_item","metadata","quantity","tax_amounts","tax_rates","type","unit_amount","unit_amount_decimal"]}}},{"name":"memo","in":"query","description":"The credit note's memo appears on the credit note PDF.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"metadata","in":"query","description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","required":false,"style":"deepObject","explode":true,"schema":{"type":"object","additionalProperties":{"type":"string"}}},{"name":"out_of_band_amount","in":"query","description":"The integer amount in cents (or local equivalent) representing the amount that is credited outside of Stripe.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"reason","in":"query","description":"Reason for issuing this credit note, one of `duplicate`, `fraudulent`, `order_change`, or `product_unsatisfactory`","required":false,"style":"form","explode":true,"schema":{"type":"string","enum":["duplicate","fraudulent","order_change","product_unsatisfactory"]}},{"name":"refund_amount","in":"query","description":"The integer amount in cents (or local equivalent) representing the amount to refund. If set, a refund will be created for the charge associated with the invoice.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"refunds","in":"query","description":"Refunds to link to this credit note.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"title":"credit_note_refund_params","type":"object","properties":{"amount_refunded":{"type":"integer","description":"Amount of the refund that applies to this credit note, in cents (or local equivalent). Defaults to the entire refund amount."},"payment_record_refund":{"title":"payment_record_refund_params","required":["payment_record","refund_group"],"type":"object","properties":{"payment_record":{"maxLength":5000,"type":"string","description":"The ID of the PaymentRecord with the refund to link to this credit note."},"refund_group":{"maxLength":5000,"type":"string","description":"The PaymentRecord refund group to link to this credit note. For refunds processed off-Stripe, this will correspond to the `processor_details.custom.refund_reference` field provided when reporting the refund on the PaymentRecord."}},"description":"The PaymentRecord refund details to link to this credit note. Required when `type` is `payment_record_refund`.","x-stripeMostCommon":["payment_record","refund_group"]},"refund":{"type":"string","description":"ID of an existing refund to link this credit note to. Required when `type` is `refund`."},"type":{"type":"string","description":"Type of the refund, one of `refund` or `payment_record_refund`. Defaults to `refund`.","enum":["payment_record_refund","refund"]}},"x-stripeMostCommon":["amount_refunded","payment_record_refund","refund","type"]}}},{"name":"shipping_cost","in":"query","description":"When shipping_cost contains the shipping_rate from the invoice, the shipping_cost is included in the credit note. One of `amount`, `lines`, or `shipping_cost` must be provided.","required":false,"style":"deepObject","explode":true,"schema":{"title":"credit_note_shipping_cost","type":"object","properties":{"shipping_rate":{"maxLength":5000,"type":"string","description":"The ID of the shipping rate to use for this order."}},"x-stripeMostCommon":["shipping_rate"]}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/credit_note"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/credit_notes/preview/lines":{"get":{"summary":"Retrieve a credit note preview's line items","description":"When retrieving a credit note preview, you’ll get a lines property containing the first handful of those items. This URL you can retrieve the full (paginated) list of line items.
","operationId":"GetCreditNotesPreviewLines","parameters":[{"name":"amount","in":"query","description":"The integer amount in cents (or local equivalent) representing the total amount of the credit note. One of `amount`, `lines`, or `shipping_cost` must be provided.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"credit_amount","in":"query","description":"The integer amount in cents (or local equivalent) representing the amount to credit the customer's balance, which will be automatically applied to their next invoice.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"effective_at","in":"query","description":"The date when this credit note is in effect. Same as `created` unless overwritten. When defined, this value replaces the system-generated 'Date of issue' printed on the credit note PDF.","required":false,"style":"form","explode":true,"schema":{"type":"integer","format":"unix-time"}},{"name":"email_type","in":"query","description":"Type of email to send to the customer, one of `credit_note` or `none` and the default is `credit_note`.","required":false,"style":"form","explode":true,"schema":{"type":"string","enum":["credit_note","none"]}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"invoice","in":"query","description":"ID of the invoice.","required":true,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"lines","in":"query","description":"Line items that make up the credit note. One of `amount`, `lines`, or `shipping_cost` must be provided.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"title":"credit_note_line_item_params","required":["type"],"type":"object","properties":{"amount":{"type":"integer","description":"The line item amount to credit. Only valid when `type` is `invoice_line_item`. If invoice is set up with `automatic_tax[enabled]=true`, this amount is tax exclusive"},"description":{"maxLength":5000,"type":"string","description":"The description of the credit note line item. Only valid when the `type` is `custom_line_item`."},"invoice_line_item":{"maxLength":5000,"type":"string","description":"The invoice line item to credit. Only valid when the `type` is `invoice_line_item`."},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"quantity":{"type":"integer","description":"The line item quantity to credit."},"tax_amounts":{"description":"A list of up to 10 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`.","anyOf":[{"type":"array","items":{"title":"tax_amount_with_tax_rate_param","required":["amount","tax_rate","taxable_amount"],"type":"object","properties":{"amount":{"type":"integer","description":"The amount, in cents (or local equivalent), of the tax."},"tax_rate":{"maxLength":5000,"type":"string","description":"The id of the tax rate for this tax amount. The tax rate must have been automatically created by Stripe."},"taxable_amount":{"type":"integer","description":"The amount on which tax is calculated, in cents (or local equivalent)."}},"x-stripeMostCommon":["amount","tax_rate","taxable_amount"]}},{"type":"string","enum":[""]}]},"tax_rates":{"description":"The tax rates which apply to the credit note line item. Only valid when the `type` is `custom_line_item` and `tax_amounts` is not used.","anyOf":[{"type":"array","items":{"maxLength":5000,"type":"string"}},{"type":"string","enum":[""]}]},"type":{"type":"string","description":"Type of the credit note line item, one of `invoice_line_item` or `custom_line_item`. `custom_line_item` is not valid when the invoice is set up with `automatic_tax[enabled]=true`.","enum":["custom_line_item","invoice_line_item"]},"unit_amount":{"type":"integer","description":"The integer unit amount in cents (or local equivalent) of the credit note line item. This `unit_amount` will be multiplied by the quantity to get the full amount to credit for this line item. Only valid when `type` is `custom_line_item`."},"unit_amount_decimal":{"type":"string","description":"Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.","format":"decimal"}},"x-stripeMostCommon":["amount","description","invoice_line_item","metadata","quantity","tax_amounts","tax_rates","type","unit_amount","unit_amount_decimal"]}}},{"name":"memo","in":"query","description":"The credit note's memo appears on the credit note PDF.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"metadata","in":"query","description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","required":false,"style":"deepObject","explode":true,"schema":{"type":"object","additionalProperties":{"type":"string"}}},{"name":"out_of_band_amount","in":"query","description":"The integer amount in cents (or local equivalent) representing the amount that is credited outside of Stripe.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"reason","in":"query","description":"Reason for issuing this credit note, one of `duplicate`, `fraudulent`, `order_change`, or `product_unsatisfactory`","required":false,"style":"form","explode":true,"schema":{"type":"string","enum":["duplicate","fraudulent","order_change","product_unsatisfactory"]}},{"name":"refund_amount","in":"query","description":"The integer amount in cents (or local equivalent) representing the amount to refund. If set, a refund will be created for the charge associated with the invoice.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"refunds","in":"query","description":"Refunds to link to this credit note.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"title":"credit_note_refund_params","type":"object","properties":{"amount_refunded":{"type":"integer","description":"Amount of the refund that applies to this credit note, in cents (or local equivalent). Defaults to the entire refund amount."},"payment_record_refund":{"title":"payment_record_refund_params","required":["payment_record","refund_group"],"type":"object","properties":{"payment_record":{"maxLength":5000,"type":"string","description":"The ID of the PaymentRecord with the refund to link to this credit note."},"refund_group":{"maxLength":5000,"type":"string","description":"The PaymentRecord refund group to link to this credit note. For refunds processed off-Stripe, this will correspond to the `processor_details.custom.refund_reference` field provided when reporting the refund on the PaymentRecord."}},"description":"The PaymentRecord refund details to link to this credit note. Required when `type` is `payment_record_refund`.","x-stripeMostCommon":["payment_record","refund_group"]},"refund":{"type":"string","description":"ID of an existing refund to link this credit note to. Required when `type` is `refund`."},"type":{"type":"string","description":"Type of the refund, one of `refund` or `payment_record_refund`. Defaults to `refund`.","enum":["payment_record_refund","refund"]}},"x-stripeMostCommon":["amount_refunded","payment_record_refund","refund","type"]}}},{"name":"shipping_cost","in":"query","description":"When shipping_cost contains the shipping_rate from the invoice, the shipping_cost is included in the credit note. One of `amount`, `lines`, or `shipping_cost` must be provided.","required":false,"style":"deepObject","explode":true,"schema":{"title":"credit_note_shipping_cost","type":"object","properties":{"shipping_rate":{"maxLength":5000,"type":"string","description":"The ID of the shipping rate to use for this order."}},"x-stripeMostCommon":["shipping_rate"]}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"CreditNoteLinesList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","description":"Details about each object.","items":{"$ref":"#/components/schemas/credit_note_line_item"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/credit_notes/{credit_note}/lines":{"get":{"summary":"Retrieve a credit note's line items","description":"When retrieving a credit note, you’ll get a lines property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
","operationId":"GetCreditNotesCreditNoteLines","parameters":[{"name":"credit_note","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"CreditNoteLinesList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","description":"Details about each object.","items":{"$ref":"#/components/schemas/credit_note_line_item"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/credit_notes/{id}":{"get":{"summary":"Retrieve a credit note","description":"Retrieves the credit note object with the given identifier.
","operationId":"GetCreditNotesId","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"id","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/credit_note"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Update a credit note","description":"Updates an existing credit note.
","operationId":"PostCreditNotesId","parameters":[{"name":"id","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"memo":{"maxLength":5000,"type":"string","description":"Credit note memo."},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."}},"additionalProperties":false,"x-stripeMostCommon":["memo","metadata"]},"encoding":{"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/credit_note"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/credit_notes/{id}/void":{"post":{"summary":"Void a credit note","description":"Marks a credit note as void. Learn more about voiding credit notes.
","operationId":"PostCreditNotesIdVoid","parameters":[{"name":"id","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}}},"additionalProperties":false},"encoding":{"expand":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/credit_note"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/customer_sessions":{"post":{"summary":"Create a Customer Session","description":"Creates a Customer Session object that includes a single-use client secret that you can use on your front-end to grant client-side API access for certain customer resources.
","operationId":"PostCustomerSessions","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["components"],"type":"object","properties":{"components":{"title":"components","type":"object","properties":{"buy_button":{"title":"buy_button_param","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the buy button is enabled."}},"description":"Configuration for buy button.","x-stripeMostCommon":["enabled"]},"customer_sheet":{"title":"customer_sheet_param","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the customer sheet is enabled."},"features":{"title":"features_param","type":"object","properties":{"payment_method_allow_redisplay_filters":{"type":"array","description":"A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the customer sheet displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list.\n\nIf not specified, defaults to [\"always\"]. In order to display all saved payment methods, specify [\"always\", \"limited\", \"unspecified\"].","items":{"type":"string","enum":["always","limited","unspecified"]}},"payment_method_remove":{"type":"string","description":"Controls whether the customer sheet displays the option to remove a saved payment method.\"\n\nAllowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method. Removing the payment method detaches the [`customer` object](https://docs.stripe.com/api/payment_methods/object#payment_method_object-customer) from that [PaymentMethod](https://docs.stripe.com/api/payment_methods).","enum":["disabled","enabled"],"x-stripeBypassValidation":true}},"description":"This hash defines whether the customer sheet supports certain features.","x-stripeMostCommon":["payment_method_allow_redisplay_filters","payment_method_remove","payment_method_remove_last","payment_method_sync_default"]}},"description":"Configuration for the customer sheet.","x-stripeMostCommon":["enabled","features"]},"mobile_payment_element":{"title":"mobile_payment_element_param","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the mobile payment element is enabled."},"features":{"title":"features_param","type":"object","properties":{"payment_method_allow_redisplay_filters":{"type":"array","description":"A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the mobile payment element displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list.\n\nIf not specified, defaults to [\"always\"]. In order to display all saved payment methods, specify [\"always\", \"limited\", \"unspecified\"].","items":{"type":"string","enum":["always","limited","unspecified"]}},"payment_method_redisplay":{"type":"string","description":"Controls whether or not the mobile payment element shows saved payment methods.","enum":["disabled","enabled"],"x-stripeBypassValidation":true},"payment_method_remove":{"type":"string","description":"Controls whether the mobile payment element displays the option to remove a saved payment method.\"\n\nAllowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method. Removing the payment method detaches the [`customer` object](https://docs.stripe.com/api/payment_methods/object#payment_method_object-customer) from that [PaymentMethod](https://docs.stripe.com/api/payment_methods).","enum":["disabled","enabled"],"x-stripeBypassValidation":true},"payment_method_save":{"type":"string","description":"Controls whether the mobile payment element displays a checkbox offering to save a new payment method.\n\nIf a customer checks the box, the [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) value on the PaymentMethod is set to `'always'` at confirmation time. For PaymentIntents, the [`setup_future_usage`](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-setup_future_usage) value is also set to the value defined in `payment_method_save_usage`.","enum":["disabled","enabled"],"x-stripeBypassValidation":true},"payment_method_save_allow_redisplay_override":{"type":"string","description":"Allows overriding the value of allow_override when saving a new payment method when payment_method_save is set to disabled. Use values: \"always\", \"limited\", or \"unspecified\".\n\nIf not specified, defaults to `nil` (no override value).","enum":["always","limited","unspecified"]}},"description":"This hash defines whether the mobile payment element supports certain features.","x-stripeMostCommon":["payment_method_allow_redisplay_filters","payment_method_redisplay","payment_method_remove","payment_method_remove_last","payment_method_save","payment_method_save_allow_redisplay_override","payment_method_set_as_default"]}},"description":"Configuration for the mobile payment element.","x-stripeMostCommon":["enabled","features"]},"payment_element":{"title":"payment_element_param","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the Payment Element is enabled."},"features":{"title":"features_param","type":"object","properties":{"payment_method_allow_redisplay_filters":{"type":"array","description":"A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the Payment Element displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list.\n\nIf not specified, defaults to [\"always\"]. In order to display all saved payment methods, specify [\"always\", \"limited\", \"unspecified\"].","items":{"type":"string","enum":["always","limited","unspecified"]}},"payment_method_redisplay":{"type":"string","description":"Controls whether or not the Payment Element shows saved payment methods. This parameter defaults to `disabled`.","enum":["disabled","enabled"],"x-stripeBypassValidation":true},"payment_method_redisplay_limit":{"type":"integer","description":"Determines the max number of saved payment methods for the Payment Element to display. This parameter defaults to `3`. The maximum redisplay limit is `10`."},"payment_method_remove":{"type":"string","description":"Controls whether the Payment Element displays the option to remove a saved payment method. This parameter defaults to `disabled`.\n\nAllowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method. Removing the payment method detaches the [`customer` object](https://docs.stripe.com/api/payment_methods/object#payment_method_object-customer) from that [PaymentMethod](https://docs.stripe.com/api/payment_methods).","enum":["disabled","enabled"],"x-stripeBypassValidation":true},"payment_method_save":{"type":"string","description":"Controls whether the Payment Element displays a checkbox offering to save a new payment method. This parameter defaults to `disabled`.\n\nIf a customer checks the box, the [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) value on the PaymentMethod is set to `'always'` at confirmation time. For PaymentIntents, the [`setup_future_usage`](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-setup_future_usage) value is also set to the value defined in `payment_method_save_usage`.","enum":["disabled","enabled"],"x-stripeBypassValidation":true},"payment_method_save_usage":{"type":"string","description":"When using PaymentIntents and the customer checks the save checkbox, this field determines the [`setup_future_usage`](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-setup_future_usage) value used to confirm the PaymentIntent.\n\nWhen using SetupIntents, directly configure the [`usage`](https://docs.stripe.com/api/setup_intents/object#setup_intent_object-usage) value on SetupIntent creation.","enum":["off_session","on_session"]}},"description":"This hash defines whether the Payment Element supports certain features.","x-stripeMostCommon":["payment_method_allow_redisplay_filters","payment_method_redisplay","payment_method_redisplay_limit","payment_method_remove","payment_method_remove_last","payment_method_save","payment_method_save_usage","payment_method_set_as_default","payment_method_update"]}},"description":"Configuration for the Payment Element.","x-stripeMostCommon":["enabled","features"]},"pricing_table":{"title":"pricing_table_param","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the pricing table is enabled."}},"description":"Configuration for the pricing table.","x-stripeMostCommon":["enabled"]}},"description":"Configuration for each component. At least 1 component must be enabled.","x-stripeMostCommon":["active_entitlements","buy_button","customer_portal","customer_sheet","mobile_payment_element","payment_element","pricing_table","tax_id_element"]},"customer":{"maxLength":5000,"type":"string","description":"The ID of an existing customer for which to create the Customer Session."},"customer_account":{"maxLength":5000,"type":"string","description":"The ID of an existing Account for which to create the Customer Session."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}}},"additionalProperties":false,"x-stripeMostCommon":["components","customer"]},"encoding":{"components":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/customer_session"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/customers":{"get":{"summary":"List all customers","description":"Returns a list of your customers. The customers are returned sorted by creation date, with the most recent customers appearing first.
","operationId":"GetCustomers","parameters":[{"name":"created","in":"query","description":"Only return customers that were created during the given date interval.","required":false,"style":"deepObject","explode":true,"schema":{"anyOf":[{"title":"range_query_specs","type":"object","properties":{"gt":{"type":"integer","description":"Minimum value to filter by (exclusive)"},"gte":{"type":"integer","description":"Minimum value to filter by (inclusive)"},"lt":{"type":"integer","description":"Maximum value to filter by (exclusive)"},"lte":{"type":"integer","description":"Maximum value to filter by (inclusive)"}},"x-stripeMostCommon":["gt","gte","lt","lte"]},{"type":"integer"}]}},{"name":"email","in":"query","description":"A case-sensitive filter on the list based on the customer's `email` field. The value must be a string.","required":false,"style":"form","explode":true,"schema":{"maxLength":512,"type":"string"}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"test_clock","in":"query","description":"Provides a list of customers that are associated with the specified test clock. The response will not include customers with test clocks if this parameter is not set.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"CustomerResourceCustomerList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/customer"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/customers","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create a customer","description":"Creates a new customer object.
","operationId":"PostCustomers","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"address":{"description":"The customer's address. Learn about [country-specific requirements for calculating tax](https://docs.stripe.com/invoicing/taxes?dashboard-or-api=dashboard#set-up-customer).","anyOf":[{"title":"optional_fields_customer_address","type":"object","properties":{"city":{"maxLength":5000,"type":"string","description":"City, district, suburb, town, or village."},"country":{"maxLength":5000,"type":"string","description":"A freeform text field for the country. However, in order to activate some tax features, the format should be a two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."},"line1":{"maxLength":5000,"type":"string","description":"Address line 1, such as the street, PO Box, or company name."},"line2":{"maxLength":5000,"type":"string","description":"Address line 2, such as the apartment, suite, unit, or building."},"postal_code":{"maxLength":5000,"type":"string","description":"ZIP or postal code."},"state":{"maxLength":5000,"type":"string","description":"State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))."}},"x-stripeMostCommon":["city","country","line1","line2","postal_code","state"]},{"type":"string","enum":[""]}]},"balance":{"type":"integer","description":"An integer amount in cents (or local equivalent) that represents the customer's current balance, which affect the customer's future invoices. A negative amount represents a credit that decreases the amount due on an invoice; a positive amount increases the amount due on an invoice."},"business_name":{"description":"The customer's business name. This may be up to *150 characters*.","anyOf":[{"maxLength":150,"type":"string"},{"type":"string","enum":[""]}]},"cash_balance":{"title":"cash_balance_param","type":"object","properties":{"settings":{"title":"balance_settings_param","type":"object","properties":{"reconciliation_mode":{"type":"string","description":"Controls how funds transferred by the customer are applied to payment intents and invoices. Valid options are `automatic`, `manual`, or `merchant_default`. For more information about these reconciliation modes, see [Reconciliation](https://docs.stripe.com/payments/customer-balance/reconciliation).","enum":["automatic","manual","merchant_default"]}},"description":"Settings controlling the behavior of the customer's cash balance,\nsuch as reconciliation of funds received.","x-stripeMostCommon":["reconciliation_mode"]}},"description":"Balance information and default balance settings for this customer.","x-stripeMostCommon":["settings"]},"description":{"maxLength":5000,"type":"string","description":"An arbitrary string that you can attach to a customer object. It is displayed alongside the customer in the dashboard."},"email":{"maxLength":512,"type":"string","description":"Customer's email address. It's displayed alongside the customer in your dashboard and can be useful for searching and tracking. This may be up to *512 characters*."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"individual_name":{"description":"The customer's full name. This may be up to *150 characters*.","anyOf":[{"maxLength":150,"type":"string"},{"type":"string","enum":[""]}]},"invoice_prefix":{"maxLength":5000,"type":"string","description":"The prefix for the customer used to generate unique invoice numbers. Must be 3–12 uppercase letters or numbers."},"invoice_settings":{"title":"customer_param","type":"object","properties":{"custom_fields":{"description":"The list of up to 4 default custom fields to be displayed on invoices for this customer. When updating, pass an empty string to remove previously-defined fields.","anyOf":[{"type":"array","items":{"title":"custom_field_params","required":["name","value"],"type":"object","properties":{"name":{"maxLength":40,"type":"string","description":"The name of the custom field. This may be up to 40 characters."},"value":{"maxLength":140,"type":"string","description":"The value of the custom field. This may be up to 140 characters."}},"x-stripeMostCommon":["name","value"]}},{"type":"string","enum":[""]}]},"default_payment_method":{"maxLength":5000,"type":"string","description":"ID of a payment method that's attached to the customer, to be used as the customer's default payment method for subscriptions and invoices."},"footer":{"maxLength":5000,"type":"string","description":"Default footer to be displayed on invoices for this customer."},"rendering_options":{"description":"Default options for invoice PDF rendering for this customer.","anyOf":[{"title":"customer_rendering_options_param","type":"object","properties":{"amount_tax_display":{"type":"string","description":"How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.","enum":["","exclude_tax","include_inclusive_tax"]},"template":{"maxLength":5000,"type":"string","description":"ID of the invoice rendering template to use for future invoices."}},"x-stripeMostCommon":["amount_tax_display","invoice_title","template"]},{"type":"string","enum":[""]}]}},"description":"Default invoice settings for this customer.","x-stripeMostCommon":["amount_to_forgive","amount_to_forgive_currency","custom_fields","days_until_due","default_payment_method","footer","rendering_options","send_hosted_payment_email","supported_payment_methods"]},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"name":{"maxLength":256,"type":"string","description":"The customer's full name or business name."},"next_invoice_sequence":{"type":"integer","description":"The sequence to be used on the customer's next invoice. Defaults to 1."},"payment_method":{"maxLength":5000,"type":"string"},"phone":{"maxLength":20,"type":"string","description":"The customer's phone number."},"preferred_locales":{"type":"array","description":"Customer's preferred languages, ordered by preference.","items":{"maxLength":5000,"type":"string"}},"shipping":{"description":"The customer's shipping information. Appears on invoices emailed to this customer.","anyOf":[{"title":"customer_shipping","required":["address","name"],"type":"object","properties":{"address":{"title":"optional_fields_customer_address","type":"object","properties":{"city":{"maxLength":5000,"type":"string","description":"City, district, suburb, town, or village."},"country":{"maxLength":5000,"type":"string","description":"A freeform text field for the country. However, in order to activate some tax features, the format should be a two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."},"line1":{"maxLength":5000,"type":"string","description":"Address line 1, such as the street, PO Box, or company name."},"line2":{"maxLength":5000,"type":"string","description":"Address line 2, such as the apartment, suite, unit, or building."},"postal_code":{"maxLength":5000,"type":"string","description":"ZIP or postal code."},"state":{"maxLength":5000,"type":"string","description":"State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))."}},"description":"Customer shipping address.","x-stripeMostCommon":["city","country","line1","line2","postal_code","state"]},"name":{"maxLength":5000,"type":"string","description":"Customer name."},"phone":{"maxLength":5000,"type":"string","description":"Customer phone (including extension)."}},"x-stripeMostCommon":["address","name","phone"]},{"type":"string","enum":[""]}]},"source":{"maxLength":5000,"type":"string","x-stripeBypassValidation":true},"tax":{"title":"shared_tax_create_param","type":"object","properties":{"ip_address":{"description":"A recent IP address of the customer used for tax reporting and tax location inference. Stripe recommends updating the IP address when a new PaymentMethod is attached or the address field on the customer is updated. We recommend against updating this field more frequently since it could result in unexpected tax location/reporting outcomes.","anyOf":[{"type":"string"},{"type":"string","enum":[""]}]},"validate_location":{"type":"string","description":"A flag that indicates when Stripe should validate the customer tax location. Defaults to `deferred`.","enum":["deferred","immediately"]}},"description":"Tax details about the customer.","x-stripeMostCommon":["ip_address","validate_location"]},"tax_exempt":{"type":"string","description":"The customer's tax exemption. One of `none`, `exempt`, or `reverse`.","enum":["","exempt","none","reverse"]},"tax_id_data":{"type":"array","description":"The customer's tax IDs.","items":{"title":"data_params","required":["type","value"],"type":"object","properties":{"type":{"maxLength":5000,"type":"string","description":"Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `lk_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `pl_nip`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`","enum":["ad_nrt","ae_trn","al_tin","am_tin","ao_tin","ar_cuit","au_abn","au_arn","aw_tin","az_tin","ba_tin","bb_tin","bd_bin","bf_ifu","bg_uic","bh_vat","bj_ifu","bo_tin","br_cnpj","br_cpf","bs_tin","by_tin","ca_bn","ca_gst_hst","ca_pst_bc","ca_pst_mb","ca_pst_sk","ca_qst","cd_nif","ch_uid","ch_vat","cl_tin","cm_niu","cn_tin","co_nit","cr_tin","cv_nif","de_stn","do_rcn","ec_ruc","eg_tin","es_cif","et_tin","eu_oss_vat","eu_vat","gb_vat","ge_vat","gn_nif","hk_br","hr_oib","hu_tin","id_npwp","il_vat","in_gst","is_vat","jp_cn","jp_rn","jp_trn","ke_pin","kg_tin","kh_tin","kr_brn","kz_bin","la_tin","li_uid","li_vat","lk_vat","ma_vat","md_vat","me_pib","mk_vat","mr_nif","mx_rfc","my_frp","my_itn","my_sst","ng_tin","no_vat","no_voec","np_pan","nz_gst","om_vat","pe_ruc","ph_tin","pl_nip","ro_tin","rs_pib","ru_inn","ru_kpp","sa_vat","sg_gst","sg_uen","si_tin","sn_ninea","sr_fin","sv_nit","th_vat","tj_tin","tr_tin","tw_vat","tz_vat","ua_vat","ug_tin","us_ein","uy_ruc","uz_tin","uz_vat","ve_rif","vn_tin","za_vat","zm_tin","zw_tin"],"x-stripeBypassValidation":true},"value":{"type":"string","description":"Value of the tax ID."}},"x-stripeMostCommon":["type","value"]}},"test_clock":{"maxLength":5000,"type":"string","description":"ID of the test clock to attach to the customer."},"validate":{"type":"boolean"}},"additionalProperties":false,"x-stripeMostCommon":["address","description","email","metadata","name","payment_method","phone","shipping","tax"]},"encoding":{"address":{"style":"deepObject","explode":true},"business_name":{"style":"deepObject","explode":true},"cash_balance":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"individual_name":{"style":"deepObject","explode":true},"invoice_settings":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true},"preferred_locales":{"style":"deepObject","explode":true},"shipping":{"style":"deepObject","explode":true},"tax":{"style":"deepObject","explode":true},"tax_id_data":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/customer"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/customers/search":{"get":{"summary":"Search customers","description":"Search for customers you’ve previously created using Stripe’s Search Query Language.\nDon’t use search in read-after-write flows where strict consistency is necessary. Under normal operating\nconditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up\nto an hour behind during outages. Search functionality is not available to merchants in India.
","operationId":"GetCustomersSearch","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"page","in":"query","description":"A cursor for pagination across multiple pages of results. Don't include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"query","in":"query","description":"The search query string. See [search query language](https://docs.stripe.com/search#search-query-language) and the list of supported [query fields for customers](https://docs.stripe.com/search#query-fields-for-customers).","required":true,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"SearchResult","required":["data","has_more","next_page","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/customer"}},"has_more":{"type":"boolean"},"next_page":{"maxLength":5000,"type":"string","nullable":true},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value.","enum":["search_result"]},"total_count":{"type":"integer","description":"The total number of objects that match the query, only accurate up to 10,000."},"url":{"maxLength":5000,"type":"string"}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","next_page","object","total_count","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/customers/{customer}":{"get":{"summary":"Retrieve a customer","description":"Retrieves a Customer object.
","operationId":"GetCustomersCustomer","parameters":[{"name":"customer","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/customer"},{"$ref":"#/components/schemas/deleted_customer"}]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Update a customer","description":"Updates the specified customer by setting the values of the parameters passed. Any parameters not provided are left unchanged. For example, if you pass the source parameter, that becomes the customer’s active source (such as a card) to be used for all charges in the future. When you update a customer to a new valid card source by passing the source parameter: for each of the customer’s current subscriptions, if the subscription bills automatically and is in the past_due state, then the latest open invoice for the subscription with automatic collection enabled is retried. This retry doesn’t count as an automatic retry, and doesn’t affect the next regularly scheduled payment for the invoice. Changing the default_source for a customer doesn’t trigger this behavior.
This request accepts mostly the same arguments as the customer creation call.
","operationId":"PostCustomersCustomer","parameters":[{"name":"customer","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"address":{"description":"The customer's address. Learn about [country-specific requirements for calculating tax](https://docs.stripe.com/invoicing/taxes?dashboard-or-api=dashboard#set-up-customer).","anyOf":[{"title":"optional_fields_customer_address","type":"object","properties":{"city":{"maxLength":5000,"type":"string","description":"City, district, suburb, town, or village."},"country":{"maxLength":5000,"type":"string","description":"A freeform text field for the country. However, in order to activate some tax features, the format should be a two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."},"line1":{"maxLength":5000,"type":"string","description":"Address line 1, such as the street, PO Box, or company name."},"line2":{"maxLength":5000,"type":"string","description":"Address line 2, such as the apartment, suite, unit, or building."},"postal_code":{"maxLength":5000,"type":"string","description":"ZIP or postal code."},"state":{"maxLength":5000,"type":"string","description":"State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))."}},"x-stripeMostCommon":["city","country","line1","line2","postal_code","state"]},{"type":"string","enum":[""]}]},"balance":{"type":"integer","description":"An integer amount in cents (or local equivalent) that represents the customer's current balance, which affect the customer's future invoices. A negative amount represents a credit that decreases the amount due on an invoice; a positive amount increases the amount due on an invoice."},"business_name":{"description":"The customer's business name. This may be up to *150 characters*.","anyOf":[{"maxLength":150,"type":"string"},{"type":"string","enum":[""]}]},"cash_balance":{"title":"cash_balance_param","type":"object","properties":{"settings":{"title":"balance_settings_param","type":"object","properties":{"reconciliation_mode":{"type":"string","description":"Controls how funds transferred by the customer are applied to payment intents and invoices. Valid options are `automatic`, `manual`, or `merchant_default`. For more information about these reconciliation modes, see [Reconciliation](https://docs.stripe.com/payments/customer-balance/reconciliation).","enum":["automatic","manual","merchant_default"]}},"description":"Settings controlling the behavior of the customer's cash balance,\nsuch as reconciliation of funds received.","x-stripeMostCommon":["reconciliation_mode"]}},"description":"Balance information and default balance settings for this customer.","x-stripeMostCommon":["settings"]},"default_source":{"maxLength":500,"type":"string","description":"If you are using payment methods created via the PaymentMethods API, see the [invoice_settings.default_payment_method](https://docs.stripe.com/api/customers/update#update_customer-invoice_settings-default_payment_method) parameter.\n\nProvide the ID of a payment source already attached to this customer to make it this customer's default payment source.\n\nIf you want to add a new payment source and make it the default, see the [source](https://docs.stripe.com/api/customers/update#update_customer-source) property."},"description":{"maxLength":5000,"type":"string","description":"An arbitrary string that you can attach to a customer object. It is displayed alongside the customer in the dashboard."},"email":{"maxLength":512,"type":"string","description":"Customer's email address. It's displayed alongside the customer in your dashboard and can be useful for searching and tracking. This may be up to *512 characters*."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"individual_name":{"description":"The customer's full name. This may be up to *150 characters*.","anyOf":[{"maxLength":150,"type":"string"},{"type":"string","enum":[""]}]},"invoice_prefix":{"maxLength":5000,"type":"string","description":"The prefix for the customer used to generate unique invoice numbers. Must be 3–12 uppercase letters or numbers."},"invoice_settings":{"title":"customer_param","type":"object","properties":{"custom_fields":{"description":"The list of up to 4 default custom fields to be displayed on invoices for this customer. When updating, pass an empty string to remove previously-defined fields.","anyOf":[{"type":"array","items":{"title":"custom_field_params","required":["name","value"],"type":"object","properties":{"name":{"maxLength":40,"type":"string","description":"The name of the custom field. This may be up to 40 characters."},"value":{"maxLength":140,"type":"string","description":"The value of the custom field. This may be up to 140 characters."}},"x-stripeMostCommon":["name","value"]}},{"type":"string","enum":[""]}]},"default_payment_method":{"maxLength":5000,"type":"string","description":"ID of a payment method that's attached to the customer, to be used as the customer's default payment method for subscriptions and invoices."},"footer":{"maxLength":5000,"type":"string","description":"Default footer to be displayed on invoices for this customer."},"rendering_options":{"description":"Default options for invoice PDF rendering for this customer.","anyOf":[{"title":"customer_rendering_options_param","type":"object","properties":{"amount_tax_display":{"type":"string","description":"How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.","enum":["","exclude_tax","include_inclusive_tax"]},"template":{"maxLength":5000,"type":"string","description":"ID of the invoice rendering template to use for future invoices."}},"x-stripeMostCommon":["amount_tax_display","invoice_title","template"]},{"type":"string","enum":[""]}]}},"description":"Default invoice settings for this customer.","x-stripeMostCommon":["amount_to_forgive","amount_to_forgive_currency","custom_fields","days_until_due","default_payment_method","footer","rendering_options","send_hosted_payment_email","supported_payment_methods"]},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"name":{"maxLength":256,"type":"string","description":"The customer's full name or business name."},"next_invoice_sequence":{"type":"integer","description":"The sequence to be used on the customer's next invoice. Defaults to 1."},"phone":{"maxLength":20,"type":"string","description":"The customer's phone number."},"preferred_locales":{"type":"array","description":"Customer's preferred languages, ordered by preference.","items":{"maxLength":5000,"type":"string"}},"shipping":{"description":"The customer's shipping information. Appears on invoices emailed to this customer.","anyOf":[{"title":"customer_shipping","required":["address","name"],"type":"object","properties":{"address":{"title":"optional_fields_customer_address","type":"object","properties":{"city":{"maxLength":5000,"type":"string","description":"City, district, suburb, town, or village."},"country":{"maxLength":5000,"type":"string","description":"A freeform text field for the country. However, in order to activate some tax features, the format should be a two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."},"line1":{"maxLength":5000,"type":"string","description":"Address line 1, such as the street, PO Box, or company name."},"line2":{"maxLength":5000,"type":"string","description":"Address line 2, such as the apartment, suite, unit, or building."},"postal_code":{"maxLength":5000,"type":"string","description":"ZIP or postal code."},"state":{"maxLength":5000,"type":"string","description":"State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))."}},"description":"Customer shipping address.","x-stripeMostCommon":["city","country","line1","line2","postal_code","state"]},"name":{"maxLength":5000,"type":"string","description":"Customer name."},"phone":{"maxLength":5000,"type":"string","description":"Customer phone (including extension)."}},"x-stripeMostCommon":["address","name","phone"]},{"type":"string","enum":[""]}]},"source":{"maxLength":5000,"type":"string","x-stripeBypassValidation":true},"tax":{"title":"shared_tax_update_param","type":"object","properties":{"ip_address":{"description":"A recent IP address of the customer used for tax reporting and tax location inference. Stripe recommends updating the IP address when a new PaymentMethod is attached or the address field on the customer is updated. We recommend against updating this field more frequently since it could result in unexpected tax location/reporting outcomes.","anyOf":[{"type":"string"},{"type":"string","enum":[""]}]},"validate_location":{"type":"string","description":"A flag that indicates when Stripe should validate the customer tax location. Defaults to `auto`.","enum":["auto","deferred","immediately"]}},"description":"Tax details about the customer.","x-stripeMostCommon":["ip_address","validate_location"]},"tax_exempt":{"type":"string","description":"The customer's tax exemption. One of `none`, `exempt`, or `reverse`.","enum":["","exempt","none","reverse"]},"validate":{"type":"boolean"}},"additionalProperties":false,"x-stripeMostCommon":["address","description","email","metadata","name","phone","shipping","tax"]},"encoding":{"address":{"style":"deepObject","explode":true},"business_name":{"style":"deepObject","explode":true},"cash_balance":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"individual_name":{"style":"deepObject","explode":true},"invoice_settings":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true},"preferred_locales":{"style":"deepObject","explode":true},"shipping":{"style":"deepObject","explode":true},"tax":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/customer"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"delete":{"summary":"Delete a customer","description":"Permanently deletes a customer. It cannot be undone. Also immediately cancels any active subscriptions on the customer.
","operationId":"DeleteCustomersCustomer","parameters":[{"name":"customer","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/deleted_customer"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/customers/{customer}/balance_transactions":{"get":{"summary":"List customer balance transactions","description":"Returns a list of transactions that updated the customer’s balances.
","operationId":"GetCustomersCustomerBalanceTransactions","parameters":[{"name":"created","in":"query","description":"Only return customer balance transactions that were created during the given date interval.","required":false,"style":"deepObject","explode":true,"schema":{"anyOf":[{"title":"range_query_specs","type":"object","properties":{"gt":{"type":"integer","description":"Minimum value to filter by (exclusive)"},"gte":{"type":"integer","description":"Minimum value to filter by (inclusive)"},"lt":{"type":"integer","description":"Maximum value to filter by (exclusive)"},"lte":{"type":"integer","description":"Maximum value to filter by (inclusive)"}},"x-stripeMostCommon":["gt","gte","lt","lte"]},{"type":"integer"}]}},{"name":"customer","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"invoice","in":"query","description":"Only return transactions that are related to the specified invoice.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"CustomerBalanceTransactionList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","description":"Details about each object.","items":{"$ref":"#/components/schemas/customer_balance_transaction"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create a customer balance transaction","description":"Creates an immutable transaction that updates the customer’s credit balance.
","operationId":"PostCustomersCustomerBalanceTransactions","parameters":[{"name":"customer","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["amount","currency"],"type":"object","properties":{"amount":{"type":"integer","description":"The integer amount in **cents (or local equivalent)** to apply to the customer's credit balance."},"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). Specifies the [`invoice_credit_balance`](https://docs.stripe.com/api/customers/object#customer_object-invoice_credit_balance) that this transaction will apply to. If the customer's `currency` is not set, it will be updated to this value.","format":"currency"},"description":{"maxLength":350,"type":"string","description":"An arbitrary string attached to the object. Often useful for displaying to users."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]}},"additionalProperties":false,"x-stripeMostCommon":["amount","currency","description","metadata"]},"encoding":{"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/customer_balance_transaction"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/customers/{customer}/balance_transactions/{transaction}":{"get":{"summary":"Retrieve a customer balance transaction","description":"Retrieves a specific customer balance transaction that updated the customer’s balances.
","operationId":"GetCustomersCustomerBalanceTransactionsTransaction","parameters":[{"name":"customer","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"transaction","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/customer_balance_transaction"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Update a customer credit balance transaction","description":"Most credit balance transaction fields are immutable, but you may update its description and metadata.
Retrieves a customer’s cash balance.
","operationId":"GetCustomersCustomerCashBalance","parameters":[{"name":"customer","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/cash_balance"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Update a cash balance's settings","description":"Changes the settings on a customer’s cash balance.
","operationId":"PostCustomersCustomerCashBalance","parameters":[{"name":"customer","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"settings":{"title":"balance_settings_param","type":"object","properties":{"reconciliation_mode":{"type":"string","description":"Controls how funds transferred by the customer are applied to payment intents and invoices. Valid options are `automatic`, `manual`, or `merchant_default`. For more information about these reconciliation modes, see [Reconciliation](https://docs.stripe.com/payments/customer-balance/reconciliation).","enum":["automatic","manual","merchant_default"]}},"description":"A hash of settings for this cash balance.","x-stripeMostCommon":["reconciliation_mode"]}},"additionalProperties":false,"x-stripeMostCommon":["settings"]},"encoding":{"expand":{"style":"deepObject","explode":true},"settings":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/cash_balance"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/customers/{customer}/cash_balance_transactions":{"get":{"summary":"List cash balance transactions","description":"Returns a list of transactions that modified the customer’s cash balance.
","operationId":"GetCustomersCustomerCashBalanceTransactions","parameters":[{"name":"customer","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"CustomerCashBalanceTransactionList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","description":"Details about each object.","items":{"$ref":"#/components/schemas/customer_cash_balance_transaction"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"type":"string","description":"The URL where this list can be accessed."}},"description":"Customers with certain payments enabled have a cash balance, representing funds that were paid\nby the customer to a merchant, but have not yet been allocated to a payment. Cash Balance Transactions\nrepresent when funds are moved into or out of this balance. This includes funding by the customer, allocation\nto payments, and refunds to the customer.","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/customers/{customer}/cash_balance_transactions/{transaction}":{"get":{"summary":"Retrieve a cash balance transaction","description":"Retrieves a specific cash balance transaction, which updated the customer’s cash balance.
","operationId":"GetCustomersCustomerCashBalanceTransactionsTransaction","parameters":[{"name":"customer","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"transaction","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/customer_cash_balance_transaction"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/customers/{customer}/discount":{"delete":{"summary":"Delete a customer discount","description":"Removes the currently applied discount on a customer.
","operationId":"DeleteCustomersCustomerDiscount","parameters":[{"name":"customer","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/deleted_discount"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/customers/{customer}/funding_instructions":{"post":{"summary":"Create or retrieve funding instructions for a customer cash balance","description":"Retrieve funding instructions for a customer cash balance. If funding instructions do not yet exist for the customer, new\nfunding instructions will be created. If funding instructions have already been created for a given customer, the same\nfunding instructions will be retrieved. In other words, we will return the same funding instructions each time.
","operationId":"PostCustomersCustomerFundingInstructions","parameters":[{"name":"customer","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["bank_transfer","currency","funding_type"],"type":"object","properties":{"bank_transfer":{"title":"bank_transfer_params","required":["type"],"type":"object","properties":{"eu_bank_transfer":{"title":"eu_bank_account_params","required":["country"],"type":"object","properties":{"country":{"maxLength":5000,"type":"string","description":"The desired country code of the bank account information. Permitted values include: `DE`, `FR`, `IE`, or `NL`."}},"description":"Configuration for eu_bank_transfer funding type.","x-stripeMostCommon":["country"]},"requested_address_types":{"type":"array","description":"List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned.\n\nPermitted values include: `sort_code`, `zengin`, `iban`, or `spei`.","items":{"type":"string","enum":["iban","sort_code","spei","zengin"],"x-stripeBypassValidation":true}},"type":{"type":"string","description":"The type of the `bank_transfer`","enum":["eu_bank_transfer","gb_bank_transfer","jp_bank_transfer","mx_bank_transfer","us_bank_transfer"],"x-stripeBypassValidation":true}},"description":"Additional parameters for `bank_transfer` funding types","x-stripeMostCommon":["eu_bank_transfer","requested_address_types","type"]},"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"funding_type":{"type":"string","description":"The `funding_type` to get the instructions for.","enum":["bank_transfer"]}},"additionalProperties":false,"x-stripeMostCommon":["bank_transfer","currency","funding_type"]},"encoding":{"bank_transfer":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/funding_instructions"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/customers/{customer}/payment_methods":{"get":{"summary":"List a Customer's PaymentMethods","description":"Returns a list of PaymentMethods for a given Customer
","operationId":"GetCustomersCustomerPaymentMethods","parameters":[{"name":"allow_redisplay","in":"query","description":"This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow.","required":false,"style":"form","explode":true,"schema":{"type":"string","enum":["always","limited","unspecified"]}},{"name":"customer","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"type","in":"query","description":"An optional filter on the list, based on the object `type` field. Without the filter, the list includes all current and future payment method types. If your integration expects only one type of payment method in the response, make sure to provide a type value in the request.","required":false,"style":"form","explode":true,"schema":{"type":"string","enum":["acss_debit","affirm","afterpay_clearpay","alipay","alma","amazon_pay","au_becs_debit","bacs_debit","bancontact","billie","blik","boleto","card","cashapp","crypto","custom","customer_balance","eps","fpx","giropay","grabpay","ideal","kakao_pay","klarna","konbini","kr_card","link","mb_way","mobilepay","multibanco","naver_pay","nz_bank_account","oxxo","p24","pay_by_bank","payco","paynow","paypal","payto","pix","promptpay","revolut_pay","samsung_pay","satispay","sepa_debit","sofort","swish","twint","upi","us_bank_account","wechat_pay","zip"],"x-stripeBypassValidation":true}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"CustomerPaymentMethodResourceList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/payment_method"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/customers/{customer}/payment_methods/{payment_method}":{"get":{"summary":"Retrieve a Customer's PaymentMethod","description":"Retrieves a PaymentMethod object for a given Customer.
","operationId":"GetCustomersCustomerPaymentMethodsPaymentMethod","parameters":[{"name":"customer","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"payment_method","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment_method"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/customers/{customer}/sources":{"get":{"description":"List sources for a specified customer.
","operationId":"GetCustomersCustomerSources","parameters":[{"name":"customer","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"object","in":"query","description":"Filter sources according to a particular object type.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"ApmsSourcesSourceList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","description":"Details about each object.","items":{"$ref":"#/components/schemas/payment_source"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create a card","description":"When you create a new credit card, you must specify a customer or recipient on which to create it.
\n\nIf the card’s owner has no default card, then the new card will become the default.\nHowever, if the owner already has a default, then it will not change.\nTo change the default, you should update the customer to have a new default_source.
Retrieve a specified source for a given customer.
","operationId":"GetCustomersCustomerSourcesId","parameters":[{"name":"customer","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"id","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":500,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment_source"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"description":"Update a specified source for a given customer.
","operationId":"PostCustomersCustomerSourcesId","parameters":[{"name":"customer","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"id","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"account_holder_name":{"maxLength":5000,"type":"string","description":"The name of the person or business that owns the bank account."},"account_holder_type":{"maxLength":5000,"type":"string","description":"The type of entity that holds the account. This can be either `individual` or `company`.","enum":["company","individual"]},"address_city":{"maxLength":5000,"type":"string","description":"City/District/Suburb/Town/Village."},"address_country":{"maxLength":5000,"type":"string","description":"Billing address country, if provided when creating card."},"address_line1":{"maxLength":5000,"type":"string","description":"Address line 1 (Street address/PO Box/Company name)."},"address_line2":{"maxLength":5000,"type":"string","description":"Address line 2 (Apartment/Suite/Unit/Building)."},"address_state":{"maxLength":5000,"type":"string","description":"State/County/Province/Region."},"address_zip":{"maxLength":5000,"type":"string","description":"ZIP or postal code."},"exp_month":{"maxLength":5000,"type":"string","description":"Two digit number representing the card’s expiration month."},"exp_year":{"maxLength":5000,"type":"string","description":"Four digit number representing the card’s expiration year."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"name":{"maxLength":5000,"type":"string","description":"Cardholder name."},"owner":{"title":"owner","type":"object","properties":{"address":{"title":"source_address","type":"object","properties":{"city":{"maxLength":5000,"type":"string","description":"City, district, suburb, town, or village."},"country":{"maxLength":5000,"type":"string","description":"Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."},"line1":{"maxLength":5000,"type":"string","description":"Address line 1, such as the street, PO Box, or company name."},"line2":{"maxLength":5000,"type":"string","description":"Address line 2, such as the apartment, suite, unit, or building."},"postal_code":{"maxLength":5000,"type":"string","description":"ZIP or postal code."},"state":{"maxLength":5000,"type":"string","description":"State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))."}},"description":"Owner's address.","x-stripeMostCommon":["city","country","line1","line2","postal_code","state"]},"email":{"type":"string","description":"Owner's email address."},"name":{"maxLength":5000,"type":"string","description":"Owner's full name."},"phone":{"maxLength":5000,"type":"string","description":"Owner's phone number."}},"x-stripeMostCommon":["address","email","name","phone"]}},"additionalProperties":false,"x-stripeMostCommon":["account_holder_name","account_holder_type","address_city","address_country","address_line1","address_line2","address_state","address_zip","exp_month","exp_year","metadata","name","owner"]},"encoding":{"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true},"owner":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/card"},{"$ref":"#/components/schemas/bank_account"},{"$ref":"#/components/schemas/source"}]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"delete":{"summary":"Delete a customer source","description":"Delete a specified source for a given customer.
","operationId":"DeleteCustomersCustomerSourcesId","parameters":[{"name":"customer","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"id","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}}},"additionalProperties":false},"encoding":{"expand":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/payment_source"},{"$ref":"#/components/schemas/deleted_payment_source"}]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/customers/{customer}/sources/{id}/verify":{"post":{"summary":"Verify a bank account","description":"Verify a specified bank account for a given customer.
","operationId":"PostCustomersCustomerSourcesIdVerify","parameters":[{"name":"customer","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"id","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"amounts":{"type":"array","description":"Two positive integers, in *cents*, equal to the values of the microdeposits sent to the bank account.","items":{"type":"integer"}},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}}},"additionalProperties":false,"x-stripeMostCommon":["amounts"]},"encoding":{"amounts":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/bank_account"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/customers/{customer}/tax_ids":{"get":{"summary":"List all Customer tax IDs","description":"Returns a list of tax IDs for a customer.
","operationId":"GetCustomersCustomerTaxIds","parameters":[{"name":"customer","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"TaxIDsList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","description":"Details about each object.","items":{"$ref":"#/components/schemas/tax_id"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create a Customer tax ID","description":"Creates a new tax_id object for a customer.
Retrieves the tax_id object with the given identifier.
Deletes an existing tax_id object.
Returns a list of your disputes.
","operationId":"GetDisputes","parameters":[{"name":"charge","in":"query","description":"Only return disputes associated to the charge specified by this charge ID.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"created","in":"query","description":"Only return disputes that were created during the given date interval.","required":false,"style":"deepObject","explode":true,"schema":{"anyOf":[{"title":"range_query_specs","type":"object","properties":{"gt":{"type":"integer","description":"Minimum value to filter by (exclusive)"},"gte":{"type":"integer","description":"Minimum value to filter by (inclusive)"},"lt":{"type":"integer","description":"Maximum value to filter by (exclusive)"},"lte":{"type":"integer","description":"Maximum value to filter by (inclusive)"}},"x-stripeMostCommon":["gt","gte","lt","lte"]},{"type":"integer"}]}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"payment_intent","in":"query","description":"Only return disputes associated to the PaymentIntent specified by this PaymentIntent ID.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"DisputeList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/dispute"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/disputes","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/disputes/{dispute}":{"get":{"summary":"Retrieve a dispute","description":"Retrieves the dispute with the given ID.
","operationId":"GetDisputesDispute","parameters":[{"name":"dispute","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/dispute"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Update a dispute","description":"When you get a dispute, contacting your customer is always the best first step. If that doesn’t work, you can submit evidence to help us resolve the dispute in your favor. You can do this in your dashboard, but if you prefer, you can use the API to submit evidence programmatically.
\n\nDepending on your dispute type, different evidence fields will give you a better chance of winning your dispute. To figure out which evidence fields to provide, see our guide to dispute types.
","operationId":"PostDisputesDispute","parameters":[{"name":"dispute","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"evidence":{"title":"dispute_evidence_params","type":"object","properties":{"access_activity_log":{"maxLength":20000,"type":"string","description":"Any server or activity logs showing proof that the customer accessed or downloaded the purchased digital product. This information should include IP addresses, corresponding timestamps, and any detailed recorded activity. Has a maximum character count of 20,000."},"billing_address":{"maxLength":5000,"type":"string","description":"The billing address provided by the customer."},"cancellation_policy":{"type":"string","description":"(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Your subscription cancellation policy, as shown to the customer."},"cancellation_policy_disclosure":{"maxLength":20000,"type":"string","description":"An explanation of how and when the customer was shown your refund policy prior to purchase. Has a maximum character count of 20,000."},"cancellation_rebuttal":{"maxLength":20000,"type":"string","description":"A justification for why the customer's subscription was not canceled. Has a maximum character count of 20,000."},"customer_communication":{"type":"string","description":"(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Any communication with the customer that you feel is relevant to your case. Examples include emails proving that the customer received the product or service, or demonstrating their use of or satisfaction with the product or service."},"customer_email_address":{"maxLength":5000,"type":"string","description":"The email address of the customer."},"customer_name":{"maxLength":5000,"type":"string","description":"The name of the customer."},"customer_purchase_ip":{"maxLength":5000,"type":"string","description":"The IP address that the customer used when making the purchase."},"customer_signature":{"type":"string","description":"(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) A relevant document or contract showing the customer's signature."},"duplicate_charge_documentation":{"type":"string","description":"(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Documentation for the prior charge that can uniquely identify the charge, such as a receipt, shipping label, work order, etc. This document should be paired with a similar document from the disputed payment that proves the two payments are separate."},"duplicate_charge_explanation":{"maxLength":20000,"type":"string","description":"An explanation of the difference between the disputed charge versus the prior charge that appears to be a duplicate. Has a maximum character count of 20,000."},"duplicate_charge_id":{"maxLength":5000,"type":"string","description":"The Stripe ID for the prior charge which appears to be a duplicate of the disputed charge."},"enhanced_evidence":{"description":"Additional evidence for qualifying evidence programs.","anyOf":[{"title":"enhanced_evidence","type":"object","properties":{"visa_compelling_evidence_3":{"title":"visa_compelling_evidence3","type":"object","properties":{"disputed_transaction":{"title":"visa_compelling_evidence3_disputed_transaction","type":"object","properties":{"customer_account_id":{"description":"User Account ID used to log into business platform. Must be recognizable by the user.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]},"customer_device_fingerprint":{"description":"Unique identifier of the cardholder’s device derived from a combination of at least two hardware and software attributes. Must be at least 20 characters.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]},"customer_device_id":{"description":"Unique identifier of the cardholder’s device such as a device serial number (e.g., International Mobile Equipment Identity [IMEI]). Must be at least 15 characters.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]},"customer_email_address":{"description":"The email address of the customer.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]},"customer_purchase_ip":{"description":"The IP address that the customer used when making the purchase.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]},"merchandise_or_services":{"type":"string","description":"Categorization of disputed payment.","enum":["merchandise","services"]},"product_description":{"description":"A description of the product or service that was sold.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]},"shipping_address":{"title":"shipping_address","type":"object","properties":{"city":{"description":"City, district, suburb, town, or village.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]},"country":{"description":"Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]},"line1":{"description":"Address line 1, such as the street, PO Box, or company name.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]},"line2":{"description":"Address line 2, such as the apartment, suite, unit, or building.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]},"postal_code":{"description":"ZIP or postal code.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]},"state":{"description":"State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]}},"description":"The address to which a physical product was shipped. All fields are required for Visa Compelling Evidence 3.0 evidence submission.","x-stripeMostCommon":["city","country","line1","line2","postal_code","state"]}},"description":"Disputed transaction details for Visa Compelling Evidence 3.0 evidence submission.","x-stripeMostCommon":["customer_account_id","customer_device_fingerprint","customer_device_id","customer_email_address","customer_purchase_ip","merchandise_or_services","product_description","shipping_address"]},"prior_undisputed_transactions":{"type":"array","description":"List of exactly two prior undisputed transaction objects for Visa Compelling Evidence 3.0 evidence submission.","items":{"title":"visa_compelling_evidence3_prior_undisputed_transaction","required":["charge"],"type":"object","properties":{"charge":{"maxLength":5000,"type":"string","description":"Stripe charge ID for the Visa Compelling Evidence 3.0 eligible prior charge."},"customer_account_id":{"description":"User Account ID used to log into business platform. Must be recognizable by the user.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]},"customer_device_fingerprint":{"description":"Unique identifier of the cardholder’s device derived from a combination of at least two hardware and software attributes. Must be at least 20 characters.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]},"customer_device_id":{"description":"Unique identifier of the cardholder’s device such as a device serial number (e.g., International Mobile Equipment Identity [IMEI]). Must be at least 15 characters.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]},"customer_email_address":{"description":"The email address of the customer.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]},"customer_purchase_ip":{"description":"The IP address that the customer used when making the purchase.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]},"product_description":{"description":"A description of the product or service that was sold.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]},"shipping_address":{"title":"shipping_address","type":"object","properties":{"city":{"description":"City, district, suburb, town, or village.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]},"country":{"description":"Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]},"line1":{"description":"Address line 1, such as the street, PO Box, or company name.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]},"line2":{"description":"Address line 2, such as the apartment, suite, unit, or building.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]},"postal_code":{"description":"ZIP or postal code.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]},"state":{"description":"State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]}},"description":"The address to which a physical product was shipped. All fields are required for Visa Compelling Evidence 3.0 evidence submission.","x-stripeMostCommon":["city","country","line1","line2","postal_code","state"]}},"x-stripeMostCommon":["charge","customer_account_id","customer_device_fingerprint","customer_device_id","customer_email_address","customer_purchase_ip","product_description","shipping_address"]}}},"description":"Evidence provided for Visa Compelling Evidence 3.0 evidence submission.","x-stripeMostCommon":["disputed_transaction","prior_undisputed_transactions"]},"visa_compliance":{"title":"visa_compliance","type":"object","properties":{"fee_acknowledged":{"type":"boolean","description":"A field acknowledging the fee incurred when countering a Visa compliance dispute. If this field is set to true, evidence can be submitted for the compliance dispute. Stripe collects a 500 USD (or local equivalent) amount to cover the network costs associated with resolving compliance disputes. Stripe refunds the 500 USD network fee if you win the dispute."}},"description":"Evidence provided for Visa compliance evidence submission.","x-stripeMostCommon":["fee_acknowledged"]}},"x-stripeMostCommon":["visa_compelling_evidence_3","visa_compliance"]},{"type":"string","enum":[""]}]},"product_description":{"maxLength":20000,"type":"string","description":"A description of the product or service that was sold. Has a maximum character count of 20,000."},"receipt":{"type":"string","description":"(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Any receipt or message sent to the customer notifying them of the charge."},"refund_policy":{"type":"string","description":"(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Your refund policy, as shown to the customer."},"refund_policy_disclosure":{"maxLength":20000,"type":"string","description":"Documentation demonstrating that the customer was shown your refund policy prior to purchase. Has a maximum character count of 20,000."},"refund_refusal_explanation":{"maxLength":20000,"type":"string","description":"A justification for why the customer is not entitled to a refund. Has a maximum character count of 20,000."},"service_date":{"maxLength":5000,"type":"string","description":"The date on which the customer received or began receiving the purchased service, in a clear human-readable format."},"service_documentation":{"type":"string","description":"(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Documentation showing proof that a service was provided to the customer. This could include a copy of a signed contract, work order, or other form of written agreement."},"shipping_address":{"maxLength":5000,"type":"string","description":"The address to which a physical product was shipped. You should try to include as complete address information as possible."},"shipping_carrier":{"maxLength":5000,"type":"string","description":"The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc. If multiple carriers were used for this purchase, please separate them with commas."},"shipping_date":{"maxLength":5000,"type":"string","description":"The date on which a physical product began its route to the shipping address, in a clear human-readable format."},"shipping_documentation":{"type":"string","description":"(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Documentation showing proof that a product was shipped to the customer at the same address the customer provided to you. This could include a copy of the shipment receipt, shipping label, etc. It should show the customer's full shipping address, if possible."},"shipping_tracking_number":{"maxLength":5000,"type":"string","description":"The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas."},"uncategorized_file":{"type":"string","description":"(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Any additional evidence or statements."},"uncategorized_text":{"maxLength":20000,"type":"string","description":"Any additional evidence or statements. Has a maximum character count of 20,000."}},"description":"Evidence to upload, to respond to a dispute. Updating any field in the hash will submit all fields in the hash for review. The combined character count of all fields is limited to 150,000.","x-stripeMostCommon":["access_activity_log","billing_address","booking","cancellation_policy","cancellation_policy_disclosure","cancellation_rebuttal","credit_voucher","customer_communication","customer_email_address","customer_name","customer_purchase_ip","customer_signature","duplicate_charge_documentation","duplicate_charge_explanation","duplicate_charge_id","enhanced_evidence","event_details","government_order","narrative","prior_undisputed_payments","product_description","product_service_ad","receipt","refund_policy","refund_policy_disclosure","refund_refusal_explanation","service_date","service_documentation","shipping_address","shipping_carrier","shipping_date","shipping_documentation","shipping_tracking_number","terms_disclosure","uncategorized_data","uncategorized_file","uncategorized_text"]},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"submit":{"type":"boolean","description":"Whether to immediately submit evidence to the bank. If `false`, evidence is staged on the dispute. Staged evidence is visible in the API and Dashboard, and can be submitted to the bank by making another request with this attribute set to `true` (the default)."}},"additionalProperties":false,"x-stripeMostCommon":["evidence","metadata","submit"]},"encoding":{"evidence":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/dispute"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/disputes/{dispute}/close":{"post":{"summary":"Close a dispute","description":"Closing the dispute for a charge indicates that you do not have any evidence to submit and are essentially dismissing the dispute, acknowledging it as lost.
\n\nThe status of the dispute will change from needs_response to lost. Closing a dispute is irreversible.
Retrieve a list of active entitlements for a customer
","operationId":"GetEntitlementsActiveEntitlements","parameters":[{"name":"customer","in":"query","description":"The ID of the customer.","required":true,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"EntitlementsResourceCustomerEntitlementList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/entitlements.active_entitlement"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/entitlements/active_entitlements/{id}":{"get":{"summary":"Retrieve an active entitlement","description":"Retrieve an active entitlement
","operationId":"GetEntitlementsActiveEntitlementsId","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"id","in":"path","description":"The ID of the entitlement.","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/entitlements.active_entitlement"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/entitlements/features":{"get":{"summary":"List all features","description":"Retrieve a list of features
","operationId":"GetEntitlementsFeatures","parameters":[{"name":"archived","in":"query","description":"If set, filter results to only include features with the given archive status.","required":false,"style":"form","explode":true,"schema":{"type":"boolean"}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"lookup_key","in":"query","description":"If set, filter results to only include features with the given lookup_key.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"EntitlementsResourceFeatureList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/entitlements.feature"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/entitlements/features","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create a feature","description":"Creates a feature
","operationId":"PostEntitlementsFeatures","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["lookup_key","name"],"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"lookup_key":{"maxLength":80,"type":"string","description":"A unique key you provide as your own system identifier. This may be up to 80 characters."},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."},"name":{"maxLength":80,"type":"string","description":"The feature's name, for your own purpose, not meant to be displayable to the customer."}},"additionalProperties":false,"x-stripeMostCommon":["lookup_key","metadata","name"]},"encoding":{"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/entitlements.feature"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/entitlements/features/{id}":{"get":{"summary":"Retrieve a feature","description":"Retrieves a feature
","operationId":"GetEntitlementsFeaturesId","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"id","in":"path","description":"The ID of the feature.","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/entitlements.feature"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Updates a feature","description":"Update a feature’s metadata or permanently deactivate it.
","operationId":"PostEntitlementsFeaturesId","parameters":[{"name":"id","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"active":{"type":"boolean","description":"Inactive features cannot be attached to new products and will not be returned from the features list endpoint."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"metadata":{"description":"Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"name":{"maxLength":80,"type":"string","description":"The feature's name, for your own purpose, not meant to be displayable to the customer."}},"additionalProperties":false,"x-stripeMostCommon":["metadata","name"]},"encoding":{"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/entitlements.feature"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/ephemeral_keys":{"post":{"summary":"Create an ephemeral key","description":"Creates a short-lived API key for a given resource.
","operationId":"PostEphemeralKeys","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"customer":{"maxLength":5000,"type":"string","description":"The ID of the Customer you'd like to modify using the resulting ephemeral key."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"issuing_card":{"maxLength":5000,"type":"string","description":"The ID of the Issuing Card you'd like to access using the resulting ephemeral key."},"nonce":{"maxLength":5000,"type":"string","description":"A single-use token, created by Stripe.js, used for creating ephemeral keys for Issuing Cards without exchanging sensitive information."},"verification_session":{"maxLength":5000,"type":"string","description":"The ID of the Identity VerificationSession you'd like to access using the resulting ephemeral key"}},"additionalProperties":false,"x-stripeMostCommon":["customer","issuing_card","nonce","verification_session"]},"encoding":{"expand":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ephemeral_key"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/ephemeral_keys/{key}":{"delete":{"summary":"Immediately invalidate an ephemeral key","description":"Invalidates a short-lived API key for a given resource.
","operationId":"DeleteEphemeralKeysKey","parameters":[{"name":"key","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}}},"additionalProperties":false},"encoding":{"expand":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ephemeral_key"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/events":{"get":{"summary":"List all events","description":"List events, going back up to 30 days. Each event data is rendered according to Stripe API version at its creation time, specified in event object api_version attribute (not according to your current Stripe API version or Stripe-Version header).
Retrieves the details of an event if it was created in the last 30 days. Supply the unique identifier of the event, which you might have received in a webhook.
","operationId":"GetEventsId","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"id","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/event"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/exchange_rates":{"get":{"summary":"List all exchange rates","description":"[Deprecated] The ExchangeRate APIs are deprecated. Please use the FX Quotes API instead.
Returns a list of objects that contain the rates at which foreign currencies are converted to one another. Only shows the currencies for which Stripe supports.
","operationId":"GetExchangeRates","parameters":[{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is the currency that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with the exchange rate for currency X your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and total number of supported payout currencies, and the default is the max.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is the currency that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with the exchange rate for currency X, your subsequent call can include `starting_after=X` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"ExchangeRateList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/exchange_rate"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/exchange_rates","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/exchange_rates/{rate_id}":{"get":{"summary":"Retrieve an exchange rate","description":"[Deprecated] The ExchangeRate APIs are deprecated. Please use the FX Quotes API instead.
Retrieves the exchange rates from the given currency to every supported currency.
","operationId":"GetExchangeRatesRateId","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"rate_id","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/exchange_rate"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/file_links":{"get":{"summary":"List all file links","description":"Returns a list of file links.
","operationId":"GetFileLinks","parameters":[{"name":"created","in":"query","description":"Only return links that were created during the given date interval.","required":false,"style":"deepObject","explode":true,"schema":{"anyOf":[{"title":"range_query_specs","type":"object","properties":{"gt":{"type":"integer","description":"Minimum value to filter by (exclusive)"},"gte":{"type":"integer","description":"Minimum value to filter by (inclusive)"},"lt":{"type":"integer","description":"Maximum value to filter by (exclusive)"},"lte":{"type":"integer","description":"Maximum value to filter by (inclusive)"}},"x-stripeMostCommon":["gt","gte","lt","lte"]},{"type":"integer"}]}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"expired","in":"query","description":"Filter links by their expiration status. By default, Stripe returns all links.","required":false,"style":"form","explode":true,"schema":{"type":"boolean"}},{"name":"file","in":"query","description":"Only return links for the given file.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"FileResourceFileLinkList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","description":"Details about each object.","items":{"$ref":"#/components/schemas/file_link"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/file_links","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create a file link","description":"Creates a new file link object.
","operationId":"PostFileLinks","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["file"],"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"expires_at":{"type":"integer","description":"The link isn't usable after this future timestamp.","format":"unix-time"},"file":{"maxLength":5000,"type":"string","description":"The ID of the file. The file's `purpose` must be one of the following: `business_icon`, `business_logo`, `customer_signature`, `dispute_evidence`, `finance_report_run`, `financial_account_statement`, `identity_document_downloadable`, `issuing_regulatory_reporting`, `pci_document`, `selfie`, `sigma_scheduled_query`, `tax_document_user_upload`, `terminal_android_apk`, or `terminal_reader_splashscreen`."},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]}},"additionalProperties":false,"x-stripeMostCommon":["expires_at","file","metadata"]},"encoding":{"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/file_link"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/file_links/{link}":{"get":{"summary":"Retrieve a file link","description":"Retrieves the file link with the given ID.
","operationId":"GetFileLinksLink","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"link","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/file_link"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Update a file link","description":"Updates an existing file link object. Expired links can no longer be updated.
","operationId":"PostFileLinksLink","parameters":[{"name":"link","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"expires_at":{"description":"A future timestamp after which the link will no longer be usable, or `now` to expire the link immediately.","anyOf":[{"maxLength":5000,"type":"string","enum":["now"]},{"type":"integer","format":"unix-time"},{"type":"string","enum":[""]}]},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]}},"additionalProperties":false,"x-stripeMostCommon":["expires_at","metadata"]},"encoding":{"expand":{"style":"deepObject","explode":true},"expires_at":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/file_link"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/files":{"get":{"summary":"List all files","description":"Returns a list of the files that your account has access to. Stripe sorts and returns the files by their creation dates, placing the most recently created files at the top.
","operationId":"GetFiles","parameters":[{"name":"created","in":"query","description":"Only return files that were created during the given date interval.","required":false,"style":"deepObject","explode":true,"schema":{"anyOf":[{"title":"range_query_specs","type":"object","properties":{"gt":{"type":"integer","description":"Minimum value to filter by (exclusive)"},"gte":{"type":"integer","description":"Minimum value to filter by (inclusive)"},"lt":{"type":"integer","description":"Maximum value to filter by (exclusive)"},"lte":{"type":"integer","description":"Maximum value to filter by (inclusive)"}},"x-stripeMostCommon":["gt","gte","lt","lte"]},{"type":"integer"}]}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"purpose","in":"query","description":"Filter queries by the file purpose. If you don't provide a purpose, the queries return unfiltered files.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string","enum":["account_requirement","additional_verification","business_icon","business_logo","customer_signature","dispute_evidence","document_provider_identity_document","finance_report_run","financial_account_statement","identity_document","identity_document_downloadable","issuing_regulatory_reporting","pci_document","platform_terms_of_service","selfie","sigma_scheduled_query","tax_document_user_upload","terminal_android_apk","terminal_reader_splashscreen","terminal_wifi_certificate","terminal_wifi_private_key"],"x-stripeBypassValidation":true}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"FileResourceFileList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/file"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/files","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create a file","description":"To upload a file to Stripe, you need to send a request of type multipart/form-data. Include the file you want to upload in the request, and the parameters for creating a file.
All of Stripe’s officially supported Client libraries support sending multipart/form-data.
Retrieves the details of an existing file object. After you supply a unique file ID, Stripe returns the corresponding file object. Learn how to access file contents.
","operationId":"GetFilesFile","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"file","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/file"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/financial_connections/accounts":{"get":{"summary":"List Accounts","description":"Returns a list of Financial Connections Account objects.
Retrieves the details of an Financial Connections Account.
Disables your access to a Financial Connections Account. You will no longer be able to access data associated with the account (e.g. balances, transactions).
Lists all owners for a given Account
Refreshes the data associated with a Financial Connections Account.
Subscribes to periodic refreshes of data associated with a Financial Connections Account. When the account status is active, data is typically refreshed once a day.
Unsubscribes from periodic refreshes of data associated with a Financial Connections Account.
To launch the Financial Connections authorization flow, create a Session. The session’s client_secret can be used to launch the flow using Stripe.js.
Retrieves the details of a Financial Connections Session
Returns a list of Financial Connections Transaction objects.
Retrieves the details of a Financial Connections Transaction
Lists all ForwardingRequest objects.
","operationId":"GetForwardingRequests","parameters":[{"name":"created","in":"query","description":"Similar to other List endpoints, filters results based on created timestamp. You can pass gt, gte, lt, and lte timestamp values.","required":false,"style":"deepObject","explode":true,"schema":{"title":"created_param","type":"object","properties":{"gt":{"type":"integer","description":"Return results where the `created` field is greater than this value."},"gte":{"type":"integer","description":"Return results where the `created` field is greater than or equal to this value."},"lt":{"type":"integer","description":"Return results where the `created` field is less than this value."},"lte":{"type":"integer","description":"Return results where the `created` field is less than or equal to this value."}},"x-stripeMostCommon":["gt","gte","lt","lte"]}},{"name":"ending_before","in":"query","description":"A pagination cursor to fetch the previous page of the list. The value must be a ForwardingRequest ID.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A pagination cursor to fetch the next page of the list. The value must be a ForwardingRequest ID.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"ForwardingRequestList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/forwarding.request"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"type":"string","description":"The URL where this list can be accessed."}},"description":"List of ForwardingRequest data.","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create a ForwardingRequest","description":"Creates a ForwardingRequest object.
","operationId":"PostForwardingRequests","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["payment_method","replacements","url"],"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"payment_method":{"maxLength":5000,"type":"string","description":"The PaymentMethod to insert into the forwarded request. Forwarding previously consumed PaymentMethods is allowed."},"replacements":{"type":"array","description":"The field kinds to be replaced in the forwarded request.","items":{"type":"string","enum":["card_cvc","card_expiry","card_number","cardholder_name","request_signature"],"x-stripeBypassValidation":true}},"request":{"title":"request_param","type":"object","properties":{"body":{"maxLength":5000,"type":"string","description":"The body payload to send to the destination endpoint."},"headers":{"type":"array","description":"The headers to include in the forwarded request. Can be omitted if no additional headers (excluding Stripe-generated ones such as the Content-Type header) should be included.","items":{"title":"header_param","required":["name","value"],"type":"object","properties":{"name":{"maxLength":5000,"type":"string","description":"The header name."},"value":{"maxLength":5000,"type":"string","description":"The header value."}},"x-stripeMostCommon":["name","value"]}}},"description":"The request body and headers to be sent to the destination endpoint.","x-stripeMostCommon":["body","headers"]},"url":{"maxLength":5000,"type":"string","description":"The destination URL for the forwarded request. Must be supported by the config."}},"additionalProperties":false,"x-stripeMostCommon":["metadata","payment_method","replacements","request","url"]},"encoding":{"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true},"replacements":{"style":"deepObject","explode":true},"request":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/forwarding.request"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/forwarding/requests/{id}":{"get":{"summary":"Retrieve a ForwardingRequest","description":"Retrieves a ForwardingRequest object.
","operationId":"GetForwardingRequestsId","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"id","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/forwarding.request"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/identity/verification_reports":{"get":{"summary":"List VerificationReports","description":"List all verification reports.
","operationId":"GetIdentityVerificationReports","parameters":[{"name":"client_reference_id","in":"query","description":"A string to reference this user. This can be a customer ID, a session ID, or similar, and can be used to reconcile this verification with your internal systems.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"created","in":"query","description":"Only return VerificationReports that were created during the given date interval.","required":false,"style":"deepObject","explode":true,"schema":{"anyOf":[{"title":"range_query_specs","type":"object","properties":{"gt":{"type":"integer","description":"Minimum value to filter by (exclusive)"},"gte":{"type":"integer","description":"Minimum value to filter by (inclusive)"},"lt":{"type":"integer","description":"Maximum value to filter by (exclusive)"},"lte":{"type":"integer","description":"Maximum value to filter by (inclusive)"}},"x-stripeMostCommon":["gt","gte","lt","lte"]},{"type":"integer"}]}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"type","in":"query","description":"Only return VerificationReports of this type","required":false,"style":"form","explode":true,"schema":{"type":"string","enum":["document","id_number"],"x-stripeBypassValidation":true}},{"name":"verification_session","in":"query","description":"Only return VerificationReports created by this VerificationSession ID. It is allowed to provide a VerificationIntent ID.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"GelatoVerificationReportList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/identity.verification_report"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/identity/verification_reports","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/identity/verification_reports/{report}":{"get":{"summary":"Retrieve a VerificationReport","description":"Retrieves an existing VerificationReport
","operationId":"GetIdentityVerificationReportsReport","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"report","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/identity.verification_report"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/identity/verification_sessions":{"get":{"summary":"List VerificationSessions","description":"Returns a list of VerificationSessions
","operationId":"GetIdentityVerificationSessions","parameters":[{"name":"client_reference_id","in":"query","description":"A string to reference this user. This can be a customer ID, a session ID, or similar, and can be used to reconcile this verification with your internal systems.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"created","in":"query","description":"Only return VerificationSessions that were created during the given date interval.","required":false,"style":"deepObject","explode":true,"schema":{"anyOf":[{"title":"range_query_specs","type":"object","properties":{"gt":{"type":"integer","description":"Minimum value to filter by (exclusive)"},"gte":{"type":"integer","description":"Minimum value to filter by (inclusive)"},"lt":{"type":"integer","description":"Maximum value to filter by (exclusive)"},"lte":{"type":"integer","description":"Maximum value to filter by (inclusive)"}},"x-stripeMostCommon":["gt","gte","lt","lte"]},{"type":"integer"}]}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"related_customer","in":"query","description":"Customer ID","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"related_customer_account","in":"query","description":"The ID of the Account representing a customer.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"status","in":"query","description":"Only return VerificationSessions with this status. [Learn more about the lifecycle of sessions](https://docs.stripe.com/identity/how-sessions-work).","required":false,"style":"form","explode":true,"schema":{"type":"string","enum":["canceled","processing","requires_input","verified"]}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"GelatoVerificationSessionList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/identity.verification_session"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/identity/verification_sessions","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create a VerificationSession","description":"Creates a VerificationSession object.
\n\nAfter the VerificationSession is created, display a verification modal using the session client_secret or send your users to the session’s url.
If your API key is in test mode, verification checks won’t actually process, though everything else will occur as if in live mode.
\n\nRelated guide: Verify your users’ identity documents
","operationId":"PostIdentityVerificationSessions","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"client_reference_id":{"maxLength":5000,"type":"string","description":"A string to reference this user. This can be a customer ID, a session ID, or similar, and can be used to reconcile this verification with your internal systems."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"options":{"title":"session_options_param","type":"object","properties":{"document":{"description":"Options that apply to the [document check](https://docs.stripe.com/identity/verification-checks?type=document).","anyOf":[{"title":"document_options","type":"object","properties":{"allowed_types":{"type":"array","description":"Array of strings of allowed identity document types. If the provided identity document isn’t one of the allowed types, the verification check will fail with a document_type_not_allowed error code.","items":{"type":"string","enum":["driving_license","id_card","passport"]}},"require_id_number":{"type":"boolean","description":"Collect an ID number and perform an [ID number check](https://docs.stripe.com/identity/verification-checks?type=id-number) with the document’s extracted name and date of birth."},"require_live_capture":{"type":"boolean","description":"Disable image uploads, identity document images have to be captured using the device’s camera."},"require_matching_selfie":{"type":"boolean","description":"Capture a face image and perform a [selfie check](https://docs.stripe.com/identity/verification-checks?type=selfie) comparing a photo ID and a picture of your user’s face. [Learn more](https://docs.stripe.com/identity/selfie)."}},"x-stripeMostCommon":["allowed_types","require_id_number","require_live_capture","require_matching_selfie"]},{"type":"string","enum":[""]}]}},"description":"A set of options for the session’s verification checks.","x-stripeMostCommon":["document","duplicate","email","matching","phone","phone_otp","phone_records"]},"provided_details":{"title":"provided_details_param","type":"object","properties":{"email":{"type":"string","description":"Email of user being verified"},"phone":{"type":"string","description":"Phone number of user being verified"}},"description":"Details provided about the user being verified. These details may be shown to the user.","x-stripeMostCommon":["address","dob","email","name","phone"]},"related_customer":{"maxLength":5000,"type":"string","description":"Customer ID"},"related_customer_account":{"maxLength":5000,"type":"string","description":"The ID of the Account representing a customer."},"related_person":{"title":"related_person_param","required":["account","person"],"type":"object","properties":{"account":{"maxLength":5000,"type":"string","description":"A token representing a connected account. If provided, the person parameter is also required and must be associated with the account."},"person":{"maxLength":5000,"type":"string","description":"A token referencing a Person resource that this verification is being used to verify."}},"description":"Tokens referencing a Person resource and it's associated account.","x-stripeMostCommon":["account","person"]},"return_url":{"type":"string","description":"The URL that the user will be redirected to upon completing the verification flow."},"type":{"type":"string","description":"The type of [verification check](https://docs.stripe.com/identity/verification-checks) to be performed. You must provide a `type` if not passing `verification_flow`.","enum":["document","id_number"],"x-stripeBypassValidation":true},"verification_flow":{"maxLength":5000,"type":"string","description":"The ID of a verification flow from the Dashboard. See https://docs.stripe.com/identity/verification-flows."}},"additionalProperties":false,"x-stripeMostCommon":["client_reference_id","metadata","options","provided_details","related_customer","related_customer_account","related_person","return_url","type","verification_flow"]},"encoding":{"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true},"options":{"style":"deepObject","explode":true},"provided_details":{"style":"deepObject","explode":true},"related_person":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/identity.verification_session"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/identity/verification_sessions/{session}":{"get":{"summary":"Retrieve a VerificationSession","description":"Retrieves the details of a VerificationSession that was previously created.
\n\nWhen the session status is requires_input, you can use this method to retrieve a valid\nclient_secret or url to allow re-submission.
Updates a VerificationSession object.
\n\nWhen the session status is requires_input, you can use this method to update the\nverification check and options.
A VerificationSession object can be canceled when it is in requires_input status.
Once canceled, future submission attempts are disabled. This cannot be undone. Learn more.
","operationId":"PostIdentityVerificationSessionsSessionCancel","parameters":[{"name":"session","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}}},"additionalProperties":false},"encoding":{"expand":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/identity.verification_session"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/identity/verification_sessions/{session}/redact":{"post":{"summary":"Redact a VerificationSession","description":"Redact a VerificationSession to remove all collected information from Stripe. This will redact\nthe VerificationSession and all objects related to it, including VerificationReports, Events,\nrequest logs, etc.
\n\nA VerificationSession object can be redacted when it is in requires_input or verified\nstatus. Redacting a VerificationSession in requires_action\nstate will automatically cancel it.
The redaction process may take up to four days. When the redaction process is in progress, the\nVerificationSession’s redaction.status field will be set to processing; when the process is\nfinished, it will change to redacted and an identity.verification_session.redacted event\nwill be emitted.
Redaction is irreversible. Redacted objects are still accessible in the Stripe API, but all the\nfields that contain personal data will be replaced by the string [redacted] or a similar\nplaceholder. The metadata field will also be erased. Redacted objects cannot be updated or\nused for any purpose.
When retrieving an invoice, there is an includable payments property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of payments.
","operationId":"GetInvoicePayments","parameters":[{"name":"created","in":"query","description":"Only return invoice payments that were created during the given date interval.","required":false,"style":"deepObject","explode":true,"schema":{"anyOf":[{"title":"range_query_specs","type":"object","properties":{"gt":{"type":"integer","description":"Minimum value to filter by (exclusive)"},"gte":{"type":"integer","description":"Minimum value to filter by (inclusive)"},"lt":{"type":"integer","description":"Maximum value to filter by (exclusive)"},"lte":{"type":"integer","description":"Maximum value to filter by (inclusive)"}},"x-stripeMostCommon":["gt","gte","lt","lte"]},{"type":"integer"}]}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"invoice","in":"query","description":"The identifier of the invoice whose payments to return.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"payment","in":"query","description":"The payment details of the invoice payments to return.","required":false,"style":"deepObject","explode":true,"schema":{"title":"payment_param","required":["type"],"type":"object","properties":{"payment_intent":{"maxLength":5000,"type":"string","description":"Only return invoice payments associated by this payment intent ID."},"payment_record":{"maxLength":5000,"type":"string","description":"Only return invoice payments associated by this payment record ID."},"type":{"type":"string","description":"Only return invoice payments associated by this payment type.","enum":["payment_intent","payment_record"]}},"x-stripeMostCommon":["payment_intent","payment_record","type"]}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"status","in":"query","description":"The status of the invoice payments to return.","required":false,"style":"form","explode":true,"schema":{"type":"string","enum":["canceled","open","paid"]}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"InvoicesPaymentsListInvoicePayments","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","description":"Details about each object.","items":{"$ref":"#/components/schemas/invoice_payment"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/invoice_payments/{invoice_payment}":{"get":{"summary":"Retrieve an InvoicePayment","description":"Retrieves the invoice payment with the given ID.
","operationId":"GetInvoicePaymentsInvoicePayment","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"invoice_payment","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/invoice_payment"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/invoice_rendering_templates":{"get":{"summary":"List all invoice rendering templates","description":"List all templates, ordered by creation date, with the most recently created template appearing first.
","operationId":"GetInvoiceRenderingTemplates","parameters":[{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"status","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string","enum":["active","archived"]}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"InvoiceRenderingTemplatesList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","description":"Details about each object.","items":{"$ref":"#/components/schemas/invoice_rendering_template"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/invoice_rendering_templates/{template}":{"get":{"summary":"Retrieve an invoice rendering template","description":"Retrieves an invoice rendering template with the given ID. It by default returns the latest version of the template. Optionally, specify a version to see previous versions.
","operationId":"GetInvoiceRenderingTemplatesTemplate","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"template","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"version","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"integer"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/invoice_rendering_template"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/invoice_rendering_templates/{template}/archive":{"post":{"summary":"Archive an invoice rendering template","description":"Updates the status of an invoice rendering template to ‘archived’ so no new Stripe objects (customers, invoices, etc.) can reference it. The template can also no longer be updated. However, if the template is already set on a Stripe object, it will continue to be applied on invoices generated by it.
","operationId":"PostInvoiceRenderingTemplatesTemplateArchive","parameters":[{"name":"template","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}}},"additionalProperties":false},"encoding":{"expand":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/invoice_rendering_template"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/invoice_rendering_templates/{template}/unarchive":{"post":{"summary":"Unarchive an invoice rendering template","description":"Unarchive an invoice rendering template so it can be used on new Stripe objects again.
","operationId":"PostInvoiceRenderingTemplatesTemplateUnarchive","parameters":[{"name":"template","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}}},"additionalProperties":false},"encoding":{"expand":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/invoice_rendering_template"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/invoiceitems":{"get":{"summary":"List all invoice items","description":"Returns a list of your invoice items. Invoice items are returned sorted by creation date, with the most recently created invoice items appearing first.
","operationId":"GetInvoiceitems","parameters":[{"name":"created","in":"query","description":"Only return invoice items that were created during the given date interval.","required":false,"style":"deepObject","explode":true,"schema":{"anyOf":[{"title":"range_query_specs","type":"object","properties":{"gt":{"type":"integer","description":"Minimum value to filter by (exclusive)"},"gte":{"type":"integer","description":"Minimum value to filter by (inclusive)"},"lt":{"type":"integer","description":"Maximum value to filter by (exclusive)"},"lte":{"type":"integer","description":"Maximum value to filter by (inclusive)"}},"x-stripeMostCommon":["gt","gte","lt","lte"]},{"type":"integer"}]}},{"name":"customer","in":"query","description":"The identifier of the customer whose invoice items to return. If none is provided, returns all invoice items.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"customer_account","in":"query","description":"The identifier of the account representing the customer whose invoice items to return. If none is provided, returns all invoice items.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"invoice","in":"query","description":"Only return invoice items belonging to this invoice. If none is provided, all invoice items will be returned. If specifying an invoice, no customer identifier is needed.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"pending","in":"query","description":"Set to `true` to only show pending invoice items, which are not yet attached to any invoices. Set to `false` to only show invoice items already attached to invoices. If unspecified, no filter is applied.","required":false,"style":"form","explode":true,"schema":{"type":"boolean"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"InvoicesItemsList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/invoiceitem"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/invoiceitems","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create an invoice item","description":"Creates an item to be added to a draft invoice (up to 250 items per invoice). If no invoice is specified, the item will be on the next invoice created for the customer specified.
","operationId":"PostInvoiceitems","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"amount":{"type":"integer","description":"The integer amount in cents (or local equivalent) of the charge to be applied to the upcoming invoice. Passing in a negative `amount` will reduce the `amount_due` on the invoice."},"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"customer":{"maxLength":5000,"type":"string","description":"The ID of the customer to bill for this invoice item."},"customer_account":{"maxLength":5000,"type":"string","description":"The ID of the account representing the customer to bill for this invoice item."},"description":{"maxLength":5000,"type":"string","description":"An arbitrary string which you can attach to the invoice item. The description is displayed in the invoice for easy tracking."},"discountable":{"type":"boolean","description":"Controls whether discounts apply to this invoice item. Defaults to false for prorations or negative invoice items, and true for all other invoice items."},"discounts":{"description":"The coupons and promotion codes to redeem into discounts for the invoice item or invoice line item.","anyOf":[{"type":"array","items":{"title":"discounts_data_param","type":"object","properties":{"coupon":{"maxLength":5000,"type":"string","description":"ID of the coupon to create a new discount for."},"discount":{"maxLength":5000,"type":"string","description":"ID of an existing discount on the object (or one of its ancestors) to reuse."},"promotion_code":{"maxLength":5000,"type":"string","description":"ID of the promotion code to create a new discount for."}},"x-stripeMostCommon":["coupon"]}},{"type":"string","enum":[""]}]},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"invoice":{"maxLength":5000,"type":"string","description":"The ID of an existing invoice to add this invoice item to. For subscription invoices, when left blank, the invoice item will be added to the next upcoming scheduled invoice. For standalone invoices, the invoice item won't be automatically added unless you pass `pending_invoice_item_behavior: 'include'` when creating the invoice. This is useful when adding invoice items in response to an invoice.created webhook. You can only add invoice items to draft invoices and there is a maximum of 250 items per invoice."},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"period":{"title":"period","required":["end","start"],"type":"object","properties":{"end":{"type":"integer","description":"The end of the period, which must be greater than or equal to the start. This value is inclusive.","format":"unix-time"},"start":{"type":"integer","description":"The start of the period. This value is inclusive.","format":"unix-time"}},"description":"The period associated with this invoice item. When set to different values, the period will be rendered on the invoice. If you have [Stripe Revenue Recognition](https://docs.stripe.com/revenue-recognition) enabled, the period will be used to recognize and defer revenue. See the [Revenue Recognition documentation](https://docs.stripe.com/revenue-recognition/methodology/subscriptions-and-invoicing) for details.","x-stripeMostCommon":["end","start"]},"price_data":{"title":"one_time_price_data","required":["currency","product"],"type":"object","properties":{"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"product":{"maxLength":5000,"type":"string","description":"The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to."},"tax_behavior":{"type":"string","description":"Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.","enum":["exclusive","inclusive","unspecified"]},"unit_amount":{"type":"integer","description":"A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge."},"unit_amount_decimal":{"type":"string","description":"Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.","format":"decimal"}},"description":"Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline.","x-stripeMostCommon":["currency","product","unit_amount"]},"pricing":{"title":"pricing_param","type":"object","properties":{"price":{"maxLength":5000,"type":"string","description":"The ID of the price object."}},"description":"The pricing information for the invoice item.","x-stripeMostCommon":["price"]},"quantity":{"type":"integer","description":"Non-negative integer. The quantity of units for the invoice item. Use `quantity_decimal` instead to provide decimal precision. This field will be deprecated in favor of `quantity_decimal` in a future version."},"quantity_decimal":{"type":"string","description":"Non-negative decimal with at most 12 decimal places. The quantity of units for the invoice item.","format":"decimal"},"subscription":{"maxLength":5000,"type":"string","description":"The ID of a subscription to add this invoice item to. When left blank, the invoice item is added to the next upcoming scheduled invoice. When set, scheduled invoices for subscriptions other than the specified subscription will ignore the invoice item. Use this when you want to express that an invoice item has been accrued within the context of a particular subscription."},"tax_behavior":{"type":"string","description":"Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.","enum":["exclusive","inclusive","unspecified"]},"tax_code":{"description":"A [tax code](https://docs.stripe.com/tax/tax-categories) ID.","anyOf":[{"type":"string"},{"type":"string","enum":[""]}]},"tax_rates":{"type":"array","description":"The tax rates which apply to the invoice item. When set, the `default_tax_rates` on the invoice do not apply to this invoice item.","items":{"maxLength":5000,"type":"string"}},"unit_amount_decimal":{"type":"string","description":"The decimal unit amount in cents (or local equivalent) of the charge to be applied to the upcoming invoice. This `unit_amount_decimal` will be multiplied by the quantity to get the full amount. Passing in a negative `unit_amount_decimal` will reduce the `amount_due` on the invoice. Accepts at most 12 decimal places.","format":"decimal"}},"additionalProperties":false,"x-stripeMostCommon":["amount","currency","customer","customer_account","description","metadata","period","pricing"]},"encoding":{"discounts":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true},"period":{"style":"deepObject","explode":true},"price_data":{"style":"deepObject","explode":true},"pricing":{"style":"deepObject","explode":true},"tax_code":{"style":"deepObject","explode":true},"tax_rates":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/invoiceitem"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/invoiceitems/{invoiceitem}":{"get":{"summary":"Retrieve an invoice item","description":"Retrieves the invoice item with the given ID.
","operationId":"GetInvoiceitemsInvoiceitem","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"invoiceitem","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/invoiceitem"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Update an invoice item","description":"Updates the amount or description of an invoice item on an upcoming invoice. Updating an invoice item is only possible before the invoice it’s attached to is closed.
","operationId":"PostInvoiceitemsInvoiceitem","parameters":[{"name":"invoiceitem","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"amount":{"type":"integer","description":"The integer amount in cents (or local equivalent) of the charge to be applied to the upcoming invoice. If you want to apply a credit to the customer's account, pass a negative amount."},"description":{"maxLength":5000,"type":"string","description":"An arbitrary string which you can attach to the invoice item. The description is displayed in the invoice for easy tracking."},"discountable":{"type":"boolean","description":"Controls whether discounts apply to this invoice item. Defaults to false for prorations or negative invoice items, and true for all other invoice items. Cannot be set to true for prorations."},"discounts":{"description":"The coupons, promotion codes & existing discounts which apply to the invoice item or invoice line item. Item discounts are applied before invoice discounts. Pass an empty string to remove previously-defined discounts.","anyOf":[{"type":"array","items":{"title":"discounts_data_param","type":"object","properties":{"coupon":{"maxLength":5000,"type":"string","description":"ID of the coupon to create a new discount for."},"discount":{"maxLength":5000,"type":"string","description":"ID of an existing discount on the object (or one of its ancestors) to reuse."},"promotion_code":{"maxLength":5000,"type":"string","description":"ID of the promotion code to create a new discount for."}},"x-stripeMostCommon":["coupon"]}},{"type":"string","enum":[""]}]},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"period":{"title":"period","required":["end","start"],"type":"object","properties":{"end":{"type":"integer","description":"The end of the period, which must be greater than or equal to the start. This value is inclusive.","format":"unix-time"},"start":{"type":"integer","description":"The start of the period. This value is inclusive.","format":"unix-time"}},"description":"The period associated with this invoice item. When set to different values, the period will be rendered on the invoice. If you have [Stripe Revenue Recognition](https://docs.stripe.com/revenue-recognition) enabled, the period will be used to recognize and defer revenue. See the [Revenue Recognition documentation](https://docs.stripe.com/revenue-recognition/methodology/subscriptions-and-invoicing) for details.","x-stripeMostCommon":["end","start"]},"price_data":{"title":"one_time_price_data","required":["currency","product"],"type":"object","properties":{"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"product":{"maxLength":5000,"type":"string","description":"The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to."},"tax_behavior":{"type":"string","description":"Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.","enum":["exclusive","inclusive","unspecified"]},"unit_amount":{"type":"integer","description":"A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge."},"unit_amount_decimal":{"type":"string","description":"Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.","format":"decimal"}},"description":"Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline.","x-stripeMostCommon":["currency","product","unit_amount"]},"pricing":{"title":"pricing_param","type":"object","properties":{"price":{"maxLength":5000,"type":"string","description":"The ID of the price object."}},"description":"The pricing information for the invoice item.","x-stripeMostCommon":["price"]},"quantity":{"type":"integer","description":"Non-negative integer. The quantity of units for the invoice item. Use `quantity_decimal` instead to provide decimal precision. This field will be deprecated in favor of `quantity_decimal` in a future version."},"quantity_decimal":{"type":"string","description":"Non-negative decimal with at most 12 decimal places. The quantity of units for the line item.","format":"decimal"},"tax_behavior":{"type":"string","description":"Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.","enum":["exclusive","inclusive","unspecified"]},"tax_code":{"description":"A [tax code](https://docs.stripe.com/tax/tax-categories) ID.","anyOf":[{"type":"string"},{"type":"string","enum":[""]}]},"tax_rates":{"description":"The tax rates which apply to the invoice item. When set, the `default_tax_rates` on the invoice do not apply to this invoice item. Pass an empty string to remove previously-defined tax rates.","anyOf":[{"type":"array","items":{"maxLength":5000,"type":"string"}},{"type":"string","enum":[""]}]},"unit_amount_decimal":{"type":"string","description":"The decimal unit amount in cents (or local equivalent) of the charge to be applied to the upcoming invoice. This `unit_amount_decimal` will be multiplied by the quantity to get the full amount. Passing in a negative `unit_amount_decimal` will reduce the `amount_due` on the invoice. Accepts at most 12 decimal places.","format":"decimal"}},"additionalProperties":false,"x-stripeMostCommon":["amount","description","metadata","period","pricing"]},"encoding":{"discounts":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true},"period":{"style":"deepObject","explode":true},"price_data":{"style":"deepObject","explode":true},"pricing":{"style":"deepObject","explode":true},"tax_code":{"style":"deepObject","explode":true},"tax_rates":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/invoiceitem"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"delete":{"summary":"Delete an invoice item","description":"Deletes an invoice item, removing it from an invoice. Deleting invoice items is only possible when they’re not attached to invoices, or if it’s attached to a draft invoice.
","operationId":"DeleteInvoiceitemsInvoiceitem","parameters":[{"name":"invoiceitem","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/deleted_invoiceitem"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/invoices":{"get":{"summary":"List all invoices","description":"You can list all invoices, or list the invoices for a specific customer. The invoices are returned sorted by creation date, with the most recently created invoices appearing first.
","operationId":"GetInvoices","parameters":[{"name":"collection_method","in":"query","description":"The collection method of the invoice to retrieve. Either `charge_automatically` or `send_invoice`.","required":false,"style":"form","explode":true,"schema":{"type":"string","enum":["charge_automatically","send_invoice"]}},{"name":"created","in":"query","description":"Only return invoices that were created during the given date interval.","required":false,"style":"deepObject","explode":true,"schema":{"anyOf":[{"title":"range_query_specs","type":"object","properties":{"gt":{"type":"integer","description":"Minimum value to filter by (exclusive)"},"gte":{"type":"integer","description":"Minimum value to filter by (inclusive)"},"lt":{"type":"integer","description":"Maximum value to filter by (exclusive)"},"lte":{"type":"integer","description":"Maximum value to filter by (inclusive)"}},"x-stripeMostCommon":["gt","gte","lt","lte"]},{"type":"integer"}]}},{"name":"customer","in":"query","description":"Only return invoices for the customer specified by this customer ID.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"customer_account","in":"query","description":"Only return invoices for the account representing the customer specified by this account ID.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"due_date","in":"query","required":false,"style":"deepObject","explode":true,"schema":{"anyOf":[{"title":"range_query_specs","type":"object","properties":{"gt":{"type":"integer","description":"Minimum value to filter by (exclusive)"},"gte":{"type":"integer","description":"Minimum value to filter by (inclusive)"},"lt":{"type":"integer","description":"Maximum value to filter by (exclusive)"},"lte":{"type":"integer","description":"Maximum value to filter by (inclusive)"}},"x-stripeMostCommon":["gt","gte","lt","lte"]},{"type":"integer"}]}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"status","in":"query","description":"The status of the invoice, one of `draft`, `open`, `paid`, `uncollectible`, or `void`. [Learn more](https://docs.stripe.com/billing/invoices/workflow#workflow-overview)","required":false,"style":"form","explode":true,"schema":{"type":"string","enum":["draft","open","paid","uncollectible","void"]}},{"name":"subscription","in":"query","description":"Only return invoices for the subscription specified by this subscription ID.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"InvoicesResourceList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/invoice"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/invoices","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create an invoice","description":"This endpoint creates a draft invoice for a given customer. The invoice remains a draft until you finalize the invoice, which allows you to pay or send the invoice to your customers.
","operationId":"PostInvoices","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"account_tax_ids":{"description":"The account tax IDs associated with the invoice. Only editable when the invoice is a draft.","anyOf":[{"type":"array","items":{"maxLength":5000,"type":"string"}},{"type":"string","enum":[""]}]},"application_fee_amount":{"type":"integer","description":"A fee in cents (or local equivalent) that will be applied to the invoice and transferred to the application owner's Stripe account. The request must be made with an OAuth key or the Stripe-Account header in order to take an application fee. For more information, see the application fees [documentation](https://docs.stripe.com/billing/invoices/connect#collecting-fees)."},"auto_advance":{"type":"boolean","description":"Controls whether Stripe performs [automatic collection](https://docs.stripe.com/invoicing/integration/automatic-advancement-collection) of the invoice. If `false`, the invoice's state doesn't automatically advance without an explicit action. Defaults to false."},"automatic_tax":{"title":"automatic_tax_param","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether Stripe automatically computes tax on this invoice. Note that incompatible invoice items (invoice items with manually specified [tax rates](https://docs.stripe.com/api/tax_rates), negative amounts, or `tax_behavior=unspecified`) cannot be added to automatic tax invoices."},"liability":{"title":"param","required":["type"],"type":"object","properties":{"account":{"type":"string","description":"The connected account being referenced when `type` is `account`."},"type":{"type":"string","description":"Type of the account referenced in the request.","enum":["account","self"],"x-stripeBypassValidation":true}},"description":"The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.","x-stripeMostCommon":["account","type"]}},"description":"Settings for automatic tax lookup for this invoice.","x-stripeMostCommon":["enabled","liability"]},"automatically_finalizes_at":{"type":"integer","description":"The time when this invoice should be scheduled to finalize (up to 5 years in the future). The invoice is finalized at this time if it's still in draft state.","format":"unix-time"},"collection_method":{"type":"string","description":"Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay this invoice using the default source attached to the customer. When sending an invoice, Stripe will email this invoice to the customer with payment instructions. Defaults to `charge_automatically`.","enum":["charge_automatically","send_invoice"]},"currency":{"type":"string","description":"The currency to create this invoice in. Defaults to that of `customer` if not specified.","format":"currency"},"custom_fields":{"description":"A list of up to 4 custom fields to be displayed on the invoice.","anyOf":[{"type":"array","items":{"title":"custom_field_params","required":["name","value"],"type":"object","properties":{"name":{"maxLength":40,"type":"string","description":"The name of the custom field. This may be up to 40 characters."},"value":{"maxLength":140,"type":"string","description":"The value of the custom field. This may be up to 140 characters."}},"x-stripeMostCommon":["name","value"]}},{"type":"string","enum":[""]}]},"customer":{"maxLength":5000,"type":"string","description":"The ID of the customer to bill."},"customer_account":{"maxLength":5000,"type":"string","description":"The ID of the account to bill."},"days_until_due":{"type":"integer","description":"The number of days from when the invoice is created until it is due. Valid only for invoices where `collection_method=send_invoice`."},"default_payment_method":{"maxLength":5000,"type":"string","description":"ID of the default payment method for the invoice. It must belong to the customer associated with the invoice. If not set, defaults to the subscription's default payment method, if any, or to the default payment method in the customer's invoice settings."},"default_source":{"maxLength":5000,"type":"string","description":"ID of the default payment source for the invoice. It must belong to the customer associated with the invoice and be in a chargeable state. If not set, defaults to the subscription's default source, if any, or to the customer's default source."},"default_tax_rates":{"type":"array","description":"The tax rates that will apply to any line item that does not have `tax_rates` set.","items":{"maxLength":5000,"type":"string"}},"description":{"maxLength":1500,"type":"string","description":"An arbitrary string attached to the object. Often useful for displaying to users. Referenced as 'memo' in the Dashboard."},"discounts":{"description":"The coupons and promotion codes to redeem into discounts for the invoice. If not specified, inherits the discount from the invoice's customer. Pass an empty string to avoid inheriting any discounts.","anyOf":[{"type":"array","items":{"title":"discounts_data_param","type":"object","properties":{"coupon":{"maxLength":5000,"type":"string","description":"ID of the coupon to create a new discount for."},"discount":{"maxLength":5000,"type":"string","description":"ID of an existing discount on the object (or one of its ancestors) to reuse."},"promotion_code":{"maxLength":5000,"type":"string","description":"ID of the promotion code to create a new discount for."}},"x-stripeMostCommon":["coupon"]}},{"type":"string","enum":[""]}]},"due_date":{"type":"integer","description":"The date on which payment for this invoice is due. Valid only for invoices where `collection_method=send_invoice`.","format":"unix-time"},"effective_at":{"type":"integer","description":"The date when this invoice is in effect. Same as `finalized_at` unless overwritten. When defined, this value replaces the system-generated 'Date of issue' printed on the invoice PDF and receipt.","format":"unix-time"},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"footer":{"maxLength":5000,"type":"string","description":"Footer to be displayed on the invoice."},"from_invoice":{"title":"from_invoice","required":["action","invoice"],"type":"object","properties":{"action":{"maxLength":5000,"type":"string","description":"The relation between the new invoice and the original invoice. Currently, only 'revision' is permitted","enum":["revision"]},"invoice":{"maxLength":5000,"type":"string","description":"The `id` of the invoice that will be cloned."}},"description":"Revise an existing invoice. The new invoice will be created in `status=draft`. See the [revision documentation](https://docs.stripe.com/invoicing/invoice-revisions) for more details.","x-stripeMostCommon":["action","invoice"]},"issuer":{"title":"param","required":["type"],"type":"object","properties":{"account":{"type":"string","description":"The connected account being referenced when `type` is `account`."},"type":{"type":"string","description":"Type of the account referenced in the request.","enum":["account","self"],"x-stripeBypassValidation":true}},"description":"The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.","x-stripeMostCommon":["account","type"]},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"number":{"maxLength":26,"type":"string","description":"Set the number for this invoice. If no number is present then a number will be assigned automatically when the invoice is finalized. In many markets, regulations require invoices to be unique, sequential and / or gapless. You are responsible for ensuring this is true across all your different invoicing systems in the event that you edit the invoice number using our API. If you use only Stripe for your invoices and do not change invoice numbers, Stripe handles this aspect of compliance for you automatically."},"on_behalf_of":{"type":"string","description":"The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the [Invoices with Connect](https://docs.stripe.com/billing/invoices/connect) documentation for details."},"payment_settings":{"title":"payment_settings","type":"object","properties":{"default_mandate":{"description":"ID of the mandate to be used for this invoice. It must correspond to the payment method used to pay the invoice, including the invoice's default_payment_method or default_source, if set.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]},"payment_method_options":{"title":"payment_method_options","type":"object","properties":{"acss_debit":{"description":"If paying by `acss_debit`, this sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to the invoice’s PaymentIntent.","anyOf":[{"title":"invoice_payment_method_options_param","type":"object","properties":{"mandate_options":{"title":"mandate_options_param","type":"object","properties":{"transaction_type":{"type":"string","description":"Transaction type of the mandate.","enum":["business","personal"]}},"description":"Additional fields for Mandate creation","x-stripeMostCommon":["transaction_type"]},"verification_method":{"type":"string","description":"Verification method for the intent","enum":["automatic","instant","microdeposits"],"x-stripeBypassValidation":true}},"x-stripeMostCommon":["mandate_options","verification_method"]},{"type":"string","enum":[""]}]},"bancontact":{"description":"If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice’s PaymentIntent.","anyOf":[{"title":"invoice_payment_method_options_param","type":"object","properties":{"preferred_language":{"type":"string","description":"Preferred language of the Bancontact authorization page that the customer is redirected to.","enum":["de","en","fr","nl"]}},"x-stripeMostCommon":["preferred_language"]},{"type":"string","enum":[""]}]},"card":{"description":"If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice’s PaymentIntent.","anyOf":[{"title":"invoice_payment_method_options_param","type":"object","properties":{"installments":{"title":"installments_param","type":"object","properties":{"enabled":{"type":"boolean","description":"Setting to true enables installments for this invoice.\nSetting to false will prevent any selected plan from applying to a payment."},"plan":{"description":"The selected installment plan to use for this invoice.","anyOf":[{"title":"installment_plan","required":["type"],"type":"object","properties":{"count":{"type":"integer","description":"For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card."},"interval":{"type":"string","description":"For `fixed_count` installment plans, this is required. It represents the interval between installment payments your customer will make to their credit card.\nOne of `month`.","enum":["month"]},"type":{"type":"string","description":"Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`.","enum":["bonus","fixed_count","revolving"]}},"x-stripeMostCommon":["count","interval","type"]},{"type":"string","enum":[""]}]}},"description":"Installment configuration for payments attempted on this invoice.\n\nFor more information, see the [installments integration guide](https://docs.stripe.com/payments/installments).","x-stripeMostCommon":["enabled","plan"]},"request_three_d_secure":{"type":"string","description":"We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.","enum":["any","automatic","challenge"]}},"x-stripeMostCommon":["installments","request_three_d_secure"]},{"type":"string","enum":[""]}]},"customer_balance":{"description":"If paying by `customer_balance`, this sub-hash contains details about the Bank transfer payment method options to pass to the invoice’s PaymentIntent.","anyOf":[{"title":"invoice_payment_method_options_param","type":"object","properties":{"bank_transfer":{"title":"bank_transfer_param","type":"object","properties":{"eu_bank_transfer":{"title":"eu_bank_transfer_param","required":["country"],"type":"object","properties":{"country":{"maxLength":5000,"type":"string","description":"The desired country code of the bank account information. Permitted values include: `DE`, `FR`, `IE`, or `NL`."}},"description":"Configuration for eu_bank_transfer funding type.","x-stripeMostCommon":["country"]},"type":{"type":"string","description":"The bank transfer type that can be used for funding. Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`."}},"description":"Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.","x-stripeMostCommon":["eu_bank_transfer","id_bank_transfer","type"]},"funding_type":{"type":"string","description":"The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`."}},"x-stripeMostCommon":["bank_transfer","funding_type"]},{"type":"string","enum":[""]}]},"konbini":{"description":"If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice’s PaymentIntent.","anyOf":[{"title":"invoice_payment_method_options_param","type":"object","properties":{}},{"type":"string","enum":[""]}]},"payto":{"description":"If paying by `payto`, this sub-hash contains details about the PayTo payment method options to pass to the invoice’s PaymentIntent.","anyOf":[{"title":"invoice_payment_method_options_param","type":"object","properties":{"mandate_options":{"title":"mandate_options_param","type":"object","properties":{"amount":{"type":"integer","description":"The maximum amount that can be collected in a single invoice. If you don't specify a maximum, then there is no limit."},"purpose":{"type":"string","description":"The purpose for which payments are made. Has a default value based on your merchant category code.","enum":["dependant_support","government","loan","mortgage","other","pension","personal","retail","salary","tax","utility"]}},"description":"Additional fields for Mandate creation.","x-stripeMostCommon":["amount","purpose"]}},"x-stripeMostCommon":["mandate_options"]},{"type":"string","enum":[""]}]},"sepa_debit":{"description":"If paying by `sepa_debit`, this sub-hash contains details about the SEPA Direct Debit payment method options to pass to the invoice’s PaymentIntent.","anyOf":[{"title":"invoice_payment_method_options_param","type":"object","properties":{},"x-stripeMostCommon":["verification_method"]},{"type":"string","enum":[""]}]},"us_bank_account":{"description":"If paying by `us_bank_account`, this sub-hash contains details about the ACH direct debit payment method options to pass to the invoice’s PaymentIntent.","anyOf":[{"title":"invoice_payment_method_options_param","type":"object","properties":{"financial_connections":{"title":"invoice_linked_account_options_param","type":"object","properties":{"filters":{"title":"invoice_linked_account_options_filters_param","type":"object","properties":{"account_subcategories":{"type":"array","description":"The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.","items":{"type":"string","enum":["checking","savings"]}}},"description":"Provide filters for the linked accounts that the customer can select for the payment method.","x-stripeMostCommon":["account_subcategories","institution"]},"permissions":{"type":"array","description":"The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.","items":{"maxLength":5000,"type":"string","enum":["balances","ownership","payment_method","transactions"],"x-stripeBypassValidation":true}},"prefetch":{"type":"array","description":"List of data features that you would like to retrieve upon account creation.","items":{"type":"string","enum":["balances","ownership","transactions"],"x-stripeBypassValidation":true}}},"description":"Additional fields for Financial Connections Session creation","x-stripeMostCommon":["filters","permissions","prefetch"]},"verification_method":{"type":"string","description":"Verification method for the intent","enum":["automatic","instant","microdeposits"],"x-stripeBypassValidation":true}},"x-stripeMostCommon":["financial_connections","verification_method"]},{"type":"string","enum":[""]}]}},"description":"Payment-method-specific configuration to provide to the invoice’s PaymentIntent.","x-stripeMostCommon":["acss_debit","bancontact","card","customer_balance","id_bank_transfer","konbini","payto","pix","sepa_debit","upi","us_bank_account"]},"payment_method_types":{"description":"The list of payment method types (e.g. card) to provide to the invoice’s PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice’s default payment method, the subscription’s default payment method, the customer’s default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice).","anyOf":[{"type":"array","items":{"type":"string","enum":["ach_credit_transfer","ach_debit","acss_debit","affirm","amazon_pay","au_becs_debit","bacs_debit","bancontact","boleto","card","cashapp","crypto","custom","customer_balance","eps","fpx","giropay","grabpay","ideal","jp_credit_transfer","kakao_pay","klarna","konbini","kr_card","link","multibanco","naver_pay","nz_bank_account","p24","pay_by_bank","payco","paynow","paypal","payto","promptpay","revolut_pay","sepa_credit_transfer","sepa_debit","sofort","swish","us_bank_account","wechat_pay"],"x-stripeBypassValidation":true}},{"type":"string","enum":[""]}]}},"description":"Configuration settings for the PaymentIntent that is generated when the invoice is finalized.","x-stripeMostCommon":["default_mandate","payment_method_configuration","payment_method_options","payment_method_types"]},"pending_invoice_items_behavior":{"type":"string","description":"How to handle pending invoice items on invoice creation. Defaults to `exclude` if the parameter is omitted.","enum":["exclude","include"],"x-stripeBypassValidation":true},"rendering":{"title":"rendering_param","type":"object","properties":{"amount_tax_display":{"type":"string","description":"How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.","enum":["","exclude_tax","include_inclusive_tax"]},"pdf":{"title":"rendering_pdf_param","type":"object","properties":{"page_size":{"type":"string","description":"Page size for invoice PDF. Can be set to `a4`, `letter`, or `auto`.\n If set to `auto`, invoice PDF page size defaults to `a4` for customers with\n Japanese locale and `letter` for customers with other locales.","enum":["a4","auto","letter"]}},"description":"Invoice pdf rendering options","x-stripeMostCommon":["page_size"]},"template":{"maxLength":5000,"type":"string","description":"ID of the invoice rendering template to use for this invoice."},"template_version":{"description":"The specific version of invoice rendering template to use for this invoice.","anyOf":[{"type":"integer"},{"type":"string","enum":[""]}]}},"description":"The rendering-related settings that control how the invoice is displayed on customer-facing surfaces such as PDF and Hosted Invoice Page.","x-stripeMostCommon":["amount_tax_display","custom_text","invoice_title","pdf","summary_items_data","template","template_version"]},"shipping_cost":{"title":"shipping_cost","type":"object","properties":{"shipping_rate":{"maxLength":5000,"type":"string","description":"The ID of the shipping rate to use for this order."},"shipping_rate_data":{"title":"method_params","required":["display_name"],"type":"object","properties":{"delivery_estimate":{"title":"delivery_estimate","type":"object","properties":{"maximum":{"title":"delivery_estimate_bound","required":["unit","value"],"type":"object","properties":{"unit":{"type":"string","description":"A unit of time.","enum":["business_day","day","hour","month","week"]},"value":{"type":"integer","description":"Must be greater than 0."}},"description":"The upper bound of the estimated range. If empty, represents no upper bound i.e., infinite.","x-stripeMostCommon":["unit","value"]},"minimum":{"title":"delivery_estimate_bound","required":["unit","value"],"type":"object","properties":{"unit":{"type":"string","description":"A unit of time.","enum":["business_day","day","hour","month","week"]},"value":{"type":"integer","description":"Must be greater than 0."}},"description":"The lower bound of the estimated range. If empty, represents no lower bound.","x-stripeMostCommon":["unit","value"]}},"description":"The estimated range for how long shipping will take, meant to be displayable to the customer. This will appear on CheckoutSessions.","x-stripeMostCommon":["maximum","minimum"]},"display_name":{"maxLength":100,"type":"string","description":"The name of the shipping rate, meant to be displayable to the customer. This will appear on CheckoutSessions."},"fixed_amount":{"title":"fixed_amount","required":["amount","currency"],"type":"object","properties":{"amount":{"type":"integer","description":"A non-negative integer in cents representing how much to charge."},"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"currency_options":{"type":"object","additionalProperties":{"title":"currency_option","required":["amount"],"type":"object","properties":{"amount":{"type":"integer","description":"A non-negative integer in cents representing how much to charge."},"tax_behavior":{"type":"string","description":"Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.","enum":["exclusive","inclusive","unspecified"]}},"x-stripeMostCommon":["amount","tax_behavior"]},"description":"Shipping rates defined in each available currency option. Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies)."}},"description":"Describes a fixed amount to charge for shipping. Must be present if type is `fixed_amount`.","x-stripeMostCommon":["amount","currency","currency_options"]},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"tax_behavior":{"type":"string","description":"Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.","enum":["exclusive","inclusive","unspecified"]},"tax_code":{"type":"string","description":"A [tax code](https://docs.stripe.com/tax/tax-categories) ID. The Shipping tax code is `txcd_92010001`."},"type":{"type":"string","description":"The type of calculation to use on the shipping rate.","enum":["fixed_amount"]}},"description":"Parameters to create a new ad-hoc shipping rate for this order.","x-stripeMostCommon":["display_name","fixed_amount","metadata","tax_behavior","tax_code","type"]}},"description":"Settings for the cost of shipping for this invoice.","x-stripeMostCommon":["shipping_rate","shipping_rate_data"]},"shipping_details":{"title":"recipient_shipping_with_optional_fields_address","required":["address","name"],"type":"object","properties":{"address":{"title":"optional_fields_address","type":"object","properties":{"city":{"maxLength":5000,"type":"string","description":"City, district, suburb, town, or village."},"country":{"maxLength":5000,"type":"string","description":"Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."},"line1":{"maxLength":5000,"type":"string","description":"Address line 1, such as the street, PO Box, or company name."},"line2":{"maxLength":5000,"type":"string","description":"Address line 2, such as the apartment, suite, unit, or building."},"postal_code":{"maxLength":5000,"type":"string","description":"ZIP or postal code."},"state":{"maxLength":5000,"type":"string","description":"State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))."}},"description":"Shipping address","x-stripeMostCommon":["city","country","line1","line2","postal_code","state"]},"name":{"maxLength":5000,"type":"string","description":"Recipient name."},"phone":{"description":"Recipient phone (including extension)","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]}},"description":"Shipping details for the invoice. The Invoice PDF will use the `shipping_details` value if it is set, otherwise the PDF will render the shipping address from the customer.","x-stripeMostCommon":["address","name","phone"]},"statement_descriptor":{"maxLength":22,"type":"string","description":"Extra information about a charge for the customer's credit card statement. It must contain at least one letter. If not specified and this invoice is part of a subscription, the default `statement_descriptor` will be set to the first subscription item's product's `statement_descriptor`."},"subscription":{"maxLength":5000,"type":"string","description":"The ID of the subscription to invoice, if any. If set, the created invoice will only include pending invoice items for that subscription. The subscription's billing cycle and regular subscription events won't be affected."},"transfer_data":{"title":"transfer_data_specs","required":["destination"],"type":"object","properties":{"amount":{"type":"integer","description":"The amount that will be transferred automatically when the invoice is paid. If no amount is set, the full amount is transferred."},"destination":{"type":"string","description":"ID of an existing, connected Stripe account."}},"description":"If specified, the funds from the invoice will be transferred to the destination and the ID of the resulting transfer will be found on the invoice's charge.","x-stripeMostCommon":["amount","destination"]}},"additionalProperties":false,"x-stripeMostCommon":["auto_advance","automatic_tax","collection_method","customer","customer_account","description","metadata","subscription"]},"encoding":{"account_tax_ids":{"style":"deepObject","explode":true},"automatic_tax":{"style":"deepObject","explode":true},"custom_fields":{"style":"deepObject","explode":true},"default_tax_rates":{"style":"deepObject","explode":true},"discounts":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"from_invoice":{"style":"deepObject","explode":true},"issuer":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true},"payment_settings":{"style":"deepObject","explode":true},"rendering":{"style":"deepObject","explode":true},"shipping_cost":{"style":"deepObject","explode":true},"shipping_details":{"style":"deepObject","explode":true},"transfer_data":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/invoice"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/invoices/create_preview":{"post":{"summary":"Create a preview invoice","description":"At any time, you can preview the upcoming invoice for a subscription or subscription schedule. This will show you all the charges that are pending, including subscription renewal charges, invoice item charges, etc. It will also show you any discounts that are applicable to the invoice.
\n\nYou can also preview the effects of creating or updating a subscription or subscription schedule, including a preview of any prorations that will take place. To ensure that the actual proration is calculated exactly the same as the previewed proration, you should pass the subscription_details.proration_date parameter when doing the actual subscription update.
The recommended way to get only the prorations being previewed on the invoice is to consider line items where parent.subscription_item_details.proration is true.
Note that when you are viewing an upcoming invoice, you are simply viewing a preview – the invoice has not yet been created. As such, the upcoming invoice will not show up in invoice listing calls, and you cannot use the API to pay or edit the invoice. If you want to change the amount that your customer will be billed, you can add, remove, or update pending invoice items, or update the customer’s discount.
\n\nNote: Currency conversion calculations use the latest exchange rates. Exchange rates may vary between the time of the preview and the time of the actual invoice creation. Learn more
","operationId":"PostInvoicesCreatePreview","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"automatic_tax":{"title":"automatic_tax_param","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether Stripe automatically computes tax on this invoice. Note that incompatible invoice items (invoice items with manually specified [tax rates](https://docs.stripe.com/api/tax_rates), negative amounts, or `tax_behavior=unspecified`) cannot be added to automatic tax invoices."},"liability":{"title":"param","required":["type"],"type":"object","properties":{"account":{"type":"string","description":"The connected account being referenced when `type` is `account`."},"type":{"type":"string","description":"Type of the account referenced in the request.","enum":["account","self"],"x-stripeBypassValidation":true}},"description":"The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.","x-stripeMostCommon":["account","type"]}},"description":"Settings for automatic tax lookup for this invoice preview.","x-stripeMostCommon":["enabled","liability"]},"currency":{"type":"string","description":"The currency to preview this invoice in. Defaults to that of `customer` if not specified.","format":"currency"},"customer":{"maxLength":5000,"type":"string","description":"The identifier of the customer whose upcoming invoice you're retrieving. If `automatic_tax` is enabled then one of `customer`, `customer_details`, `subscription`, or `schedule` must be set."},"customer_account":{"maxLength":5000,"type":"string","description":"The identifier of the account representing the customer whose upcoming invoice you're retrieving. If `automatic_tax` is enabled then one of `customer`, `customer_account`, `customer_details`, `subscription`, or `schedule` must be set."},"customer_details":{"title":"customer_details_param","type":"object","properties":{"address":{"description":"The customer's address. Learn about [country-specific requirements for calculating tax](/invoicing/taxes?dashboard-or-api=dashboard#set-up-customer).","anyOf":[{"title":"optional_fields_address","type":"object","properties":{"city":{"maxLength":5000,"type":"string","description":"City, district, suburb, town, or village."},"country":{"maxLength":5000,"type":"string","description":"Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."},"line1":{"maxLength":5000,"type":"string","description":"Address line 1, such as the street, PO Box, or company name."},"line2":{"maxLength":5000,"type":"string","description":"Address line 2, such as the apartment, suite, unit, or building."},"postal_code":{"maxLength":5000,"type":"string","description":"ZIP or postal code."},"state":{"maxLength":5000,"type":"string","description":"State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))."}},"x-stripeMostCommon":["city","country","line1","line2","postal_code","state"]},{"type":"string","enum":[""]}]},"shipping":{"description":"The customer's shipping information. Appears on invoices emailed to this customer.","anyOf":[{"title":"customer_shipping","required":["address","name"],"type":"object","properties":{"address":{"title":"optional_fields_customer_address","type":"object","properties":{"city":{"maxLength":5000,"type":"string","description":"City, district, suburb, town, or village."},"country":{"maxLength":5000,"type":"string","description":"A freeform text field for the country. However, in order to activate some tax features, the format should be a two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."},"line1":{"maxLength":5000,"type":"string","description":"Address line 1, such as the street, PO Box, or company name."},"line2":{"maxLength":5000,"type":"string","description":"Address line 2, such as the apartment, suite, unit, or building."},"postal_code":{"maxLength":5000,"type":"string","description":"ZIP or postal code."},"state":{"maxLength":5000,"type":"string","description":"State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))."}},"description":"Customer shipping address.","x-stripeMostCommon":["city","country","line1","line2","postal_code","state"]},"name":{"maxLength":5000,"type":"string","description":"Customer name."},"phone":{"maxLength":5000,"type":"string","description":"Customer phone (including extension)."}},"x-stripeMostCommon":["address","name","phone"]},{"type":"string","enum":[""]}]},"tax":{"title":"tax_param","type":"object","properties":{"ip_address":{"description":"A recent IP address of the customer used for tax reporting and tax location inference. Stripe recommends updating the IP address when a new PaymentMethod is attached or the address field on the customer is updated. We recommend against updating this field more frequently since it could result in unexpected tax location/reporting outcomes.","anyOf":[{"type":"string"},{"type":"string","enum":[""]}]}},"description":"Tax details about the customer.","x-stripeMostCommon":["ip_address"]},"tax_exempt":{"type":"string","description":"The customer's tax exemption. One of `none`, `exempt`, or `reverse`.","enum":["","exempt","none","reverse"]},"tax_ids":{"type":"array","description":"The customer's tax IDs.","items":{"title":"data_params","required":["type","value"],"type":"object","properties":{"type":{"maxLength":5000,"type":"string","description":"Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `lk_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `pl_nip`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`","enum":["ad_nrt","ae_trn","al_tin","am_tin","ao_tin","ar_cuit","au_abn","au_arn","aw_tin","az_tin","ba_tin","bb_tin","bd_bin","bf_ifu","bg_uic","bh_vat","bj_ifu","bo_tin","br_cnpj","br_cpf","bs_tin","by_tin","ca_bn","ca_gst_hst","ca_pst_bc","ca_pst_mb","ca_pst_sk","ca_qst","cd_nif","ch_uid","ch_vat","cl_tin","cm_niu","cn_tin","co_nit","cr_tin","cv_nif","de_stn","do_rcn","ec_ruc","eg_tin","es_cif","et_tin","eu_oss_vat","eu_vat","gb_vat","ge_vat","gn_nif","hk_br","hr_oib","hu_tin","id_npwp","il_vat","in_gst","is_vat","jp_cn","jp_rn","jp_trn","ke_pin","kg_tin","kh_tin","kr_brn","kz_bin","la_tin","li_uid","li_vat","lk_vat","ma_vat","md_vat","me_pib","mk_vat","mr_nif","mx_rfc","my_frp","my_itn","my_sst","ng_tin","no_vat","no_voec","np_pan","nz_gst","om_vat","pe_ruc","ph_tin","pl_nip","ro_tin","rs_pib","ru_inn","ru_kpp","sa_vat","sg_gst","sg_uen","si_tin","sn_ninea","sr_fin","sv_nit","th_vat","tj_tin","tr_tin","tw_vat","tz_vat","ua_vat","ug_tin","us_ein","uy_ruc","uz_tin","uz_vat","ve_rif","vn_tin","za_vat","zm_tin","zw_tin"],"x-stripeBypassValidation":true},"value":{"type":"string","description":"Value of the tax ID."}},"x-stripeMostCommon":["type","value"]}}},"description":"Details about the customer you want to invoice or overrides for an existing customer. If `automatic_tax` is enabled then one of `customer`, `customer_details`, `subscription`, or `schedule` must be set.","x-stripeMostCommon":["address","shipping","tax","tax_exempt","tax_ids"]},"discounts":{"description":"The coupons to redeem into discounts for the invoice preview. If not specified, inherits the discount from the subscription or customer. This works for both coupons directly applied to an invoice and coupons applied to a subscription. Pass an empty string to avoid inheriting any discounts.","anyOf":[{"type":"array","items":{"title":"discounts_data_param","type":"object","properties":{"coupon":{"maxLength":5000,"type":"string","description":"ID of the coupon to create a new discount for."},"discount":{"maxLength":5000,"type":"string","description":"ID of an existing discount on the object (or one of its ancestors) to reuse."},"promotion_code":{"maxLength":5000,"type":"string","description":"ID of the promotion code to create a new discount for."}},"x-stripeMostCommon":["coupon","settings"]}},{"type":"string","enum":[""]}]},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"invoice_items":{"type":"array","description":"List of invoice items to add or update in the upcoming invoice preview (up to 250).","items":{"title":"invoice_item_preview_params","type":"object","properties":{"amount":{"type":"integer","description":"The integer amount in cents (or local equivalent) of previewed invoice item."},"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). Only applicable to new invoice items.","format":"currency"},"description":{"maxLength":5000,"type":"string","description":"An arbitrary string which you can attach to the invoice item. The description is displayed in the invoice for easy tracking."},"discountable":{"type":"boolean","description":"Explicitly controls whether discounts apply to this invoice item. Defaults to true, except for negative invoice items."},"discounts":{"description":"The coupons to redeem into discounts for the invoice item in the preview.","anyOf":[{"type":"array","items":{"title":"discounts_data_param","type":"object","properties":{"coupon":{"maxLength":5000,"type":"string","description":"ID of the coupon to create a new discount for."},"discount":{"maxLength":5000,"type":"string","description":"ID of an existing discount on the object (or one of its ancestors) to reuse."},"promotion_code":{"maxLength":5000,"type":"string","description":"ID of the promotion code to create a new discount for."}},"x-stripeMostCommon":["coupon"]}},{"type":"string","enum":[""]}]},"invoiceitem":{"maxLength":5000,"type":"string","description":"The ID of the invoice item to update in preview. If not specified, a new invoice item will be added to the preview of the upcoming invoice."},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"period":{"title":"period","required":["end","start"],"type":"object","properties":{"end":{"type":"integer","description":"The end of the period, which must be greater than or equal to the start. This value is inclusive.","format":"unix-time"},"start":{"type":"integer","description":"The start of the period. This value is inclusive.","format":"unix-time"}},"description":"The period associated with this invoice item. When set to different values, the period will be rendered on the invoice. If you have [Stripe Revenue Recognition](https://docs.stripe.com/revenue-recognition) enabled, the period will be used to recognize and defer revenue. See the [Revenue Recognition documentation](https://docs.stripe.com/revenue-recognition/methodology/subscriptions-and-invoicing) for details.","x-stripeMostCommon":["end","start"]},"price":{"maxLength":5000,"type":"string","description":"The ID of the price object. One of `price` or `price_data` is required."},"price_data":{"title":"one_time_price_data","required":["currency","product"],"type":"object","properties":{"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"product":{"maxLength":5000,"type":"string","description":"The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to."},"tax_behavior":{"type":"string","description":"Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.","enum":["exclusive","inclusive","unspecified"]},"unit_amount":{"type":"integer","description":"A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge."},"unit_amount_decimal":{"type":"string","description":"Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.","format":"decimal"}},"description":"Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline. One of `price` or `price_data` is required.","x-stripeMostCommon":["currency","product","unit_amount"]},"quantity":{"type":"integer","description":"Non-negative integer. The quantity of units for the invoice item. Use `quantity_decimal` instead to provide decimal precision. This field will be deprecated in favor of `quantity_decimal` in a future version."},"quantity_decimal":{"type":"string","description":"Non-negative decimal with at most 12 decimal places. The quantity of units for the invoice item.","format":"decimal"},"tax_behavior":{"type":"string","description":"Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.","enum":["exclusive","inclusive","unspecified"]},"tax_code":{"description":"A [tax code](https://docs.stripe.com/tax/tax-categories) ID.","anyOf":[{"type":"string"},{"type":"string","enum":[""]}]},"tax_rates":{"description":"The tax rates that apply to the item. When set, any `default_tax_rates` do not apply to this item.","anyOf":[{"type":"array","items":{"maxLength":5000,"type":"string"}},{"type":"string","enum":[""]}]},"unit_amount":{"type":"integer","description":"The integer unit amount in cents (or local equivalent) of the charge to be applied to the upcoming invoice. This unit_amount will be multiplied by the quantity to get the full amount. If you want to apply a credit to the customer's account, pass a negative unit_amount."},"unit_amount_decimal":{"type":"string","description":"Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.","format":"decimal"}},"x-stripeMostCommon":["amount","currency","description","discountable","discounts","invoiceitem","metadata","period","price","quantity","quantity_decimal","tax_behavior","tax_code","tax_rates","unit_amount","unit_amount_decimal"]}},"issuer":{"title":"param","required":["type"],"type":"object","properties":{"account":{"type":"string","description":"The connected account being referenced when `type` is `account`."},"type":{"type":"string","description":"Type of the account referenced in the request.","enum":["account","self"],"x-stripeBypassValidation":true}},"description":"The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.","x-stripeMostCommon":["account","type"]},"on_behalf_of":{"description":"The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the [Invoices with Connect](https://docs.stripe.com/billing/invoices/connect) documentation for details.","anyOf":[{"type":"string"},{"type":"string","enum":[""]}]},"preview_mode":{"type":"string","description":"Customizes the types of values to include when calculating the invoice. Defaults to `next` if unspecified.","enum":["next","recurring"]},"schedule":{"maxLength":5000,"type":"string","description":"The identifier of the schedule whose upcoming invoice you'd like to retrieve. Cannot be used with subscription or subscription fields."},"schedule_details":{"title":"schedule_details_params","type":"object","properties":{"billing_mode":{"title":"billing_mode","required":["type"],"type":"object","properties":{"flexible":{"title":"flexible_params","type":"object","properties":{"proration_discounts":{"type":"string","description":"Controls how invoices and invoice items display proration amounts and discount amounts.","enum":["included","itemized"]}},"description":"Configure behavior for flexible billing mode.","x-stripeMostCommon":["proration_discounts"]},"type":{"type":"string","description":"Controls the calculation and orchestration of prorations and invoices for subscriptions. If no value is passed, the default is `flexible`.","enum":["classic","flexible"]}},"description":"Controls how prorations and invoices for subscriptions are calculated and orchestrated.","x-stripeMostCommon":["flexible","type"]},"end_behavior":{"type":"string","description":"Behavior of the subscription schedule and underlying subscription when it ends. Possible values are `release` or `cancel` with the default being `release`. `release` will end the subscription schedule and keep the underlying subscription running. `cancel` will end the subscription schedule and cancel the underlying subscription.","enum":["cancel","release"]},"phases":{"type":"array","description":"List representing phases of the subscription schedule. Each phase can be customized to have different durations, plans, and coupons. If there are multiple phases, the `end_date` of one phase will always equal the `start_date` of the next phase.","items":{"title":"phase_configuration_params","required":["items"],"type":"object","properties":{"add_invoice_items":{"type":"array","description":"A list of prices and quantities that will generate invoice items appended to the next invoice for this phase. You may pass up to 20 items.","items":{"title":"add_invoice_item_entry","type":"object","properties":{"discounts":{"type":"array","description":"The coupons to redeem into discounts for the item.","items":{"title":"discounts_data_param","type":"object","properties":{"coupon":{"maxLength":5000,"type":"string","description":"ID of the coupon to create a new discount for."},"discount":{"maxLength":5000,"type":"string","description":"ID of an existing discount on the object (or one of its ancestors) to reuse."},"promotion_code":{"maxLength":5000,"type":"string","description":"ID of the promotion code to create a new discount for."}},"x-stripeMostCommon":["coupon"]}},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"period":{"title":"invoice_item_period","required":["end","start"],"type":"object","properties":{"end":{"title":"invoice_item_period_end","required":["type"],"type":"object","properties":{"timestamp":{"type":"integer","description":"A precise Unix timestamp for the end of the invoice item period. Must be greater than or equal to `period.start`.","format":"unix-time"},"type":{"type":"string","description":"Select how to calculate the end of the invoice item period.","enum":["min_item_period_end","phase_end","timestamp"],"x-stripeBypassValidation":true}},"description":"End of the invoice item period.","x-stripeMostCommon":["timestamp","type"]},"start":{"title":"invoice_item_period_start","required":["type"],"type":"object","properties":{"timestamp":{"type":"integer","description":"A precise Unix timestamp for the start of the invoice item period. Must be less than or equal to `period.end`.","format":"unix-time"},"type":{"type":"string","description":"Select how to calculate the start of the invoice item period.","enum":["max_item_period_start","phase_start","timestamp"],"x-stripeBypassValidation":true}},"description":"Start of the invoice item period.","x-stripeMostCommon":["timestamp","type"]}},"description":"The period associated with this invoice item. If not set, `period.start.type` defaults to `max_item_period_start` and `period.end.type` defaults to `min_item_period_end`.","x-stripeMostCommon":["end","start"]},"price":{"maxLength":5000,"type":"string","description":"The ID of the price object. One of `price` or `price_data` is required."},"price_data":{"title":"one_time_price_data_with_negative_amounts","required":["currency","product"],"type":"object","properties":{"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"product":{"maxLength":5000,"type":"string","description":"The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to."},"tax_behavior":{"type":"string","description":"Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.","enum":["exclusive","inclusive","unspecified"]},"unit_amount":{"type":"integer","description":"A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge or a negative integer representing the amount to credit to the customer."},"unit_amount_decimal":{"type":"string","description":"Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.","format":"decimal"}},"description":"Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline. One of `price` or `price_data` is required.","x-stripeMostCommon":["currency","product","unit_amount"]},"quantity":{"type":"integer","description":"Quantity for this item. Defaults to 1."},"tax_rates":{"description":"The tax rates which apply to the item. When set, the `default_tax_rates` do not apply to this item.","anyOf":[{"type":"array","items":{"maxLength":5000,"type":"string"}},{"type":"string","enum":[""]}]}},"x-stripeMostCommon":["price","quantity"],"x-stripeParam":{"class_name":"AddInvoiceItem"}}},"application_fee_percent":{"type":"number","description":"A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. The request must be made by a platform account on a connected account in order to set an application fee percentage. For more information, see the application fees [documentation](https://stripe.com/docs/connect/subscriptions#collecting-fees-on-subscriptions)."},"automatic_tax":{"title":"automatic_tax_config","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Enabled automatic tax calculation which will automatically compute tax rates on all invoices generated by the subscription."},"liability":{"title":"param","required":["type"],"type":"object","properties":{"account":{"type":"string","description":"The connected account being referenced when `type` is `account`."},"type":{"type":"string","description":"Type of the account referenced in the request.","enum":["account","self"],"x-stripeBypassValidation":true}},"description":"The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.","x-stripeMostCommon":["account","type"]}},"description":"Automatic tax settings for this phase.","x-stripeMostCommon":["enabled","liability"]},"billing_cycle_anchor":{"type":"string","description":"Can be set to `phase_start` to set the anchor to the start of the phase or `automatic` to automatically change it if needed. Cannot be set to `phase_start` if this phase specifies a trial. For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle).","enum":["automatic","phase_start"]},"billing_thresholds":{"description":"Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.","anyOf":[{"title":"billing_thresholds_param","type":"object","properties":{"amount_gte":{"type":"integer","description":"Monetary threshold that triggers the subscription to advance to a new billing period"},"reset_billing_cycle_anchor":{"type":"boolean","description":"Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached. If true, `billing_cycle_anchor` will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged."}},"x-stripeMostCommon":["amount_gte","reset_billing_cycle_anchor"]},{"type":"string","enum":[""]}]},"collection_method":{"type":"string","description":"Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically` on creation.","enum":["charge_automatically","send_invoice"]},"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"default_payment_method":{"maxLength":5000,"type":"string","description":"ID of the default payment method for the subscription schedule. It must belong to the customer associated with the subscription schedule. If not set, invoices will use the default payment method in the customer's invoice settings."},"default_tax_rates":{"description":"A list of [Tax Rate](https://docs.stripe.com/api/tax_rates) ids. These Tax Rates will set the Subscription's [`default_tax_rates`](https://docs.stripe.com/api/subscriptions/create#create_subscription-default_tax_rates), which means they will be the Invoice's [`default_tax_rates`](https://docs.stripe.com/api/invoices/create#create_invoice-default_tax_rates) for any Invoices issued by the Subscription during this Phase.","anyOf":[{"type":"array","items":{"maxLength":5000,"type":"string"}},{"type":"string","enum":[""]}]},"description":{"description":"Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.","anyOf":[{"maxLength":500,"type":"string"},{"type":"string","enum":[""]}]},"discounts":{"description":"The coupons to redeem into discounts for the schedule phase. If not specified, inherits the discount from the subscription's customer. Pass an empty string to avoid inheriting any discounts.","anyOf":[{"type":"array","items":{"title":"schedule_discounts_data_param","type":"object","properties":{"coupon":{"maxLength":5000,"type":"string","description":"ID of the coupon to create a new discount for."},"discount":{"maxLength":5000,"type":"string","description":"ID of an existing discount on the object (or one of its ancestors) to reuse."},"promotion_code":{"maxLength":5000,"type":"string","description":"ID of the promotion code to create a new discount for."}},"x-stripeMostCommon":["coupon","settings"]}},{"type":"string","enum":[""]}]},"duration":{"title":"duration_params","required":["interval"],"type":"object","properties":{"interval":{"type":"string","description":"Specifies phase duration. Either `day`, `week`, `month` or `year`.","enum":["day","month","week","year"]},"interval_count":{"type":"integer","description":"The multiplier applied to the interval."}},"description":"The number of intervals the phase should last. If set, `end_date` must not be set.","x-stripeMostCommon":["interval","interval_count"]},"end_date":{"description":"The date at which this phase of the subscription schedule ends. If set, `duration` must not be set.","anyOf":[{"type":"integer","format":"unix-time"},{"maxLength":5000,"type":"string","enum":["now"]}]},"invoice_settings":{"title":"invoice_settings","type":"object","properties":{"account_tax_ids":{"description":"The account tax IDs associated with this phase of the subscription schedule. Will be set on invoices generated by this phase of the subscription schedule.","anyOf":[{"type":"array","items":{"maxLength":5000,"type":"string"}},{"type":"string","enum":[""]}]},"days_until_due":{"type":"integer","description":"Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`."},"issuer":{"title":"param","required":["type"],"type":"object","properties":{"account":{"type":"string","description":"The connected account being referenced when `type` is `account`."},"type":{"type":"string","description":"Type of the account referenced in the request.","enum":["account","self"],"x-stripeBypassValidation":true}},"description":"The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.","x-stripeMostCommon":["account","type"]}},"description":"All invoices will be billed using the specified settings.","x-stripeMostCommon":["account_tax_ids","custom_fields","days_until_due","description","footer","issuer","send_hosted_payment_email","supported_payment_methods"]},"items":{"type":"array","description":"List of configuration items, each with an attached price, to apply during this phase of the subscription schedule.","items":{"title":"configuration_item_params","type":"object","properties":{"billing_thresholds":{"description":"Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.","anyOf":[{"title":"item_billing_thresholds_param","required":["usage_gte"],"type":"object","properties":{"usage_gte":{"type":"integer","description":"Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://docs.stripe.com/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte))"}},"x-stripeMostCommon":["usage_gte"]},{"type":"string","enum":[""]}]},"discounts":{"description":"The coupons to redeem into discounts for the subscription item.","anyOf":[{"type":"array","items":{"title":"schedule_discounts_data_param","type":"object","properties":{"coupon":{"maxLength":5000,"type":"string","description":"ID of the coupon to create a new discount for."},"discount":{"maxLength":5000,"type":"string","description":"ID of an existing discount on the object (or one of its ancestors) to reuse."},"promotion_code":{"maxLength":5000,"type":"string","description":"ID of the promotion code to create a new discount for."}},"x-stripeMostCommon":["coupon","settings"]}},{"type":"string","enum":[""]}]},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to a configuration item. Metadata on a configuration item will update the underlying subscription item's `metadata` when the phase is entered, adding new keys and replacing existing keys. Individual keys in the subscription item's `metadata` can be unset by posting an empty value to them in the configuration item's `metadata`. To unset all keys in the subscription item's `metadata`, update the subscription item directly or unset every key individually from the configuration item's `metadata`."},"plan":{"maxLength":5000,"type":"string","description":"The plan ID to subscribe to. You may specify the same ID in `plan` and `price`."},"price":{"maxLength":5000,"type":"string","description":"The ID of the price object."},"price_data":{"title":"recurring_price_data","required":["currency","product","recurring"],"type":"object","properties":{"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"product":{"maxLength":5000,"type":"string","description":"The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to."},"recurring":{"title":"recurring_adhoc","required":["interval"],"type":"object","properties":{"interval":{"type":"string","description":"Specifies billing frequency. Either `day`, `week`, `month` or `year`.","enum":["day","month","week","year"]},"interval_count":{"type":"integer","description":"The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks)."}},"description":"The recurring components of a price such as `interval` and `interval_count`.","x-stripeMostCommon":["interval"]},"tax_behavior":{"type":"string","description":"Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.","enum":["exclusive","inclusive","unspecified"]},"unit_amount":{"type":"integer","description":"A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge."},"unit_amount_decimal":{"type":"string","description":"Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.","format":"decimal"}},"description":"Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline.","x-stripeMostCommon":["currency","product","recurring","unit_amount"]},"quantity":{"type":"integer","description":"Quantity for the given price. Can be set only if the price's `usage_type` is `licensed` and not `metered`."},"tax_rates":{"description":"A list of [Tax Rate](https://docs.stripe.com/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://docs.stripe.com/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.","anyOf":[{"type":"array","items":{"maxLength":5000,"type":"string"}},{"type":"string","enum":[""]}]}},"x-stripeMostCommon":["billing_thresholds","discounts","metadata","plan","price","quantity","tax_rates","trial","trial_offer"]}},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to a phase. Metadata on a schedule's phase will update the underlying subscription's `metadata` when the phase is entered, adding new keys and replacing existing keys in the subscription's `metadata`. Individual keys in the subscription's `metadata` can be unset by posting an empty value to them in the phase's `metadata`. To unset all keys in the subscription's `metadata`, update the subscription directly or unset every key individually from the phase's `metadata`."},"on_behalf_of":{"type":"string","description":"The account on behalf of which to charge, for each of the associated subscription's invoices."},"proration_behavior":{"type":"string","description":"Controls whether the subscription schedule should create [prorations](https://docs.stripe.com/billing/subscriptions/prorations) when transitioning to this phase if there is a difference in billing configuration. It's different from the request-level [proration_behavior](https://docs.stripe.com/api/subscription_schedules/update#update_subscription_schedule-proration_behavior) parameter which controls what happens if the update request affects the billing configuration (item price, quantity, etc.) of the current phase.","enum":["always_invoice","create_prorations","none"]},"start_date":{"description":"The date at which this phase of the subscription schedule starts or `now`. Must be set on the first phase.","anyOf":[{"type":"integer","format":"unix-time"},{"maxLength":5000,"type":"string","enum":["now"]}]},"transfer_data":{"title":"transfer_data_specs","required":["destination"],"type":"object","properties":{"amount_percent":{"type":"number","description":"A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination."},"destination":{"type":"string","description":"ID of an existing, connected Stripe account."}},"description":"The data with which to automatically create a Transfer for each of the associated subscription's invoices.","x-stripeMostCommon":["amount_percent","destination"]},"trial":{"type":"boolean","description":"If set to true the entire phase is counted as a trial and the customer will not be charged for any fees."},"trial_end":{"description":"Sets the phase to trialing from the start date to this date. Must be before the phase end date, can not be combined with `trial`","anyOf":[{"type":"integer","format":"unix-time"},{"maxLength":5000,"type":"string","enum":["now"]}]}},"x-stripeMostCommon":["add_invoice_items","application_fee_percent","automatic_tax","billing_cycle_anchor","billing_thresholds","collection_method","currency","default_payment_method","default_tax_rates","description","discounts","duration","effective_at","end_date","invoice_settings","items","metadata","on_behalf_of","pause_collection","proration_behavior","start_date","tax_filing_currency","transfer_data","trial","trial_continuation","trial_end","trial_settings"]}},"proration_behavior":{"type":"string","description":"In cases where the `schedule_details` params update the currently active phase, specifies if and how to prorate at the time of the request.","enum":["always_invoice","create_prorations","none"]}},"description":"The schedule creation or modification params to apply as a preview. Cannot be used with `subscription` or `subscription_` prefixed fields.","x-stripeMostCommon":["amendments","billing_behavior","billing_mode","billing_schedules","default_settings","end_behavior","phases","prebilling","proration_behavior"]},"subscription":{"maxLength":5000,"type":"string","description":"The identifier of the subscription for which you'd like to retrieve the upcoming invoice. If not provided, but a `subscription_details.items` is provided, you will preview creating a subscription with those items. If neither `subscription` nor `subscription_details.items` is provided, you will retrieve the next upcoming invoice from among the customer's subscriptions."},"subscription_details":{"title":"subscription_details_params","type":"object","properties":{"billing_cycle_anchor":{"description":"For new subscriptions, a future timestamp to anchor the subscription's [billing cycle](https://docs.stripe.com/subscriptions/billing-cycle). This is used to determine the date of the first full invoice, and, for plans with `month` or `year` intervals, the day of the month for subsequent invoices. For existing subscriptions, the value can only be set to `now` or `unchanged`.","anyOf":[{"maxLength":5000,"type":"string","enum":["now","unchanged"]},{"type":"integer","format":"unix-time"}]},"billing_mode":{"title":"billing_mode","required":["type"],"type":"object","properties":{"flexible":{"title":"flexible_params","type":"object","properties":{"proration_discounts":{"type":"string","description":"Controls how invoices and invoice items display proration amounts and discount amounts.","enum":["included","itemized"]}},"description":"Configure behavior for flexible billing mode.","x-stripeMostCommon":["proration_discounts"]},"type":{"type":"string","description":"Controls the calculation and orchestration of prorations and invoices for subscriptions. If no value is passed, the default is `flexible`.","enum":["classic","flexible"]}},"description":"Controls how prorations and invoices for subscriptions are calculated and orchestrated.","x-stripeMostCommon":["flexible","type"]},"cancel_at":{"description":"A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period.","anyOf":[{"type":"integer","format":"unix-time"},{"type":"string","enum":[""]},{"type":"string","enum":["max_period_end","min_period_end"]}]},"cancel_at_period_end":{"type":"boolean","description":"Indicate whether this subscription should cancel at the end of the current period (`current_period_end`). Defaults to `false`."},"cancel_now":{"type":"boolean","description":"This simulates the subscription being canceled or expired immediately."},"default_tax_rates":{"description":"If provided, the invoice returned will preview updating or creating a subscription with these default tax rates. The default tax rates will apply to any line item that does not have `tax_rates` set.","anyOf":[{"type":"array","items":{"maxLength":5000,"type":"string"}},{"type":"string","enum":[""]}]},"items":{"type":"array","description":"A list of up to 20 subscription items, each with an attached price.","items":{"title":"subscription_item_update_params","type":"object","properties":{"billing_thresholds":{"description":"Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.","anyOf":[{"title":"item_billing_thresholds_param","required":["usage_gte"],"type":"object","properties":{"usage_gte":{"type":"integer","description":"Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://docs.stripe.com/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte))"}},"x-stripeMostCommon":["usage_gte"]},{"type":"string","enum":[""]}]},"clear_usage":{"type":"boolean","description":"Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached."},"deleted":{"type":"boolean","description":"A flag that, if set to `true`, will delete the specified item."},"discounts":{"description":"The coupons to redeem into discounts for the subscription item.","anyOf":[{"type":"array","items":{"title":"discounts_data_param","type":"object","properties":{"coupon":{"maxLength":5000,"type":"string","description":"ID of the coupon to create a new discount for."},"discount":{"maxLength":5000,"type":"string","description":"ID of an existing discount on the object (or one of its ancestors) to reuse."},"promotion_code":{"maxLength":5000,"type":"string","description":"ID of the promotion code to create a new discount for."}},"x-stripeMostCommon":["coupon","settings"]}},{"type":"string","enum":[""]}]},"id":{"maxLength":5000,"type":"string","description":"Subscription item to update."},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"plan":{"maxLength":5000,"type":"string","description":"Plan ID for this item, as a string."},"price":{"maxLength":5000,"type":"string","description":"The ID of the price object. One of `price` or `price_data` is required. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided."},"price_data":{"title":"recurring_price_data","required":["currency","product","recurring"],"type":"object","properties":{"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"product":{"maxLength":5000,"type":"string","description":"The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to."},"recurring":{"title":"recurring_adhoc","required":["interval"],"type":"object","properties":{"interval":{"type":"string","description":"Specifies billing frequency. Either `day`, `week`, `month` or `year`.","enum":["day","month","week","year"]},"interval_count":{"type":"integer","description":"The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks)."}},"description":"The recurring components of a price such as `interval` and `interval_count`.","x-stripeMostCommon":["interval"]},"tax_behavior":{"type":"string","description":"Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.","enum":["exclusive","inclusive","unspecified"]},"unit_amount":{"type":"integer","description":"A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge."},"unit_amount_decimal":{"type":"string","description":"Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.","format":"decimal"}},"description":"Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline. One of `price` or `price_data` is required.","x-stripeMostCommon":["currency","product","recurring","unit_amount"]},"quantity":{"type":"integer","description":"Quantity for this item."},"tax_rates":{"description":"A list of [Tax Rate](https://docs.stripe.com/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://docs.stripe.com/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.","anyOf":[{"type":"array","items":{"maxLength":5000,"type":"string"}},{"type":"string","enum":[""]}]}},"x-stripeMostCommon":["billing_thresholds","clear_usage","current_trial","deleted","discounts","id","metadata","plan","price","quantity","service_starts_at","tax_rates"]}},"proration_behavior":{"type":"string","description":"Determines how to handle [prorations](https://docs.stripe.com/billing/subscriptions/prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes. The default value is `create_prorations`.","enum":["always_invoice","create_prorations","none"]},"proration_date":{"type":"integer","description":"If previewing an update to a subscription, and doing proration, `subscription_details.proration_date` forces the proration to be calculated as though the update was done at the specified time. The time given must be within the current subscription period and within the current phase of the schedule backing this subscription, if the schedule exists. If set, `subscription`, and one of `subscription_details.items`, or `subscription_details.trial_end` are required. Also, `subscription_details.proration_behavior` cannot be set to 'none'.","format":"unix-time"},"resume_at":{"maxLength":5000,"type":"string","description":"For paused subscriptions, setting `subscription_details.resume_at` to `now` will preview the invoice that will be generated if the subscription is resumed.","enum":["now"]},"start_date":{"type":"integer","description":"Date a subscription is intended to start (can be future or past).","format":"unix-time"},"trial_end":{"description":"If provided, the invoice returned will preview updating or creating a subscription with that trial end. If set, one of `subscription_details.items` or `subscription` is required.","anyOf":[{"maxLength":5000,"type":"string","enum":["now"]},{"type":"integer","format":"unix-time"}]}},"description":"The subscription creation or modification params to apply as a preview. Cannot be used with `schedule` or `schedule_details` fields.","x-stripeMostCommon":["billing_cycle_anchor","billing_mode","billing_schedules","cancel_at","cancel_at_period_end","cancel_now","default_tax_rates","items","prebilling","proration_behavior","proration_date","resume_at","start_date","trial_end"]}},"additionalProperties":false,"x-stripeMostCommon":["automatic_tax","customer","customer_account","subscription"]},"encoding":{"automatic_tax":{"style":"deepObject","explode":true},"customer_details":{"style":"deepObject","explode":true},"discounts":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"invoice_items":{"style":"deepObject","explode":true},"issuer":{"style":"deepObject","explode":true},"on_behalf_of":{"style":"deepObject","explode":true},"schedule_details":{"style":"deepObject","explode":true},"subscription_details":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/invoice"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/invoices/search":{"get":{"summary":"Search invoices","description":"Search for invoices you’ve previously created using Stripe’s Search Query Language.\nDon’t use search in read-after-write flows where strict consistency is necessary. Under normal operating\nconditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up\nto an hour behind during outages. Search functionality is not available to merchants in India.
","operationId":"GetInvoicesSearch","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"page","in":"query","description":"A cursor for pagination across multiple pages of results. Don't include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"query","in":"query","description":"The search query string. See [search query language](https://docs.stripe.com/search#search-query-language) and the list of supported [query fields for invoices](https://docs.stripe.com/search#query-fields-for-invoices).","required":true,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"SearchResult","required":["data","has_more","next_page","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/invoice"}},"has_more":{"type":"boolean"},"next_page":{"maxLength":5000,"type":"string","nullable":true},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value.","enum":["search_result"]},"total_count":{"type":"integer","description":"The total number of objects that match the query, only accurate up to 10,000."},"url":{"maxLength":5000,"type":"string"}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","next_page","object","total_count","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/invoices/{invoice}":{"get":{"summary":"Retrieve an invoice","description":"Retrieves the invoice with the given ID.
","operationId":"GetInvoicesInvoice","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"invoice","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/invoice"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Update an invoice","description":"Draft invoices are fully editable. Once an invoice is finalized,\nmonetary values, as well as collection_method, become uneditable.
If you would like to stop the Stripe Billing engine from automatically finalizing, reattempting payments on,\nsending reminders for, or automatically reconciling invoices, pass\nauto_advance=false.
Permanently deletes a one-off invoice draft. This cannot be undone. Attempts to delete invoices that are no longer in a draft state will fail; once an invoice has been finalized or if an invoice is for a subscription, it must be voided.
","operationId":"DeleteInvoicesInvoice","parameters":[{"name":"invoice","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/deleted_invoice"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/invoices/{invoice}/add_lines":{"post":{"summary":"Bulk add invoice line items","description":"Adds multiple line items to an invoice. This is only possible when an invoice is still a draft.
","operationId":"PostInvoicesInvoiceAddLines","parameters":[{"name":"invoice","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["lines"],"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"invoice_metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"lines":{"type":"array","description":"The line items to add.","items":{"title":"lines_data_param","type":"object","properties":{"amount":{"type":"integer","description":"The integer amount in cents (or local equivalent) of the charge to be applied to the upcoming invoice. If you want to apply a credit to the customer's account, pass a negative amount."},"description":{"maxLength":5000,"type":"string","description":"An arbitrary string which you can attach to the invoice item. The description is displayed in the invoice for easy tracking."},"discountable":{"type":"boolean","description":"Controls whether discounts apply to this line item. Defaults to false for prorations or negative line items, and true for all other line items. Cannot be set to true for prorations."},"discounts":{"description":"The coupons, promotion codes & existing discounts which apply to the line item. Item discounts are applied before invoice discounts. Pass an empty string to remove previously-defined discounts.","anyOf":[{"type":"array","items":{"title":"discounts_data_param","type":"object","properties":{"coupon":{"maxLength":5000,"type":"string","description":"ID of the coupon to create a new discount for."},"discount":{"maxLength":5000,"type":"string","description":"ID of an existing discount on the object (or one of its ancestors) to reuse."},"promotion_code":{"maxLength":5000,"type":"string","description":"ID of the promotion code to create a new discount for."}},"x-stripeMostCommon":["coupon"]}},{"type":"string","enum":[""]}]},"invoice_item":{"maxLength":5000,"type":"string","description":"ID of an unassigned invoice item to assign to this invoice. If not provided, a new item will be created."},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"period":{"title":"period","required":["end","start"],"type":"object","properties":{"end":{"type":"integer","description":"The end of the period, which must be greater than or equal to the start. This value is inclusive.","format":"unix-time"},"start":{"type":"integer","description":"The start of the period. This value is inclusive.","format":"unix-time"}},"description":"The period associated with this invoice item. When set to different values, the period will be rendered on the invoice. If you have [Stripe Revenue Recognition](https://docs.stripe.com/revenue-recognition) enabled, the period will be used to recognize and defer revenue. See the [Revenue Recognition documentation](https://docs.stripe.com/revenue-recognition/methodology/subscriptions-and-invoicing) for details.","x-stripeMostCommon":["end","start"]},"price_data":{"title":"one_time_price_data_with_product_data","required":["currency"],"type":"object","properties":{"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"product":{"maxLength":5000,"type":"string","description":"The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to. One of `product` or `product_data` is required."},"product_data":{"title":"product_data","required":["name"],"type":"object","properties":{"description":{"maxLength":40000,"type":"string","description":"The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes."},"images":{"type":"array","description":"A list of up to 8 URLs of images for this product, meant to be displayable to the customer.","items":{"type":"string"}},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"name":{"maxLength":5000,"type":"string","description":"The product's name, meant to be displayable to the customer."},"tax_code":{"maxLength":5000,"type":"string","description":"A [tax code](https://docs.stripe.com/tax/tax-categories) ID."},"unit_label":{"maxLength":12,"type":"string","description":"A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal."}},"description":"Data used to generate a new [Product](https://docs.stripe.com/api/products) object inline. One of `product` or `product_data` is required.","x-stripeMostCommon":["description","images","metadata","name","tax_code","tax_details","unit_label"]},"tax_behavior":{"type":"string","description":"Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.","enum":["exclusive","inclusive","unspecified"]},"unit_amount":{"type":"integer","description":"A non-negative integer in cents (or local equivalent) representing how much to charge. One of `unit_amount` or `unit_amount_decimal` is required."},"unit_amount_decimal":{"type":"string","description":"Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.","format":"decimal"}},"description":"Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline.","x-stripeMostCommon":["currency","product","unit_amount"]},"pricing":{"title":"pricing_param","type":"object","properties":{"price":{"maxLength":5000,"type":"string","description":"The ID of the price object."}},"description":"The pricing information for the invoice item.","x-stripeMostCommon":["price"]},"quantity":{"type":"integer","description":"Non-negative integer. The quantity of units for the line item. Use `quantity_decimal` instead to provide decimal precision. This field will be deprecated in favor of `quantity_decimal` in a future version."},"quantity_decimal":{"type":"string","description":"Non-negative decimal with at most 12 decimal places. The quantity of units for the line item.","format":"decimal"},"tax_amounts":{"description":"A list of up to 10 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://docs.stripe.com/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://docs.stripe.com/tax/invoicing). Pass an empty string to remove previously defined tax amounts.","anyOf":[{"type":"array","items":{"title":"tax_amount_param","required":["amount","tax_rate_data","taxable_amount"],"type":"object","properties":{"amount":{"type":"integer","description":"The amount, in cents (or local equivalent), of the tax."},"tax_rate_data":{"title":"tax_rate_data_param","required":["display_name","inclusive","percentage"],"type":"object","properties":{"country":{"maxLength":5000,"type":"string","description":"Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."},"description":{"maxLength":5000,"type":"string","description":"An arbitrary string attached to the tax rate for your internal use only. It will not be visible to your customers."},"display_name":{"maxLength":100,"type":"string","description":"The display name of the tax rate, which will be shown to users."},"inclusive":{"type":"boolean","description":"This specifies if the tax rate is inclusive or exclusive."},"jurisdiction":{"maxLength":200,"type":"string","description":"The jurisdiction for the tax rate. You can use this label field for tax reporting purposes. It also appears on your customer’s invoice."},"jurisdiction_level":{"type":"string","description":"The level of the jurisdiction that imposes this tax rate.","enum":["city","country","county","district","multiple","state"]},"percentage":{"type":"number","description":"The statutory tax rate percent. This field accepts decimal values between 0 and 100 inclusive with at most 4 decimal places. To accommodate fixed-amount taxes, set the percentage to zero. Stripe will not display zero percentages on the invoice unless the `amount` of the tax is also zero."},"state":{"maxLength":5000,"type":"string","description":"[ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2:US), without country prefix. For example, \"NY\" for New York, United States."},"tax_type":{"type":"string","description":"The high-level tax type, such as `vat` or `sales_tax`.","enum":["amusement_tax","communications_tax","gst","hst","igst","jct","lease_tax","pst","qst","retail_delivery_fee","rst","sales_tax","service_tax","vat"],"x-stripeBypassValidation":true}},"description":"Data to find or create a TaxRate object.\n\nStripe automatically creates or reuses a TaxRate object for each tax amount. If the `tax_rate_data` exactly matches a previous value, Stripe will reuse the TaxRate object. TaxRate objects created automatically by Stripe are immediately archived, do not appear in the line item’s `tax_rates`, and cannot be directly added to invoices, payments, or line items.","x-stripeMostCommon":["country","description","display_name","inclusive","jurisdiction","jurisdiction_level","percentage","state","tax_type"]},"taxability_reason":{"type":"string","description":"The reasoning behind this tax, for example, if the product is tax exempt.","enum":["customer_exempt","not_collecting","not_subject_to_tax","not_supported","portion_product_exempt","portion_reduced_rated","portion_standard_rated","product_exempt","product_exempt_holiday","proportionally_rated","reduced_rated","reverse_charge","standard_rated","taxable_basis_reduced","zero_rated"],"x-stripeBypassValidation":true},"taxable_amount":{"type":"integer","description":"The amount on which tax is calculated, in cents (or local equivalent)."}},"x-stripeMostCommon":["amount","tax_rate_data","taxability_reason","taxable_amount"]}},{"type":"string","enum":[""]}]},"tax_rates":{"description":"The tax rates which apply to the line item. When set, the `default_tax_rates` on the invoice do not apply to this line item. Pass an empty string to remove previously-defined tax rates.","anyOf":[{"type":"array","items":{"maxLength":5000,"type":"string"}},{"type":"string","enum":[""]}]}},"x-stripeMostCommon":["amount","description","invoice_item","metadata","period","pricing","quantity_decimal"]}}},"additionalProperties":false,"x-stripeMostCommon":["invoice_metadata","lines"]},"encoding":{"expand":{"style":"deepObject","explode":true},"invoice_metadata":{"style":"deepObject","explode":true},"lines":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/invoice"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/invoices/{invoice}/attach_payment":{"post":{"summary":"Attach a payment to an Invoice","description":"Attaches a PaymentIntent or an Out of Band Payment to the invoice, adding it to the list of payments.
For the PaymentIntent, when the PaymentIntent’s status changes to succeeded, the payment is credited\nto the invoice, increasing its amount_paid. When the invoice is fully paid, the\ninvoice’s status becomes paid.
If the PaymentIntent’s status is already succeeded when it’s attached, it’s\ncredited to the invoice immediately.
See: Partial payments to learn more.
","operationId":"PostInvoicesInvoiceAttachPayment","parameters":[{"name":"invoice","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"payment_intent":{"maxLength":5000,"type":"string","description":"The ID of the PaymentIntent to attach to the invoice."},"payment_record":{"maxLength":5000,"type":"string","description":"The ID of the PaymentRecord to attach to the invoice."}},"additionalProperties":false,"x-stripeMostCommon":["payment_intent","payment_record"]},"encoding":{"expand":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/invoice"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/invoices/{invoice}/finalize":{"post":{"summary":"Finalize an invoice","description":"Stripe automatically finalizes drafts before sending and attempting payment on invoices. However, if you’d like to finalize a draft invoice manually, you can do so using this method.
","operationId":"PostInvoicesInvoiceFinalize","parameters":[{"name":"invoice","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"auto_advance":{"type":"boolean","description":"Controls whether Stripe performs [automatic collection](https://docs.stripe.com/invoicing/integration/automatic-advancement-collection) of the invoice. If `false`, the invoice's state doesn't automatically advance without an explicit action."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}}},"additionalProperties":false,"x-stripeMostCommon":["auto_advance"]},"encoding":{"expand":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/invoice"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/invoices/{invoice}/lines":{"get":{"summary":"Retrieve an invoice's line items","description":"When retrieving an invoice, you’ll get a lines property containing the total count of line items and the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
","operationId":"GetInvoicesInvoiceLines","parameters":[{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"invoice","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"InvoiceLinesList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","description":"Details about each object.","items":{"$ref":"#/components/schemas/line_item"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/invoices/{invoice}/lines/{line_item_id}":{"post":{"summary":"Update an invoice's line item","description":"Updates an invoice’s line item. Some fields, such as tax_amounts, only live on the invoice line item,\nso they can only be updated through this endpoint. Other fields, such as amount, live on both the invoice\nitem and the invoice line item, so updates on this endpoint will propagate to the invoice item as well.\nUpdating an invoice’s line item is only possible before the invoice is finalized.
Marking an invoice as uncollectible is useful for keeping track of bad debts that can be written off for accounting purposes.
","operationId":"PostInvoicesInvoiceMarkUncollectible","parameters":[{"name":"invoice","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}}},"additionalProperties":false},"encoding":{"expand":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/invoice"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/invoices/{invoice}/pay":{"post":{"summary":"Pay an invoice","description":"Stripe automatically creates and then attempts to collect payment on invoices for customers on subscriptions according to your subscriptions settings. However, if you’d like to attempt payment on an invoice out of the normal collection schedule or for some other reason, you can do so.
","operationId":"PostInvoicesInvoicePay","parameters":[{"name":"invoice","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"forgive":{"type":"boolean","description":"In cases where the source used to pay the invoice has insufficient funds, passing `forgive=true` controls whether a charge should be attempted for the full amount available on the source, up to the amount to fully pay the invoice. This effectively forgives the difference between the amount available on the source and the amount due. \n\nPassing `forgive=false` will fail the charge if the source hasn't been pre-funded with the right amount. An example for this case is with ACH Credit Transfers and wires: if the amount wired is less than the amount due by a small amount, you might want to forgive the difference. Defaults to `false`."},"mandate":{"description":"ID of the mandate to be used for this invoice. It must correspond to the payment method used to pay the invoice, including the payment_method param or the invoice's default_payment_method or default_source, if set.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]},"off_session":{"type":"boolean","description":"Indicates if a customer is on or off-session while an invoice payment is attempted. Defaults to `true` (off-session)."},"paid_out_of_band":{"type":"boolean","description":"Boolean representing whether an invoice is paid outside of Stripe. This will result in no charge being made. Defaults to `false`."},"payment_method":{"maxLength":5000,"type":"string","description":"A PaymentMethod to be charged. The PaymentMethod must be the ID of a PaymentMethod belonging to the customer associated with the invoice being paid."},"source":{"maxLength":5000,"type":"string","description":"A payment source to be charged. The source must be the ID of a source belonging to the customer associated with the invoice being paid."}},"additionalProperties":false},"encoding":{"expand":{"style":"deepObject","explode":true},"mandate":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/invoice"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/invoices/{invoice}/remove_lines":{"post":{"summary":"Bulk remove invoice line items","description":"Removes multiple line items from an invoice. This is only possible when an invoice is still a draft.
","operationId":"PostInvoicesInvoiceRemoveLines","parameters":[{"name":"invoice","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["lines"],"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"invoice_metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"lines":{"type":"array","description":"The line items to remove.","items":{"title":"lines_data_param","required":["behavior","id"],"type":"object","properties":{"behavior":{"type":"string","description":"Either `delete` or `unassign`. Deleted line items are permanently deleted. Unassigned line items can be reassigned to an invoice.","enum":["delete","unassign"]},"id":{"maxLength":5000,"type":"string","description":"ID of an existing line item to remove from this invoice."}},"x-stripeMostCommon":["behavior","id"]}}},"additionalProperties":false,"x-stripeMostCommon":["invoice_metadata","lines"]},"encoding":{"expand":{"style":"deepObject","explode":true},"invoice_metadata":{"style":"deepObject","explode":true},"lines":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/invoice"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/invoices/{invoice}/send":{"post":{"summary":"Send an invoice for manual payment","description":"Stripe will automatically send invoices to customers according to your subscriptions settings. However, if you’d like to manually send an invoice to your customer out of the normal schedule, you can do so. When sending invoices that have already been paid, there will be no reference to the payment in the email.
\n\nRequests made in test-mode result in no emails being sent, despite sending an invoice.sent event.
Updates multiple line items on an invoice. This is only possible when an invoice is still a draft.
","operationId":"PostInvoicesInvoiceUpdateLines","parameters":[{"name":"invoice","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["lines"],"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"invoice_metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. For [type=subscription](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-type) line items, the incoming metadata specified on the request is directly used to set this value, in contrast to [type=invoiceitem](api/invoices/line_item#invoice_line_item_object-type) line items, where any existing metadata on the invoice line is merged with the incoming data.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"lines":{"type":"array","description":"The line items to update.","items":{"title":"lines_data_param","required":["id"],"type":"object","properties":{"amount":{"type":"integer","description":"The integer amount in cents (or local equivalent) of the charge to be applied to the upcoming invoice. If you want to apply a credit to the customer's account, pass a negative amount."},"description":{"maxLength":5000,"type":"string","description":"An arbitrary string which you can attach to the invoice item. The description is displayed in the invoice for easy tracking."},"discountable":{"type":"boolean","description":"Controls whether discounts apply to this line item. Defaults to false for prorations or negative line items, and true for all other line items. Cannot be set to true for prorations."},"discounts":{"description":"The coupons, promotion codes & existing discounts which apply to the line item. Item discounts are applied before invoice discounts. Pass an empty string to remove previously-defined discounts.","anyOf":[{"type":"array","items":{"title":"discounts_data_param","type":"object","properties":{"coupon":{"maxLength":5000,"type":"string","description":"ID of the coupon to create a new discount for."},"discount":{"maxLength":5000,"type":"string","description":"ID of an existing discount on the object (or one of its ancestors) to reuse."},"promotion_code":{"maxLength":5000,"type":"string","description":"ID of the promotion code to create a new discount for."}},"x-stripeMostCommon":["coupon"]}},{"type":"string","enum":[""]}]},"id":{"maxLength":5000,"type":"string","description":"ID of an existing line item on the invoice."},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. For [type=subscription](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-type) line items, the incoming metadata specified on the request is directly used to set this value, in contrast to [type=invoiceitem](api/invoices/line_item#invoice_line_item_object-type) line items, where any existing metadata on the invoice line is merged with the incoming data.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"period":{"title":"period","required":["end","start"],"type":"object","properties":{"end":{"type":"integer","description":"The end of the period, which must be greater than or equal to the start. This value is inclusive.","format":"unix-time"},"start":{"type":"integer","description":"The start of the period. This value is inclusive.","format":"unix-time"}},"description":"The period associated with this invoice item. When set to different values, the period will be rendered on the invoice. If you have [Stripe Revenue Recognition](https://docs.stripe.com/revenue-recognition) enabled, the period will be used to recognize and defer revenue. See the [Revenue Recognition documentation](https://docs.stripe.com/revenue-recognition/methodology/subscriptions-and-invoicing) for details.","x-stripeMostCommon":["end","start"]},"price_data":{"title":"one_time_price_data_with_product_data","required":["currency"],"type":"object","properties":{"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"product":{"maxLength":5000,"type":"string","description":"The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to. One of `product` or `product_data` is required."},"product_data":{"title":"product_data","required":["name"],"type":"object","properties":{"description":{"maxLength":40000,"type":"string","description":"The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes."},"images":{"type":"array","description":"A list of up to 8 URLs of images for this product, meant to be displayable to the customer.","items":{"type":"string"}},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"name":{"maxLength":5000,"type":"string","description":"The product's name, meant to be displayable to the customer."},"tax_code":{"maxLength":5000,"type":"string","description":"A [tax code](https://docs.stripe.com/tax/tax-categories) ID."},"unit_label":{"maxLength":12,"type":"string","description":"A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal."}},"description":"Data used to generate a new [Product](https://docs.stripe.com/api/products) object inline. One of `product` or `product_data` is required.","x-stripeMostCommon":["description","images","metadata","name","tax_code","tax_details","unit_label"]},"tax_behavior":{"type":"string","description":"Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.","enum":["exclusive","inclusive","unspecified"]},"unit_amount":{"type":"integer","description":"A non-negative integer in cents (or local equivalent) representing how much to charge. One of `unit_amount` or `unit_amount_decimal` is required."},"unit_amount_decimal":{"type":"string","description":"Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.","format":"decimal"}},"description":"Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline.","x-stripeMostCommon":["currency","product","unit_amount"]},"pricing":{"title":"pricing_param","type":"object","properties":{"price":{"maxLength":5000,"type":"string","description":"The ID of the price object."}},"description":"The pricing information for the invoice item.","x-stripeMostCommon":["price"]},"quantity":{"type":"integer","description":"Non-negative integer. The quantity of units for the line item. Use `quantity_decimal` instead to provide decimal precision. This field will be deprecated in favor of `quantity_decimal` in a future version."},"quantity_decimal":{"type":"string","description":"Non-negative decimal with at most 12 decimal places. The quantity of units for the line item.","format":"decimal"},"tax_amounts":{"description":"A list of up to 10 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://docs.stripe.com/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://docs.stripe.com/tax/invoicing). Pass an empty string to remove previously defined tax amounts.","anyOf":[{"type":"array","items":{"title":"tax_amount_param","required":["amount","tax_rate_data","taxable_amount"],"type":"object","properties":{"amount":{"type":"integer","description":"The amount, in cents (or local equivalent), of the tax."},"tax_rate_data":{"title":"tax_rate_data_param","required":["display_name","inclusive","percentage"],"type":"object","properties":{"country":{"maxLength":5000,"type":"string","description":"Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."},"description":{"maxLength":5000,"type":"string","description":"An arbitrary string attached to the tax rate for your internal use only. It will not be visible to your customers."},"display_name":{"maxLength":100,"type":"string","description":"The display name of the tax rate, which will be shown to users."},"inclusive":{"type":"boolean","description":"This specifies if the tax rate is inclusive or exclusive."},"jurisdiction":{"maxLength":200,"type":"string","description":"The jurisdiction for the tax rate. You can use this label field for tax reporting purposes. It also appears on your customer’s invoice."},"jurisdiction_level":{"type":"string","description":"The level of the jurisdiction that imposes this tax rate.","enum":["city","country","county","district","multiple","state"]},"percentage":{"type":"number","description":"The statutory tax rate percent. This field accepts decimal values between 0 and 100 inclusive with at most 4 decimal places. To accommodate fixed-amount taxes, set the percentage to zero. Stripe will not display zero percentages on the invoice unless the `amount` of the tax is also zero."},"state":{"maxLength":5000,"type":"string","description":"[ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2:US), without country prefix. For example, \"NY\" for New York, United States."},"tax_type":{"type":"string","description":"The high-level tax type, such as `vat` or `sales_tax`.","enum":["amusement_tax","communications_tax","gst","hst","igst","jct","lease_tax","pst","qst","retail_delivery_fee","rst","sales_tax","service_tax","vat"],"x-stripeBypassValidation":true}},"description":"Data to find or create a TaxRate object.\n\nStripe automatically creates or reuses a TaxRate object for each tax amount. If the `tax_rate_data` exactly matches a previous value, Stripe will reuse the TaxRate object. TaxRate objects created automatically by Stripe are immediately archived, do not appear in the line item’s `tax_rates`, and cannot be directly added to invoices, payments, or line items.","x-stripeMostCommon":["country","description","display_name","inclusive","jurisdiction","jurisdiction_level","percentage","state","tax_type"]},"taxability_reason":{"type":"string","description":"The reasoning behind this tax, for example, if the product is tax exempt.","enum":["customer_exempt","not_collecting","not_subject_to_tax","not_supported","portion_product_exempt","portion_reduced_rated","portion_standard_rated","product_exempt","product_exempt_holiday","proportionally_rated","reduced_rated","reverse_charge","standard_rated","taxable_basis_reduced","zero_rated"],"x-stripeBypassValidation":true},"taxable_amount":{"type":"integer","description":"The amount on which tax is calculated, in cents (or local equivalent)."}},"x-stripeMostCommon":["amount","tax_rate_data","taxability_reason","taxable_amount"]}},{"type":"string","enum":[""]}]},"tax_rates":{"description":"The tax rates which apply to the line item. When set, the `default_tax_rates` on the invoice do not apply to this line item. Pass an empty string to remove previously-defined tax rates.","anyOf":[{"type":"array","items":{"maxLength":5000,"type":"string"}},{"type":"string","enum":[""]}]}},"x-stripeMostCommon":["amount","description","id","metadata","period","pricing","quantity_decimal"]}}},"additionalProperties":false,"x-stripeMostCommon":["invoice_metadata","lines"]},"encoding":{"expand":{"style":"deepObject","explode":true},"invoice_metadata":{"style":"deepObject","explode":true},"lines":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/invoice"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/invoices/{invoice}/void":{"post":{"summary":"Void an invoice","description":"Mark a finalized invoice as void. This cannot be undone. Voiding an invoice is similar to deletion, however it only applies to finalized invoices and maintains a papertrail where the invoice can still be found.
\n\nConsult with local regulations to determine whether and how an invoice might be amended, canceled, or voided in the jurisdiction you’re doing business in. You might need to issue another invoice or credit note instead. Stripe recommends that you consult with your legal counsel for advice specific to your business.
","operationId":"PostInvoicesInvoiceVoid","parameters":[{"name":"invoice","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}}},"additionalProperties":false},"encoding":{"expand":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/invoice"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/issuing/authorizations":{"get":{"summary":"List all authorizations","description":"Returns a list of Issuing Authorization objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
Retrieves an Issuing Authorization object.
Updates the specified Issuing Authorization object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
[Deprecated] Approves a pending Issuing Authorization object. This request should be made within the timeout window of the real-time authorization flow. \nThis method is deprecated. Instead, respond directly to the webhook request to approve an authorization.
[Deprecated] Declines a pending Issuing Authorization object. This request should be made within the timeout window of the real time authorization flow.\nThis method is deprecated. Instead, respond directly to the webhook request to decline an authorization.
Returns a list of Issuing Cardholder objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
Creates a new Issuing Cardholder object that can be issued cards.
Retrieves an Issuing Cardholder object.
Updates the specified Issuing Cardholder object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Returns a list of Issuing Card objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
Creates an Issuing Card object.
Retrieves an Issuing Card object.
Updates the specified Issuing Card object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Returns a list of Issuing Dispute objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
Creates an Issuing Dispute object. Individual pieces of evidence within the evidence object are optional at this point. Stripe only validates that required evidence is present during submission. Refer to Dispute reasons and evidence for more details about evidence requirements.
Retrieves an Issuing Dispute object.
Updates the specified Issuing Dispute object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Properties on the evidence object can be unset by passing in an empty string.
Submits an Issuing Dispute to the card network. Stripe validates that all evidence fields required for the dispute’s reason are present. For more details, see Dispute reasons and evidence.
Returns a list of personalization design objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
","operationId":"GetIssuingPersonalizationDesigns","parameters":[{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"lookup_keys","in":"query","description":"Only return personalization designs with the given lookup keys.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":200,"type":"string"}}},{"name":"preferences","in":"query","description":"Only return personalization designs with the given preferences.","required":false,"style":"deepObject","explode":true,"schema":{"title":"preferences_list_param","type":"object","properties":{"is_default":{"type":"boolean","description":"Only return the personalization design that's set as the default. A connected account uses the Connect platform's default design if no personalization design is set as the default."},"is_platform_default":{"type":"boolean","description":"Only return the personalization design that is set as the Connect platform's default. This parameter is only applicable to connected accounts."}},"x-stripeMostCommon":["is_default","is_platform_default"]}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"status","in":"query","description":"Only return personalization designs with the given status.","required":false,"style":"form","explode":true,"schema":{"type":"string","enum":["active","inactive","rejected","review"]}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"IssuingPersonalizationDesignList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/issuing.personalization_design"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/issuing/personalization_designs","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create a personalization design","description":"Creates a personalization design object.
","operationId":"PostIssuingPersonalizationDesigns","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["physical_bundle"],"type":"object","properties":{"card_logo":{"type":"string","description":"The file for the card logo, for use with physical bundles that support card logos. Must have a `purpose` value of `issuing_logo`."},"carrier_text":{"title":"carrier_text_param","type":"object","properties":{"footer_body":{"description":"The footer body text of the carrier letter.","anyOf":[{"maxLength":200,"type":"string"},{"type":"string","enum":[""]}]},"footer_title":{"description":"The footer title text of the carrier letter.","anyOf":[{"maxLength":30,"type":"string"},{"type":"string","enum":[""]}]},"header_body":{"description":"The header body text of the carrier letter.","anyOf":[{"maxLength":200,"type":"string"},{"type":"string","enum":[""]}]},"header_title":{"description":"The header title text of the carrier letter.","anyOf":[{"maxLength":30,"type":"string"},{"type":"string","enum":[""]}]}},"description":"Hash containing carrier text, for use with physical bundles that support carrier text.","x-stripeMostCommon":["footer_body","footer_title","header_body","header_title"]},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"lookup_key":{"maxLength":200,"type":"string","description":"A lookup key used to retrieve personalization designs dynamically from a static string. This may be up to 200 characters."},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"name":{"maxLength":200,"type":"string","description":"Friendly display name."},"physical_bundle":{"maxLength":5000,"type":"string","description":"The physical bundle object belonging to this personalization design."},"preferences":{"title":"preferences_param","required":["is_default"],"type":"object","properties":{"is_default":{"type":"boolean","description":"Whether we use this personalization design to create cards when one isn't specified. A connected account uses the Connect platform's default design if no personalization design is set as the default design."}},"description":"Information on whether this personalization design is used to create cards when one is not specified.","x-stripeMostCommon":["is_default"]},"transfer_lookup_key":{"type":"boolean","description":"If set to true, will atomically remove the lookup key from the existing personalization design, and assign it to this personalization design."}},"additionalProperties":false,"x-stripeMostCommon":["card_logo","carrier_text","lookup_key","metadata","name","physical_bundle","preferences","transfer_lookup_key"]},"encoding":{"carrier_text":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true},"preferences":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/issuing.personalization_design"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/issuing/personalization_designs/{personalization_design}":{"get":{"summary":"Retrieve a personalization design","description":"Retrieves a personalization design object.
","operationId":"GetIssuingPersonalizationDesignsPersonalizationDesign","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"personalization_design","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/issuing.personalization_design"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Update a personalization design","description":"Updates a card personalization object.
","operationId":"PostIssuingPersonalizationDesignsPersonalizationDesign","parameters":[{"name":"personalization_design","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"card_logo":{"description":"The file for the card logo, for use with physical bundles that support card logos. Must have a `purpose` value of `issuing_logo`.","anyOf":[{"type":"string"},{"type":"string","enum":[""]}]},"carrier_text":{"description":"Hash containing carrier text, for use with physical bundles that support carrier text.","anyOf":[{"title":"carrier_text_param","type":"object","properties":{"footer_body":{"description":"The footer body text of the carrier letter.","anyOf":[{"maxLength":200,"type":"string"},{"type":"string","enum":[""]}]},"footer_title":{"description":"The footer title text of the carrier letter.","anyOf":[{"maxLength":30,"type":"string"},{"type":"string","enum":[""]}]},"header_body":{"description":"The header body text of the carrier letter.","anyOf":[{"maxLength":200,"type":"string"},{"type":"string","enum":[""]}]},"header_title":{"description":"The header title text of the carrier letter.","anyOf":[{"maxLength":30,"type":"string"},{"type":"string","enum":[""]}]}},"x-stripeMostCommon":["footer_body","footer_title","header_body","header_title"]},{"type":"string","enum":[""]}]},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"lookup_key":{"description":"A lookup key used to retrieve personalization designs dynamically from a static string. This may be up to 200 characters.","anyOf":[{"maxLength":200,"type":"string"},{"type":"string","enum":[""]}]},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"name":{"description":"Friendly display name. Providing an empty string will set the field to null.","anyOf":[{"maxLength":200,"type":"string"},{"type":"string","enum":[""]}]},"physical_bundle":{"maxLength":5000,"type":"string","description":"The physical bundle object belonging to this personalization design."},"preferences":{"title":"preferences_param","required":["is_default"],"type":"object","properties":{"is_default":{"type":"boolean","description":"Whether we use this personalization design to create cards when one isn't specified. A connected account uses the Connect platform's default design if no personalization design is set as the default design."}},"description":"Information on whether this personalization design is used to create cards when one is not specified.","x-stripeMostCommon":["is_default"]},"transfer_lookup_key":{"type":"boolean","description":"If set to true, will atomically remove the lookup key from the existing personalization design, and assign it to this personalization design."}},"additionalProperties":false,"x-stripeMostCommon":["card_logo","carrier_text","lookup_key","metadata","name","physical_bundle","preferences","transfer_lookup_key"]},"encoding":{"card_logo":{"style":"deepObject","explode":true},"carrier_text":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"lookup_key":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true},"name":{"style":"deepObject","explode":true},"preferences":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/issuing.personalization_design"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/issuing/physical_bundles":{"get":{"summary":"List all physical bundles","description":"Returns a list of physical bundle objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
","operationId":"GetIssuingPhysicalBundles","parameters":[{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"status","in":"query","description":"Only return physical bundles with the given status.","required":false,"style":"form","explode":true,"schema":{"type":"string","enum":["active","inactive","review"]}},{"name":"type","in":"query","description":"Only return physical bundles with the given type.","required":false,"style":"form","explode":true,"schema":{"type":"string","enum":["custom","standard"]}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"IssuingPhysicalBundleList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/issuing.physical_bundle"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/issuing/physical_bundles","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/issuing/physical_bundles/{physical_bundle}":{"get":{"summary":"Retrieve a physical bundle","description":"Retrieves a physical bundle object.
","operationId":"GetIssuingPhysicalBundlesPhysicalBundle","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"physical_bundle","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/issuing.physical_bundle"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/issuing/tokens":{"get":{"summary":"List all issuing tokens for card","description":"Lists all Issuing Token objects for a given card.
Retrieves an Issuing Token object.
Attempts to update the specified Issuing Token object to the status specified.
Returns a list of Issuing Transaction objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
Retrieves an Issuing Transaction object.
Updates the specified Issuing Transaction object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Retrieves a Mandate object.
","operationId":"GetMandatesMandate","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"mandate","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/mandate"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/payment_attempt_records":{"get":{"summary":"List Payment Attempt Records","description":"List all the Payment Attempt Records attached to the specified Payment Record.
","operationId":"GetPaymentAttemptRecords","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"payment_record","in":"query","description":"The ID of the Payment Record.","required":true,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"PaymentsPrimitivesPaymentRecordsResourcePaymentAttemptRecordList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/payment_attempt_record"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"type":"string","description":"The URL where this list can be accessed."}},"description":"A list of PaymentAttemptRecords.","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/payment_attempt_records/{id}":{"get":{"summary":"Retrieve a Payment Attempt Record","description":"Retrieves a Payment Attempt Record with the given ID
","operationId":"GetPaymentAttemptRecordsId","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"id","in":"path","description":"The ID of the Payment Attempt Record.","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment_attempt_record"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/payment_intents":{"get":{"summary":"List all PaymentIntents","description":"Returns a list of PaymentIntents.
","operationId":"GetPaymentIntents","parameters":[{"name":"created","in":"query","description":"A filter on the list, based on the object `created` field. The value can be a string with an integer Unix timestamp or a dictionary with a number of different query options.","required":false,"style":"deepObject","explode":true,"schema":{"anyOf":[{"title":"range_query_specs","type":"object","properties":{"gt":{"type":"integer","description":"Minimum value to filter by (exclusive)"},"gte":{"type":"integer","description":"Minimum value to filter by (inclusive)"},"lt":{"type":"integer","description":"Maximum value to filter by (exclusive)"},"lte":{"type":"integer","description":"Maximum value to filter by (inclusive)"}},"x-stripeMostCommon":["gt","gte","lt","lte"]},{"type":"integer"}]}},{"name":"customer","in":"query","description":"Only return PaymentIntents for the customer that this customer ID specifies.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"customer_account","in":"query","description":"Only return PaymentIntents for the account representing the customer that this ID specifies.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"PaymentFlowsPaymentIntentList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/payment_intent"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/payment_intents","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create a PaymentIntent","description":"Creates a PaymentIntent object.
\n\nAfter the PaymentIntent is created, attach a payment method and confirm\nto continue the payment. Learn more about the available payment flows\nwith the Payment Intents API.
\n\nWhen you use confirm=true during creation, it’s equivalent to creating\nand confirming the PaymentIntent in the same call. You can use any parameters\navailable in the confirm API when you supply\nconfirm=true.
Search for PaymentIntents you’ve previously created using Stripe’s Search Query Language.\nDon’t use search in read-after-write flows where strict consistency is necessary. Under normal operating\nconditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up\nto an hour behind during outages. Search functionality is not available to merchants in India.
","operationId":"GetPaymentIntentsSearch","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"page","in":"query","description":"A cursor for pagination across multiple pages of results. Don't include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"query","in":"query","description":"The search query string. See [search query language](https://docs.stripe.com/search#search-query-language) and the list of supported [query fields for payment intents](https://docs.stripe.com/search#query-fields-for-payment-intents).","required":true,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"SearchResult","required":["data","has_more","next_page","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/payment_intent"}},"has_more":{"type":"boolean"},"next_page":{"maxLength":5000,"type":"string","nullable":true},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value.","enum":["search_result"]},"total_count":{"type":"integer","description":"The total number of objects that match the query, only accurate up to 10,000."},"url":{"maxLength":5000,"type":"string"}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","next_page","object","total_count","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/payment_intents/{intent}":{"get":{"summary":"Retrieve a PaymentIntent","description":"Retrieves the details of a PaymentIntent that has previously been created.
\n\nYou can retrieve a PaymentIntent client-side using a publishable key when the client_secret is in the query string.
If you retrieve a PaymentIntent with a publishable key, it only returns a subset of properties. Refer to the payment intent object reference for more details.
","operationId":"GetPaymentIntentsIntent","parameters":[{"name":"client_secret","in":"query","description":"The client secret of the PaymentIntent. We require it if you use a publishable key to retrieve the source.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"intent","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment_intent"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Update a PaymentIntent","description":"Updates properties on a PaymentIntent object without confirming.
\n\nDepending on which properties you update, you might need to confirm the\nPaymentIntent again. For example, updating the payment_method\nalways requires you to confirm the PaymentIntent again. If you prefer to\nupdate and confirm at the same time, we recommend updating properties through\nthe confirm API instead.
Lists all LineItems of a given PaymentIntent.
","operationId":"GetPaymentIntentsIntentAmountDetailsLineItems","parameters":[{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"intent","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"PaymentFlowsAmountDetailsResourceLineItemsList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","description":"Details about each object.","items":{"$ref":"#/components/schemas/payment_intent_amount_details_line_item"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/payment_intents/{intent}/apply_customer_balance":{"post":{"summary":"Reconcile a customer_balance PaymentIntent","description":"Manually reconcile the remaining amount for a customer_balance PaymentIntent.
You can cancel a PaymentIntent object when it’s in one of these statuses: requires_payment_method, requires_capture, requires_confirmation, requires_action or, in rare cases, processing.
After it’s canceled, no additional charges are made by the PaymentIntent and any operations on the PaymentIntent fail with an error. For PaymentIntents with a status of requires_capture, the remaining amount_capturable is automatically refunded.
You can directly cancel the PaymentIntent for a Checkout Session only when the PaymentIntent has a status of requires_capture. Otherwise, you must expire the Checkout Session.
Capture the funds of an existing uncaptured PaymentIntent when its status is requires_capture.
Uncaptured PaymentIntents are cancelled a set number of days (7 by default) after their creation.
\n\nLearn more about separate authorization and capture.
","operationId":"PostPaymentIntentsIntentCapture","parameters":[{"name":"intent","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"amount_details":{"title":"amount_details_param","type":"object","properties":{"discount_amount":{"description":"The total discount applied on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than 0.\n\nThis field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field.","anyOf":[{"type":"integer"},{"type":"string","enum":[""]}]},"enforce_arithmetic_validation":{"type":"boolean","description":"Set to `false` to return arithmetic validation errors in the response without failing the request. Use this when you want the operation to proceed regardless of arithmetic errors in the line item data.\n\nOmit or set to `true` to immediately return a 400 error when arithmetic validation fails. Use this for strict validation that prevents processing with line item data that has arithmetic inconsistencies.\n\nFor card payments, Stripe doesn't send line item data to card networks if there's an arithmetic validation error."},"line_items":{"description":"A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 200 line items.","anyOf":[{"type":"array","items":{"title":"amount_details_line_item_param","required":["product_name","quantity","unit_cost"],"type":"object","properties":{"discount_amount":{"type":"integer","description":"The discount applied on this line item represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than 0.\n\nThis field is mutually exclusive with the `amount_details[discount_amount]` field."},"payment_method_options":{"title":"amount_details_line_item_payment_method_options_param","type":"object","properties":{"card":{"title":"payment_intent_amount_details_line_item_payment_method_options_param","type":"object","properties":{"commodity_code":{"maxLength":12,"type":"string","description":"Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on."}},"description":"This sub-hash contains line item details that are specific to the `card` payment method.","x-stripeMostCommon":["commodity_code"]},"card_present":{"title":"amount_details_line_item_payment_method_options_param","type":"object","properties":{"commodity_code":{"maxLength":12,"type":"string","description":"Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on."}},"description":"This sub-hash contains line item details that are specific to the `card_present` payment method.","x-stripeMostCommon":["commodity_code"]},"klarna":{"title":"payment_intent_amount_details_line_item_payment_method_options_param","type":"object","properties":{"image_url":{"maxLength":4096,"type":"string","description":"URL to an image for the product. Max length, 4096 characters."},"product_url":{"maxLength":4096,"type":"string","description":"URL to the product page. Max length, 4096 characters."},"reference":{"maxLength":255,"type":"string","description":"Unique reference for this line item to correlate it with your system’s internal records. The field is displayed in the Klarna Consumer App if passed."},"subscription_reference":{"maxLength":255,"type":"string","description":"Reference for the subscription this line item is for."}},"description":"This sub-hash contains line item details that are specific to the `klarna` payment method.","x-stripeMostCommon":["image_url","product_url","reference","subscription_reference"]},"paypal":{"title":"amount_details_line_item_payment_method_options_param","type":"object","properties":{"category":{"type":"string","description":"Type of the line item.","enum":["digital_goods","donation","physical_goods"]},"description":{"maxLength":127,"type":"string","description":"Description of the line item."},"sold_by":{"maxLength":127,"type":"string","description":"The Stripe account ID of the connected account that sells the item."}},"description":"This sub-hash contains line item details that are specific to the `paypal` payment method.","x-stripeMostCommon":["category","description","sold_by"]}},"description":"Payment method-specific information for line items.","x-stripeMostCommon":["card","card_present","dummy_auth_push","klarna","link","paypal"]},"product_code":{"maxLength":12,"type":"string","description":"The product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters long."},"product_name":{"maxLength":1024,"type":"string","description":"The product name of the line item. Required for L3 rates. At most 1024 characters long.\n\nFor Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For PayPal, this field is truncated to 127 characters."},"quantity":{"type":"integer","description":"The quantity of items. Required for L3 rates. An integer greater than 0."},"tax":{"title":"amount_details_line_item_tax_param","required":["total_tax_amount"],"type":"object","properties":{"total_tax_amount":{"type":"integer","description":"The total amount of tax on a single line item represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0.\n\nThis field is mutually exclusive with the `amount_details[tax][total_tax_amount]` field."}},"description":"Contains information about the tax on the item.","x-stripeMostCommon":["total_tax_amount"]},"unit_cost":{"type":"integer","description":"The unit cost of the line item represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0."},"unit_of_measure":{"maxLength":12,"type":"string","description":"A unit of measure for the line item, such as gallons, feet, meters, etc."}},"x-stripeMostCommon":["discount_amount","payment_method_options","product_code","product_name","quantity","tax","unit_cost","unit_of_measure"]}},{"type":"string","enum":[""]}]},"shipping":{"description":"Contains information about the shipping portion of the amount.","anyOf":[{"title":"amount_details_shipping_param","type":"object","properties":{"amount":{"description":"If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than or equal to 0.","anyOf":[{"type":"integer"},{"type":"string","enum":[""]}]},"from_postal_code":{"description":"If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed.","anyOf":[{"maxLength":10,"type":"string"},{"type":"string","enum":[""]}]},"to_postal_code":{"description":"If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed.","anyOf":[{"maxLength":10,"type":"string"},{"type":"string","enum":[""]}]}},"x-stripeMostCommon":["amount","from_postal_code","to_postal_code"]},{"type":"string","enum":[""]}]},"tax":{"description":"Contains information about the tax portion of the amount.","anyOf":[{"title":"amount_details_tax_param","required":["total_tax_amount"],"type":"object","properties":{"total_tax_amount":{"type":"integer","description":"The total amount of tax on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0.\n\nThis field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field."}},"x-stripeMostCommon":["total_tax_amount"]},{"type":"string","enum":[""]}]}},"description":"Provides industry-specific information about the amount.","x-stripeMostCommon":["discount_amount","enforce_arithmetic_validation","line_items","shipping","surcharge","tax"]},"amount_to_capture":{"type":"integer","description":"The amount to capture from the PaymentIntent, which must be less than or equal to the original amount. Defaults to the full `amount_capturable` if it's not provided."},"application_fee_amount":{"type":"integer","description":"The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts)."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"final_capture":{"type":"boolean","description":"Defaults to `true`. When capturing a PaymentIntent, setting `final_capture` to `false` notifies Stripe to not release the remaining uncaptured funds to make sure that they're captured in future requests. You can only use this setting when [multicapture](https://docs.stripe.com/payments/multicapture) is available for PaymentIntents."},"hooks":{"title":"async_workflows_param","type":"object","properties":{"inputs":{"title":"async_workflows_inputs_param","type":"object","properties":{"tax":{"title":"async_workflows_inputs_tax_param","required":["calculation"],"type":"object","properties":{"calculation":{"description":"The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]}},"description":"Tax arguments for automations","x-stripeMostCommon":["calculation"]}},"description":"Arguments passed in automations","x-stripeMostCommon":["tax"]}},"description":"Automations to be run during the PaymentIntent lifecycle","x-stripeMostCommon":["inputs"]},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"payment_details":{"description":"Provides industry-specific information about the charge.","anyOf":[{"title":"payment_details_capture_params","type":"object","properties":{"customer_reference":{"description":"A unique value to identify the customer. This field is available only for card payments.\n\nThis field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]},"order_reference":{"description":"A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.\n\nFor Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]}},"x-stripeMostCommon":["car_rental","car_rental_data","event_details","flight","flight_data","healthcare","lodging","lodging_data","subscription"]},{"type":"string","enum":[""]}]},"statement_descriptor":{"maxLength":22,"type":"string","description":"Text that appears on the customer's statement as the statement descriptor for a non-card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).\n\nSetting this value for a card charge returns an error. For card charges, set the [statement_descriptor_suffix](https://docs.stripe.com/get-started/account/statement-descriptors#dynamic) instead."},"statement_descriptor_suffix":{"maxLength":22,"type":"string","description":"Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement."},"transfer_data":{"title":"transfer_data_capture_params","type":"object","properties":{"amount":{"type":"integer","description":"The amount that will be transferred automatically when a charge succeeds."}},"description":"The parameters that you can use to automatically create a transfer after the payment\nis captured. Learn more about the [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts).","x-stripeMostCommon":["amount"]}},"additionalProperties":false,"x-stripeMostCommon":["amount_to_capture","metadata"]},"encoding":{"amount_details":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"hooks":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true},"payment_details":{"style":"deepObject","explode":true},"transfer_data":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment_intent"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/payment_intents/{intent}/confirm":{"post":{"summary":"Confirm a PaymentIntent","description":"Confirm that your customer intends to pay with current or provided\npayment method. Upon confirmation, the PaymentIntent will attempt to initiate\na payment.
\n\nIf the selected payment method requires additional authentication steps, the\nPaymentIntent will transition to the requires_action status and\nsuggest additional actions via next_action. If payment fails,\nthe PaymentIntent transitions to the requires_payment_method status or the\ncanceled status if the confirmation limit is reached. If\npayment succeeds, the PaymentIntent will transition to the succeeded\nstatus (or requires_capture, if capture_method is set to manual).
If the confirmation_method is automatic, payment may be attempted\nusing our client SDKs\nand the PaymentIntent’s client_secret.\nAfter next_actions are handled by the client, no additional\nconfirmation is required to complete the payment.
If the confirmation_method is manual, all payment attempts must be\ninitiated using a secret key.
If any actions are required for the payment, the PaymentIntent will\nreturn to the requires_confirmation state\nafter those actions are completed. Your server needs to then\nexplicitly re-confirm the PaymentIntent to initiate the next payment\nattempt.
There is a variable upper limit on how many times a PaymentIntent can be confirmed.\nAfter this limit is reached, any further calls to this endpoint will\ntransition the PaymentIntent to the canceled state.
Perform an incremental authorization on an eligible\nPaymentIntent. To be eligible, the\nPaymentIntent’s status must be requires_capture and\nincremental_authorization_supported\nmust be true.
Incremental authorizations attempt to increase the authorized amount on\nyour customer’s card to the new, higher amount provided. Similar to the\ninitial authorization, incremental authorizations can be declined. A\nsingle PaymentIntent can call this endpoint multiple times to further\nincrease the authorized amount.
If the incremental authorization succeeds, the PaymentIntent object\nreturns with the updated\namount.\nIf the incremental authorization fails, a\ncard_declined error returns, and no other\nfields on the PaymentIntent or Charge update. The PaymentIntent\nobject remains capturable for the previously authorized amount.
\n\nEach PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines.\nAfter it’s captured, a PaymentIntent can no longer be incremented.
\n\nLearn more about incremental authorizations.
","operationId":"PostPaymentIntentsIntentIncrementAuthorization","parameters":[{"name":"intent","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["amount"],"type":"object","properties":{"amount":{"type":"integer","description":"The updated total amount that you intend to collect from the cardholder. This amount must be greater than the currently authorized amount."},"amount_details":{"title":"amount_details_param","type":"object","properties":{"discount_amount":{"description":"The total discount applied on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than 0.\n\nThis field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field.","anyOf":[{"type":"integer"},{"type":"string","enum":[""]}]},"enforce_arithmetic_validation":{"type":"boolean","description":"Set to `false` to return arithmetic validation errors in the response without failing the request. Use this when you want the operation to proceed regardless of arithmetic errors in the line item data.\n\nOmit or set to `true` to immediately return a 400 error when arithmetic validation fails. Use this for strict validation that prevents processing with line item data that has arithmetic inconsistencies.\n\nFor card payments, Stripe doesn't send line item data to card networks if there's an arithmetic validation error."},"line_items":{"description":"A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 200 line items.","anyOf":[{"type":"array","items":{"title":"amount_details_line_item_param","required":["product_name","quantity","unit_cost"],"type":"object","properties":{"discount_amount":{"type":"integer","description":"The discount applied on this line item represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than 0.\n\nThis field is mutually exclusive with the `amount_details[discount_amount]` field."},"payment_method_options":{"title":"amount_details_line_item_payment_method_options_param","type":"object","properties":{"card":{"title":"payment_intent_amount_details_line_item_payment_method_options_param","type":"object","properties":{"commodity_code":{"maxLength":12,"type":"string","description":"Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on."}},"description":"This sub-hash contains line item details that are specific to the `card` payment method.","x-stripeMostCommon":["commodity_code"]},"card_present":{"title":"amount_details_line_item_payment_method_options_param","type":"object","properties":{"commodity_code":{"maxLength":12,"type":"string","description":"Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on."}},"description":"This sub-hash contains line item details that are specific to the `card_present` payment method.","x-stripeMostCommon":["commodity_code"]},"klarna":{"title":"payment_intent_amount_details_line_item_payment_method_options_param","type":"object","properties":{"image_url":{"maxLength":4096,"type":"string","description":"URL to an image for the product. Max length, 4096 characters."},"product_url":{"maxLength":4096,"type":"string","description":"URL to the product page. Max length, 4096 characters."},"reference":{"maxLength":255,"type":"string","description":"Unique reference for this line item to correlate it with your system’s internal records. The field is displayed in the Klarna Consumer App if passed."},"subscription_reference":{"maxLength":255,"type":"string","description":"Reference for the subscription this line item is for."}},"description":"This sub-hash contains line item details that are specific to the `klarna` payment method.","x-stripeMostCommon":["image_url","product_url","reference","subscription_reference"]},"paypal":{"title":"amount_details_line_item_payment_method_options_param","type":"object","properties":{"category":{"type":"string","description":"Type of the line item.","enum":["digital_goods","donation","physical_goods"]},"description":{"maxLength":127,"type":"string","description":"Description of the line item."},"sold_by":{"maxLength":127,"type":"string","description":"The Stripe account ID of the connected account that sells the item."}},"description":"This sub-hash contains line item details that are specific to the `paypal` payment method.","x-stripeMostCommon":["category","description","sold_by"]}},"description":"Payment method-specific information for line items.","x-stripeMostCommon":["card","card_present","dummy_auth_push","klarna","link","paypal"]},"product_code":{"maxLength":12,"type":"string","description":"The product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters long."},"product_name":{"maxLength":1024,"type":"string","description":"The product name of the line item. Required for L3 rates. At most 1024 characters long.\n\nFor Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For PayPal, this field is truncated to 127 characters."},"quantity":{"type":"integer","description":"The quantity of items. Required for L3 rates. An integer greater than 0."},"tax":{"title":"amount_details_line_item_tax_param","required":["total_tax_amount"],"type":"object","properties":{"total_tax_amount":{"type":"integer","description":"The total amount of tax on a single line item represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0.\n\nThis field is mutually exclusive with the `amount_details[tax][total_tax_amount]` field."}},"description":"Contains information about the tax on the item.","x-stripeMostCommon":["total_tax_amount"]},"unit_cost":{"type":"integer","description":"The unit cost of the line item represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0."},"unit_of_measure":{"maxLength":12,"type":"string","description":"A unit of measure for the line item, such as gallons, feet, meters, etc."}},"x-stripeMostCommon":["discount_amount","payment_method_options","product_code","product_name","quantity","tax","unit_cost","unit_of_measure"]}},{"type":"string","enum":[""]}]},"shipping":{"description":"Contains information about the shipping portion of the amount.","anyOf":[{"title":"amount_details_shipping_param","type":"object","properties":{"amount":{"description":"If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than or equal to 0.","anyOf":[{"type":"integer"},{"type":"string","enum":[""]}]},"from_postal_code":{"description":"If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed.","anyOf":[{"maxLength":10,"type":"string"},{"type":"string","enum":[""]}]},"to_postal_code":{"description":"If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed.","anyOf":[{"maxLength":10,"type":"string"},{"type":"string","enum":[""]}]}},"x-stripeMostCommon":["amount","from_postal_code","to_postal_code"]},{"type":"string","enum":[""]}]},"tax":{"description":"Contains information about the tax portion of the amount.","anyOf":[{"title":"amount_details_tax_param","required":["total_tax_amount"],"type":"object","properties":{"total_tax_amount":{"type":"integer","description":"The total amount of tax on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0.\n\nThis field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field."}},"x-stripeMostCommon":["total_tax_amount"]},{"type":"string","enum":[""]}]}},"description":"Provides industry-specific information about the amount.","x-stripeMostCommon":["discount_amount","enforce_arithmetic_validation","line_items","shipping","surcharge","tax"]},"application_fee_amount":{"type":"integer","description":"The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts)."},"description":{"maxLength":1000,"type":"string","description":"An arbitrary string attached to the object. Often useful for displaying to users."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"hooks":{"title":"async_workflows_param","type":"object","properties":{"inputs":{"title":"async_workflows_inputs_param","type":"object","properties":{"tax":{"title":"async_workflows_inputs_tax_param","required":["calculation"],"type":"object","properties":{"calculation":{"description":"The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]}},"description":"Tax arguments for automations","x-stripeMostCommon":["calculation"]}},"description":"Arguments passed in automations","x-stripeMostCommon":["tax"]}},"description":"Automations to be run during the PaymentIntent lifecycle","x-stripeMostCommon":["inputs"]},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"payment_details":{"title":"payment_details_order_customer_reference_param","type":"object","properties":{"customer_reference":{"description":"A unique value to identify the customer. This field is available only for card payments.\n\nThis field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]},"order_reference":{"description":"A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.\n\nFor Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]}},"description":"Provides industry-specific information about the charge."},"statement_descriptor":{"maxLength":22,"type":"string","description":"Text that appears on the customer's statement as the statement descriptor for a non-card or card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors)."},"transfer_data":{"title":"transfer_data_update_auth_params","type":"object","properties":{"amount":{"type":"integer","description":"The amount that will be transferred automatically when a charge succeeds."}},"description":"The parameters used to automatically create a transfer after the payment is captured.\nLearn more about the [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts).","x-stripeMostCommon":["amount"]}},"additionalProperties":false,"x-stripeMostCommon":["amount","description","metadata","statement_descriptor"]},"encoding":{"amount_details":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"hooks":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true},"payment_details":{"style":"deepObject","explode":true},"transfer_data":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment_intent"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/payment_intents/{intent}/verify_microdeposits":{"post":{"summary":"Verify microdeposits on a PaymentIntent","description":"Verifies microdeposits on a PaymentIntent object.
","operationId":"PostPaymentIntentsIntentVerifyMicrodeposits","parameters":[{"name":"intent","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"amounts":{"type":"array","description":"Two positive integers, in *cents*, equal to the values of the microdeposits sent to the bank account.","items":{"type":"integer"}},"descriptor_code":{"maxLength":5000,"type":"string","description":"A six-character code starting with SM present in the microdeposit sent to the bank account."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}}},"additionalProperties":false,"x-stripeMostCommon":["amounts","descriptor_code"]},"encoding":{"amounts":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment_intent"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/payment_links":{"get":{"summary":"List all payment links","description":"Returns a list of your payment links.
","operationId":"GetPaymentLinks","parameters":[{"name":"active","in":"query","description":"Only return payment links that are active or inactive (e.g., pass `false` to list all inactive payment links).","required":false,"style":"form","explode":true,"schema":{"type":"boolean"}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"PaymentLinksResourcePaymentLinkList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/payment_link"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/payment_links","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create a payment link","description":"Creates a payment link.
","operationId":"PostPaymentLinks","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["line_items"],"type":"object","properties":{"after_completion":{"title":"after_completion_params","required":["type"],"type":"object","properties":{"hosted_confirmation":{"title":"after_completion_confirmation_page_params","type":"object","properties":{"custom_message":{"maxLength":500,"type":"string","description":"A custom message to display to the customer after the purchase is complete."}},"description":"Configuration when `type=hosted_confirmation`.","x-stripeMostCommon":["custom_message"]},"redirect":{"title":"after_completion_redirect_params","required":["url"],"type":"object","properties":{"url":{"type":"string","description":"The URL the customer will be redirected to after the purchase is complete. You can embed `{CHECKOUT_SESSION_ID}` into the URL to have the `id` of the completed [checkout session](https://docs.stripe.com/api/checkout/sessions/object#checkout_session_object-id) included."}},"description":"Configuration when `type=redirect`.","x-stripeMostCommon":["url"]},"type":{"type":"string","description":"The specified behavior after the purchase is complete. Either `redirect` or `hosted_confirmation`.","enum":["hosted_confirmation","redirect"]}},"description":"Behavior after the purchase is complete.","x-stripeMostCommon":["hosted_confirmation","redirect","type"]},"allow_promotion_codes":{"type":"boolean","description":"Enables user redeemable promotion codes."},"application_fee_amount":{"type":"integer","description":"The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. Can only be applied when there are no line items with recurring prices."},"application_fee_percent":{"type":"number","description":"A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. There must be at least 1 line item with a recurring price to use this field."},"automatic_tax":{"title":"automatic_tax_params","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Set to `true` to [calculate tax automatically](https://docs.stripe.com/tax) using the customer's location.\n\nEnabling this parameter causes the payment link to collect any billing address information necessary for tax calculation."},"liability":{"title":"param","required":["type"],"type":"object","properties":{"account":{"type":"string","description":"The connected account being referenced when `type` is `account`."},"type":{"type":"string","description":"Type of the account referenced in the request.","enum":["account","self"],"x-stripeBypassValidation":true}},"description":"The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.","x-stripeMostCommon":["account","type"]}},"description":"Configuration for automatic tax collection.","x-stripeMostCommon":["enabled","liability"]},"billing_address_collection":{"type":"string","description":"Configuration for collecting the customer's billing address. Defaults to `auto`.","enum":["auto","required"]},"consent_collection":{"title":"consent_collection_params","type":"object","properties":{"payment_method_reuse_agreement":{"title":"payment_method_reuse_agreement_params","required":["position"],"type":"object","properties":{"position":{"type":"string","description":"Determines the position and visibility of the payment method reuse agreement in the UI. When set to `auto`, Stripe's\ndefaults will be used. When set to `hidden`, the payment method reuse agreement text will always be hidden in the UI.","enum":["auto","hidden"]}},"description":"Determines the display of payment method reuse agreement text in the UI. If set to `hidden`, it will hide legal text related to the reuse of a payment method.","x-stripeMostCommon":["position"]},"promotions":{"type":"string","description":"If set to `auto`, enables the collection of customer consent for promotional communications. The Checkout\nSession will determine whether to display an option to opt into promotional communication\nfrom the merchant depending on the customer's locale. Only available to US merchants.","enum":["auto","none"]},"terms_of_service":{"type":"string","description":"If set to `required`, it requires customers to check a terms of service checkbox before being able to pay.\nThere must be a valid terms of service URL set in your [Dashboard settings](https://dashboard.stripe.com/settings/public).","enum":["none","required"]}},"description":"Configure fields to gather active consent from customers.","x-stripeMostCommon":["payment_method_reuse_agreement","promotions","terms_of_service"]},"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies) and supported by each line item's price.","format":"currency"},"custom_fields":{"type":"array","description":"Collect additional information from your customer using custom fields. Up to 3 fields are supported. You can't set this parameter if `ui_mode` is `custom`.","items":{"title":"custom_field_param","required":["key","label","type"],"type":"object","properties":{"dropdown":{"title":"custom_field_dropdown_param","required":["options"],"type":"object","properties":{"default_value":{"maxLength":100,"type":"string","description":"The value that pre-fills the field on the payment page.Must match a `value` in the `options` array."},"options":{"type":"array","description":"The options available for the customer to select. Up to 200 options allowed.","items":{"title":"custom_field_option_param","required":["label","value"],"type":"object","properties":{"label":{"maxLength":100,"type":"string","description":"The label for the option, displayed to the customer. Up to 100 characters."},"value":{"maxLength":100,"type":"string","description":"The value for this option, not displayed to the customer, used by your integration to reconcile the option selected by the customer. Must be unique to this option, alphanumeric, and up to 100 characters."}},"x-stripeMostCommon":["label","value"]}}},"description":"Configuration for `type=dropdown` fields.","x-stripeMostCommon":["default_value","options"]},"key":{"maxLength":200,"type":"string","description":"String of your choice that your integration can use to reconcile this field. Must be unique to this field, alphanumeric, and up to 200 characters."},"label":{"title":"custom_field_label_param","required":["custom","type"],"type":"object","properties":{"custom":{"maxLength":50,"type":"string","description":"Custom text for the label, displayed to the customer. Up to 50 characters."},"type":{"type":"string","description":"The type of the label.","enum":["custom"]}},"description":"The label for the field, displayed to the customer.","x-stripeMostCommon":["custom","type"]},"numeric":{"title":"custom_field_numeric_param","type":"object","properties":{"default_value":{"maxLength":255,"type":"string","description":"The value that pre-fills the field on the payment page."},"maximum_length":{"type":"integer","description":"The maximum character length constraint for the customer's input."},"minimum_length":{"type":"integer","description":"The minimum character length requirement for the customer's input."}},"description":"Configuration for `type=numeric` fields.","x-stripeMostCommon":["default_value","maximum_length","minimum_length"]},"optional":{"type":"boolean","description":"Whether the customer is required to complete the field before completing the Checkout Session. Defaults to `false`."},"text":{"title":"custom_field_text_param","type":"object","properties":{"default_value":{"maxLength":255,"type":"string","description":"The value that pre-fills the field on the payment page."},"maximum_length":{"type":"integer","description":"The maximum character length constraint for the customer's input."},"minimum_length":{"type":"integer","description":"The minimum character length requirement for the customer's input."}},"description":"Configuration for `type=text` fields.","x-stripeMostCommon":["default_value","maximum_length","minimum_length"]},"type":{"type":"string","description":"The type of the field.","enum":["dropdown","numeric","text"]}},"x-stripeMostCommon":["dropdown","key","label","numeric","optional","text","type"]}},"custom_text":{"title":"custom_text_param","type":"object","properties":{"after_submit":{"description":"Custom text that should be displayed after the payment confirmation button.","anyOf":[{"title":"custom_text_position_param","required":["message"],"type":"object","properties":{"message":{"maxLength":1200,"type":"string","description":"Text can be up to 1200 characters in length."}},"x-stripeMostCommon":["message"]},{"type":"string","enum":[""]}]},"shipping_address":{"description":"Custom text that should be displayed alongside shipping address collection.","anyOf":[{"title":"custom_text_position_param","required":["message"],"type":"object","properties":{"message":{"maxLength":1200,"type":"string","description":"Text can be up to 1200 characters in length."}},"x-stripeMostCommon":["message"]},{"type":"string","enum":[""]}]},"submit":{"description":"Custom text that should be displayed alongside the payment confirmation button.","anyOf":[{"title":"custom_text_position_param","required":["message"],"type":"object","properties":{"message":{"maxLength":1200,"type":"string","description":"Text can be up to 1200 characters in length."}},"x-stripeMostCommon":["message"]},{"type":"string","enum":[""]}]},"terms_of_service_acceptance":{"description":"Custom text that should be displayed in place of the default terms of service agreement text.","anyOf":[{"title":"custom_text_position_param","required":["message"],"type":"object","properties":{"message":{"maxLength":1200,"type":"string","description":"Text can be up to 1200 characters in length."}},"x-stripeMostCommon":["message"]},{"type":"string","enum":[""]}]}},"description":"Display additional text for your customers using custom text. You can't set this parameter if `ui_mode` is `custom`.","x-stripeMostCommon":["after_submit","shipping_address","submit","terms_of_service_acceptance"]},"customer_creation":{"type":"string","description":"Configures whether [checkout sessions](https://docs.stripe.com/api/checkout/sessions) created by this payment link create a [Customer](https://docs.stripe.com/api/customers).","enum":["always","if_required"]},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"inactive_message":{"maxLength":500,"type":"string","description":"The custom message to be displayed to a customer when a payment link is no longer active."},"invoice_creation":{"title":"invoice_creation_create_params","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the feature is enabled"},"invoice_data":{"title":"invoice_settings_params","type":"object","properties":{"account_tax_ids":{"description":"The account tax IDs associated with the invoice.","anyOf":[{"type":"array","items":{"maxLength":5000,"type":"string"}},{"type":"string","enum":[""]}]},"custom_fields":{"description":"Default custom fields to be displayed on invoices for this customer.","anyOf":[{"type":"array","items":{"title":"custom_field_params","required":["name","value"],"type":"object","properties":{"name":{"maxLength":40,"type":"string","description":"The name of the custom field. This may be up to 40 characters."},"value":{"maxLength":140,"type":"string","description":"The value of the custom field. This may be up to 140 characters."}},"x-stripeMostCommon":["name","value"]}},{"type":"string","enum":[""]}]},"description":{"maxLength":1500,"type":"string","description":"An arbitrary string attached to the object. Often useful for displaying to users."},"footer":{"maxLength":5000,"type":"string","description":"Default footer to be displayed on invoices for this customer."},"issuer":{"title":"param","required":["type"],"type":"object","properties":{"account":{"type":"string","description":"The connected account being referenced when `type` is `account`."},"type":{"type":"string","description":"Type of the account referenced in the request.","enum":["account","self"],"x-stripeBypassValidation":true}},"description":"The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.","x-stripeMostCommon":["account","type"]},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"rendering_options":{"description":"Default options for invoice PDF rendering for this customer.","anyOf":[{"title":"checkout_rendering_options_param","type":"object","properties":{"amount_tax_display":{"type":"string","description":"How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.","enum":["","exclude_tax","include_inclusive_tax"]},"template":{"maxLength":5000,"type":"string","description":"ID of the invoice rendering template to use for this invoice."}},"x-stripeMostCommon":["amount_tax_display","invoice_title","template"]},{"type":"string","enum":[""]}]}},"description":"Invoice PDF configuration.","x-stripeMostCommon":["account_tax_ids","custom_fields","description","footer","issuer","metadata","rendering_options"]}},"description":"Generate a post-purchase Invoice for one-time payments.","x-stripeMostCommon":["enabled","invoice_data"]},"line_items":{"type":"array","description":"The line items representing what is being sold. Each line item represents an item being sold. Up to 20 line items are supported.","items":{"title":"line_items_create_params","required":["quantity"],"type":"object","properties":{"adjustable_quantity":{"title":"adjustable_quantity_params","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Set to true if the quantity can be adjusted to any non-negative Integer."},"maximum":{"type":"integer","description":"The maximum quantity the customer can purchase. By default this value is 99. You can specify a value up to 999999."},"minimum":{"type":"integer","description":"The minimum quantity the customer can purchase. By default this value is 0. If there is only one item in the cart then that item's quantity cannot go down to 0."}},"description":"When set, provides configuration for this item’s quantity to be adjusted by the customer during checkout.","x-stripeMostCommon":["enabled","maximum","minimum"]},"price":{"maxLength":5000,"type":"string","description":"The ID of the [Price](https://docs.stripe.com/api/prices) or [Plan](https://docs.stripe.com/api/plans) object. One of `price` or `price_data` is required."},"price_data":{"title":"custom_amount_price_data_with_product_data","required":["currency"],"type":"object","properties":{"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"product":{"maxLength":5000,"type":"string","description":"The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to. One of `product` or `product_data` is required."},"product_data":{"title":"product_data","required":["name"],"type":"object","properties":{"description":{"maxLength":40000,"type":"string","description":"The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes."},"images":{"type":"array","description":"A list of up to 8 URLs of images for this product, meant to be displayable to the customer.","items":{"type":"string"}},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"name":{"maxLength":5000,"type":"string","description":"The product's name, meant to be displayable to the customer."},"tax_code":{"maxLength":5000,"type":"string","description":"A [tax code](https://docs.stripe.com/tax/tax-categories) ID."},"unit_label":{"maxLength":12,"type":"string","description":"A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal."}},"description":"Data used to generate a new [Product](https://docs.stripe.com/api/products) object inline. One of `product` or `product_data` is required.","x-stripeMostCommon":["description","images","metadata","name","tax_code","tax_details","unit_label"]},"recurring":{"title":"recurring_adhoc","required":["interval"],"type":"object","properties":{"interval":{"type":"string","description":"Specifies billing frequency. Either `day`, `week`, `month` or `year`.","enum":["day","month","week","year"]},"interval_count":{"type":"integer","description":"The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks)."}},"description":"The recurring components of a price such as `interval` and `interval_count`.","x-stripeMostCommon":["interval"]},"tax_behavior":{"type":"string","description":"Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.","enum":["exclusive","inclusive","unspecified"]},"unit_amount":{"type":"integer","description":"A non-negative integer in cents (or local equivalent) representing how much to charge. One of `unit_amount` or `unit_amount_decimal` is required."},"unit_amount_decimal":{"type":"string","description":"Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.","format":"decimal"}},"description":"Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline. One of `price` or `price_data` is required.","x-stripeMostCommon":["currency","product","unit_amount"]},"quantity":{"type":"integer","description":"The quantity of the line item being purchased."}},"x-stripeMostCommon":["adjustable_quantity","price","price_data","quantity"]}},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. Metadata associated with this Payment Link will automatically be copied to [checkout sessions](https://docs.stripe.com/api/checkout/sessions) created by this payment link."},"name_collection":{"title":"name_collection_params","type":"object","properties":{"business":{"title":"name_collection_business_params","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Enable business name collection on the payment link. Defaults to `false`."},"optional":{"type":"boolean","description":"Whether the customer is required to provide their business name before checking out. Defaults to `false`."}},"description":"Controls settings applied for collecting the customer's business name.","x-stripeMostCommon":["enabled","optional"]},"individual":{"title":"name_collection_individual_params","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Enable individual name collection on the payment link. Defaults to `false`."},"optional":{"type":"boolean","description":"Whether the customer is required to provide their full name before checking out. Defaults to `false`."}},"description":"Controls settings applied for collecting the customer's individual name.","x-stripeMostCommon":["enabled","optional"]}},"description":"Controls settings applied for collecting the customer's name.","x-stripeMostCommon":["business","individual"]},"on_behalf_of":{"type":"string","description":"The account on behalf of which to charge."},"optional_items":{"type":"array","description":"A list of optional items the customer can add to their order at checkout. Use this parameter to pass one-time or recurring [Prices](https://docs.stripe.com/api/prices).\nThere is a maximum of 10 optional items allowed on a payment link, and the existing limits on the number of line items allowed on a payment link apply to the combined number of line items and optional items.\nThere is a maximum of 20 combined line items and optional items.","items":{"title":"optional_item_params","required":["price","quantity"],"type":"object","properties":{"adjustable_quantity":{"title":"optional_item_adjustable_quantity_params","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Set to true if the quantity can be adjusted to any non-negative integer."},"maximum":{"type":"integer","description":"The maximum quantity of this item the customer can purchase. By default this value is 99."},"minimum":{"type":"integer","description":"The minimum quantity of this item the customer must purchase, if they choose to purchase it. Because this item is optional, the customer will always be able to remove it from their order, even if the `minimum` configured here is greater than 0. By default this value is 0."}},"description":"When set, provides configuration for the customer to adjust the quantity of the line item created when a customer chooses to add this optional item to their order.","x-stripeMostCommon":["enabled","maximum","minimum"]},"price":{"maxLength":5000,"type":"string","description":"The ID of the [Price](https://docs.stripe.com/api/prices) or [Plan](https://docs.stripe.com/api/plans) object."},"quantity":{"type":"integer","description":"The initial quantity of the line item created when a customer chooses to add this optional item to their order."}},"x-stripeMostCommon":["adjustable_quantity","price","quantity"]}},"payment_intent_data":{"title":"payment_intent_data_params","type":"object","properties":{"capture_method":{"type":"string","description":"Controls when the funds will be captured from the customer's account.","enum":["automatic","automatic_async","manual"]},"description":{"maxLength":1000,"type":"string","description":"An arbitrary string attached to the object. Often useful for displaying to users."},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that will declaratively set metadata on [Payment Intents](https://docs.stripe.com/api/payment_intents) generated from this payment link. Unlike object-level metadata, this field is declarative. Updates will clear prior values."},"setup_future_usage":{"type":"string","description":"Indicates that you intend to [make future payments](https://docs.stripe.com/payments/payment-intents#future-usage) with the payment method collected by this Checkout Session.\n\nWhen setting this to `on_session`, Checkout will show a notice to the customer that their payment details will be saved.\n\nWhen setting this to `off_session`, Checkout will show a notice to the customer that their payment details will be saved and used for future payments.\n\nIf a Customer has been provided or Checkout creates a new Customer,Checkout will attach the payment method to the Customer.\n\nIf Checkout does not create a Customer, the payment method is not attached to a Customer. To reuse the payment method, you can retrieve it from the Checkout Session's PaymentIntent.\n\nWhen processing card payments, Checkout also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as SCA.","enum":["off_session","on_session"]},"statement_descriptor":{"maxLength":22,"type":"string","description":"Text that appears on the customer's statement as the statement descriptor for a non-card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).\n\nSetting this value for a card charge returns an error. For card charges, set the [statement_descriptor_suffix](https://docs.stripe.com/get-started/account/statement-descriptors#dynamic) instead."},"statement_descriptor_suffix":{"maxLength":22,"type":"string","description":"Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement."},"transfer_group":{"maxLength":5000,"type":"string","description":"A string that identifies the resulting payment as part of a group. See the PaymentIntents [use case for connected accounts](https://docs.stripe.com/connect/separate-charges-and-transfers) for details."}},"description":"A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in `payment` mode.","x-stripeMostCommon":["capture_method","description","metadata","setup_future_usage","statement_descriptor","statement_descriptor_suffix","transfer_group"]},"payment_method_collection":{"type":"string","description":"Specify whether Checkout should collect a payment method. When set to `if_required`, Checkout will not collect a payment method when the total due for the session is 0.This may occur if the Checkout Session includes a free trial or a discount.\n\nCan only be set in `subscription` mode. Defaults to `always`.\n\nIf you'd like information on how to collect a payment method outside of Checkout, read the guide on [configuring subscriptions with a free trial](https://docs.stripe.com/payments/checkout/free-trials).","enum":["always","if_required"]},"payment_method_types":{"type":"array","description":"The list of payment method types that customers can use. If no value is passed, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods) (20+ payment methods [supported](https://docs.stripe.com/payments/payment-methods/integration-options#payment-method-product-support)).","items":{"type":"string","enum":["affirm","afterpay_clearpay","alipay","alma","au_becs_debit","bacs_debit","bancontact","billie","blik","boleto","card","cashapp","eps","fpx","giropay","grabpay","ideal","klarna","konbini","link","mb_way","mobilepay","multibanco","oxxo","p24","pay_by_bank","paynow","paypal","payto","pix","promptpay","satispay","sepa_debit","sofort","swish","twint","upi","us_bank_account","wechat_pay","zip"],"x-stripeBypassValidation":true}},"phone_number_collection":{"title":"phone_number_collection_params","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Set to `true` to enable phone number collection."}},"description":"Controls phone number collection settings during checkout.\n\nWe recommend that you review your privacy policy and check with your legal contacts.","x-stripeMostCommon":["enabled"]},"restrictions":{"title":"restrictions_params","required":["completed_sessions"],"type":"object","properties":{"completed_sessions":{"title":"completed_sessions_params","required":["limit"],"type":"object","properties":{"limit":{"type":"integer","description":"The maximum number of checkout sessions that can be completed for the `completed_sessions` restriction to be met."}},"description":"Configuration for the `completed_sessions` restriction type.","x-stripeMostCommon":["limit"]}},"description":"Settings that restrict the usage of a payment link.","x-stripeMostCommon":["completed_sessions"]},"shipping_address_collection":{"title":"shipping_address_collection_params","required":["allowed_countries"],"type":"object","properties":{"allowed_countries":{"type":"array","description":"An array of two-letter ISO country codes representing which countries Checkout should provide as options for\nshipping locations.","items":{"type":"string","enum":["AC","AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CV","CW","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MK","ML","MM","MN","MO","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SZ","TA","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","US","UY","UZ","VA","VC","VE","VG","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW","ZZ"]}}},"description":"Configuration for collecting the customer's shipping address.","x-stripeMostCommon":["allowed_countries"]},"shipping_options":{"type":"array","description":"The shipping rate options to apply to [checkout sessions](https://docs.stripe.com/api/checkout/sessions) created by this payment link.","items":{"title":"shipping_option_params","type":"object","properties":{"shipping_rate":{"maxLength":5000,"type":"string","description":"The ID of the Shipping Rate to use for this shipping option."}},"x-stripeMostCommon":["shipping_rate"]}},"submit_type":{"type":"string","description":"Describes the type of transaction being performed in order to customize relevant text on the page, such as the submit button. Changing this value will also affect the hostname in the [url](https://docs.stripe.com/api/payment_links/payment_links/object#url) property (example: `donate.stripe.com`).","enum":["auto","book","donate","pay","subscribe"]},"subscription_data":{"title":"subscription_data_params","type":"object","properties":{"description":{"maxLength":500,"type":"string","description":"The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs."},"invoice_settings":{"title":"subscription_data_invoice_settings_params","type":"object","properties":{"issuer":{"title":"param","required":["type"],"type":"object","properties":{"account":{"type":"string","description":"The connected account being referenced when `type` is `account`."},"type":{"type":"string","description":"Type of the account referenced in the request.","enum":["account","self"],"x-stripeBypassValidation":true}},"description":"The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.","x-stripeMostCommon":["account","type"]}},"description":"All invoices will be billed using the specified settings.","x-stripeMostCommon":["issuer"]},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that will declaratively set metadata on [Subscriptions](https://docs.stripe.com/api/subscriptions) generated from this payment link. Unlike object-level metadata, this field is declarative. Updates will clear prior values."},"trial_period_days":{"type":"integer","description":"Integer representing the number of trial period days before the customer is charged for the first time. Has to be at least 1."},"trial_settings":{"title":"trial_settings_config","required":["end_behavior"],"type":"object","properties":{"end_behavior":{"title":"end_behavior","required":["missing_payment_method"],"type":"object","properties":{"missing_payment_method":{"type":"string","description":"Indicates how the subscription should change when the trial ends if the user did not provide a payment method.","enum":["cancel","create_invoice","pause"]}},"description":"Defines how the subscription should behave when the user's free trial ends.","x-stripeMostCommon":["missing_payment_method"]}},"description":"Settings related to subscription trials.","x-stripeMostCommon":["end_behavior"]}},"description":"When creating a subscription, the specified configuration data will be used. There must be at least one line item with a recurring price to use `subscription_data`.","x-stripeMostCommon":["description","invoice_settings","metadata","trial_period_days","trial_settings"]},"tax_id_collection":{"title":"tax_id_collection_params","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Enable tax ID collection during checkout. Defaults to `false`."},"required":{"type":"string","description":"Describes whether a tax ID is required during checkout. Defaults to `never`. You can't set this parameter if `ui_mode` is `custom`.","enum":["if_supported","never"]}},"description":"Controls tax ID collection during checkout.","x-stripeMostCommon":["enabled","required"]},"transfer_data":{"title":"transfer_data_params","required":["destination"],"type":"object","properties":{"amount":{"type":"integer","description":"The amount that will be transferred automatically when a charge succeeds."},"destination":{"type":"string","description":"If specified, successful charges will be attributed to the destination\naccount for tax reporting, and the funds from charges will be transferred\nto the destination account. The ID of the resulting transfer will be\nreturned on the successful charge's `transfer` field."}},"description":"The account (if any) the payments will be attributed to for tax reporting, and where funds from each payment will be transferred to.","x-stripeMostCommon":["amount","destination"]}},"additionalProperties":false,"x-stripeMostCommon":["line_items","metadata"]},"encoding":{"after_completion":{"style":"deepObject","explode":true},"automatic_tax":{"style":"deepObject","explode":true},"consent_collection":{"style":"deepObject","explode":true},"custom_fields":{"style":"deepObject","explode":true},"custom_text":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"invoice_creation":{"style":"deepObject","explode":true},"line_items":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true},"name_collection":{"style":"deepObject","explode":true},"optional_items":{"style":"deepObject","explode":true},"payment_intent_data":{"style":"deepObject","explode":true},"payment_method_types":{"style":"deepObject","explode":true},"phone_number_collection":{"style":"deepObject","explode":true},"restrictions":{"style":"deepObject","explode":true},"shipping_address_collection":{"style":"deepObject","explode":true},"shipping_options":{"style":"deepObject","explode":true},"subscription_data":{"style":"deepObject","explode":true},"tax_id_collection":{"style":"deepObject","explode":true},"transfer_data":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment_link"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/payment_links/{payment_link}":{"get":{"summary":"Retrieve payment link","description":"Retrieve a payment link.
","operationId":"GetPaymentLinksPaymentLink","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"payment_link","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment_link"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Update a payment link","description":"Updates a payment link.
","operationId":"PostPaymentLinksPaymentLink","parameters":[{"name":"payment_link","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"active":{"type":"boolean","description":"Whether the payment link's `url` is active. If `false`, customers visiting the URL will be shown a page saying that the link has been deactivated."},"after_completion":{"title":"after_completion_params","required":["type"],"type":"object","properties":{"hosted_confirmation":{"title":"after_completion_confirmation_page_params","type":"object","properties":{"custom_message":{"maxLength":500,"type":"string","description":"A custom message to display to the customer after the purchase is complete."}},"description":"Configuration when `type=hosted_confirmation`.","x-stripeMostCommon":["custom_message"]},"redirect":{"title":"after_completion_redirect_params","required":["url"],"type":"object","properties":{"url":{"type":"string","description":"The URL the customer will be redirected to after the purchase is complete. You can embed `{CHECKOUT_SESSION_ID}` into the URL to have the `id` of the completed [checkout session](https://docs.stripe.com/api/checkout/sessions/object#checkout_session_object-id) included."}},"description":"Configuration when `type=redirect`.","x-stripeMostCommon":["url"]},"type":{"type":"string","description":"The specified behavior after the purchase is complete. Either `redirect` or `hosted_confirmation`.","enum":["hosted_confirmation","redirect"]}},"description":"Behavior after the purchase is complete.","x-stripeMostCommon":["hosted_confirmation","redirect","type"]},"allow_promotion_codes":{"type":"boolean","description":"Enables user redeemable promotion codes."},"automatic_tax":{"title":"automatic_tax_params","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Set to `true` to [calculate tax automatically](https://docs.stripe.com/tax) using the customer's location.\n\nEnabling this parameter causes the payment link to collect any billing address information necessary for tax calculation."},"liability":{"title":"param","required":["type"],"type":"object","properties":{"account":{"type":"string","description":"The connected account being referenced when `type` is `account`."},"type":{"type":"string","description":"Type of the account referenced in the request.","enum":["account","self"],"x-stripeBypassValidation":true}},"description":"The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.","x-stripeMostCommon":["account","type"]}},"description":"Configuration for automatic tax collection.","x-stripeMostCommon":["enabled","liability"]},"billing_address_collection":{"type":"string","description":"Configuration for collecting the customer's billing address. Defaults to `auto`.","enum":["auto","required"]},"custom_fields":{"description":"Collect additional information from your customer using custom fields. Up to 3 fields are supported. You can't set this parameter if `ui_mode` is `custom`.","anyOf":[{"type":"array","items":{"title":"custom_field_param","required":["key","label","type"],"type":"object","properties":{"dropdown":{"title":"custom_field_dropdown_param","required":["options"],"type":"object","properties":{"default_value":{"maxLength":100,"type":"string","description":"The value that pre-fills the field on the payment page.Must match a `value` in the `options` array."},"options":{"type":"array","description":"The options available for the customer to select. Up to 200 options allowed.","items":{"title":"custom_field_option_param","required":["label","value"],"type":"object","properties":{"label":{"maxLength":100,"type":"string","description":"The label for the option, displayed to the customer. Up to 100 characters."},"value":{"maxLength":100,"type":"string","description":"The value for this option, not displayed to the customer, used by your integration to reconcile the option selected by the customer. Must be unique to this option, alphanumeric, and up to 100 characters."}},"x-stripeMostCommon":["label","value"]}}},"description":"Configuration for `type=dropdown` fields.","x-stripeMostCommon":["default_value","options"]},"key":{"maxLength":200,"type":"string","description":"String of your choice that your integration can use to reconcile this field. Must be unique to this field, alphanumeric, and up to 200 characters."},"label":{"title":"custom_field_label_param","required":["custom","type"],"type":"object","properties":{"custom":{"maxLength":50,"type":"string","description":"Custom text for the label, displayed to the customer. Up to 50 characters."},"type":{"type":"string","description":"The type of the label.","enum":["custom"]}},"description":"The label for the field, displayed to the customer.","x-stripeMostCommon":["custom","type"]},"numeric":{"title":"custom_field_numeric_param","type":"object","properties":{"default_value":{"maxLength":255,"type":"string","description":"The value that pre-fills the field on the payment page."},"maximum_length":{"type":"integer","description":"The maximum character length constraint for the customer's input."},"minimum_length":{"type":"integer","description":"The minimum character length requirement for the customer's input."}},"description":"Configuration for `type=numeric` fields.","x-stripeMostCommon":["default_value","maximum_length","minimum_length"]},"optional":{"type":"boolean","description":"Whether the customer is required to complete the field before completing the Checkout Session. Defaults to `false`."},"text":{"title":"custom_field_text_param","type":"object","properties":{"default_value":{"maxLength":255,"type":"string","description":"The value that pre-fills the field on the payment page."},"maximum_length":{"type":"integer","description":"The maximum character length constraint for the customer's input."},"minimum_length":{"type":"integer","description":"The minimum character length requirement for the customer's input."}},"description":"Configuration for `type=text` fields.","x-stripeMostCommon":["default_value","maximum_length","minimum_length"]},"type":{"type":"string","description":"The type of the field.","enum":["dropdown","numeric","text"]}},"x-stripeMostCommon":["dropdown","key","label","numeric","optional","text","type"]}},{"type":"string","enum":[""]}]},"custom_text":{"title":"custom_text_param","type":"object","properties":{"after_submit":{"description":"Custom text that should be displayed after the payment confirmation button.","anyOf":[{"title":"custom_text_position_param","required":["message"],"type":"object","properties":{"message":{"maxLength":1200,"type":"string","description":"Text can be up to 1200 characters in length."}},"x-stripeMostCommon":["message"]},{"type":"string","enum":[""]}]},"shipping_address":{"description":"Custom text that should be displayed alongside shipping address collection.","anyOf":[{"title":"custom_text_position_param","required":["message"],"type":"object","properties":{"message":{"maxLength":1200,"type":"string","description":"Text can be up to 1200 characters in length."}},"x-stripeMostCommon":["message"]},{"type":"string","enum":[""]}]},"submit":{"description":"Custom text that should be displayed alongside the payment confirmation button.","anyOf":[{"title":"custom_text_position_param","required":["message"],"type":"object","properties":{"message":{"maxLength":1200,"type":"string","description":"Text can be up to 1200 characters in length."}},"x-stripeMostCommon":["message"]},{"type":"string","enum":[""]}]},"terms_of_service_acceptance":{"description":"Custom text that should be displayed in place of the default terms of service agreement text.","anyOf":[{"title":"custom_text_position_param","required":["message"],"type":"object","properties":{"message":{"maxLength":1200,"type":"string","description":"Text can be up to 1200 characters in length."}},"x-stripeMostCommon":["message"]},{"type":"string","enum":[""]}]}},"description":"Display additional text for your customers using custom text. You can't set this parameter if `ui_mode` is `custom`.","x-stripeMostCommon":["after_submit","shipping_address","submit","terms_of_service_acceptance"]},"customer_creation":{"type":"string","description":"Configures whether [checkout sessions](https://docs.stripe.com/api/checkout/sessions) created by this payment link create a [Customer](https://docs.stripe.com/api/customers).","enum":["always","if_required"]},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"inactive_message":{"description":"The custom message to be displayed to a customer when a payment link is no longer active.","anyOf":[{"maxLength":500,"type":"string"},{"type":"string","enum":[""]}]},"invoice_creation":{"title":"invoice_creation_update_params","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the feature is enabled"},"invoice_data":{"title":"invoice_settings_params","type":"object","properties":{"account_tax_ids":{"description":"The account tax IDs associated with the invoice.","anyOf":[{"type":"array","items":{"maxLength":5000,"type":"string"}},{"type":"string","enum":[""]}]},"custom_fields":{"description":"Default custom fields to be displayed on invoices for this customer.","anyOf":[{"type":"array","items":{"title":"custom_field_params","required":["name","value"],"type":"object","properties":{"name":{"maxLength":40,"type":"string","description":"The name of the custom field. This may be up to 40 characters."},"value":{"maxLength":140,"type":"string","description":"The value of the custom field. This may be up to 140 characters."}},"x-stripeMostCommon":["name","value"]}},{"type":"string","enum":[""]}]},"description":{"maxLength":1500,"type":"string","description":"An arbitrary string attached to the object. Often useful for displaying to users."},"footer":{"maxLength":5000,"type":"string","description":"Default footer to be displayed on invoices for this customer."},"issuer":{"title":"param","required":["type"],"type":"object","properties":{"account":{"type":"string","description":"The connected account being referenced when `type` is `account`."},"type":{"type":"string","description":"Type of the account referenced in the request.","enum":["account","self"],"x-stripeBypassValidation":true}},"description":"The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.","x-stripeMostCommon":["account","type"]},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"rendering_options":{"description":"Default options for invoice PDF rendering for this customer.","anyOf":[{"title":"checkout_rendering_options_param","type":"object","properties":{"amount_tax_display":{"type":"string","description":"How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.","enum":["","exclude_tax","include_inclusive_tax"]},"template":{"maxLength":5000,"type":"string","description":"ID of the invoice rendering template to use for this invoice."}},"x-stripeMostCommon":["amount_tax_display","invoice_title","template"]},{"type":"string","enum":[""]}]}},"description":"Invoice PDF configuration.","x-stripeMostCommon":["account_tax_ids","custom_fields","description","footer","issuer","metadata","rendering_options"]}},"description":"Generate a post-purchase Invoice for one-time payments.","x-stripeMostCommon":["enabled","invoice_data"]},"line_items":{"type":"array","description":"The line items representing what is being sold. Each line item represents an item being sold. Up to 20 line items are supported.","items":{"title":"line_items_update_params","required":["id"],"type":"object","properties":{"adjustable_quantity":{"title":"adjustable_quantity_params","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Set to true if the quantity can be adjusted to any non-negative Integer."},"maximum":{"type":"integer","description":"The maximum quantity the customer can purchase. By default this value is 99. You can specify a value up to 999999."},"minimum":{"type":"integer","description":"The minimum quantity the customer can purchase. By default this value is 0. If there is only one item in the cart then that item's quantity cannot go down to 0."}},"description":"When set, provides configuration for this item’s quantity to be adjusted by the customer during checkout.","x-stripeMostCommon":["enabled","maximum","minimum"]},"id":{"maxLength":5000,"type":"string","description":"The ID of an existing line item on the payment link."},"quantity":{"type":"integer","description":"The quantity of the line item being purchased."}},"x-stripeMostCommon":["adjustable_quantity","id","price","quantity"]}},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. Metadata associated with this Payment Link will automatically be copied to [checkout sessions](https://docs.stripe.com/api/checkout/sessions) created by this payment link."},"name_collection":{"description":"Controls settings applied for collecting the customer's name.","anyOf":[{"title":"name_collection_params","type":"object","properties":{"business":{"title":"name_collection_business_params","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Enable business name collection on the payment link. Defaults to `false`."},"optional":{"type":"boolean","description":"Whether the customer is required to provide their business name before checking out. Defaults to `false`."}},"description":"Controls settings applied for collecting the customer's business name.","x-stripeMostCommon":["enabled","optional"]},"individual":{"title":"name_collection_individual_params","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Enable individual name collection on the payment link. Defaults to `false`."},"optional":{"type":"boolean","description":"Whether the customer is required to provide their full name before checking out. Defaults to `false`."}},"description":"Controls settings applied for collecting the customer's individual name.","x-stripeMostCommon":["enabled","optional"]}},"x-stripeMostCommon":["business","individual"]},{"type":"string","enum":[""]}]},"optional_items":{"description":"A list of optional items the customer can add to their order at checkout. Use this parameter to pass one-time or recurring [Prices](https://docs.stripe.com/api/prices).\nThere is a maximum of 10 optional items allowed on a payment link, and the existing limits on the number of line items allowed on a payment link apply to the combined number of line items and optional items.\nThere is a maximum of 20 combined line items and optional items.","anyOf":[{"type":"array","items":{"title":"optional_item_params","required":["price","quantity"],"type":"object","properties":{"adjustable_quantity":{"title":"optional_item_adjustable_quantity_params","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Set to true if the quantity can be adjusted to any non-negative integer."},"maximum":{"type":"integer","description":"The maximum quantity of this item the customer can purchase. By default this value is 99."},"minimum":{"type":"integer","description":"The minimum quantity of this item the customer must purchase, if they choose to purchase it. Because this item is optional, the customer will always be able to remove it from their order, even if the `minimum` configured here is greater than 0. By default this value is 0."}},"description":"When set, provides configuration for the customer to adjust the quantity of the line item created when a customer chooses to add this optional item to their order.","x-stripeMostCommon":["enabled","maximum","minimum"]},"price":{"maxLength":5000,"type":"string","description":"The ID of the [Price](https://docs.stripe.com/api/prices) or [Plan](https://docs.stripe.com/api/plans) object."},"quantity":{"type":"integer","description":"The initial quantity of the line item created when a customer chooses to add this optional item to their order."}},"x-stripeMostCommon":["adjustable_quantity","price","quantity"]}},{"type":"string","enum":[""]}]},"payment_intent_data":{"title":"payment_intent_data_update_params","type":"object","properties":{"description":{"description":"An arbitrary string attached to the object. Often useful for displaying to users.","anyOf":[{"maxLength":1000,"type":"string"},{"type":"string","enum":[""]}]},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that will declaratively set metadata on [Payment Intents](https://docs.stripe.com/api/payment_intents) generated from this payment link. Unlike object-level metadata, this field is declarative. Updates will clear prior values.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"statement_descriptor":{"description":"Text that appears on the customer's statement as the statement descriptor for a non-card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).\n\nSetting this value for a card charge returns an error. For card charges, set the [statement_descriptor_suffix](https://docs.stripe.com/get-started/account/statement-descriptors#dynamic) instead.","anyOf":[{"maxLength":22,"type":"string"},{"type":"string","enum":[""]}]},"statement_descriptor_suffix":{"description":"Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement.","anyOf":[{"maxLength":22,"type":"string"},{"type":"string","enum":[""]}]},"transfer_group":{"description":"A string that identifies the resulting payment as part of a group. See the PaymentIntents [use case for connected accounts](https://docs.stripe.com/connect/separate-charges-and-transfers) for details.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]}},"description":"A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in `payment` mode.","x-stripeMostCommon":["description","metadata","setup_future_usage","statement_descriptor","statement_descriptor_suffix","transfer_group"]},"payment_method_collection":{"type":"string","description":"Specify whether Checkout should collect a payment method. When set to `if_required`, Checkout will not collect a payment method when the total due for the session is 0.This may occur if the Checkout Session includes a free trial or a discount.\n\nCan only be set in `subscription` mode. Defaults to `always`.\n\nIf you'd like information on how to collect a payment method outside of Checkout, read the guide on [configuring subscriptions with a free trial](https://docs.stripe.com/payments/checkout/free-trials).","enum":["always","if_required"]},"payment_method_types":{"description":"The list of payment method types that customers can use. Pass an empty string to enable dynamic payment methods that use your [payment method settings](https://dashboard.stripe.com/settings/payment_methods).","anyOf":[{"type":"array","items":{"type":"string","enum":["affirm","afterpay_clearpay","alipay","alma","au_becs_debit","bacs_debit","bancontact","billie","blik","boleto","card","cashapp","eps","fpx","giropay","grabpay","ideal","klarna","konbini","link","mb_way","mobilepay","multibanco","oxxo","p24","pay_by_bank","paynow","paypal","payto","pix","promptpay","satispay","sepa_debit","sofort","swish","twint","upi","us_bank_account","wechat_pay","zip"],"x-stripeBypassValidation":true}},{"type":"string","enum":[""]}]},"phone_number_collection":{"title":"phone_number_collection_params","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Set to `true` to enable phone number collection."}},"description":"Controls phone number collection settings during checkout.\n\nWe recommend that you review your privacy policy and check with your legal contacts.","x-stripeMostCommon":["enabled"]},"restrictions":{"description":"Settings that restrict the usage of a payment link.","anyOf":[{"title":"restrictions_params","required":["completed_sessions"],"type":"object","properties":{"completed_sessions":{"title":"completed_sessions_params","required":["limit"],"type":"object","properties":{"limit":{"type":"integer","description":"The maximum number of checkout sessions that can be completed for the `completed_sessions` restriction to be met."}},"description":"Configuration for the `completed_sessions` restriction type.","x-stripeMostCommon":["limit"]}},"x-stripeMostCommon":["completed_sessions"]},{"type":"string","enum":[""]}]},"shipping_address_collection":{"description":"Configuration for collecting the customer's shipping address.","anyOf":[{"title":"shipping_address_collection_params","required":["allowed_countries"],"type":"object","properties":{"allowed_countries":{"type":"array","description":"An array of two-letter ISO country codes representing which countries Checkout should provide as options for\nshipping locations.","items":{"type":"string","enum":["AC","AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CV","CW","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MK","ML","MM","MN","MO","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SZ","TA","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","US","UY","UZ","VA","VC","VE","VG","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW","ZZ"]}}},"x-stripeMostCommon":["allowed_countries"]},{"type":"string","enum":[""]}]},"submit_type":{"type":"string","description":"Describes the type of transaction being performed in order to customize relevant text on the page, such as the submit button. Changing this value will also affect the hostname in the [url](https://docs.stripe.com/api/payment_links/payment_links/object#url) property (example: `donate.stripe.com`).","enum":["auto","book","donate","pay","subscribe"]},"subscription_data":{"title":"subscription_data_update_params","type":"object","properties":{"invoice_settings":{"title":"subscription_data_invoice_settings_params","type":"object","properties":{"issuer":{"title":"param","required":["type"],"type":"object","properties":{"account":{"type":"string","description":"The connected account being referenced when `type` is `account`."},"type":{"type":"string","description":"Type of the account referenced in the request.","enum":["account","self"],"x-stripeBypassValidation":true}},"description":"The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.","x-stripeMostCommon":["account","type"]}},"description":"All invoices will be billed using the specified settings.","x-stripeMostCommon":["issuer"]},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that will declaratively set metadata on [Subscriptions](https://docs.stripe.com/api/subscriptions) generated from this payment link. Unlike object-level metadata, this field is declarative. Updates will clear prior values.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"trial_period_days":{"description":"Integer representing the number of trial period days before the customer is charged for the first time. Has to be at least 1.","anyOf":[{"type":"integer"},{"type":"string","enum":[""]}]},"trial_settings":{"description":"Settings related to subscription trials.","anyOf":[{"title":"trial_settings_config","required":["end_behavior"],"type":"object","properties":{"end_behavior":{"title":"end_behavior","required":["missing_payment_method"],"type":"object","properties":{"missing_payment_method":{"type":"string","description":"Indicates how the subscription should change when the trial ends if the user did not provide a payment method.","enum":["cancel","create_invoice","pause"]}},"description":"Defines how the subscription should behave when the user's free trial ends.","x-stripeMostCommon":["missing_payment_method"]}},"x-stripeMostCommon":["end_behavior"]},{"type":"string","enum":[""]}]}},"description":"When creating a subscription, the specified configuration data will be used. There must be at least one line item with a recurring price to use `subscription_data`.","x-stripeMostCommon":["invoice_settings","metadata","trial_period_days","trial_settings"]},"tax_id_collection":{"title":"tax_id_collection_params","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Enable tax ID collection during checkout. Defaults to `false`."},"required":{"type":"string","description":"Describes whether a tax ID is required during checkout. Defaults to `never`. You can't set this parameter if `ui_mode` is `custom`.","enum":["if_supported","never"]}},"description":"Controls tax ID collection during checkout.","x-stripeMostCommon":["enabled","required"]}},"additionalProperties":false,"x-stripeMostCommon":["active","line_items","metadata"]},"encoding":{"after_completion":{"style":"deepObject","explode":true},"automatic_tax":{"style":"deepObject","explode":true},"custom_fields":{"style":"deepObject","explode":true},"custom_text":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"inactive_message":{"style":"deepObject","explode":true},"invoice_creation":{"style":"deepObject","explode":true},"line_items":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true},"name_collection":{"style":"deepObject","explode":true},"optional_items":{"style":"deepObject","explode":true},"payment_intent_data":{"style":"deepObject","explode":true},"payment_method_types":{"style":"deepObject","explode":true},"phone_number_collection":{"style":"deepObject","explode":true},"restrictions":{"style":"deepObject","explode":true},"shipping_address_collection":{"style":"deepObject","explode":true},"subscription_data":{"style":"deepObject","explode":true},"tax_id_collection":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment_link"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/payment_links/{payment_link}/line_items":{"get":{"summary":"Retrieve a payment link's line items","description":"When retrieving a payment link, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
","operationId":"GetPaymentLinksPaymentLinkLineItems","parameters":[{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"payment_link","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"PaymentLinksResourceListLineItems","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","description":"Details about each object.","items":{"$ref":"#/components/schemas/item"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/payment_method_configurations":{"get":{"summary":"List payment method configurations","description":"List payment method configurations
","operationId":"GetPaymentMethodConfigurations","parameters":[{"name":"application","in":"query","description":"The Connect application to filter by.","required":false,"style":"deepObject","explode":true,"schema":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"string","enum":[""]}]}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"PaymentMethodConfigResourcePaymentMethodConfigurationsList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/payment_method_configuration"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/payment_method_configurations","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create a payment method configuration","description":"Creates a payment method configuration
","operationId":"PostPaymentMethodConfigurations","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"acss_debit":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Canadian pre-authorized debit payments, check this [page](https://docs.stripe.com/payments/acss-debit) for more details like country availability.","x-stripeMostCommon":["display_preference"]},"affirm":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"[Affirm](https://www.affirm.com/) gives your customers a way to split purchases over a series of payments. Depending on the purchase, they can pay with four interest-free payments (Split Pay) or pay over a longer term (Installments), which might include interest. Check this [page](https://docs.stripe.com/payments/affirm) for more details like country availability.","x-stripeMostCommon":["display_preference"]},"afterpay_clearpay":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Afterpay gives your customers a way to pay for purchases in installments, check this [page](https://docs.stripe.com/payments/afterpay-clearpay) for more details like country availability. Afterpay is particularly popular among businesses selling fashion, beauty, and sports products.","x-stripeMostCommon":["display_preference"]},"alipay":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Alipay is a digital wallet in China that has more than a billion active users worldwide. Alipay users can pay on the web or on a mobile device using login credentials or their Alipay app. Alipay has a low dispute rate and reduces fraud by authenticating payments using the customer's login credentials. Check this [page](https://docs.stripe.com/payments/alipay) for more details.","x-stripeMostCommon":["display_preference"]},"alma":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Alma is a Buy Now, Pay Later payment method that offers customers the ability to pay in 2, 3, or 4 installments.","x-stripeMostCommon":["display_preference"]},"amazon_pay":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Amazon Pay is a wallet payment method that lets your customers check out the same way as on Amazon.","x-stripeMostCommon":["display_preference"]},"apple_pay":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Stripe users can accept [Apple Pay](https://stripe.com/payments/apple-pay) in iOS applications in iOS 9 and later, and on the web in Safari starting with iOS 10 or macOS Sierra. There are no additional fees to process Apple Pay payments, and the [pricing](https://stripe.com/pricing) is the same as other card transactions. Check this [page](https://docs.stripe.com/apple-pay) for more details.","x-stripeMostCommon":["display_preference"]},"apple_pay_later":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Apple Pay Later, a payment method for customers to buy now and pay later, gives your customers a way to split purchases into four installments across six weeks.","x-stripeMostCommon":["display_preference"]},"au_becs_debit":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Stripe users in Australia can accept Bulk Electronic Clearing System (BECS) direct debit payments from customers with an Australian bank account. Check this [page](https://docs.stripe.com/payments/au-becs-debit) for more details.","x-stripeMostCommon":["display_preference"]},"bacs_debit":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Stripe users in the UK can accept Bacs Direct Debit payments from customers with a UK bank account, check this [page](https://docs.stripe.com/payments/payment-methods/bacs-debit) for more details.","x-stripeMostCommon":["display_preference"]},"bancontact":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Bancontact is the most popular online payment method in Belgium, with over 15 million cards in circulation. [Customers](https://docs.stripe.com/api/customers) use a Bancontact card or mobile app linked to a Belgian bank account to make online payments that are secure, guaranteed, and confirmed immediately. Check this [page](https://docs.stripe.com/payments/bancontact) for more details.","x-stripeMostCommon":["display_preference"]},"billie":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Billie is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method that offers businesses Pay by Invoice where they offer payment terms ranging from 7-120 days. Customers are redirected from your website or app, authorize the payment with Billie, then return to your website or app. You get [immediate notification](/payments/payment-methods#payment-notification) of whether the payment succeeded or failed.","x-stripeMostCommon":["display_preference"]},"blik":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"BLIK is a [single use](https://docs.stripe.com/payments/payment-methods#usage) payment method that requires customers to authenticate their payments. When customers want to pay online using BLIK, they request a six-digit code from their banking application and enter it into the payment collection form. Check this [page](https://docs.stripe.com/payments/blik) for more details.","x-stripeMostCommon":["display_preference"]},"boleto":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Boleto is an official (regulated by the Central Bank of Brazil) payment method in Brazil. Check this [page](https://docs.stripe.com/payments/boleto) for more details.","x-stripeMostCommon":["display_preference"]},"card":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Cards are a popular way for consumers and businesses to pay online or in person. Stripe supports global and local card networks.","x-stripeMostCommon":["display_preference"]},"cartes_bancaires":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Cartes Bancaires is France's local card network. More than 95% of these cards are co-branded with either Visa or Mastercard, meaning you can process these cards over either Cartes Bancaires or the Visa or Mastercard networks. Check this [page](https://docs.stripe.com/payments/cartes-bancaires) for more details.","x-stripeMostCommon":["display_preference"]},"cashapp":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Cash App is a popular consumer app in the US that allows customers to bank, invest, send, and receive money using their digital wallet. Check this [page](https://docs.stripe.com/payments/cash-app-pay) for more details.","x-stripeMostCommon":["display_preference"]},"crypto":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"[Stablecoin payments](https://docs.stripe.com/payments/stablecoin-payments) enable customers to pay in stablecoins like USDC from 100s of wallets including Phantom and Metamask.","x-stripeMostCommon":["display_preference"]},"customer_balance":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Uses a customer’s [cash balance](https://docs.stripe.com/payments/customer-balance) for the payment. The cash balance can be funded via a bank transfer. Check this [page](https://docs.stripe.com/payments/bank-transfers) for more details.","x-stripeMostCommon":["display_preference"]},"eps":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"EPS is an Austria-based payment method that allows customers to complete transactions online using their bank credentials. EPS is supported by all Austrian banks and is accepted by over 80% of Austrian online retailers. Check this [page](https://docs.stripe.com/payments/eps) for more details.","x-stripeMostCommon":["display_preference"]},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"fpx":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Financial Process Exchange (FPX) is a Malaysia-based payment method that allows customers to complete transactions online using their bank credentials. Bank Negara Malaysia (BNM), the Central Bank of Malaysia, and eleven other major Malaysian financial institutions are members of the PayNet Group, which owns and operates FPX. It is one of the most popular online payment methods in Malaysia, with nearly 90 million transactions in 2018 according to BNM. Check this [page](https://docs.stripe.com/payments/fpx) for more details.","x-stripeMostCommon":["display_preference"]},"fr_meal_voucher_conecs":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Meal vouchers in France, or “titres-restaurant”, is a local benefits program commonly offered by employers for their employees to purchase prepared food and beverages on working days. Check this [page](https://docs.stripe.com/payments/meal-vouchers/fr-meal-vouchers) for more details.","x-stripeMostCommon":["display_preference"]},"giropay":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"giropay is a German payment method based on online banking, introduced in 2006. It allows customers to complete transactions online using their online banking environment, with funds debited from their bank account. Depending on their bank, customers confirm payments on giropay using a second factor of authentication or a PIN. giropay accounts for 10% of online checkouts in Germany. Check this [page](https://docs.stripe.com/payments/giropay) for more details.","x-stripeMostCommon":["display_preference"]},"google_pay":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Google Pay allows customers to make payments in your app or website using any credit or debit card saved to their Google Account, including those from Google Play, YouTube, Chrome, or an Android device. Use the Google Pay API to request any credit or debit card stored in your customer's Google account. Check this [page](https://docs.stripe.com/google-pay) for more details.","x-stripeMostCommon":["display_preference"]},"grabpay":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"GrabPay is a payment method developed by [Grab](https://www.grab.com/sg/consumer/finance/pay/). GrabPay is a digital wallet - customers maintain a balance in their wallets that they pay out with. Check this [page](https://docs.stripe.com/payments/grabpay) for more details.","x-stripeMostCommon":["display_preference"]},"ideal":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"iDEAL is a Netherlands-based payment method that allows customers to complete transactions online using their bank credentials. All major Dutch banks are members of Currence, the scheme that operates iDEAL, making it the most popular online payment method in the Netherlands with a share of online transactions close to 55%. Check this [page](https://docs.stripe.com/payments/ideal) for more details.","x-stripeMostCommon":["display_preference"]},"jcb":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"JCB is a credit card company based in Japan. JCB is currently available in Japan to businesses approved by JCB, and available to all businesses in Australia, Canada, Hong Kong, Japan, New Zealand, Singapore, Switzerland, United Kingdom, United States, and all countries in the European Economic Area except Iceland. Check this [page](https://support.stripe.com/questions/accepting-japan-credit-bureau-%28jcb%29-payments) for more details.","x-stripeMostCommon":["display_preference"]},"kakao_pay":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Kakao Pay is a popular local wallet available in South Korea.","x-stripeMostCommon":["display_preference"]},"klarna":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Klarna gives customers a range of [payment options](https://docs.stripe.com/payments/klarna#payment-options) during checkout. Available payment options vary depending on the customer's billing address and the transaction amount. These payment options make it convenient for customers to purchase items in all price ranges. Check this [page](https://docs.stripe.com/payments/klarna) for more details.","x-stripeMostCommon":["display_preference"]},"konbini":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Konbini allows customers in Japan to pay for bills and online purchases at convenience stores with cash. Check this [page](https://docs.stripe.com/payments/konbini) for more details.","x-stripeMostCommon":["display_preference"]},"kr_card":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Korean cards let users pay using locally issued cards from South Korea.","x-stripeMostCommon":["display_preference"]},"link":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"[Link](https://docs.stripe.com/payments/link) is a payment method network. With Link, users save their payment details once, then reuse that information to pay with one click for any business on the network.","x-stripeMostCommon":["display_preference"]},"mb_way":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"MB WAY is the most popular wallet in Portugal. After entering their phone number in your checkout, customers approve the payment directly in their MB WAY app. Check this [page](https://docs.stripe.com/payments/mb-way) for more details.","x-stripeMostCommon":["display_preference"]},"mobilepay":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"MobilePay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) card wallet payment method used in Denmark and Finland. It allows customers to [authenticate and approve](https://docs.stripe.com/payments/payment-methods#customer-actions) payments using the MobilePay app. Check this [page](https://docs.stripe.com/payments/mobilepay) for more details.","x-stripeMostCommon":["display_preference"]},"multibanco":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Stripe users in Europe and the United States can accept Multibanco payments from customers in Portugal using [Sources](https://stripe.com/docs/sources)—a single integration path for creating payments using any supported method.","x-stripeMostCommon":["display_preference"]},"name":{"maxLength":100,"type":"string","description":"Configuration name."},"naver_pay":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Naver Pay is a popular local wallet available in South Korea.","x-stripeMostCommon":["display_preference"]},"nz_bank_account":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Stripe users in New Zealand can accept Bulk Electronic Clearing System (BECS) direct debit payments from customers with a New Zeland bank account. Check this [page](https://docs.stripe.com/payments/nz-bank-account) for more details.","x-stripeMostCommon":["display_preference"]},"oxxo":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"OXXO is a Mexican chain of convenience stores with thousands of locations across Latin America and represents nearly 20% of online transactions in Mexico. OXXO allows customers to pay bills and online purchases in-store with cash. Check this [page](https://docs.stripe.com/payments/oxxo) for more details.","x-stripeMostCommon":["display_preference"]},"p24":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Przelewy24 is a Poland-based payment method aggregator that allows customers to complete transactions online using bank transfers and other methods. Bank transfers account for 30% of online payments in Poland and Przelewy24 provides a way for customers to pay with over 165 banks. Check this [page](https://docs.stripe.com/payments/p24) for more details.","x-stripeMostCommon":["display_preference"]},"parent":{"maxLength":100,"type":"string","description":"Configuration's parent configuration. Specify to create a child configuration."},"pay_by_bank":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Pay by bank is a redirect payment method backed by bank transfers. A customer is redirected to their bank to authorize a bank transfer for a given amount. This removes a lot of the error risks inherent in waiting for the customer to initiate a transfer themselves, and is less expensive than card payments.","x-stripeMostCommon":["display_preference"]},"payco":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"PAYCO is a [single-use](https://docs.stripe.com/payments/payment-methods#usage local wallet available in South Korea.","x-stripeMostCommon":["display_preference"]},"paynow":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"PayNow is a Singapore-based payment method that allows customers to make a payment using their preferred app from participating banks and participating non-bank financial institutions. Check this [page](https://docs.stripe.com/payments/paynow) for more details.","x-stripeMostCommon":["display_preference"]},"paypal":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"PayPal, a digital wallet popular with customers in Europe, allows your customers worldwide to pay using their PayPal account. Check this [page](https://docs.stripe.com/payments/paypal) for more details.","x-stripeMostCommon":["display_preference"]},"payto":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"PayTo is a [real-time](https://docs.stripe.com/payments/real-time) payment method that enables customers in Australia to pay by providing their bank account details. Customers must accept a mandate authorizing you to debit their account. Check this [page](https://docs.stripe.com/payments/payto) for more details.","x-stripeMostCommon":["display_preference"]},"pix":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Pix is a payment method popular in Brazil. When paying with Pix, customers authenticate and approve payments by scanning a QR code in their preferred banking app. Check this [page](https://docs.stripe.com/payments/pix) for more details.","x-stripeMostCommon":["display_preference"]},"promptpay":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"PromptPay is a Thailand-based payment method that allows customers to make a payment using their preferred app from participating banks. Check this [page](https://docs.stripe.com/payments/promptpay) for more details.","x-stripeMostCommon":["display_preference"]},"revolut_pay":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Revolut Pay, developed by Revolut, a global finance app, is a digital wallet payment method. Revolut Pay uses the customer’s stored balance or cards to fund the payment, and offers the option for non-Revolut customers to save their details after their first purchase.","x-stripeMostCommon":["display_preference"]},"samsung_pay":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Samsung Pay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage local wallet available in South Korea.","x-stripeMostCommon":["display_preference"]},"satispay":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Satispay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method where customers are required to [authenticate](/payments/payment-methods#customer-actions) their payment. Customers pay by being redirected from your website or app, authorizing the payment with Satispay, then returning to your website or app. You get [immediate notification](/payments/payment-methods#payment-notification) of whether the payment succeeded or failed.","x-stripeMostCommon":["display_preference"]},"sepa_debit":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"The [Single Euro Payments Area (SEPA)](https://en.wikipedia.org/wiki/Single_Euro_Payments_Area) is an initiative of the European Union to simplify payments within and across member countries. SEPA established and enforced banking standards to allow for the direct debiting of every EUR-denominated bank account within the SEPA region, check this [page](https://docs.stripe.com/payments/sepa-debit) for more details.","x-stripeMostCommon":["display_preference"]},"sofort":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Stripe users in Europe and the United States can use the [Payment Intents API](https://stripe.com/docs/payments/payment-intents)—a single integration path for creating payments using any supported method—to accept [Sofort](https://www.sofort.com/) payments from customers. Check this [page](https://docs.stripe.com/payments/sofort) for more details.","x-stripeMostCommon":["display_preference"]},"swish":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Swish is a [real-time](https://docs.stripe.com/payments/real-time) payment method popular in Sweden. It allows customers to [authenticate and approve](https://docs.stripe.com/payments/payment-methods#customer-actions) payments using the Swish mobile app and the Swedish BankID mobile app. Check this [page](https://docs.stripe.com/payments/swish) for more details.","x-stripeMostCommon":["display_preference"]},"twint":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Twint is a payment method popular in Switzerland. It allows customers to pay using their mobile phone. Check this [page](https://docs.stripe.com/payments/twint) for more details.","x-stripeMostCommon":["display_preference"]},"upi":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Unified Payment Interface (UPI) is India's leading payment method with exponential growth since it launched in 2016.","x-stripeMostCommon":["display_preference"]},"us_bank_account":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Stripe users in the United States can accept ACH direct debit payments from customers with a US bank account using the Automated Clearing House (ACH) payments system operated by Nacha. Check this [page](https://docs.stripe.com/payments/ach-direct-debit) for more details.","x-stripeMostCommon":["display_preference"]},"wechat_pay":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"WeChat, owned by Tencent, is China's leading mobile app with over 1 billion monthly active users. Chinese consumers can use WeChat Pay to pay for goods and services inside of businesses' apps and websites. WeChat Pay users buy most frequently in gaming, e-commerce, travel, online education, and food/nutrition. Check this [page](https://docs.stripe.com/payments/wechat-pay) for more details.","x-stripeMostCommon":["display_preference"]},"zip":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Zip gives your customers a way to split purchases over a series of payments. Check this [page](https://docs.stripe.com/payments/zip) for more details like country availability.","x-stripeMostCommon":["display_preference"]}},"additionalProperties":false,"x-stripeMostCommon":["name","parent"]},"encoding":{"acss_debit":{"style":"deepObject","explode":true},"affirm":{"style":"deepObject","explode":true},"afterpay_clearpay":{"style":"deepObject","explode":true},"alipay":{"style":"deepObject","explode":true},"alma":{"style":"deepObject","explode":true},"amazon_pay":{"style":"deepObject","explode":true},"apple_pay":{"style":"deepObject","explode":true},"apple_pay_later":{"style":"deepObject","explode":true},"au_becs_debit":{"style":"deepObject","explode":true},"bacs_debit":{"style":"deepObject","explode":true},"bancontact":{"style":"deepObject","explode":true},"billie":{"style":"deepObject","explode":true},"blik":{"style":"deepObject","explode":true},"boleto":{"style":"deepObject","explode":true},"card":{"style":"deepObject","explode":true},"cartes_bancaires":{"style":"deepObject","explode":true},"cashapp":{"style":"deepObject","explode":true},"crypto":{"style":"deepObject","explode":true},"customer_balance":{"style":"deepObject","explode":true},"eps":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"fpx":{"style":"deepObject","explode":true},"fr_meal_voucher_conecs":{"style":"deepObject","explode":true},"giropay":{"style":"deepObject","explode":true},"google_pay":{"style":"deepObject","explode":true},"grabpay":{"style":"deepObject","explode":true},"ideal":{"style":"deepObject","explode":true},"jcb":{"style":"deepObject","explode":true},"kakao_pay":{"style":"deepObject","explode":true},"klarna":{"style":"deepObject","explode":true},"konbini":{"style":"deepObject","explode":true},"kr_card":{"style":"deepObject","explode":true},"link":{"style":"deepObject","explode":true},"mb_way":{"style":"deepObject","explode":true},"mobilepay":{"style":"deepObject","explode":true},"multibanco":{"style":"deepObject","explode":true},"naver_pay":{"style":"deepObject","explode":true},"nz_bank_account":{"style":"deepObject","explode":true},"oxxo":{"style":"deepObject","explode":true},"p24":{"style":"deepObject","explode":true},"pay_by_bank":{"style":"deepObject","explode":true},"payco":{"style":"deepObject","explode":true},"paynow":{"style":"deepObject","explode":true},"paypal":{"style":"deepObject","explode":true},"payto":{"style":"deepObject","explode":true},"pix":{"style":"deepObject","explode":true},"promptpay":{"style":"deepObject","explode":true},"revolut_pay":{"style":"deepObject","explode":true},"samsung_pay":{"style":"deepObject","explode":true},"satispay":{"style":"deepObject","explode":true},"sepa_debit":{"style":"deepObject","explode":true},"sofort":{"style":"deepObject","explode":true},"swish":{"style":"deepObject","explode":true},"twint":{"style":"deepObject","explode":true},"upi":{"style":"deepObject","explode":true},"us_bank_account":{"style":"deepObject","explode":true},"wechat_pay":{"style":"deepObject","explode":true},"zip":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment_method_configuration"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/payment_method_configurations/{configuration}":{"get":{"summary":"Retrieve payment method configuration","description":"Retrieve payment method configuration
","operationId":"GetPaymentMethodConfigurationsConfiguration","parameters":[{"name":"configuration","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment_method_configuration"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Update payment method configuration","description":"Update payment method configuration
","operationId":"PostPaymentMethodConfigurationsConfiguration","parameters":[{"name":"configuration","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"acss_debit":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Canadian pre-authorized debit payments, check this [page](https://docs.stripe.com/payments/acss-debit) for more details like country availability.","x-stripeMostCommon":["display_preference"]},"active":{"type":"boolean","description":"Whether the configuration can be used for new payments."},"affirm":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"[Affirm](https://www.affirm.com/) gives your customers a way to split purchases over a series of payments. Depending on the purchase, they can pay with four interest-free payments (Split Pay) or pay over a longer term (Installments), which might include interest. Check this [page](https://docs.stripe.com/payments/affirm) for more details like country availability.","x-stripeMostCommon":["display_preference"]},"afterpay_clearpay":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Afterpay gives your customers a way to pay for purchases in installments, check this [page](https://docs.stripe.com/payments/afterpay-clearpay) for more details like country availability. Afterpay is particularly popular among businesses selling fashion, beauty, and sports products.","x-stripeMostCommon":["display_preference"]},"alipay":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Alipay is a digital wallet in China that has more than a billion active users worldwide. Alipay users can pay on the web or on a mobile device using login credentials or their Alipay app. Alipay has a low dispute rate and reduces fraud by authenticating payments using the customer's login credentials. Check this [page](https://docs.stripe.com/payments/alipay) for more details.","x-stripeMostCommon":["display_preference"]},"alma":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Alma is a Buy Now, Pay Later payment method that offers customers the ability to pay in 2, 3, or 4 installments.","x-stripeMostCommon":["display_preference"]},"amazon_pay":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Amazon Pay is a wallet payment method that lets your customers check out the same way as on Amazon.","x-stripeMostCommon":["display_preference"]},"apple_pay":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Stripe users can accept [Apple Pay](https://stripe.com/payments/apple-pay) in iOS applications in iOS 9 and later, and on the web in Safari starting with iOS 10 or macOS Sierra. There are no additional fees to process Apple Pay payments, and the [pricing](https://stripe.com/pricing) is the same as other card transactions. Check this [page](https://docs.stripe.com/apple-pay) for more details.","x-stripeMostCommon":["display_preference"]},"apple_pay_later":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Apple Pay Later, a payment method for customers to buy now and pay later, gives your customers a way to split purchases into four installments across six weeks.","x-stripeMostCommon":["display_preference"]},"au_becs_debit":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Stripe users in Australia can accept Bulk Electronic Clearing System (BECS) direct debit payments from customers with an Australian bank account. Check this [page](https://docs.stripe.com/payments/au-becs-debit) for more details.","x-stripeMostCommon":["display_preference"]},"bacs_debit":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Stripe users in the UK can accept Bacs Direct Debit payments from customers with a UK bank account, check this [page](https://docs.stripe.com/payments/payment-methods/bacs-debit) for more details.","x-stripeMostCommon":["display_preference"]},"bancontact":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Bancontact is the most popular online payment method in Belgium, with over 15 million cards in circulation. [Customers](https://docs.stripe.com/api/customers) use a Bancontact card or mobile app linked to a Belgian bank account to make online payments that are secure, guaranteed, and confirmed immediately. Check this [page](https://docs.stripe.com/payments/bancontact) for more details.","x-stripeMostCommon":["display_preference"]},"billie":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Billie is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method that offers businesses Pay by Invoice where they offer payment terms ranging from 7-120 days. Customers are redirected from your website or app, authorize the payment with Billie, then return to your website or app. You get [immediate notification](/payments/payment-methods#payment-notification) of whether the payment succeeded or failed.","x-stripeMostCommon":["display_preference"]},"blik":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"BLIK is a [single use](https://docs.stripe.com/payments/payment-methods#usage) payment method that requires customers to authenticate their payments. When customers want to pay online using BLIK, they request a six-digit code from their banking application and enter it into the payment collection form. Check this [page](https://docs.stripe.com/payments/blik) for more details.","x-stripeMostCommon":["display_preference"]},"boleto":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Boleto is an official (regulated by the Central Bank of Brazil) payment method in Brazil. Check this [page](https://docs.stripe.com/payments/boleto) for more details.","x-stripeMostCommon":["display_preference"]},"card":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Cards are a popular way for consumers and businesses to pay online or in person. Stripe supports global and local card networks.","x-stripeMostCommon":["display_preference"]},"cartes_bancaires":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Cartes Bancaires is France's local card network. More than 95% of these cards are co-branded with either Visa or Mastercard, meaning you can process these cards over either Cartes Bancaires or the Visa or Mastercard networks. Check this [page](https://docs.stripe.com/payments/cartes-bancaires) for more details.","x-stripeMostCommon":["display_preference"]},"cashapp":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Cash App is a popular consumer app in the US that allows customers to bank, invest, send, and receive money using their digital wallet. Check this [page](https://docs.stripe.com/payments/cash-app-pay) for more details.","x-stripeMostCommon":["display_preference"]},"crypto":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"[Stablecoin payments](https://docs.stripe.com/payments/stablecoin-payments) enable customers to pay in stablecoins like USDC from 100s of wallets including Phantom and Metamask.","x-stripeMostCommon":["display_preference"]},"customer_balance":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Uses a customer’s [cash balance](https://docs.stripe.com/payments/customer-balance) for the payment. The cash balance can be funded via a bank transfer. Check this [page](https://docs.stripe.com/payments/bank-transfers) for more details.","x-stripeMostCommon":["display_preference"]},"eps":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"EPS is an Austria-based payment method that allows customers to complete transactions online using their bank credentials. EPS is supported by all Austrian banks and is accepted by over 80% of Austrian online retailers. Check this [page](https://docs.stripe.com/payments/eps) for more details.","x-stripeMostCommon":["display_preference"]},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"fpx":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Financial Process Exchange (FPX) is a Malaysia-based payment method that allows customers to complete transactions online using their bank credentials. Bank Negara Malaysia (BNM), the Central Bank of Malaysia, and eleven other major Malaysian financial institutions are members of the PayNet Group, which owns and operates FPX. It is one of the most popular online payment methods in Malaysia, with nearly 90 million transactions in 2018 according to BNM. Check this [page](https://docs.stripe.com/payments/fpx) for more details.","x-stripeMostCommon":["display_preference"]},"fr_meal_voucher_conecs":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Meal vouchers in France, or “titres-restaurant”, is a local benefits program commonly offered by employers for their employees to purchase prepared food and beverages on working days. Check this [page](https://docs.stripe.com/payments/meal-vouchers/fr-meal-vouchers) for more details.","x-stripeMostCommon":["display_preference"]},"giropay":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"giropay is a German payment method based on online banking, introduced in 2006. It allows customers to complete transactions online using their online banking environment, with funds debited from their bank account. Depending on their bank, customers confirm payments on giropay using a second factor of authentication or a PIN. giropay accounts for 10% of online checkouts in Germany. Check this [page](https://docs.stripe.com/payments/giropay) for more details.","x-stripeMostCommon":["display_preference"]},"google_pay":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Google Pay allows customers to make payments in your app or website using any credit or debit card saved to their Google Account, including those from Google Play, YouTube, Chrome, or an Android device. Use the Google Pay API to request any credit or debit card stored in your customer's Google account. Check this [page](https://docs.stripe.com/google-pay) for more details.","x-stripeMostCommon":["display_preference"]},"grabpay":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"GrabPay is a payment method developed by [Grab](https://www.grab.com/sg/consumer/finance/pay/). GrabPay is a digital wallet - customers maintain a balance in their wallets that they pay out with. Check this [page](https://docs.stripe.com/payments/grabpay) for more details.","x-stripeMostCommon":["display_preference"]},"ideal":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"iDEAL is a Netherlands-based payment method that allows customers to complete transactions online using their bank credentials. All major Dutch banks are members of Currence, the scheme that operates iDEAL, making it the most popular online payment method in the Netherlands with a share of online transactions close to 55%. Check this [page](https://docs.stripe.com/payments/ideal) for more details.","x-stripeMostCommon":["display_preference"]},"jcb":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"JCB is a credit card company based in Japan. JCB is currently available in Japan to businesses approved by JCB, and available to all businesses in Australia, Canada, Hong Kong, Japan, New Zealand, Singapore, Switzerland, United Kingdom, United States, and all countries in the European Economic Area except Iceland. Check this [page](https://support.stripe.com/questions/accepting-japan-credit-bureau-%28jcb%29-payments) for more details.","x-stripeMostCommon":["display_preference"]},"kakao_pay":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Kakao Pay is a popular local wallet available in South Korea.","x-stripeMostCommon":["display_preference"]},"klarna":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Klarna gives customers a range of [payment options](https://docs.stripe.com/payments/klarna#payment-options) during checkout. Available payment options vary depending on the customer's billing address and the transaction amount. These payment options make it convenient for customers to purchase items in all price ranges. Check this [page](https://docs.stripe.com/payments/klarna) for more details.","x-stripeMostCommon":["display_preference"]},"konbini":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Konbini allows customers in Japan to pay for bills and online purchases at convenience stores with cash. Check this [page](https://docs.stripe.com/payments/konbini) for more details.","x-stripeMostCommon":["display_preference"]},"kr_card":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Korean cards let users pay using locally issued cards from South Korea.","x-stripeMostCommon":["display_preference"]},"link":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"[Link](https://docs.stripe.com/payments/link) is a payment method network. With Link, users save their payment details once, then reuse that information to pay with one click for any business on the network.","x-stripeMostCommon":["display_preference"]},"mb_way":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"MB WAY is the most popular wallet in Portugal. After entering their phone number in your checkout, customers approve the payment directly in their MB WAY app. Check this [page](https://docs.stripe.com/payments/mb-way) for more details.","x-stripeMostCommon":["display_preference"]},"mobilepay":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"MobilePay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) card wallet payment method used in Denmark and Finland. It allows customers to [authenticate and approve](https://docs.stripe.com/payments/payment-methods#customer-actions) payments using the MobilePay app. Check this [page](https://docs.stripe.com/payments/mobilepay) for more details.","x-stripeMostCommon":["display_preference"]},"multibanco":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Stripe users in Europe and the United States can accept Multibanco payments from customers in Portugal using [Sources](https://stripe.com/docs/sources)—a single integration path for creating payments using any supported method.","x-stripeMostCommon":["display_preference"]},"name":{"maxLength":100,"type":"string","description":"Configuration name."},"naver_pay":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Naver Pay is a popular local wallet available in South Korea.","x-stripeMostCommon":["display_preference"]},"nz_bank_account":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Stripe users in New Zealand can accept Bulk Electronic Clearing System (BECS) direct debit payments from customers with a New Zeland bank account. Check this [page](https://docs.stripe.com/payments/nz-bank-account) for more details.","x-stripeMostCommon":["display_preference"]},"oxxo":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"OXXO is a Mexican chain of convenience stores with thousands of locations across Latin America and represents nearly 20% of online transactions in Mexico. OXXO allows customers to pay bills and online purchases in-store with cash. Check this [page](https://docs.stripe.com/payments/oxxo) for more details.","x-stripeMostCommon":["display_preference"]},"p24":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Przelewy24 is a Poland-based payment method aggregator that allows customers to complete transactions online using bank transfers and other methods. Bank transfers account for 30% of online payments in Poland and Przelewy24 provides a way for customers to pay with over 165 banks. Check this [page](https://docs.stripe.com/payments/p24) for more details.","x-stripeMostCommon":["display_preference"]},"pay_by_bank":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Pay by bank is a redirect payment method backed by bank transfers. A customer is redirected to their bank to authorize a bank transfer for a given amount. This removes a lot of the error risks inherent in waiting for the customer to initiate a transfer themselves, and is less expensive than card payments.","x-stripeMostCommon":["display_preference"]},"payco":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"PAYCO is a [single-use](https://docs.stripe.com/payments/payment-methods#usage local wallet available in South Korea.","x-stripeMostCommon":["display_preference"]},"paynow":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"PayNow is a Singapore-based payment method that allows customers to make a payment using their preferred app from participating banks and participating non-bank financial institutions. Check this [page](https://docs.stripe.com/payments/paynow) for more details.","x-stripeMostCommon":["display_preference"]},"paypal":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"PayPal, a digital wallet popular with customers in Europe, allows your customers worldwide to pay using their PayPal account. Check this [page](https://docs.stripe.com/payments/paypal) for more details.","x-stripeMostCommon":["display_preference"]},"payto":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"PayTo is a [real-time](https://docs.stripe.com/payments/real-time) payment method that enables customers in Australia to pay by providing their bank account details. Customers must accept a mandate authorizing you to debit their account. Check this [page](https://docs.stripe.com/payments/payto) for more details.","x-stripeMostCommon":["display_preference"]},"pix":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Pix is a payment method popular in Brazil. When paying with Pix, customers authenticate and approve payments by scanning a QR code in their preferred banking app. Check this [page](https://docs.stripe.com/payments/pix) for more details.","x-stripeMostCommon":["display_preference"]},"promptpay":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"PromptPay is a Thailand-based payment method that allows customers to make a payment using their preferred app from participating banks. Check this [page](https://docs.stripe.com/payments/promptpay) for more details.","x-stripeMostCommon":["display_preference"]},"revolut_pay":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Revolut Pay, developed by Revolut, a global finance app, is a digital wallet payment method. Revolut Pay uses the customer’s stored balance or cards to fund the payment, and offers the option for non-Revolut customers to save their details after their first purchase.","x-stripeMostCommon":["display_preference"]},"samsung_pay":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Samsung Pay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage local wallet available in South Korea.","x-stripeMostCommon":["display_preference"]},"satispay":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Satispay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method where customers are required to [authenticate](/payments/payment-methods#customer-actions) their payment. Customers pay by being redirected from your website or app, authorizing the payment with Satispay, then returning to your website or app. You get [immediate notification](/payments/payment-methods#payment-notification) of whether the payment succeeded or failed.","x-stripeMostCommon":["display_preference"]},"sepa_debit":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"The [Single Euro Payments Area (SEPA)](https://en.wikipedia.org/wiki/Single_Euro_Payments_Area) is an initiative of the European Union to simplify payments within and across member countries. SEPA established and enforced banking standards to allow for the direct debiting of every EUR-denominated bank account within the SEPA region, check this [page](https://docs.stripe.com/payments/sepa-debit) for more details.","x-stripeMostCommon":["display_preference"]},"sofort":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Stripe users in Europe and the United States can use the [Payment Intents API](https://stripe.com/docs/payments/payment-intents)—a single integration path for creating payments using any supported method—to accept [Sofort](https://www.sofort.com/) payments from customers. Check this [page](https://docs.stripe.com/payments/sofort) for more details.","x-stripeMostCommon":["display_preference"]},"swish":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Swish is a [real-time](https://docs.stripe.com/payments/real-time) payment method popular in Sweden. It allows customers to [authenticate and approve](https://docs.stripe.com/payments/payment-methods#customer-actions) payments using the Swish mobile app and the Swedish BankID mobile app. Check this [page](https://docs.stripe.com/payments/swish) for more details.","x-stripeMostCommon":["display_preference"]},"twint":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Twint is a payment method popular in Switzerland. It allows customers to pay using their mobile phone. Check this [page](https://docs.stripe.com/payments/twint) for more details.","x-stripeMostCommon":["display_preference"]},"upi":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Unified Payment Interface (UPI) is India's leading payment method with exponential growth since it launched in 2016.","x-stripeMostCommon":["display_preference"]},"us_bank_account":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Stripe users in the United States can accept ACH direct debit payments from customers with a US bank account using the Automated Clearing House (ACH) payments system operated by Nacha. Check this [page](https://docs.stripe.com/payments/ach-direct-debit) for more details.","x-stripeMostCommon":["display_preference"]},"wechat_pay":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"WeChat, owned by Tencent, is China's leading mobile app with over 1 billion monthly active users. Chinese consumers can use WeChat Pay to pay for goods and services inside of businesses' apps and websites. WeChat Pay users buy most frequently in gaming, e-commerce, travel, online education, and food/nutrition. Check this [page](https://docs.stripe.com/payments/wechat-pay) for more details.","x-stripeMostCommon":["display_preference"]},"zip":{"title":"payment_method_param","type":"object","properties":{"display_preference":{"title":"display_preference_param","type":"object","properties":{"preference":{"type":"string","description":"The account's preference for whether or not to display this payment method.","enum":["none","off","on"]}},"description":"Whether or not the payment method should be displayed.","x-stripeMostCommon":["preference"]}},"description":"Zip gives your customers a way to split purchases over a series of payments. Check this [page](https://docs.stripe.com/payments/zip) for more details like country availability.","x-stripeMostCommon":["display_preference"]}},"additionalProperties":false,"x-stripeMostCommon":["active","name"]},"encoding":{"acss_debit":{"style":"deepObject","explode":true},"affirm":{"style":"deepObject","explode":true},"afterpay_clearpay":{"style":"deepObject","explode":true},"alipay":{"style":"deepObject","explode":true},"alma":{"style":"deepObject","explode":true},"amazon_pay":{"style":"deepObject","explode":true},"apple_pay":{"style":"deepObject","explode":true},"apple_pay_later":{"style":"deepObject","explode":true},"au_becs_debit":{"style":"deepObject","explode":true},"bacs_debit":{"style":"deepObject","explode":true},"bancontact":{"style":"deepObject","explode":true},"billie":{"style":"deepObject","explode":true},"blik":{"style":"deepObject","explode":true},"boleto":{"style":"deepObject","explode":true},"card":{"style":"deepObject","explode":true},"cartes_bancaires":{"style":"deepObject","explode":true},"cashapp":{"style":"deepObject","explode":true},"crypto":{"style":"deepObject","explode":true},"customer_balance":{"style":"deepObject","explode":true},"eps":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"fpx":{"style":"deepObject","explode":true},"fr_meal_voucher_conecs":{"style":"deepObject","explode":true},"giropay":{"style":"deepObject","explode":true},"google_pay":{"style":"deepObject","explode":true},"grabpay":{"style":"deepObject","explode":true},"ideal":{"style":"deepObject","explode":true},"jcb":{"style":"deepObject","explode":true},"kakao_pay":{"style":"deepObject","explode":true},"klarna":{"style":"deepObject","explode":true},"konbini":{"style":"deepObject","explode":true},"kr_card":{"style":"deepObject","explode":true},"link":{"style":"deepObject","explode":true},"mb_way":{"style":"deepObject","explode":true},"mobilepay":{"style":"deepObject","explode":true},"multibanco":{"style":"deepObject","explode":true},"naver_pay":{"style":"deepObject","explode":true},"nz_bank_account":{"style":"deepObject","explode":true},"oxxo":{"style":"deepObject","explode":true},"p24":{"style":"deepObject","explode":true},"pay_by_bank":{"style":"deepObject","explode":true},"payco":{"style":"deepObject","explode":true},"paynow":{"style":"deepObject","explode":true},"paypal":{"style":"deepObject","explode":true},"payto":{"style":"deepObject","explode":true},"pix":{"style":"deepObject","explode":true},"promptpay":{"style":"deepObject","explode":true},"revolut_pay":{"style":"deepObject","explode":true},"samsung_pay":{"style":"deepObject","explode":true},"satispay":{"style":"deepObject","explode":true},"sepa_debit":{"style":"deepObject","explode":true},"sofort":{"style":"deepObject","explode":true},"swish":{"style":"deepObject","explode":true},"twint":{"style":"deepObject","explode":true},"upi":{"style":"deepObject","explode":true},"us_bank_account":{"style":"deepObject","explode":true},"wechat_pay":{"style":"deepObject","explode":true},"zip":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment_method_configuration"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/payment_method_domains":{"get":{"summary":"List payment method domains","description":"Lists the details of existing payment method domains.
","operationId":"GetPaymentMethodDomains","parameters":[{"name":"domain_name","in":"query","description":"The domain name that this payment method domain object represents.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"enabled","in":"query","description":"Whether this payment method domain is enabled. If the domain is not enabled, payment methods will not appear in Elements or Embedded Checkout","required":false,"style":"form","explode":true,"schema":{"type":"boolean"}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"PaymentMethodDomainResourcePaymentMethodDomainList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/payment_method_domain"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/payment_method_domains","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create a payment method domain","description":"Creates a payment method domain.
","operationId":"PostPaymentMethodDomains","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["domain_name"],"type":"object","properties":{"domain_name":{"maxLength":5000,"type":"string","description":"The domain name that this payment method domain object represents."},"enabled":{"type":"boolean","description":"Whether this payment method domain is enabled. If the domain is not enabled, payment methods that require a payment method domain will not appear in Elements or Embedded Checkout."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}}},"additionalProperties":false,"x-stripeMostCommon":["domain_name","enabled"]},"encoding":{"expand":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment_method_domain"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/payment_method_domains/{payment_method_domain}":{"get":{"summary":"Retrieve a payment method domain","description":"Retrieves the details of an existing payment method domain.
","operationId":"GetPaymentMethodDomainsPaymentMethodDomain","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"payment_method_domain","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment_method_domain"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Update a payment method domain","description":"Updates an existing payment method domain.
","operationId":"PostPaymentMethodDomainsPaymentMethodDomain","parameters":[{"name":"payment_method_domain","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether this payment method domain is enabled. If the domain is not enabled, payment methods that require a payment method domain will not appear in Elements or Embedded Checkout."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}}},"additionalProperties":false,"x-stripeMostCommon":["enabled"]},"encoding":{"expand":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment_method_domain"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/payment_method_domains/{payment_method_domain}/validate":{"post":{"summary":"Validate an existing payment method domain","description":"Some payment methods might require additional steps to register a domain. If the requirements weren’t satisfied when the domain was created, the payment method will be inactive on the domain.\nThe payment method doesn’t appear in Elements or Embedded Checkout for this domain until it is active.
\n\nTo activate a payment method on an existing payment method domain, complete the required registration steps specific to the payment method, and then validate the payment method domain with this endpoint.
\n\nRelated guides: Payment method domains.
","operationId":"PostPaymentMethodDomainsPaymentMethodDomainValidate","parameters":[{"name":"payment_method_domain","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}}},"additionalProperties":false},"encoding":{"expand":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment_method_domain"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/payment_methods":{"get":{"summary":"List PaymentMethods","description":"Returns a list of all PaymentMethods.
","operationId":"GetPaymentMethods","parameters":[{"name":"allow_redisplay","in":"query","description":"This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow.","required":false,"style":"form","explode":true,"schema":{"type":"string","enum":["always","limited","unspecified"]}},{"name":"customer","in":"query","description":"The ID of the customer whose PaymentMethods will be retrieved.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"customer_account","in":"query","description":"The ID of the Account whose PaymentMethods will be retrieved.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"type","in":"query","description":"Filters the list by the object `type` field. Unfiltered, the list returns all payment method types except `custom`. If your integration expects only one type of payment method in the response, specify that type value in the request to reduce your payload.","required":false,"style":"form","explode":true,"schema":{"type":"string","enum":["acss_debit","affirm","afterpay_clearpay","alipay","alma","amazon_pay","au_becs_debit","bacs_debit","bancontact","billie","blik","boleto","card","cashapp","crypto","custom","customer_balance","eps","fpx","giropay","grabpay","ideal","kakao_pay","klarna","konbini","kr_card","link","mb_way","mobilepay","multibanco","naver_pay","nz_bank_account","oxxo","p24","pay_by_bank","payco","paynow","paypal","payto","pix","promptpay","revolut_pay","samsung_pay","satispay","sepa_debit","sofort","swish","twint","upi","us_bank_account","wechat_pay","zip"],"x-stripeBypassValidation":true}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"PaymentFlowsPaymentMethodList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/payment_method"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/payment_methods","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Shares a PaymentMethod","description":"Creates a PaymentMethod object. Read the Stripe.js reference to learn how to create PaymentMethods via Stripe.js.
\n\nInstead of creating a PaymentMethod directly, we recommend using the PaymentIntents API to accept a payment immediately or the SetupIntent API to collect payment method details ahead of a future payment.
","operationId":"PostPaymentMethods","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"acss_debit":{"title":"payment_method_param","required":["account_number","institution_number","transit_number"],"type":"object","properties":{"account_number":{"maxLength":5000,"type":"string","description":"Customer's bank account number."},"institution_number":{"maxLength":5000,"type":"string","description":"Institution number of the customer's bank."},"transit_number":{"maxLength":5000,"type":"string","description":"Transit number of the customer's bank."}},"description":"If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.","x-stripeMostCommon":["account_number","financial_connections_account","institution_number","transit_number"]},"affirm":{"title":"param","type":"object","properties":{},"description":"If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method."},"afterpay_clearpay":{"title":"param","type":"object","properties":{},"description":"If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method."},"alipay":{"title":"param","type":"object","properties":{},"description":"If this is an `Alipay` PaymentMethod, this hash contains details about the Alipay payment method."},"allow_redisplay":{"type":"string","description":"This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`.","enum":["always","limited","unspecified"]},"alma":{"title":"param","type":"object","properties":{},"description":"If this is a Alma PaymentMethod, this hash contains details about the Alma payment method."},"amazon_pay":{"title":"param","type":"object","properties":{},"description":"If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method."},"au_becs_debit":{"title":"param","required":["account_number","bsb_number"],"type":"object","properties":{"account_number":{"maxLength":5000,"type":"string","description":"The account number for the bank account."},"bsb_number":{"maxLength":5000,"type":"string","description":"Bank-State-Branch number of the bank account."}},"description":"If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.","x-stripeMostCommon":["account_number","bsb_number"]},"bacs_debit":{"title":"param","type":"object","properties":{"account_number":{"maxLength":5000,"type":"string","description":"Account number of the bank account that the funds will be debited from."},"sort_code":{"maxLength":5000,"type":"string","description":"Sort code of the bank account. (e.g., `10-20-30`)"}},"description":"If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.","x-stripeMostCommon":["account_number","sort_code"]},"bancontact":{"title":"param","type":"object","properties":{},"description":"If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method."},"billie":{"title":"param","type":"object","properties":{},"description":"If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method."},"billing_details":{"title":"billing_details_inner_params","type":"object","properties":{"address":{"description":"Billing address.","anyOf":[{"title":"billing_details_address","type":"object","properties":{"city":{"maxLength":5000,"type":"string","description":"City, district, suburb, town, or village."},"country":{"maxLength":5000,"type":"string","description":"Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."},"line1":{"maxLength":5000,"type":"string","description":"Address line 1, such as the street, PO Box, or company name."},"line2":{"maxLength":5000,"type":"string","description":"Address line 2, such as the apartment, suite, unit, or building."},"postal_code":{"maxLength":5000,"type":"string","description":"ZIP or postal code."},"state":{"maxLength":5000,"type":"string","description":"State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))."}},"x-stripeMostCommon":["city","country","line1","line2","postal_code","state"]},{"type":"string","enum":[""]}]},"email":{"description":"Email address.","anyOf":[{"type":"string"},{"type":"string","enum":[""]}]},"name":{"description":"Full name.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]},"phone":{"description":"Billing phone number (including extension).","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]},"tax_id":{"maxLength":5000,"type":"string","description":"Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers."}},"description":"Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.","x-stripeMostCommon":["address","email","name","phone","tax_id"]},"blik":{"title":"param","type":"object","properties":{},"description":"If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method."},"boleto":{"title":"param","required":["tax_id"],"type":"object","properties":{"tax_id":{"maxLength":5000,"type":"string","description":"The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)"}},"description":"If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.","x-stripeMostCommon":["tax_id"]},"card":{"description":"If this is a `card` PaymentMethod, this hash contains the user's card details. For backwards compatibility, you can alternatively provide a Stripe token (e.g., for Apple Pay, Amex Express Checkout, or legacy Checkout) into the card hash with format `card: {token: \"tok_visa\"}`. When providing a card number, you must meet the requirements for [PCI compliance](https://stripe.com/docs/security#validating-pci-compliance). We strongly recommend using Stripe.js instead of interacting with this API directly.","anyOf":[{"title":"card_details_params","required":["exp_month","exp_year","number"],"type":"object","properties":{"cvc":{"maxLength":5000,"type":"string","description":"The card's CVC. It is highly recommended to always include this value."},"exp_month":{"type":"integer","description":"Two-digit number representing the card's expiration month."},"exp_year":{"type":"integer","description":"Four-digit number representing the card's expiration year."},"networks":{"title":"networks_params","type":"object","properties":{"preferred":{"type":"string","description":"The customer's preferred card network for co-branded cards. Supports `cartes_bancaires`, `mastercard`, or `visa`. Selection of a network that does not apply to the card will be stored as `invalid_preference` on the card.","enum":["cartes_bancaires","mastercard","visa"]}},"description":"Contains information about card networks used to process the payment.","x-stripeMostCommon":["preferred"]},"number":{"maxLength":5000,"type":"string","description":"The card number, as a string without any separators."}},"x-stripeMostCommon":["cvc","exp_month","exp_year","funding_options","networks","number","request_card_art_and_program_name","request_network_token"],"x-stripeParam":{"class_name":"CardDetails"}},{"title":"token_params","required":["token"],"type":"object","properties":{"token":{"maxLength":5000,"type":"string","description":"For backwards compatibility, you can alternatively provide a Stripe token (e.g., for Apple Pay, Amex Express Checkout, or legacy Checkout) into the card hash with format card: {token: \"tok_visa\"}."}},"x-stripeMostCommon":["token"],"x-stripeParam":{"class_name":"Token"}}],"x-stripeBypassValidation":true},"cashapp":{"title":"param","type":"object","properties":{},"description":"If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method."},"crypto":{"title":"param","type":"object","properties":{},"description":"If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method."},"custom":{"title":"create_param","required":["type"],"type":"object","properties":{"type":{"maxLength":5000,"type":"string","description":"ID of the Dashboard-only CustomPaymentMethodType. This field is used by Stripe products' internal code to support CPMs."}},"description":"If this is a `custom` PaymentMethod, this hash contains details about the Custom payment method.","x-stripeMostCommon":["type"]},"customer":{"maxLength":5000,"type":"string","description":"The `Customer` to whom the original PaymentMethod is attached."},"customer_balance":{"title":"param","type":"object","properties":{},"description":"If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method."},"eps":{"title":"param","type":"object","properties":{"bank":{"maxLength":5000,"type":"string","description":"The customer's bank.","enum":["arzte_und_apotheker_bank","austrian_anadi_bank_ag","bank_austria","bankhaus_carl_spangler","bankhaus_schelhammer_und_schattera_ag","bawag_psk_ag","bks_bank_ag","brull_kallmus_bank_ag","btv_vier_lander_bank","capital_bank_grawe_gruppe_ag","deutsche_bank_ag","dolomitenbank","easybank_ag","erste_bank_und_sparkassen","hypo_alpeadriabank_international_ag","hypo_bank_burgenland_aktiengesellschaft","hypo_noe_lb_fur_niederosterreich_u_wien","hypo_oberosterreich_salzburg_steiermark","hypo_tirol_bank_ag","hypo_vorarlberg_bank_ag","marchfelder_bank","oberbank_ag","raiffeisen_bankengruppe_osterreich","schoellerbank_ag","sparda_bank_wien","volksbank_gruppe","volkskreditbank_ag","vr_bank_braunau"]}},"description":"If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.","x-stripeMostCommon":["bank"]},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"fpx":{"title":"param","required":["bank"],"type":"object","properties":{"account_holder_type":{"maxLength":5000,"type":"string","description":"Account holder type for FPX transaction","enum":["company","individual"]},"bank":{"maxLength":5000,"type":"string","description":"The customer's bank.","enum":["affin_bank","agrobank","alliance_bank","ambank","bank_islam","bank_muamalat","bank_of_china","bank_rakyat","bsn","cimb","deutsche_bank","hong_leong_bank","hsbc","kfh","maybank2e","maybank2u","ocbc","pb_enterprise","public_bank","rhb","standard_chartered","uob"],"x-stripeBypassValidation":true}},"description":"If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.","x-stripeMostCommon":["account_holder_type","bank"]},"giropay":{"title":"param","type":"object","properties":{},"description":"If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method."},"grabpay":{"title":"param","type":"object","properties":{},"description":"If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method."},"ideal":{"title":"param","type":"object","properties":{"bank":{"maxLength":5000,"type":"string","description":"The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.","enum":["abn_amro","adyen","asn_bank","bunq","buut","finom","handelsbanken","ing","knab","mollie","moneyou","n26","nn","rabobank","regiobank","revolut","sns_bank","triodos_bank","van_lanschot","yoursafe"]}},"description":"If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.","x-stripeMostCommon":["bank"]},"interac_present":{"title":"param","type":"object","properties":{},"description":"If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.","x-stripeMostCommon":["device_identifier","device_type","emv","location"]},"kakao_pay":{"title":"param","type":"object","properties":{},"description":"If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method."},"klarna":{"title":"param","type":"object","properties":{"dob":{"title":"date_of_birth","required":["day","month","year"],"type":"object","properties":{"day":{"type":"integer","description":"The day of birth, between 1 and 31."},"month":{"type":"integer","description":"The month of birth, between 1 and 12."},"year":{"type":"integer","description":"The four-digit year of birth."}},"description":"Customer's date of birth","x-stripeMostCommon":["day","month","year"]}},"description":"If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method.","x-stripeMostCommon":["dob"]},"konbini":{"title":"param","type":"object","properties":{},"description":"If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method."},"kr_card":{"title":"param","type":"object","properties":{},"description":"If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method."},"link":{"title":"param","type":"object","properties":{},"description":"If this is an `Link` PaymentMethod, this hash contains details about the Link payment method."},"mb_way":{"title":"param","type":"object","properties":{},"description":"If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method."},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"mobilepay":{"title":"param","type":"object","properties":{},"description":"If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method."},"multibanco":{"title":"param","type":"object","properties":{},"description":"If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method."},"naver_pay":{"title":"param","type":"object","properties":{"funding":{"type":"string","description":"Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.","enum":["card","points"],"x-stripeBypassValidation":true}},"description":"If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.","x-stripeMostCommon":["funding"]},"nz_bank_account":{"title":"param","required":["account_number","bank_code","branch_code","suffix"],"type":"object","properties":{"account_holder_name":{"maxLength":5000,"type":"string","description":"The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details."},"account_number":{"maxLength":5000,"type":"string","description":"The account number for the bank account."},"bank_code":{"maxLength":5000,"type":"string","description":"The numeric code for the bank account's bank."},"branch_code":{"maxLength":5000,"type":"string","description":"The numeric code for the bank account's bank branch."},"reference":{"maxLength":128,"type":"string"},"suffix":{"maxLength":5000,"type":"string","description":"The suffix of the bank account number."}},"description":"If this is an nz_bank_account PaymentMethod, this hash contains details about the nz_bank_account payment method.","x-stripeMostCommon":["account_holder_name","account_number","bank_code","branch_code","reference","suffix"]},"oxxo":{"title":"param","type":"object","properties":{},"description":"If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method."},"p24":{"title":"param","type":"object","properties":{"bank":{"type":"string","description":"The customer's bank.","enum":["alior_bank","bank_millennium","bank_nowy_bfg_sa","bank_pekao_sa","banki_spbdzielcze","blik","bnp_paribas","boz","citi_handlowy","credit_agricole","envelobank","etransfer_pocztowy24","getin_bank","ideabank","ing","inteligo","mbank_mtransfer","nest_przelew","noble_pay","pbac_z_ipko","plus_bank","santander_przelew24","tmobile_usbugi_bankowe","toyota_bank","velobank","volkswagen_bank"],"x-stripeBypassValidation":true}},"description":"If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.","x-stripeMostCommon":["bank"]},"pay_by_bank":{"title":"param","type":"object","properties":{},"description":"If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method."},"payco":{"title":"param","type":"object","properties":{},"description":"If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method."},"payment_method":{"maxLength":5000,"type":"string","description":"The PaymentMethod to share."},"paynow":{"title":"param","type":"object","properties":{},"description":"If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method."},"paypal":{"title":"param","type":"object","properties":{},"description":"If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method."},"payto":{"title":"param","type":"object","properties":{"account_number":{"maxLength":5000,"type":"string","description":"The account number for the bank account."},"bsb_number":{"maxLength":5000,"type":"string","description":"Bank-State-Branch number of the bank account."},"pay_id":{"maxLength":5000,"type":"string","description":"The PayID alias for the bank account."}},"description":"If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.","x-stripeMostCommon":["account_number","bsb_number","pay_id"]},"pix":{"title":"param","type":"object","properties":{},"description":"If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.","x-stripeMostCommon":["tax_id"]},"promptpay":{"title":"param","type":"object","properties":{},"description":"If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method."},"radar_options":{"title":"radar_options_with_hidden_options","type":"object","properties":{"session":{"maxLength":5000,"type":"string","description":"A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments."}},"description":"Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.","x-stripeMostCommon":["session","skip_rules"]},"revolut_pay":{"title":"param","type":"object","properties":{},"description":"If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method."},"samsung_pay":{"title":"param","type":"object","properties":{},"description":"If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method."},"satispay":{"title":"param","type":"object","properties":{},"description":"If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method."},"sepa_debit":{"title":"param","required":["iban"],"type":"object","properties":{"iban":{"maxLength":5000,"type":"string","description":"IBAN of the bank account."}},"description":"If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.","x-stripeMostCommon":["iban"]},"sofort":{"title":"param","required":["country"],"type":"object","properties":{"country":{"type":"string","description":"Two-letter ISO code representing the country the bank account is located in.","enum":["AT","BE","DE","ES","IT","NL"]}},"description":"If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.","x-stripeMostCommon":["country"]},"swish":{"title":"param","type":"object","properties":{},"description":"If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method."},"twint":{"title":"param","type":"object","properties":{},"description":"If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method."},"type":{"type":"string","description":"The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.","enum":["acss_debit","affirm","afterpay_clearpay","alipay","alma","amazon_pay","au_becs_debit","bacs_debit","bancontact","billie","blik","boleto","card","cashapp","crypto","custom","customer_balance","eps","fpx","giropay","grabpay","ideal","kakao_pay","klarna","konbini","kr_card","link","mb_way","mobilepay","multibanco","naver_pay","nz_bank_account","oxxo","p24","pay_by_bank","payco","paynow","paypal","payto","pix","promptpay","revolut_pay","samsung_pay","satispay","sepa_debit","sofort","swish","twint","upi","us_bank_account","wechat_pay","zip"],"x-stripeBypassValidation":true},"upi":{"title":"param","type":"object","properties":{"mandate_options":{"title":"mandate_options","type":"object","properties":{"amount":{"type":"integer","description":"Amount to be charged for future payments."},"amount_type":{"type":"string","description":"One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.","enum":["fixed","maximum"]},"description":{"maxLength":20,"type":"string","description":"A description of the mandate or subscription that is meant to be displayed to the customer."},"end_date":{"type":"integer","description":"End date of the mandate or subscription.","format":"unix-time"}},"description":"Configuration options for setting up an eMandate","x-stripeMostCommon":["amount","amount_type","description","end_date"]}},"description":"If this is a `upi` PaymentMethod, this hash contains details about the UPI payment method.","x-stripeMostCommon":["mandate_options","vpa"]},"us_bank_account":{"title":"payment_method_param","type":"object","properties":{"account_holder_type":{"type":"string","description":"Account holder type: individual or company.","enum":["company","individual"]},"account_number":{"maxLength":5000,"type":"string","description":"Account number of the bank account."},"account_type":{"type":"string","description":"Account type: checkings or savings. Defaults to checking if omitted.","enum":["checking","savings"]},"financial_connections_account":{"maxLength":5000,"type":"string","description":"The ID of a Financial Connections Account to use as a payment method."},"routing_number":{"maxLength":5000,"type":"string","description":"Routing number of the bank account."}},"description":"If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.","x-stripeMostCommon":["account_holder_type","account_number","account_type","financial_connections_account","routing_number","token"]},"wechat_pay":{"title":"param","type":"object","properties":{},"description":"If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method."},"zip":{"title":"param","type":"object","properties":{},"description":"If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method."}},"additionalProperties":false,"x-stripeMostCommon":["billing_details","customer","metadata","payment_method","type"]},"encoding":{"acss_debit":{"style":"deepObject","explode":true},"affirm":{"style":"deepObject","explode":true},"afterpay_clearpay":{"style":"deepObject","explode":true},"alipay":{"style":"deepObject","explode":true},"alma":{"style":"deepObject","explode":true},"amazon_pay":{"style":"deepObject","explode":true},"au_becs_debit":{"style":"deepObject","explode":true},"bacs_debit":{"style":"deepObject","explode":true},"bancontact":{"style":"deepObject","explode":true},"billie":{"style":"deepObject","explode":true},"billing_details":{"style":"deepObject","explode":true},"blik":{"style":"deepObject","explode":true},"boleto":{"style":"deepObject","explode":true},"card":{"style":"deepObject","explode":true},"cashapp":{"style":"deepObject","explode":true},"crypto":{"style":"deepObject","explode":true},"custom":{"style":"deepObject","explode":true},"customer_balance":{"style":"deepObject","explode":true},"eps":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"fpx":{"style":"deepObject","explode":true},"giropay":{"style":"deepObject","explode":true},"grabpay":{"style":"deepObject","explode":true},"ideal":{"style":"deepObject","explode":true},"interac_present":{"style":"deepObject","explode":true},"kakao_pay":{"style":"deepObject","explode":true},"klarna":{"style":"deepObject","explode":true},"konbini":{"style":"deepObject","explode":true},"kr_card":{"style":"deepObject","explode":true},"link":{"style":"deepObject","explode":true},"mb_way":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true},"mobilepay":{"style":"deepObject","explode":true},"multibanco":{"style":"deepObject","explode":true},"naver_pay":{"style":"deepObject","explode":true},"nz_bank_account":{"style":"deepObject","explode":true},"oxxo":{"style":"deepObject","explode":true},"p24":{"style":"deepObject","explode":true},"pay_by_bank":{"style":"deepObject","explode":true},"payco":{"style":"deepObject","explode":true},"paynow":{"style":"deepObject","explode":true},"paypal":{"style":"deepObject","explode":true},"payto":{"style":"deepObject","explode":true},"pix":{"style":"deepObject","explode":true},"promptpay":{"style":"deepObject","explode":true},"radar_options":{"style":"deepObject","explode":true},"revolut_pay":{"style":"deepObject","explode":true},"samsung_pay":{"style":"deepObject","explode":true},"satispay":{"style":"deepObject","explode":true},"sepa_debit":{"style":"deepObject","explode":true},"sofort":{"style":"deepObject","explode":true},"swish":{"style":"deepObject","explode":true},"twint":{"style":"deepObject","explode":true},"upi":{"style":"deepObject","explode":true},"us_bank_account":{"style":"deepObject","explode":true},"wechat_pay":{"style":"deepObject","explode":true},"zip":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment_method"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/payment_methods/{payment_method}":{"get":{"summary":"Retrieve a PaymentMethod","description":"Retrieves a PaymentMethod object attached to the StripeAccount. To retrieve a payment method attached to a Customer, you should use Retrieve a Customer’s PaymentMethods
","operationId":"GetPaymentMethodsPaymentMethod","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"payment_method","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment_method"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Update a PaymentMethod","description":"Updates a PaymentMethod object. A PaymentMethod must be attached to a customer to be updated.
","operationId":"PostPaymentMethodsPaymentMethod","parameters":[{"name":"payment_method","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"allow_redisplay":{"type":"string","description":"This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`.","enum":["always","limited","unspecified"]},"billing_details":{"title":"billing_details_inner_params","type":"object","properties":{"address":{"description":"Billing address.","anyOf":[{"title":"billing_details_address","type":"object","properties":{"city":{"maxLength":5000,"type":"string","description":"City, district, suburb, town, or village."},"country":{"maxLength":5000,"type":"string","description":"Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."},"line1":{"maxLength":5000,"type":"string","description":"Address line 1, such as the street, PO Box, or company name."},"line2":{"maxLength":5000,"type":"string","description":"Address line 2, such as the apartment, suite, unit, or building."},"postal_code":{"maxLength":5000,"type":"string","description":"ZIP or postal code."},"state":{"maxLength":5000,"type":"string","description":"State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))."}},"x-stripeMostCommon":["city","country","line1","line2","postal_code","state"]},{"type":"string","enum":[""]}]},"email":{"description":"Email address.","anyOf":[{"type":"string"},{"type":"string","enum":[""]}]},"name":{"description":"Full name.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]},"phone":{"description":"Billing phone number (including extension).","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]},"tax_id":{"maxLength":5000,"type":"string","description":"Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers."}},"description":"Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.","x-stripeMostCommon":["address","email","name","phone","tax_id"]},"card":{"title":"update_api_param","type":"object","properties":{"exp_month":{"type":"integer","description":"Two-digit number representing the card's expiration month."},"exp_year":{"type":"integer","description":"Four-digit number representing the card's expiration year."},"networks":{"title":"networks_update_api_param","type":"object","properties":{"preferred":{"type":"string","description":"The customer's preferred card network for co-branded cards. Supports `cartes_bancaires`, `mastercard`, or `visa`. Selection of a network that does not apply to the card will be stored as `invalid_preference` on the card.","enum":["","cartes_bancaires","mastercard","visa"]}},"description":"Contains information about card networks used to process the payment.","x-stripeMostCommon":["preferred"]}},"description":"If this is a `card` PaymentMethod, this hash contains the user's card details.","x-stripeMostCommon":["exp_month","exp_year","networks","request_card_art_and_program_name","request_network_token"]},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"payto":{"title":"param","type":"object","properties":{"account_number":{"maxLength":5000,"type":"string","description":"The account number for the bank account."},"bsb_number":{"maxLength":5000,"type":"string","description":"Bank-State-Branch number of the bank account."},"pay_id":{"maxLength":5000,"type":"string","description":"The PayID alias for the bank account."}},"description":"If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.","x-stripeMostCommon":["account_number","bsb_number","pay_id"]},"us_bank_account":{"title":"update_param","type":"object","properties":{"account_holder_type":{"type":"string","description":"Bank account holder type.","enum":["company","individual"]},"account_type":{"type":"string","description":"Bank account type.","enum":["checking","savings"]}},"description":"If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.","x-stripeMostCommon":["account_holder_type","account_type"]}},"additionalProperties":false,"x-stripeMostCommon":["billing_details","metadata"]},"encoding":{"billing_details":{"style":"deepObject","explode":true},"card":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true},"payto":{"style":"deepObject","explode":true},"us_bank_account":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment_method"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/payment_methods/{payment_method}/attach":{"post":{"summary":"Attach a PaymentMethod to a Customer","description":"Attaches a PaymentMethod object to a Customer.
\n\nTo attach a new PaymentMethod to a customer for future payments, we recommend you use a SetupIntent\nor a PaymentIntent with setup_future_usage.\nThese approaches will perform any necessary steps to set up the PaymentMethod for future payments. Using the /v1/payment_methods/:id/attach\nendpoint without first using a SetupIntent or PaymentIntent with setup_future_usage does not optimize the PaymentMethod for\nfuture use, which makes later declines and payment friction more likely.\nSee Optimizing cards for future payments for more information about setting up\nfuture payments.
To use this PaymentMethod as the default for invoice or subscription payments,\nset invoice_settings.default_payment_method,\non the Customer to the PaymentMethod’s ID.
Detaches a PaymentMethod object from a Customer. After a PaymentMethod is detached, it can no longer be used for a payment or re-attached to a Customer.
","operationId":"PostPaymentMethodsPaymentMethodDetach","parameters":[{"name":"payment_method","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}}},"additionalProperties":false},"encoding":{"expand":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment_method"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/payment_records/report_payment":{"post":{"summary":"Report a payment","description":"Report a new Payment Record. You may report a Payment Record as it is\n initialized and later report updates through the other report_* methods, or report Payment\n Records in a terminal state directly, through this method.
","operationId":"PostPaymentRecordsReportPayment","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["amount_requested","initiated_at","payment_method_details"],"type":"object","properties":{"amount_requested":{"title":"amount","required":["currency","value"],"type":"object","properties":{"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"value":{"type":"integer","description":"A positive integer representing the amount in the currency's [minor unit](https://docs.stripe.com/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY."}},"description":"The amount you initially requested for this payment.","x-stripeMostCommon":["currency","value"]},"customer_details":{"title":"customer_details","type":"object","properties":{"customer":{"maxLength":5000,"type":"string","description":"The customer who made the payment."},"email":{"type":"string","description":"The customer's phone number."},"name":{"maxLength":5000,"type":"string","description":"The customer's name."},"phone":{"type":"string","description":"The customer's phone number."}},"description":"Customer information for this payment.","x-stripeMostCommon":["customer","email","name","phone"]},"customer_presence":{"type":"string","description":"Indicates whether the customer was present in your checkout flow during this payment.","enum":["off_session","on_session"]},"description":{"maxLength":5000,"type":"string","description":"An arbitrary string attached to the object. Often useful for displaying to users."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"failed":{"title":"failed","required":["failed_at"],"type":"object","properties":{"failed_at":{"type":"integer","description":"When the reported payment failed. Measured in seconds since the Unix epoch.","format":"unix-time"}},"description":"Information about the payment attempt failure.","x-stripeMostCommon":["failed_at","failure_code"]},"guaranteed":{"title":"guaranteed","required":["guaranteed_at"],"type":"object","properties":{"guaranteed_at":{"type":"integer","description":"When the reported payment was guaranteed. Measured in seconds since the Unix epoch.","format":"unix-time"}},"description":"Information about the payment attempt guarantee.","x-stripeMostCommon":["amount","final_capture","guaranteed_at"]},"initiated_at":{"type":"integer","description":"When the reported payment was initiated. Measured in seconds since the Unix epoch.","format":"unix-time"},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"outcome":{"type":"string","description":"The outcome of the reported payment.","enum":["failed","guaranteed"]},"payment_method_details":{"title":"payment_method_details","type":"object","properties":{"billing_details":{"title":"billing_details","type":"object","properties":{"address":{"title":"address","type":"object","properties":{"city":{"maxLength":5000,"type":"string","description":"City, district, suburb, town, or village."},"country":{"maxLength":5000,"type":"string","description":"Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."},"line1":{"maxLength":5000,"type":"string","description":"Address line 1, such as the street, PO Box, or company name."},"line2":{"maxLength":5000,"type":"string","description":"Address line 2, such as the apartment, suite, unit, or building."},"postal_code":{"maxLength":5000,"type":"string","description":"ZIP or postal code."},"state":{"maxLength":5000,"type":"string","description":"State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))."}},"description":"The billing address associated with the method of payment.","x-stripeMostCommon":["city","country","line1","line2","postal_code","state"]},"email":{"type":"string","description":"The billing email associated with the method of payment."},"name":{"maxLength":5000,"type":"string","description":"The billing name associated with the method of payment."},"phone":{"type":"string","description":"The billing phone number associated with the method of payment."}},"description":"The billing details associated with the method of payment.","x-stripeMostCommon":["address","email","name","phone"]},"custom":{"title":"custom","type":"object","properties":{"display_name":{"maxLength":5000,"type":"string","description":"Display name for the custom (user-defined) payment method type used to make this payment."},"type":{"maxLength":5000,"type":"string","description":"The custom payment method type associated with this payment."}},"description":"Information about the custom (user-defined) payment method used to make this payment.","x-stripeMostCommon":["display_name","type"]},"payment_method":{"maxLength":5000,"type":"string","description":"ID of the Stripe Payment Method used to make this payment."},"type":{"type":"string","description":"The type of the payment method details. An additional hash is included on the payment_method_details with a name matching this value. It contains additional information specific to the type.","enum":["custom"]}},"description":"Information about the Payment Method debited for this payment.","x-stripeMostCommon":["billing_details","custom","payment_method","shared_payment_granted_token","type"]},"processor_details":{"title":"processor_details","required":["type"],"type":"object","properties":{"custom":{"title":"custom","required":["payment_reference"],"type":"object","properties":{"payment_reference":{"maxLength":5000,"type":"string","description":"An opaque string for manual reconciliation of this payment, for example a check number or a payment processor ID."}},"description":"Information about the custom processor used to make this payment.","x-stripeMostCommon":["payment_reference"]},"type":{"type":"string","description":"The type of the processor details. An additional hash is included on processor_details with a name matching this value. It contains additional information specific to the processor.","enum":["custom"]}},"description":"Processor information for this payment.","x-stripeMostCommon":["custom","type"]},"shipping_details":{"title":"shipping_details","type":"object","properties":{"address":{"title":"address","type":"object","properties":{"city":{"maxLength":5000,"type":"string","description":"City, district, suburb, town, or village."},"country":{"maxLength":5000,"type":"string","description":"Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."},"line1":{"maxLength":5000,"type":"string","description":"Address line 1, such as the street, PO Box, or company name."},"line2":{"maxLength":5000,"type":"string","description":"Address line 2, such as the apartment, suite, unit, or building."},"postal_code":{"maxLength":5000,"type":"string","description":"ZIP or postal code."},"state":{"maxLength":5000,"type":"string","description":"State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))."}},"description":"The physical shipping address.","x-stripeMostCommon":["city","country","line1","line2","postal_code","state"]},"name":{"maxLength":5000,"type":"string","description":"The shipping recipient's name."},"phone":{"type":"string","description":"The shipping recipient's phone number."}},"description":"Shipping information for this payment.","x-stripeMostCommon":["address","name","phone"]}},"additionalProperties":false,"x-stripeMostCommon":["amount_requested","customer_details","customer_presence","description","failed","guaranteed","initiated_at","metadata","outcome","payment_method_details","processor_details","shipping_details"]},"encoding":{"amount_requested":{"style":"deepObject","explode":true},"customer_details":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"failed":{"style":"deepObject","explode":true},"guaranteed":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true},"payment_method_details":{"style":"deepObject","explode":true},"processor_details":{"style":"deepObject","explode":true},"shipping_details":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment_record"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/payment_records/{id}":{"get":{"summary":"Retrieve a Payment Record","description":"Retrieves a Payment Record with the given ID
","operationId":"GetPaymentRecordsId","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"id","in":"path","description":"The ID of the Payment Record.","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment_record"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/payment_records/{id}/report_payment_attempt":{"post":{"summary":"Report a payment attempt","description":"Report a new payment attempt on the specified Payment Record. A new payment\n attempt can only be specified if all other payment attempts are canceled or failed.
","operationId":"PostPaymentRecordsIdReportPaymentAttempt","parameters":[{"name":"id","in":"path","description":"The ID of the Payment Record.","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["initiated_at"],"type":"object","properties":{"description":{"maxLength":5000,"type":"string","description":"An arbitrary string attached to the object. Often useful for displaying to users."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"failed":{"title":"failed","required":["failed_at"],"type":"object","properties":{"failed_at":{"type":"integer","description":"When the reported payment failed. Measured in seconds since the Unix epoch.","format":"unix-time"}},"description":"Information about the payment attempt failure.","x-stripeMostCommon":["failed_at","failure_code"]},"guaranteed":{"title":"guaranteed","required":["guaranteed_at"],"type":"object","properties":{"guaranteed_at":{"type":"integer","description":"When the reported payment was guaranteed. Measured in seconds since the Unix epoch.","format":"unix-time"}},"description":"Information about the payment attempt guarantee.","x-stripeMostCommon":["amount","final_capture","guaranteed_at"]},"initiated_at":{"type":"integer","description":"When the reported payment was initiated. Measured in seconds since the Unix epoch.","format":"unix-time"},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"outcome":{"type":"string","description":"The outcome of the reported payment.","enum":["failed","guaranteed"]},"payment_method_details":{"title":"payment_method_details","type":"object","properties":{"billing_details":{"title":"billing_details","type":"object","properties":{"address":{"title":"address","type":"object","properties":{"city":{"maxLength":5000,"type":"string","description":"City, district, suburb, town, or village."},"country":{"maxLength":5000,"type":"string","description":"Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."},"line1":{"maxLength":5000,"type":"string","description":"Address line 1, such as the street, PO Box, or company name."},"line2":{"maxLength":5000,"type":"string","description":"Address line 2, such as the apartment, suite, unit, or building."},"postal_code":{"maxLength":5000,"type":"string","description":"ZIP or postal code."},"state":{"maxLength":5000,"type":"string","description":"State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))."}},"description":"The billing address associated with the method of payment.","x-stripeMostCommon":["city","country","line1","line2","postal_code","state"]},"email":{"type":"string","description":"The billing email associated with the method of payment."},"name":{"maxLength":5000,"type":"string","description":"The billing name associated with the method of payment."},"phone":{"type":"string","description":"The billing phone number associated with the method of payment."}},"description":"The billing details associated with the method of payment.","x-stripeMostCommon":["address","email","name","phone"]},"custom":{"title":"custom","type":"object","properties":{"display_name":{"maxLength":5000,"type":"string","description":"Display name for the custom (user-defined) payment method type used to make this payment."},"type":{"maxLength":5000,"type":"string","description":"The custom payment method type associated with this payment."}},"description":"Information about the custom (user-defined) payment method used to make this payment.","x-stripeMostCommon":["display_name","type"]},"payment_method":{"maxLength":5000,"type":"string","description":"ID of the Stripe Payment Method used to make this payment."},"type":{"type":"string","description":"The type of the payment method details. An additional hash is included on the payment_method_details with a name matching this value. It contains additional information specific to the type.","enum":["custom"]}},"description":"Information about the Payment Method debited for this payment.","x-stripeMostCommon":["billing_details","custom","payment_method","shared_payment_granted_token","type"]},"shipping_details":{"title":"shipping_details","type":"object","properties":{"address":{"title":"address","type":"object","properties":{"city":{"maxLength":5000,"type":"string","description":"City, district, suburb, town, or village."},"country":{"maxLength":5000,"type":"string","description":"Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."},"line1":{"maxLength":5000,"type":"string","description":"Address line 1, such as the street, PO Box, or company name."},"line2":{"maxLength":5000,"type":"string","description":"Address line 2, such as the apartment, suite, unit, or building."},"postal_code":{"maxLength":5000,"type":"string","description":"ZIP or postal code."},"state":{"maxLength":5000,"type":"string","description":"State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))."}},"description":"The physical shipping address.","x-stripeMostCommon":["city","country","line1","line2","postal_code","state"]},"name":{"maxLength":5000,"type":"string","description":"The shipping recipient's name."},"phone":{"type":"string","description":"The shipping recipient's phone number."}},"description":"Shipping information for this payment.","x-stripeMostCommon":["address","name","phone"]}},"additionalProperties":false,"x-stripeMostCommon":["description","failed","guaranteed","initiated_at","metadata","outcome","payment_method_details","shipping_details"]},"encoding":{"expand":{"style":"deepObject","explode":true},"failed":{"style":"deepObject","explode":true},"guaranteed":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true},"payment_method_details":{"style":"deepObject","explode":true},"shipping_details":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment_record"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/payment_records/{id}/report_payment_attempt_canceled":{"post":{"summary":"Report payment attempt canceled","description":"Report that the most recent payment attempt on the specified Payment Record\n was canceled.
","operationId":"PostPaymentRecordsIdReportPaymentAttemptCanceled","parameters":[{"name":"id","in":"path","description":"The ID of the Payment Record.","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["canceled_at"],"type":"object","properties":{"canceled_at":{"type":"integer","description":"When the reported payment was canceled. Measured in seconds since the Unix epoch.","format":"unix-time"},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]}},"additionalProperties":false,"x-stripeMostCommon":["canceled_at","metadata"]},"encoding":{"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment_record"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/payment_records/{id}/report_payment_attempt_failed":{"post":{"summary":"Report payment attempt failed","description":"Report that the most recent payment attempt on the specified Payment Record\n failed or errored.
","operationId":"PostPaymentRecordsIdReportPaymentAttemptFailed","parameters":[{"name":"id","in":"path","description":"The ID of the Payment Record.","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["failed_at"],"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"failed_at":{"type":"integer","description":"When the reported payment failed. Measured in seconds since the Unix epoch.","format":"unix-time"},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]}},"additionalProperties":false,"x-stripeMostCommon":["failed_at","metadata"]},"encoding":{"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment_record"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/payment_records/{id}/report_payment_attempt_guaranteed":{"post":{"summary":"Report payment attempt guaranteed","description":"Report that the most recent payment attempt on the specified Payment Record\n was guaranteed.
","operationId":"PostPaymentRecordsIdReportPaymentAttemptGuaranteed","parameters":[{"name":"id","in":"path","description":"The ID of the Payment Record.","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["guaranteed_at"],"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"guaranteed_at":{"type":"integer","description":"When the reported payment was guaranteed. Measured in seconds since the Unix epoch.","format":"unix-time"},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]}},"additionalProperties":false,"x-stripeMostCommon":["guaranteed_at","metadata"]},"encoding":{"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment_record"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/payment_records/{id}/report_payment_attempt_informational":{"post":{"summary":"Report payment attempt informational","description":"Report informational updates on the specified Payment Record.
","operationId":"PostPaymentRecordsIdReportPaymentAttemptInformational","parameters":[{"name":"id","in":"path","description":"The ID of the Payment Record.","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"customer_details":{"title":"customer_details","type":"object","properties":{"customer":{"maxLength":5000,"type":"string","description":"The customer who made the payment."},"email":{"type":"string","description":"The customer's phone number."},"name":{"maxLength":5000,"type":"string","description":"The customer's name."},"phone":{"type":"string","description":"The customer's phone number."}},"description":"Customer information for this payment.","x-stripeMostCommon":["customer","email","name","phone"]},"description":{"description":"An arbitrary string attached to the object. Often useful for displaying to users.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"shipping_details":{"description":"Shipping information for this payment.","anyOf":[{"title":"shipping_details","type":"object","properties":{"address":{"title":"address","type":"object","properties":{"city":{"maxLength":5000,"type":"string","description":"City, district, suburb, town, or village."},"country":{"maxLength":5000,"type":"string","description":"Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."},"line1":{"maxLength":5000,"type":"string","description":"Address line 1, such as the street, PO Box, or company name."},"line2":{"maxLength":5000,"type":"string","description":"Address line 2, such as the apartment, suite, unit, or building."},"postal_code":{"maxLength":5000,"type":"string","description":"ZIP or postal code."},"state":{"maxLength":5000,"type":"string","description":"State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))."}},"description":"The physical shipping address.","x-stripeMostCommon":["city","country","line1","line2","postal_code","state"]},"name":{"maxLength":5000,"type":"string","description":"The shipping recipient's name."},"phone":{"type":"string","description":"The shipping recipient's phone number."}},"x-stripeMostCommon":["address","name","phone"]},{"type":"string","enum":[""]}]}},"additionalProperties":false,"x-stripeMostCommon":["customer_details","description","metadata","shipping_details"]},"encoding":{"customer_details":{"style":"deepObject","explode":true},"description":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true},"shipping_details":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment_record"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/payment_records/{id}/report_refund":{"post":{"summary":"Report a refund","description":"Report that the most recent payment attempt on the specified Payment Record\n was refunded.
","operationId":"PostPaymentRecordsIdReportRefund","parameters":[{"name":"id","in":"path","description":"The ID of the Payment Record.","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["outcome","processor_details","refunded"],"type":"object","properties":{"amount":{"title":"amount","required":["currency","value"],"type":"object","properties":{"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"value":{"type":"integer","description":"A positive integer representing the amount in the currency's [minor unit](https://docs.stripe.com/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY."}},"description":"A positive integer in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) representing how much of this payment to refund. Can refund only up to the remaining, unrefunded amount of the payment.","x-stripeMostCommon":["currency","value"]},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"initiated_at":{"type":"integer","description":"When the reported refund was initiated. Measured in seconds since the Unix epoch.","format":"unix-time"},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"outcome":{"type":"string","description":"The outcome of the reported refund.","enum":["refunded"]},"processor_details":{"title":"processor_details","required":["type"],"type":"object","properties":{"custom":{"title":"custom","required":["refund_reference"],"type":"object","properties":{"refund_reference":{"maxLength":5000,"type":"string","description":"A reference to the external refund. This field must be unique across all refunds."}},"description":"Information about the custom processor used to make this refund.","x-stripeMostCommon":["refund_reference"]},"type":{"type":"string","description":"The type of the processor details. An additional hash is included on processor_details with a name matching this value. It contains additional information specific to the processor.","enum":["custom"]}},"description":"Processor information for this refund.","x-stripeMostCommon":["custom","type"]},"refunded":{"title":"refunded","required":["refunded_at"],"type":"object","properties":{"refunded_at":{"type":"integer","description":"When the reported refund completed. Measured in seconds since the Unix epoch.","format":"unix-time"}},"description":"Information about the payment attempt refund.","x-stripeMostCommon":["refunded_at"]}},"additionalProperties":false,"x-stripeMostCommon":["amount","initiated_at","metadata","outcome","processor_details","refunded"]},"encoding":{"amount":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true},"processor_details":{"style":"deepObject","explode":true},"refunded":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment_record"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/payouts":{"get":{"summary":"List all payouts","description":"Returns a list of existing payouts sent to third-party bank accounts or payouts that Stripe sent to you. The payouts return in sorted order, with the most recently created payouts appearing first.
","operationId":"GetPayouts","parameters":[{"name":"arrival_date","in":"query","description":"Only return payouts that are expected to arrive during the given date interval.","required":false,"style":"deepObject","explode":true,"schema":{"anyOf":[{"title":"range_query_specs","type":"object","properties":{"gt":{"type":"integer","description":"Minimum value to filter by (exclusive)"},"gte":{"type":"integer","description":"Minimum value to filter by (inclusive)"},"lt":{"type":"integer","description":"Maximum value to filter by (exclusive)"},"lte":{"type":"integer","description":"Maximum value to filter by (inclusive)"}},"x-stripeMostCommon":["gt","gte","lt","lte"]},{"type":"integer"}]}},{"name":"created","in":"query","description":"Only return payouts that were created during the given date interval.","required":false,"style":"deepObject","explode":true,"schema":{"anyOf":[{"title":"range_query_specs","type":"object","properties":{"gt":{"type":"integer","description":"Minimum value to filter by (exclusive)"},"gte":{"type":"integer","description":"Minimum value to filter by (inclusive)"},"lt":{"type":"integer","description":"Maximum value to filter by (exclusive)"},"lte":{"type":"integer","description":"Maximum value to filter by (inclusive)"}},"x-stripeMostCommon":["gt","gte","lt","lte"]},{"type":"integer"}]}},{"name":"destination","in":"query","description":"The ID of an external account - only return payouts sent to this external account.","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"status","in":"query","description":"Only return payouts that have the given status: `pending`, `paid`, `failed`, or `canceled`.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"PayoutList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/payout"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/payouts","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create a payout","description":"To send funds to your own bank account, create a new payout object. Your Stripe balance must cover the payout amount. If it doesn’t, you receive an “Insufficient Funds” error.
\n\nIf your API key is in test mode, money won’t actually be sent, though every other action occurs as if you’re in live mode.
\n\nIf you create a manual payout on a Stripe account that uses multiple payment source types, you need to specify the source type balance that the payout draws from. The balance object details available and pending amounts by source type.
","operationId":"PostPayouts","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["amount","currency"],"type":"object","properties":{"amount":{"type":"integer","description":"A positive integer in cents representing how much to payout."},"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"description":{"maxLength":5000,"type":"string","description":"An arbitrary string attached to the object. Often useful for displaying to users."},"destination":{"type":"string","description":"The ID of a bank account or a card to send the payout to. If you don't provide a destination, we use the default external account for the specified currency."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"method":{"maxLength":5000,"type":"string","description":"The method used to send this payout, which is `standard` or `instant`. We support `instant` for payouts to debit cards and bank accounts in certain countries. Learn more about [bank support for Instant Payouts](https://stripe.com/docs/payouts/instant-payouts-banks).","enum":["instant","standard"],"x-stripeBypassValidation":true},"payout_method":{"type":"string","description":"The ID of a v2 FinancialAccount to send funds to."},"source_type":{"maxLength":5000,"type":"string","description":"The balance type of your Stripe balance to draw this payout from. Balances for different payment sources are kept separately. You can find the amounts with the Balances API. One of `bank_account`, `card`, or `fpx`.","enum":["bank_account","card","fpx"],"x-stripeBypassValidation":true},"statement_descriptor":{"maxLength":22,"type":"string","description":"A string that displays on the recipient's bank or card statement (up to 22 characters). A `statement_descriptor` that's longer than 22 characters return an error. Most banks truncate this information and display it inconsistently. Some banks might not display it at all.","x-stripeBypassValidation":true}},"additionalProperties":false,"x-stripeMostCommon":["amount","currency","description","metadata","statement_descriptor"]},"encoding":{"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payout"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/payouts/{payout}":{"get":{"summary":"Retrieve a payout","description":"Retrieves the details of an existing payout. Supply the unique payout ID from either a payout creation request or the payout list. Stripe returns the corresponding payout information.
","operationId":"GetPayoutsPayout","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"payout","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payout"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Update a payout","description":"Updates the specified payout by setting the values of the parameters you pass. We don’t change parameters that you don’t provide. This request only accepts the metadata as arguments.
","operationId":"PostPayoutsPayout","parameters":[{"name":"payout","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]}},"additionalProperties":false,"x-stripeMostCommon":["metadata"]},"encoding":{"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payout"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/payouts/{payout}/cancel":{"post":{"summary":"Cancel a payout","description":"You can cancel a previously created payout if its status is pending. Stripe refunds the funds to your available balance. You can’t cancel automatic Stripe payouts.
Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US and Canadian bank accounts. If the payout is manual and in the pending status, use /v1/payouts/:id/cancel instead.
By requesting a reversal through /v1/payouts/:id/reverse, you confirm that the authorized signatory of the selected bank account authorizes the debit on the bank account and that no other authorization is required.
Returns a list of your plans.
","operationId":"GetPlans","parameters":[{"name":"active","in":"query","description":"Only return plans that are active or inactive (e.g., pass `false` to list all inactive plans).","required":false,"style":"form","explode":true,"schema":{"type":"boolean"}},{"name":"created","in":"query","description":"A filter on the list, based on the object `created` field. The value can be a string with an integer Unix timestamp, or it can be a dictionary with a number of different query options.","required":false,"style":"deepObject","explode":true,"schema":{"anyOf":[{"title":"range_query_specs","type":"object","properties":{"gt":{"type":"integer","description":"Minimum value to filter by (exclusive)"},"gte":{"type":"integer","description":"Minimum value to filter by (inclusive)"},"lt":{"type":"integer","description":"Maximum value to filter by (exclusive)"},"lte":{"type":"integer","description":"Maximum value to filter by (inclusive)"}},"x-stripeMostCommon":["gt","gte","lt","lte"]},{"type":"integer"}]}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"product","in":"query","description":"Only return plans for the given product.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"PlanList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","description":"Details about each object.","items":{"$ref":"#/components/schemas/plan"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/plans","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create a plan","description":"You can now model subscriptions more flexibly using the Prices API. It replaces the Plans API and is backwards compatible to simplify your migration.
","operationId":"PostPlans","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["currency","interval"],"type":"object","properties":{"active":{"type":"boolean","description":"Whether the plan is currently available for new subscriptions. Defaults to `true`."},"amount":{"type":"integer","description":"A positive integer in cents (or local equivalent) (or 0 for a free plan) representing how much to charge on a recurring basis."},"amount_decimal":{"type":"string","description":"Same as `amount`, but accepts a decimal value with at most 12 decimal places. Only one of `amount` and `amount_decimal` can be set.","format":"decimal"},"billing_scheme":{"type":"string","description":"Describes how to compute the price per period. Either `per_unit` or `tiered`. `per_unit` indicates that the fixed amount (specified in `amount`) will be charged per unit in `quantity` (for plans with `usage_type=licensed`), or per unit of total usage (for plans with `usage_type=metered`). `tiered` indicates that the unit pricing will be computed using a tiering strategy as defined using the `tiers` and `tiers_mode` attributes.","enum":["per_unit","tiered"]},"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"id":{"maxLength":5000,"type":"string","description":"An identifier randomly generated by Stripe. Used to identify this plan when subscribing a customer. You can optionally override this ID, but the ID must be unique across all plans in your Stripe account. You can, however, use the same plan ID in both live and test modes."},"interval":{"type":"string","description":"Specifies billing frequency. Either `day`, `week`, `month` or `year`.","enum":["day","month","week","year"]},"interval_count":{"type":"integer","description":"The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks)."},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"meter":{"maxLength":5000,"type":"string","description":"The meter tracking the usage of a metered price"},"nickname":{"maxLength":5000,"type":"string","description":"A brief description of the plan, hidden from customers."},"product":{"anyOf":[{"title":"inline_product_params","required":["name"],"type":"object","properties":{"active":{"type":"boolean","description":"Whether the product is currently available for purchase. Defaults to `true`."},"id":{"maxLength":5000,"type":"string","description":"The identifier for the product. Must be unique. If not provided, an identifier will be randomly generated.","deprecated":true},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"name":{"maxLength":5000,"type":"string","description":"The product's name, meant to be displayable to the customer."},"statement_descriptor":{"maxLength":22,"type":"string","description":"An arbitrary string to be displayed on your customer's credit card or bank statement. While most banks display this information consistently, some may display it incorrectly or not at all.\n\nThis may be up to 22 characters. The statement description may not include `<`, `>`, `\\`, `\"`, `'` characters, and will appear on your customer's statement in capital letters. Non-ASCII characters are automatically stripped."},"tax_code":{"maxLength":5000,"type":"string","description":"A [tax code](https://docs.stripe.com/tax/tax-categories) ID."},"unit_label":{"maxLength":12,"type":"string","description":"A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal."}},"description":"The product whose pricing the created plan will represent. This can either be the ID of an existing product, or a dictionary containing fields used to create a [service product](https://docs.stripe.com/api#product_object-type).","x-stripeMostCommon":["active","id","images","metadata","name","statement_descriptor","tax_code","tax_details","unit_label"]},{"maxLength":5000,"type":"string","description":"The ID of the product whose pricing the created plan will represent."}]},"tiers":{"type":"array","description":"Each element represents a pricing tier. This parameter requires `billing_scheme` to be set to `tiered`. See also the documentation for `billing_scheme`.","items":{"title":"tier","required":["up_to"],"type":"object","properties":{"flat_amount":{"type":"integer","description":"The flat billing amount for an entire tier, regardless of the number of units in the tier."},"flat_amount_decimal":{"type":"string","description":"Same as `flat_amount`, but accepts a decimal value representing an integer in the minor units of the currency. Only one of `flat_amount` and `flat_amount_decimal` can be set.","format":"decimal"},"unit_amount":{"type":"integer","description":"The per unit billing amount for each individual unit for which this tier applies."},"unit_amount_decimal":{"type":"string","description":"Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.","format":"decimal"},"up_to":{"description":"Specifies the upper bound of this tier. The lower bound of a tier is the upper bound of the previous tier adding one. Use `inf` to define a fallback tier.","anyOf":[{"maxLength":5000,"type":"string","enum":["inf"]},{"type":"integer"}]}},"x-stripeMostCommon":["flat_amount","flat_amount_decimal","unit_amount","unit_amount_decimal","up_to"]}},"tiers_mode":{"type":"string","description":"Defines if the tiering price should be `graduated` or `volume` based. In `volume`-based tiering, the maximum quantity within a period determines the per unit price, in `graduated` tiering pricing can successively change as the quantity grows.","enum":["graduated","volume"]},"transform_usage":{"title":"transform_usage_param","required":["divide_by","round"],"type":"object","properties":{"divide_by":{"type":"integer","description":"Divide usage by this number."},"round":{"type":"string","description":"After division, either round the result `up` or `down`.","enum":["down","up"]}},"description":"Apply a transformation to the reported usage or set quantity before computing the billed price. Cannot be combined with `tiers`.","x-stripeMostCommon":["divide_by","round"]},"trial_period_days":{"type":"integer","description":"Default number of trial days when subscribing a customer to this plan using [`trial_from_plan=true`](https://docs.stripe.com/api#create_subscription-trial_from_plan)."},"usage_type":{"type":"string","description":"Configures how the quantity per period should be determined. Can be either `metered` or `licensed`. `licensed` automatically bills the `quantity` set when adding it to a subscription. `metered` aggregates the total usage based on usage records. Defaults to `licensed`.","enum":["licensed","metered"]}},"additionalProperties":false,"x-stripeMostCommon":["active","amount","currency","interval","metadata","nickname","product"]},"encoding":{"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true},"product":{"style":"deepObject","explode":true},"tiers":{"style":"deepObject","explode":true},"transform_usage":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/plan"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/plans/{plan}":{"get":{"summary":"Retrieve a plan","description":"Retrieves the plan with the given ID.
","operationId":"GetPlansPlan","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"plan","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/plan"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Update a plan","description":"Updates the specified plan by setting the values of the parameters passed. Any parameters not provided are left unchanged. By design, you cannot change a plan’s ID, amount, currency, or billing cycle.
","operationId":"PostPlansPlan","parameters":[{"name":"plan","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"active":{"type":"boolean","description":"Whether the plan is currently available for new subscriptions."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"nickname":{"maxLength":5000,"type":"string","description":"A brief description of the plan, hidden from customers."},"product":{"maxLength":5000,"type":"string","description":"The product the plan belongs to. This cannot be changed once it has been used in a subscription or subscription schedule."},"trial_period_days":{"type":"integer","description":"Default number of trial days when subscribing a customer to this plan using [`trial_from_plan=true`](https://docs.stripe.com/api#create_subscription-trial_from_plan)."}},"additionalProperties":false,"x-stripeMostCommon":["active","metadata","nickname"]},"encoding":{"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/plan"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"delete":{"summary":"Delete a plan","description":"Deleting plans means new subscribers can’t be added. Existing subscribers aren’t affected.
","operationId":"DeletePlansPlan","parameters":[{"name":"plan","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/deleted_plan"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/prices":{"get":{"summary":"List all prices","description":"Returns a list of your active prices, excluding inline prices. For the list of inactive prices, set active to false.
Creates a new Price for an existing Product. The Price can be recurring or one-time.
","operationId":"PostPrices","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["currency"],"type":"object","properties":{"active":{"type":"boolean","description":"Whether the price can be used for new purchases. Defaults to `true`."},"billing_scheme":{"type":"string","description":"Describes how to compute the price per period. Either `per_unit` or `tiered`. `per_unit` indicates that the fixed amount (specified in `unit_amount` or `unit_amount_decimal`) will be charged per unit in `quantity` (for prices with `usage_type=licensed`), or per unit of total usage (for prices with `usage_type=metered`). `tiered` indicates that the unit pricing will be computed using a tiering strategy as defined using the `tiers` and `tiers_mode` attributes.","enum":["per_unit","tiered"]},"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"currency_options":{"type":"object","additionalProperties":{"title":"currency_option","type":"object","properties":{"custom_unit_amount":{"title":"custom_unit_amount","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Pass in `true` to enable `custom_unit_amount`, otherwise omit `custom_unit_amount`."},"maximum":{"type":"integer","description":"The maximum unit amount the customer can specify for this item."},"minimum":{"type":"integer","description":"The minimum unit amount the customer can specify for this item. Must be at least the minimum charge amount."},"preset":{"type":"integer","description":"The starting unit amount which can be updated by the customer."}},"description":"When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links.","x-stripeMostCommon":["enabled","preset"]},"tax_behavior":{"type":"string","description":"Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.","enum":["exclusive","inclusive","unspecified"]},"tiers":{"type":"array","description":"Each element represents a pricing tier. This parameter requires `billing_scheme` to be set to `tiered`. See also the documentation for `billing_scheme`.","items":{"title":"tier","required":["up_to"],"type":"object","properties":{"flat_amount":{"type":"integer","description":"The flat billing amount for an entire tier, regardless of the number of units in the tier."},"flat_amount_decimal":{"type":"string","description":"Same as `flat_amount`, but accepts a decimal value representing an integer in the minor units of the currency. Only one of `flat_amount` and `flat_amount_decimal` can be set.","format":"decimal"},"unit_amount":{"type":"integer","description":"The per unit billing amount for each individual unit for which this tier applies."},"unit_amount_decimal":{"type":"string","description":"Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.","format":"decimal"},"up_to":{"description":"Specifies the upper bound of this tier. The lower bound of a tier is the upper bound of the previous tier adding one. Use `inf` to define a fallback tier.","anyOf":[{"maxLength":5000,"type":"string","enum":["inf"]},{"type":"integer"}]}},"x-stripeMostCommon":["flat_amount","flat_amount_decimal","unit_amount","unit_amount_decimal","up_to"]}},"unit_amount":{"type":"integer","description":"A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge."},"unit_amount_decimal":{"type":"string","description":"Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.","format":"decimal"}},"x-stripeMostCommon":["unit_amount"]},"description":"Prices defined in each available currency option. Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies)."},"custom_unit_amount":{"title":"custom_unit_amount","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Pass in `true` to enable `custom_unit_amount`, otherwise omit `custom_unit_amount`."},"maximum":{"type":"integer","description":"The maximum unit amount the customer can specify for this item."},"minimum":{"type":"integer","description":"The minimum unit amount the customer can specify for this item. Must be at least the minimum charge amount."},"preset":{"type":"integer","description":"The starting unit amount which can be updated by the customer."}},"description":"When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links.","x-stripeMostCommon":["enabled","preset"]},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"lookup_key":{"maxLength":200,"type":"string","description":"A lookup key used to retrieve prices dynamically from a static string. This may be up to 200 characters."},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"nickname":{"maxLength":5000,"type":"string","description":"A brief description of the price, hidden from customers."},"product":{"maxLength":5000,"type":"string","description":"The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to."},"product_data":{"title":"inline_product_params","required":["name"],"type":"object","properties":{"active":{"type":"boolean","description":"Whether the product is currently available for purchase. Defaults to `true`."},"id":{"maxLength":5000,"type":"string","description":"The identifier for the product. Must be unique. If not provided, an identifier will be randomly generated.","deprecated":true},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"name":{"maxLength":5000,"type":"string","description":"The product's name, meant to be displayable to the customer."},"statement_descriptor":{"maxLength":22,"type":"string","description":"An arbitrary string to be displayed on your customer's credit card or bank statement. While most banks display this information consistently, some may display it incorrectly or not at all.\n\nThis may be up to 22 characters. The statement description may not include `<`, `>`, `\\`, `\"`, `'` characters, and will appear on your customer's statement in capital letters. Non-ASCII characters are automatically stripped."},"tax_code":{"maxLength":5000,"type":"string","description":"A [tax code](https://docs.stripe.com/tax/tax-categories) ID."},"unit_label":{"maxLength":12,"type":"string","description":"A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal."}},"description":"These fields can be used to create a new product that this price will belong to.","x-stripeMostCommon":["active","id","images","metadata","name","statement_descriptor","tax_code","tax_details","unit_label"]},"recurring":{"title":"recurring","required":["interval"],"type":"object","properties":{"interval":{"type":"string","description":"Specifies billing frequency. Either `day`, `week`, `month` or `year`.","enum":["day","month","week","year"]},"interval_count":{"type":"integer","description":"The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks)."},"meter":{"maxLength":5000,"type":"string","description":"The meter tracking the usage of a metered price"},"trial_period_days":{"type":"integer","description":"Default number of trial days when subscribing a customer to this price using [`trial_from_plan=true`](https://docs.stripe.com/api#create_subscription-trial_from_plan)."},"usage_type":{"type":"string","description":"Configures how the quantity per period should be determined. Can be either `metered` or `licensed`. `licensed` automatically bills the `quantity` set when adding it to a subscription. `metered` aggregates the total usage based on usage records. Defaults to `licensed`.","enum":["licensed","metered"]}},"description":"The recurring components of a price such as `interval` and `usage_type`.","x-stripeMostCommon":["interval","meter","trial_period_days","usage_type"]},"tax_behavior":{"type":"string","description":"Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.","enum":["exclusive","inclusive","unspecified"]},"tiers":{"type":"array","description":"Each element represents a pricing tier. This parameter requires `billing_scheme` to be set to `tiered`. See also the documentation for `billing_scheme`.","items":{"title":"tier","required":["up_to"],"type":"object","properties":{"flat_amount":{"type":"integer","description":"The flat billing amount for an entire tier, regardless of the number of units in the tier."},"flat_amount_decimal":{"type":"string","description":"Same as `flat_amount`, but accepts a decimal value representing an integer in the minor units of the currency. Only one of `flat_amount` and `flat_amount_decimal` can be set.","format":"decimal"},"unit_amount":{"type":"integer","description":"The per unit billing amount for each individual unit for which this tier applies."},"unit_amount_decimal":{"type":"string","description":"Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.","format":"decimal"},"up_to":{"description":"Specifies the upper bound of this tier. The lower bound of a tier is the upper bound of the previous tier adding one. Use `inf` to define a fallback tier.","anyOf":[{"maxLength":5000,"type":"string","enum":["inf"]},{"type":"integer"}]}},"x-stripeMostCommon":["flat_amount","flat_amount_decimal","unit_amount","unit_amount_decimal","up_to"]}},"tiers_mode":{"type":"string","description":"Defines if the tiering price should be `graduated` or `volume` based. In `volume`-based tiering, the maximum quantity within a period determines the per unit price, in `graduated` tiering pricing can successively change as the quantity grows.","enum":["graduated","volume"]},"transfer_lookup_key":{"type":"boolean","description":"If set to true, will atomically remove the lookup key from the existing price, and assign it to this price."},"transform_quantity":{"title":"transform_usage_param","required":["divide_by","round"],"type":"object","properties":{"divide_by":{"type":"integer","description":"Divide usage by this number."},"round":{"type":"string","description":"After division, either round the result `up` or `down`.","enum":["down","up"]}},"description":"Apply a transformation to the reported usage or set quantity before computing the billed price. Cannot be combined with `tiers`.","x-stripeMostCommon":["divide_by","round"]},"unit_amount":{"type":"integer","description":"A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge. One of `unit_amount`, `unit_amount_decimal`, or `custom_unit_amount` is required, unless `billing_scheme=tiered`."},"unit_amount_decimal":{"type":"string","description":"Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.","format":"decimal"}},"additionalProperties":false,"x-stripeMostCommon":["active","currency","metadata","nickname","product","recurring","tax_behavior","unit_amount"]},"encoding":{"currency_options":{"style":"deepObject","explode":true},"custom_unit_amount":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true},"product_data":{"style":"deepObject","explode":true},"recurring":{"style":"deepObject","explode":true},"tiers":{"style":"deepObject","explode":true},"transform_quantity":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/price"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/prices/search":{"get":{"summary":"Search prices","description":"Search for prices you’ve previously created using Stripe’s Search Query Language.\nDon’t use search in read-after-write flows where strict consistency is necessary. Under normal operating\nconditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up\nto an hour behind during outages. Search functionality is not available to merchants in India.
","operationId":"GetPricesSearch","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"page","in":"query","description":"A cursor for pagination across multiple pages of results. Don't include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"query","in":"query","description":"The search query string. See [search query language](https://docs.stripe.com/search#search-query-language) and the list of supported [query fields for prices](https://docs.stripe.com/search#query-fields-for-prices).","required":true,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"SearchResult","required":["data","has_more","next_page","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/price"}},"has_more":{"type":"boolean"},"next_page":{"maxLength":5000,"type":"string","nullable":true},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value.","enum":["search_result"]},"total_count":{"type":"integer","description":"The total number of objects that match the query, only accurate up to 10,000."},"url":{"maxLength":5000,"type":"string"}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","next_page","object","total_count","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/prices/{price}":{"get":{"summary":"Retrieve a price","description":"Retrieves the price with the given ID.
","operationId":"GetPricesPrice","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"price","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/price"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Update a price","description":"Updates the specified price by setting the values of the parameters passed. Any parameters not provided are left unchanged.
","operationId":"PostPricesPrice","parameters":[{"name":"price","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"active":{"type":"boolean","description":"Whether the price can be used for new purchases. Defaults to `true`."},"currency_options":{"description":"Prices defined in each available currency option. Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies).","anyOf":[{"type":"object","additionalProperties":{"title":"currency_option","type":"object","properties":{"custom_unit_amount":{"title":"custom_unit_amount","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Pass in `true` to enable `custom_unit_amount`, otherwise omit `custom_unit_amount`."},"maximum":{"type":"integer","description":"The maximum unit amount the customer can specify for this item."},"minimum":{"type":"integer","description":"The minimum unit amount the customer can specify for this item. Must be at least the minimum charge amount."},"preset":{"type":"integer","description":"The starting unit amount which can be updated by the customer."}},"description":"When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links.","x-stripeMostCommon":["enabled","preset"]},"tax_behavior":{"type":"string","description":"Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.","enum":["exclusive","inclusive","unspecified"]},"tiers":{"type":"array","description":"Each element represents a pricing tier. This parameter requires `billing_scheme` to be set to `tiered`. See also the documentation for `billing_scheme`.","items":{"title":"tier","required":["up_to"],"type":"object","properties":{"flat_amount":{"type":"integer","description":"The flat billing amount for an entire tier, regardless of the number of units in the tier."},"flat_amount_decimal":{"type":"string","description":"Same as `flat_amount`, but accepts a decimal value representing an integer in the minor units of the currency. Only one of `flat_amount` and `flat_amount_decimal` can be set.","format":"decimal"},"unit_amount":{"type":"integer","description":"The per unit billing amount for each individual unit for which this tier applies."},"unit_amount_decimal":{"type":"string","description":"Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.","format":"decimal"},"up_to":{"description":"Specifies the upper bound of this tier. The lower bound of a tier is the upper bound of the previous tier adding one. Use `inf` to define a fallback tier.","anyOf":[{"maxLength":5000,"type":"string","enum":["inf"]},{"type":"integer"}]}},"x-stripeMostCommon":["flat_amount","flat_amount_decimal","unit_amount","unit_amount_decimal","up_to"]}},"unit_amount":{"type":"integer","description":"A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge."},"unit_amount_decimal":{"type":"string","description":"Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.","format":"decimal"}},"x-stripeMostCommon":["unit_amount"]}},{"type":"string","enum":[""]}]},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"lookup_key":{"maxLength":200,"type":"string","description":"A lookup key used to retrieve prices dynamically from a static string. This may be up to 200 characters."},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"nickname":{"maxLength":5000,"type":"string","description":"A brief description of the price, hidden from customers."},"tax_behavior":{"type":"string","description":"Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.","enum":["exclusive","inclusive","unspecified"]},"transfer_lookup_key":{"type":"boolean","description":"If set to true, will atomically remove the lookup key from the existing price, and assign it to this price."}},"additionalProperties":false,"x-stripeMostCommon":["active","metadata","nickname","tax_behavior"]},"encoding":{"currency_options":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/price"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/products":{"get":{"summary":"List all products","description":"Returns a list of your products. The products are returned sorted by creation date, with the most recently created products appearing first.
","operationId":"GetProducts","parameters":[{"name":"active","in":"query","description":"Only return products that are active or inactive (e.g., pass `false` to list all inactive products).","required":false,"style":"form","explode":true,"schema":{"type":"boolean"}},{"name":"created","in":"query","description":"Only return products that were created during the given date interval.","required":false,"style":"deepObject","explode":true,"schema":{"anyOf":[{"title":"range_query_specs","type":"object","properties":{"gt":{"type":"integer","description":"Minimum value to filter by (exclusive)"},"gte":{"type":"integer","description":"Minimum value to filter by (inclusive)"},"lt":{"type":"integer","description":"Maximum value to filter by (exclusive)"},"lte":{"type":"integer","description":"Maximum value to filter by (inclusive)"}},"x-stripeMostCommon":["gt","gte","lt","lte"]},{"type":"integer"}]}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"ids","in":"query","description":"Only return products with the given IDs. Cannot be used with [starting_after](https://api.stripe.com#list_products-starting_after) or [ending_before](https://api.stripe.com#list_products-ending_before).","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"shippable","in":"query","description":"Only return products that can be shipped (i.e., physical, not digital products).","required":false,"style":"form","explode":true,"schema":{"type":"boolean"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"type","in":"query","description":"Only return products of this type.","required":false,"style":"form","explode":true,"schema":{"type":"string","enum":["good","service"]}},{"name":"url","in":"query","description":"Only return products with the given url.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"ProductList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","description":"Details about each object.","items":{"$ref":"#/components/schemas/product"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/products","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create a product","description":"Creates a new product object.
","operationId":"PostProducts","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["name"],"type":"object","properties":{"active":{"type":"boolean","description":"Whether the product is currently available for purchase. Defaults to `true`."},"default_price_data":{"title":"price_data_without_product_with_metadata","required":["currency"],"type":"object","properties":{"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"currency_options":{"type":"object","additionalProperties":{"title":"currency_option","type":"object","properties":{"custom_unit_amount":{"title":"custom_unit_amount","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Pass in `true` to enable `custom_unit_amount`, otherwise omit `custom_unit_amount`."},"maximum":{"type":"integer","description":"The maximum unit amount the customer can specify for this item."},"minimum":{"type":"integer","description":"The minimum unit amount the customer can specify for this item. Must be at least the minimum charge amount."},"preset":{"type":"integer","description":"The starting unit amount which can be updated by the customer."}},"description":"When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links.","x-stripeMostCommon":["enabled","preset"]},"tax_behavior":{"type":"string","description":"Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.","enum":["exclusive","inclusive","unspecified"]},"tiers":{"type":"array","description":"Each element represents a pricing tier. This parameter requires `billing_scheme` to be set to `tiered`. See also the documentation for `billing_scheme`.","items":{"title":"tier","required":["up_to"],"type":"object","properties":{"flat_amount":{"type":"integer","description":"The flat billing amount for an entire tier, regardless of the number of units in the tier."},"flat_amount_decimal":{"type":"string","description":"Same as `flat_amount`, but accepts a decimal value representing an integer in the minor units of the currency. Only one of `flat_amount` and `flat_amount_decimal` can be set.","format":"decimal"},"unit_amount":{"type":"integer","description":"The per unit billing amount for each individual unit for which this tier applies."},"unit_amount_decimal":{"type":"string","description":"Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.","format":"decimal"},"up_to":{"description":"Specifies the upper bound of this tier. The lower bound of a tier is the upper bound of the previous tier adding one. Use `inf` to define a fallback tier.","anyOf":[{"maxLength":5000,"type":"string","enum":["inf"]},{"type":"integer"}]}},"x-stripeMostCommon":["flat_amount","flat_amount_decimal","unit_amount","unit_amount_decimal","up_to"]}},"unit_amount":{"type":"integer","description":"A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge."},"unit_amount_decimal":{"type":"string","description":"Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.","format":"decimal"}},"x-stripeMostCommon":["unit_amount"]},"description":"Prices defined in each available currency option. Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies)."},"custom_unit_amount":{"title":"custom_unit_amount","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Pass in `true` to enable `custom_unit_amount`, otherwise omit `custom_unit_amount`."},"maximum":{"type":"integer","description":"The maximum unit amount the customer can specify for this item."},"minimum":{"type":"integer","description":"The minimum unit amount the customer can specify for this item. Must be at least the minimum charge amount."},"preset":{"type":"integer","description":"The starting unit amount which can be updated by the customer."}},"description":"When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links.","x-stripeMostCommon":["enabled","preset"]},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"recurring":{"title":"recurring_adhoc","required":["interval"],"type":"object","properties":{"interval":{"type":"string","description":"Specifies billing frequency. Either `day`, `week`, `month` or `year`.","enum":["day","month","week","year"]},"interval_count":{"type":"integer","description":"The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks)."}},"description":"The recurring components of a price such as `interval` and `interval_count`.","x-stripeMostCommon":["interval"]},"tax_behavior":{"type":"string","description":"Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.","enum":["exclusive","inclusive","unspecified"]},"unit_amount":{"type":"integer","description":"A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge. One of `unit_amount`, `unit_amount_decimal`, or `custom_unit_amount` is required."},"unit_amount_decimal":{"type":"string","description":"Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.","format":"decimal"}},"description":"Data used to generate a new [Price](https://docs.stripe.com/api/prices) object. This Price will be set as the default price for this product.","x-stripeMostCommon":["currency","unit_amount"]},"description":{"maxLength":40000,"type":"string","description":"The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"id":{"maxLength":5000,"type":"string","description":"An identifier will be randomly generated by Stripe. You can optionally override this ID, but the ID must be unique across all products in your Stripe account."},"images":{"type":"array","description":"A list of up to 8 URLs of images for this product, meant to be displayable to the customer.","items":{"type":"string"}},"marketing_features":{"type":"array","description":"A list of up to 15 marketing features for this product. These are displayed in [pricing tables](https://docs.stripe.com/payments/checkout/pricing-table).","items":{"title":"features","required":["name"],"type":"object","properties":{"name":{"maxLength":5000,"type":"string","description":"The marketing feature name. Up to 80 characters long."}},"x-stripeMostCommon":["name"]}},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"name":{"maxLength":5000,"type":"string","description":"The product's name, meant to be displayable to the customer."},"package_dimensions":{"title":"package_dimensions_specs","required":["height","length","weight","width"],"type":"object","properties":{"height":{"type":"number","description":"Height, in inches. Maximum precision is 2 decimal places."},"length":{"type":"number","description":"Length, in inches. Maximum precision is 2 decimal places."},"weight":{"type":"number","description":"Weight, in ounces. Maximum precision is 2 decimal places."},"width":{"type":"number","description":"Width, in inches. Maximum precision is 2 decimal places."}},"description":"The dimensions of this product for shipping purposes.","x-stripeMostCommon":["height","length","weight","width"]},"shippable":{"type":"boolean","description":"Whether this product is shipped (i.e., physical goods)."},"statement_descriptor":{"maxLength":22,"type":"string","description":"An arbitrary string to be displayed on your customer's credit card or bank statement. While most banks display this information consistently, some may display it incorrectly or not at all.\n\nThis may be up to 22 characters. The statement description may not include `<`, `>`, `\\`, `\"`, `'` characters, and will appear on your customer's statement in capital letters. Non-ASCII characters are automatically stripped.\n It must contain at least one letter. Only used for subscription payments."},"tax_code":{"type":"string","description":"A [tax code](https://docs.stripe.com/tax/tax-categories) ID."},"type":{"type":"string","description":"The type of the product. Defaults to `service` if not explicitly specified, enabling use of this product with Subscriptions and Plans. Set this parameter to `good` to use this product with Orders and SKUs. On API versions before `2018-02-05`, this field defaults to `good` for compatibility reasons.","enum":["good","service"]},"unit_label":{"maxLength":12,"type":"string","description":"A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal."},"url":{"maxLength":5000,"type":"string","description":"A URL of a publicly-accessible webpage for this product."}},"additionalProperties":false,"x-stripeMostCommon":["active","description","id","metadata","name","tax_code"]},"encoding":{"default_price_data":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"images":{"style":"deepObject","explode":true},"marketing_features":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true},"package_dimensions":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/product"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/products/search":{"get":{"summary":"Search products","description":"Search for products you’ve previously created using Stripe’s Search Query Language.\nDon’t use search in read-after-write flows where strict consistency is necessary. Under normal operating\nconditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up\nto an hour behind during outages. Search functionality is not available to merchants in India.
","operationId":"GetProductsSearch","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"page","in":"query","description":"A cursor for pagination across multiple pages of results. Don't include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"query","in":"query","description":"The search query string. See [search query language](https://docs.stripe.com/search#search-query-language) and the list of supported [query fields for products](https://docs.stripe.com/search#query-fields-for-products).","required":true,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"SearchResult","required":["data","has_more","next_page","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/product"}},"has_more":{"type":"boolean"},"next_page":{"maxLength":5000,"type":"string","nullable":true},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value.","enum":["search_result"]},"total_count":{"type":"integer","description":"The total number of objects that match the query, only accurate up to 10,000."},"url":{"maxLength":5000,"type":"string"}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","next_page","object","total_count","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/products/{id}":{"get":{"summary":"Retrieve a product","description":"Retrieves the details of an existing product. Supply the unique product ID from either a product creation request or the product list, and Stripe will return the corresponding product information.
","operationId":"GetProductsId","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"id","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/product"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Update a product","description":"Updates the specific product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
","operationId":"PostProductsId","parameters":[{"name":"id","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"active":{"type":"boolean","description":"Whether the product is available for purchase."},"default_price":{"maxLength":5000,"type":"string","description":"The ID of the [Price](https://docs.stripe.com/api/prices) object that is the default price for this product."},"description":{"description":"The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.","anyOf":[{"maxLength":40000,"type":"string"},{"type":"string","enum":[""]}]},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"images":{"description":"A list of up to 8 URLs of images for this product, meant to be displayable to the customer.","anyOf":[{"type":"array","items":{"type":"string"}},{"type":"string","enum":[""]}]},"marketing_features":{"description":"A list of up to 15 marketing features for this product. These are displayed in [pricing tables](https://docs.stripe.com/payments/checkout/pricing-table).","anyOf":[{"type":"array","items":{"title":"features","required":["name"],"type":"object","properties":{"name":{"maxLength":5000,"type":"string","description":"The marketing feature name. Up to 80 characters long."}},"x-stripeMostCommon":["name"]}},{"type":"string","enum":[""]}]},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"name":{"maxLength":5000,"type":"string","description":"The product's name, meant to be displayable to the customer."},"package_dimensions":{"description":"The dimensions of this product for shipping purposes.","anyOf":[{"title":"package_dimensions_specs","required":["height","length","weight","width"],"type":"object","properties":{"height":{"type":"number","description":"Height, in inches. Maximum precision is 2 decimal places."},"length":{"type":"number","description":"Length, in inches. Maximum precision is 2 decimal places."},"weight":{"type":"number","description":"Weight, in ounces. Maximum precision is 2 decimal places."},"width":{"type":"number","description":"Width, in inches. Maximum precision is 2 decimal places."}},"x-stripeMostCommon":["height","length","weight","width"]},{"type":"string","enum":[""]}]},"shippable":{"type":"boolean","description":"Whether this product is shipped (i.e., physical goods)."},"statement_descriptor":{"maxLength":22,"type":"string","description":"An arbitrary string to be displayed on your customer's credit card or bank statement. While most banks display this information consistently, some may display it incorrectly or not at all.\n\nThis may be up to 22 characters. The statement description may not include `<`, `>`, `\\`, `\"`, `'` characters, and will appear on your customer's statement in capital letters. Non-ASCII characters are automatically stripped.\n It must contain at least one letter. May only be set if `type=service`. Only used for subscription payments."},"tax_code":{"description":"A [tax code](https://docs.stripe.com/tax/tax-categories) ID.","anyOf":[{"type":"string"},{"type":"string","enum":[""]}]},"unit_label":{"description":"A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. May only be set if `type=service`.","anyOf":[{"maxLength":12,"type":"string"},{"type":"string","enum":[""]}]},"url":{"description":"A URL of a publicly-accessible webpage for this product.","anyOf":[{"type":"string"},{"type":"string","enum":[""]}]}},"additionalProperties":false,"x-stripeMostCommon":["active","default_price","description","metadata","name","tax_code"]},"encoding":{"description":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"images":{"style":"deepObject","explode":true},"marketing_features":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true},"package_dimensions":{"style":"deepObject","explode":true},"tax_code":{"style":"deepObject","explode":true},"unit_label":{"style":"deepObject","explode":true},"url":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/product"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"delete":{"summary":"Delete a product","description":"Delete a product. Deleting a product is only possible if it has no prices associated with it. Additionally, deleting a product with type=good is only possible if it has no SKUs associated with it.
Retrieve a list of features for a product
","operationId":"GetProductsProductFeatures","parameters":[{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"product","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"EntitlementsResourceProductFeatureList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/product_feature"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Attach a feature to a product","description":"Creates a product_feature, which represents a feature attachment to a product
","operationId":"PostProductsProductFeatures","parameters":[{"name":"product","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["entitlement_feature"],"type":"object","properties":{"entitlement_feature":{"maxLength":5000,"type":"string","description":"The ID of the [Feature](https://docs.stripe.com/api/entitlements/feature) object attached to this product."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}}},"additionalProperties":false,"x-stripeMostCommon":["entitlement_feature"]},"encoding":{"expand":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/product_feature"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/products/{product}/features/{id}":{"get":{"summary":"Retrieve a product_feature","description":"Retrieves a product_feature, which represents a feature attachment to a product
","operationId":"GetProductsProductFeaturesId","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"id","in":"path","description":"The ID of the product_feature.","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"product","in":"path","description":"The ID of the product.","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/product_feature"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"delete":{"summary":"Remove a feature from a product","description":"Deletes the feature attachment to a product
","operationId":"DeleteProductsProductFeaturesId","parameters":[{"name":"id","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"product","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/deleted_product_feature"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/promotion_codes":{"get":{"summary":"List all promotion codes","description":"Returns a list of your promotion codes.
","operationId":"GetPromotionCodes","parameters":[{"name":"active","in":"query","description":"Filter promotion codes by whether they are active.","required":false,"style":"form","explode":true,"schema":{"type":"boolean"}},{"name":"code","in":"query","description":"Only return promotion codes that have this case-insensitive code.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"coupon","in":"query","description":"Only return promotion codes for this coupon.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"created","in":"query","description":"A filter on the list, based on the object `created` field. The value can be a string with an integer Unix timestamp, or it can be a dictionary with a number of different query options.","required":false,"style":"deepObject","explode":true,"schema":{"anyOf":[{"title":"range_query_specs","type":"object","properties":{"gt":{"type":"integer","description":"Minimum value to filter by (exclusive)"},"gte":{"type":"integer","description":"Minimum value to filter by (inclusive)"},"lt":{"type":"integer","description":"Maximum value to filter by (exclusive)"},"lte":{"type":"integer","description":"Maximum value to filter by (inclusive)"}},"x-stripeMostCommon":["gt","gte","lt","lte"]},{"type":"integer"}]}},{"name":"customer","in":"query","description":"Only return promotion codes that are restricted to this customer.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"customer_account","in":"query","description":"Only return promotion codes that are restricted to this account representing the customer.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"PromotionCodesResourcePromotionCodeList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/promotion_code"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/promotion_codes","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create a promotion code","description":"A promotion code points to an underlying promotion. You can optionally restrict the code to a specific customer, redemption limit, and expiration date.
","operationId":"PostPromotionCodes","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["promotion"],"type":"object","properties":{"active":{"type":"boolean","description":"Whether the promotion code is currently active."},"code":{"maxLength":500,"type":"string","description":"The customer-facing code. Regardless of case, this code must be unique across all active promotion codes for a specific customer. Valid characters are lower case letters (a-z), upper case letters (A-Z), digits (0-9), and dashes (-).\n\nIf left blank, we will generate one automatically."},"customer":{"maxLength":5000,"type":"string","description":"The customer who can use this promotion code. If not set, all customers can use the promotion code."},"customer_account":{"maxLength":5000,"type":"string","description":"The account representing the customer who can use this promotion code. If not set, all customers can use the promotion code."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"expires_at":{"type":"integer","description":"The timestamp at which this promotion code will expire. If the coupon has specified a `redeems_by`, then this value cannot be after the coupon's `redeems_by`.","format":"unix-time"},"max_redemptions":{"type":"integer","description":"A positive integer specifying the number of times the promotion code can be redeemed. If the coupon has specified a `max_redemptions`, then this value cannot be greater than the coupon's `max_redemptions`."},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"promotion":{"title":"promotion","required":["type"],"type":"object","properties":{"coupon":{"maxLength":5000,"type":"string","description":"If promotion `type` is `coupon`, the coupon for this promotion code."},"type":{"type":"string","description":"Specifies the type of promotion.","enum":["coupon"]}},"description":"The promotion referenced by this promotion code.","x-stripeMostCommon":["coupon","type"]},"restrictions":{"title":"restrictions_params","type":"object","properties":{"currency_options":{"type":"object","additionalProperties":{"title":"currency_option","type":"object","properties":{"minimum_amount":{"type":"integer","description":"Minimum amount required to redeem this Promotion Code into a Coupon (e.g., a purchase must be $100 or more to work)."}},"x-stripeMostCommon":["minimum_amount"]},"description":"Promotion codes defined in each available currency option. Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies)."},"first_time_transaction":{"type":"boolean","description":"A Boolean indicating if the Promotion Code should only be redeemed for Customers without any successful payments or invoices"},"minimum_amount":{"type":"integer","description":"Minimum amount required to redeem this Promotion Code into a Coupon (e.g., a purchase must be $100 or more to work)."},"minimum_amount_currency":{"type":"string","description":"Three-letter [ISO code](https://stripe.com/docs/currencies) for minimum_amount","format":"currency"}},"description":"Settings that restrict the redemption of the promotion code.","x-stripeMostCommon":["currency_options","first_time_transaction","minimum_amount","minimum_amount_currency"]}},"additionalProperties":false,"x-stripeMostCommon":["code","metadata","promotion"]},"encoding":{"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true},"promotion":{"style":"deepObject","explode":true},"restrictions":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/promotion_code"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/promotion_codes/{promotion_code}":{"get":{"summary":"Retrieve a promotion code","description":"Retrieves the promotion code with the given ID. In order to retrieve a promotion code by the customer-facing code use list with the desired code.
Updates the specified promotion code by setting the values of the parameters passed. Most fields are, by design, not editable.
","operationId":"PostPromotionCodesPromotionCode","parameters":[{"name":"promotion_code","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"active":{"type":"boolean","description":"Whether the promotion code is currently active. A promotion code can only be reactivated when the coupon is still valid and the promotion code is otherwise redeemable."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"restrictions":{"title":"restrictions_params","type":"object","properties":{"currency_options":{"type":"object","additionalProperties":{"title":"currency_option","type":"object","properties":{"minimum_amount":{"type":"integer","description":"Minimum amount required to redeem this Promotion Code into a Coupon (e.g., a purchase must be $100 or more to work)."}},"x-stripeMostCommon":["minimum_amount"]},"description":"Promotion codes defined in each available currency option. Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies)."}},"description":"Settings that restrict the redemption of the promotion code.","x-stripeMostCommon":["currency_options"]}},"additionalProperties":false,"x-stripeMostCommon":["metadata"]},"encoding":{"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true},"restrictions":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/promotion_code"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/quotes":{"get":{"summary":"List all quotes","description":"Returns a list of your quotes.
","operationId":"GetQuotes","parameters":[{"name":"customer","in":"query","description":"The ID of the customer whose quotes you're retrieving.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"customer_account","in":"query","description":"The ID of the account representing the customer whose quotes you're retrieving.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"status","in":"query","description":"The status of the quote.","required":false,"style":"form","explode":true,"schema":{"type":"string","enum":["accepted","canceled","draft","open"],"x-stripeBypassValidation":true}},{"name":"test_clock","in":"query","description":"Provides a list of quotes that are associated with the specified test clock. The response will not include quotes with test clocks if this and the customer parameter is not set.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"QuotesResourceQuoteList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/quote"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/quotes","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create a quote","description":"A quote models prices and services for a customer. Default options for header, description, footer, and expires_at can be set in the dashboard via the quote template.
Retrieves the quote with the given ID.
","operationId":"GetQuotesQuote","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"quote","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/quote"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Update a quote","description":"A quote models prices and services for a customer.
","operationId":"PostQuotesQuote","parameters":[{"name":"quote","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"application_fee_amount":{"description":"The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. There cannot be any line items with recurring prices when using this field.","anyOf":[{"type":"integer"},{"type":"string","enum":[""]}]},"application_fee_percent":{"description":"A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. There must be at least 1 line item with a recurring price to use this field.","anyOf":[{"type":"number"},{"type":"string","enum":[""]}]},"automatic_tax":{"title":"automatic_tax_param","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Controls whether Stripe will automatically compute tax on the resulting invoices or subscriptions as well as the quote itself."},"liability":{"title":"param","required":["type"],"type":"object","properties":{"account":{"type":"string","description":"The connected account being referenced when `type` is `account`."},"type":{"type":"string","description":"Type of the account referenced in the request.","enum":["account","self"],"x-stripeBypassValidation":true}},"description":"The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.","x-stripeMostCommon":["account","type"]}},"description":"Settings for automatic tax lookup for this quote and resulting invoices and subscriptions.","x-stripeMostCommon":["enabled","liability"]},"collection_method":{"type":"string","description":"Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay invoices at the end of the subscription cycle or at invoice finalization using the default payment method attached to the subscription or customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically`.","enum":["charge_automatically","send_invoice"]},"customer":{"maxLength":5000,"type":"string","description":"The customer for which this quote belongs to. A customer is required before finalizing the quote. Once specified, it cannot be changed."},"customer_account":{"maxLength":5000,"type":"string","description":"The account for which this quote belongs to. A customer or account is required before finalizing the quote. Once specified, it cannot be changed."},"default_tax_rates":{"description":"The tax rates that will apply to any line item that does not have `tax_rates` set.","anyOf":[{"type":"array","items":{"maxLength":5000,"type":"string"}},{"type":"string","enum":[""]}]},"description":{"description":"A description that will be displayed on the quote PDF.","anyOf":[{"maxLength":500,"type":"string"},{"type":"string","enum":[""]}]},"discounts":{"description":"The discounts applied to the quote.","anyOf":[{"type":"array","items":{"title":"discounts_data_param","type":"object","properties":{"coupon":{"maxLength":5000,"type":"string","description":"ID of the coupon to create a new discount for."},"discount":{"maxLength":5000,"type":"string","description":"ID of an existing discount on the object (or one of its ancestors) to reuse."},"promotion_code":{"maxLength":5000,"type":"string","description":"ID of the promotion code to create a new discount for."}},"x-stripeMostCommon":["coupon"]}},{"type":"string","enum":[""]}]},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"expires_at":{"type":"integer","description":"A future timestamp on which the quote will be canceled if in `open` or `draft` status. Measured in seconds since the Unix epoch.","format":"unix-time"},"footer":{"description":"A footer that will be displayed on the quote PDF.","anyOf":[{"maxLength":500,"type":"string"},{"type":"string","enum":[""]}]},"header":{"description":"A header that will be displayed on the quote PDF.","anyOf":[{"maxLength":50,"type":"string"},{"type":"string","enum":[""]}]},"invoice_settings":{"title":"quote_param","type":"object","properties":{"days_until_due":{"type":"integer","description":"Number of days within which a customer must pay the invoice generated by this quote. This value will be `null` for quotes where `collection_method=charge_automatically`."},"issuer":{"title":"param","required":["type"],"type":"object","properties":{"account":{"type":"string","description":"The connected account being referenced when `type` is `account`."},"type":{"type":"string","description":"Type of the account referenced in the request.","enum":["account","self"],"x-stripeBypassValidation":true}},"description":"The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.","x-stripeMostCommon":["account","type"]}},"description":"All invoices will be billed using the specified settings.","x-stripeMostCommon":["custom_fields","days_until_due","description","footer","issuer"]},"line_items":{"type":"array","description":"A list of line items the customer is being quoted for. Each line item includes information about the product, the quantity, and the resulting cost.","items":{"title":"line_item_update_params","type":"object","properties":{"discounts":{"description":"The discounts applied to this line item.","anyOf":[{"type":"array","items":{"title":"discounts_data_param","type":"object","properties":{"coupon":{"maxLength":5000,"type":"string","description":"ID of the coupon to create a new discount for."},"discount":{"maxLength":5000,"type":"string","description":"ID of an existing discount on the object (or one of its ancestors) to reuse."},"promotion_code":{"maxLength":5000,"type":"string","description":"ID of the promotion code to create a new discount for."}},"x-stripeMostCommon":["coupon"]}},{"type":"string","enum":[""]}]},"id":{"maxLength":5000,"type":"string","description":"The ID of an existing line item on the quote."},"price":{"maxLength":5000,"type":"string","description":"The ID of the price object. One of `price` or `price_data` is required."},"price_data":{"title":"price_data","required":["currency","product"],"type":"object","properties":{"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"product":{"maxLength":5000,"type":"string","description":"The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to."},"recurring":{"title":"recurring_adhoc","required":["interval"],"type":"object","properties":{"interval":{"type":"string","description":"Specifies billing frequency. Either `day`, `week`, `month` or `year`.","enum":["day","month","week","year"]},"interval_count":{"type":"integer","description":"The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks)."}},"description":"The recurring components of a price such as `interval` and `interval_count`.","x-stripeMostCommon":["interval"]},"tax_behavior":{"type":"string","description":"Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.","enum":["exclusive","inclusive","unspecified"]},"unit_amount":{"type":"integer","description":"A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge."},"unit_amount_decimal":{"type":"string","description":"Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.","format":"decimal"}},"description":"Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline. One of `price` or `price_data` is required.","x-stripeMostCommon":["currency","product","unit_amount"]},"quantity":{"type":"integer","description":"The quantity of the line item."},"tax_rates":{"description":"The tax rates which apply to the line item. When set, the `default_tax_rates` on the quote do not apply to this line item.","anyOf":[{"type":"array","items":{"maxLength":5000,"type":"string"}},{"type":"string","enum":[""]}]}},"x-stripeMostCommon":["id","price","quantity"]}},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"on_behalf_of":{"description":"The account on behalf of which to charge.","anyOf":[{"type":"string"},{"type":"string","enum":[""]}]},"subscription_data":{"title":"subscription_data_update_params","type":"object","properties":{"description":{"description":"The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.","anyOf":[{"maxLength":500,"type":"string"},{"type":"string","enum":[""]}]},"effective_date":{"description":"When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. The `effective_date` is ignored if it is in the past when the quote is accepted.","anyOf":[{"maxLength":5000,"type":"string","enum":["current_period_end"]},{"type":"integer","format":"unix-time"},{"type":"string","enum":[""]}]},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that will set metadata on the subscription or subscription schedule when the quote is accepted. If a recurring price is included in `line_items`, this field will be passed to the resulting subscription's `metadata` field. If `subscription_data.effective_date` is used, this field will be passed to the resulting subscription schedule's `phases.metadata` field. Unlike object-level metadata, this field is declarative. Updates will clear prior values."},"trial_period_days":{"description":"Integer representing the number of trial period days before the customer is charged for the first time.","anyOf":[{"type":"integer"},{"type":"string","enum":[""]}]}},"description":"When creating a subscription or subscription schedule, the specified configuration data will be used. There must be at least one line item with a recurring price for a subscription or subscription schedule to be created. A subscription schedule is created if `subscription_data[effective_date]` is present and in the future, otherwise a subscription is created.","x-stripeMostCommon":["bill_on_acceptance","billing_behavior","billing_cycle_anchor","billing_schedules","description","effective_date","end_behavior","metadata","phase_effective_at","prebilling","proration_behavior","trial_period_days"]},"transfer_data":{"description":"The data with which to automatically create a Transfer for each of the invoices.","anyOf":[{"title":"transfer_data_specs","required":["destination"],"type":"object","properties":{"amount":{"type":"integer","description":"The amount that will be transferred automatically when the invoice is paid. If no amount is set, the full amount is transferred. There cannot be any line items with recurring prices when using this field."},"amount_percent":{"type":"number","description":"A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination. There must be at least 1 line item with a recurring price to use this field."},"destination":{"type":"string","description":"ID of an existing, connected Stripe account."}},"x-stripeMostCommon":["amount","amount_percent","destination"]},{"type":"string","enum":[""]}]}},"additionalProperties":false,"x-stripeMostCommon":["line_items","metadata"]},"encoding":{"application_fee_amount":{"style":"deepObject","explode":true},"application_fee_percent":{"style":"deepObject","explode":true},"automatic_tax":{"style":"deepObject","explode":true},"default_tax_rates":{"style":"deepObject","explode":true},"description":{"style":"deepObject","explode":true},"discounts":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"footer":{"style":"deepObject","explode":true},"header":{"style":"deepObject","explode":true},"invoice_settings":{"style":"deepObject","explode":true},"line_items":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true},"on_behalf_of":{"style":"deepObject","explode":true},"subscription_data":{"style":"deepObject","explode":true},"transfer_data":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/quote"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/quotes/{quote}/accept":{"post":{"summary":"Accept a quote","description":"Accepts the specified quote.
","operationId":"PostQuotesQuoteAccept","parameters":[{"name":"quote","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}}},"additionalProperties":false},"encoding":{"expand":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/quote"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/quotes/{quote}/cancel":{"post":{"summary":"Cancel a quote","description":"Cancels the quote.
","operationId":"PostQuotesQuoteCancel","parameters":[{"name":"quote","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}}},"additionalProperties":false},"encoding":{"expand":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/quote"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/quotes/{quote}/computed_upfront_line_items":{"get":{"summary":"Retrieve a quote's upfront line items","description":"When retrieving a quote, there is an includable computed.upfront.line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of upfront line items.
","operationId":"GetQuotesQuoteComputedUpfrontLineItems","parameters":[{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"quote","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"QuotesResourceListLineItems","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","description":"Details about each object.","items":{"$ref":"#/components/schemas/item"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/quotes/{quote}/finalize":{"post":{"summary":"Finalize a quote","description":"Finalizes the quote.
","operationId":"PostQuotesQuoteFinalize","parameters":[{"name":"quote","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"expires_at":{"type":"integer","description":"A future timestamp on which the quote will be canceled if in `open` or `draft` status. Measured in seconds since the Unix epoch.","format":"unix-time"}},"additionalProperties":false},"encoding":{"expand":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/quote"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/quotes/{quote}/line_items":{"get":{"summary":"Retrieve a quote's line items","description":"When retrieving a quote, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
","operationId":"GetQuotesQuoteLineItems","parameters":[{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"quote","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"QuotesResourceListLineItems","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","description":"Details about each object.","items":{"$ref":"#/components/schemas/item"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/quotes/{quote}/pdf":{"get":{"summary":"Download quote PDF","description":"Download the PDF for a finalized quote. Explanation for special handling can be found here
","operationId":"GetQuotesQuotePdf","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"quote","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}},"servers":[{"url":"https://files.stripe.com/"}]}},"/v1/radar/early_fraud_warnings":{"get":{"summary":"List all early fraud warnings","description":"Returns a list of early fraud warnings.
","operationId":"GetRadarEarlyFraudWarnings","parameters":[{"name":"charge","in":"query","description":"Only return early fraud warnings for the charge specified by this charge ID.","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"created","in":"query","description":"Only return early fraud warnings that were created during the given date interval.","required":false,"style":"deepObject","explode":true,"schema":{"anyOf":[{"title":"range_query_specs","type":"object","properties":{"gt":{"type":"integer","description":"Minimum value to filter by (exclusive)"},"gte":{"type":"integer","description":"Minimum value to filter by (inclusive)"},"lt":{"type":"integer","description":"Maximum value to filter by (exclusive)"},"lte":{"type":"integer","description":"Maximum value to filter by (inclusive)"}},"x-stripeMostCommon":["gt","gte","lt","lte"]},{"type":"integer"}]}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"payment_intent","in":"query","description":"Only return early fraud warnings for charges that were created by the PaymentIntent specified by this PaymentIntent ID.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"RadarEarlyFraudWarningList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/radar.early_fraud_warning"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/radar/early_fraud_warnings","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/radar/early_fraud_warnings/{early_fraud_warning}":{"get":{"summary":"Retrieve an early fraud warning","description":"Retrieves the details of an early fraud warning that has previously been created.
\n\nPlease refer to the early fraud warning object reference for more details.
","operationId":"GetRadarEarlyFraudWarningsEarlyFraudWarning","parameters":[{"name":"early_fraud_warning","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/radar.early_fraud_warning"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/radar/payment_evaluations":{"post":{"summary":"Create a Payment Evaluation","description":"Request a Radar API fraud risk score from Stripe for a payment before sending it for external processor authorization.
","operationId":"PostRadarPaymentEvaluations","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["customer_details","payment_details"],"type":"object","properties":{"client_device_metadata_details":{"title":"client_device_metadata_wrapper","required":["radar_session"],"type":"object","properties":{"radar_session":{"maxLength":5000,"type":"string","description":"ID for the Radar Session to associate with the payment evaluation. A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments."}},"description":"Details about the Client Device Metadata to associate with the payment evaluation.","x-stripeMostCommon":["radar_session"]},"customer_details":{"title":"customer_details","type":"object","properties":{"customer":{"maxLength":5000,"type":"string","description":"The ID of the customer associated with the payment evaluation."},"customer_account":{"maxLength":5000,"type":"string","description":"The ID of the Account representing the customer associated with the payment evaluation."},"email":{"type":"string","description":"The customer's email address."},"name":{"maxLength":5000,"type":"string","description":"The customer's full name or business name."},"phone":{"type":"string","description":"The customer's phone number."}},"description":"Details about the customer associated with the payment evaluation.","x-stripeMostCommon":["customer","customer_account","email","name","phone"]},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"payment_details":{"title":"payment_details","required":["amount","currency","payment_method_details"],"type":"object","properties":{"amount":{"type":"integer","description":"The intended amount to collect with this payment. A positive integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) (for example, 100 cents to charge 1.00 USD or 100 to charge 100 Yen, a zero-decimal currency)."},"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"description":{"maxLength":5000,"type":"string","description":"An arbitrary string attached to the object. Often useful for displaying to users."},"money_movement_details":{"title":"money_movement_details","required":["money_movement_type"],"type":"object","properties":{"card":{"title":"money_movement_card_additional_data","type":"object","properties":{"customer_presence":{"type":"string","description":"Describes the presence of the customer during the payment.","enum":["off_session","on_session"]},"payment_type":{"type":"string","description":"Describes the type of payment.","enum":["one_off","recurring","setup_one_off","setup_recurring"]}},"description":"Describes card money movement details for the payment evaluation.","x-stripeMostCommon":["customer_presence","payment_type"]},"money_movement_type":{"type":"string","description":"Describes the type of money movement. Currently only `card` is supported.","enum":["card"]}},"description":"Details about the payment's customer presence and type.","x-stripeMostCommon":["card","money_movement_type"]},"payment_method_details":{"title":"payment_method_details","required":["payment_method"],"type":"object","properties":{"billing_details":{"title":"billing_details","type":"object","properties":{"address":{"title":"address","type":"object","properties":{"city":{"maxLength":5000,"type":"string","description":"City, district, suburb, town, or village."},"country":{"maxLength":5000,"type":"string","description":"Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."},"line1":{"maxLength":5000,"type":"string","description":"Address line 1, such as the street, PO Box, or company name."},"line2":{"maxLength":5000,"type":"string","description":"Address line 2, such as the apartment, suite, unit, or building."},"postal_code":{"maxLength":5000,"type":"string","description":"ZIP or postal code."},"state":{"maxLength":5000,"type":"string","description":"State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))."}},"description":"Billing address.","x-stripeMostCommon":["city","country","line1","line2","postal_code","state"]},"email":{"type":"string","description":"Email address."},"name":{"maxLength":5000,"type":"string","description":"Full name."},"phone":{"type":"string","description":"Billing phone number (including extension)."}},"description":"Billing information associated with the payment evaluation.","x-stripeMostCommon":["address","email","name","phone"]},"payment_method":{"maxLength":5000,"type":"string","description":"ID of the payment method used in this payment evaluation."}},"description":"Details about the payment method to use for the payment.","x-stripeMostCommon":["billing_details","payment_method"]},"shipping_details":{"title":"shipping_details","type":"object","properties":{"address":{"title":"address","type":"object","properties":{"city":{"maxLength":5000,"type":"string","description":"City, district, suburb, town, or village."},"country":{"maxLength":5000,"type":"string","description":"Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."},"line1":{"maxLength":5000,"type":"string","description":"Address line 1, such as the street, PO Box, or company name."},"line2":{"maxLength":5000,"type":"string","description":"Address line 2, such as the apartment, suite, unit, or building."},"postal_code":{"maxLength":5000,"type":"string","description":"ZIP or postal code."},"state":{"maxLength":5000,"type":"string","description":"State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))."}},"description":"Shipping address.","x-stripeMostCommon":["city","country","line1","line2","postal_code","state"]},"name":{"maxLength":5000,"type":"string","description":"Shipping name."},"phone":{"type":"string","description":"Shipping phone number."}},"description":"Shipping details for the payment evaluation.","x-stripeMostCommon":["address","name","phone"]},"statement_descriptor":{"maxLength":5000,"type":"string","description":"Payment statement descriptor."}},"description":"Details about the payment.","x-stripeMostCommon":["amount","currency","description","money_movement_details","payment_method_details","shipping_details","statement_descriptor"]}},"additionalProperties":false,"x-stripeMostCommon":["client_device_metadata_details","customer_details","metadata","payment_details"]},"encoding":{"client_device_metadata_details":{"style":"deepObject","explode":true},"customer_details":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true},"payment_details":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/radar.payment_evaluation"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/radar/value_list_items":{"get":{"summary":"List all value list items","description":"Returns a list of ValueListItem objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
Creates a new ValueListItem object, which is added to the specified parent value list.
Retrieves a ValueListItem object.
Deletes a ValueListItem object, removing it from its parent value list.
Returns a list of ValueList objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
Creates a new ValueList object, which can then be referenced in rules.
Retrieves a ValueList object.
Updates a ValueList object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Note that item_type is immutable.
Deletes a ValueList object, also deleting any items contained within the value list. To be deleted, a value list must not be referenced in any rules.
Returns a list of all refunds you created. We return the refunds in sorted order, with the most recent refunds appearing first. The 10 most recent refunds are always available by default on the Charge object.
","operationId":"GetRefunds","parameters":[{"name":"charge","in":"query","description":"Only return refunds for the charge specified by this charge ID.","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"created","in":"query","description":"Only return refunds that were created during the given date interval.","required":false,"style":"deepObject","explode":true,"schema":{"anyOf":[{"title":"range_query_specs","type":"object","properties":{"gt":{"type":"integer","description":"Minimum value to filter by (exclusive)"},"gte":{"type":"integer","description":"Minimum value to filter by (inclusive)"},"lt":{"type":"integer","description":"Maximum value to filter by (exclusive)"},"lte":{"type":"integer","description":"Maximum value to filter by (inclusive)"}},"x-stripeMostCommon":["gt","gte","lt","lte"]},{"type":"integer"}]}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"payment_intent","in":"query","description":"Only return refunds for the PaymentIntent specified by this ID.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"APIMethodRefundList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/refund"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/refunds","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create customer balance refund","description":"When you create a new refund, you must specify a Charge or a PaymentIntent object on which to create it.
\n\nCreating a new refund will refund a charge that has previously been created but not yet refunded.\nFunds will be refunded to the credit or debit card that was originally charged.
\n\nYou can optionally refund only part of a charge.\nYou can do so multiple times, until the entire charge has been refunded.
\n\nOnce entirely refunded, a charge can’t be refunded again.\nThis method will raise an error when called on an already-refunded charge,\nor when trying to refund more money than is left on a charge.
","operationId":"PostRefunds","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"amount":{"type":"integer"},"charge":{"maxLength":5000,"type":"string","description":"The identifier of the charge to refund."},"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"customer":{"maxLength":5000,"type":"string","description":"Customer whose customer balance to refund from."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"instructions_email":{"type":"string","description":"For payment methods without native refund support (e.g., Konbini, PromptPay), use this email from the customer to receive refund instructions."},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"origin":{"type":"string","description":"Origin of the refund","enum":["customer_balance"]},"payment_intent":{"maxLength":5000,"type":"string","description":"The identifier of the PaymentIntent to refund."},"reason":{"maxLength":5000,"type":"string","description":"String indicating the reason for the refund. If set, possible values are `duplicate`, `fraudulent`, and `requested_by_customer`. If you believe the charge to be fraudulent, specifying `fraudulent` as the reason will add the associated card and email to your [block lists](https://docs.stripe.com/radar/lists), and will also help us improve our fraud detection algorithms.","enum":["duplicate","fraudulent","requested_by_customer"]},"refund_application_fee":{"type":"boolean","description":"Boolean indicating whether the application fee should be refunded when refunding this charge. If a full charge refund is given, the full application fee will be refunded. Otherwise, the application fee will be refunded in an amount proportional to the amount of the charge refunded. An application fee can be refunded only by the application that created the charge."},"reverse_transfer":{"type":"boolean","description":"Boolean indicating whether the transfer should be reversed when refunding this charge. The transfer will be reversed proportionally to the amount being refunded (either the entire or partial amount).Retrieves the details of an existing refund.
","operationId":"GetRefundsRefund","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"refund","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/refund"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Update a refund","description":"Updates the refund that you specify by setting the values of the passed parameters. Any parameters that you don’t provide remain unchanged.
\n\nThis request only accepts metadata as an argument.
Cancels a refund with a status of requires_action.
You can’t cancel refunds in other states. Only refunds for payment methods that require customer action can enter the requires_action state.
Returns a list of Report Runs, with the most recent appearing first.
","operationId":"GetReportingReportRuns","parameters":[{"name":"created","in":"query","description":"Only return Report Runs that were created during the given date interval.","required":false,"style":"deepObject","explode":true,"schema":{"anyOf":[{"title":"range_query_specs","type":"object","properties":{"gt":{"type":"integer","description":"Minimum value to filter by (exclusive)"},"gte":{"type":"integer","description":"Minimum value to filter by (inclusive)"},"lt":{"type":"integer","description":"Maximum value to filter by (exclusive)"},"lte":{"type":"integer","description":"Maximum value to filter by (inclusive)"}},"x-stripeMostCommon":["gt","gte","lt","lte"]},{"type":"integer"}]}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"FinancialReportingFinanceReportRunList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/reporting.report_run"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/reporting/report_runs","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create a Report Run","description":"Creates a new object and begin running the report. (Certain report types require a live-mode API key.)
","operationId":"PostReportingReportRuns","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["report_type"],"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"parameters":{"title":"run_parameter_specs","type":"object","properties":{"columns":{"type":"array","description":"The set of report columns to include in the report output. If omitted, the Report Type is run with its default column set.","items":{"maxLength":5000,"type":"string"}},"connected_account":{"type":"string","description":"Connected account ID to filter for in the report run."},"currency":{"type":"string","description":"Currency of objects to be included in the report run.","format":"currency"},"interval_end":{"type":"integer","description":"Ending timestamp of data to be included in the report run (exclusive).","format":"unix-time"},"interval_start":{"type":"integer","description":"Starting timestamp of data to be included in the report run.","format":"unix-time"},"payout":{"type":"string","description":"Payout ID by which to filter the report run."},"reporting_category":{"maxLength":5000,"type":"string","description":"Category of balance transactions to be included in the report run.","enum":["advance","advance_funding","anticipation_repayment","charge","charge_failure","climate_order_purchase","climate_order_refund","connect_collection_transfer","connect_reserved_funds","contribution","dispute","dispute_reversal","fee","financing_paydown","financing_paydown_reversal","financing_payout","financing_payout_reversal","issuing_authorization_hold","issuing_authorization_release","issuing_dispute","issuing_transaction","network_cost","other_adjustment","partial_capture_reversal","payout","payout_reversal","platform_earning","platform_earning_refund","refund","refund_failure","risk_reserved_funds","tax","topup","topup_reversal","transfer","transfer_reversal","unreconciled_customer_funds"],"x-stripeBypassValidation":true},"timezone":{"maxLength":5000,"type":"string","description":"Defaults to `Etc/UTC`. The output timezone for all timestamps in the report. A list of possible time zone values is maintained at the [IANA Time Zone Database](http://www.iana.org/time-zones). Has no effect on `interval_start` or `interval_end`.","enum":["Africa/Abidjan","Africa/Accra","Africa/Addis_Ababa","Africa/Algiers","Africa/Asmara","Africa/Asmera","Africa/Bamako","Africa/Bangui","Africa/Banjul","Africa/Bissau","Africa/Blantyre","Africa/Brazzaville","Africa/Bujumbura","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/Conakry","Africa/Dakar","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Douala","Africa/El_Aaiun","Africa/Freetown","Africa/Gaborone","Africa/Harare","Africa/Johannesburg","Africa/Juba","Africa/Kampala","Africa/Khartoum","Africa/Kigali","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Lome","Africa/Luanda","Africa/Lubumbashi","Africa/Lusaka","Africa/Malabo","Africa/Maputo","Africa/Maseru","Africa/Mbabane","Africa/Mogadishu","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Niamey","Africa/Nouakchott","Africa/Ouagadougou","Africa/Porto-Novo","Africa/Sao_Tome","Africa/Timbuktu","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Anguilla","America/Antigua","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/ComodRivadavia","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Aruba","America/Asuncion","America/Atikokan","America/Atka","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Buenos_Aires","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Catamarca","America/Cayenne","America/Cayman","America/Chicago","America/Chihuahua","America/Ciudad_Juarez","America/Coral_Harbour","America/Cordoba","America/Costa_Rica","America/Coyhaique","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Dominica","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Ensenada","America/Fort_Nelson","America/Fort_Wayne","America/Fortaleza","America/Glace_Bay","America/Godthab","America/Goose_Bay","America/Grand_Turk","America/Grenada","America/Guadeloupe","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Indianapolis","America/Inuvik","America/Iqaluit","America/Jamaica","America/Jujuy","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/Knox_IN","America/Kralendijk","America/La_Paz","America/Lima","America/Los_Angeles","America/Louisville","America/Lower_Princes","America/Maceio","America/Managua","America/Manaus","America/Marigot","America/Martinique","America/Matamoros","America/Mazatlan","America/Mendoza","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/Montreal","America/Montserrat","America/Nassau","America/New_York","America/Nipigon","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Nuuk","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Acre","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rainy_River","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Rosario","America/Santa_Isabel","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Shiprock","America/Sitka","America/St_Barthelemy","America/St_Johns","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Tortola","America/Vancouver","America/Virgin","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/McMurdo","Antarctica/Palmer","Antarctica/Rothera","Antarctica/South_Pole","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","Arctic/Longyearbyen","Asia/Aden","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Ashkhabad","Asia/Atyrau","Asia/Baghdad","Asia/Bahrain","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Calcutta","Asia/Chita","Asia/Choibalsan","Asia/Chongqing","Asia/Chungking","Asia/Colombo","Asia/Dacca","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Harbin","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Istanbul","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kashgar","Asia/Kathmandu","Asia/Katmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Kuwait","Asia/Macao","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Muscat","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Phnom_Penh","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Rangoon","Asia/Riyadh","Asia/Saigon","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Tel_Aviv","Asia/Thimbu","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ujung_Pandang","Asia/Ulaanbaatar","Asia/Ulan_Bator","Asia/Urumqi","Asia/Ust-Nera","Asia/Vientiane","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faeroe","Atlantic/Faroe","Atlantic/Jan_Mayen","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/St_Helena","Atlantic/Stanley","Australia/ACT","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Canberra","Australia/Currie","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/LHI","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/NSW","Australia/North","Australia/Perth","Australia/Queensland","Australia/South","Australia/Sydney","Australia/Tasmania","Australia/Victoria","Australia/West","Australia/Yancowinna","Brazil/Acre","Brazil/DeNoronha","Brazil/East","Brazil/West","CET","CST6CDT","Canada/Atlantic","Canada/Central","Canada/Eastern","Canada/Mountain","Canada/Newfoundland","Canada/Pacific","Canada/Saskatchewan","Canada/Yukon","Chile/Continental","Chile/EasterIsland","Cuba","EET","EST","EST5EDT","Egypt","Eire","Etc/GMT","Etc/GMT+0","Etc/GMT+1","Etc/GMT+10","Etc/GMT+11","Etc/GMT+12","Etc/GMT+2","Etc/GMT+3","Etc/GMT+4","Etc/GMT+5","Etc/GMT+6","Etc/GMT+7","Etc/GMT+8","Etc/GMT+9","Etc/GMT-0","Etc/GMT-1","Etc/GMT-10","Etc/GMT-11","Etc/GMT-12","Etc/GMT-13","Etc/GMT-14","Etc/GMT-2","Etc/GMT-3","Etc/GMT-4","Etc/GMT-5","Etc/GMT-6","Etc/GMT-7","Etc/GMT-8","Etc/GMT-9","Etc/GMT0","Etc/Greenwich","Etc/UCT","Etc/UTC","Etc/Universal","Etc/Zulu","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belfast","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Busingen","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Guernsey","Europe/Helsinki","Europe/Isle_of_Man","Europe/Istanbul","Europe/Jersey","Europe/Kaliningrad","Europe/Kiev","Europe/Kirov","Europe/Kyiv","Europe/Lisbon","Europe/Ljubljana","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Mariehamn","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Nicosia","Europe/Oslo","Europe/Paris","Europe/Podgorica","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/San_Marino","Europe/Sarajevo","Europe/Saratov","Europe/Simferopol","Europe/Skopje","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Tiraspol","Europe/Ulyanovsk","Europe/Uzhgorod","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zagreb","Europe/Zaporozhye","Europe/Zurich","Factory","GB","GB-Eire","GMT","GMT+0","GMT-0","GMT0","Greenwich","HST","Hongkong","Iceland","Indian/Antananarivo","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Comoro","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Mayotte","Indian/Reunion","Iran","Israel","Jamaica","Japan","Kwajalein","Libya","MET","MST","MST7MDT","Mexico/BajaNorte","Mexico/BajaSur","Mexico/General","NZ","NZ-CHAT","Navajo","PRC","PST8PDT","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Chuuk","Pacific/Easter","Pacific/Efate","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Johnston","Pacific/Kanton","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Midway","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Pohnpei","Pacific/Ponape","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Saipan","Pacific/Samoa","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Truk","Pacific/Wake","Pacific/Wallis","Pacific/Yap","Poland","Portugal","ROC","ROK","Singapore","Turkey","UCT","US/Alaska","US/Aleutian","US/Arizona","US/Central","US/East-Indiana","US/Eastern","US/Hawaii","US/Indiana-Starke","US/Michigan","US/Mountain","US/Pacific","US/Pacific-New","US/Samoa","UTC","Universal","W-SU","WET","Zulu"]}},"description":"Parameters specifying how the report should be run. Different Report Types have different required and optional parameters, listed in the [API Access to Reports](https://docs.stripe.com/reporting/statements/api) documentation.","x-stripeMostCommon":["account","account_type","accounts","acquirer_bin","acquirer_mid","action","actions","activation_days","age_bucket","aggregate","aggregation_type","all","amount","amount_filter","amount_max","amount_min","apple_subscriber","application_id","async_fees","authentication_outcome_detailed","billable_item_ids","billing_analytics_metric","browser_fingerprinting","bucket_seconds","bucket_size","buyer_country","calculation_type","campaign","campaigns","capability_type","card_bin","card_brand","card_brands","card_category","card_country","card_fingerprint","card_funding","card_input_methods","card_network","card_number","card_type","card_types","categories","cau_correction_factor","channel","charge","chart_detail_page_id","cluster_table_suffix","cof","cohort_file","columns","compare_to_end","compare_to_start","compliance_charge_pause_at_ms","compliance_payout_pause_at_ms","connect_account_country","connect_charge_type","connect_merchant_pv_180d","connect_merchant_pv_30d","connect_merchant_pv_35d","connect_merchant_pv_365d","connect_merchant_pv_90d","connected_account","connected_account_countries","connected_account_country","connected_accounts","contract","conversion_currency","convert_to_arr","counterparty_name","countries","country","created","credit_ids","currencies","currency","cursor","cursor_created_at","cursor_forward_direction","cursor_payment_attempt_id","customer","customer_filters","customer_query","customers","dataset_id","date_format","days_to_use","decimal_separator","description","digital_wallet","direction","display_mode","dispute_reasons","download","dynamic_reporting_params","end_payer_country","endpoint_url","entity_type","event_type","exchange_rate","exchange_rates","exclude_meter_ids","experiment_id","fee_category","fee_rows","filter_active_accounts","filter_column","filter_columns","filter_currency","filter_product_adopted","filter_topics","filter_value","filter_values","filters","filters_by_meter","financial_account","financial_accounts","first_day_of_week_offset","flow_granted","flow_preference","flow_types","gateway_conversation_avs_outcome","gateway_conversation_cvc_outcome","gateway_country","gl_code","google_order","granularity","group_by","group_by_key","group_by_keys","group_by_keys_by_meter","group_id","group_type","grouped_column","grouped_columns","grouped_metadata_column","groups","has_app_fee_refunds","has_app_fees","has_disputes","has_negative_earnings_from_transfers","has_refunds","has_reversals","hosted_relink_requested_at","include_blocked_payments","include_connect_charges","include_efw","include_protected_disputes","incurred_by","interaction_type","interval_end","interval_end_date_as_string","interval_start","interval_start_date_as_string","intervention_type","invoice","invoice_hint","invoice_line_item","ip_address","ip_country","is_backtest","is_domestic","is_eu_vat_moss","is_latam","is_link_in_pmm_supported","is_on_session_toggled","is_top_fraudy_attributes","is_unbilled","jurisdiction_key","last_activity_timeframe","legal_entity_type","legal_entity_type_ch_mapping","limit","list_item","list_items","livemode","location_ids","match_mode","match_status","max_churn","merchant_activity","message_category","metadata_columns","meter_id","meter_ids","min_active_days","min_payout_count","min_payouts_volume_usd","min_trim_size","moto","nci_filter_for","nci_mcc","network_types","numeric_filters","offset","onboarding_surface","outcome","override_artificial_delay","pagination_direction","payment_link_id","payment_method","payment_method_type","payment_method_types","payment_methods","payment_processors","payout","payout_date_end","payout_date_start","payout_status","payout_type","period_type","platform","platform_id","posted_at","price_filters","product","product_feature_description","product_features","product_filters","products","pv_t180_tier","pv_t30_tier","pv_t35_tier","pv_t365_tier","pv_t90_tier","query_options","radar_bad_outcome_configuration","radar_fraud_outcomes","radar_good_outcomes","rate","rate_card_ids","recognition_end","recognition_start","recon_party_name","recon_space","recon_space_type","reconciliation_status","reference_id","reporting_category","reporting_string_filters","retries_correction_factor","retry_status","rev_rec_month_summary_line_item","risk_score","rule_action","rule_attribute","rule_attribute_case_insensitive","rule_attribute_name_value","rule_id","rule_predicate_sql","ryw_created_ids","ryw_deleted_ids","ryw_updated_ids","search_after","search_params","secondary_cursor","seconds_since_card_first_seen","segment_id","serial_numbers","sort_field","sort_order","sorted_column","states","statuses","string_filters","sync_fees","t30_pv_active","t365_pv_active","t60_pv_active","t90_pv_active","table_name","tax_form_id","tax_type","taxable","tds_result","tds_triggered","template_override","tenant_filters","tenant_filters_by_meter","tenant_group_by_keys_by_meter","three_d_s_outcome","time_granularity","timezone","top_connected_accounts","total_charges_per_card_number_daily","total_fraud_volume","total_legitimate_volume","tracking_load_type","transaction_age_max","transaction_age_min","transaction_initiators","transaction_type","type","unit","ur","usage_id","use_dispute_creation_date","use_minerva","used_network_tokens","view_type","volume_metric_type"]},"report_type":{"type":"string","description":"The ID of the [report type](https://docs.stripe.com/reporting/statements/api#report-types) to run, such as `\"balance.summary.1\"`."}},"additionalProperties":false,"x-stripeMostCommon":["parameters","report_type"]},"encoding":{"expand":{"style":"deepObject","explode":true},"parameters":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/reporting.report_run"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/reporting/report_runs/{report_run}":{"get":{"summary":"Retrieve a Report Run","description":"Retrieves the details of an existing Report Run.
","operationId":"GetReportingReportRunsReportRun","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"report_run","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/reporting.report_run"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/reporting/report_types":{"get":{"summary":"List all Report Types","description":"Returns a full list of Report Types.
","operationId":"GetReportingReportTypes","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"FinancialReportingFinanceReportTypeList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/reporting.report_type"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/reporting/report_types/{report_type}":{"get":{"summary":"Retrieve a Report Type","description":"Retrieves the details of a Report Type. (Certain report types require a live-mode API key.)
","operationId":"GetReportingReportTypesReportType","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"report_type","in":"path","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/reporting.report_type"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/reviews":{"get":{"summary":"List all open reviews","description":"Returns a list of Review objects that have open set to true. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
Retrieves a Review object.
Approves a Review object, closing it and removing it from the list of reviews.
Returns a list of SetupAttempts that associate with a provided SetupIntent.
","operationId":"GetSetupAttempts","parameters":[{"name":"created","in":"query","description":"A filter on the list, based on the object `created` field. The value\ncan be a string with an integer Unix timestamp or a\ndictionary with a number of different query options.","required":false,"style":"deepObject","explode":true,"schema":{"anyOf":[{"title":"range_query_specs","type":"object","properties":{"gt":{"type":"integer","description":"Minimum value to filter by (exclusive)"},"gte":{"type":"integer","description":"Minimum value to filter by (inclusive)"},"lt":{"type":"integer","description":"Maximum value to filter by (exclusive)"},"lte":{"type":"integer","description":"Maximum value to filter by (inclusive)"}},"x-stripeMostCommon":["gt","gte","lt","lte"]},{"type":"integer"}]}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"setup_intent","in":"query","description":"Only return SetupAttempts created by the SetupIntent specified by\nthis ID.","required":true,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"PaymentFlowsSetupIntentSetupAttemptList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/setup_attempt"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/setup_attempts","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/setup_intents":{"get":{"summary":"List all SetupIntents","description":"Returns a list of SetupIntents.
","operationId":"GetSetupIntents","parameters":[{"name":"attach_to_self","in":"query","description":"If present, the SetupIntent's payment method will be attached to the in-context Stripe Account.\n\nIt can only be used for this Stripe Account’s own money movement flows like InboundTransfer and OutboundTransfers. It cannot be set to true when setting up a PaymentMethod for a Customer, and defaults to false when attaching a PaymentMethod to a Customer.","required":false,"style":"form","explode":true,"schema":{"type":"boolean"}},{"name":"created","in":"query","description":"A filter on the list, based on the object `created` field. The value can be a string with an integer Unix timestamp, or it can be a dictionary with a number of different query options.","required":false,"style":"deepObject","explode":true,"schema":{"anyOf":[{"title":"range_query_specs","type":"object","properties":{"gt":{"type":"integer","description":"Minimum value to filter by (exclusive)"},"gte":{"type":"integer","description":"Minimum value to filter by (inclusive)"},"lt":{"type":"integer","description":"Maximum value to filter by (exclusive)"},"lte":{"type":"integer","description":"Maximum value to filter by (inclusive)"}},"x-stripeMostCommon":["gt","gte","lt","lte"]},{"type":"integer"}]}},{"name":"customer","in":"query","description":"Only return SetupIntents for the customer specified by this customer ID.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"customer_account","in":"query","description":"Only return SetupIntents for the account specified by this customer ID.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"payment_method","in":"query","description":"Only return SetupIntents that associate with the specified payment method.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"PaymentFlowsSetupIntentList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/setup_intent"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/setup_intents","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create a SetupIntent","description":"Creates a SetupIntent object.
\n\nAfter you create the SetupIntent, attach a payment method and confirm\nit to collect any required permissions to charge the payment method later.
","operationId":"PostSetupIntents","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"attach_to_self":{"type":"boolean","description":"If present, the SetupIntent's payment method will be attached to the in-context Stripe Account.\n\nIt can only be used for this Stripe Account’s own money movement flows like InboundTransfer and OutboundTransfers. It cannot be set to true when setting up a PaymentMethod for a Customer, and defaults to false when attaching a PaymentMethod to a Customer."},"automatic_payment_methods":{"title":"automatic_payment_methods_param","required":["enabled"],"type":"object","properties":{"allow_redirects":{"type":"string","description":"Controls whether this SetupIntent will accept redirect-based payment methods.\n\nRedirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://docs.stripe.com/api/setup_intents/confirm) this SetupIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the setup.","enum":["always","never"]},"enabled":{"type":"boolean","description":"Whether this feature is enabled."}},"description":"When you enable this parameter, this SetupIntent accepts payment methods that you enable in the Dashboard and that are compatible with its other parameters.","x-stripeMostCommon":["allow_redirects","enabled"]},"confirm":{"type":"boolean","description":"Set to `true` to attempt to confirm this SetupIntent immediately. This parameter defaults to `false`. If a card is the attached payment method, you can provide a `return_url` in case further authentication is necessary."},"confirmation_token":{"maxLength":5000,"type":"string","description":"ID of the ConfirmationToken used to confirm this SetupIntent.\n\nIf the provided ConfirmationToken contains properties that are also being provided in this request, such as `payment_method`, then the values in this request will take precedence."},"customer":{"maxLength":5000,"type":"string","description":"ID of the Customer this SetupIntent belongs to, if one exists.\n\nIf present, the SetupIntent's payment method will be attached to the Customer on successful setup. Payment methods attached to other Customers cannot be used with this SetupIntent."},"customer_account":{"maxLength":5000,"type":"string","description":"ID of the Account this SetupIntent belongs to, if one exists.\n\nIf present, the SetupIntent's payment method will be attached to the Account on successful setup. Payment methods attached to other Accounts cannot be used with this SetupIntent."},"description":{"maxLength":1000,"type":"string","description":"An arbitrary string attached to the object. Often useful for displaying to users."},"excluded_payment_method_types":{"type":"array","description":"The list of payment method types to exclude from use with this SetupIntent.","items":{"type":"string","enum":["acss_debit","affirm","afterpay_clearpay","alipay","alma","amazon_pay","au_becs_debit","bacs_debit","bancontact","billie","blik","boleto","card","cashapp","crypto","customer_balance","eps","fpx","giropay","grabpay","ideal","kakao_pay","klarna","konbini","kr_card","mb_way","mobilepay","multibanco","naver_pay","nz_bank_account","oxxo","p24","pay_by_bank","payco","paynow","paypal","payto","pix","promptpay","revolut_pay","samsung_pay","satispay","sepa_debit","sofort","swish","twint","upi","us_bank_account","wechat_pay","zip"],"x-stripeBypassValidation":true}},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"flow_directions":{"type":"array","description":"Indicates the directions of money movement for which this payment method is intended to be used.\n\nInclude `inbound` if you intend to use the payment method as the origin to pull funds from. Include `outbound` if you intend to use the payment method as the destination to send funds to. You can include both if you intend to use the payment method for both purposes.","items":{"type":"string","enum":["inbound","outbound"]}},"mandate_data":{"description":"This hash contains details about the mandate to create. This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/setup_intents/create#create_setup_intent-confirm).","anyOf":[{"title":"secret_key_param","required":["customer_acceptance"],"type":"object","properties":{"customer_acceptance":{"title":"customer_acceptance_param","required":["type"],"type":"object","properties":{"accepted_at":{"type":"integer","description":"The time at which the customer accepted the Mandate.","format":"unix-time"},"offline":{"title":"offline_param","type":"object","properties":{},"description":"If this is a Mandate accepted offline, this hash contains details about the offline acceptance."},"online":{"title":"online_param","required":["ip_address","user_agent"],"type":"object","properties":{"ip_address":{"type":"string","description":"The IP address from which the Mandate was accepted by the customer."},"user_agent":{"maxLength":5000,"type":"string","description":"The user agent of the browser from which the Mandate was accepted by the customer."}},"description":"If this is a Mandate accepted online, this hash contains details about the online acceptance.","x-stripeMostCommon":["ip_address","user_agent"]},"type":{"maxLength":5000,"type":"string","description":"The type of customer acceptance information included with the Mandate. One of `online` or `offline`.","enum":["offline","online"]}},"description":"This hash contains details about the customer acceptance of the Mandate.","x-stripeMostCommon":["accepted_at","offline","online","type"]}},"x-stripeMostCommon":["customer_acceptance"]},{"type":"string","enum":[""]}]},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"on_behalf_of":{"type":"string","description":"The Stripe account ID created for this SetupIntent."},"payment_method":{"maxLength":5000,"type":"string","description":"ID of the payment method (a PaymentMethod, Card, or saved Source object) to attach to this SetupIntent."},"payment_method_configuration":{"maxLength":100,"type":"string","description":"The ID of the [payment method configuration](https://docs.stripe.com/api/payment_method_configurations) to use with this SetupIntent."},"payment_method_data":{"title":"payment_method_data_params","required":["type"],"type":"object","properties":{"acss_debit":{"title":"payment_method_param","required":["account_number","institution_number","transit_number"],"type":"object","properties":{"account_number":{"maxLength":5000,"type":"string","description":"Customer's bank account number."},"institution_number":{"maxLength":5000,"type":"string","description":"Institution number of the customer's bank."},"transit_number":{"maxLength":5000,"type":"string","description":"Transit number of the customer's bank."}},"description":"If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.","x-stripeMostCommon":["account_number","financial_connections_account","institution_number","transit_number"]},"affirm":{"title":"param","type":"object","properties":{},"description":"If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method."},"afterpay_clearpay":{"title":"param","type":"object","properties":{},"description":"If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method."},"alipay":{"title":"param","type":"object","properties":{},"description":"If this is an `Alipay` PaymentMethod, this hash contains details about the Alipay payment method."},"allow_redisplay":{"type":"string","description":"This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`.","enum":["always","limited","unspecified"]},"alma":{"title":"param","type":"object","properties":{},"description":"If this is a Alma PaymentMethod, this hash contains details about the Alma payment method."},"amazon_pay":{"title":"param","type":"object","properties":{},"description":"If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method."},"au_becs_debit":{"title":"param","required":["account_number","bsb_number"],"type":"object","properties":{"account_number":{"maxLength":5000,"type":"string","description":"The account number for the bank account."},"bsb_number":{"maxLength":5000,"type":"string","description":"Bank-State-Branch number of the bank account."}},"description":"If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.","x-stripeMostCommon":["account_number","bsb_number"]},"bacs_debit":{"title":"param","type":"object","properties":{"account_number":{"maxLength":5000,"type":"string","description":"Account number of the bank account that the funds will be debited from."},"sort_code":{"maxLength":5000,"type":"string","description":"Sort code of the bank account. (e.g., `10-20-30`)"}},"description":"If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.","x-stripeMostCommon":["account_number","sort_code"]},"bancontact":{"title":"param","type":"object","properties":{},"description":"If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method."},"billie":{"title":"param","type":"object","properties":{},"description":"If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method."},"billing_details":{"title":"billing_details_inner_params","type":"object","properties":{"address":{"description":"Billing address.","anyOf":[{"title":"billing_details_address","type":"object","properties":{"city":{"maxLength":5000,"type":"string","description":"City, district, suburb, town, or village."},"country":{"maxLength":5000,"type":"string","description":"Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."},"line1":{"maxLength":5000,"type":"string","description":"Address line 1, such as the street, PO Box, or company name."},"line2":{"maxLength":5000,"type":"string","description":"Address line 2, such as the apartment, suite, unit, or building."},"postal_code":{"maxLength":5000,"type":"string","description":"ZIP or postal code."},"state":{"maxLength":5000,"type":"string","description":"State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))."}},"x-stripeMostCommon":["city","country","line1","line2","postal_code","state"]},{"type":"string","enum":[""]}]},"email":{"description":"Email address.","anyOf":[{"type":"string"},{"type":"string","enum":[""]}]},"name":{"description":"Full name.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]},"phone":{"description":"Billing phone number (including extension).","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]},"tax_id":{"maxLength":5000,"type":"string","description":"Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers."}},"description":"Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.","x-stripeMostCommon":["address","email","name","phone","tax_id"]},"blik":{"title":"param","type":"object","properties":{},"description":"If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method."},"boleto":{"title":"param","required":["tax_id"],"type":"object","properties":{"tax_id":{"maxLength":5000,"type":"string","description":"The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)"}},"description":"If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.","x-stripeMostCommon":["tax_id"]},"cashapp":{"title":"param","type":"object","properties":{},"description":"If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method."},"crypto":{"title":"param","type":"object","properties":{},"description":"If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method."},"customer_balance":{"title":"param","type":"object","properties":{},"description":"If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method."},"eps":{"title":"param","type":"object","properties":{"bank":{"maxLength":5000,"type":"string","description":"The customer's bank.","enum":["arzte_und_apotheker_bank","austrian_anadi_bank_ag","bank_austria","bankhaus_carl_spangler","bankhaus_schelhammer_und_schattera_ag","bawag_psk_ag","bks_bank_ag","brull_kallmus_bank_ag","btv_vier_lander_bank","capital_bank_grawe_gruppe_ag","deutsche_bank_ag","dolomitenbank","easybank_ag","erste_bank_und_sparkassen","hypo_alpeadriabank_international_ag","hypo_bank_burgenland_aktiengesellschaft","hypo_noe_lb_fur_niederosterreich_u_wien","hypo_oberosterreich_salzburg_steiermark","hypo_tirol_bank_ag","hypo_vorarlberg_bank_ag","marchfelder_bank","oberbank_ag","raiffeisen_bankengruppe_osterreich","schoellerbank_ag","sparda_bank_wien","volksbank_gruppe","volkskreditbank_ag","vr_bank_braunau"]}},"description":"If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.","x-stripeMostCommon":["bank"]},"fpx":{"title":"param","required":["bank"],"type":"object","properties":{"account_holder_type":{"maxLength":5000,"type":"string","description":"Account holder type for FPX transaction","enum":["company","individual"]},"bank":{"maxLength":5000,"type":"string","description":"The customer's bank.","enum":["affin_bank","agrobank","alliance_bank","ambank","bank_islam","bank_muamalat","bank_of_china","bank_rakyat","bsn","cimb","deutsche_bank","hong_leong_bank","hsbc","kfh","maybank2e","maybank2u","ocbc","pb_enterprise","public_bank","rhb","standard_chartered","uob"],"x-stripeBypassValidation":true}},"description":"If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.","x-stripeMostCommon":["account_holder_type","bank"]},"giropay":{"title":"param","type":"object","properties":{},"description":"If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method."},"grabpay":{"title":"param","type":"object","properties":{},"description":"If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method."},"ideal":{"title":"param","type":"object","properties":{"bank":{"maxLength":5000,"type":"string","description":"The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.","enum":["abn_amro","adyen","asn_bank","bunq","buut","finom","handelsbanken","ing","knab","mollie","moneyou","n26","nn","rabobank","regiobank","revolut","sns_bank","triodos_bank","van_lanschot","yoursafe"]}},"description":"If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.","x-stripeMostCommon":["bank"]},"interac_present":{"title":"param","type":"object","properties":{},"description":"If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.","x-stripeMostCommon":["device_identifier","device_type","emv","location"]},"kakao_pay":{"title":"param","type":"object","properties":{},"description":"If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method."},"klarna":{"title":"param","type":"object","properties":{"dob":{"title":"date_of_birth","required":["day","month","year"],"type":"object","properties":{"day":{"type":"integer","description":"The day of birth, between 1 and 31."},"month":{"type":"integer","description":"The month of birth, between 1 and 12."},"year":{"type":"integer","description":"The four-digit year of birth."}},"description":"Customer's date of birth","x-stripeMostCommon":["day","month","year"]}},"description":"If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method.","x-stripeMostCommon":["dob"]},"konbini":{"title":"param","type":"object","properties":{},"description":"If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method."},"kr_card":{"title":"param","type":"object","properties":{},"description":"If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method."},"link":{"title":"param","type":"object","properties":{},"description":"If this is an `Link` PaymentMethod, this hash contains details about the Link payment method."},"mb_way":{"title":"param","type":"object","properties":{},"description":"If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method."},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"mobilepay":{"title":"param","type":"object","properties":{},"description":"If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method."},"multibanco":{"title":"param","type":"object","properties":{},"description":"If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method."},"naver_pay":{"title":"param","type":"object","properties":{"funding":{"type":"string","description":"Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.","enum":["card","points"],"x-stripeBypassValidation":true}},"description":"If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.","x-stripeMostCommon":["funding"]},"nz_bank_account":{"title":"param","required":["account_number","bank_code","branch_code","suffix"],"type":"object","properties":{"account_holder_name":{"maxLength":5000,"type":"string","description":"The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details."},"account_number":{"maxLength":5000,"type":"string","description":"The account number for the bank account."},"bank_code":{"maxLength":5000,"type":"string","description":"The numeric code for the bank account's bank."},"branch_code":{"maxLength":5000,"type":"string","description":"The numeric code for the bank account's bank branch."},"reference":{"maxLength":128,"type":"string"},"suffix":{"maxLength":5000,"type":"string","description":"The suffix of the bank account number."}},"description":"If this is an nz_bank_account PaymentMethod, this hash contains details about the nz_bank_account payment method.","x-stripeMostCommon":["account_holder_name","account_number","bank_code","branch_code","reference","suffix"]},"oxxo":{"title":"param","type":"object","properties":{},"description":"If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method."},"p24":{"title":"param","type":"object","properties":{"bank":{"type":"string","description":"The customer's bank.","enum":["alior_bank","bank_millennium","bank_nowy_bfg_sa","bank_pekao_sa","banki_spbdzielcze","blik","bnp_paribas","boz","citi_handlowy","credit_agricole","envelobank","etransfer_pocztowy24","getin_bank","ideabank","ing","inteligo","mbank_mtransfer","nest_przelew","noble_pay","pbac_z_ipko","plus_bank","santander_przelew24","tmobile_usbugi_bankowe","toyota_bank","velobank","volkswagen_bank"],"x-stripeBypassValidation":true}},"description":"If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.","x-stripeMostCommon":["bank"]},"pay_by_bank":{"title":"param","type":"object","properties":{},"description":"If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method."},"payco":{"title":"param","type":"object","properties":{},"description":"If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method."},"paynow":{"title":"param","type":"object","properties":{},"description":"If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method."},"paypal":{"title":"param","type":"object","properties":{},"description":"If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method."},"payto":{"title":"param","type":"object","properties":{"account_number":{"maxLength":5000,"type":"string","description":"The account number for the bank account."},"bsb_number":{"maxLength":5000,"type":"string","description":"Bank-State-Branch number of the bank account."},"pay_id":{"maxLength":5000,"type":"string","description":"The PayID alias for the bank account."}},"description":"If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.","x-stripeMostCommon":["account_number","bsb_number","pay_id"]},"pix":{"title":"param","type":"object","properties":{},"description":"If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.","x-stripeMostCommon":["tax_id"]},"promptpay":{"title":"param","type":"object","properties":{},"description":"If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method."},"radar_options":{"title":"radar_options_with_hidden_options","type":"object","properties":{"session":{"maxLength":5000,"type":"string","description":"A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments."}},"description":"Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.","x-stripeMostCommon":["session","skip_rules"]},"revolut_pay":{"title":"param","type":"object","properties":{},"description":"If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method."},"samsung_pay":{"title":"param","type":"object","properties":{},"description":"If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method."},"satispay":{"title":"param","type":"object","properties":{},"description":"If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method."},"sepa_debit":{"title":"param","required":["iban"],"type":"object","properties":{"iban":{"maxLength":5000,"type":"string","description":"IBAN of the bank account."}},"description":"If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.","x-stripeMostCommon":["iban"]},"sofort":{"title":"param","required":["country"],"type":"object","properties":{"country":{"type":"string","description":"Two-letter ISO code representing the country the bank account is located in.","enum":["AT","BE","DE","ES","IT","NL"]}},"description":"If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.","x-stripeMostCommon":["country"]},"swish":{"title":"param","type":"object","properties":{},"description":"If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method."},"twint":{"title":"param","type":"object","properties":{},"description":"If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method."},"type":{"type":"string","description":"The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.","enum":["acss_debit","affirm","afterpay_clearpay","alipay","alma","amazon_pay","au_becs_debit","bacs_debit","bancontact","billie","blik","boleto","cashapp","crypto","customer_balance","eps","fpx","giropay","grabpay","ideal","kakao_pay","klarna","konbini","kr_card","link","mb_way","mobilepay","multibanco","naver_pay","nz_bank_account","oxxo","p24","pay_by_bank","payco","paynow","paypal","payto","pix","promptpay","revolut_pay","samsung_pay","satispay","sepa_debit","sofort","swish","twint","upi","us_bank_account","wechat_pay","zip"],"x-stripeBypassValidation":true},"upi":{"title":"param","type":"object","properties":{"mandate_options":{"title":"mandate_options","type":"object","properties":{"amount":{"type":"integer","description":"Amount to be charged for future payments."},"amount_type":{"type":"string","description":"One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.","enum":["fixed","maximum"]},"description":{"maxLength":20,"type":"string","description":"A description of the mandate or subscription that is meant to be displayed to the customer."},"end_date":{"type":"integer","description":"End date of the mandate or subscription.","format":"unix-time"}},"description":"Configuration options for setting up an eMandate","x-stripeMostCommon":["amount","amount_type","description","end_date"]}},"description":"If this is a `upi` PaymentMethod, this hash contains details about the UPI payment method.","x-stripeMostCommon":["mandate_options","vpa"]},"us_bank_account":{"title":"payment_method_param","type":"object","properties":{"account_holder_type":{"type":"string","description":"Account holder type: individual or company.","enum":["company","individual"]},"account_number":{"maxLength":5000,"type":"string","description":"Account number of the bank account."},"account_type":{"type":"string","description":"Account type: checkings or savings. Defaults to checking if omitted.","enum":["checking","savings"]},"financial_connections_account":{"maxLength":5000,"type":"string","description":"The ID of a Financial Connections Account to use as a payment method."},"routing_number":{"maxLength":5000,"type":"string","description":"Routing number of the bank account."}},"description":"If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.","x-stripeMostCommon":["account_holder_type","account_number","account_type","financial_connections_account","routing_number","token"]},"wechat_pay":{"title":"param","type":"object","properties":{},"description":"If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method."},"zip":{"title":"param","type":"object","properties":{},"description":"If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method."}},"description":"When included, this hash creates a PaymentMethod that is set as the [`payment_method`](https://docs.stripe.com/api/setup_intents/object#setup_intent_object-payment_method)\nvalue in the SetupIntent.","x-stripeMostCommon":["billing_details","metadata","type"]},"payment_method_options":{"title":"payment_method_options_param","type":"object","properties":{"acss_debit":{"title":"setup_intent_payment_method_options_param","type":"object","properties":{"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","enum":["cad","usd"]},"mandate_options":{"title":"setup_intent_payment_method_options_mandate_options_param","type":"object","properties":{"custom_mandate_url":{"description":"A URL for custom mandate text to render during confirmation step.\nThe URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,\nor `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.","anyOf":[{"type":"string"},{"type":"string","enum":[""]}]},"default_for":{"type":"array","description":"List of Stripe products where this mandate can be selected automatically.","items":{"type":"string","enum":["invoice","subscription"]}},"interval_description":{"maxLength":500,"type":"string","description":"Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'."},"payment_schedule":{"type":"string","description":"Payment schedule for the mandate.","enum":["combined","interval","sporadic"]},"transaction_type":{"type":"string","description":"Transaction type of the mandate.","enum":["business","personal"]}},"description":"Additional fields for Mandate creation","x-stripeMostCommon":["custom_mandate_url","default_for","interval_description","payment_schedule","transaction_type"]},"verification_method":{"type":"string","description":"Bank account verification method. The default value is `automatic`.","enum":["automatic","instant","microdeposits"],"x-stripeBypassValidation":true}},"description":"If this is a `acss_debit` SetupIntent, this sub-hash contains details about the ACSS Debit payment method options.","x-stripeMostCommon":["currency","financial_connections","mandate_options","verification_method"]},"amazon_pay":{"title":"setup_intent_payment_method_options_param","type":"object","properties":{},"description":"If this is a `amazon_pay` SetupIntent, this sub-hash contains details about the AmazonPay payment method options.","x-stripeMostCommon":["charge_permission_id"]},"bacs_debit":{"title":"setup_intent_payment_method_options_param","type":"object","properties":{"mandate_options":{"title":"payment_method_options_mandate_options_param","type":"object","properties":{"reference_prefix":{"description":"Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.","anyOf":[{"maxLength":12,"type":"string"},{"type":"string","enum":[""]}]}},"description":"Additional fields for Mandate creation","x-stripeMostCommon":["reference_prefix"]}},"description":"If this is a `bacs_debit` SetupIntent, this sub-hash contains details about the Bacs Debit payment method options.","x-stripeMostCommon":["mandate_options"]},"card":{"title":"setup_intent_param","type":"object","properties":{"mandate_options":{"title":"setup_intent_mandate_options_param","required":["amount","amount_type","currency","interval","reference","start_date"],"type":"object","properties":{"amount":{"type":"integer","description":"Amount to be charged for future payments, specified in the presentment currency."},"amount_type":{"type":"string","description":"One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.","enum":["fixed","maximum"]},"currency":{"type":"string","description":"Currency in which future payments will be charged. Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"description":{"maxLength":200,"type":"string","description":"A description of the mandate or subscription that is meant to be displayed to the customer."},"end_date":{"type":"integer","description":"End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.","format":"unix-time"},"interval":{"type":"string","description":"Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`.","enum":["day","month","sporadic","week","year"]},"interval_count":{"type":"integer","description":"The number of intervals between payments. For example, `interval=month` and `interval_count=3` indicates one payment every three months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks). This parameter is optional when `interval=sporadic`."},"reference":{"maxLength":80,"type":"string","description":"Unique identifier for the mandate or subscription."},"start_date":{"type":"integer","description":"Start date of the mandate or subscription. Start date should not be lesser than yesterday.","format":"unix-time"},"supported_types":{"type":"array","description":"Specifies the type of mandates supported. Possible values are `india`.","items":{"type":"string","enum":["india"]}}},"description":"Configuration options for setting up an eMandate for cards issued in India.","x-stripeMostCommon":["amount","amount_type","currency","description","end_date","interval","interval_count","reference","start_date","supported_types"]},"moto":{"type":"boolean","description":"When specified, this parameter signals that a card has been collected\nas MOTO (Mail Order Telephone Order) and thus out of scope for SCA. This\nparameter can only be provided during confirmation."},"network":{"maxLength":5000,"type":"string","description":"Selected network to process this SetupIntent on. Depends on the available networks of the card attached to the SetupIntent. Can be only set confirm-time.","enum":["amex","cartes_bancaires","diners","discover","eftpos_au","girocard","interac","jcb","link","mastercard","unionpay","unknown","visa"],"x-stripeBypassValidation":true},"request_three_d_secure":{"type":"string","description":"We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.","enum":["any","automatic","challenge"],"x-stripeBypassValidation":true},"three_d_secure":{"title":"setup_intent_payment_method_options_param","type":"object","properties":{"ares_trans_status":{"type":"string","description":"The `transStatus` returned from the card Issuer’s ACS in the ARes.","enum":["A","C","I","N","R","U","Y"]},"cryptogram":{"maxLength":5000,"type":"string","description":"The cryptogram, also known as the \"authentication value\" (AAV, CAVV or\nAEVV). This value is 20 bytes, base64-encoded into a 28-character string.\n(Most 3D Secure providers will return the base64-encoded version, which\nis what you should specify here.)"},"electronic_commerce_indicator":{"type":"string","description":"The Electronic Commerce Indicator (ECI) is returned by your 3D Secure\nprovider and indicates what degree of authentication was performed.","enum":["01","02","05","06","07"],"x-stripeBypassValidation":true},"network_options":{"title":"network_options_param","type":"object","properties":{"cartes_bancaires":{"title":"cartes_bancaires_network_options_param","required":["cb_avalgo"],"type":"object","properties":{"cb_avalgo":{"type":"string","description":"The cryptogram calculation algorithm used by the card Issuer's ACS\nto calculate the Authentication cryptogram. Also known as `cavvAlgorithm`.\nmessageExtension: CB-AVALGO","enum":["0","1","2","3","4","A"]},"cb_exemption":{"maxLength":4,"type":"string","description":"The exemption indicator returned from Cartes Bancaires in the ARes.\nmessage extension: CB-EXEMPTION; string (4 characters)\nThis is a 3 byte bitmap (low significant byte first and most significant\nbit first) that has been Base64 encoded"},"cb_score":{"type":"integer","description":"The risk score returned from Cartes Bancaires in the ARes.\nmessage extension: CB-SCORE; numeric value 0-99"}},"description":"Cartes Bancaires-specific 3DS fields.","x-stripeMostCommon":["cb_avalgo","cb_exemption","cb_score"]}},"description":"Network specific 3DS fields. Network specific arguments require an\nexplicit card brand choice. The parameter `payment_method_options.card.network``\nmust be populated accordingly","x-stripeMostCommon":["cartes_bancaires"]},"requestor_challenge_indicator":{"maxLength":2,"type":"string","description":"The challenge indicator (`threeDSRequestorChallengeInd`) which was requested in the\nAReq sent to the card Issuer's ACS. A string containing 2 digits from 01-99."},"transaction_id":{"maxLength":5000,"type":"string","description":"For 3D Secure 1, the XID. For 3D Secure 2, the Directory Server\nTransaction ID (dsTransID)."},"version":{"type":"string","description":"The version of 3D Secure that was performed.","enum":["1.0.2","2.1.0","2.2.0","2.3.0","2.3.1"],"x-stripeBypassValidation":true}},"description":"If 3D Secure authentication was performed with a third-party provider,\nthe authentication details to use for this setup.","x-stripeMostCommon":["ares_trans_status","cryptogram","electronic_commerce_indicator","exemption_preferred","gateway","network_options","requestor_challenge_indicator","transaction_id","version"]}},"description":"Configuration for any card setup attempted on this SetupIntent.","x-stripeMostCommon":["commerce_type","mandate_options","moto","network","network_token","request_name_verification","request_three_d_secure","three_d_secure","verify_card_account"]},"card_present":{"title":"setup_intent_payment_method_options_param","type":"object","properties":{},"description":"If this is a `card_present` PaymentMethod, this sub-hash contains details about the card-present payment method options."},"klarna":{"title":"setup_intent_payment_method_options_param","type":"object","properties":{"currency":{"type":"string","description":"The currency of the SetupIntent. Three letter ISO currency code.","format":"currency"},"on_demand":{"title":"on_demand_param","type":"object","properties":{"average_amount":{"type":"integer","description":"Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc."},"maximum_amount":{"type":"integer","description":"The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc."},"minimum_amount":{"type":"integer","description":"The lowest or minimum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc."},"purchase_interval":{"type":"string","description":"Interval at which the customer is making purchases","enum":["day","month","week","year"]},"purchase_interval_count":{"type":"integer","description":"The number of `purchase_interval` between charges"}},"description":"On-demand details if setting up a payment method for on-demand payments.","x-stripeMostCommon":["average_amount","maximum_amount","minimum_amount","purchase_interval","purchase_interval_count"]},"preferred_locale":{"type":"string","description":"Preferred language of the Klarna authorization page that the customer is redirected to","enum":["cs-CZ","da-DK","de-AT","de-CH","de-DE","el-GR","en-AT","en-AU","en-BE","en-CA","en-CH","en-CZ","en-DE","en-DK","en-ES","en-FI","en-FR","en-GB","en-GR","en-IE","en-IT","en-NL","en-NO","en-NZ","en-PL","en-PT","en-RO","en-SE","en-US","es-ES","es-US","fi-FI","fr-BE","fr-CA","fr-CH","fr-FR","it-CH","it-IT","nb-NO","nl-BE","nl-NL","pl-PL","pt-PT","ro-RO","sv-FI","sv-SE"],"x-stripeBypassValidation":true},"subscriptions":{"description":"Subscription details if setting up or charging a subscription","anyOf":[{"type":"array","items":{"title":"setup_intent_subscription_param","required":["interval","next_billing","reference"],"type":"object","properties":{"interval":{"type":"string","description":"Unit of time between subscription charges.","enum":["day","month","week","year"]},"interval_count":{"type":"integer","description":"The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months."},"name":{"maxLength":255,"type":"string","description":"Name for subscription."},"next_billing":{"title":"subscription_next_billing_param","required":["amount","date"],"type":"object","properties":{"amount":{"type":"integer","description":"The amount of the next charge for the subscription."},"date":{"maxLength":5000,"type":"string","description":"The date of the next charge for the subscription in YYYY-MM-DD format."}},"description":"Describes the upcoming charge for this subscription.","x-stripeMostCommon":["amount","date"]},"reference":{"maxLength":255,"type":"string","description":"A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges."}},"x-stripeMostCommon":["interval","interval_count","name","next_billing","reference"]}},{"type":"string","enum":[""]}]}},"description":"If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method options.","x-stripeMostCommon":["currency","interoperability_token","on_demand","payment_option_id","preferred_locale","subscriptions"]},"link":{"title":"setup_intent_payment_method_options_param","type":"object","properties":{"persistent_token":{"maxLength":5000,"type":"string","description":"[Deprecated] This is a legacy parameter that no longer has any function."}},"description":"If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.","x-stripeMostCommon":["persistent_token"]},"paypal":{"title":"payment_method_options_param","type":"object","properties":{"billing_agreement_id":{"maxLength":5000,"type":"string","description":"The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer."}},"description":"If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.","x-stripeMostCommon":["billing_agreement_id","currency","subsellers"]},"payto":{"title":"setup_intent_payment_method_options_param","type":"object","properties":{"mandate_options":{"title":"setup_intent_payment_method_options_mandate_options_param","type":"object","properties":{"amount":{"description":"Amount that will be collected. It is required when `amount_type` is `fixed`.","anyOf":[{"type":"integer"},{"type":"string","enum":[""]}]},"amount_type":{"type":"string","description":"The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. Defaults to `maximum`.","enum":["","fixed","maximum"]},"end_date":{"description":"Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]},"payment_schedule":{"type":"string","description":"The periodicity at which payments will be collected. Defaults to `adhoc`.","enum":["","adhoc","annual","daily","fortnightly","monthly","quarterly","semi_annual","weekly"]},"payments_per_period":{"description":"The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.","anyOf":[{"type":"integer"},{"type":"string","enum":[""]}]},"purpose":{"type":"string","description":"The purpose for which payments are made. Has a default value based on your merchant category code.","enum":["","dependant_support","government","loan","mortgage","other","pension","personal","retail","salary","tax","utility"]},"start_date":{"description":"Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]}},"description":"Additional fields for Mandate creation.","x-stripeMostCommon":["amount","amount_type","end_date","payment_schedule","payments_per_period","purpose","start_date"]}},"description":"If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.","x-stripeMostCommon":["mandate_options"]},"sepa_debit":{"title":"setup_intent_payment_method_options_param","type":"object","properties":{"mandate_options":{"title":"payment_method_options_mandate_options_param","type":"object","properties":{"reference_prefix":{"description":"Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.","anyOf":[{"maxLength":12,"type":"string"},{"type":"string","enum":[""]}]}},"description":"Additional fields for Mandate creation","x-stripeMostCommon":["reference","reference_prefix"]}},"description":"If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.","x-stripeMostCommon":["mandate_options","verification_method"]},"upi":{"title":"payment_method_options_param","type":"object","properties":{"mandate_options":{"title":"payment_method_options_mandate_options_param","type":"object","properties":{"amount":{"type":"integer","description":"Amount to be charged for future payments."},"amount_type":{"type":"string","description":"One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.","enum":["fixed","maximum"]},"description":{"maxLength":20,"type":"string","description":"A description of the mandate or subscription that is meant to be displayed to the customer."},"end_date":{"type":"integer","description":"End date of the mandate or subscription.","format":"unix-time"}},"description":"Configuration options for setting up an eMandate","x-stripeMostCommon":["amount","amount_type","description","end_date"]},"setup_future_usage":{"type":"string","enum":["","none","off_session","on_session"]}},"description":"If this is a `upi` SetupIntent, this sub-hash contains details about the UPI payment method options.","x-stripeMostCommon":["mandate_options","setup_future_usage"]},"us_bank_account":{"title":"setup_intent_payment_method_options_param","type":"object","properties":{"financial_connections":{"title":"linked_account_options_param","type":"object","properties":{"filters":{"title":"linked_account_options_filters_param","type":"object","properties":{"account_subcategories":{"type":"array","description":"The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.","items":{"maxLength":5000,"type":"string","enum":["checking","savings"]}}},"description":"Provide filters for the linked accounts that the customer can select for the payment method.","x-stripeMostCommon":["account_subcategories","institution"]},"permissions":{"type":"array","description":"The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.","items":{"maxLength":5000,"type":"string","enum":["balances","ownership","payment_method","transactions"],"x-stripeBypassValidation":true}},"prefetch":{"type":"array","description":"List of data features that you would like to retrieve upon account creation.","items":{"type":"string","enum":["balances","ownership","transactions"],"x-stripeBypassValidation":true}},"return_url":{"maxLength":5000,"type":"string","description":"For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app."}},"description":"Additional fields for Financial Connections Session creation","x-stripeMostCommon":["filters","manual_entry","permissions","prefetch","return_url"]},"mandate_options":{"title":"mandate_options_param","type":"object","properties":{"collection_method":{"type":"string","description":"The method used to collect offline mandate customer acceptance.","enum":["","paper"],"x-stripeBypassValidation":true}},"description":"Additional fields for Mandate creation","x-stripeMostCommon":["collection_method"]},"networks":{"title":"networks_options_param","type":"object","properties":{"requested":{"type":"array","description":"Triggers validations to run across the selected networks","items":{"type":"string","enum":["ach","us_domestic_wire"]}}},"description":"Additional fields for network related functions","x-stripeMostCommon":["requested"]},"verification_method":{"type":"string","description":"Bank account verification method. The default value is `automatic`.","enum":["automatic","instant","microdeposits"],"x-stripeBypassValidation":true}},"description":"If this is a `us_bank_account` SetupIntent, this sub-hash contains details about the US bank account payment method options.","x-stripeMostCommon":["financial_connections","mandate_options","networks","verification_method"]}},"description":"Payment method-specific configuration for this SetupIntent.","x-stripeMostCommon":["acss_debit","alipay","amazon_pay","bacs_debit","bizum","blik","card","card_present","demo_pay","dummy_auth_push","klarna","link","paypal","payto","pix","sepa_debit","stripe_balance","upi","us_bank_account","wechat_pay"]},"payment_method_types":{"type":"array","description":"The list of payment method types (for example, card) that this SetupIntent can use. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type).","items":{"maxLength":5000,"type":"string"}},"return_url":{"type":"string","description":"The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. To redirect to a mobile application, you can alternatively supply an application URI scheme. This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/setup_intents/create#create_setup_intent-confirm)."},"single_use":{"title":"setup_intent_single_use_params","required":["amount","currency"],"type":"object","properties":{"amount":{"type":"integer","description":"Amount the customer is granting permission to collect later. A positive integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99)."},"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"}},"description":"If you populate this hash, this SetupIntent generates a `single_use` mandate after successful completion.\n\nSingle-use mandates are only valid for the following payment methods: `acss_debit`, `alipay`, `au_becs_debit`, `bacs_debit`, `bancontact`, `boleto`, `ideal`, `link`, `sepa_debit`, and `us_bank_account`.","x-stripeMostCommon":["amount","currency"]},"usage":{"type":"string","description":"Indicates how the payment method is intended to be used in the future. If not provided, this value defaults to `off_session`.","enum":["off_session","on_session"]},"use_stripe_sdk":{"type":"boolean","description":"Set to `true` when confirming server-side and using Stripe.js, iOS, or Android client-side SDKs to handle the next actions."}},"additionalProperties":false,"x-stripeMostCommon":["automatic_payment_methods","confirm","customer","customer_account","description","metadata","payment_method","usage"]},"encoding":{"automatic_payment_methods":{"style":"deepObject","explode":true},"excluded_payment_method_types":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"flow_directions":{"style":"deepObject","explode":true},"mandate_data":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true},"payment_method_data":{"style":"deepObject","explode":true},"payment_method_options":{"style":"deepObject","explode":true},"payment_method_types":{"style":"deepObject","explode":true},"single_use":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/setup_intent"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/setup_intents/{intent}":{"get":{"summary":"Retrieve a SetupIntent","description":"Retrieves the details of a SetupIntent that has previously been created.
\n\nClient-side retrieval using a publishable key is allowed when the client_secret is provided in the query string.
When retrieved with a publishable key, only a subset of properties will be returned. Please refer to the SetupIntent object reference for more details.
","operationId":"GetSetupIntentsIntent","parameters":[{"name":"client_secret","in":"query","description":"The client secret of the SetupIntent. We require this string if you use a publishable key to retrieve the SetupIntent.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"intent","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/setup_intent"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Update a SetupIntent","description":"Updates a SetupIntent object.
","operationId":"PostSetupIntentsIntent","parameters":[{"name":"intent","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"attach_to_self":{"type":"boolean","description":"If present, the SetupIntent's payment method will be attached to the in-context Stripe Account.\n\nIt can only be used for this Stripe Account’s own money movement flows like InboundTransfer and OutboundTransfers. It cannot be set to true when setting up a PaymentMethod for a Customer, and defaults to false when attaching a PaymentMethod to a Customer."},"customer":{"maxLength":5000,"type":"string","description":"ID of the Customer this SetupIntent belongs to, if one exists.\n\nIf present, the SetupIntent's payment method will be attached to the Customer on successful setup. Payment methods attached to other Customers cannot be used with this SetupIntent."},"customer_account":{"maxLength":5000,"type":"string","description":"ID of the Account this SetupIntent belongs to, if one exists.\n\nIf present, the SetupIntent's payment method will be attached to the Account on successful setup. Payment methods attached to other Accounts cannot be used with this SetupIntent."},"description":{"maxLength":1000,"type":"string","description":"An arbitrary string attached to the object. Often useful for displaying to users."},"excluded_payment_method_types":{"description":"The list of payment method types to exclude from use with this SetupIntent.","anyOf":[{"type":"array","items":{"type":"string","enum":["acss_debit","affirm","afterpay_clearpay","alipay","alma","amazon_pay","au_becs_debit","bacs_debit","bancontact","billie","blik","boleto","card","cashapp","crypto","customer_balance","eps","fpx","giropay","grabpay","ideal","kakao_pay","klarna","konbini","kr_card","mb_way","mobilepay","multibanco","naver_pay","nz_bank_account","oxxo","p24","pay_by_bank","payco","paynow","paypal","payto","pix","promptpay","revolut_pay","samsung_pay","satispay","sepa_debit","sofort","swish","twint","upi","us_bank_account","wechat_pay","zip"],"x-stripeBypassValidation":true}},{"type":"string","enum":[""]}]},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"flow_directions":{"type":"array","description":"Indicates the directions of money movement for which this payment method is intended to be used.\n\nInclude `inbound` if you intend to use the payment method as the origin to pull funds from. Include `outbound` if you intend to use the payment method as the destination to send funds to. You can include both if you intend to use the payment method for both purposes.","items":{"type":"string","enum":["inbound","outbound"]}},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"payment_method":{"maxLength":5000,"type":"string","description":"ID of the payment method (a PaymentMethod, Card, or saved Source object) to attach to this SetupIntent. To unset this field to null, pass in an empty string."},"payment_method_configuration":{"maxLength":100,"type":"string","description":"The ID of the [payment method configuration](https://docs.stripe.com/api/payment_method_configurations) to use with this SetupIntent."},"payment_method_data":{"title":"payment_method_data_params","required":["type"],"type":"object","properties":{"acss_debit":{"title":"payment_method_param","required":["account_number","institution_number","transit_number"],"type":"object","properties":{"account_number":{"maxLength":5000,"type":"string","description":"Customer's bank account number."},"institution_number":{"maxLength":5000,"type":"string","description":"Institution number of the customer's bank."},"transit_number":{"maxLength":5000,"type":"string","description":"Transit number of the customer's bank."}},"description":"If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.","x-stripeMostCommon":["account_number","financial_connections_account","institution_number","transit_number"]},"affirm":{"title":"param","type":"object","properties":{},"description":"If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method."},"afterpay_clearpay":{"title":"param","type":"object","properties":{},"description":"If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method."},"alipay":{"title":"param","type":"object","properties":{},"description":"If this is an `Alipay` PaymentMethod, this hash contains details about the Alipay payment method."},"allow_redisplay":{"type":"string","description":"This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`.","enum":["always","limited","unspecified"]},"alma":{"title":"param","type":"object","properties":{},"description":"If this is a Alma PaymentMethod, this hash contains details about the Alma payment method."},"amazon_pay":{"title":"param","type":"object","properties":{},"description":"If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method."},"au_becs_debit":{"title":"param","required":["account_number","bsb_number"],"type":"object","properties":{"account_number":{"maxLength":5000,"type":"string","description":"The account number for the bank account."},"bsb_number":{"maxLength":5000,"type":"string","description":"Bank-State-Branch number of the bank account."}},"description":"If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.","x-stripeMostCommon":["account_number","bsb_number"]},"bacs_debit":{"title":"param","type":"object","properties":{"account_number":{"maxLength":5000,"type":"string","description":"Account number of the bank account that the funds will be debited from."},"sort_code":{"maxLength":5000,"type":"string","description":"Sort code of the bank account. (e.g., `10-20-30`)"}},"description":"If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.","x-stripeMostCommon":["account_number","sort_code"]},"bancontact":{"title":"param","type":"object","properties":{},"description":"If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method."},"billie":{"title":"param","type":"object","properties":{},"description":"If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method."},"billing_details":{"title":"billing_details_inner_params","type":"object","properties":{"address":{"description":"Billing address.","anyOf":[{"title":"billing_details_address","type":"object","properties":{"city":{"maxLength":5000,"type":"string","description":"City, district, suburb, town, or village."},"country":{"maxLength":5000,"type":"string","description":"Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."},"line1":{"maxLength":5000,"type":"string","description":"Address line 1, such as the street, PO Box, or company name."},"line2":{"maxLength":5000,"type":"string","description":"Address line 2, such as the apartment, suite, unit, or building."},"postal_code":{"maxLength":5000,"type":"string","description":"ZIP or postal code."},"state":{"maxLength":5000,"type":"string","description":"State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))."}},"x-stripeMostCommon":["city","country","line1","line2","postal_code","state"]},{"type":"string","enum":[""]}]},"email":{"description":"Email address.","anyOf":[{"type":"string"},{"type":"string","enum":[""]}]},"name":{"description":"Full name.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]},"phone":{"description":"Billing phone number (including extension).","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]},"tax_id":{"maxLength":5000,"type":"string","description":"Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers."}},"description":"Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.","x-stripeMostCommon":["address","email","name","phone","tax_id"]},"blik":{"title":"param","type":"object","properties":{},"description":"If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method."},"boleto":{"title":"param","required":["tax_id"],"type":"object","properties":{"tax_id":{"maxLength":5000,"type":"string","description":"The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)"}},"description":"If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.","x-stripeMostCommon":["tax_id"]},"cashapp":{"title":"param","type":"object","properties":{},"description":"If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method."},"crypto":{"title":"param","type":"object","properties":{},"description":"If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method."},"customer_balance":{"title":"param","type":"object","properties":{},"description":"If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method."},"eps":{"title":"param","type":"object","properties":{"bank":{"maxLength":5000,"type":"string","description":"The customer's bank.","enum":["arzte_und_apotheker_bank","austrian_anadi_bank_ag","bank_austria","bankhaus_carl_spangler","bankhaus_schelhammer_und_schattera_ag","bawag_psk_ag","bks_bank_ag","brull_kallmus_bank_ag","btv_vier_lander_bank","capital_bank_grawe_gruppe_ag","deutsche_bank_ag","dolomitenbank","easybank_ag","erste_bank_und_sparkassen","hypo_alpeadriabank_international_ag","hypo_bank_burgenland_aktiengesellschaft","hypo_noe_lb_fur_niederosterreich_u_wien","hypo_oberosterreich_salzburg_steiermark","hypo_tirol_bank_ag","hypo_vorarlberg_bank_ag","marchfelder_bank","oberbank_ag","raiffeisen_bankengruppe_osterreich","schoellerbank_ag","sparda_bank_wien","volksbank_gruppe","volkskreditbank_ag","vr_bank_braunau"]}},"description":"If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.","x-stripeMostCommon":["bank"]},"fpx":{"title":"param","required":["bank"],"type":"object","properties":{"account_holder_type":{"maxLength":5000,"type":"string","description":"Account holder type for FPX transaction","enum":["company","individual"]},"bank":{"maxLength":5000,"type":"string","description":"The customer's bank.","enum":["affin_bank","agrobank","alliance_bank","ambank","bank_islam","bank_muamalat","bank_of_china","bank_rakyat","bsn","cimb","deutsche_bank","hong_leong_bank","hsbc","kfh","maybank2e","maybank2u","ocbc","pb_enterprise","public_bank","rhb","standard_chartered","uob"],"x-stripeBypassValidation":true}},"description":"If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.","x-stripeMostCommon":["account_holder_type","bank"]},"giropay":{"title":"param","type":"object","properties":{},"description":"If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method."},"grabpay":{"title":"param","type":"object","properties":{},"description":"If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method."},"ideal":{"title":"param","type":"object","properties":{"bank":{"maxLength":5000,"type":"string","description":"The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.","enum":["abn_amro","adyen","asn_bank","bunq","buut","finom","handelsbanken","ing","knab","mollie","moneyou","n26","nn","rabobank","regiobank","revolut","sns_bank","triodos_bank","van_lanschot","yoursafe"]}},"description":"If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.","x-stripeMostCommon":["bank"]},"interac_present":{"title":"param","type":"object","properties":{},"description":"If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.","x-stripeMostCommon":["device_identifier","device_type","emv","location"]},"kakao_pay":{"title":"param","type":"object","properties":{},"description":"If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method."},"klarna":{"title":"param","type":"object","properties":{"dob":{"title":"date_of_birth","required":["day","month","year"],"type":"object","properties":{"day":{"type":"integer","description":"The day of birth, between 1 and 31."},"month":{"type":"integer","description":"The month of birth, between 1 and 12."},"year":{"type":"integer","description":"The four-digit year of birth."}},"description":"Customer's date of birth","x-stripeMostCommon":["day","month","year"]}},"description":"If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method.","x-stripeMostCommon":["dob"]},"konbini":{"title":"param","type":"object","properties":{},"description":"If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method."},"kr_card":{"title":"param","type":"object","properties":{},"description":"If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method."},"link":{"title":"param","type":"object","properties":{},"description":"If this is an `Link` PaymentMethod, this hash contains details about the Link payment method."},"mb_way":{"title":"param","type":"object","properties":{},"description":"If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method."},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"mobilepay":{"title":"param","type":"object","properties":{},"description":"If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method."},"multibanco":{"title":"param","type":"object","properties":{},"description":"If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method."},"naver_pay":{"title":"param","type":"object","properties":{"funding":{"type":"string","description":"Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.","enum":["card","points"],"x-stripeBypassValidation":true}},"description":"If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.","x-stripeMostCommon":["funding"]},"nz_bank_account":{"title":"param","required":["account_number","bank_code","branch_code","suffix"],"type":"object","properties":{"account_holder_name":{"maxLength":5000,"type":"string","description":"The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details."},"account_number":{"maxLength":5000,"type":"string","description":"The account number for the bank account."},"bank_code":{"maxLength":5000,"type":"string","description":"The numeric code for the bank account's bank."},"branch_code":{"maxLength":5000,"type":"string","description":"The numeric code for the bank account's bank branch."},"reference":{"maxLength":128,"type":"string"},"suffix":{"maxLength":5000,"type":"string","description":"The suffix of the bank account number."}},"description":"If this is an nz_bank_account PaymentMethod, this hash contains details about the nz_bank_account payment method.","x-stripeMostCommon":["account_holder_name","account_number","bank_code","branch_code","reference","suffix"]},"oxxo":{"title":"param","type":"object","properties":{},"description":"If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method."},"p24":{"title":"param","type":"object","properties":{"bank":{"type":"string","description":"The customer's bank.","enum":["alior_bank","bank_millennium","bank_nowy_bfg_sa","bank_pekao_sa","banki_spbdzielcze","blik","bnp_paribas","boz","citi_handlowy","credit_agricole","envelobank","etransfer_pocztowy24","getin_bank","ideabank","ing","inteligo","mbank_mtransfer","nest_przelew","noble_pay","pbac_z_ipko","plus_bank","santander_przelew24","tmobile_usbugi_bankowe","toyota_bank","velobank","volkswagen_bank"],"x-stripeBypassValidation":true}},"description":"If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.","x-stripeMostCommon":["bank"]},"pay_by_bank":{"title":"param","type":"object","properties":{},"description":"If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method."},"payco":{"title":"param","type":"object","properties":{},"description":"If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method."},"paynow":{"title":"param","type":"object","properties":{},"description":"If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method."},"paypal":{"title":"param","type":"object","properties":{},"description":"If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method."},"payto":{"title":"param","type":"object","properties":{"account_number":{"maxLength":5000,"type":"string","description":"The account number for the bank account."},"bsb_number":{"maxLength":5000,"type":"string","description":"Bank-State-Branch number of the bank account."},"pay_id":{"maxLength":5000,"type":"string","description":"The PayID alias for the bank account."}},"description":"If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.","x-stripeMostCommon":["account_number","bsb_number","pay_id"]},"pix":{"title":"param","type":"object","properties":{},"description":"If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.","x-stripeMostCommon":["tax_id"]},"promptpay":{"title":"param","type":"object","properties":{},"description":"If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method."},"radar_options":{"title":"radar_options_with_hidden_options","type":"object","properties":{"session":{"maxLength":5000,"type":"string","description":"A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments."}},"description":"Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.","x-stripeMostCommon":["session","skip_rules"]},"revolut_pay":{"title":"param","type":"object","properties":{},"description":"If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method."},"samsung_pay":{"title":"param","type":"object","properties":{},"description":"If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method."},"satispay":{"title":"param","type":"object","properties":{},"description":"If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method."},"sepa_debit":{"title":"param","required":["iban"],"type":"object","properties":{"iban":{"maxLength":5000,"type":"string","description":"IBAN of the bank account."}},"description":"If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.","x-stripeMostCommon":["iban"]},"sofort":{"title":"param","required":["country"],"type":"object","properties":{"country":{"type":"string","description":"Two-letter ISO code representing the country the bank account is located in.","enum":["AT","BE","DE","ES","IT","NL"]}},"description":"If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.","x-stripeMostCommon":["country"]},"swish":{"title":"param","type":"object","properties":{},"description":"If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method."},"twint":{"title":"param","type":"object","properties":{},"description":"If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method."},"type":{"type":"string","description":"The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.","enum":["acss_debit","affirm","afterpay_clearpay","alipay","alma","amazon_pay","au_becs_debit","bacs_debit","bancontact","billie","blik","boleto","cashapp","crypto","customer_balance","eps","fpx","giropay","grabpay","ideal","kakao_pay","klarna","konbini","kr_card","link","mb_way","mobilepay","multibanco","naver_pay","nz_bank_account","oxxo","p24","pay_by_bank","payco","paynow","paypal","payto","pix","promptpay","revolut_pay","samsung_pay","satispay","sepa_debit","sofort","swish","twint","upi","us_bank_account","wechat_pay","zip"],"x-stripeBypassValidation":true},"upi":{"title":"param","type":"object","properties":{"mandate_options":{"title":"mandate_options","type":"object","properties":{"amount":{"type":"integer","description":"Amount to be charged for future payments."},"amount_type":{"type":"string","description":"One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.","enum":["fixed","maximum"]},"description":{"maxLength":20,"type":"string","description":"A description of the mandate or subscription that is meant to be displayed to the customer."},"end_date":{"type":"integer","description":"End date of the mandate or subscription.","format":"unix-time"}},"description":"Configuration options for setting up an eMandate","x-stripeMostCommon":["amount","amount_type","description","end_date"]}},"description":"If this is a `upi` PaymentMethod, this hash contains details about the UPI payment method.","x-stripeMostCommon":["mandate_options","vpa"]},"us_bank_account":{"title":"payment_method_param","type":"object","properties":{"account_holder_type":{"type":"string","description":"Account holder type: individual or company.","enum":["company","individual"]},"account_number":{"maxLength":5000,"type":"string","description":"Account number of the bank account."},"account_type":{"type":"string","description":"Account type: checkings or savings. Defaults to checking if omitted.","enum":["checking","savings"]},"financial_connections_account":{"maxLength":5000,"type":"string","description":"The ID of a Financial Connections Account to use as a payment method."},"routing_number":{"maxLength":5000,"type":"string","description":"Routing number of the bank account."}},"description":"If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.","x-stripeMostCommon":["account_holder_type","account_number","account_type","financial_connections_account","routing_number","token"]},"wechat_pay":{"title":"param","type":"object","properties":{},"description":"If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method."},"zip":{"title":"param","type":"object","properties":{},"description":"If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method."}},"description":"When included, this hash creates a PaymentMethod that is set as the [`payment_method`](https://docs.stripe.com/api/setup_intents/object#setup_intent_object-payment_method)\nvalue in the SetupIntent.","x-stripeMostCommon":["billing_details","metadata","type"]},"payment_method_options":{"title":"payment_method_options_param","type":"object","properties":{"acss_debit":{"title":"setup_intent_payment_method_options_param","type":"object","properties":{"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","enum":["cad","usd"]},"mandate_options":{"title":"setup_intent_payment_method_options_mandate_options_param","type":"object","properties":{"custom_mandate_url":{"description":"A URL for custom mandate text to render during confirmation step.\nThe URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,\nor `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.","anyOf":[{"type":"string"},{"type":"string","enum":[""]}]},"default_for":{"type":"array","description":"List of Stripe products where this mandate can be selected automatically.","items":{"type":"string","enum":["invoice","subscription"]}},"interval_description":{"maxLength":500,"type":"string","description":"Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'."},"payment_schedule":{"type":"string","description":"Payment schedule for the mandate.","enum":["combined","interval","sporadic"]},"transaction_type":{"type":"string","description":"Transaction type of the mandate.","enum":["business","personal"]}},"description":"Additional fields for Mandate creation","x-stripeMostCommon":["custom_mandate_url","default_for","interval_description","payment_schedule","transaction_type"]},"verification_method":{"type":"string","description":"Bank account verification method. The default value is `automatic`.","enum":["automatic","instant","microdeposits"],"x-stripeBypassValidation":true}},"description":"If this is a `acss_debit` SetupIntent, this sub-hash contains details about the ACSS Debit payment method options.","x-stripeMostCommon":["currency","financial_connections","mandate_options","verification_method"]},"amazon_pay":{"title":"setup_intent_payment_method_options_param","type":"object","properties":{},"description":"If this is a `amazon_pay` SetupIntent, this sub-hash contains details about the AmazonPay payment method options.","x-stripeMostCommon":["charge_permission_id"]},"bacs_debit":{"title":"setup_intent_payment_method_options_param","type":"object","properties":{"mandate_options":{"title":"payment_method_options_mandate_options_param","type":"object","properties":{"reference_prefix":{"description":"Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.","anyOf":[{"maxLength":12,"type":"string"},{"type":"string","enum":[""]}]}},"description":"Additional fields for Mandate creation","x-stripeMostCommon":["reference_prefix"]}},"description":"If this is a `bacs_debit` SetupIntent, this sub-hash contains details about the Bacs Debit payment method options.","x-stripeMostCommon":["mandate_options"]},"card":{"title":"setup_intent_param","type":"object","properties":{"mandate_options":{"title":"setup_intent_mandate_options_param","required":["amount","amount_type","currency","interval","reference","start_date"],"type":"object","properties":{"amount":{"type":"integer","description":"Amount to be charged for future payments, specified in the presentment currency."},"amount_type":{"type":"string","description":"One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.","enum":["fixed","maximum"]},"currency":{"type":"string","description":"Currency in which future payments will be charged. Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"description":{"maxLength":200,"type":"string","description":"A description of the mandate or subscription that is meant to be displayed to the customer."},"end_date":{"type":"integer","description":"End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.","format":"unix-time"},"interval":{"type":"string","description":"Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`.","enum":["day","month","sporadic","week","year"]},"interval_count":{"type":"integer","description":"The number of intervals between payments. For example, `interval=month` and `interval_count=3` indicates one payment every three months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks). This parameter is optional when `interval=sporadic`."},"reference":{"maxLength":80,"type":"string","description":"Unique identifier for the mandate or subscription."},"start_date":{"type":"integer","description":"Start date of the mandate or subscription. Start date should not be lesser than yesterday.","format":"unix-time"},"supported_types":{"type":"array","description":"Specifies the type of mandates supported. Possible values are `india`.","items":{"type":"string","enum":["india"]}}},"description":"Configuration options for setting up an eMandate for cards issued in India.","x-stripeMostCommon":["amount","amount_type","currency","description","end_date","interval","interval_count","reference","start_date","supported_types"]},"moto":{"type":"boolean","description":"When specified, this parameter signals that a card has been collected\nas MOTO (Mail Order Telephone Order) and thus out of scope for SCA. This\nparameter can only be provided during confirmation."},"network":{"maxLength":5000,"type":"string","description":"Selected network to process this SetupIntent on. Depends on the available networks of the card attached to the SetupIntent. Can be only set confirm-time.","enum":["amex","cartes_bancaires","diners","discover","eftpos_au","girocard","interac","jcb","link","mastercard","unionpay","unknown","visa"],"x-stripeBypassValidation":true},"request_three_d_secure":{"type":"string","description":"We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.","enum":["any","automatic","challenge"],"x-stripeBypassValidation":true},"three_d_secure":{"title":"setup_intent_payment_method_options_param","type":"object","properties":{"ares_trans_status":{"type":"string","description":"The `transStatus` returned from the card Issuer’s ACS in the ARes.","enum":["A","C","I","N","R","U","Y"]},"cryptogram":{"maxLength":5000,"type":"string","description":"The cryptogram, also known as the \"authentication value\" (AAV, CAVV or\nAEVV). This value is 20 bytes, base64-encoded into a 28-character string.\n(Most 3D Secure providers will return the base64-encoded version, which\nis what you should specify here.)"},"electronic_commerce_indicator":{"type":"string","description":"The Electronic Commerce Indicator (ECI) is returned by your 3D Secure\nprovider and indicates what degree of authentication was performed.","enum":["01","02","05","06","07"],"x-stripeBypassValidation":true},"network_options":{"title":"network_options_param","type":"object","properties":{"cartes_bancaires":{"title":"cartes_bancaires_network_options_param","required":["cb_avalgo"],"type":"object","properties":{"cb_avalgo":{"type":"string","description":"The cryptogram calculation algorithm used by the card Issuer's ACS\nto calculate the Authentication cryptogram. Also known as `cavvAlgorithm`.\nmessageExtension: CB-AVALGO","enum":["0","1","2","3","4","A"]},"cb_exemption":{"maxLength":4,"type":"string","description":"The exemption indicator returned from Cartes Bancaires in the ARes.\nmessage extension: CB-EXEMPTION; string (4 characters)\nThis is a 3 byte bitmap (low significant byte first and most significant\nbit first) that has been Base64 encoded"},"cb_score":{"type":"integer","description":"The risk score returned from Cartes Bancaires in the ARes.\nmessage extension: CB-SCORE; numeric value 0-99"}},"description":"Cartes Bancaires-specific 3DS fields.","x-stripeMostCommon":["cb_avalgo","cb_exemption","cb_score"]}},"description":"Network specific 3DS fields. Network specific arguments require an\nexplicit card brand choice. The parameter `payment_method_options.card.network``\nmust be populated accordingly","x-stripeMostCommon":["cartes_bancaires"]},"requestor_challenge_indicator":{"maxLength":2,"type":"string","description":"The challenge indicator (`threeDSRequestorChallengeInd`) which was requested in the\nAReq sent to the card Issuer's ACS. A string containing 2 digits from 01-99."},"transaction_id":{"maxLength":5000,"type":"string","description":"For 3D Secure 1, the XID. For 3D Secure 2, the Directory Server\nTransaction ID (dsTransID)."},"version":{"type":"string","description":"The version of 3D Secure that was performed.","enum":["1.0.2","2.1.0","2.2.0","2.3.0","2.3.1"],"x-stripeBypassValidation":true}},"description":"If 3D Secure authentication was performed with a third-party provider,\nthe authentication details to use for this setup.","x-stripeMostCommon":["ares_trans_status","cryptogram","electronic_commerce_indicator","exemption_preferred","gateway","network_options","requestor_challenge_indicator","transaction_id","version"]}},"description":"Configuration for any card setup attempted on this SetupIntent.","x-stripeMostCommon":["commerce_type","mandate_options","moto","network","network_token","request_name_verification","request_three_d_secure","three_d_secure","verify_card_account"]},"card_present":{"title":"setup_intent_payment_method_options_param","type":"object","properties":{},"description":"If this is a `card_present` PaymentMethod, this sub-hash contains details about the card-present payment method options."},"klarna":{"title":"setup_intent_payment_method_options_param","type":"object","properties":{"currency":{"type":"string","description":"The currency of the SetupIntent. Three letter ISO currency code.","format":"currency"},"on_demand":{"title":"on_demand_param","type":"object","properties":{"average_amount":{"type":"integer","description":"Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc."},"maximum_amount":{"type":"integer","description":"The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc."},"minimum_amount":{"type":"integer","description":"The lowest or minimum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc."},"purchase_interval":{"type":"string","description":"Interval at which the customer is making purchases","enum":["day","month","week","year"]},"purchase_interval_count":{"type":"integer","description":"The number of `purchase_interval` between charges"}},"description":"On-demand details if setting up a payment method for on-demand payments.","x-stripeMostCommon":["average_amount","maximum_amount","minimum_amount","purchase_interval","purchase_interval_count"]},"preferred_locale":{"type":"string","description":"Preferred language of the Klarna authorization page that the customer is redirected to","enum":["cs-CZ","da-DK","de-AT","de-CH","de-DE","el-GR","en-AT","en-AU","en-BE","en-CA","en-CH","en-CZ","en-DE","en-DK","en-ES","en-FI","en-FR","en-GB","en-GR","en-IE","en-IT","en-NL","en-NO","en-NZ","en-PL","en-PT","en-RO","en-SE","en-US","es-ES","es-US","fi-FI","fr-BE","fr-CA","fr-CH","fr-FR","it-CH","it-IT","nb-NO","nl-BE","nl-NL","pl-PL","pt-PT","ro-RO","sv-FI","sv-SE"],"x-stripeBypassValidation":true},"subscriptions":{"description":"Subscription details if setting up or charging a subscription","anyOf":[{"type":"array","items":{"title":"setup_intent_subscription_param","required":["interval","next_billing","reference"],"type":"object","properties":{"interval":{"type":"string","description":"Unit of time between subscription charges.","enum":["day","month","week","year"]},"interval_count":{"type":"integer","description":"The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months."},"name":{"maxLength":255,"type":"string","description":"Name for subscription."},"next_billing":{"title":"subscription_next_billing_param","required":["amount","date"],"type":"object","properties":{"amount":{"type":"integer","description":"The amount of the next charge for the subscription."},"date":{"maxLength":5000,"type":"string","description":"The date of the next charge for the subscription in YYYY-MM-DD format."}},"description":"Describes the upcoming charge for this subscription.","x-stripeMostCommon":["amount","date"]},"reference":{"maxLength":255,"type":"string","description":"A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges."}},"x-stripeMostCommon":["interval","interval_count","name","next_billing","reference"]}},{"type":"string","enum":[""]}]}},"description":"If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method options.","x-stripeMostCommon":["currency","interoperability_token","on_demand","payment_option_id","preferred_locale","subscriptions"]},"link":{"title":"setup_intent_payment_method_options_param","type":"object","properties":{"persistent_token":{"maxLength":5000,"type":"string","description":"[Deprecated] This is a legacy parameter that no longer has any function."}},"description":"If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.","x-stripeMostCommon":["persistent_token"]},"paypal":{"title":"payment_method_options_param","type":"object","properties":{"billing_agreement_id":{"maxLength":5000,"type":"string","description":"The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer."}},"description":"If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.","x-stripeMostCommon":["billing_agreement_id","currency","subsellers"]},"payto":{"title":"setup_intent_payment_method_options_param","type":"object","properties":{"mandate_options":{"title":"setup_intent_payment_method_options_mandate_options_param","type":"object","properties":{"amount":{"description":"Amount that will be collected. It is required when `amount_type` is `fixed`.","anyOf":[{"type":"integer"},{"type":"string","enum":[""]}]},"amount_type":{"type":"string","description":"The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. Defaults to `maximum`.","enum":["","fixed","maximum"]},"end_date":{"description":"Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]},"payment_schedule":{"type":"string","description":"The periodicity at which payments will be collected. Defaults to `adhoc`.","enum":["","adhoc","annual","daily","fortnightly","monthly","quarterly","semi_annual","weekly"]},"payments_per_period":{"description":"The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.","anyOf":[{"type":"integer"},{"type":"string","enum":[""]}]},"purpose":{"type":"string","description":"The purpose for which payments are made. Has a default value based on your merchant category code.","enum":["","dependant_support","government","loan","mortgage","other","pension","personal","retail","salary","tax","utility"]},"start_date":{"description":"Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]}},"description":"Additional fields for Mandate creation.","x-stripeMostCommon":["amount","amount_type","end_date","payment_schedule","payments_per_period","purpose","start_date"]}},"description":"If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.","x-stripeMostCommon":["mandate_options"]},"sepa_debit":{"title":"setup_intent_payment_method_options_param","type":"object","properties":{"mandate_options":{"title":"payment_method_options_mandate_options_param","type":"object","properties":{"reference_prefix":{"description":"Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.","anyOf":[{"maxLength":12,"type":"string"},{"type":"string","enum":[""]}]}},"description":"Additional fields for Mandate creation","x-stripeMostCommon":["reference","reference_prefix"]}},"description":"If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.","x-stripeMostCommon":["mandate_options","verification_method"]},"upi":{"title":"payment_method_options_param","type":"object","properties":{"mandate_options":{"title":"payment_method_options_mandate_options_param","type":"object","properties":{"amount":{"type":"integer","description":"Amount to be charged for future payments."},"amount_type":{"type":"string","description":"One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.","enum":["fixed","maximum"]},"description":{"maxLength":20,"type":"string","description":"A description of the mandate or subscription that is meant to be displayed to the customer."},"end_date":{"type":"integer","description":"End date of the mandate or subscription.","format":"unix-time"}},"description":"Configuration options for setting up an eMandate","x-stripeMostCommon":["amount","amount_type","description","end_date"]},"setup_future_usage":{"type":"string","enum":["","none","off_session","on_session"]}},"description":"If this is a `upi` SetupIntent, this sub-hash contains details about the UPI payment method options.","x-stripeMostCommon":["mandate_options","setup_future_usage"]},"us_bank_account":{"title":"setup_intent_payment_method_options_param","type":"object","properties":{"financial_connections":{"title":"linked_account_options_param","type":"object","properties":{"filters":{"title":"linked_account_options_filters_param","type":"object","properties":{"account_subcategories":{"type":"array","description":"The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.","items":{"maxLength":5000,"type":"string","enum":["checking","savings"]}}},"description":"Provide filters for the linked accounts that the customer can select for the payment method.","x-stripeMostCommon":["account_subcategories","institution"]},"permissions":{"type":"array","description":"The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.","items":{"maxLength":5000,"type":"string","enum":["balances","ownership","payment_method","transactions"],"x-stripeBypassValidation":true}},"prefetch":{"type":"array","description":"List of data features that you would like to retrieve upon account creation.","items":{"type":"string","enum":["balances","ownership","transactions"],"x-stripeBypassValidation":true}},"return_url":{"maxLength":5000,"type":"string","description":"For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app."}},"description":"Additional fields for Financial Connections Session creation","x-stripeMostCommon":["filters","manual_entry","permissions","prefetch","return_url"]},"mandate_options":{"title":"mandate_options_param","type":"object","properties":{"collection_method":{"type":"string","description":"The method used to collect offline mandate customer acceptance.","enum":["","paper"],"x-stripeBypassValidation":true}},"description":"Additional fields for Mandate creation","x-stripeMostCommon":["collection_method"]},"networks":{"title":"networks_options_param","type":"object","properties":{"requested":{"type":"array","description":"Triggers validations to run across the selected networks","items":{"type":"string","enum":["ach","us_domestic_wire"]}}},"description":"Additional fields for network related functions","x-stripeMostCommon":["requested"]},"verification_method":{"type":"string","description":"Bank account verification method. The default value is `automatic`.","enum":["automatic","instant","microdeposits"],"x-stripeBypassValidation":true}},"description":"If this is a `us_bank_account` SetupIntent, this sub-hash contains details about the US bank account payment method options.","x-stripeMostCommon":["financial_connections","mandate_options","networks","verification_method"]}},"description":"Payment method-specific configuration for this SetupIntent.","x-stripeMostCommon":["acss_debit","alipay","amazon_pay","bacs_debit","bizum","blik","card","card_present","demo_pay","dummy_auth_push","klarna","link","paypal","payto","pix","sepa_debit","stripe_balance","upi","us_bank_account","wechat_pay"]},"payment_method_types":{"type":"array","description":"The list of payment method types (for example, card) that this SetupIntent can set up. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type).","items":{"maxLength":5000,"type":"string"}}},"additionalProperties":false,"x-stripeMostCommon":["customer","customer_account","description","metadata","payment_method"]},"encoding":{"excluded_payment_method_types":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"flow_directions":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true},"payment_method_data":{"style":"deepObject","explode":true},"payment_method_options":{"style":"deepObject","explode":true},"payment_method_types":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/setup_intent"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/setup_intents/{intent}/cancel":{"post":{"summary":"Cancel a SetupIntent","description":"You can cancel a SetupIntent object when it’s in one of these statuses: requires_payment_method, requires_confirmation, or requires_action.
After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an error. You can’t cancel the SetupIntent for a Checkout Session. Expire the Checkout Session instead.
","operationId":"PostSetupIntentsIntentCancel","parameters":[{"name":"intent","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"cancellation_reason":{"maxLength":5000,"type":"string","description":"Reason for canceling this SetupIntent. Possible values are: `abandoned`, `requested_by_customer`, or `duplicate`","enum":["abandoned","duplicate","requested_by_customer"]},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}}},"additionalProperties":false,"x-stripeMostCommon":["cancellation_reason"]},"encoding":{"expand":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/setup_intent"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/setup_intents/{intent}/confirm":{"post":{"summary":"Confirm a SetupIntent","description":"Confirm that your customer intends to set up the current or\nprovided payment method. For example, you would confirm a SetupIntent\nwhen a customer hits the “Save” button on a payment method management\npage on your website.
\n\nIf the selected payment method does not require any additional\nsteps from the customer, the SetupIntent will transition to the\nsucceeded status.
Otherwise, it will transition to the requires_action status and\nsuggest additional actions via next_action. If setup fails,\nthe SetupIntent will transition to the\nrequires_payment_method status or the canceled status if the\nconfirmation limit is reached.
Verifies microdeposits on a SetupIntent object.
","operationId":"PostSetupIntentsIntentVerifyMicrodeposits","parameters":[{"name":"intent","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"amounts":{"type":"array","description":"Two positive integers, in *cents*, equal to the values of the microdeposits sent to the bank account.","items":{"type":"integer"}},"descriptor_code":{"maxLength":5000,"type":"string","description":"A six-character code starting with SM present in the microdeposit sent to the bank account."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}}},"additionalProperties":false,"x-stripeMostCommon":["amounts","descriptor_code"]},"encoding":{"amounts":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/setup_intent"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/shipping_rates":{"get":{"summary":"List all shipping rates","description":"Returns a list of your shipping rates.
","operationId":"GetShippingRates","parameters":[{"name":"active","in":"query","description":"Only return shipping rates that are active or inactive.","required":false,"style":"form","explode":true,"schema":{"type":"boolean"}},{"name":"created","in":"query","description":"A filter on the list, based on the object `created` field. The value can be a string with an integer Unix timestamp, or it can be a dictionary with a number of different query options.","required":false,"style":"deepObject","explode":true,"schema":{"anyOf":[{"title":"range_query_specs","type":"object","properties":{"gt":{"type":"integer","description":"Minimum value to filter by (exclusive)"},"gte":{"type":"integer","description":"Minimum value to filter by (inclusive)"},"lt":{"type":"integer","description":"Maximum value to filter by (exclusive)"},"lte":{"type":"integer","description":"Maximum value to filter by (inclusive)"}},"x-stripeMostCommon":["gt","gte","lt","lte"]},{"type":"integer"}]}},{"name":"currency","in":"query","description":"Only return shipping rates for the given currency.","required":false,"style":"form","explode":true,"schema":{"type":"string","format":"currency"}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"ShippingResourcesShippingRateList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/shipping_rate"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/shipping_rates","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create a shipping rate","description":"Creates a new shipping rate object.
","operationId":"PostShippingRates","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["display_name"],"type":"object","properties":{"delivery_estimate":{"title":"delivery_estimate","type":"object","properties":{"maximum":{"title":"delivery_estimate_bound","required":["unit","value"],"type":"object","properties":{"unit":{"type":"string","description":"A unit of time.","enum":["business_day","day","hour","month","week"]},"value":{"type":"integer","description":"Must be greater than 0."}},"description":"The upper bound of the estimated range. If empty, represents no upper bound i.e., infinite.","x-stripeMostCommon":["unit","value"]},"minimum":{"title":"delivery_estimate_bound","required":["unit","value"],"type":"object","properties":{"unit":{"type":"string","description":"A unit of time.","enum":["business_day","day","hour","month","week"]},"value":{"type":"integer","description":"Must be greater than 0."}},"description":"The lower bound of the estimated range. If empty, represents no lower bound.","x-stripeMostCommon":["unit","value"]}},"description":"The estimated range for how long shipping will take, meant to be displayable to the customer. This will appear on CheckoutSessions.","x-stripeMostCommon":["maximum","minimum"]},"display_name":{"maxLength":100,"type":"string","description":"The name of the shipping rate, meant to be displayable to the customer. This will appear on CheckoutSessions."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"fixed_amount":{"title":"fixed_amount","required":["amount","currency"],"type":"object","properties":{"amount":{"type":"integer","description":"A non-negative integer in cents representing how much to charge."},"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"currency_options":{"type":"object","additionalProperties":{"title":"currency_option","required":["amount"],"type":"object","properties":{"amount":{"type":"integer","description":"A non-negative integer in cents representing how much to charge."},"tax_behavior":{"type":"string","description":"Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.","enum":["exclusive","inclusive","unspecified"]}},"x-stripeMostCommon":["amount","tax_behavior"]},"description":"Shipping rates defined in each available currency option. Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies)."}},"description":"Describes a fixed amount to charge for shipping. Must be present if type is `fixed_amount`.","x-stripeMostCommon":["amount","currency","currency_options"]},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"tax_behavior":{"type":"string","description":"Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.","enum":["exclusive","inclusive","unspecified"]},"tax_code":{"type":"string","description":"A [tax code](https://docs.stripe.com/tax/tax-categories) ID. The Shipping tax code is `txcd_92010001`."},"type":{"type":"string","description":"The type of calculation to use on the shipping rate.","enum":["fixed_amount"]}},"additionalProperties":false,"x-stripeMostCommon":["display_name","fixed_amount","metadata","tax_behavior","tax_code","type"]},"encoding":{"delivery_estimate":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"fixed_amount":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/shipping_rate"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/shipping_rates/{shipping_rate_token}":{"get":{"summary":"Retrieve a shipping rate","description":"Returns the shipping rate object with the given ID.
","operationId":"GetShippingRatesShippingRateToken","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"shipping_rate_token","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/shipping_rate"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Update a shipping rate","description":"Updates an existing shipping rate object.
","operationId":"PostShippingRatesShippingRateToken","parameters":[{"name":"shipping_rate_token","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"active":{"type":"boolean","description":"Whether the shipping rate can be used for new purchases. Defaults to `true`."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"fixed_amount":{"title":"fixed_amount_update","type":"object","properties":{"currency_options":{"type":"object","additionalProperties":{"title":"currency_option_update","type":"object","properties":{"amount":{"type":"integer","description":"A non-negative integer in cents representing how much to charge."},"tax_behavior":{"type":"string","description":"Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.","enum":["exclusive","inclusive","unspecified"]}},"x-stripeMostCommon":["amount","tax_behavior"]},"description":"Shipping rates defined in each available currency option. Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies)."}},"description":"Describes a fixed amount to charge for shipping. Must be present if type is `fixed_amount`.","x-stripeMostCommon":["currency_options"]},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"tax_behavior":{"type":"string","description":"Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.","enum":["exclusive","inclusive","unspecified"]}},"additionalProperties":false,"x-stripeMostCommon":["active","fixed_amount","metadata","tax_behavior"]},"encoding":{"expand":{"style":"deepObject","explode":true},"fixed_amount":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/shipping_rate"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/sigma/scheduled_query_runs":{"get":{"summary":"List all scheduled query runs","description":"Returns a list of scheduled query runs.
","operationId":"GetSigmaScheduledQueryRuns","parameters":[{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"SigmaScheduledQueryRunList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/scheduled_query_run"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/sigma/scheduled_query_runs","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/sigma/scheduled_query_runs/{scheduled_query_run}":{"get":{"summary":"Retrieve a scheduled query run","description":"Retrieves the details of an scheduled query run.
","operationId":"GetSigmaScheduledQueryRunsScheduledQueryRun","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"scheduled_query_run","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/scheduled_query_run"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/sources":{"post":{"summary":"Shares a source","description":"Creates a new source object.
","operationId":"PostSources","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"amount":{"type":"integer","description":"Amount associated with the source. This is the amount for which the source will be chargeable once ready. Required for `single_use` sources. Not supported for `receiver` type sources, where charge amount may not be specified until funds land."},"currency":{"type":"string","description":"Three-letter [ISO code for the currency](https://stripe.com/docs/currencies) associated with the source. This is the currency for which the source will be chargeable once ready.","format":"currency"},"customer":{"maxLength":500,"type":"string","description":"The `Customer` to whom the original source is attached to. Must be set when the original source is not a `Source` (e.g., `Card`)."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"flow":{"maxLength":5000,"type":"string","description":"The authentication `flow` of the source to create. `flow` is one of `redirect`, `receiver`, `code_verification`, `none`. It is generally inferred unless a type supports multiple flows.","enum":["code_verification","none","receiver","redirect"]},"mandate":{"title":"mandate_params","type":"object","properties":{"acceptance":{"title":"mandate_acceptance_params","required":["status"],"type":"object","properties":{"date":{"type":"integer","description":"The Unix timestamp (in seconds) when the mandate was accepted or refused by the customer.","format":"unix-time"},"ip":{"type":"string","description":"The IP address from which the mandate was accepted or refused by the customer."},"offline":{"title":"mandate_offline_acceptance_params","required":["contact_email"],"type":"object","properties":{"contact_email":{"type":"string","description":"An email to contact you with if a copy of the mandate is requested, required if `type` is `offline`."}},"description":"The parameters required to store a mandate accepted offline. Should only be set if `mandate[type]` is `offline`","x-stripeMostCommon":["contact_email"]},"online":{"title":"mandate_online_acceptance_params","type":"object","properties":{"date":{"type":"integer","description":"The Unix timestamp (in seconds) when the mandate was accepted or refused by the customer.","format":"unix-time"},"ip":{"type":"string","description":"The IP address from which the mandate was accepted or refused by the customer."},"user_agent":{"maxLength":5000,"type":"string","description":"The user agent of the browser from which the mandate was accepted or refused by the customer."}},"description":"The parameters required to store a mandate accepted online. Should only be set if `mandate[type]` is `online`","x-stripeMostCommon":["date","ip","user_agent"]},"status":{"maxLength":5000,"type":"string","description":"The status of the mandate acceptance. Either `accepted` (the mandate was accepted) or `refused` (the mandate was refused).","enum":["accepted","pending","refused","revoked"]},"type":{"maxLength":5000,"type":"string","description":"The type of acceptance information included with the mandate. Either `online` or `offline`","enum":["offline","online"]},"user_agent":{"maxLength":5000,"type":"string","description":"The user agent of the browser from which the mandate was accepted or refused by the customer."}},"description":"The parameters required to notify Stripe of a mandate acceptance or refusal by the customer.","x-stripeMostCommon":["date","ip","offline","online","status","type","user_agent"]},"amount":{"description":"The amount specified by the mandate. (Leave null for a mandate covering all amounts)","anyOf":[{"type":"integer"},{"type":"string","enum":[""]}]},"currency":{"type":"string","description":"The currency specified by the mandate. (Must match `currency` of the source)","format":"currency"},"interval":{"maxLength":5000,"type":"string","description":"The interval of debits permitted by the mandate. Either `one_time` (just permitting a single debit), `scheduled` (with debits on an agreed schedule or for clearly-defined events), or `variable`(for debits with any frequency)","enum":["one_time","scheduled","variable"]},"notification_method":{"maxLength":5000,"type":"string","description":"The method Stripe should use to notify the customer of upcoming debit instructions and/or mandate confirmation as required by the underlying debit network. Either `email` (an email is sent directly to the customer), `manual` (a `source.mandate_notification` event is sent to your webhooks endpoint and you should handle the notification) or `none` (the underlying debit network does not require any notification).","enum":["deprecated_none","email","manual","none","stripe_email"]}},"description":"Information about a mandate possibility attached to a source object (generally for bank debits) as well as its acceptance status.","x-stripeMostCommon":["acceptance","amount","currency","interval","notification_method"]},"metadata":{"type":"object","additionalProperties":{"type":"string"}},"original_source":{"maxLength":5000,"type":"string","description":"The source to share."},"owner":{"title":"owner","type":"object","properties":{"address":{"title":"source_address","type":"object","properties":{"city":{"maxLength":5000,"type":"string","description":"City, district, suburb, town, or village."},"country":{"maxLength":5000,"type":"string","description":"Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."},"line1":{"maxLength":5000,"type":"string","description":"Address line 1, such as the street, PO Box, or company name."},"line2":{"maxLength":5000,"type":"string","description":"Address line 2, such as the apartment, suite, unit, or building."},"postal_code":{"maxLength":5000,"type":"string","description":"ZIP or postal code."},"state":{"maxLength":5000,"type":"string","description":"State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))."}},"description":"Owner's address.","x-stripeMostCommon":["city","country","line1","line2","postal_code","state"]},"email":{"type":"string","description":"Owner's email address."},"name":{"maxLength":5000,"type":"string","description":"Owner's full name."},"phone":{"maxLength":5000,"type":"string","description":"Owner's phone number."}},"description":"Information about the owner of the payment instrument that may be used or required by particular source types.","x-stripeMostCommon":["address","email","name","phone"]},"receiver":{"title":"receiver_params","type":"object","properties":{"refund_attributes_method":{"maxLength":5000,"type":"string","description":"The method Stripe should use to request information needed to process a refund or mispayment. Either `email` (an email is sent directly to the customer) or `manual` (a `source.refund_attributes_required` event is sent to your webhooks endpoint). Refer to each payment method's documentation to learn which refund attributes may be required.","enum":["email","manual","none"]}},"description":"Optional parameters for the receiver flow. Can be set only if the source is a receiver (`flow` is `receiver`).","x-stripeMostCommon":["refund_attributes_method"]},"redirect":{"title":"redirect_params","required":["return_url"],"type":"object","properties":{"return_url":{"type":"string","description":"The URL you provide to redirect the customer back to you after they authenticated their payment. It can use your application URI scheme in the context of a mobile application."}},"description":"Parameters required for the redirect flow. Required if the source is authenticated by a redirect (`flow` is `redirect`).","x-stripeMostCommon":["return_url"]},"source_order":{"title":"shallow_order_specs","type":"object","properties":{"items":{"type":"array","description":"List of items constituting the order.","items":{"title":"order_item_specs","type":"object","properties":{"amount":{"type":"integer"},"currency":{"type":"string","format":"currency"},"description":{"maxLength":1000,"type":"string"},"parent":{"maxLength":5000,"type":"string","description":"The ID of the SKU being ordered."},"quantity":{"type":"integer","description":"The quantity of this order item. When type is `sku`, this is the number of instances of the SKU to be ordered."},"type":{"maxLength":5000,"type":"string","enum":["discount","shipping","sku","tax"]}},"x-stripeMostCommon":["amount","currency","description","parent","quantity","type"]}},"shipping":{"title":"order_shipping","required":["address"],"type":"object","properties":{"address":{"title":"address","required":["line1"],"type":"object","properties":{"city":{"maxLength":5000,"type":"string","description":"City, district, suburb, town, or village."},"country":{"maxLength":5000,"type":"string","description":"Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."},"line1":{"maxLength":5000,"type":"string","description":"Address line 1, such as the street, PO Box, or company name."},"line2":{"maxLength":5000,"type":"string","description":"Address line 2, such as the apartment, suite, unit, or building."},"postal_code":{"maxLength":5000,"type":"string","description":"ZIP or postal code."},"state":{"maxLength":5000,"type":"string","description":"State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))."}},"description":"Shipping address.","x-stripeMostCommon":["city","country","line1","line2","postal_code","state"]},"carrier":{"maxLength":5000,"type":"string","description":"The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc."},"name":{"maxLength":5000,"type":"string","description":"Recipient name."},"phone":{"maxLength":5000,"type":"string","description":"Recipient phone (including extension)."},"tracking_number":{"maxLength":5000,"type":"string","description":"The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas."}},"description":"Shipping address for the order. Required if any of the SKUs are for products that have `shippable` set to true.","x-stripeMostCommon":["address","carrier","name","phone","tracking_number"]}},"description":"Information about the items and shipping associated with the source. Required for transactional credit (for example Klarna) sources before you can charge it.","x-stripeMostCommon":["items","shipping"]},"statement_descriptor":{"maxLength":5000,"type":"string","description":"An arbitrary string to be displayed on your customer's statement. As an example, if your website is `RunClub` and the item you're charging for is a race ticket, you may want to specify a `statement_descriptor` of `RunClub 5K race ticket.` While many payment types will display this information, some may not display it at all."},"token":{"maxLength":5000,"type":"string","description":"An optional token used to create the source. When passed, token properties will override source parameters."},"type":{"maxLength":5000,"type":"string","description":"The `type` of the source to create. Required unless `customer` and `original_source` are specified (see the [Cloning card Sources](https://docs.stripe.com/sources/connect#cloning-card-sources) guide)"},"usage":{"maxLength":5000,"type":"string","enum":["reusable","single_use"]}},"additionalProperties":false,"x-stripeMostCommon":["amount","currency","customer","metadata","original_source","owner","redirect","statement_descriptor","type"]},"encoding":{"expand":{"style":"deepObject","explode":true},"mandate":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true},"owner":{"style":"deepObject","explode":true},"receiver":{"style":"deepObject","explode":true},"redirect":{"style":"deepObject","explode":true},"source_order":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/source"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/sources/{source}":{"get":{"summary":"Retrieve a source","description":"Retrieves an existing source object. Supply the unique source ID from a source creation request and Stripe will return the corresponding up-to-date source object information.
","operationId":"GetSourcesSource","parameters":[{"name":"client_secret","in":"query","description":"The client secret of the source. Required if a publishable key is used to retrieve the source.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"source","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/source"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Update a source","description":"Updates the specified source by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
\n\nThis request accepts the metadata and owner as arguments. It is also possible to update type specific information for selected payment methods. Please refer to our payment method guides for more detail.
List source transactions for a given source.
","operationId":"GetSourcesSourceSourceTransactions","parameters":[{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"source","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"ApmsSourcesSourceTransactionList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/source_transaction"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/sources/{source}/verify":{"post":{"description":"Verify a given source.
","operationId":"PostSourcesSourceVerify","parameters":[{"name":"source","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["values"],"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"values":{"type":"array","description":"The values needed to verify the source.","items":{"maxLength":5000,"type":"string"}}},"additionalProperties":false,"x-stripeMostCommon":["values"]},"encoding":{"expand":{"style":"deepObject","explode":true},"values":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/source"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/subscription_items":{"get":{"summary":"List all subscription items","description":"Returns a list of your subscription items for a given subscription.
","operationId":"GetSubscriptionItems","parameters":[{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"subscription","in":"query","description":"The ID of the subscription whose items will be retrieved.","required":true,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"SubscriptionsItemsSubscriptionItemList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/subscription_item"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/subscription_items","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create a subscription item","description":"Adds a new item to an existing subscription. No existing items will be changed or replaced.
","operationId":"PostSubscriptionItems","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["subscription"],"type":"object","properties":{"billing_thresholds":{"description":"Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.","anyOf":[{"title":"item_billing_thresholds_param","required":["usage_gte"],"type":"object","properties":{"usage_gte":{"type":"integer","description":"Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://docs.stripe.com/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte))"}},"x-stripeMostCommon":["usage_gte"]},{"type":"string","enum":[""]}]},"discounts":{"description":"The coupons to redeem into discounts for the subscription item.","anyOf":[{"type":"array","items":{"title":"discounts_data_param","type":"object","properties":{"coupon":{"maxLength":5000,"type":"string","description":"ID of the coupon to create a new discount for."},"discount":{"maxLength":5000,"type":"string","description":"ID of an existing discount on the object (or one of its ancestors) to reuse."},"promotion_code":{"maxLength":5000,"type":"string","description":"ID of the promotion code to create a new discount for."}},"x-stripeMostCommon":["coupon","settings"]}},{"type":"string","enum":[""]}]},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"payment_behavior":{"type":"string","description":"Use `allow_incomplete` to transition the subscription to `status=past_due` if a payment is required but cannot be paid. This allows you to manage scenarios where additional user actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://docs.stripe.com/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior.\n\nUse `default_incomplete` to transition the subscription to `status=past_due` when payment is required and await explicit confirmation of the invoice's payment intent. This allows simpler management of scenarios where additional user actions are needed to pay a subscription’s invoice. Such as failed payments, [SCA regulation](https://docs.stripe.com/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method.\n\nUse `pending_if_incomplete` to update the subscription using [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://docs.stripe.com/billing/pending-updates-reference#supported-attributes).\n\nUse `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more.","enum":["allow_incomplete","default_incomplete","error_if_incomplete","pending_if_incomplete"]},"plan":{"maxLength":5000,"type":"string","description":"The identifier of the plan to add to the subscription."},"price":{"maxLength":5000,"type":"string","description":"The ID of the price object."},"price_data":{"title":"recurring_price_data","required":["currency","product","recurring"],"type":"object","properties":{"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"product":{"maxLength":5000,"type":"string","description":"The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to."},"recurring":{"title":"recurring_adhoc","required":["interval"],"type":"object","properties":{"interval":{"type":"string","description":"Specifies billing frequency. Either `day`, `week`, `month` or `year`.","enum":["day","month","week","year"]},"interval_count":{"type":"integer","description":"The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks)."}},"description":"The recurring components of a price such as `interval` and `interval_count`.","x-stripeMostCommon":["interval"]},"tax_behavior":{"type":"string","description":"Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.","enum":["exclusive","inclusive","unspecified"]},"unit_amount":{"type":"integer","description":"A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge."},"unit_amount_decimal":{"type":"string","description":"Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.","format":"decimal"}},"description":"Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline.","x-stripeMostCommon":["currency","product","recurring","unit_amount"]},"proration_behavior":{"type":"string","description":"Determines how to handle [prorations](https://docs.stripe.com/billing/subscriptions/prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes. The default value is `create_prorations`.","enum":["always_invoice","create_prorations","none"]},"proration_date":{"type":"integer","description":"If set, the proration will be calculated as though the subscription was updated at the given time. This can be used to apply the same proration that was previewed with the [upcoming invoice](/api/invoices/create_preview) endpoint.","format":"unix-time"},"quantity":{"type":"integer","description":"The quantity you'd like to apply to the subscription item you're creating."},"subscription":{"maxLength":5000,"type":"string","description":"The identifier of the subscription to modify."},"tax_rates":{"description":"A list of [Tax Rate](https://docs.stripe.com/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://docs.stripe.com/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.","anyOf":[{"type":"array","items":{"maxLength":5000,"type":"string"}},{"type":"string","enum":[""]}]}},"additionalProperties":false,"x-stripeMostCommon":["metadata","payment_behavior","price","proration_behavior","quantity","subscription"]},"encoding":{"billing_thresholds":{"style":"deepObject","explode":true},"discounts":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true},"price_data":{"style":"deepObject","explode":true},"tax_rates":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/subscription_item"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/subscription_items/{item}":{"get":{"summary":"Retrieve a subscription item","description":"Retrieves the subscription item with the given ID.
","operationId":"GetSubscriptionItemsItem","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"item","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/subscription_item"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Update a subscription item","description":"Updates the plan or quantity of an item on a current subscription.
","operationId":"PostSubscriptionItemsItem","parameters":[{"name":"item","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"billing_thresholds":{"description":"Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.","anyOf":[{"title":"item_billing_thresholds_param","required":["usage_gte"],"type":"object","properties":{"usage_gte":{"type":"integer","description":"Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://docs.stripe.com/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte))"}},"x-stripeMostCommon":["usage_gte"]},{"type":"string","enum":[""]}]},"discounts":{"description":"The coupons to redeem into discounts for the subscription item.","anyOf":[{"type":"array","items":{"title":"discounts_data_param","type":"object","properties":{"coupon":{"maxLength":5000,"type":"string","description":"ID of the coupon to create a new discount for."},"discount":{"maxLength":5000,"type":"string","description":"ID of an existing discount on the object (or one of its ancestors) to reuse."},"promotion_code":{"maxLength":5000,"type":"string","description":"ID of the promotion code to create a new discount for."}},"x-stripeMostCommon":["coupon","settings"]}},{"type":"string","enum":[""]}]},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"off_session":{"type":"boolean","description":"Indicates if a customer is on or off-session while an invoice payment is attempted. Defaults to `false` (on-session)."},"payment_behavior":{"type":"string","description":"Use `allow_incomplete` to transition the subscription to `status=past_due` if a payment is required but cannot be paid. This allows you to manage scenarios where additional user actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://docs.stripe.com/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior.\n\nUse `default_incomplete` to transition the subscription to `status=past_due` when payment is required and await explicit confirmation of the invoice's payment intent. This allows simpler management of scenarios where additional user actions are needed to pay a subscription’s invoice. Such as failed payments, [SCA regulation](https://docs.stripe.com/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method.\n\nUse `pending_if_incomplete` to update the subscription using [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://docs.stripe.com/billing/pending-updates-reference#supported-attributes).\n\nUse `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more.","enum":["allow_incomplete","default_incomplete","error_if_incomplete","pending_if_incomplete"]},"plan":{"maxLength":5000,"type":"string","description":"The identifier of the new plan for this subscription item."},"price":{"maxLength":5000,"type":"string","description":"The ID of the price object. One of `price` or `price_data` is required. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided."},"price_data":{"title":"recurring_price_data","required":["currency","product","recurring"],"type":"object","properties":{"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"product":{"maxLength":5000,"type":"string","description":"The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to."},"recurring":{"title":"recurring_adhoc","required":["interval"],"type":"object","properties":{"interval":{"type":"string","description":"Specifies billing frequency. Either `day`, `week`, `month` or `year`.","enum":["day","month","week","year"]},"interval_count":{"type":"integer","description":"The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks)."}},"description":"The recurring components of a price such as `interval` and `interval_count`.","x-stripeMostCommon":["interval"]},"tax_behavior":{"type":"string","description":"Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.","enum":["exclusive","inclusive","unspecified"]},"unit_amount":{"type":"integer","description":"A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge."},"unit_amount_decimal":{"type":"string","description":"Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.","format":"decimal"}},"description":"Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline. One of `price` or `price_data` is required.","x-stripeMostCommon":["currency","product","recurring","unit_amount"]},"proration_behavior":{"type":"string","description":"Determines how to handle [prorations](https://docs.stripe.com/billing/subscriptions/prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes. The default value is `create_prorations`.","enum":["always_invoice","create_prorations","none"]},"proration_date":{"type":"integer","description":"If set, the proration will be calculated as though the subscription was updated at the given time. This can be used to apply the same proration that was previewed with the [upcoming invoice](/api/invoices/create_preview) endpoint.","format":"unix-time"},"quantity":{"type":"integer","description":"The quantity you'd like to apply to the subscription item you're creating."},"tax_rates":{"description":"A list of [Tax Rate](https://docs.stripe.com/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://docs.stripe.com/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.","anyOf":[{"type":"array","items":{"maxLength":5000,"type":"string"}},{"type":"string","enum":[""]}]}},"additionalProperties":false,"x-stripeMostCommon":["metadata","payment_behavior","price","proration_behavior","quantity"]},"encoding":{"billing_thresholds":{"style":"deepObject","explode":true},"discounts":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true},"price_data":{"style":"deepObject","explode":true},"tax_rates":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/subscription_item"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"delete":{"summary":"Delete a subscription item","description":"Deletes an item from the subscription. Removing a subscription item from a subscription will not cancel the subscription.
","operationId":"DeleteSubscriptionItemsItem","parameters":[{"name":"item","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"clear_usage":{"type":"boolean","description":"Delete all usage for the given subscription item. Allowed only when the current plan's `usage_type` is `metered`."},"payment_behavior":{"type":"string","description":"Use `allow_incomplete` to transition the subscription to `status=past_due` if a payment is required but cannot be paid. This allows you to manage scenarios where additional user actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://docs.stripe.com/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior.\n\nUse `default_incomplete` to transition the subscription to `status=past_due` when payment is required and await explicit confirmation of the invoice's payment intent. This allows simpler management of scenarios where additional user actions are needed to pay a subscription’s invoice. Such as failed payments, [SCA regulation](https://docs.stripe.com/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method.\n\nUse `pending_if_incomplete` to update the subscription using [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://docs.stripe.com/billing/pending-updates-reference#supported-attributes).\n\nUse `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more.","enum":["allow_incomplete","default_incomplete","error_if_incomplete","pending_if_incomplete"]},"proration_behavior":{"type":"string","description":"Determines how to handle [prorations](https://docs.stripe.com/billing/subscriptions/prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes. The default value is `create_prorations`.","enum":["always_invoice","create_prorations","none"]},"proration_date":{"type":"integer","description":"If set, the proration will be calculated as though the subscription was updated at the given time. This can be used to apply the same proration that was previewed with the [upcoming invoice](/api/invoices/create_preview) endpoint.","format":"unix-time"}},"additionalProperties":false,"x-stripeMostCommon":["payment_behavior","proration_behavior"]},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/deleted_subscription_item"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/subscription_schedules":{"get":{"summary":"List all schedules","description":"Retrieves the list of your subscription schedules.
","operationId":"GetSubscriptionSchedules","parameters":[{"name":"canceled_at","in":"query","description":"Only return subscription schedules that were created canceled the given date interval.","required":false,"style":"deepObject","explode":true,"schema":{"anyOf":[{"title":"range_query_specs","type":"object","properties":{"gt":{"type":"integer","description":"Minimum value to filter by (exclusive)"},"gte":{"type":"integer","description":"Minimum value to filter by (inclusive)"},"lt":{"type":"integer","description":"Maximum value to filter by (exclusive)"},"lte":{"type":"integer","description":"Maximum value to filter by (inclusive)"}},"x-stripeMostCommon":["gt","gte","lt","lte"]},{"type":"integer"}]}},{"name":"completed_at","in":"query","description":"Only return subscription schedules that completed during the given date interval.","required":false,"style":"deepObject","explode":true,"schema":{"anyOf":[{"title":"range_query_specs","type":"object","properties":{"gt":{"type":"integer","description":"Minimum value to filter by (exclusive)"},"gte":{"type":"integer","description":"Minimum value to filter by (inclusive)"},"lt":{"type":"integer","description":"Maximum value to filter by (exclusive)"},"lte":{"type":"integer","description":"Maximum value to filter by (inclusive)"}},"x-stripeMostCommon":["gt","gte","lt","lte"]},{"type":"integer"}]}},{"name":"created","in":"query","description":"Only return subscription schedules that were created during the given date interval.","required":false,"style":"deepObject","explode":true,"schema":{"anyOf":[{"title":"range_query_specs","type":"object","properties":{"gt":{"type":"integer","description":"Minimum value to filter by (exclusive)"},"gte":{"type":"integer","description":"Minimum value to filter by (inclusive)"},"lt":{"type":"integer","description":"Maximum value to filter by (exclusive)"},"lte":{"type":"integer","description":"Maximum value to filter by (inclusive)"}},"x-stripeMostCommon":["gt","gte","lt","lte"]},{"type":"integer"}]}},{"name":"customer","in":"query","description":"Only return subscription schedules for the given customer.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"customer_account","in":"query","description":"Only return subscription schedules for the given account.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"released_at","in":"query","description":"Only return subscription schedules that were released during the given date interval.","required":false,"style":"deepObject","explode":true,"schema":{"anyOf":[{"title":"range_query_specs","type":"object","properties":{"gt":{"type":"integer","description":"Minimum value to filter by (exclusive)"},"gte":{"type":"integer","description":"Minimum value to filter by (inclusive)"},"lt":{"type":"integer","description":"Maximum value to filter by (exclusive)"},"lte":{"type":"integer","description":"Maximum value to filter by (inclusive)"}},"x-stripeMostCommon":["gt","gte","lt","lte"]},{"type":"integer"}]}},{"name":"scheduled","in":"query","description":"Only return subscription schedules that have not started yet.","required":false,"style":"form","explode":true,"schema":{"type":"boolean"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"SubscriptionSchedulesResourceScheduleList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/subscription_schedule"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/subscription_schedules","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create a schedule","description":"Creates a new subscription schedule object. Each customer can have up to 500 active or scheduled subscriptions.
","operationId":"PostSubscriptionSchedules","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"billing_mode":{"title":"billing_mode","required":["type"],"type":"object","properties":{"flexible":{"title":"flexible_params","type":"object","properties":{"proration_discounts":{"type":"string","description":"Controls how invoices and invoice items display proration amounts and discount amounts.","enum":["included","itemized"]}},"description":"Configure behavior for flexible billing mode.","x-stripeMostCommon":["proration_discounts"]},"type":{"type":"string","description":"Controls the calculation and orchestration of prorations and invoices for subscriptions. If no value is passed, the default is `flexible`.","enum":["classic","flexible"]}},"description":"Controls how prorations and invoices for subscriptions are calculated and orchestrated.","x-stripeMostCommon":["flexible","type"]},"customer":{"maxLength":5000,"type":"string","description":"The identifier of the customer to create the subscription schedule for."},"customer_account":{"maxLength":5000,"type":"string","description":"The identifier of the account to create the subscription schedule for."},"default_settings":{"title":"default_settings_params","type":"object","properties":{"application_fee_percent":{"type":"number","description":"A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. The request must be made by a platform account on a connected account in order to set an application fee percentage. For more information, see the application fees [documentation](https://stripe.com/docs/connect/subscriptions#collecting-fees-on-subscriptions)."},"automatic_tax":{"title":"automatic_tax_config","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Enabled automatic tax calculation which will automatically compute tax rates on all invoices generated by the subscription."},"liability":{"title":"param","required":["type"],"type":"object","properties":{"account":{"type":"string","description":"The connected account being referenced when `type` is `account`."},"type":{"type":"string","description":"Type of the account referenced in the request.","enum":["account","self"],"x-stripeBypassValidation":true}},"description":"The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.","x-stripeMostCommon":["account","type"]}},"description":"Default settings for automatic tax computation.","x-stripeMostCommon":["enabled","liability"]},"billing_cycle_anchor":{"type":"string","description":"Can be set to `phase_start` to set the anchor to the start of the phase or `automatic` to automatically change it if needed. Cannot be set to `phase_start` if this phase specifies a trial. For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle).","enum":["automatic","phase_start"]},"billing_thresholds":{"description":"Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.","anyOf":[{"title":"billing_thresholds_param","type":"object","properties":{"amount_gte":{"type":"integer","description":"Monetary threshold that triggers the subscription to advance to a new billing period"},"reset_billing_cycle_anchor":{"type":"boolean","description":"Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached. If true, `billing_cycle_anchor` will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged."}},"x-stripeMostCommon":["amount_gte","reset_billing_cycle_anchor"]},{"type":"string","enum":[""]}]},"collection_method":{"type":"string","description":"Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically` on creation.","enum":["charge_automatically","send_invoice"]},"default_payment_method":{"maxLength":5000,"type":"string","description":"ID of the default payment method for the subscription schedule. It must belong to the customer associated with the subscription schedule. If not set, invoices will use the default payment method in the customer's invoice settings."},"description":{"description":"Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.","anyOf":[{"maxLength":500,"type":"string"},{"type":"string","enum":[""]}]},"invoice_settings":{"title":"subscription_schedule_default_settings_param","type":"object","properties":{"account_tax_ids":{"description":"The account tax IDs associated with the subscription schedule. Will be set on invoices generated by the subscription schedule.","anyOf":[{"type":"array","items":{"maxLength":5000,"type":"string"}},{"type":"string","enum":[""]}]},"days_until_due":{"type":"integer","description":"Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `collection_method=charge_automatically`."},"issuer":{"title":"param","required":["type"],"type":"object","properties":{"account":{"type":"string","description":"The connected account being referenced when `type` is `account`."},"type":{"type":"string","description":"Type of the account referenced in the request.","enum":["account","self"],"x-stripeBypassValidation":true}},"description":"The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.","x-stripeMostCommon":["account","type"]}},"description":"All invoices will be billed using the specified settings.","x-stripeMostCommon":["account_tax_ids","custom_fields","days_until_due","description","footer","issuer","rendering","send_hosted_payment_email","supported_payment_methods"]},"on_behalf_of":{"description":"The account on behalf of which to charge, for each of the associated subscription's invoices.","anyOf":[{"type":"string"},{"type":"string","enum":[""]}]},"transfer_data":{"description":"The data with which to automatically create a Transfer for each of the associated subscription's invoices.","anyOf":[{"title":"transfer_data_specs","required":["destination"],"type":"object","properties":{"amount_percent":{"type":"number","description":"A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination."},"destination":{"type":"string","description":"ID of an existing, connected Stripe account."}},"x-stripeMostCommon":["amount_percent","destination"]},{"type":"string","enum":[""]}]}},"description":"Object representing the subscription schedule's default settings.","x-stripeMostCommon":["application_fee_percent","automatic_tax","billing_cycle_anchor","billing_thresholds","collection_method","default_payment_method","description","invoice_settings","on_behalf_of","phase_effective_at","transfer_data"]},"end_behavior":{"type":"string","description":"Behavior of the subscription schedule and underlying subscription when it ends. Possible values are `release` or `cancel` with the default being `release`. `release` will end the subscription schedule and keep the underlying subscription running. `cancel` will end the subscription schedule and cancel the underlying subscription.","enum":["cancel","none","release","renew"]},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"from_subscription":{"maxLength":5000,"type":"string","description":"Migrate an existing subscription to be managed by a subscription schedule. If this parameter is set, a subscription schedule will be created using the subscription's item(s), set to auto-renew using the subscription's interval. When using this parameter, other parameters (such as phase values) cannot be set. To create a subscription schedule with other modifications, we recommend making two separate API calls."},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"phases":{"type":"array","description":"List representing phases of the subscription schedule. Each phase can be customized to have different durations, plans, and coupons. If there are multiple phases, the `end_date` of one phase will always equal the `start_date` of the next phase.","items":{"title":"phase_configuration_params","required":["items"],"type":"object","properties":{"add_invoice_items":{"type":"array","description":"A list of prices and quantities that will generate invoice items appended to the next invoice for this phase. You may pass up to 20 items.","items":{"title":"add_invoice_item_entry","type":"object","properties":{"discounts":{"type":"array","description":"The coupons to redeem into discounts for the item.","items":{"title":"discounts_data_param","type":"object","properties":{"coupon":{"maxLength":5000,"type":"string","description":"ID of the coupon to create a new discount for."},"discount":{"maxLength":5000,"type":"string","description":"ID of an existing discount on the object (or one of its ancestors) to reuse."},"promotion_code":{"maxLength":5000,"type":"string","description":"ID of the promotion code to create a new discount for."}},"x-stripeMostCommon":["coupon"]}},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"period":{"title":"invoice_item_period","required":["end","start"],"type":"object","properties":{"end":{"title":"invoice_item_period_end","required":["type"],"type":"object","properties":{"timestamp":{"type":"integer","description":"A precise Unix timestamp for the end of the invoice item period. Must be greater than or equal to `period.start`.","format":"unix-time"},"type":{"type":"string","description":"Select how to calculate the end of the invoice item period.","enum":["min_item_period_end","phase_end","timestamp"],"x-stripeBypassValidation":true}},"description":"End of the invoice item period.","x-stripeMostCommon":["timestamp","type"]},"start":{"title":"invoice_item_period_start","required":["type"],"type":"object","properties":{"timestamp":{"type":"integer","description":"A precise Unix timestamp for the start of the invoice item period. Must be less than or equal to `period.end`.","format":"unix-time"},"type":{"type":"string","description":"Select how to calculate the start of the invoice item period.","enum":["max_item_period_start","phase_start","timestamp"],"x-stripeBypassValidation":true}},"description":"Start of the invoice item period.","x-stripeMostCommon":["timestamp","type"]}},"description":"The period associated with this invoice item. If not set, `period.start.type` defaults to `max_item_period_start` and `period.end.type` defaults to `min_item_period_end`.","x-stripeMostCommon":["end","start"]},"price":{"maxLength":5000,"type":"string","description":"The ID of the price object. One of `price` or `price_data` is required."},"price_data":{"title":"one_time_price_data_with_negative_amounts","required":["currency","product"],"type":"object","properties":{"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"product":{"maxLength":5000,"type":"string","description":"The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to."},"tax_behavior":{"type":"string","description":"Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.","enum":["exclusive","inclusive","unspecified"]},"unit_amount":{"type":"integer","description":"A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge or a negative integer representing the amount to credit to the customer."},"unit_amount_decimal":{"type":"string","description":"Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.","format":"decimal"}},"description":"Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline. One of `price` or `price_data` is required.","x-stripeMostCommon":["currency","product","unit_amount"]},"quantity":{"type":"integer","description":"Quantity for this item. Defaults to 1."},"tax_rates":{"description":"The tax rates which apply to the item. When set, the `default_tax_rates` do not apply to this item.","anyOf":[{"type":"array","items":{"maxLength":5000,"type":"string"}},{"type":"string","enum":[""]}]}},"x-stripeMostCommon":["price","quantity"],"x-stripeParam":{"class_name":"AddInvoiceItem"}}},"application_fee_percent":{"type":"number","description":"A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. The request must be made by a platform account on a connected account in order to set an application fee percentage. For more information, see the application fees [documentation](https://stripe.com/docs/connect/subscriptions#collecting-fees-on-subscriptions)."},"automatic_tax":{"title":"automatic_tax_config","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Enabled automatic tax calculation which will automatically compute tax rates on all invoices generated by the subscription."},"liability":{"title":"param","required":["type"],"type":"object","properties":{"account":{"type":"string","description":"The connected account being referenced when `type` is `account`."},"type":{"type":"string","description":"Type of the account referenced in the request.","enum":["account","self"],"x-stripeBypassValidation":true}},"description":"The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.","x-stripeMostCommon":["account","type"]}},"description":"Automatic tax settings for this phase.","x-stripeMostCommon":["enabled","liability"]},"billing_cycle_anchor":{"type":"string","description":"Can be set to `phase_start` to set the anchor to the start of the phase or `automatic` to automatically change it if needed. Cannot be set to `phase_start` if this phase specifies a trial. For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle).","enum":["automatic","phase_start"]},"billing_thresholds":{"description":"Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.","anyOf":[{"title":"billing_thresholds_param","type":"object","properties":{"amount_gte":{"type":"integer","description":"Monetary threshold that triggers the subscription to advance to a new billing period"},"reset_billing_cycle_anchor":{"type":"boolean","description":"Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached. If true, `billing_cycle_anchor` will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged."}},"x-stripeMostCommon":["amount_gte","reset_billing_cycle_anchor"]},{"type":"string","enum":[""]}]},"collection_method":{"type":"string","description":"Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically` on creation.","enum":["charge_automatically","send_invoice"]},"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"default_payment_method":{"maxLength":5000,"type":"string","description":"ID of the default payment method for the subscription schedule. It must belong to the customer associated with the subscription schedule. If not set, invoices will use the default payment method in the customer's invoice settings."},"default_tax_rates":{"description":"A list of [Tax Rate](https://docs.stripe.com/api/tax_rates) ids. These Tax Rates will set the Subscription's [`default_tax_rates`](https://docs.stripe.com/api/subscriptions/create#create_subscription-default_tax_rates), which means they will be the Invoice's [`default_tax_rates`](https://docs.stripe.com/api/invoices/create#create_invoice-default_tax_rates) for any Invoices issued by the Subscription during this Phase.","anyOf":[{"type":"array","items":{"maxLength":5000,"type":"string"}},{"type":"string","enum":[""]}]},"description":{"description":"Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.","anyOf":[{"maxLength":500,"type":"string"},{"type":"string","enum":[""]}]},"discounts":{"description":"The coupons to redeem into discounts for the schedule phase. If not specified, inherits the discount from the subscription's customer. Pass an empty string to avoid inheriting any discounts.","anyOf":[{"type":"array","items":{"title":"schedule_discounts_data_param","type":"object","properties":{"coupon":{"maxLength":5000,"type":"string","description":"ID of the coupon to create a new discount for."},"discount":{"maxLength":5000,"type":"string","description":"ID of an existing discount on the object (or one of its ancestors) to reuse."},"promotion_code":{"maxLength":5000,"type":"string","description":"ID of the promotion code to create a new discount for."}},"x-stripeMostCommon":["coupon","settings"]}},{"type":"string","enum":[""]}]},"duration":{"title":"duration_params","required":["interval"],"type":"object","properties":{"interval":{"type":"string","description":"Specifies phase duration. Either `day`, `week`, `month` or `year`.","enum":["day","month","week","year"]},"interval_count":{"type":"integer","description":"The multiplier applied to the interval."}},"description":"The number of intervals the phase should last. If set, `end_date` must not be set.","x-stripeMostCommon":["interval","interval_count"]},"end_date":{"type":"integer","description":"The date at which this phase of the subscription schedule ends. If set, `duration` must not be set.","format":"unix-time"},"invoice_settings":{"title":"invoice_settings","type":"object","properties":{"account_tax_ids":{"description":"The account tax IDs associated with this phase of the subscription schedule. Will be set on invoices generated by this phase of the subscription schedule.","anyOf":[{"type":"array","items":{"maxLength":5000,"type":"string"}},{"type":"string","enum":[""]}]},"days_until_due":{"type":"integer","description":"Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`."},"issuer":{"title":"param","required":["type"],"type":"object","properties":{"account":{"type":"string","description":"The connected account being referenced when `type` is `account`."},"type":{"type":"string","description":"Type of the account referenced in the request.","enum":["account","self"],"x-stripeBypassValidation":true}},"description":"The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.","x-stripeMostCommon":["account","type"]}},"description":"All invoices will be billed using the specified settings.","x-stripeMostCommon":["account_tax_ids","custom_fields","days_until_due","description","footer","issuer","send_hosted_payment_email","supported_payment_methods"]},"items":{"type":"array","description":"List of configuration items, each with an attached price, to apply during this phase of the subscription schedule.","items":{"title":"configuration_item_params","type":"object","properties":{"billing_thresholds":{"description":"Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.","anyOf":[{"title":"item_billing_thresholds_param","required":["usage_gte"],"type":"object","properties":{"usage_gte":{"type":"integer","description":"Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://docs.stripe.com/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte))"}},"x-stripeMostCommon":["usage_gte"]},{"type":"string","enum":[""]}]},"discounts":{"description":"The coupons to redeem into discounts for the subscription item.","anyOf":[{"type":"array","items":{"title":"schedule_discounts_data_param","type":"object","properties":{"coupon":{"maxLength":5000,"type":"string","description":"ID of the coupon to create a new discount for."},"discount":{"maxLength":5000,"type":"string","description":"ID of an existing discount on the object (or one of its ancestors) to reuse."},"promotion_code":{"maxLength":5000,"type":"string","description":"ID of the promotion code to create a new discount for."}},"x-stripeMostCommon":["coupon","settings"]}},{"type":"string","enum":[""]}]},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to a configuration item. Metadata on a configuration item will update the underlying subscription item's `metadata` when the phase is entered, adding new keys and replacing existing keys. Individual keys in the subscription item's `metadata` can be unset by posting an empty value to them in the configuration item's `metadata`. To unset all keys in the subscription item's `metadata`, update the subscription item directly or unset every key individually from the configuration item's `metadata`."},"plan":{"maxLength":5000,"type":"string","description":"The plan ID to subscribe to. You may specify the same ID in `plan` and `price`."},"price":{"maxLength":5000,"type":"string","description":"The ID of the price object."},"price_data":{"title":"recurring_price_data","required":["currency","product","recurring"],"type":"object","properties":{"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"product":{"maxLength":5000,"type":"string","description":"The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to."},"recurring":{"title":"recurring_adhoc","required":["interval"],"type":"object","properties":{"interval":{"type":"string","description":"Specifies billing frequency. Either `day`, `week`, `month` or `year`.","enum":["day","month","week","year"]},"interval_count":{"type":"integer","description":"The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks)."}},"description":"The recurring components of a price such as `interval` and `interval_count`.","x-stripeMostCommon":["interval"]},"tax_behavior":{"type":"string","description":"Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.","enum":["exclusive","inclusive","unspecified"]},"unit_amount":{"type":"integer","description":"A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge."},"unit_amount_decimal":{"type":"string","description":"Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.","format":"decimal"}},"description":"Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline.","x-stripeMostCommon":["currency","product","recurring","unit_amount"]},"quantity":{"type":"integer","description":"Quantity for the given price. Can be set only if the price's `usage_type` is `licensed` and not `metered`."},"tax_rates":{"description":"A list of [Tax Rate](https://docs.stripe.com/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://docs.stripe.com/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.","anyOf":[{"type":"array","items":{"maxLength":5000,"type":"string"}},{"type":"string","enum":[""]}]}},"x-stripeMostCommon":["billing_thresholds","discounts","metadata","plan","price","quantity","tax_rates","trial","trial_offer"]}},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to a phase. Metadata on a schedule's phase will update the underlying subscription's `metadata` when the phase is entered, adding new keys and replacing existing keys in the subscription's `metadata`. Individual keys in the subscription's `metadata` can be unset by posting an empty value to them in the phase's `metadata`. To unset all keys in the subscription's `metadata`, update the subscription directly or unset every key individually from the phase's `metadata`."},"on_behalf_of":{"type":"string","description":"The account on behalf of which to charge, for each of the associated subscription's invoices."},"proration_behavior":{"type":"string","description":"Controls whether the subscription schedule should create [prorations](https://docs.stripe.com/billing/subscriptions/prorations) when transitioning to this phase if there is a difference in billing configuration. It's different from the request-level [proration_behavior](https://docs.stripe.com/api/subscription_schedules/update#update_subscription_schedule-proration_behavior) parameter which controls what happens if the update request affects the billing configuration (item price, quantity, etc.) of the current phase.","enum":["always_invoice","create_prorations","none"]},"transfer_data":{"title":"transfer_data_specs","required":["destination"],"type":"object","properties":{"amount_percent":{"type":"number","description":"A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination."},"destination":{"type":"string","description":"ID of an existing, connected Stripe account."}},"description":"The data with which to automatically create a Transfer for each of the associated subscription's invoices.","x-stripeMostCommon":["amount_percent","destination"]},"trial":{"type":"boolean","description":"If set to true the entire phase is counted as a trial and the customer will not be charged for any fees."},"trial_end":{"type":"integer","description":"Sets the phase to trialing from the start date to this date. Must be before the phase end date, can not be combined with `trial`","format":"unix-time"}},"x-stripeMostCommon":["add_invoice_items","application_fee_percent","automatic_tax","billing_cycle_anchor","billing_thresholds","cancel_at_period_end","collection_method","currency","default_payment_method","default_tax_rates","description","discounts","duration","effective_at","end_date","invoice_settings","items","metadata","on_behalf_of","pause_collection","proration_behavior","tax_filing_currency","transfer_data","trial","trial_continuation","trial_end","trial_settings"]}},"start_date":{"description":"When the subscription schedule starts. We recommend using `now` so that it starts the subscription immediately. You can also use a Unix timestamp to backdate the subscription so that it starts on a past date, or set a future date for the subscription to start on.","anyOf":[{"type":"integer","format":"unix-time"},{"maxLength":5000,"type":"string","enum":["now"]}]}},"additionalProperties":false,"x-stripeMostCommon":["customer","metadata","phases","start_date"]},"encoding":{"billing_mode":{"style":"deepObject","explode":true},"default_settings":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true},"phases":{"style":"deepObject","explode":true},"start_date":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/subscription_schedule"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/subscription_schedules/{schedule}":{"get":{"summary":"Retrieve a schedule","description":"Retrieves the details of an existing subscription schedule. You only need to supply the unique subscription schedule identifier that was returned upon subscription schedule creation.
","operationId":"GetSubscriptionSchedulesSchedule","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"schedule","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/subscription_schedule"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Update a schedule","description":"Updates an existing subscription schedule.
","operationId":"PostSubscriptionSchedulesSchedule","parameters":[{"name":"schedule","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"default_settings":{"title":"default_settings_params","type":"object","properties":{"application_fee_percent":{"type":"number","description":"A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. The request must be made by a platform account on a connected account in order to set an application fee percentage. For more information, see the application fees [documentation](https://stripe.com/docs/connect/subscriptions#collecting-fees-on-subscriptions)."},"automatic_tax":{"title":"automatic_tax_config","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Enabled automatic tax calculation which will automatically compute tax rates on all invoices generated by the subscription."},"liability":{"title":"param","required":["type"],"type":"object","properties":{"account":{"type":"string","description":"The connected account being referenced when `type` is `account`."},"type":{"type":"string","description":"Type of the account referenced in the request.","enum":["account","self"],"x-stripeBypassValidation":true}},"description":"The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.","x-stripeMostCommon":["account","type"]}},"description":"Default settings for automatic tax computation.","x-stripeMostCommon":["enabled","liability"]},"billing_cycle_anchor":{"type":"string","description":"Can be set to `phase_start` to set the anchor to the start of the phase or `automatic` to automatically change it if needed. Cannot be set to `phase_start` if this phase specifies a trial. For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle).","enum":["automatic","phase_start"]},"billing_thresholds":{"description":"Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.","anyOf":[{"title":"billing_thresholds_param","type":"object","properties":{"amount_gte":{"type":"integer","description":"Monetary threshold that triggers the subscription to advance to a new billing period"},"reset_billing_cycle_anchor":{"type":"boolean","description":"Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached. If true, `billing_cycle_anchor` will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged."}},"x-stripeMostCommon":["amount_gte","reset_billing_cycle_anchor"]},{"type":"string","enum":[""]}]},"collection_method":{"type":"string","description":"Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically` on creation.","enum":["charge_automatically","send_invoice"]},"default_payment_method":{"maxLength":5000,"type":"string","description":"ID of the default payment method for the subscription schedule. It must belong to the customer associated with the subscription schedule. If not set, invoices will use the default payment method in the customer's invoice settings."},"description":{"description":"Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.","anyOf":[{"maxLength":500,"type":"string"},{"type":"string","enum":[""]}]},"invoice_settings":{"title":"subscription_schedule_default_settings_param","type":"object","properties":{"account_tax_ids":{"description":"The account tax IDs associated with the subscription schedule. Will be set on invoices generated by the subscription schedule.","anyOf":[{"type":"array","items":{"maxLength":5000,"type":"string"}},{"type":"string","enum":[""]}]},"days_until_due":{"type":"integer","description":"Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `collection_method=charge_automatically`."},"issuer":{"title":"param","required":["type"],"type":"object","properties":{"account":{"type":"string","description":"The connected account being referenced when `type` is `account`."},"type":{"type":"string","description":"Type of the account referenced in the request.","enum":["account","self"],"x-stripeBypassValidation":true}},"description":"The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.","x-stripeMostCommon":["account","type"]}},"description":"All invoices will be billed using the specified settings.","x-stripeMostCommon":["account_tax_ids","custom_fields","days_until_due","description","footer","issuer","rendering","send_hosted_payment_email","supported_payment_methods"]},"on_behalf_of":{"description":"The account on behalf of which to charge, for each of the associated subscription's invoices.","anyOf":[{"type":"string"},{"type":"string","enum":[""]}]},"transfer_data":{"description":"The data with which to automatically create a Transfer for each of the associated subscription's invoices.","anyOf":[{"title":"transfer_data_specs","required":["destination"],"type":"object","properties":{"amount_percent":{"type":"number","description":"A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination."},"destination":{"type":"string","description":"ID of an existing, connected Stripe account."}},"x-stripeMostCommon":["amount_percent","destination"]},{"type":"string","enum":[""]}]}},"description":"Object representing the subscription schedule's default settings.","x-stripeMostCommon":["application_fee_percent","automatic_tax","billing_cycle_anchor","billing_thresholds","collection_method","default_payment_method","description","invoice_settings","on_behalf_of","phase_effective_at","transfer_data"]},"end_behavior":{"type":"string","description":"Behavior of the subscription schedule and underlying subscription when it ends. Possible values are `release` or `cancel` with the default being `release`. `release` will end the subscription schedule and keep the underlying subscription running. `cancel` will end the subscription schedule and cancel the underlying subscription.","enum":["cancel","none","release","renew"]},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"phases":{"type":"array","description":"List representing phases of the subscription schedule. Each phase can be customized to have different durations, plans, and coupons. If there are multiple phases, the `end_date` of one phase will always equal the `start_date` of the next phase. Note that past phases can be omitted.","items":{"title":"phase_configuration_params","required":["items"],"type":"object","properties":{"add_invoice_items":{"type":"array","description":"A list of prices and quantities that will generate invoice items appended to the next invoice for this phase. You may pass up to 20 items.","items":{"title":"add_invoice_item_entry","type":"object","properties":{"discounts":{"type":"array","description":"The coupons to redeem into discounts for the item.","items":{"title":"discounts_data_param","type":"object","properties":{"coupon":{"maxLength":5000,"type":"string","description":"ID of the coupon to create a new discount for."},"discount":{"maxLength":5000,"type":"string","description":"ID of an existing discount on the object (or one of its ancestors) to reuse."},"promotion_code":{"maxLength":5000,"type":"string","description":"ID of the promotion code to create a new discount for."}},"x-stripeMostCommon":["coupon"]}},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"period":{"title":"invoice_item_period","required":["end","start"],"type":"object","properties":{"end":{"title":"invoice_item_period_end","required":["type"],"type":"object","properties":{"timestamp":{"type":"integer","description":"A precise Unix timestamp for the end of the invoice item period. Must be greater than or equal to `period.start`.","format":"unix-time"},"type":{"type":"string","description":"Select how to calculate the end of the invoice item period.","enum":["min_item_period_end","phase_end","timestamp"],"x-stripeBypassValidation":true}},"description":"End of the invoice item period.","x-stripeMostCommon":["timestamp","type"]},"start":{"title":"invoice_item_period_start","required":["type"],"type":"object","properties":{"timestamp":{"type":"integer","description":"A precise Unix timestamp for the start of the invoice item period. Must be less than or equal to `period.end`.","format":"unix-time"},"type":{"type":"string","description":"Select how to calculate the start of the invoice item period.","enum":["max_item_period_start","phase_start","timestamp"],"x-stripeBypassValidation":true}},"description":"Start of the invoice item period.","x-stripeMostCommon":["timestamp","type"]}},"description":"The period associated with this invoice item. If not set, `period.start.type` defaults to `max_item_period_start` and `period.end.type` defaults to `min_item_period_end`.","x-stripeMostCommon":["end","start"]},"price":{"maxLength":5000,"type":"string","description":"The ID of the price object. One of `price` or `price_data` is required."},"price_data":{"title":"one_time_price_data_with_negative_amounts","required":["currency","product"],"type":"object","properties":{"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"product":{"maxLength":5000,"type":"string","description":"The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to."},"tax_behavior":{"type":"string","description":"Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.","enum":["exclusive","inclusive","unspecified"]},"unit_amount":{"type":"integer","description":"A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge or a negative integer representing the amount to credit to the customer."},"unit_amount_decimal":{"type":"string","description":"Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.","format":"decimal"}},"description":"Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline. One of `price` or `price_data` is required.","x-stripeMostCommon":["currency","product","unit_amount"]},"quantity":{"type":"integer","description":"Quantity for this item. Defaults to 1."},"tax_rates":{"description":"The tax rates which apply to the item. When set, the `default_tax_rates` do not apply to this item.","anyOf":[{"type":"array","items":{"maxLength":5000,"type":"string"}},{"type":"string","enum":[""]}]}},"x-stripeMostCommon":["price","quantity"],"x-stripeParam":{"class_name":"AddInvoiceItem"}}},"application_fee_percent":{"type":"number","description":"A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. The request must be made by a platform account on a connected account in order to set an application fee percentage. For more information, see the application fees [documentation](https://stripe.com/docs/connect/subscriptions#collecting-fees-on-subscriptions)."},"automatic_tax":{"title":"automatic_tax_config","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Enabled automatic tax calculation which will automatically compute tax rates on all invoices generated by the subscription."},"liability":{"title":"param","required":["type"],"type":"object","properties":{"account":{"type":"string","description":"The connected account being referenced when `type` is `account`."},"type":{"type":"string","description":"Type of the account referenced in the request.","enum":["account","self"],"x-stripeBypassValidation":true}},"description":"The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.","x-stripeMostCommon":["account","type"]}},"description":"Automatic tax settings for this phase.","x-stripeMostCommon":["enabled","liability"]},"billing_cycle_anchor":{"type":"string","description":"Can be set to `phase_start` to set the anchor to the start of the phase or `automatic` to automatically change it if needed. Cannot be set to `phase_start` if this phase specifies a trial. For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle).","enum":["automatic","phase_start"]},"billing_thresholds":{"description":"Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.","anyOf":[{"title":"billing_thresholds_param","type":"object","properties":{"amount_gte":{"type":"integer","description":"Monetary threshold that triggers the subscription to advance to a new billing period"},"reset_billing_cycle_anchor":{"type":"boolean","description":"Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached. If true, `billing_cycle_anchor` will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged."}},"x-stripeMostCommon":["amount_gte","reset_billing_cycle_anchor"]},{"type":"string","enum":[""]}]},"collection_method":{"type":"string","description":"Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically` on creation.","enum":["charge_automatically","send_invoice"]},"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"default_payment_method":{"maxLength":5000,"type":"string","description":"ID of the default payment method for the subscription schedule. It must belong to the customer associated with the subscription schedule. If not set, invoices will use the default payment method in the customer's invoice settings."},"default_tax_rates":{"description":"A list of [Tax Rate](https://docs.stripe.com/api/tax_rates) ids. These Tax Rates will set the Subscription's [`default_tax_rates`](https://docs.stripe.com/api/subscriptions/create#create_subscription-default_tax_rates), which means they will be the Invoice's [`default_tax_rates`](https://docs.stripe.com/api/invoices/create#create_invoice-default_tax_rates) for any Invoices issued by the Subscription during this Phase.","anyOf":[{"type":"array","items":{"maxLength":5000,"type":"string"}},{"type":"string","enum":[""]}]},"description":{"description":"Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.","anyOf":[{"maxLength":500,"type":"string"},{"type":"string","enum":[""]}]},"discounts":{"description":"The coupons to redeem into discounts for the schedule phase. If not specified, inherits the discount from the subscription's customer. Pass an empty string to avoid inheriting any discounts.","anyOf":[{"type":"array","items":{"title":"schedule_discounts_data_param","type":"object","properties":{"coupon":{"maxLength":5000,"type":"string","description":"ID of the coupon to create a new discount for."},"discount":{"maxLength":5000,"type":"string","description":"ID of an existing discount on the object (or one of its ancestors) to reuse."},"promotion_code":{"maxLength":5000,"type":"string","description":"ID of the promotion code to create a new discount for."}},"x-stripeMostCommon":["coupon","settings"]}},{"type":"string","enum":[""]}]},"duration":{"title":"duration_params","required":["interval"],"type":"object","properties":{"interval":{"type":"string","description":"Specifies phase duration. Either `day`, `week`, `month` or `year`.","enum":["day","month","week","year"]},"interval_count":{"type":"integer","description":"The multiplier applied to the interval."}},"description":"The number of intervals the phase should last. If set, `end_date` must not be set.","x-stripeMostCommon":["interval","interval_count"]},"end_date":{"description":"The date at which this phase of the subscription schedule ends. If set, `duration` must not be set.","anyOf":[{"type":"integer","format":"unix-time"},{"maxLength":5000,"type":"string","enum":["now"]}]},"invoice_settings":{"title":"invoice_settings","type":"object","properties":{"account_tax_ids":{"description":"The account tax IDs associated with this phase of the subscription schedule. Will be set on invoices generated by this phase of the subscription schedule.","anyOf":[{"type":"array","items":{"maxLength":5000,"type":"string"}},{"type":"string","enum":[""]}]},"days_until_due":{"type":"integer","description":"Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`."},"issuer":{"title":"param","required":["type"],"type":"object","properties":{"account":{"type":"string","description":"The connected account being referenced when `type` is `account`."},"type":{"type":"string","description":"Type of the account referenced in the request.","enum":["account","self"],"x-stripeBypassValidation":true}},"description":"The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.","x-stripeMostCommon":["account","type"]}},"description":"All invoices will be billed using the specified settings.","x-stripeMostCommon":["account_tax_ids","custom_fields","days_until_due","description","footer","issuer","send_hosted_payment_email","supported_payment_methods"]},"items":{"type":"array","description":"List of configuration items, each with an attached price, to apply during this phase of the subscription schedule.","items":{"title":"configuration_item_params","type":"object","properties":{"billing_thresholds":{"description":"Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.","anyOf":[{"title":"item_billing_thresholds_param","required":["usage_gte"],"type":"object","properties":{"usage_gte":{"type":"integer","description":"Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://docs.stripe.com/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte))"}},"x-stripeMostCommon":["usage_gte"]},{"type":"string","enum":[""]}]},"discounts":{"description":"The coupons to redeem into discounts for the subscription item.","anyOf":[{"type":"array","items":{"title":"schedule_discounts_data_param","type":"object","properties":{"coupon":{"maxLength":5000,"type":"string","description":"ID of the coupon to create a new discount for."},"discount":{"maxLength":5000,"type":"string","description":"ID of an existing discount on the object (or one of its ancestors) to reuse."},"promotion_code":{"maxLength":5000,"type":"string","description":"ID of the promotion code to create a new discount for."}},"x-stripeMostCommon":["coupon","settings"]}},{"type":"string","enum":[""]}]},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to a configuration item. Metadata on a configuration item will update the underlying subscription item's `metadata` when the phase is entered, adding new keys and replacing existing keys. Individual keys in the subscription item's `metadata` can be unset by posting an empty value to them in the configuration item's `metadata`. To unset all keys in the subscription item's `metadata`, update the subscription item directly or unset every key individually from the configuration item's `metadata`."},"plan":{"maxLength":5000,"type":"string","description":"The plan ID to subscribe to. You may specify the same ID in `plan` and `price`."},"price":{"maxLength":5000,"type":"string","description":"The ID of the price object."},"price_data":{"title":"recurring_price_data","required":["currency","product","recurring"],"type":"object","properties":{"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"product":{"maxLength":5000,"type":"string","description":"The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to."},"recurring":{"title":"recurring_adhoc","required":["interval"],"type":"object","properties":{"interval":{"type":"string","description":"Specifies billing frequency. Either `day`, `week`, `month` or `year`.","enum":["day","month","week","year"]},"interval_count":{"type":"integer","description":"The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks)."}},"description":"The recurring components of a price such as `interval` and `interval_count`.","x-stripeMostCommon":["interval"]},"tax_behavior":{"type":"string","description":"Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.","enum":["exclusive","inclusive","unspecified"]},"unit_amount":{"type":"integer","description":"A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge."},"unit_amount_decimal":{"type":"string","description":"Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.","format":"decimal"}},"description":"Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline.","x-stripeMostCommon":["currency","product","recurring","unit_amount"]},"quantity":{"type":"integer","description":"Quantity for the given price. Can be set only if the price's `usage_type` is `licensed` and not `metered`."},"tax_rates":{"description":"A list of [Tax Rate](https://docs.stripe.com/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://docs.stripe.com/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.","anyOf":[{"type":"array","items":{"maxLength":5000,"type":"string"}},{"type":"string","enum":[""]}]}},"x-stripeMostCommon":["billing_thresholds","discounts","metadata","plan","price","quantity","tax_rates","trial","trial_offer"]}},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to a phase. Metadata on a schedule's phase will update the underlying subscription's `metadata` when the phase is entered, adding new keys and replacing existing keys in the subscription's `metadata`. Individual keys in the subscription's `metadata` can be unset by posting an empty value to them in the phase's `metadata`. To unset all keys in the subscription's `metadata`, update the subscription directly or unset every key individually from the phase's `metadata`."},"on_behalf_of":{"type":"string","description":"The account on behalf of which to charge, for each of the associated subscription's invoices."},"proration_behavior":{"type":"string","description":"Controls whether the subscription schedule should create [prorations](https://docs.stripe.com/billing/subscriptions/prorations) when transitioning to this phase if there is a difference in billing configuration. It's different from the request-level [proration_behavior](https://docs.stripe.com/api/subscription_schedules/update#update_subscription_schedule-proration_behavior) parameter which controls what happens if the update request affects the billing configuration (item price, quantity, etc.) of the current phase.","enum":["always_invoice","create_prorations","none"]},"start_date":{"description":"The date at which this phase of the subscription schedule starts or `now`. Must be set on the first phase.","anyOf":[{"type":"integer","format":"unix-time"},{"maxLength":5000,"type":"string","enum":["now"]}]},"transfer_data":{"title":"transfer_data_specs","required":["destination"],"type":"object","properties":{"amount_percent":{"type":"number","description":"A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination."},"destination":{"type":"string","description":"ID of an existing, connected Stripe account."}},"description":"The data with which to automatically create a Transfer for each of the associated subscription's invoices.","x-stripeMostCommon":["amount_percent","destination"]},"trial":{"type":"boolean","description":"If set to true the entire phase is counted as a trial and the customer will not be charged for any fees."},"trial_end":{"description":"Sets the phase to trialing from the start date to this date. Must be before the phase end date, can not be combined with `trial`","anyOf":[{"type":"integer","format":"unix-time"},{"maxLength":5000,"type":"string","enum":["now"]}]}},"x-stripeMostCommon":["add_invoice_items","application_fee_percent","automatic_tax","billing_cycle_anchor","billing_thresholds","collection_method","currency","default_payment_method","default_tax_rates","description","discounts","duration","effective_at","end_date","invoice_settings","items","metadata","on_behalf_of","pause_collection","proration_behavior","start_date","tax_filing_currency","transfer_data","trial","trial_continuation","trial_end","trial_settings"]}},"proration_behavior":{"type":"string","description":"If the update changes the billing configuration (item price, quantity, etc.) of the current phase, indicates how prorations from this change should be handled. The default value is `create_prorations`.","enum":["always_invoice","create_prorations","none"]}},"additionalProperties":false,"x-stripeMostCommon":["metadata","phases","proration_behavior"]},"encoding":{"default_settings":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true},"phases":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/subscription_schedule"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/subscription_schedules/{schedule}/cancel":{"post":{"summary":"Cancel a schedule","description":"Cancels a subscription schedule and its associated subscription immediately (if the subscription schedule has an active subscription). A subscription schedule can only be canceled if its status is not_started or active.
Releases the subscription schedule immediately, which will stop scheduling of its phases, but leave any existing subscription in place. A schedule can only be released if its status is not_started or active. If the subscription schedule is currently associated with a subscription, releasing it will remove its subscription property and set the subscription’s ID to the released_subscription property.
By default, returns a list of subscriptions that have not been canceled. In order to list canceled subscriptions, specify status=canceled.
Creates a new subscription on an existing customer. Each customer can have up to 500 active or scheduled subscriptions.
\n\nWhen you create a subscription with collection_method=charge_automatically, the first invoice is finalized as part of the request.\nThe payment_behavior parameter determines the exact behavior of the initial payment.
To start subscriptions where the first invoice always begins in a draft status, use subscription schedules instead.\nSchedules provide the flexibility to model more complex billing configurations that change over time.
Search for subscriptions you’ve previously created using Stripe’s Search Query Language.\nDon’t use search in read-after-write flows where strict consistency is necessary. Under normal operating\nconditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up\nto an hour behind during outages. Search functionality is not available to merchants in India.
","operationId":"GetSubscriptionsSearch","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"page","in":"query","description":"A cursor for pagination across multiple pages of results. Don't include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"query","in":"query","description":"The search query string. See [search query language](https://docs.stripe.com/search#search-query-language) and the list of supported [query fields for subscriptions](https://docs.stripe.com/search#query-fields-for-subscriptions).","required":true,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"SearchResult","required":["data","has_more","next_page","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/subscription"}},"has_more":{"type":"boolean"},"next_page":{"maxLength":5000,"type":"string","nullable":true},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value.","enum":["search_result"]},"total_count":{"type":"integer","description":"The total number of objects that match the query, only accurate up to 10,000."},"url":{"maxLength":5000,"type":"string"}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","next_page","object","total_count","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/subscriptions/{subscription_exposed_id}":{"get":{"summary":"Retrieve a subscription","description":"Retrieves the subscription with the given ID.
","operationId":"GetSubscriptionsSubscriptionExposedId","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"subscription_exposed_id","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/subscription"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Update a subscription","description":"Updates an existing subscription to match the specified parameters.\nWhen changing prices or quantities, we optionally prorate the price we charge next month to make up for any price changes.\nTo preview how the proration is calculated, use the create preview endpoint.
\n\nBy default, we prorate subscription changes. For example, if a customer signs up on May 1 for a
Switching prices does not normally change the billing date or generate an immediate charge unless:
\n\nIn these cases, we apply a credit for the unused time on the previous price, immediately charge the customer using the new price, and reset the billing date. Learn about how Stripe immediately attempts payment for subscription changes.
\n\nIf you want to charge for an upgrade immediately, pass proration_behavior as always_invoice to create prorations, automatically invoice the customer for those proration adjustments, and attempt to collect payment. If you pass create_prorations, the prorations are created but not automatically invoiced. If you want to bill the customer for the prorations before the subscription’s renewal date, you need to manually invoice the customer.
If you don’t want to prorate, set the proration_behavior option to none. With this option, the customer is billed proration_behavior to none when switching between different billing intervals (for example, from monthly to yearly), we don’t generate any credits for the old subscription’s unused time. We still reset the billing date and bill immediately for the new subscription.
Updating the quantity on a subscription many times in an hour may result in rate limiting. If you need to bill for a frequently changing quantity, consider integrating usage-based billing instead.
","operationId":"PostSubscriptionsSubscriptionExposedId","parameters":[{"name":"subscription_exposed_id","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"add_invoice_items":{"type":"array","description":"A list of prices and quantities that will generate invoice items appended to the next invoice for this subscription. You may pass up to 20 items.","items":{"title":"add_invoice_item_entry","type":"object","properties":{"discounts":{"type":"array","description":"The coupons to redeem into discounts for the item.","items":{"title":"discounts_data_param","type":"object","properties":{"coupon":{"maxLength":5000,"type":"string","description":"ID of the coupon to create a new discount for."},"discount":{"maxLength":5000,"type":"string","description":"ID of an existing discount on the object (or one of its ancestors) to reuse."},"promotion_code":{"maxLength":5000,"type":"string","description":"ID of the promotion code to create a new discount for."}},"x-stripeMostCommon":["coupon"]}},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"period":{"title":"invoice_item_period","required":["end","start"],"type":"object","properties":{"end":{"title":"invoice_item_period_end","required":["type"],"type":"object","properties":{"timestamp":{"type":"integer","description":"A precise Unix timestamp for the end of the invoice item period. Must be greater than or equal to `period.start`.","format":"unix-time"},"type":{"type":"string","description":"Select how to calculate the end of the invoice item period.","enum":["min_item_period_end","timestamp"],"x-stripeBypassValidation":true}},"description":"End of the invoice item period.","x-stripeMostCommon":["timestamp","type"]},"start":{"title":"invoice_item_period_start","required":["type"],"type":"object","properties":{"timestamp":{"type":"integer","description":"A precise Unix timestamp for the start of the invoice item period. Must be less than or equal to `period.end`.","format":"unix-time"},"type":{"type":"string","description":"Select how to calculate the start of the invoice item period.","enum":["max_item_period_start","now","timestamp"],"x-stripeBypassValidation":true}},"description":"Start of the invoice item period.","x-stripeMostCommon":["timestamp","type"]}},"description":"The period associated with this invoice item. If not set, `period.start.type` defaults to `max_item_period_start` and `period.end.type` defaults to `min_item_period_end`.","x-stripeMostCommon":["end","start"]},"price":{"maxLength":5000,"type":"string","description":"The ID of the price object. One of `price` or `price_data` is required."},"price_data":{"title":"one_time_price_data_with_negative_amounts","required":["currency","product"],"type":"object","properties":{"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"product":{"maxLength":5000,"type":"string","description":"The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to."},"tax_behavior":{"type":"string","description":"Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.","enum":["exclusive","inclusive","unspecified"]},"unit_amount":{"type":"integer","description":"A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge or a negative integer representing the amount to credit to the customer."},"unit_amount_decimal":{"type":"string","description":"Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.","format":"decimal"}},"description":"Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline. One of `price` or `price_data` is required.","x-stripeMostCommon":["currency","product","unit_amount"]},"quantity":{"type":"integer","description":"Quantity for this item. Defaults to 1."},"tax_rates":{"description":"The tax rates which apply to the item. When set, the `default_tax_rates` do not apply to this item.","anyOf":[{"type":"array","items":{"maxLength":5000,"type":"string"}},{"type":"string","enum":[""]}]}},"x-stripeMostCommon":["price","quantity"],"x-stripeParam":{"class_name":"AddInvoiceItem"}}},"application_fee_percent":{"description":"A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. The request must be made by a platform account on a connected account in order to set an application fee percentage. For more information, see the application fees [documentation](https://stripe.com/docs/connect/subscriptions#collecting-fees-on-subscriptions).","anyOf":[{"type":"number"},{"type":"string","enum":[""]}]},"automatic_tax":{"title":"automatic_tax_config","required":["enabled"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Enabled automatic tax calculation which will automatically compute tax rates on all invoices generated by the subscription."},"liability":{"title":"param","required":["type"],"type":"object","properties":{"account":{"type":"string","description":"The connected account being referenced when `type` is `account`."},"type":{"type":"string","description":"Type of the account referenced in the request.","enum":["account","self"],"x-stripeBypassValidation":true}},"description":"The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.","x-stripeMostCommon":["account","type"]}},"description":"Automatic tax settings for this subscription. We recommend you only include this parameter when the existing value is being changed.","x-stripeMostCommon":["enabled","liability"]},"billing_cycle_anchor":{"maxLength":5000,"type":"string","description":"Either `now` or `unchanged`. Setting the value to `now` resets the subscription's billing cycle anchor to the current time (in UTC). For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle).","enum":["now","unchanged"],"x-stripeBypassValidation":true},"billing_thresholds":{"description":"Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. When updating, pass an empty string to remove previously-defined thresholds.","anyOf":[{"title":"billing_thresholds_param","type":"object","properties":{"amount_gte":{"type":"integer","description":"Monetary threshold that triggers the subscription to advance to a new billing period"},"reset_billing_cycle_anchor":{"type":"boolean","description":"Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached. If true, `billing_cycle_anchor` will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged."}},"x-stripeMostCommon":["amount_gte","reset_billing_cycle_anchor"]},{"type":"string","enum":[""]}]},"cancel_at":{"description":"A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period.","anyOf":[{"type":"integer","format":"unix-time"},{"type":"string","enum":[""]},{"type":"string","enum":["max_period_end","min_period_end"]}]},"cancel_at_period_end":{"type":"boolean","description":"Indicate whether this subscription should cancel at the end of the current period (`current_period_end`). Defaults to `false`."},"cancellation_details":{"title":"cancellation_details_param","type":"object","properties":{"comment":{"description":"Additional comments about why the user canceled the subscription, if the subscription was canceled explicitly by the user.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]},"feedback":{"type":"string","description":"The customer submitted reason for why they canceled, if the subscription was canceled explicitly by the user.","enum":["","customer_service","low_quality","missing_features","other","switched_service","too_complex","too_expensive","unused"]}},"description":"Details about why this subscription was cancelled","x-stripeMostCommon":["comment","feedback","feedback_option"]},"collection_method":{"type":"string","description":"Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay this subscription at the end of the cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically`.","enum":["charge_automatically","send_invoice"]},"days_until_due":{"type":"integer","description":"Number of days a customer has to pay invoices generated by this subscription. Valid only for subscriptions where `collection_method` is set to `send_invoice`."},"default_payment_method":{"maxLength":5000,"type":"string","description":"ID of the default payment method for the subscription. It must belong to the customer associated with the subscription. This takes precedence over `default_source`. If neither are set, invoices will use the customer's [invoice_settings.default_payment_method](https://docs.stripe.com/api/customers/object#customer_object-invoice_settings-default_payment_method) or [default_source](https://docs.stripe.com/api/customers/object#customer_object-default_source)."},"default_source":{"description":"ID of the default payment source for the subscription. It must belong to the customer associated with the subscription and be in a chargeable state. If `default_payment_method` is also set, `default_payment_method` will take precedence. If neither are set, invoices will use the customer's [invoice_settings.default_payment_method](https://docs.stripe.com/api/customers/object#customer_object-invoice_settings-default_payment_method) or [default_source](https://docs.stripe.com/api/customers/object#customer_object-default_source).","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]},"default_tax_rates":{"description":"The tax rates that will apply to any subscription item that does not have `tax_rates` set. Invoices created will have their `default_tax_rates` populated from the subscription. Pass an empty string to remove previously-defined tax rates.","anyOf":[{"type":"array","items":{"maxLength":5000,"type":"string"}},{"type":"string","enum":[""]}]},"description":{"description":"The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.","anyOf":[{"maxLength":500,"type":"string"},{"type":"string","enum":[""]}]},"discounts":{"description":"The coupons to redeem into discounts for the subscription. If not specified or empty, inherits the discount from the subscription's customer.","anyOf":[{"type":"array","items":{"title":"discounts_data_param","type":"object","properties":{"coupon":{"maxLength":5000,"type":"string","description":"ID of the coupon to create a new discount for."},"discount":{"maxLength":5000,"type":"string","description":"ID of an existing discount on the object (or one of its ancestors) to reuse."},"promotion_code":{"maxLength":5000,"type":"string","description":"ID of the promotion code to create a new discount for."}},"x-stripeMostCommon":["coupon","settings"]}},{"type":"string","enum":[""]}]},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"invoice_settings":{"title":"invoice_settings_param","type":"object","properties":{"account_tax_ids":{"description":"The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription.","anyOf":[{"type":"array","items":{"maxLength":5000,"type":"string"}},{"type":"string","enum":[""]}]},"issuer":{"title":"param","required":["type"],"type":"object","properties":{"account":{"type":"string","description":"The connected account being referenced when `type` is `account`."},"type":{"type":"string","description":"Type of the account referenced in the request.","enum":["account","self"],"x-stripeBypassValidation":true}},"description":"The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.","x-stripeMostCommon":["account","type"]}},"description":"All invoices will be billed using the specified settings.","x-stripeMostCommon":["account_tax_ids","custom_fields","description","footer","issuer","rendering","send_hosted_payment_email","supported_payment_methods"]},"items":{"type":"array","description":"A list of up to 20 subscription items, each with an attached price.","items":{"title":"subscription_item_update_params","type":"object","properties":{"billing_thresholds":{"description":"Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.","anyOf":[{"title":"item_billing_thresholds_param","required":["usage_gte"],"type":"object","properties":{"usage_gte":{"type":"integer","description":"Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://docs.stripe.com/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte))"}},"x-stripeMostCommon":["usage_gte"]},{"type":"string","enum":[""]}]},"clear_usage":{"type":"boolean","description":"Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached."},"deleted":{"type":"boolean","description":"A flag that, if set to `true`, will delete the specified item."},"discounts":{"description":"The coupons to redeem into discounts for the subscription item.","anyOf":[{"type":"array","items":{"title":"discounts_data_param","type":"object","properties":{"coupon":{"maxLength":5000,"type":"string","description":"ID of the coupon to create a new discount for."},"discount":{"maxLength":5000,"type":"string","description":"ID of an existing discount on the object (or one of its ancestors) to reuse."},"promotion_code":{"maxLength":5000,"type":"string","description":"ID of the promotion code to create a new discount for."}},"x-stripeMostCommon":["coupon","settings"]}},{"type":"string","enum":[""]}]},"id":{"maxLength":5000,"type":"string","description":"Subscription item to update."},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"plan":{"maxLength":5000,"type":"string","description":"Plan ID for this item, as a string."},"price":{"maxLength":5000,"type":"string","description":"The ID of the price object. One of `price` or `price_data` is required. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided."},"price_data":{"title":"recurring_price_data","required":["currency","product","recurring"],"type":"object","properties":{"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"product":{"maxLength":5000,"type":"string","description":"The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to."},"recurring":{"title":"recurring_adhoc","required":["interval"],"type":"object","properties":{"interval":{"type":"string","description":"Specifies billing frequency. Either `day`, `week`, `month` or `year`.","enum":["day","month","week","year"]},"interval_count":{"type":"integer","description":"The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks)."}},"description":"The recurring components of a price such as `interval` and `interval_count`.","x-stripeMostCommon":["interval"]},"tax_behavior":{"type":"string","description":"Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.","enum":["exclusive","inclusive","unspecified"]},"unit_amount":{"type":"integer","description":"A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge."},"unit_amount_decimal":{"type":"string","description":"Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.","format":"decimal"}},"description":"Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline. One of `price` or `price_data` is required.","x-stripeMostCommon":["currency","product","recurring","unit_amount"]},"quantity":{"type":"integer","description":"Quantity for this item."},"tax_rates":{"description":"A list of [Tax Rate](https://docs.stripe.com/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://docs.stripe.com/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.","anyOf":[{"type":"array","items":{"maxLength":5000,"type":"string"}},{"type":"string","enum":[""]}]}},"x-stripeMostCommon":["billing_thresholds","clear_usage","current_trial","deleted","discounts","id","metadata","plan","price","quantity","service_starts_at","tax_rates"]}},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"off_session":{"type":"boolean","description":"Indicates if a customer is on or off-session while an invoice payment is attempted. Defaults to `false` (on-session)."},"on_behalf_of":{"description":"The account on behalf of which to charge, for each of the subscription's invoices.","anyOf":[{"type":"string"},{"type":"string","enum":[""]}]},"pause_collection":{"description":"If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://docs.stripe.com/billing/subscriptions/pause-payment).","anyOf":[{"title":"pause_collection_param","required":["behavior"],"type":"object","properties":{"behavior":{"type":"string","description":"The payment collection behavior for this subscription while paused.","enum":["keep_as_draft","mark_uncollectible","void"]},"resumes_at":{"type":"integer","description":"The time after which the subscription will resume collecting payments.","format":"unix-time"}},"x-stripeMostCommon":["behavior","resumes_at"]},{"type":"string","enum":[""]}]},"payment_behavior":{"type":"string","description":"Use `allow_incomplete` to transition the subscription to `status=past_due` if a payment is required but cannot be paid. This allows you to manage scenarios where additional user actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://docs.stripe.com/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior.\n\nUse `default_incomplete` to transition the subscription to `status=past_due` when payment is required and await explicit confirmation of the invoice's payment intent. This allows simpler management of scenarios where additional user actions are needed to pay a subscription’s invoice. Such as failed payments, [SCA regulation](https://docs.stripe.com/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method.\n\nUse `pending_if_incomplete` to update the subscription using [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://docs.stripe.com/billing/pending-updates-reference#supported-attributes).\n\nUse `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more.","enum":["allow_incomplete","default_incomplete","error_if_incomplete","pending_if_incomplete"]},"payment_settings":{"title":"payment_settings","type":"object","properties":{"payment_method_options":{"title":"payment_method_options","type":"object","properties":{"acss_debit":{"description":"This sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to the invoice’s PaymentIntent.","anyOf":[{"title":"invoice_payment_method_options_param","type":"object","properties":{"mandate_options":{"title":"mandate_options_param","type":"object","properties":{"transaction_type":{"type":"string","description":"Transaction type of the mandate.","enum":["business","personal"]}},"description":"Additional fields for Mandate creation","x-stripeMostCommon":["transaction_type"]},"verification_method":{"type":"string","description":"Verification method for the intent","enum":["automatic","instant","microdeposits"],"x-stripeBypassValidation":true}},"x-stripeMostCommon":["mandate_options","verification_method"]},{"type":"string","enum":[""]}]},"bancontact":{"description":"This sub-hash contains details about the Bancontact payment method options to pass to the invoice’s PaymentIntent.","anyOf":[{"title":"invoice_payment_method_options_param","type":"object","properties":{"preferred_language":{"type":"string","description":"Preferred language of the Bancontact authorization page that the customer is redirected to.","enum":["de","en","fr","nl"]}},"x-stripeMostCommon":["preferred_language"]},{"type":"string","enum":[""]}]},"card":{"description":"This sub-hash contains details about the Card payment method options to pass to the invoice’s PaymentIntent.","anyOf":[{"title":"subscription_payment_method_options_param","type":"object","properties":{"mandate_options":{"title":"mandate_options_param","type":"object","properties":{"amount":{"type":"integer","description":"Amount to be charged for future payments, specified in the presentment currency."},"amount_type":{"type":"string","description":"One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.","enum":["fixed","maximum"]},"description":{"maxLength":200,"type":"string","description":"A description of the mandate or subscription that is meant to be displayed to the customer."}},"description":"Configuration options for setting up an eMandate for cards issued in India.","x-stripeMostCommon":["amount","amount_type","description"]},"network":{"maxLength":5000,"type":"string","description":"Selected network to process this Subscription on. Depends on the available networks of the card attached to the Subscription. Can be only set confirm-time.","enum":["amex","cartes_bancaires","diners","discover","eftpos_au","girocard","interac","jcb","link","mastercard","unionpay","unknown","visa"],"x-stripeBypassValidation":true},"request_three_d_secure":{"type":"string","description":"We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.","enum":["any","automatic","challenge"]}},"x-stripeMostCommon":["mandate_options","mit_exemption","network","network_options","request_three_d_secure"]},{"type":"string","enum":[""]}]},"customer_balance":{"description":"This sub-hash contains details about the Bank transfer payment method options to pass to the invoice’s PaymentIntent.","anyOf":[{"title":"invoice_payment_method_options_param","type":"object","properties":{"bank_transfer":{"title":"bank_transfer_param","type":"object","properties":{"eu_bank_transfer":{"title":"eu_bank_transfer_param","required":["country"],"type":"object","properties":{"country":{"maxLength":5000,"type":"string","description":"The desired country code of the bank account information. Permitted values include: `DE`, `FR`, `IE`, or `NL`."}},"description":"Configuration for eu_bank_transfer funding type.","x-stripeMostCommon":["country"]},"type":{"type":"string","description":"The bank transfer type that can be used for funding. Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`."}},"description":"Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.","x-stripeMostCommon":["eu_bank_transfer","id_bank_transfer","type"]},"funding_type":{"type":"string","description":"The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`."}},"x-stripeMostCommon":["bank_transfer","funding_type"]},{"type":"string","enum":[""]}]},"konbini":{"description":"This sub-hash contains details about the Konbini payment method options to pass to the invoice’s PaymentIntent.","anyOf":[{"title":"invoice_payment_method_options_param","type":"object","properties":{}},{"type":"string","enum":[""]}]},"payto":{"description":"This sub-hash contains details about the PayTo payment method options to pass to the invoice’s PaymentIntent.","anyOf":[{"title":"invoice_payment_method_options_param","type":"object","properties":{"mandate_options":{"title":"mandate_options_param","type":"object","properties":{"amount":{"type":"integer","description":"The maximum amount that can be collected in a single invoice. If you don't specify a maximum, then there is no limit."},"purpose":{"type":"string","description":"The purpose for which payments are made. Has a default value based on your merchant category code.","enum":["dependant_support","government","loan","mortgage","other","pension","personal","retail","salary","tax","utility"]}},"description":"Additional fields for Mandate creation.","x-stripeMostCommon":["amount","purpose"]}},"x-stripeMostCommon":["mandate_options"]},{"type":"string","enum":[""]}]},"sepa_debit":{"description":"This sub-hash contains details about the SEPA Direct Debit payment method options to pass to the invoice’s PaymentIntent.","anyOf":[{"title":"invoice_payment_method_options_param","type":"object","properties":{},"x-stripeMostCommon":["verification_method"]},{"type":"string","enum":[""]}]},"us_bank_account":{"description":"This sub-hash contains details about the ACH direct debit payment method options to pass to the invoice’s PaymentIntent.","anyOf":[{"title":"invoice_payment_method_options_param","type":"object","properties":{"financial_connections":{"title":"invoice_linked_account_options_param","type":"object","properties":{"filters":{"title":"invoice_linked_account_options_filters_param","type":"object","properties":{"account_subcategories":{"type":"array","description":"The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.","items":{"type":"string","enum":["checking","savings"]}}},"description":"Provide filters for the linked accounts that the customer can select for the payment method.","x-stripeMostCommon":["account_subcategories","institution"]},"permissions":{"type":"array","description":"The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.","items":{"maxLength":5000,"type":"string","enum":["balances","ownership","payment_method","transactions"],"x-stripeBypassValidation":true}},"prefetch":{"type":"array","description":"List of data features that you would like to retrieve upon account creation.","items":{"type":"string","enum":["balances","ownership","transactions"],"x-stripeBypassValidation":true}}},"description":"Additional fields for Financial Connections Session creation","x-stripeMostCommon":["filters","permissions","prefetch"]},"verification_method":{"type":"string","description":"Verification method for the intent","enum":["automatic","instant","microdeposits"],"x-stripeBypassValidation":true}},"x-stripeMostCommon":["financial_connections","verification_method"]},{"type":"string","enum":[""]}]}},"description":"Payment-method-specific configuration to provide to invoices created by the subscription.","x-stripeMostCommon":["acss_debit","bancontact","card","customer_balance","id_bank_transfer","konbini","payto","pix","sepa_debit","upi","us_bank_account"]},"payment_method_types":{"description":"The list of payment method types (e.g. card) to provide to the invoice’s PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice’s default payment method, the subscription’s default payment method, the customer’s default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration","anyOf":[{"type":"array","items":{"type":"string","enum":["ach_credit_transfer","ach_debit","acss_debit","affirm","amazon_pay","au_becs_debit","bacs_debit","bancontact","boleto","card","cashapp","crypto","custom","customer_balance","eps","fpx","giropay","grabpay","ideal","jp_credit_transfer","kakao_pay","klarna","konbini","kr_card","link","multibanco","naver_pay","nz_bank_account","p24","pay_by_bank","payco","paynow","paypal","payto","promptpay","revolut_pay","sepa_credit_transfer","sepa_debit","sofort","swish","us_bank_account","wechat_pay"],"x-stripeBypassValidation":true}},{"type":"string","enum":[""]}]},"save_default_payment_method":{"type":"string","description":"Configure whether Stripe updates `subscription.default_payment_method` when payment succeeds. Defaults to `off` if unspecified.","enum":["off","on_subscription"]}},"description":"Payment settings to pass to invoices created by the subscription.","x-stripeMostCommon":["payment_method_configuration","payment_method_options","payment_method_types","save_default_payment_method"]},"pending_invoice_item_interval":{"description":"Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling [Create an invoice](/api/invoices/create) for the given subscription at the specified interval.","anyOf":[{"title":"pending_invoice_item_interval_params","required":["interval"],"type":"object","properties":{"interval":{"type":"string","description":"Specifies invoicing frequency. Either `day`, `week`, `month` or `year`.","enum":["day","month","week","year"]},"interval_count":{"type":"integer","description":"The number of intervals between invoices. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks)."}},"x-stripeMostCommon":["interval","interval_count"]},{"type":"string","enum":[""]}]},"proration_behavior":{"type":"string","description":"Determines how to handle [prorations](https://docs.stripe.com/billing/subscriptions/prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes. The default value is `create_prorations`.","enum":["always_invoice","create_prorations","none"]},"proration_date":{"type":"integer","description":"If set, prorations will be calculated as though the subscription was updated at the given time. This can be used to apply exactly the same prorations that were previewed with the [create preview](https://stripe.com/docs/api/invoices/create_preview) endpoint. `proration_date` can also be used to implement custom proration logic, such as prorating by day instead of by second, by providing the time that you wish to use for proration calculations.","format":"unix-time"},"transfer_data":{"description":"If specified, the funds from the subscription's invoices will be transferred to the destination and the ID of the resulting transfers will be found on the resulting charges. This will be unset if you POST an empty value.","anyOf":[{"title":"transfer_data_specs","required":["destination"],"type":"object","properties":{"amount_percent":{"type":"number","description":"A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination."},"destination":{"type":"string","description":"ID of an existing, connected Stripe account."}},"x-stripeMostCommon":["amount_percent","destination"]},{"type":"string","enum":[""]}]},"trial_end":{"description":"Unix timestamp representing the end of the trial period the customer will get before being charged for the first time. This will always overwrite any trials that might apply via a subscribed plan. If set, `trial_end` will override the default trial period of the plan the customer is being subscribed to. The `billing_cycle_anchor` will be updated to the `trial_end` value. The special value `now` can be provided to end the customer's trial immediately. Can be at most two years from `billing_cycle_anchor`.","anyOf":[{"maxLength":5000,"type":"string","enum":["now"]},{"type":"integer","format":"unix-time"}]},"trial_from_plan":{"type":"boolean","description":"Indicates if a plan's `trial_period_days` should be applied to the subscription. Setting `trial_end` per subscription is preferred, and this defaults to `false`. Setting this flag to `true` together with `trial_end` is not allowed. See [Using trial periods on subscriptions](https://docs.stripe.com/billing/subscriptions/trials) to learn more."},"trial_settings":{"title":"trial_settings_config","required":["end_behavior"],"type":"object","properties":{"end_behavior":{"title":"end_behavior","required":["missing_payment_method"],"type":"object","properties":{"missing_payment_method":{"type":"string","description":"Indicates how the subscription should change when the trial ends if the user did not provide a payment method.","enum":["cancel","create_invoice","pause"]}},"description":"Defines how the subscription should behave when the user's free trial ends.","x-stripeMostCommon":["billing_cycle_anchor","missing_payment_method"]}},"description":"Settings related to subscription trials.","x-stripeMostCommon":["end_behavior"]}},"additionalProperties":false,"x-stripeMostCommon":["automatic_tax","default_payment_method","description","items","metadata","payment_behavior","proration_behavior"]},"encoding":{"add_invoice_items":{"style":"deepObject","explode":true},"application_fee_percent":{"style":"deepObject","explode":true},"automatic_tax":{"style":"deepObject","explode":true},"billing_thresholds":{"style":"deepObject","explode":true},"cancel_at":{"style":"deepObject","explode":true},"cancellation_details":{"style":"deepObject","explode":true},"default_source":{"style":"deepObject","explode":true},"default_tax_rates":{"style":"deepObject","explode":true},"description":{"style":"deepObject","explode":true},"discounts":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"invoice_settings":{"style":"deepObject","explode":true},"items":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true},"on_behalf_of":{"style":"deepObject","explode":true},"pause_collection":{"style":"deepObject","explode":true},"payment_settings":{"style":"deepObject","explode":true},"pending_invoice_item_interval":{"style":"deepObject","explode":true},"transfer_data":{"style":"deepObject","explode":true},"trial_end":{"style":"deepObject","explode":true},"trial_settings":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/subscription"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"delete":{"summary":"Cancel a subscription","description":"Cancels a customer’s subscription immediately. The customer won’t be charged again for the subscription. After it’s canceled, you can no longer update the subscription or its metadata.
\n\nAny pending invoice items that you’ve created are still charged at the end of the period, unless manually deleted. If you’ve set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true.
By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all.
","operationId":"DeleteSubscriptionsSubscriptionExposedId","parameters":[{"name":"subscription_exposed_id","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"cancellation_details":{"title":"cancellation_details_param","type":"object","properties":{"comment":{"description":"Additional comments about why the user canceled the subscription, if the subscription was canceled explicitly by the user.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]},"feedback":{"type":"string","description":"The customer submitted reason for why they canceled, if the subscription was canceled explicitly by the user.","enum":["","customer_service","low_quality","missing_features","other","switched_service","too_complex","too_expensive","unused"]}},"description":"Details about why this subscription was cancelled","x-stripeMostCommon":["comment","feedback","feedback_option"]},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"invoice_now":{"type":"boolean","description":"Will generate a final invoice that invoices for any un-invoiced metered usage and new/pending proration invoice items. Defaults to `false`."},"prorate":{"type":"boolean","description":"Will generate a proration invoice item that credits remaining unused time until the subscription period end. Defaults to `false`."}},"additionalProperties":false},"encoding":{"cancellation_details":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/subscription"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/subscriptions/{subscription_exposed_id}/discount":{"delete":{"summary":"Delete a subscription discount","description":"Removes the currently applied discount on a subscription.
","operationId":"DeleteSubscriptionsSubscriptionExposedIdDiscount","parameters":[{"name":"subscription_exposed_id","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/deleted_discount"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/subscriptions/{subscription}/migrate":{"post":{"summary":"Migrate a subscription","description":"Upgrade the billing_mode of an existing subscription.
","operationId":"PostSubscriptionsSubscriptionMigrate","parameters":[{"name":"subscription","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["billing_mode"],"type":"object","properties":{"billing_mode":{"title":"billing_mode_migrate","required":["type"],"type":"object","properties":{"flexible":{"title":"flexible_params","type":"object","properties":{"proration_discounts":{"type":"string","description":"Controls how invoices and invoice items display proration amounts and discount amounts.","enum":["included","itemized"]}},"description":"Configure behavior for flexible billing mode.","x-stripeMostCommon":["proration_discounts"]},"type":{"type":"string","description":"Controls the calculation and orchestration of prorations and invoices for subscriptions.","enum":["flexible"]}},"description":"Controls how prorations and invoices for subscriptions are calculated and orchestrated.","x-stripeMostCommon":["flexible","type"]},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}}},"additionalProperties":false,"x-stripeMostCommon":["billing_mode"]},"encoding":{"billing_mode":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/subscription"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/subscriptions/{subscription}/resume":{"post":{"summary":"Resume a subscription","description":"Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice is not paid by the expiration date, it is voided and the subscription remains paused.
Finds a tax association object by PaymentIntent id.
","operationId":"GetTaxAssociationsFind","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"payment_intent","in":"query","description":"Valid [PaymentIntent](https://docs.stripe.com/api/payment_intents/object) id","required":true,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/tax.association"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/tax/calculations":{"post":{"summary":"Create a Tax Calculation","description":"Calculates tax based on the input and returns a Tax Calculation object.
Retrieves a Tax Calculation object, if the calculation hasn’t expired.
Retrieves the line items of a tax calculation as a collection, if the calculation hasn’t expired.
","operationId":"GetTaxCalculationsCalculationLineItems","parameters":[{"name":"calculation","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":500,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":500,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"TaxProductResourceTaxCalculationLineItemList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","description":"Details about each object.","items":{"$ref":"#/components/schemas/tax.calculation_line_item"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/tax/calculations/[^/]+/line_items","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/tax/registrations":{"get":{"summary":"List registrations","description":"Returns a list of Tax Registration objects.
Creates a new Tax Registration object.
Returns a Tax Registration object.
Updates an existing Tax Registration object.
A registration cannot be deleted after it has been created. If you wish to end a registration you may do so by setting expires_at.
Retrieves Tax Settings for a merchant.
Updates Tax Settings parameters used in tax calculations. All parameters are editable but none can be removed once set.
Creates a Tax Transaction from a calculation, if that calculation hasn’t expired. Calculations expire after 90 days.
","operationId":"PostTaxTransactionsCreateFromCalculation","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["calculation","reference"],"type":"object","properties":{"calculation":{"maxLength":5000,"type":"string","description":"Tax Calculation ID to be used as input when creating the transaction."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"posted_at":{"type":"integer","description":"The Unix timestamp representing when the tax liability is assumed or reduced, which determines the liability posting period and handling in tax liability reports. The timestamp must fall within the `tax_date` and the current time, unless the `tax_date` is scheduled in advance. Defaults to the current time.","format":"unix-time"},"reference":{"maxLength":500,"type":"string","description":"A custom order or sale identifier, such as 'myOrder_123'. Must be unique across all transactions, including reversals."}},"additionalProperties":false,"x-stripeMostCommon":["calculation","metadata","reference"]},"encoding":{"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/tax.transaction"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/tax/transactions/create_reversal":{"post":{"summary":"Create a reversal transaction","description":"Partially or fully reverses a previously created Transaction.
Retrieves a Tax Transaction object.
Retrieves the line items of a committed standalone transaction as a collection.
","operationId":"GetTaxTransactionsTransactionLineItems","parameters":[{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":500,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":500,"type":"string"}},{"name":"transaction","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"TaxProductResourceTaxTransactionLineItemList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","description":"Details about each object.","items":{"$ref":"#/components/schemas/tax.transaction_line_item"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/tax/transactions/[^/]+/line_items","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/tax_codes":{"get":{"summary":"List all tax codes","description":"A list of all tax codes available to add to Products in order to allow specific tax calculations.
","operationId":"GetTaxCodes","parameters":[{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"TaxProductResourceTaxCodeList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/tax_code"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/tax_codes/{id}":{"get":{"summary":"Retrieve a tax code","description":"Retrieves the details of an existing tax code. Supply the unique tax code ID and Stripe will return the corresponding tax code information.
","operationId":"GetTaxCodesId","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"id","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/tax_code"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/tax_ids":{"get":{"summary":"List all tax IDs","description":"Returns a list of tax IDs.
","operationId":"GetTaxIds","parameters":[{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"owner","in":"query","description":"The account or customer the tax ID belongs to. Defaults to `owner[type]=self`.","required":false,"style":"deepObject","explode":true,"schema":{"title":"owner_params","required":["type"],"type":"object","properties":{"account":{"type":"string","description":"Connected Account the tax ID belongs to. Required when `type=account`"},"customer":{"maxLength":5000,"type":"string","description":"Customer the tax ID belongs to. Required when `type=customer`"},"customer_account":{"maxLength":5000,"type":"string","description":"ID of the Account representing the customer that the tax ID belongs to. Can be used in place of `customer` when `type=customer`"},"type":{"type":"string","description":"Type of owner referenced.","enum":["account","application","customer","self"]}},"x-stripeMostCommon":["account","customer","customer_account","type"]}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"TaxIDsList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","description":"Details about each object.","items":{"$ref":"#/components/schemas/tax_id"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create a tax ID","description":"Creates a new account or customer tax_id object.
Retrieves an account or customer tax_id object.
Deletes an existing account or customer tax_id object.
Returns a list of your tax rates. Tax rates are returned sorted by creation date, with the most recently created tax rates appearing first.
","operationId":"GetTaxRates","parameters":[{"name":"active","in":"query","description":"Optional flag to filter by tax rates that are either active or inactive (archived).","required":false,"style":"form","explode":true,"schema":{"type":"boolean"}},{"name":"created","in":"query","description":"Optional range for filtering created date.","required":false,"style":"deepObject","explode":true,"schema":{"anyOf":[{"title":"range_query_specs","type":"object","properties":{"gt":{"type":"integer","description":"Minimum value to filter by (exclusive)"},"gte":{"type":"integer","description":"Minimum value to filter by (inclusive)"},"lt":{"type":"integer","description":"Maximum value to filter by (exclusive)"},"lte":{"type":"integer","description":"Maximum value to filter by (inclusive)"}},"x-stripeMostCommon":["gt","gte","lt","lte"]},{"type":"integer"}]}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"inclusive","in":"query","description":"Optional flag to filter by tax rates that are inclusive (or those that are not inclusive).","required":false,"style":"form","explode":true,"schema":{"type":"boolean"}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"TaxRatesList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/tax_rate"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/tax_rates","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create a tax rate","description":"Creates a new tax rate.
","operationId":"PostTaxRates","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["display_name","inclusive","percentage"],"type":"object","properties":{"active":{"type":"boolean","description":"Flag determining whether the tax rate is active or inactive (archived). Inactive tax rates cannot be used with new applications or Checkout Sessions, but will still work for subscriptions and invoices that already have it set."},"country":{"maxLength":5000,"type":"string","description":"Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."},"description":{"maxLength":5000,"type":"string","description":"An arbitrary string attached to the tax rate for your internal use only. It will not be visible to your customers."},"display_name":{"maxLength":50,"type":"string","description":"The display name of the tax rate, which will be shown to users."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"inclusive":{"type":"boolean","description":"This specifies if the tax rate is inclusive or exclusive."},"jurisdiction":{"maxLength":50,"type":"string","description":"The jurisdiction for the tax rate. You can use this label field for tax reporting purposes. It also appears on your customer’s invoice."},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"percentage":{"type":"number","description":"This represents the tax rate percent out of 100."},"state":{"maxLength":5000,"type":"string","description":"[ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix. For example, \"NY\" for New York, United States."},"tax_type":{"type":"string","description":"The high-level tax type, such as `vat` or `sales_tax`.","enum":["amusement_tax","communications_tax","gst","hst","igst","jct","lease_tax","pst","qst","retail_delivery_fee","rst","sales_tax","service_tax","vat"],"x-stripeBypassValidation":true}},"additionalProperties":false,"x-stripeMostCommon":["active","country","description","display_name","inclusive","jurisdiction","metadata","percentage","state"]},"encoding":{"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/tax_rate"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/tax_rates/{tax_rate}":{"get":{"summary":"Retrieve a tax rate","description":"Retrieves a tax rate with the given ID
","operationId":"GetTaxRatesTaxRate","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"tax_rate","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/tax_rate"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Update a tax rate","description":"Updates an existing tax rate.
","operationId":"PostTaxRatesTaxRate","parameters":[{"name":"tax_rate","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"active":{"type":"boolean","description":"Flag determining whether the tax rate is active or inactive (archived). Inactive tax rates cannot be used with new applications or Checkout Sessions, but will still work for subscriptions and invoices that already have it set."},"country":{"maxLength":5000,"type":"string","description":"Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."},"description":{"maxLength":5000,"type":"string","description":"An arbitrary string attached to the tax rate for your internal use only. It will not be visible to your customers."},"display_name":{"maxLength":50,"type":"string","description":"The display name of the tax rate, which will be shown to users."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"jurisdiction":{"maxLength":50,"type":"string","description":"The jurisdiction for the tax rate. You can use this label field for tax reporting purposes. It also appears on your customer’s invoice."},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"state":{"maxLength":5000,"type":"string","description":"[ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix. For example, \"NY\" for New York, United States."},"tax_type":{"type":"string","description":"The high-level tax type, such as `vat` or `sales_tax`.","enum":["amusement_tax","communications_tax","gst","hst","igst","jct","lease_tax","pst","qst","retail_delivery_fee","rst","sales_tax","service_tax","vat"],"x-stripeBypassValidation":true}},"additionalProperties":false,"x-stripeMostCommon":["active","country","description","display_name","jurisdiction","metadata","state"]},"encoding":{"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/tax_rate"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/terminal/configurations":{"get":{"summary":"List all Configurations","description":"Returns a list of Configuration objects.
Creates a new Configuration object.
Retrieves a Configuration object.
Updates a new Configuration object.
Deletes a Configuration object.
To connect to a reader the Stripe Terminal SDK needs to retrieve a short-lived connection token from Stripe, proxied through your server. On your backend, add an endpoint that creates and returns a connection token.
","operationId":"PostTerminalConnectionTokens","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"location":{"maxLength":5000,"type":"string","description":"The id of the location that this connection token is scoped to. If specified the connection token will only be usable with readers assigned to that location, otherwise the connection token will be usable with all readers. Note that location scoping only applies to internet-connected readers. For more details, see [the docs on scoping connection tokens](https://docs.stripe.com/terminal/fleet/locations-and-zones?dashboard-or-api=api#connection-tokens)."}},"additionalProperties":false,"x-stripeMostCommon":["location"]},"encoding":{"expand":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/terminal.connection_token"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/terminal/locations":{"get":{"summary":"List all Locations","description":"Returns a list of Location objects.
Creates a new Location object.\nFor further details, including which address fields are required in each country, see the Manage locations guide.
Retrieves a Location object.
Updates a Location object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Deletes a Location object.
Creates a new OnboardingLink object that contains a redirect_url used for onboarding onto Tap to Pay on iPhone.
Returns a list of Reader objects.
Creates a new Reader object.
Retrieves a Reader object.
Updates a Reader object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Deletes a Reader object.
Cancels the current reader action. See Programmatic Cancellation for more details.
","operationId":"PostTerminalReadersReaderCancelAction","parameters":[{"name":"reader","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}}},"additionalProperties":false},"encoding":{"expand":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/terminal.reader"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/terminal/readers/{reader}/collect_inputs":{"post":{"summary":"Collect inputs using a Reader","description":"Initiates an input collection flow on a Reader to display input forms and collect information from your customers.
","operationId":"PostTerminalReadersReaderCollectInputs","parameters":[{"name":"reader","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["inputs"],"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"inputs":{"type":"array","description":"List of inputs to be collected from the customer using the Reader. Maximum 5 inputs.","items":{"title":"input_params","required":["custom_text","type"],"type":"object","properties":{"custom_text":{"title":"custom_text_params","required":["title"],"type":"object","properties":{"description":{"maxLength":500,"type":"string","description":"The description which will be displayed when collecting this input"},"skip_button":{"maxLength":14,"type":"string","description":"Custom text for the skip button. Maximum 14 characters."},"submit_button":{"maxLength":30,"type":"string","description":"Custom text for the submit button. Maximum 30 characters."},"title":{"maxLength":40,"type":"string","description":"The title which will be displayed when collecting this input"}},"description":"Customize the text which will be displayed while collecting this input","x-stripeMostCommon":["description","skip_button","submit_button","title"]},"required":{"type":"boolean","description":"Indicate that this input is required, disabling the skip button"},"selection":{"title":"selection_params","required":["choices"],"type":"object","properties":{"choices":{"type":"array","description":"List of choices for the `selection` input","items":{"title":"choice_params","required":["id","text"],"type":"object","properties":{"id":{"maxLength":50,"type":"string","description":"The unique identifier for this choice"},"style":{"type":"string","description":"The style of the button which will be shown for this choice. Can be `primary` or `secondary`.","enum":["primary","secondary"]},"text":{"maxLength":30,"type":"string","description":"The text which will be shown on the button for this choice"}},"x-stripeMostCommon":["id","style","text"]}}},"description":"Options for the `selection` input","x-stripeMostCommon":["choices"]},"toggles":{"type":"array","description":"List of toggles to be displayed and customization for the toggles","items":{"title":"toggle_params","type":"object","properties":{"default_value":{"type":"string","description":"The default value of the toggle. Can be `enabled` or `disabled`.","enum":["disabled","enabled"]},"description":{"maxLength":50,"type":"string","description":"The description which will be displayed for the toggle. Maximum 50 characters. At least one of title or description must be provided."},"title":{"maxLength":50,"type":"string","description":"The title which will be displayed for the toggle. Maximum 50 characters. At least one of title or description must be provided."}},"x-stripeMostCommon":["default_value","description","title"]}},"type":{"type":"string","description":"The type of input to collect","enum":["email","numeric","phone","selection","signature","text"]}},"x-stripeMostCommon":["custom_text","required","type"]}},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."}},"additionalProperties":false,"x-stripeMostCommon":["inputs","metadata"]},"encoding":{"expand":{"style":"deepObject","explode":true},"inputs":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/terminal.reader"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/terminal/readers/{reader}/collect_payment_method":{"post":{"summary":"Hand off a PaymentIntent to a Reader and collect card details","description":"Initiates a payment flow on a Reader and updates the PaymentIntent with card details before manual confirmation. See Collecting a Payment method for more details.
","operationId":"PostTerminalReadersReaderCollectPaymentMethod","parameters":[{"name":"reader","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["payment_intent"],"type":"object","properties":{"collect_config":{"title":"collect_config","type":"object","properties":{"allow_redisplay":{"type":"string","description":"This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow.","enum":["always","limited","unspecified"]},"enable_customer_cancellation":{"type":"boolean","description":"Enables cancel button on transaction screens."},"skip_tipping":{"type":"boolean","description":"Override showing a tipping selection screen on this transaction."},"tipping":{"title":"tipping_config","type":"object","properties":{"amount_eligible":{"type":"integer","description":"Amount used to calculate tip suggestions on tipping selection screen for this transaction. Must be a positive integer in the smallest currency unit (e.g., 100 cents to represent $1.00 or 100 to represent ¥100, a zero-decimal currency)."}},"description":"Tipping configuration for this transaction.","x-stripeMostCommon":["amount_eligible"]}},"description":"Configuration overrides for this collection, such as tipping, surcharging, and customer cancellation settings.","x-stripeMostCommon":["allow_redisplay","enable_customer_cancellation","moto","moto_config","request_dynamic_currency_conversion","skip_donation","skip_tipping","surcharge_notice","tipping"]},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"payment_intent":{"maxLength":5000,"type":"string","description":"The ID of the PaymentIntent to collect a payment method for."}},"additionalProperties":false,"x-stripeMostCommon":["payment_intent"]},"encoding":{"collect_config":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/terminal.reader"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/terminal/readers/{reader}/confirm_payment_intent":{"post":{"summary":"Confirm a PaymentIntent on the Reader","description":"Finalizes a payment on a Reader. See Confirming a Payment for more details.
","operationId":"PostTerminalReadersReaderConfirmPaymentIntent","parameters":[{"name":"reader","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["payment_intent"],"type":"object","properties":{"confirm_config":{"title":"confirm_config","type":"object","properties":{"return_url":{"type":"string","description":"The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. If you'd prefer to redirect to a mobile application, you can alternatively supply an application URI scheme."}},"description":"Configuration overrides for this confirmation, such as surcharge settings and return URL.","x-stripeMostCommon":["amount_surcharge","return_url","surcharge"]},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"payment_intent":{"maxLength":5000,"type":"string","description":"The ID of the PaymentIntent to confirm."}},"additionalProperties":false,"x-stripeMostCommon":["payment_intent"]},"encoding":{"confirm_config":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/terminal.reader"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/terminal/readers/{reader}/process_payment_intent":{"post":{"summary":"Hand-off a PaymentIntent to a Reader","description":"Initiates a payment flow on a Reader. See process the payment for more details.
","operationId":"PostTerminalReadersReaderProcessPaymentIntent","parameters":[{"name":"reader","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["payment_intent"],"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"payment_intent":{"maxLength":5000,"type":"string","description":"The ID of the PaymentIntent to process on the reader."},"process_config":{"title":"process_config","type":"object","properties":{"allow_redisplay":{"type":"string","description":"This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow.","enum":["always","limited","unspecified"]},"enable_customer_cancellation":{"type":"boolean","description":"Enables cancel button on transaction screens."},"return_url":{"type":"string","description":"The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. If you'd prefer to redirect to a mobile application, you can alternatively supply an application URI scheme."},"skip_tipping":{"type":"boolean","description":"Override showing a tipping selection screen on this transaction."},"tipping":{"title":"tipping_config","type":"object","properties":{"amount_eligible":{"type":"integer","description":"Amount used to calculate tip suggestions on tipping selection screen for this transaction. Must be a positive integer in the smallest currency unit (e.g., 100 cents to represent $1.00 or 100 to represent ¥100, a zero-decimal currency)."}},"description":"Tipping configuration for this transaction.","x-stripeMostCommon":["amount_eligible"]}},"description":"Configuration overrides for this transaction, such as tipping and customer cancellation settings.","x-stripeMostCommon":["allow_redisplay","enable_customer_cancellation","moto","moto_config","return_url","skip_donation","skip_tipping","tipping"]}},"additionalProperties":false,"x-stripeMostCommon":["payment_intent"]},"encoding":{"expand":{"style":"deepObject","explode":true},"process_config":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/terminal.reader"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/terminal/readers/{reader}/process_setup_intent":{"post":{"summary":"Hand-off a SetupIntent to a Reader","description":"Initiates a SetupIntent flow on a Reader. See Save directly without charging for more details.
","operationId":"PostTerminalReadersReaderProcessSetupIntent","parameters":[{"name":"reader","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["allow_redisplay","setup_intent"],"type":"object","properties":{"allow_redisplay":{"type":"string","description":"This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow.","enum":["always","limited","unspecified"]},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"process_config":{"title":"process_setup_config","type":"object","properties":{"enable_customer_cancellation":{"type":"boolean","description":"Enables cancel button on transaction screens."}},"description":"Configuration overrides for this setup, such as MOTO and customer cancellation settings.","x-stripeMostCommon":["enable_customer_cancellation","moto","moto_config"]},"setup_intent":{"maxLength":5000,"type":"string","description":"The ID of the SetupIntent to process on the reader."}},"additionalProperties":false,"x-stripeMostCommon":["allow_redisplay","setup_intent"]},"encoding":{"expand":{"style":"deepObject","explode":true},"process_config":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/terminal.reader"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/terminal/readers/{reader}/refund_payment":{"post":{"summary":"Refund a Charge or a PaymentIntent in-person","description":"Initiates an in-person refund on a Reader. See Refund an Interac Payment for more details.
","operationId":"PostTerminalReadersReaderRefundPayment","parameters":[{"name":"reader","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"amount":{"type":"integer","description":"A positive integer in __cents__ representing how much of this charge to refund."},"charge":{"maxLength":5000,"type":"string","description":"ID of the Charge to refund."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"payment_intent":{"maxLength":5000,"type":"string","description":"ID of the PaymentIntent to refund."},"refund_application_fee":{"type":"boolean","description":"Boolean indicating whether the application fee should be refunded when refunding this charge. If a full charge refund is given, the full application fee will be refunded. Otherwise, the application fee will be refunded in an amount proportional to the amount of the charge refunded. An application fee can be refunded only by the application that created the charge."},"refund_payment_config":{"title":"refund_payment_config","type":"object","properties":{"enable_customer_cancellation":{"type":"boolean","description":"Enables cancel button on transaction screens."}},"description":"Configuration overrides for this refund, such as customer cancellation settings.","x-stripeMostCommon":["enable_customer_cancellation"]},"reverse_transfer":{"type":"boolean","description":"Boolean indicating whether the transfer should be reversed when refunding this charge. The transfer will be reversed proportionally to the amount being refunded (either the entire or partial amount). A transfer can be reversed only by the application that created the charge."}},"additionalProperties":false,"x-stripeMostCommon":["amount","charge","metadata","payment_intent","refund_application_fee","reverse_transfer"]},"encoding":{"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true},"refund_payment_config":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/terminal.reader"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/terminal/readers/{reader}/set_reader_display":{"post":{"summary":"Set reader display","description":"Sets the reader display to show cart details.
","operationId":"PostTerminalReadersReaderSetReaderDisplay","parameters":[{"name":"reader","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["type"],"type":"object","properties":{"cart":{"title":"cart","required":["currency","line_items","total"],"type":"object","properties":{"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"line_items":{"type":"array","description":"Array of line items to display.","items":{"title":"line_item","required":["amount","description","quantity"],"type":"object","properties":{"amount":{"type":"integer","description":"The price of the item in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal)."},"description":{"maxLength":5000,"type":"string","description":"The description or name of the item."},"quantity":{"type":"integer","description":"The quantity of the line item being purchased."}},"x-stripeMostCommon":["amount","description","quantity"]}},"tax":{"type":"integer","description":"The amount of tax in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal)."},"total":{"type":"integer","description":"Total balance of cart due in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal)."}},"description":"Cart details to display on the reader screen, including line items, amounts, and currency.","x-stripeMostCommon":["currency","line_items","tax","total"]},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"type":{"type":"string","description":"Type of information to display. Only `cart` is currently supported.","enum":["cart"]}},"additionalProperties":false,"x-stripeMostCommon":["cart","type"]},"encoding":{"cart":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/terminal.reader"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/test_helpers/confirmation_tokens":{"post":{"summary":"Create a test Confirmation Token","description":"Creates a test mode Confirmation Token server side for your integration tests.
","operationId":"PostTestHelpersConfirmationTokens","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"payment_method":{"maxLength":5000,"type":"string","description":"ID of an existing PaymentMethod."},"payment_method_data":{"title":"payment_method_data_params","required":["type"],"type":"object","properties":{"acss_debit":{"title":"payment_method_param","required":["account_number","institution_number","transit_number"],"type":"object","properties":{"account_number":{"maxLength":5000,"type":"string","description":"Customer's bank account number."},"institution_number":{"maxLength":5000,"type":"string","description":"Institution number of the customer's bank."},"transit_number":{"maxLength":5000,"type":"string","description":"Transit number of the customer's bank."}},"description":"If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.","x-stripeMostCommon":["account_number","financial_connections_account","institution_number","transit_number"]},"affirm":{"title":"param","type":"object","properties":{},"description":"If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method."},"afterpay_clearpay":{"title":"param","type":"object","properties":{},"description":"If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method."},"alipay":{"title":"param","type":"object","properties":{},"description":"If this is an `Alipay` PaymentMethod, this hash contains details about the Alipay payment method."},"allow_redisplay":{"type":"string","description":"This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`.","enum":["always","limited","unspecified"]},"alma":{"title":"param","type":"object","properties":{},"description":"If this is a Alma PaymentMethod, this hash contains details about the Alma payment method."},"amazon_pay":{"title":"param","type":"object","properties":{},"description":"If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method."},"au_becs_debit":{"title":"param","required":["account_number","bsb_number"],"type":"object","properties":{"account_number":{"maxLength":5000,"type":"string","description":"The account number for the bank account."},"bsb_number":{"maxLength":5000,"type":"string","description":"Bank-State-Branch number of the bank account."}},"description":"If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.","x-stripeMostCommon":["account_number","bsb_number"]},"bacs_debit":{"title":"param","type":"object","properties":{"account_number":{"maxLength":5000,"type":"string","description":"Account number of the bank account that the funds will be debited from."},"sort_code":{"maxLength":5000,"type":"string","description":"Sort code of the bank account. (e.g., `10-20-30`)"}},"description":"If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.","x-stripeMostCommon":["account_number","sort_code"]},"bancontact":{"title":"param","type":"object","properties":{},"description":"If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method."},"billie":{"title":"param","type":"object","properties":{},"description":"If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method."},"billing_details":{"title":"billing_details_inner_params","type":"object","properties":{"address":{"description":"Billing address.","anyOf":[{"title":"billing_details_address","type":"object","properties":{"city":{"maxLength":5000,"type":"string","description":"City, district, suburb, town, or village."},"country":{"maxLength":5000,"type":"string","description":"Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."},"line1":{"maxLength":5000,"type":"string","description":"Address line 1, such as the street, PO Box, or company name."},"line2":{"maxLength":5000,"type":"string","description":"Address line 2, such as the apartment, suite, unit, or building."},"postal_code":{"maxLength":5000,"type":"string","description":"ZIP or postal code."},"state":{"maxLength":5000,"type":"string","description":"State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))."}},"x-stripeMostCommon":["city","country","line1","line2","postal_code","state"]},{"type":"string","enum":[""]}]},"email":{"description":"Email address.","anyOf":[{"type":"string"},{"type":"string","enum":[""]}]},"name":{"description":"Full name.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]},"phone":{"description":"Billing phone number (including extension).","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]},"tax_id":{"maxLength":5000,"type":"string","description":"Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers."}},"description":"Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.","x-stripeMostCommon":["address","email","name","phone","tax_id"]},"blik":{"title":"param","type":"object","properties":{},"description":"If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method."},"boleto":{"title":"param","required":["tax_id"],"type":"object","properties":{"tax_id":{"maxLength":5000,"type":"string","description":"The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)"}},"description":"If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.","x-stripeMostCommon":["tax_id"]},"cashapp":{"title":"param","type":"object","properties":{},"description":"If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method."},"crypto":{"title":"param","type":"object","properties":{},"description":"If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method."},"customer_balance":{"title":"param","type":"object","properties":{},"description":"If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method."},"eps":{"title":"param","type":"object","properties":{"bank":{"maxLength":5000,"type":"string","description":"The customer's bank.","enum":["arzte_und_apotheker_bank","austrian_anadi_bank_ag","bank_austria","bankhaus_carl_spangler","bankhaus_schelhammer_und_schattera_ag","bawag_psk_ag","bks_bank_ag","brull_kallmus_bank_ag","btv_vier_lander_bank","capital_bank_grawe_gruppe_ag","deutsche_bank_ag","dolomitenbank","easybank_ag","erste_bank_und_sparkassen","hypo_alpeadriabank_international_ag","hypo_bank_burgenland_aktiengesellschaft","hypo_noe_lb_fur_niederosterreich_u_wien","hypo_oberosterreich_salzburg_steiermark","hypo_tirol_bank_ag","hypo_vorarlberg_bank_ag","marchfelder_bank","oberbank_ag","raiffeisen_bankengruppe_osterreich","schoellerbank_ag","sparda_bank_wien","volksbank_gruppe","volkskreditbank_ag","vr_bank_braunau"]}},"description":"If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.","x-stripeMostCommon":["bank"]},"fpx":{"title":"param","required":["bank"],"type":"object","properties":{"account_holder_type":{"maxLength":5000,"type":"string","description":"Account holder type for FPX transaction","enum":["company","individual"]},"bank":{"maxLength":5000,"type":"string","description":"The customer's bank.","enum":["affin_bank","agrobank","alliance_bank","ambank","bank_islam","bank_muamalat","bank_of_china","bank_rakyat","bsn","cimb","deutsche_bank","hong_leong_bank","hsbc","kfh","maybank2e","maybank2u","ocbc","pb_enterprise","public_bank","rhb","standard_chartered","uob"],"x-stripeBypassValidation":true}},"description":"If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.","x-stripeMostCommon":["account_holder_type","bank"]},"giropay":{"title":"param","type":"object","properties":{},"description":"If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method."},"grabpay":{"title":"param","type":"object","properties":{},"description":"If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method."},"ideal":{"title":"param","type":"object","properties":{"bank":{"maxLength":5000,"type":"string","description":"The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.","enum":["abn_amro","adyen","asn_bank","bunq","buut","finom","handelsbanken","ing","knab","mollie","moneyou","n26","nn","rabobank","regiobank","revolut","sns_bank","triodos_bank","van_lanschot","yoursafe"]}},"description":"If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.","x-stripeMostCommon":["bank"]},"interac_present":{"title":"param","type":"object","properties":{},"description":"If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.","x-stripeMostCommon":["device_identifier","device_type","emv","location"]},"kakao_pay":{"title":"param","type":"object","properties":{},"description":"If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method."},"klarna":{"title":"param","type":"object","properties":{"dob":{"title":"date_of_birth","required":["day","month","year"],"type":"object","properties":{"day":{"type":"integer","description":"The day of birth, between 1 and 31."},"month":{"type":"integer","description":"The month of birth, between 1 and 12."},"year":{"type":"integer","description":"The four-digit year of birth."}},"description":"Customer's date of birth","x-stripeMostCommon":["day","month","year"]}},"description":"If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method.","x-stripeMostCommon":["dob"]},"konbini":{"title":"param","type":"object","properties":{},"description":"If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method."},"kr_card":{"title":"param","type":"object","properties":{},"description":"If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method."},"link":{"title":"param","type":"object","properties":{},"description":"If this is an `Link` PaymentMethod, this hash contains details about the Link payment method."},"mb_way":{"title":"param","type":"object","properties":{},"description":"If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method."},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"mobilepay":{"title":"param","type":"object","properties":{},"description":"If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method."},"multibanco":{"title":"param","type":"object","properties":{},"description":"If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method."},"naver_pay":{"title":"param","type":"object","properties":{"funding":{"type":"string","description":"Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.","enum":["card","points"],"x-stripeBypassValidation":true}},"description":"If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.","x-stripeMostCommon":["funding"]},"nz_bank_account":{"title":"param","required":["account_number","bank_code","branch_code","suffix"],"type":"object","properties":{"account_holder_name":{"maxLength":5000,"type":"string","description":"The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details."},"account_number":{"maxLength":5000,"type":"string","description":"The account number for the bank account."},"bank_code":{"maxLength":5000,"type":"string","description":"The numeric code for the bank account's bank."},"branch_code":{"maxLength":5000,"type":"string","description":"The numeric code for the bank account's bank branch."},"reference":{"maxLength":128,"type":"string"},"suffix":{"maxLength":5000,"type":"string","description":"The suffix of the bank account number."}},"description":"If this is an nz_bank_account PaymentMethod, this hash contains details about the nz_bank_account payment method.","x-stripeMostCommon":["account_holder_name","account_number","bank_code","branch_code","reference","suffix"]},"oxxo":{"title":"param","type":"object","properties":{},"description":"If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method."},"p24":{"title":"param","type":"object","properties":{"bank":{"type":"string","description":"The customer's bank.","enum":["alior_bank","bank_millennium","bank_nowy_bfg_sa","bank_pekao_sa","banki_spbdzielcze","blik","bnp_paribas","boz","citi_handlowy","credit_agricole","envelobank","etransfer_pocztowy24","getin_bank","ideabank","ing","inteligo","mbank_mtransfer","nest_przelew","noble_pay","pbac_z_ipko","plus_bank","santander_przelew24","tmobile_usbugi_bankowe","toyota_bank","velobank","volkswagen_bank"],"x-stripeBypassValidation":true}},"description":"If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.","x-stripeMostCommon":["bank"]},"pay_by_bank":{"title":"param","type":"object","properties":{},"description":"If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method."},"payco":{"title":"param","type":"object","properties":{},"description":"If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method."},"paynow":{"title":"param","type":"object","properties":{},"description":"If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method."},"paypal":{"title":"param","type":"object","properties":{},"description":"If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method."},"payto":{"title":"param","type":"object","properties":{"account_number":{"maxLength":5000,"type":"string","description":"The account number for the bank account."},"bsb_number":{"maxLength":5000,"type":"string","description":"Bank-State-Branch number of the bank account."},"pay_id":{"maxLength":5000,"type":"string","description":"The PayID alias for the bank account."}},"description":"If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.","x-stripeMostCommon":["account_number","bsb_number","pay_id"]},"pix":{"title":"param","type":"object","properties":{},"description":"If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.","x-stripeMostCommon":["tax_id"]},"promptpay":{"title":"param","type":"object","properties":{},"description":"If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method."},"radar_options":{"title":"radar_options_with_hidden_options","type":"object","properties":{"session":{"maxLength":5000,"type":"string","description":"A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments."}},"description":"Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.","x-stripeMostCommon":["session","skip_rules"]},"revolut_pay":{"title":"param","type":"object","properties":{},"description":"If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method."},"samsung_pay":{"title":"param","type":"object","properties":{},"description":"If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method."},"satispay":{"title":"param","type":"object","properties":{},"description":"If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method."},"sepa_debit":{"title":"param","required":["iban"],"type":"object","properties":{"iban":{"maxLength":5000,"type":"string","description":"IBAN of the bank account."}},"description":"If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.","x-stripeMostCommon":["iban"]},"sofort":{"title":"param","required":["country"],"type":"object","properties":{"country":{"type":"string","description":"Two-letter ISO code representing the country the bank account is located in.","enum":["AT","BE","DE","ES","IT","NL"]}},"description":"If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.","x-stripeMostCommon":["country"]},"swish":{"title":"param","type":"object","properties":{},"description":"If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method."},"twint":{"title":"param","type":"object","properties":{},"description":"If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method."},"type":{"type":"string","description":"The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.","enum":["acss_debit","affirm","afterpay_clearpay","alipay","alma","amazon_pay","au_becs_debit","bacs_debit","bancontact","billie","blik","boleto","cashapp","crypto","customer_balance","eps","fpx","giropay","grabpay","ideal","kakao_pay","klarna","konbini","kr_card","link","mb_way","mobilepay","multibanco","naver_pay","nz_bank_account","oxxo","p24","pay_by_bank","payco","paynow","paypal","payto","pix","promptpay","revolut_pay","samsung_pay","satispay","sepa_debit","sofort","swish","twint","upi","us_bank_account","wechat_pay","zip"],"x-stripeBypassValidation":true},"upi":{"title":"param","type":"object","properties":{"mandate_options":{"title":"mandate_options","type":"object","properties":{"amount":{"type":"integer","description":"Amount to be charged for future payments."},"amount_type":{"type":"string","description":"One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.","enum":["fixed","maximum"]},"description":{"maxLength":20,"type":"string","description":"A description of the mandate or subscription that is meant to be displayed to the customer."},"end_date":{"type":"integer","description":"End date of the mandate or subscription.","format":"unix-time"}},"description":"Configuration options for setting up an eMandate","x-stripeMostCommon":["amount","amount_type","description","end_date"]}},"description":"If this is a `upi` PaymentMethod, this hash contains details about the UPI payment method.","x-stripeMostCommon":["mandate_options","vpa"]},"us_bank_account":{"title":"payment_method_param","type":"object","properties":{"account_holder_type":{"type":"string","description":"Account holder type: individual or company.","enum":["company","individual"]},"account_number":{"maxLength":5000,"type":"string","description":"Account number of the bank account."},"account_type":{"type":"string","description":"Account type: checkings or savings. Defaults to checking if omitted.","enum":["checking","savings"]},"financial_connections_account":{"maxLength":5000,"type":"string","description":"The ID of a Financial Connections Account to use as a payment method."},"routing_number":{"maxLength":5000,"type":"string","description":"Routing number of the bank account."}},"description":"If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.","x-stripeMostCommon":["account_holder_type","account_number","account_type","financial_connections_account","routing_number","token"]},"wechat_pay":{"title":"param","type":"object","properties":{},"description":"If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method."},"zip":{"title":"param","type":"object","properties":{},"description":"If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method."}},"description":"If provided, this hash will be used to create a PaymentMethod.","x-stripeMostCommon":["billing_details","metadata","type"]},"payment_method_options":{"title":"test_payment_method_options_param","type":"object","properties":{"card":{"title":"card_param","type":"object","properties":{"installments":{"title":"installments_param","required":["plan"],"type":"object","properties":{"plan":{"title":"installment_plan","required":["type"],"type":"object","properties":{"count":{"type":"integer","description":"For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card."},"interval":{"type":"string","description":"For `fixed_count` installment plans, this is required. It represents the interval between installment payments your customer will make to their credit card.\nOne of `month`.","enum":["month"]},"type":{"type":"string","description":"Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`.","enum":["bonus","fixed_count","revolving"]}},"description":"The selected installment plan to use for this payment attempt.\nThis parameter can only be provided during confirmation.","x-stripeMostCommon":["count","interval","type"]}},"description":"Installment configuration for payments confirmed using this ConfirmationToken.","x-stripeMostCommon":["plan"]}},"description":"Configuration for any card payments confirmed using this ConfirmationToken.","x-stripeMostCommon":["installments"]}},"description":"Payment-method-specific configuration for this ConfirmationToken.","x-stripeMostCommon":["card"]},"return_url":{"type":"string","description":"Return URL used to confirm the Intent."},"setup_future_usage":{"type":"string","description":"Indicates that you intend to make future payments with this ConfirmationToken's payment method.\n\nThe presence of this property will [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete.","enum":["off_session","on_session"]},"shipping":{"title":"recipient_shipping_with_optional_fields_address","required":["address","name"],"type":"object","properties":{"address":{"title":"optional_fields_address","type":"object","properties":{"city":{"maxLength":5000,"type":"string","description":"City, district, suburb, town, or village."},"country":{"maxLength":5000,"type":"string","description":"Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."},"line1":{"maxLength":5000,"type":"string","description":"Address line 1, such as the street, PO Box, or company name."},"line2":{"maxLength":5000,"type":"string","description":"Address line 2, such as the apartment, suite, unit, or building."},"postal_code":{"maxLength":5000,"type":"string","description":"ZIP or postal code."},"state":{"maxLength":5000,"type":"string","description":"State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))."}},"description":"Shipping address","x-stripeMostCommon":["city","country","line1","line2","postal_code","state"]},"name":{"maxLength":5000,"type":"string","description":"Recipient name."},"phone":{"description":"Recipient phone (including extension)","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]}},"description":"Shipping information for this ConfirmationToken.","x-stripeMostCommon":["address","name","phone"]}},"additionalProperties":false,"x-stripeMostCommon":["payment_method","payment_method_data","payment_method_options","return_url","setup_future_usage","shipping"]},"encoding":{"expand":{"style":"deepObject","explode":true},"payment_method_data":{"style":"deepObject","explode":true},"payment_method_options":{"style":"deepObject","explode":true},"shipping":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/confirmation_token"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/test_helpers/customers/{customer}/fund_cash_balance":{"post":{"summary":"Fund a test mode cash balance","description":"Create an incoming testmode bank transfer
","operationId":"PostTestHelpersCustomersCustomerFundCashBalance","parameters":[{"name":"customer","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["amount","currency"],"type":"object","properties":{"amount":{"type":"integer","description":"Amount to be used for this test cash balance transaction. A positive integer representing how much to fund in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) (e.g., 100 cents to fund $1.00 or 100 to fund ¥100, a zero-decimal currency)."},"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"reference":{"maxLength":5000,"type":"string","description":"A description of the test funding. This simulates free-text references supplied by customers when making bank transfers to their cash balance. You can use this to test how Stripe's [reconciliation algorithm](https://docs.stripe.com/payments/customer-balance/reconciliation) applies to different user inputs."}},"additionalProperties":false,"x-stripeMostCommon":["amount","currency"]},"encoding":{"expand":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/customer_cash_balance_transaction"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/test_helpers/issuing/authorizations":{"post":{"summary":"Create a test-mode authorization","description":"Create a test-mode authorization.
","operationId":"PostTestHelpersIssuingAuthorizations","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["card"],"type":"object","properties":{"amount":{"type":"integer","description":"The total amount to attempt to authorize. This amount is in the provided currency, or defaults to the card's currency, and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal)."},"amount_details":{"title":"amount_details_specs","type":"object","properties":{"atm_fee":{"type":"integer","description":"The ATM withdrawal fee."},"cashback_amount":{"type":"integer","description":"The amount of cash requested by the cardholder."}},"description":"Detailed breakdown of amount components. These amounts are denominated in `currency` and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).","x-stripeMostCommon":["atm_fee","cashback_amount"]},"authorization_method":{"type":"string","description":"How the card details were provided. Defaults to online.","enum":["chip","contactless","keyed_in","online","swipe"]},"card":{"maxLength":5000,"type":"string","description":"Card associated with this authorization."},"currency":{"type":"string","description":"The currency of the authorization. If not provided, defaults to the currency of the card. Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"fleet":{"title":"fleet_testmode_authorization_specs","type":"object","properties":{"cardholder_prompt_data":{"title":"fleet_cardholder_prompt_data_specs","type":"object","properties":{"driver_id":{"maxLength":5000,"type":"string","description":"Driver ID."},"odometer":{"type":"integer","description":"Odometer reading."},"unspecified_id":{"maxLength":5000,"type":"string","description":"An alphanumeric ID. This field is used when a vehicle ID, driver ID, or generic ID is entered by the cardholder, but the merchant or card network did not specify the prompt type."},"user_id":{"maxLength":5000,"type":"string","description":"User ID."},"vehicle_number":{"maxLength":5000,"type":"string","description":"Vehicle number."}},"description":"Answers to prompts presented to the cardholder at the point of sale. Prompted fields vary depending on the configuration of your physical fleet cards. Typical points of sale support only numeric entry.","x-stripeMostCommon":["driver_id","odometer","unspecified_id","user_id","vehicle_number"]},"purchase_type":{"maxLength":5000,"type":"string","description":"The type of purchase. One of `fuel_purchase`, `non_fuel_purchase`, or `fuel_and_non_fuel_purchase`.","enum":["fuel_and_non_fuel_purchase","fuel_purchase","non_fuel_purchase"]},"reported_breakdown":{"title":"fleet_reported_breakdown_specs","type":"object","properties":{"fuel":{"title":"fleet_reported_breakdown_fuel_specs","type":"object","properties":{"gross_amount_decimal":{"type":"string","description":"Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes.","format":"decimal"}},"description":"Breakdown of fuel portion of the purchase.","x-stripeMostCommon":["gross_amount_decimal"]},"non_fuel":{"title":"fleet_reported_breakdown_non_fuel_specs","type":"object","properties":{"gross_amount_decimal":{"type":"string","description":"Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes.","format":"decimal"}},"description":"Breakdown of non-fuel portion of the purchase.","x-stripeMostCommon":["gross_amount_decimal"]},"tax":{"title":"fleet_reported_breakdown_tax_specs","type":"object","properties":{"local_amount_decimal":{"type":"string","description":"Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax.","format":"decimal"},"national_amount_decimal":{"type":"string","description":"Amount of national Sales Tax or VAT included in the transaction amount. Null if not reported by merchant or not subject to tax.","format":"decimal"}},"description":"Information about tax included in this transaction.","x-stripeMostCommon":["local_amount_decimal","national_amount_decimal"]}},"description":"More information about the total amount. This information is not guaranteed to be accurate as some merchants may provide unreliable data.","x-stripeMostCommon":["fuel","non_fuel","tax"]},"service_type":{"maxLength":5000,"type":"string","description":"The type of fuel service. One of `non_fuel_transaction`, `full_service`, or `self_service`.","enum":["full_service","non_fuel_transaction","self_service"]}},"description":"Fleet-specific information for authorizations using Fleet cards.","x-stripeMostCommon":["cardholder_prompt_data","dynamic_purchase_controls_supported","purchase_type","reported_breakdown","service_type"]},"fraud_disputability_likelihood":{"type":"string","description":"Probability that this transaction can be disputed in the event of fraud. Assessed by comparing the characteristics of the authorization to card network rules.","enum":["neutral","unknown","very_likely","very_unlikely"]},"fuel":{"title":"fuel_specs","type":"object","properties":{"industry_product_code":{"maxLength":5000,"type":"string","description":"[Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased."},"quantity_decimal":{"type":"string","description":"The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.","format":"decimal"},"type":{"maxLength":5000,"type":"string","description":"The type of fuel that was purchased. One of `diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`.","enum":["diesel","other","unleaded_plus","unleaded_regular","unleaded_super"]},"unit":{"maxLength":5000,"type":"string","description":"The units for `quantity_decimal`. One of `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, `liter`, `pound`, `us_gallon`, or `other`.","enum":["charging_minute","imperial_gallon","kilogram","kilowatt_hour","liter","other","pound","us_gallon"]},"unit_cost_decimal":{"type":"string","description":"The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.","format":"decimal"}},"description":"Information about fuel that was purchased with this transaction.","x-stripeMostCommon":["industry_product_code","quantity_decimal","type","unit","unit_cost_decimal"]},"is_amount_controllable":{"type":"boolean","description":"If set `true`, you may provide [amount](https://docs.stripe.com/api/issuing/authorizations/approve#approve_issuing_authorization-amount) to control how much to hold for the authorization."},"merchant_amount":{"type":"integer","description":"The total amount to attempt to authorize. This amount is in the provided merchant currency, and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal)."},"merchant_currency":{"type":"string","description":"The currency of the authorization. If not provided, defaults to the currency of the card. Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"merchant_data":{"title":"merchant_data_specs","type":"object","properties":{"category":{"maxLength":5000,"type":"string","description":"A categorization of the seller's type of business. See our [merchant categories guide](https://docs.stripe.com/issuing/merchant-categories) for a list of possible values.","enum":["ac_refrigeration_repair","accounting_bookkeeping_services","advertising_services","agricultural_cooperative","airlines_air_carriers","airports_flying_fields","ambulance_services","amusement_parks_carnivals","antique_reproductions","antique_shops","aquariums","architectural_surveying_services","art_dealers_and_galleries","artists_supply_and_craft_shops","auto_and_home_supply_stores","auto_body_repair_shops","auto_paint_shops","auto_service_shops","automated_cash_disburse","automated_fuel_dispensers","automobile_associations","automotive_parts_and_accessories_stores","automotive_tire_stores","bail_and_bond_payments","bakeries","bands_orchestras","barber_and_beauty_shops","betting_casino_gambling","bicycle_shops","billiard_pool_establishments","boat_dealers","boat_rentals_and_leases","book_stores","books_periodicals_and_newspapers","bowling_alleys","bus_lines","business_secretarial_schools","buying_shopping_services","cable_satellite_and_other_pay_television_and_radio","camera_and_photographic_supply_stores","candy_nut_and_confectionery_stores","car_and_truck_dealers_new_used","car_and_truck_dealers_used_only","car_rental_agencies","car_washes","carpentry_services","carpet_upholstery_cleaning","caterers","charitable_and_social_service_organizations_fundraising","chemicals_and_allied_products","child_care_services","childrens_and_infants_wear_stores","chiropodists_podiatrists","chiropractors","cigar_stores_and_stands","civic_social_fraternal_associations","cleaning_and_maintenance","clothing_rental","colleges_universities","commercial_equipment","commercial_footwear","commercial_photography_art_and_graphics","commuter_transport_and_ferries","computer_network_services","computer_programming","computer_repair","computer_software_stores","computers_peripherals_and_software","concrete_work_services","construction_materials","consulting_public_relations","correspondence_schools","cosmetic_stores","counseling_services","country_clubs","courier_services","court_costs","credit_reporting_agencies","cruise_lines","dairy_products_stores","dance_hall_studios_schools","dating_escort_services","dentists_orthodontists","department_stores","detective_agencies","digital_goods_applications","digital_goods_games","digital_goods_large_volume","digital_goods_media","direct_marketing_catalog_merchant","direct_marketing_combination_catalog_and_retail_merchant","direct_marketing_inbound_telemarketing","direct_marketing_insurance_services","direct_marketing_other","direct_marketing_outbound_telemarketing","direct_marketing_subscription","direct_marketing_travel","discount_stores","doctors","door_to_door_sales","drapery_window_covering_and_upholstery_stores","drinking_places","drug_stores_and_pharmacies","drugs_drug_proprietaries_and_druggist_sundries","dry_cleaners","durable_goods","duty_free_stores","eating_places_restaurants","educational_services","electric_razor_stores","electric_vehicle_charging","electrical_parts_and_equipment","electrical_services","electronics_repair_shops","electronics_stores","elementary_secondary_schools","emergency_services_gcas_visa_use_only","employment_temp_agencies","equipment_rental","exterminating_services","family_clothing_stores","fast_food_restaurants","financial_institutions","fines_government_administrative_entities","fireplace_fireplace_screens_and_accessories_stores","floor_covering_stores","florists","florists_supplies_nursery_stock_and_flowers","freezer_and_locker_meat_provisioners","fuel_dealers_non_automotive","funeral_services_crematories","furniture_home_furnishings_and_equipment_stores_except_appliances","furniture_repair_refinishing","furriers_and_fur_shops","general_services","gift_card_novelty_and_souvenir_shops","glass_paint_and_wallpaper_stores","glassware_crystal_stores","golf_courses_public","government_licensed_horse_dog_racing_us_region_only","government_licensed_online_casions_online_gambling_us_region_only","government_owned_lotteries_non_us_region","government_owned_lotteries_us_region_only","government_services","grocery_stores_supermarkets","hardware_equipment_and_supplies","hardware_stores","health_and_beauty_spas","hearing_aids_sales_and_supplies","heating_plumbing_a_c","hobby_toy_and_game_shops","home_supply_warehouse_stores","hospitals","hotels_motels_and_resorts","household_appliance_stores","industrial_supplies","information_retrieval_services","insurance_default","insurance_underwriting_premiums","intra_company_purchases","jewelry_stores_watches_clocks_and_silverware_stores","landscaping_services","laundries","laundry_cleaning_services","legal_services_attorneys","luggage_and_leather_goods_stores","lumber_building_materials_stores","manual_cash_disburse","marinas_service_and_supplies","marketplaces","masonry_stonework_and_plaster","massage_parlors","medical_and_dental_labs","medical_dental_ophthalmic_and_hospital_equipment_and_supplies","medical_services","membership_organizations","mens_and_boys_clothing_and_accessories_stores","mens_womens_clothing_stores","metal_service_centers","miscellaneous_apparel_and_accessory_shops","miscellaneous_auto_dealers","miscellaneous_business_services","miscellaneous_food_stores","miscellaneous_general_merchandise","miscellaneous_general_services","miscellaneous_home_furnishing_specialty_stores","miscellaneous_publishing_and_printing","miscellaneous_recreation_services","miscellaneous_repair_shops","miscellaneous_specialty_retail","mobile_home_dealers","motion_picture_theaters","motor_freight_carriers_and_trucking","motor_homes_dealers","motor_vehicle_supplies_and_new_parts","motorcycle_shops_and_dealers","motorcycle_shops_dealers","music_stores_musical_instruments_pianos_and_sheet_music","news_dealers_and_newsstands","non_fi_money_orders","non_fi_stored_value_card_purchase_load","nondurable_goods","nurseries_lawn_and_garden_supply_stores","nursing_personal_care","office_and_commercial_furniture","opticians_eyeglasses","optometrists_ophthalmologist","orthopedic_goods_prosthetic_devices","osteopaths","package_stores_beer_wine_and_liquor","paints_varnishes_and_supplies","parking_lots_garages","passenger_railways","pawn_shops","pet_shops_pet_food_and_supplies","petroleum_and_petroleum_products","photo_developing","photographic_photocopy_microfilm_equipment_and_supplies","photographic_studios","picture_video_production","piece_goods_notions_and_other_dry_goods","plumbing_heating_equipment_and_supplies","political_organizations","postal_services_government_only","precious_stones_and_metals_watches_and_jewelry","professional_services","public_warehousing_and_storage","quick_copy_repro_and_blueprint","railroads","real_estate_agents_and_managers_rentals","record_stores","recreational_vehicle_rentals","religious_goods_stores","religious_organizations","roofing_siding_sheet_metal","secretarial_support_services","security_brokers_dealers","service_stations","sewing_needlework_fabric_and_piece_goods_stores","shoe_repair_hat_cleaning","shoe_stores","small_appliance_repair","snowmobile_dealers","special_trade_services","specialty_cleaning","sporting_goods_stores","sporting_recreation_camps","sports_and_riding_apparel_stores","sports_clubs_fields","stamp_and_coin_stores","stationary_office_supplies_printing_and_writing_paper","stationery_stores_office_and_school_supply_stores","swimming_pools_sales","t_ui_travel_germany","tailors_alterations","tax_payments_government_agencies","tax_preparation_services","taxicabs_limousines","telecommunication_equipment_and_telephone_sales","telecommunication_services","telegraph_services","tent_and_awning_shops","testing_laboratories","theatrical_ticket_agencies","timeshares","tire_retreading_and_repair","tolls_bridge_fees","tourist_attractions_and_exhibits","towing_services","trailer_parks_campgrounds","transportation_services","travel_agencies_tour_operators","truck_stop_iteration","truck_utility_trailer_rentals","typesetting_plate_making_and_related_services","typewriter_stores","u_s_federal_government_agencies_or_departments","uniforms_commercial_clothing","used_merchandise_and_secondhand_stores","utilities","variety_stores","veterinary_services","video_amusement_game_supplies","video_game_arcades","video_tape_rental_stores","vocational_trade_schools","watch_jewelry_repair","welding_repair","wholesale_clubs","wig_and_toupee_stores","wires_money_orders","womens_accessory_and_specialty_shops","womens_ready_to_wear_stores","wrecking_and_salvage_yards"]},"city":{"maxLength":5000,"type":"string","description":"City where the seller is located"},"country":{"maxLength":5000,"type":"string","description":"Country where the seller is located"},"name":{"maxLength":5000,"type":"string","description":"Name of the seller"},"network_id":{"maxLength":5000,"type":"string","description":"Identifier assigned to the seller by the card network. Different card networks may assign different network_id fields to the same merchant."},"postal_code":{"maxLength":5000,"type":"string","description":"Postal code where the seller is located"},"state":{"maxLength":5000,"type":"string","description":"State where the seller is located"},"terminal_id":{"maxLength":5000,"type":"string","description":"An ID assigned by the seller to the location of the sale."},"url":{"maxLength":5000,"type":"string","description":"URL provided by the merchant on a 3DS request"}},"description":"Details about the seller (grocery store, e-commerce website, etc.) where the card authorization happened.","x-stripeMostCommon":["category","city","country","name","network_id","postal_code","state","terminal_id","url"]},"network_data":{"title":"network_data_specs","type":"object","properties":{"acquiring_institution_id":{"maxLength":5000,"type":"string","description":"Identifier assigned to the acquirer by the card network."}},"description":"Details about the authorization, such as identifiers, set by the card network.","x-stripeMostCommon":["acquiring_institution_id","routed_network"]},"risk_assessment":{"title":"risk_assessment_specs","type":"object","properties":{"card_testing_risk":{"title":"card_testing_risk_specs","required":["level"],"type":"object","properties":{"invalid_account_number_decline_rate_past_hour":{"type":"integer","description":"The % of declines due to a card number not existing in the past hour, taking place at the same merchant. Higher rates correspond to a greater probability of card testing activity, meaning bad actors may be attempting different card number combinations to guess a correct one. Takes on values between 0 and 100."},"invalid_credentials_decline_rate_past_hour":{"type":"integer","description":"The % of declines due to incorrect verification data (like CVV or expiry) in the past hour, taking place at the same merchant. Higher rates correspond to a greater probability of bad actors attempting to utilize valid card credentials at merchants with verification requirements. Takes on values between 0 and 100."},"level":{"type":"string","description":"The likelihood that this authorization is associated with card testing activity. This is assessed by evaluating decline activity over the last hour.","enum":["elevated","highest","low","normal","not_assessed","unknown"],"x-stripeBypassValidation":true}},"description":"Stripe's assessment of this authorization's likelihood of being card testing activity.","x-stripeMostCommon":["invalid_account_number_decline_rate_past_hour","invalid_credentials_decline_rate_past_hour","level"]},"fraud_risk":{"title":"fraud_risk_specs","required":["level"],"type":"object","properties":{"level":{"type":"string","description":"Stripe’s assessment of the likelihood of fraud on an authorization.","enum":["elevated","highest","low","normal","not_assessed","unknown"],"x-stripeBypassValidation":true},"score":{"type":"number","description":"Stripe’s numerical model score assessing the likelihood of fraudulent activity. A higher score means a higher likelihood of fraudulent activity, and anything above 25 is considered high risk."}},"description":"Stripe’s assessment of this authorization’s likelihood to be fraudulent.","x-stripeMostCommon":["level","score"]},"merchant_dispute_risk":{"title":"merchant_dispute_risk_specs","required":["level"],"type":"object","properties":{"dispute_rate":{"type":"integer","description":"The dispute rate observed across all Stripe Issuing authorizations for this merchant. For example, a value of 50 means 50% of authorizations from this merchant on Stripe Issuing have resulted in a dispute. Higher values mean a higher likelihood the authorization is disputed. Takes on values between 0 and 100."},"level":{"type":"string","description":"The likelihood that authorizations from this merchant will result in a dispute based on their history on Stripe Issuing.","enum":["elevated","highest","low","normal","not_assessed","unknown"],"x-stripeBypassValidation":true}},"description":"The dispute risk of the merchant (the seller on a purchase) on an authorization based on all Stripe Issuing activity.","x-stripeMostCommon":["dispute_rate","level"]}},"description":"Stripe’s assessment of the fraud risk for this authorization.","x-stripeMostCommon":["card_testing_risk","fraud_risk","merchant_dispute_risk"]},"verification_data":{"title":"verification_data_specs","type":"object","properties":{"address_line1_check":{"type":"string","description":"Whether the cardholder provided an address first line and if it matched the cardholder’s `billing.address.line1`.","enum":["match","mismatch","not_provided"]},"address_postal_code_check":{"type":"string","description":"Whether the cardholder provided a postal code and if it matched the cardholder’s `billing.address.postal_code`.","enum":["match","mismatch","not_provided"]},"authentication_exemption":{"title":"authentication_exemption_specs","required":["claimed_by","type"],"type":"object","properties":{"claimed_by":{"type":"string","description":"The entity that requested the exemption, either the acquiring merchant or the Issuing user.","enum":["acquirer","issuer"]},"type":{"type":"string","description":"The specific exemption claimed for this authorization.","enum":["low_value_transaction","transaction_risk_analysis","unknown"],"x-stripeBypassValidation":true}},"description":"The exemption applied to this authorization.","x-stripeMostCommon":["claimed_by","type"]},"cvc_check":{"type":"string","description":"Whether the cardholder provided a CVC and if it matched Stripe’s record.","enum":["match","mismatch","not_provided"]},"expiry_check":{"type":"string","description":"Whether the cardholder provided an expiry date and if it matched Stripe’s record.","enum":["match","mismatch","not_provided"]},"three_d_secure":{"title":"three_d_secure_specs","required":["result"],"type":"object","properties":{"result":{"type":"string","description":"The outcome of the 3D Secure authentication request.","enum":["attempt_acknowledged","authenticated","failed","required"],"x-stripeBypassValidation":true}},"description":"3D Secure details.","x-stripeMostCommon":["result"]}},"description":"Verifications that Stripe performed on information that the cardholder provided to the merchant.","x-stripeMostCommon":["address_line1_check","address_postal_code_check","authentication_exemption","cvc_check","expiry_check","three_d_secure"]},"wallet":{"type":"string","description":"The digital wallet used for this transaction. One of `apple_pay`, `google_pay`, or `samsung_pay`. Will populate as `null` when no digital wallet was utilized.","enum":["apple_pay","google_pay","samsung_pay"]}},"additionalProperties":false,"x-stripeMostCommon":["amount","card","currency"]},"encoding":{"amount_details":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"fleet":{"style":"deepObject","explode":true},"fuel":{"style":"deepObject","explode":true},"merchant_data":{"style":"deepObject","explode":true},"network_data":{"style":"deepObject","explode":true},"risk_assessment":{"style":"deepObject","explode":true},"verification_data":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/issuing.authorization"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/test_helpers/issuing/authorizations/{authorization}/capture":{"post":{"summary":"Capture a test-mode authorization","description":"Capture a test-mode authorization.
","operationId":"PostTestHelpersIssuingAuthorizationsAuthorizationCapture","parameters":[{"name":"authorization","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"capture_amount":{"type":"integer","description":"The amount to capture from the authorization. If not provided, the full amount of the authorization will be captured. This amount is in the authorization currency and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal)."},"close_authorization":{"type":"boolean","description":"Whether to close the authorization after capture. Defaults to true. Set to false to enable multi-capture flows."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"purchase_details":{"title":"purchase_details_specs","type":"object","properties":{"fleet":{"title":"fleet_specs","type":"object","properties":{"cardholder_prompt_data":{"title":"fleet_cardholder_prompt_data_specs","type":"object","properties":{"driver_id":{"maxLength":5000,"type":"string","description":"Driver ID."},"odometer":{"type":"integer","description":"Odometer reading."},"unspecified_id":{"maxLength":5000,"type":"string","description":"An alphanumeric ID. This field is used when a vehicle ID, driver ID, or generic ID is entered by the cardholder, but the merchant or card network did not specify the prompt type."},"user_id":{"maxLength":5000,"type":"string","description":"User ID."},"vehicle_number":{"maxLength":5000,"type":"string","description":"Vehicle number."}},"description":"Answers to prompts presented to the cardholder at the point of sale. Prompted fields vary depending on the configuration of your physical fleet cards. Typical points of sale support only numeric entry.","x-stripeMostCommon":["driver_id","odometer","unspecified_id","user_id","vehicle_number"]},"purchase_type":{"maxLength":5000,"type":"string","description":"The type of purchase. One of `fuel_purchase`, `non_fuel_purchase`, or `fuel_and_non_fuel_purchase`.","enum":["fuel_and_non_fuel_purchase","fuel_purchase","non_fuel_purchase"]},"reported_breakdown":{"title":"fleet_reported_breakdown_specs","type":"object","properties":{"fuel":{"title":"fleet_reported_breakdown_fuel_specs","type":"object","properties":{"gross_amount_decimal":{"type":"string","description":"Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes.","format":"decimal"}},"description":"Breakdown of fuel portion of the purchase.","x-stripeMostCommon":["gross_amount_decimal"]},"non_fuel":{"title":"fleet_reported_breakdown_non_fuel_specs","type":"object","properties":{"gross_amount_decimal":{"type":"string","description":"Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes.","format":"decimal"}},"description":"Breakdown of non-fuel portion of the purchase.","x-stripeMostCommon":["gross_amount_decimal"]},"tax":{"title":"fleet_reported_breakdown_tax_specs","type":"object","properties":{"local_amount_decimal":{"type":"string","description":"Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax.","format":"decimal"},"national_amount_decimal":{"type":"string","description":"Amount of national Sales Tax or VAT included in the transaction amount. Null if not reported by merchant or not subject to tax.","format":"decimal"}},"description":"Information about tax included in this transaction.","x-stripeMostCommon":["local_amount_decimal","national_amount_decimal"]}},"description":"More information about the total amount. This information is not guaranteed to be accurate as some merchants may provide unreliable data.","x-stripeMostCommon":["fuel","non_fuel","tax"]},"service_type":{"maxLength":5000,"type":"string","description":"The type of fuel service. One of `non_fuel_transaction`, `full_service`, or `self_service`.","enum":["full_service","non_fuel_transaction","self_service"]}},"description":"Fleet-specific information for transactions using Fleet cards.","x-stripeMostCommon":["cardholder_prompt_data","purchase_type","reported_breakdown","service_type"]},"flight":{"title":"flight_specs","type":"object","properties":{"departure_at":{"type":"integer","description":"The time that the flight departed.","format":"unix-time"},"passenger_name":{"maxLength":5000,"type":"string","description":"The name of the passenger."},"refundable":{"type":"boolean","description":"Whether the ticket is refundable."},"segments":{"type":"array","description":"The legs of the trip.","items":{"title":"flight_segment_specs","type":"object","properties":{"arrival_airport_code":{"maxLength":3,"type":"string","description":"The three-letter IATA airport code of the flight's destination."},"carrier":{"maxLength":5000,"type":"string","description":"The airline carrier code."},"departure_airport_code":{"maxLength":3,"type":"string","description":"The three-letter IATA airport code that the flight departed from."},"flight_number":{"maxLength":5000,"type":"string","description":"The flight number."},"service_class":{"maxLength":5000,"type":"string","description":"The flight's service class."},"stopover_allowed":{"type":"boolean","description":"Whether a stopover is allowed on this flight."}},"x-stripeMostCommon":["arrival_airport_code","carrier","departure_airport_code","flight_number","service_class","stopover_allowed"]}},"travel_agency":{"maxLength":5000,"type":"string","description":"The travel agency that issued the ticket."}},"description":"Information about the flight that was purchased with this transaction.","x-stripeMostCommon":["departure_at","passenger_name","refundable","segments","travel_agency"]},"fuel":{"title":"fuel_specs","type":"object","properties":{"industry_product_code":{"maxLength":5000,"type":"string","description":"[Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased."},"quantity_decimal":{"type":"string","description":"The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.","format":"decimal"},"type":{"maxLength":5000,"type":"string","description":"The type of fuel that was purchased. One of `diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`.","enum":["diesel","other","unleaded_plus","unleaded_regular","unleaded_super"]},"unit":{"maxLength":5000,"type":"string","description":"The units for `quantity_decimal`. One of `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, `liter`, `pound`, `us_gallon`, or `other`.","enum":["charging_minute","imperial_gallon","kilogram","kilowatt_hour","liter","other","pound","us_gallon"]},"unit_cost_decimal":{"type":"string","description":"The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.","format":"decimal"}},"description":"Information about fuel that was purchased with this transaction.","x-stripeMostCommon":["industry_product_code","quantity_decimal","type","unit","unit_cost_decimal"]},"lodging":{"title":"lodging_specs","type":"object","properties":{"check_in_at":{"type":"integer","description":"The time of checking into the lodging.","format":"unix-time"},"nights":{"type":"integer","description":"The number of nights stayed at the lodging."}},"description":"Information about lodging that was purchased with this transaction.","x-stripeMostCommon":["check_in_at","nights"]},"receipt":{"type":"array","description":"The line items in the purchase.","items":{"title":"receipt_specs","type":"object","properties":{"description":{"maxLength":26,"type":"string"},"quantity":{"type":"string","format":"decimal"},"total":{"type":"integer"},"unit_cost":{"type":"integer"}},"x-stripeMostCommon":["description","quantity","total","unit_cost"]}},"reference":{"maxLength":5000,"type":"string","description":"A merchant-specific order number."}},"description":"Additional purchase information that is optionally provided by the merchant.","x-stripeMostCommon":["fleet","flight","fuel","lodging","receipt","reference"]}},"additionalProperties":false,"x-stripeMostCommon":["capture_amount","close_authorization","purchase_details"]},"encoding":{"expand":{"style":"deepObject","explode":true},"purchase_details":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/issuing.authorization"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/test_helpers/issuing/authorizations/{authorization}/expire":{"post":{"summary":"Expire a test-mode authorization","description":"Expire a test-mode Authorization.
","operationId":"PostTestHelpersIssuingAuthorizationsAuthorizationExpire","parameters":[{"name":"authorization","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}}},"additionalProperties":false},"encoding":{"expand":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/issuing.authorization"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/test_helpers/issuing/authorizations/{authorization}/finalize_amount":{"post":{"summary":"Finalize a test-mode authorization's amount","description":"Finalize the amount on an Authorization prior to capture, when the initial authorization was for an estimated amount.
","operationId":"PostTestHelpersIssuingAuthorizationsAuthorizationFinalizeAmount","parameters":[{"name":"authorization","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["final_amount"],"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"final_amount":{"type":"integer","description":"The final authorization amount that will be captured by the merchant. This amount is in the authorization currency and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal)."},"fleet":{"title":"fleet_specs","type":"object","properties":{"cardholder_prompt_data":{"title":"fleet_cardholder_prompt_data_specs","type":"object","properties":{"driver_id":{"maxLength":5000,"type":"string","description":"Driver ID."},"odometer":{"type":"integer","description":"Odometer reading."},"unspecified_id":{"maxLength":5000,"type":"string","description":"An alphanumeric ID. This field is used when a vehicle ID, driver ID, or generic ID is entered by the cardholder, but the merchant or card network did not specify the prompt type."},"user_id":{"maxLength":5000,"type":"string","description":"User ID."},"vehicle_number":{"maxLength":5000,"type":"string","description":"Vehicle number."}},"description":"Answers to prompts presented to the cardholder at the point of sale. Prompted fields vary depending on the configuration of your physical fleet cards. Typical points of sale support only numeric entry.","x-stripeMostCommon":["driver_id","odometer","unspecified_id","user_id","vehicle_number"]},"purchase_type":{"maxLength":5000,"type":"string","description":"The type of purchase. One of `fuel_purchase`, `non_fuel_purchase`, or `fuel_and_non_fuel_purchase`.","enum":["fuel_and_non_fuel_purchase","fuel_purchase","non_fuel_purchase"]},"reported_breakdown":{"title":"fleet_reported_breakdown_specs","type":"object","properties":{"fuel":{"title":"fleet_reported_breakdown_fuel_specs","type":"object","properties":{"gross_amount_decimal":{"type":"string","description":"Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes.","format":"decimal"}},"description":"Breakdown of fuel portion of the purchase.","x-stripeMostCommon":["gross_amount_decimal"]},"non_fuel":{"title":"fleet_reported_breakdown_non_fuel_specs","type":"object","properties":{"gross_amount_decimal":{"type":"string","description":"Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes.","format":"decimal"}},"description":"Breakdown of non-fuel portion of the purchase.","x-stripeMostCommon":["gross_amount_decimal"]},"tax":{"title":"fleet_reported_breakdown_tax_specs","type":"object","properties":{"local_amount_decimal":{"type":"string","description":"Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax.","format":"decimal"},"national_amount_decimal":{"type":"string","description":"Amount of national Sales Tax or VAT included in the transaction amount. Null if not reported by merchant or not subject to tax.","format":"decimal"}},"description":"Information about tax included in this transaction.","x-stripeMostCommon":["local_amount_decimal","national_amount_decimal"]}},"description":"More information about the total amount. This information is not guaranteed to be accurate as some merchants may provide unreliable data.","x-stripeMostCommon":["fuel","non_fuel","tax"]},"service_type":{"maxLength":5000,"type":"string","description":"The type of fuel service. One of `non_fuel_transaction`, `full_service`, or `self_service`.","enum":["full_service","non_fuel_transaction","self_service"]}},"description":"Fleet-specific information for authorizations using Fleet cards.","x-stripeMostCommon":["cardholder_prompt_data","purchase_type","reported_breakdown","service_type"]},"fuel":{"title":"fuel_specs","type":"object","properties":{"industry_product_code":{"maxLength":5000,"type":"string","description":"[Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased."},"quantity_decimal":{"type":"string","description":"The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.","format":"decimal"},"type":{"maxLength":5000,"type":"string","description":"The type of fuel that was purchased. One of `diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`.","enum":["diesel","other","unleaded_plus","unleaded_regular","unleaded_super"]},"unit":{"maxLength":5000,"type":"string","description":"The units for `quantity_decimal`. One of `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, `liter`, `pound`, `us_gallon`, or `other`.","enum":["charging_minute","imperial_gallon","kilogram","kilowatt_hour","liter","other","pound","us_gallon"]},"unit_cost_decimal":{"type":"string","description":"The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.","format":"decimal"}},"description":"Information about fuel that was purchased with this transaction.","x-stripeMostCommon":["industry_product_code","quantity_decimal","type","unit","unit_cost_decimal"]}},"additionalProperties":false,"x-stripeMostCommon":["final_amount"]},"encoding":{"expand":{"style":"deepObject","explode":true},"fleet":{"style":"deepObject","explode":true},"fuel":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/issuing.authorization"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/test_helpers/issuing/authorizations/{authorization}/fraud_challenges/respond":{"post":{"summary":"Respond to fraud challenge","description":"Respond to a fraud challenge on a testmode Issuing authorization, simulating either a confirmation of fraud or a correction of legitimacy.
","operationId":"PostTestHelpersIssuingAuthorizationsAuthorizationFraudChallengesRespond","parameters":[{"name":"authorization","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["confirmed"],"type":"object","properties":{"confirmed":{"type":"boolean","description":"Whether to simulate the user confirming that the transaction was legitimate (true) or telling Stripe that it was fraudulent (false)."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}}},"additionalProperties":false,"x-stripeMostCommon":["confirmed"]},"encoding":{"expand":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/issuing.authorization"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/test_helpers/issuing/authorizations/{authorization}/increment":{"post":{"summary":"Increment a test-mode authorization","description":"Increment a test-mode Authorization.
","operationId":"PostTestHelpersIssuingAuthorizationsAuthorizationIncrement","parameters":[{"name":"authorization","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["increment_amount"],"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"increment_amount":{"type":"integer","description":"The amount to increment the authorization by. This amount is in the authorization currency and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal)."},"is_amount_controllable":{"type":"boolean","description":"If set `true`, you may provide [amount](https://docs.stripe.com/api/issuing/authorizations/approve#approve_issuing_authorization-amount) to control how much to hold for the authorization."}},"additionalProperties":false,"x-stripeMostCommon":["increment_amount","is_amount_controllable"]},"encoding":{"expand":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/issuing.authorization"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/test_helpers/issuing/authorizations/{authorization}/reverse":{"post":{"summary":"Reverse a test-mode authorization","description":"Reverse a test-mode Authorization.
","operationId":"PostTestHelpersIssuingAuthorizationsAuthorizationReverse","parameters":[{"name":"authorization","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"reverse_amount":{"type":"integer","description":"The amount to reverse from the authorization. If not provided, the full amount of the authorization will be reversed. This amount is in the authorization currency and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal)."}},"additionalProperties":false,"x-stripeMostCommon":["reverse_amount"]},"encoding":{"expand":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/issuing.authorization"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/test_helpers/issuing/cards/{card}/shipping/deliver":{"post":{"summary":"Deliver a testmode card","description":"Updates the shipping status of the specified Issuing Card object to delivered.
Updates the shipping status of the specified Issuing Card object to failure.
Updates the shipping status of the specified Issuing Card object to returned.
Updates the shipping status of the specified Issuing Card object to shipped.
Updates the shipping status of the specified Issuing Card object to submitted. This method requires Stripe Version ‘2024-09-30.acacia’ or later.
Updates the status of the specified testmode personalization design object to active.
Updates the status of the specified testmode personalization design object to inactive.
Updates the status of the specified testmode personalization design object to rejected.
Allows the user to capture an arbitrary amount, also known as a forced capture.
","operationId":"PostTestHelpersIssuingTransactionsCreateForceCapture","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["amount","card"],"type":"object","properties":{"amount":{"type":"integer","description":"The total amount to attempt to capture. This amount is in the provided currency, or defaults to the cards currency, and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal)."},"card":{"maxLength":5000,"type":"string","description":"Card associated with this transaction."},"currency":{"type":"string","description":"The currency of the capture. If not provided, defaults to the currency of the card. Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"merchant_data":{"title":"merchant_data_specs","type":"object","properties":{"category":{"maxLength":5000,"type":"string","description":"A categorization of the seller's type of business. See our [merchant categories guide](https://docs.stripe.com/issuing/merchant-categories) for a list of possible values.","enum":["ac_refrigeration_repair","accounting_bookkeeping_services","advertising_services","agricultural_cooperative","airlines_air_carriers","airports_flying_fields","ambulance_services","amusement_parks_carnivals","antique_reproductions","antique_shops","aquariums","architectural_surveying_services","art_dealers_and_galleries","artists_supply_and_craft_shops","auto_and_home_supply_stores","auto_body_repair_shops","auto_paint_shops","auto_service_shops","automated_cash_disburse","automated_fuel_dispensers","automobile_associations","automotive_parts_and_accessories_stores","automotive_tire_stores","bail_and_bond_payments","bakeries","bands_orchestras","barber_and_beauty_shops","betting_casino_gambling","bicycle_shops","billiard_pool_establishments","boat_dealers","boat_rentals_and_leases","book_stores","books_periodicals_and_newspapers","bowling_alleys","bus_lines","business_secretarial_schools","buying_shopping_services","cable_satellite_and_other_pay_television_and_radio","camera_and_photographic_supply_stores","candy_nut_and_confectionery_stores","car_and_truck_dealers_new_used","car_and_truck_dealers_used_only","car_rental_agencies","car_washes","carpentry_services","carpet_upholstery_cleaning","caterers","charitable_and_social_service_organizations_fundraising","chemicals_and_allied_products","child_care_services","childrens_and_infants_wear_stores","chiropodists_podiatrists","chiropractors","cigar_stores_and_stands","civic_social_fraternal_associations","cleaning_and_maintenance","clothing_rental","colleges_universities","commercial_equipment","commercial_footwear","commercial_photography_art_and_graphics","commuter_transport_and_ferries","computer_network_services","computer_programming","computer_repair","computer_software_stores","computers_peripherals_and_software","concrete_work_services","construction_materials","consulting_public_relations","correspondence_schools","cosmetic_stores","counseling_services","country_clubs","courier_services","court_costs","credit_reporting_agencies","cruise_lines","dairy_products_stores","dance_hall_studios_schools","dating_escort_services","dentists_orthodontists","department_stores","detective_agencies","digital_goods_applications","digital_goods_games","digital_goods_large_volume","digital_goods_media","direct_marketing_catalog_merchant","direct_marketing_combination_catalog_and_retail_merchant","direct_marketing_inbound_telemarketing","direct_marketing_insurance_services","direct_marketing_other","direct_marketing_outbound_telemarketing","direct_marketing_subscription","direct_marketing_travel","discount_stores","doctors","door_to_door_sales","drapery_window_covering_and_upholstery_stores","drinking_places","drug_stores_and_pharmacies","drugs_drug_proprietaries_and_druggist_sundries","dry_cleaners","durable_goods","duty_free_stores","eating_places_restaurants","educational_services","electric_razor_stores","electric_vehicle_charging","electrical_parts_and_equipment","electrical_services","electronics_repair_shops","electronics_stores","elementary_secondary_schools","emergency_services_gcas_visa_use_only","employment_temp_agencies","equipment_rental","exterminating_services","family_clothing_stores","fast_food_restaurants","financial_institutions","fines_government_administrative_entities","fireplace_fireplace_screens_and_accessories_stores","floor_covering_stores","florists","florists_supplies_nursery_stock_and_flowers","freezer_and_locker_meat_provisioners","fuel_dealers_non_automotive","funeral_services_crematories","furniture_home_furnishings_and_equipment_stores_except_appliances","furniture_repair_refinishing","furriers_and_fur_shops","general_services","gift_card_novelty_and_souvenir_shops","glass_paint_and_wallpaper_stores","glassware_crystal_stores","golf_courses_public","government_licensed_horse_dog_racing_us_region_only","government_licensed_online_casions_online_gambling_us_region_only","government_owned_lotteries_non_us_region","government_owned_lotteries_us_region_only","government_services","grocery_stores_supermarkets","hardware_equipment_and_supplies","hardware_stores","health_and_beauty_spas","hearing_aids_sales_and_supplies","heating_plumbing_a_c","hobby_toy_and_game_shops","home_supply_warehouse_stores","hospitals","hotels_motels_and_resorts","household_appliance_stores","industrial_supplies","information_retrieval_services","insurance_default","insurance_underwriting_premiums","intra_company_purchases","jewelry_stores_watches_clocks_and_silverware_stores","landscaping_services","laundries","laundry_cleaning_services","legal_services_attorneys","luggage_and_leather_goods_stores","lumber_building_materials_stores","manual_cash_disburse","marinas_service_and_supplies","marketplaces","masonry_stonework_and_plaster","massage_parlors","medical_and_dental_labs","medical_dental_ophthalmic_and_hospital_equipment_and_supplies","medical_services","membership_organizations","mens_and_boys_clothing_and_accessories_stores","mens_womens_clothing_stores","metal_service_centers","miscellaneous_apparel_and_accessory_shops","miscellaneous_auto_dealers","miscellaneous_business_services","miscellaneous_food_stores","miscellaneous_general_merchandise","miscellaneous_general_services","miscellaneous_home_furnishing_specialty_stores","miscellaneous_publishing_and_printing","miscellaneous_recreation_services","miscellaneous_repair_shops","miscellaneous_specialty_retail","mobile_home_dealers","motion_picture_theaters","motor_freight_carriers_and_trucking","motor_homes_dealers","motor_vehicle_supplies_and_new_parts","motorcycle_shops_and_dealers","motorcycle_shops_dealers","music_stores_musical_instruments_pianos_and_sheet_music","news_dealers_and_newsstands","non_fi_money_orders","non_fi_stored_value_card_purchase_load","nondurable_goods","nurseries_lawn_and_garden_supply_stores","nursing_personal_care","office_and_commercial_furniture","opticians_eyeglasses","optometrists_ophthalmologist","orthopedic_goods_prosthetic_devices","osteopaths","package_stores_beer_wine_and_liquor","paints_varnishes_and_supplies","parking_lots_garages","passenger_railways","pawn_shops","pet_shops_pet_food_and_supplies","petroleum_and_petroleum_products","photo_developing","photographic_photocopy_microfilm_equipment_and_supplies","photographic_studios","picture_video_production","piece_goods_notions_and_other_dry_goods","plumbing_heating_equipment_and_supplies","political_organizations","postal_services_government_only","precious_stones_and_metals_watches_and_jewelry","professional_services","public_warehousing_and_storage","quick_copy_repro_and_blueprint","railroads","real_estate_agents_and_managers_rentals","record_stores","recreational_vehicle_rentals","religious_goods_stores","religious_organizations","roofing_siding_sheet_metal","secretarial_support_services","security_brokers_dealers","service_stations","sewing_needlework_fabric_and_piece_goods_stores","shoe_repair_hat_cleaning","shoe_stores","small_appliance_repair","snowmobile_dealers","special_trade_services","specialty_cleaning","sporting_goods_stores","sporting_recreation_camps","sports_and_riding_apparel_stores","sports_clubs_fields","stamp_and_coin_stores","stationary_office_supplies_printing_and_writing_paper","stationery_stores_office_and_school_supply_stores","swimming_pools_sales","t_ui_travel_germany","tailors_alterations","tax_payments_government_agencies","tax_preparation_services","taxicabs_limousines","telecommunication_equipment_and_telephone_sales","telecommunication_services","telegraph_services","tent_and_awning_shops","testing_laboratories","theatrical_ticket_agencies","timeshares","tire_retreading_and_repair","tolls_bridge_fees","tourist_attractions_and_exhibits","towing_services","trailer_parks_campgrounds","transportation_services","travel_agencies_tour_operators","truck_stop_iteration","truck_utility_trailer_rentals","typesetting_plate_making_and_related_services","typewriter_stores","u_s_federal_government_agencies_or_departments","uniforms_commercial_clothing","used_merchandise_and_secondhand_stores","utilities","variety_stores","veterinary_services","video_amusement_game_supplies","video_game_arcades","video_tape_rental_stores","vocational_trade_schools","watch_jewelry_repair","welding_repair","wholesale_clubs","wig_and_toupee_stores","wires_money_orders","womens_accessory_and_specialty_shops","womens_ready_to_wear_stores","wrecking_and_salvage_yards"]},"city":{"maxLength":5000,"type":"string","description":"City where the seller is located"},"country":{"maxLength":5000,"type":"string","description":"Country where the seller is located"},"name":{"maxLength":5000,"type":"string","description":"Name of the seller"},"network_id":{"maxLength":5000,"type":"string","description":"Identifier assigned to the seller by the card network. Different card networks may assign different network_id fields to the same merchant."},"postal_code":{"maxLength":5000,"type":"string","description":"Postal code where the seller is located"},"state":{"maxLength":5000,"type":"string","description":"State where the seller is located"},"terminal_id":{"maxLength":5000,"type":"string","description":"An ID assigned by the seller to the location of the sale."},"url":{"maxLength":5000,"type":"string","description":"URL provided by the merchant on a 3DS request"}},"description":"Details about the seller (grocery store, e-commerce website, etc.) where the card authorization happened.","x-stripeMostCommon":["category","city","country","name","network_id","postal_code","state","terminal_id","url"]},"purchase_details":{"title":"purchase_details_specs","type":"object","properties":{"fleet":{"title":"fleet_specs","type":"object","properties":{"cardholder_prompt_data":{"title":"fleet_cardholder_prompt_data_specs","type":"object","properties":{"driver_id":{"maxLength":5000,"type":"string","description":"Driver ID."},"odometer":{"type":"integer","description":"Odometer reading."},"unspecified_id":{"maxLength":5000,"type":"string","description":"An alphanumeric ID. This field is used when a vehicle ID, driver ID, or generic ID is entered by the cardholder, but the merchant or card network did not specify the prompt type."},"user_id":{"maxLength":5000,"type":"string","description":"User ID."},"vehicle_number":{"maxLength":5000,"type":"string","description":"Vehicle number."}},"description":"Answers to prompts presented to the cardholder at the point of sale. Prompted fields vary depending on the configuration of your physical fleet cards. Typical points of sale support only numeric entry.","x-stripeMostCommon":["driver_id","odometer","unspecified_id","user_id","vehicle_number"]},"purchase_type":{"maxLength":5000,"type":"string","description":"The type of purchase. One of `fuel_purchase`, `non_fuel_purchase`, or `fuel_and_non_fuel_purchase`.","enum":["fuel_and_non_fuel_purchase","fuel_purchase","non_fuel_purchase"]},"reported_breakdown":{"title":"fleet_reported_breakdown_specs","type":"object","properties":{"fuel":{"title":"fleet_reported_breakdown_fuel_specs","type":"object","properties":{"gross_amount_decimal":{"type":"string","description":"Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes.","format":"decimal"}},"description":"Breakdown of fuel portion of the purchase.","x-stripeMostCommon":["gross_amount_decimal"]},"non_fuel":{"title":"fleet_reported_breakdown_non_fuel_specs","type":"object","properties":{"gross_amount_decimal":{"type":"string","description":"Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes.","format":"decimal"}},"description":"Breakdown of non-fuel portion of the purchase.","x-stripeMostCommon":["gross_amount_decimal"]},"tax":{"title":"fleet_reported_breakdown_tax_specs","type":"object","properties":{"local_amount_decimal":{"type":"string","description":"Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax.","format":"decimal"},"national_amount_decimal":{"type":"string","description":"Amount of national Sales Tax or VAT included in the transaction amount. Null if not reported by merchant or not subject to tax.","format":"decimal"}},"description":"Information about tax included in this transaction.","x-stripeMostCommon":["local_amount_decimal","national_amount_decimal"]}},"description":"More information about the total amount. This information is not guaranteed to be accurate as some merchants may provide unreliable data.","x-stripeMostCommon":["fuel","non_fuel","tax"]},"service_type":{"maxLength":5000,"type":"string","description":"The type of fuel service. One of `non_fuel_transaction`, `full_service`, or `self_service`.","enum":["full_service","non_fuel_transaction","self_service"]}},"description":"Fleet-specific information for transactions using Fleet cards.","x-stripeMostCommon":["cardholder_prompt_data","purchase_type","reported_breakdown","service_type"]},"flight":{"title":"flight_specs","type":"object","properties":{"departure_at":{"type":"integer","description":"The time that the flight departed.","format":"unix-time"},"passenger_name":{"maxLength":5000,"type":"string","description":"The name of the passenger."},"refundable":{"type":"boolean","description":"Whether the ticket is refundable."},"segments":{"type":"array","description":"The legs of the trip.","items":{"title":"flight_segment_specs","type":"object","properties":{"arrival_airport_code":{"maxLength":3,"type":"string","description":"The three-letter IATA airport code of the flight's destination."},"carrier":{"maxLength":5000,"type":"string","description":"The airline carrier code."},"departure_airport_code":{"maxLength":3,"type":"string","description":"The three-letter IATA airport code that the flight departed from."},"flight_number":{"maxLength":5000,"type":"string","description":"The flight number."},"service_class":{"maxLength":5000,"type":"string","description":"The flight's service class."},"stopover_allowed":{"type":"boolean","description":"Whether a stopover is allowed on this flight."}},"x-stripeMostCommon":["arrival_airport_code","carrier","departure_airport_code","flight_number","service_class","stopover_allowed"]}},"travel_agency":{"maxLength":5000,"type":"string","description":"The travel agency that issued the ticket."}},"description":"Information about the flight that was purchased with this transaction.","x-stripeMostCommon":["departure_at","passenger_name","refundable","segments","travel_agency"]},"fuel":{"title":"fuel_specs","type":"object","properties":{"industry_product_code":{"maxLength":5000,"type":"string","description":"[Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased."},"quantity_decimal":{"type":"string","description":"The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.","format":"decimal"},"type":{"maxLength":5000,"type":"string","description":"The type of fuel that was purchased. One of `diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`.","enum":["diesel","other","unleaded_plus","unleaded_regular","unleaded_super"]},"unit":{"maxLength":5000,"type":"string","description":"The units for `quantity_decimal`. One of `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, `liter`, `pound`, `us_gallon`, or `other`.","enum":["charging_minute","imperial_gallon","kilogram","kilowatt_hour","liter","other","pound","us_gallon"]},"unit_cost_decimal":{"type":"string","description":"The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.","format":"decimal"}},"description":"Information about fuel that was purchased with this transaction.","x-stripeMostCommon":["industry_product_code","quantity_decimal","type","unit","unit_cost_decimal"]},"lodging":{"title":"lodging_specs","type":"object","properties":{"check_in_at":{"type":"integer","description":"The time of checking into the lodging.","format":"unix-time"},"nights":{"type":"integer","description":"The number of nights stayed at the lodging."}},"description":"Information about lodging that was purchased with this transaction.","x-stripeMostCommon":["check_in_at","nights"]},"receipt":{"type":"array","description":"The line items in the purchase.","items":{"title":"receipt_specs","type":"object","properties":{"description":{"maxLength":26,"type":"string"},"quantity":{"type":"string","format":"decimal"},"total":{"type":"integer"},"unit_cost":{"type":"integer"}},"x-stripeMostCommon":["description","quantity","total","unit_cost"]}},"reference":{"maxLength":5000,"type":"string","description":"A merchant-specific order number."}},"description":"Additional purchase information that is optionally provided by the merchant.","x-stripeMostCommon":["fleet","flight","fuel","lodging","receipt","reference"]}},"additionalProperties":false,"x-stripeMostCommon":["amount","card","currency"]},"encoding":{"expand":{"style":"deepObject","explode":true},"merchant_data":{"style":"deepObject","explode":true},"purchase_details":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/issuing.transaction"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/test_helpers/issuing/transactions/create_unlinked_refund":{"post":{"summary":"Create a test-mode unlinked refund","description":"Allows the user to refund an arbitrary amount, also known as a unlinked refund.
","operationId":"PostTestHelpersIssuingTransactionsCreateUnlinkedRefund","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["amount","card"],"type":"object","properties":{"amount":{"type":"integer","description":"The total amount to attempt to refund. This amount is in the provided currency, or defaults to the cards currency, and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal)."},"card":{"maxLength":5000,"type":"string","description":"Card associated with this unlinked refund transaction."},"currency":{"type":"string","description":"The currency of the unlinked refund. If not provided, defaults to the currency of the card. Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"merchant_data":{"title":"merchant_data_specs","type":"object","properties":{"category":{"maxLength":5000,"type":"string","description":"A categorization of the seller's type of business. See our [merchant categories guide](https://docs.stripe.com/issuing/merchant-categories) for a list of possible values.","enum":["ac_refrigeration_repair","accounting_bookkeeping_services","advertising_services","agricultural_cooperative","airlines_air_carriers","airports_flying_fields","ambulance_services","amusement_parks_carnivals","antique_reproductions","antique_shops","aquariums","architectural_surveying_services","art_dealers_and_galleries","artists_supply_and_craft_shops","auto_and_home_supply_stores","auto_body_repair_shops","auto_paint_shops","auto_service_shops","automated_cash_disburse","automated_fuel_dispensers","automobile_associations","automotive_parts_and_accessories_stores","automotive_tire_stores","bail_and_bond_payments","bakeries","bands_orchestras","barber_and_beauty_shops","betting_casino_gambling","bicycle_shops","billiard_pool_establishments","boat_dealers","boat_rentals_and_leases","book_stores","books_periodicals_and_newspapers","bowling_alleys","bus_lines","business_secretarial_schools","buying_shopping_services","cable_satellite_and_other_pay_television_and_radio","camera_and_photographic_supply_stores","candy_nut_and_confectionery_stores","car_and_truck_dealers_new_used","car_and_truck_dealers_used_only","car_rental_agencies","car_washes","carpentry_services","carpet_upholstery_cleaning","caterers","charitable_and_social_service_organizations_fundraising","chemicals_and_allied_products","child_care_services","childrens_and_infants_wear_stores","chiropodists_podiatrists","chiropractors","cigar_stores_and_stands","civic_social_fraternal_associations","cleaning_and_maintenance","clothing_rental","colleges_universities","commercial_equipment","commercial_footwear","commercial_photography_art_and_graphics","commuter_transport_and_ferries","computer_network_services","computer_programming","computer_repair","computer_software_stores","computers_peripherals_and_software","concrete_work_services","construction_materials","consulting_public_relations","correspondence_schools","cosmetic_stores","counseling_services","country_clubs","courier_services","court_costs","credit_reporting_agencies","cruise_lines","dairy_products_stores","dance_hall_studios_schools","dating_escort_services","dentists_orthodontists","department_stores","detective_agencies","digital_goods_applications","digital_goods_games","digital_goods_large_volume","digital_goods_media","direct_marketing_catalog_merchant","direct_marketing_combination_catalog_and_retail_merchant","direct_marketing_inbound_telemarketing","direct_marketing_insurance_services","direct_marketing_other","direct_marketing_outbound_telemarketing","direct_marketing_subscription","direct_marketing_travel","discount_stores","doctors","door_to_door_sales","drapery_window_covering_and_upholstery_stores","drinking_places","drug_stores_and_pharmacies","drugs_drug_proprietaries_and_druggist_sundries","dry_cleaners","durable_goods","duty_free_stores","eating_places_restaurants","educational_services","electric_razor_stores","electric_vehicle_charging","electrical_parts_and_equipment","electrical_services","electronics_repair_shops","electronics_stores","elementary_secondary_schools","emergency_services_gcas_visa_use_only","employment_temp_agencies","equipment_rental","exterminating_services","family_clothing_stores","fast_food_restaurants","financial_institutions","fines_government_administrative_entities","fireplace_fireplace_screens_and_accessories_stores","floor_covering_stores","florists","florists_supplies_nursery_stock_and_flowers","freezer_and_locker_meat_provisioners","fuel_dealers_non_automotive","funeral_services_crematories","furniture_home_furnishings_and_equipment_stores_except_appliances","furniture_repair_refinishing","furriers_and_fur_shops","general_services","gift_card_novelty_and_souvenir_shops","glass_paint_and_wallpaper_stores","glassware_crystal_stores","golf_courses_public","government_licensed_horse_dog_racing_us_region_only","government_licensed_online_casions_online_gambling_us_region_only","government_owned_lotteries_non_us_region","government_owned_lotteries_us_region_only","government_services","grocery_stores_supermarkets","hardware_equipment_and_supplies","hardware_stores","health_and_beauty_spas","hearing_aids_sales_and_supplies","heating_plumbing_a_c","hobby_toy_and_game_shops","home_supply_warehouse_stores","hospitals","hotels_motels_and_resorts","household_appliance_stores","industrial_supplies","information_retrieval_services","insurance_default","insurance_underwriting_premiums","intra_company_purchases","jewelry_stores_watches_clocks_and_silverware_stores","landscaping_services","laundries","laundry_cleaning_services","legal_services_attorneys","luggage_and_leather_goods_stores","lumber_building_materials_stores","manual_cash_disburse","marinas_service_and_supplies","marketplaces","masonry_stonework_and_plaster","massage_parlors","medical_and_dental_labs","medical_dental_ophthalmic_and_hospital_equipment_and_supplies","medical_services","membership_organizations","mens_and_boys_clothing_and_accessories_stores","mens_womens_clothing_stores","metal_service_centers","miscellaneous_apparel_and_accessory_shops","miscellaneous_auto_dealers","miscellaneous_business_services","miscellaneous_food_stores","miscellaneous_general_merchandise","miscellaneous_general_services","miscellaneous_home_furnishing_specialty_stores","miscellaneous_publishing_and_printing","miscellaneous_recreation_services","miscellaneous_repair_shops","miscellaneous_specialty_retail","mobile_home_dealers","motion_picture_theaters","motor_freight_carriers_and_trucking","motor_homes_dealers","motor_vehicle_supplies_and_new_parts","motorcycle_shops_and_dealers","motorcycle_shops_dealers","music_stores_musical_instruments_pianos_and_sheet_music","news_dealers_and_newsstands","non_fi_money_orders","non_fi_stored_value_card_purchase_load","nondurable_goods","nurseries_lawn_and_garden_supply_stores","nursing_personal_care","office_and_commercial_furniture","opticians_eyeglasses","optometrists_ophthalmologist","orthopedic_goods_prosthetic_devices","osteopaths","package_stores_beer_wine_and_liquor","paints_varnishes_and_supplies","parking_lots_garages","passenger_railways","pawn_shops","pet_shops_pet_food_and_supplies","petroleum_and_petroleum_products","photo_developing","photographic_photocopy_microfilm_equipment_and_supplies","photographic_studios","picture_video_production","piece_goods_notions_and_other_dry_goods","plumbing_heating_equipment_and_supplies","political_organizations","postal_services_government_only","precious_stones_and_metals_watches_and_jewelry","professional_services","public_warehousing_and_storage","quick_copy_repro_and_blueprint","railroads","real_estate_agents_and_managers_rentals","record_stores","recreational_vehicle_rentals","religious_goods_stores","religious_organizations","roofing_siding_sheet_metal","secretarial_support_services","security_brokers_dealers","service_stations","sewing_needlework_fabric_and_piece_goods_stores","shoe_repair_hat_cleaning","shoe_stores","small_appliance_repair","snowmobile_dealers","special_trade_services","specialty_cleaning","sporting_goods_stores","sporting_recreation_camps","sports_and_riding_apparel_stores","sports_clubs_fields","stamp_and_coin_stores","stationary_office_supplies_printing_and_writing_paper","stationery_stores_office_and_school_supply_stores","swimming_pools_sales","t_ui_travel_germany","tailors_alterations","tax_payments_government_agencies","tax_preparation_services","taxicabs_limousines","telecommunication_equipment_and_telephone_sales","telecommunication_services","telegraph_services","tent_and_awning_shops","testing_laboratories","theatrical_ticket_agencies","timeshares","tire_retreading_and_repair","tolls_bridge_fees","tourist_attractions_and_exhibits","towing_services","trailer_parks_campgrounds","transportation_services","travel_agencies_tour_operators","truck_stop_iteration","truck_utility_trailer_rentals","typesetting_plate_making_and_related_services","typewriter_stores","u_s_federal_government_agencies_or_departments","uniforms_commercial_clothing","used_merchandise_and_secondhand_stores","utilities","variety_stores","veterinary_services","video_amusement_game_supplies","video_game_arcades","video_tape_rental_stores","vocational_trade_schools","watch_jewelry_repair","welding_repair","wholesale_clubs","wig_and_toupee_stores","wires_money_orders","womens_accessory_and_specialty_shops","womens_ready_to_wear_stores","wrecking_and_salvage_yards"]},"city":{"maxLength":5000,"type":"string","description":"City where the seller is located"},"country":{"maxLength":5000,"type":"string","description":"Country where the seller is located"},"name":{"maxLength":5000,"type":"string","description":"Name of the seller"},"network_id":{"maxLength":5000,"type":"string","description":"Identifier assigned to the seller by the card network. Different card networks may assign different network_id fields to the same merchant."},"postal_code":{"maxLength":5000,"type":"string","description":"Postal code where the seller is located"},"state":{"maxLength":5000,"type":"string","description":"State where the seller is located"},"terminal_id":{"maxLength":5000,"type":"string","description":"An ID assigned by the seller to the location of the sale."},"url":{"maxLength":5000,"type":"string","description":"URL provided by the merchant on a 3DS request"}},"description":"Details about the seller (grocery store, e-commerce website, etc.) where the card authorization happened.","x-stripeMostCommon":["category","city","country","name","network_id","postal_code","state","terminal_id","url"]},"purchase_details":{"title":"purchase_details_specs","type":"object","properties":{"fleet":{"title":"fleet_specs","type":"object","properties":{"cardholder_prompt_data":{"title":"fleet_cardholder_prompt_data_specs","type":"object","properties":{"driver_id":{"maxLength":5000,"type":"string","description":"Driver ID."},"odometer":{"type":"integer","description":"Odometer reading."},"unspecified_id":{"maxLength":5000,"type":"string","description":"An alphanumeric ID. This field is used when a vehicle ID, driver ID, or generic ID is entered by the cardholder, but the merchant or card network did not specify the prompt type."},"user_id":{"maxLength":5000,"type":"string","description":"User ID."},"vehicle_number":{"maxLength":5000,"type":"string","description":"Vehicle number."}},"description":"Answers to prompts presented to the cardholder at the point of sale. Prompted fields vary depending on the configuration of your physical fleet cards. Typical points of sale support only numeric entry.","x-stripeMostCommon":["driver_id","odometer","unspecified_id","user_id","vehicle_number"]},"purchase_type":{"maxLength":5000,"type":"string","description":"The type of purchase. One of `fuel_purchase`, `non_fuel_purchase`, or `fuel_and_non_fuel_purchase`.","enum":["fuel_and_non_fuel_purchase","fuel_purchase","non_fuel_purchase"]},"reported_breakdown":{"title":"fleet_reported_breakdown_specs","type":"object","properties":{"fuel":{"title":"fleet_reported_breakdown_fuel_specs","type":"object","properties":{"gross_amount_decimal":{"type":"string","description":"Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes.","format":"decimal"}},"description":"Breakdown of fuel portion of the purchase.","x-stripeMostCommon":["gross_amount_decimal"]},"non_fuel":{"title":"fleet_reported_breakdown_non_fuel_specs","type":"object","properties":{"gross_amount_decimal":{"type":"string","description":"Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes.","format":"decimal"}},"description":"Breakdown of non-fuel portion of the purchase.","x-stripeMostCommon":["gross_amount_decimal"]},"tax":{"title":"fleet_reported_breakdown_tax_specs","type":"object","properties":{"local_amount_decimal":{"type":"string","description":"Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax.","format":"decimal"},"national_amount_decimal":{"type":"string","description":"Amount of national Sales Tax or VAT included in the transaction amount. Null if not reported by merchant or not subject to tax.","format":"decimal"}},"description":"Information about tax included in this transaction.","x-stripeMostCommon":["local_amount_decimal","national_amount_decimal"]}},"description":"More information about the total amount. This information is not guaranteed to be accurate as some merchants may provide unreliable data.","x-stripeMostCommon":["fuel","non_fuel","tax"]},"service_type":{"maxLength":5000,"type":"string","description":"The type of fuel service. One of `non_fuel_transaction`, `full_service`, or `self_service`.","enum":["full_service","non_fuel_transaction","self_service"]}},"description":"Fleet-specific information for transactions using Fleet cards.","x-stripeMostCommon":["cardholder_prompt_data","purchase_type","reported_breakdown","service_type"]},"flight":{"title":"flight_specs","type":"object","properties":{"departure_at":{"type":"integer","description":"The time that the flight departed.","format":"unix-time"},"passenger_name":{"maxLength":5000,"type":"string","description":"The name of the passenger."},"refundable":{"type":"boolean","description":"Whether the ticket is refundable."},"segments":{"type":"array","description":"The legs of the trip.","items":{"title":"flight_segment_specs","type":"object","properties":{"arrival_airport_code":{"maxLength":3,"type":"string","description":"The three-letter IATA airport code of the flight's destination."},"carrier":{"maxLength":5000,"type":"string","description":"The airline carrier code."},"departure_airport_code":{"maxLength":3,"type":"string","description":"The three-letter IATA airport code that the flight departed from."},"flight_number":{"maxLength":5000,"type":"string","description":"The flight number."},"service_class":{"maxLength":5000,"type":"string","description":"The flight's service class."},"stopover_allowed":{"type":"boolean","description":"Whether a stopover is allowed on this flight."}},"x-stripeMostCommon":["arrival_airport_code","carrier","departure_airport_code","flight_number","service_class","stopover_allowed"]}},"travel_agency":{"maxLength":5000,"type":"string","description":"The travel agency that issued the ticket."}},"description":"Information about the flight that was purchased with this transaction.","x-stripeMostCommon":["departure_at","passenger_name","refundable","segments","travel_agency"]},"fuel":{"title":"fuel_specs","type":"object","properties":{"industry_product_code":{"maxLength":5000,"type":"string","description":"[Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased."},"quantity_decimal":{"type":"string","description":"The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.","format":"decimal"},"type":{"maxLength":5000,"type":"string","description":"The type of fuel that was purchased. One of `diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`.","enum":["diesel","other","unleaded_plus","unleaded_regular","unleaded_super"]},"unit":{"maxLength":5000,"type":"string","description":"The units for `quantity_decimal`. One of `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, `liter`, `pound`, `us_gallon`, or `other`.","enum":["charging_minute","imperial_gallon","kilogram","kilowatt_hour","liter","other","pound","us_gallon"]},"unit_cost_decimal":{"type":"string","description":"The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.","format":"decimal"}},"description":"Information about fuel that was purchased with this transaction.","x-stripeMostCommon":["industry_product_code","quantity_decimal","type","unit","unit_cost_decimal"]},"lodging":{"title":"lodging_specs","type":"object","properties":{"check_in_at":{"type":"integer","description":"The time of checking into the lodging.","format":"unix-time"},"nights":{"type":"integer","description":"The number of nights stayed at the lodging."}},"description":"Information about lodging that was purchased with this transaction.","x-stripeMostCommon":["check_in_at","nights"]},"receipt":{"type":"array","description":"The line items in the purchase.","items":{"title":"receipt_specs","type":"object","properties":{"description":{"maxLength":26,"type":"string"},"quantity":{"type":"string","format":"decimal"},"total":{"type":"integer"},"unit_cost":{"type":"integer"}},"x-stripeMostCommon":["description","quantity","total","unit_cost"]}},"reference":{"maxLength":5000,"type":"string","description":"A merchant-specific order number."}},"description":"Additional purchase information that is optionally provided by the merchant.","x-stripeMostCommon":["fleet","flight","fuel","lodging","receipt","reference"]}},"additionalProperties":false,"x-stripeMostCommon":["amount","card","currency"]},"encoding":{"expand":{"style":"deepObject","explode":true},"merchant_data":{"style":"deepObject","explode":true},"purchase_details":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/issuing.transaction"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/test_helpers/issuing/transactions/{transaction}/refund":{"post":{"summary":"Refund a test-mode transaction","description":"Refund a test-mode Transaction.
","operationId":"PostTestHelpersIssuingTransactionsTransactionRefund","parameters":[{"name":"transaction","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"refund_amount":{"type":"integer","description":"The total amount to attempt to refund. This amount is in the provided currency, or defaults to the cards currency, and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal)."}},"additionalProperties":false,"x-stripeMostCommon":["refund_amount"]},"encoding":{"expand":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/issuing.transaction"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/test_helpers/refunds/{refund}/expire":{"post":{"summary":"Expire a pending refund.","description":"Expire a refund with a status of requires_action.
Presents a payment method on a simulated reader. Can be used to simulate accepting a payment, saving a card or refunding a transaction.
","operationId":"PostTestHelpersTerminalReadersReaderPresentPaymentMethod","parameters":[{"name":"reader","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"amount_tip":{"type":"integer","description":"Simulated on-reader tip amount."},"card":{"title":"card","required":["exp_month","exp_year","number"],"type":"object","properties":{"cvc":{"maxLength":5000,"type":"string","description":"Card security code."},"exp_month":{"type":"integer","description":"Two-digit number representing the card's expiration month."},"exp_year":{"type":"integer","description":"Two- or four-digit number representing the card's expiration year."},"number":{"maxLength":5000,"type":"string","description":"The card number, as a string without any separators."}},"description":"Simulated data for the card payment method.","x-stripeMostCommon":["cvc","exp_month","exp_year","number"]},"card_present":{"title":"card_present","type":"object","properties":{"number":{"maxLength":5000,"type":"string","description":"The card number, as a string without any separators."}},"description":"Simulated data for the card_present payment method.","x-stripeMostCommon":["number"]},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"interac_present":{"title":"interac_present","type":"object","properties":{"number":{"maxLength":5000,"type":"string","description":"The Interac card number."}},"description":"Simulated data for the interac_present payment method.","x-stripeMostCommon":["number"]},"type":{"type":"string","description":"Simulated payment type.","enum":["card","card_present","interac_present"]}},"additionalProperties":false,"x-stripeMostCommon":["card_present","type"]},"encoding":{"card":{"style":"deepObject","explode":true},"card_present":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"interac_present":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/terminal.reader"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/test_helpers/terminal/readers/{reader}/succeed_input_collection":{"post":{"summary":"Simulate a successful input collection","description":"Use this endpoint to trigger a successful input collection on a simulated reader.
","operationId":"PostTestHelpersTerminalReadersReaderSucceedInputCollection","parameters":[{"name":"reader","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"skip_non_required_inputs":{"type":"string","description":"This parameter defines the skip behavior for input collection.","enum":["all","none"]}},"additionalProperties":false,"x-stripeMostCommon":["skip_non_required_inputs"]},"encoding":{"expand":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/terminal.reader"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/test_helpers/terminal/readers/{reader}/timeout_input_collection":{"post":{"summary":"Simulate an input collection timeout","description":"Use this endpoint to complete an input collection with a timeout error on a simulated reader.
","operationId":"PostTestHelpersTerminalReadersReaderTimeoutInputCollection","parameters":[{"name":"reader","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}}},"additionalProperties":false},"encoding":{"expand":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/terminal.reader"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/test_helpers/test_clocks":{"get":{"summary":"List all test clocks","description":"Returns a list of your test clocks.
","operationId":"GetTestHelpersTestClocks","parameters":[{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"BillingClocksResourceBillingClockList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/test_helpers.test_clock"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/test_helpers/test_clocks","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create a test clock","description":"Creates a new test clock that can be attached to new customers and quotes.
","operationId":"PostTestHelpersTestClocks","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["frozen_time"],"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"frozen_time":{"type":"integer","description":"The initial frozen time for this test clock.","format":"unix-time"},"name":{"maxLength":300,"type":"string","description":"The name for this test clock."}},"additionalProperties":false,"x-stripeMostCommon":["frozen_time","name"]},"encoding":{"expand":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/test_helpers.test_clock"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/test_helpers/test_clocks/{test_clock}":{"get":{"summary":"Retrieve a test clock","description":"Retrieves a test clock.
","operationId":"GetTestHelpersTestClocksTestClock","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"test_clock","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/test_helpers.test_clock"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"delete":{"summary":"Delete a test clock","description":"Deletes a test clock.
","operationId":"DeleteTestHelpersTestClocksTestClock","parameters":[{"name":"test_clock","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/deleted_test_helpers.test_clock"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/test_helpers/test_clocks/{test_clock}/advance":{"post":{"summary":"Advance a test clock","description":"Starts advancing a test clock to a specified time in the future. Advancement is done when status changes to Ready.
Transitions a test mode created InboundTransfer to the failed status. The InboundTransfer must already be in the processing state.
Marks the test mode InboundTransfer object as returned and links the InboundTransfer to a ReceivedDebit. The InboundTransfer must already be in the succeeded state.
Transitions a test mode created InboundTransfer to the succeeded status. The InboundTransfer must already be in the processing state.
Updates a test mode created OutboundPayment with tracking details. The OutboundPayment must not be cancelable, and cannot be in the canceled or failed states.
Transitions a test mode created OutboundPayment to the failed status. The OutboundPayment must already be in the processing state.
Transitions a test mode created OutboundPayment to the posted status. The OutboundPayment must already be in the processing state.
Transitions a test mode created OutboundPayment to the returned status. The OutboundPayment must already be in the processing state.
Updates a test mode created OutboundTransfer with tracking details. The OutboundTransfer must not be cancelable, and cannot be in the canceled or failed states.
Transitions a test mode created OutboundTransfer to the failed status. The OutboundTransfer must already be in the processing state.
Transitions a test mode created OutboundTransfer to the posted status. The OutboundTransfer must already be in the processing state.
Transitions a test mode created OutboundTransfer to the returned status. The OutboundTransfer must already be in the processing state.
Use this endpoint to simulate a test mode ReceivedCredit initiated by a third party. In live mode, you can’t directly create ReceivedCredits initiated by third parties.
","operationId":"PostTestHelpersTreasuryReceivedCredits","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["amount","currency","financial_account","network"],"type":"object","properties":{"amount":{"type":"integer","description":"Amount (in cents) to be transferred."},"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"description":{"maxLength":5000,"type":"string","description":"An arbitrary string attached to the object. Often useful for displaying to users."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"financial_account":{"type":"string","description":"The FinancialAccount to send funds to."},"initiating_payment_method_details":{"title":"source_params","required":["type"],"type":"object","properties":{"type":{"type":"string","description":"The source type.","enum":["us_bank_account"]},"us_bank_account":{"title":"us_bank_account_source_params","type":"object","properties":{"account_holder_name":{"maxLength":5000,"type":"string","description":"The bank account holder's name."},"account_number":{"maxLength":5000,"type":"string","description":"The bank account number."},"routing_number":{"maxLength":5000,"type":"string","description":"The bank account's routing number."}},"description":"Optional fields for `us_bank_account`.","x-stripeMostCommon":["account_holder_name","account_number","routing_number"]}},"description":"Initiating payment method details for the object.","x-stripeMostCommon":["type","us_bank_account"]},"network":{"type":"string","description":"Specifies the network rails to be used. If not set, will default to the PaymentMethod's preferred network. See the [docs](https://docs.stripe.com/treasury/money-movement/timelines) to learn more about money movement timelines for each network type.","enum":["ach","us_domestic_wire"]}},"additionalProperties":false,"x-stripeMostCommon":["amount","currency","description","financial_account","initiating_payment_method_details","network"]},"encoding":{"expand":{"style":"deepObject","explode":true},"initiating_payment_method_details":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/treasury.received_credit"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/test_helpers/treasury/received_debits":{"post":{"summary":"Test mode: Create a ReceivedDebit","description":"Use this endpoint to simulate a test mode ReceivedDebit initiated by a third party. In live mode, you can’t directly create ReceivedDebits initiated by third parties.
","operationId":"PostTestHelpersTreasuryReceivedDebits","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["amount","currency","financial_account","network"],"type":"object","properties":{"amount":{"type":"integer","description":"Amount (in cents) to be transferred."},"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"description":{"maxLength":5000,"type":"string","description":"An arbitrary string attached to the object. Often useful for displaying to users."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"financial_account":{"type":"string","description":"The FinancialAccount to pull funds from."},"initiating_payment_method_details":{"title":"source_params","required":["type"],"type":"object","properties":{"type":{"type":"string","description":"The source type.","enum":["us_bank_account"]},"us_bank_account":{"title":"us_bank_account_source_params","type":"object","properties":{"account_holder_name":{"maxLength":5000,"type":"string","description":"The bank account holder's name."},"account_number":{"maxLength":5000,"type":"string","description":"The bank account number."},"routing_number":{"maxLength":5000,"type":"string","description":"The bank account's routing number."}},"description":"Optional fields for `us_bank_account`.","x-stripeMostCommon":["account_holder_name","account_number","routing_number"]}},"description":"Initiating payment method details for the object.","x-stripeMostCommon":["type","us_bank_account"]},"network":{"type":"string","description":"Specifies the network rails to be used. If not set, will default to the PaymentMethod's preferred network. See the [docs](https://docs.stripe.com/treasury/money-movement/timelines) to learn more about money movement timelines for each network type.","enum":["ach"]}},"additionalProperties":false,"x-stripeMostCommon":["amount","currency","description","financial_account","initiating_payment_method_details","network"]},"encoding":{"expand":{"style":"deepObject","explode":true},"initiating_payment_method_details":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/treasury.received_debit"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/tokens":{"post":{"summary":"Create a CVC update token","description":"Creates a single-use token that represents a bank account’s details.\nYou can use this token with any v1 API method in place of a bank account dictionary. You can only use this token once. To do so, attach it to a connected account where controller.requirement_collection is application, which includes Custom accounts.
Retrieves the token with the given ID.
","operationId":"GetTokensToken","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"token","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/token"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/topups":{"get":{"summary":"List all top-ups","description":"Returns a list of top-ups.
","operationId":"GetTopups","parameters":[{"name":"amount","in":"query","description":"A positive integer representing how much to transfer.","required":false,"style":"deepObject","explode":true,"schema":{"anyOf":[{"title":"range_query_specs","type":"object","properties":{"gt":{"type":"integer","description":"Minimum value to filter by (exclusive)"},"gte":{"type":"integer","description":"Minimum value to filter by (inclusive)"},"lt":{"type":"integer","description":"Maximum value to filter by (exclusive)"},"lte":{"type":"integer","description":"Maximum value to filter by (inclusive)"}},"x-stripeMostCommon":["gt","gte","lt","lte"]},{"type":"integer"}]}},{"name":"created","in":"query","description":"A filter on the list, based on the object `created` field. The value can be a string with an integer Unix timestamp, or it can be a dictionary with a number of different query options.","required":false,"style":"deepObject","explode":true,"schema":{"anyOf":[{"title":"range_query_specs","type":"object","properties":{"gt":{"type":"integer","description":"Minimum value to filter by (exclusive)"},"gte":{"type":"integer","description":"Minimum value to filter by (inclusive)"},"lt":{"type":"integer","description":"Maximum value to filter by (exclusive)"},"lte":{"type":"integer","description":"Maximum value to filter by (inclusive)"}},"x-stripeMostCommon":["gt","gte","lt","lte"]},{"type":"integer"}]}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"status","in":"query","description":"Only return top-ups that have the given status. One of `canceled`, `failed`, `pending` or `succeeded`.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string","enum":["canceled","failed","pending","succeeded"]}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"TopupList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/topup"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/topups","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create a top-up","description":"Top up the balance of an account
","operationId":"PostTopups","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["amount","currency"],"type":"object","properties":{"amount":{"type":"integer","description":"A positive integer representing how much to transfer."},"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies)."},"description":{"maxLength":5000,"type":"string","description":"An arbitrary string attached to the object. Often useful for displaying to users."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"source":{"maxLength":5000,"type":"string","description":"The ID of a source to transfer funds from. For most users, this should be left unspecified which will use the bank account that was set up in the dashboard for the specified currency. In test mode, this can be a test bank token (see [Testing Top-ups](https://docs.stripe.com/connect/testing#testing-top-ups))."},"statement_descriptor":{"maxLength":15,"type":"string","description":"Extra information about a top-up for the source's bank statement. Limited to 15 ASCII characters."},"transfer_group":{"type":"string","description":"A string that identifies this top-up as part of a group."}},"additionalProperties":false,"x-stripeMostCommon":["amount","currency","description","metadata"]},"encoding":{"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/topup"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/topups/{topup}":{"get":{"summary":"Retrieve a top-up","description":"Retrieves the details of a top-up that has previously been created. Supply the unique top-up ID that was returned from your previous request, and Stripe will return the corresponding top-up information.
","operationId":"GetTopupsTopup","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"topup","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/topup"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Update a top-up","description":"Updates the metadata of a top-up. Other top-up details are not editable by design.
","operationId":"PostTopupsTopup","parameters":[{"name":"topup","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"description":{"maxLength":5000,"type":"string","description":"An arbitrary string attached to the object. Often useful for displaying to users."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]}},"additionalProperties":false,"x-stripeMostCommon":["description","metadata"]},"encoding":{"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/topup"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/topups/{topup}/cancel":{"post":{"summary":"Cancel a top-up","description":"Cancels a top-up. Only pending top-ups can be canceled.
","operationId":"PostTopupsTopupCancel","parameters":[{"name":"topup","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}}},"additionalProperties":false},"encoding":{"expand":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/topup"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/transfers":{"get":{"summary":"List all transfers","description":"Returns a list of existing transfers sent to connected accounts. The transfers are returned in sorted order, with the most recently created transfers appearing first.
","operationId":"GetTransfers","parameters":[{"name":"created","in":"query","description":"Only return transfers that were created during the given date interval.","required":false,"style":"deepObject","explode":true,"schema":{"anyOf":[{"title":"range_query_specs","type":"object","properties":{"gt":{"type":"integer","description":"Minimum value to filter by (exclusive)"},"gte":{"type":"integer","description":"Minimum value to filter by (inclusive)"},"lt":{"type":"integer","description":"Maximum value to filter by (exclusive)"},"lte":{"type":"integer","description":"Maximum value to filter by (inclusive)"}},"x-stripeMostCommon":["gt","gte","lt","lte"]},{"type":"integer"}]}},{"name":"destination","in":"query","description":"Only return transfers for the destination specified by this account ID.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"transfer_group","in":"query","description":"Only return transfers with the specified transfer group.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"TransferList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","description":"Details about each object.","items":{"$ref":"#/components/schemas/transfer"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/transfers","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create a transfer","description":"To send funds from your Stripe account to a connected account, you create a new transfer object. Your Stripe balance must be able to cover the transfer amount, or you’ll receive an “Insufficient Funds” error.
","operationId":"PostTransfers","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["currency","destination"],"type":"object","properties":{"amount":{"type":"integer","description":"A positive integer in cents (or local equivalent) representing how much to transfer."},"currency":{"type":"string","description":"Three-letter [ISO code for currency](https://www.iso.org/iso-4217-currency-codes.html) in lowercase. Must be a [supported currency](https://docs.stripe.com/currencies).","format":"currency"},"description":{"maxLength":5000,"type":"string","description":"An arbitrary string attached to the object. Often useful for displaying to users."},"destination":{"type":"string","description":"The ID of a connected Stripe account. See the Connect documentation for details."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"source_transaction":{"type":"string","description":"You can use this parameter to transfer funds from a charge before they are added to your available balance. A pending balance will transfer immediately but the funds will not become available until the original charge becomes available. [See the Connect documentation](https://docs.stripe.com/connect/separate-charges-and-transfers#transfer-availability) for details."},"source_type":{"maxLength":5000,"type":"string","description":"The source balance to use for this transfer. One of `bank_account`, `card`, or `fpx`. For most users, this will default to `card`.","enum":["bank_account","card","fpx"],"x-stripeBypassValidation":true},"transfer_group":{"type":"string","description":"A string that identifies this transaction as part of a group. See the [Connect documentation](https://docs.stripe.com/connect/separate-charges-and-transfers#transfer-options) for details."}},"additionalProperties":false,"x-stripeMostCommon":["amount","currency","description","destination","metadata"]},"encoding":{"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/transfer"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/transfers/{id}/reversals":{"get":{"summary":"List all reversals","description":"You can see a list of the reversals belonging to a specific transfer. Note that the 10 most recent reversals are always available by default on the transfer object. If you need more than those 10, you can use this API method and the limit and starting_after parameters to page through additional reversals.
When you create a new reversal, you must specify a transfer to create it on.
\n\nWhen reversing transfers, you can optionally reverse part of the transfer. You can do so as many times as you wish until the entire transfer has been reversed.
\n\nOnce entirely reversed, a transfer can’t be reversed again. This method will return an error when called on an already-reversed transfer, or when trying to reverse more money than is left on a transfer.
","operationId":"PostTransfersIdReversals","parameters":[{"name":"id","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"amount":{"type":"integer","description":"A positive integer in cents (or local equivalent) representing how much of this transfer to reverse. Can only reverse up to the unreversed amount remaining of the transfer. Partial transfer reversals are only allowed for transfers to Stripe Accounts. Defaults to the entire transfer amount."},"description":{"maxLength":5000,"type":"string","description":"An arbitrary string which you can attach to a reversal object. This will be unset if you POST an empty value."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]},"refund_application_fee":{"type":"boolean","description":"Boolean indicating whether the application fee should be refunded when reversing this transfer. If a full transfer reversal is given, the full application fee will be refunded. Otherwise, the application fee will be refunded with an amount proportional to the amount of the transfer reversed."}},"additionalProperties":false,"x-stripeMostCommon":["amount","description","metadata"]},"encoding":{"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/transfer_reversal"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/transfers/{transfer}":{"get":{"summary":"Retrieve a transfer","description":"Retrieves the details of an existing transfer. Supply the unique transfer ID from either a transfer creation request or the transfer list, and Stripe will return the corresponding transfer information.
","operationId":"GetTransfersTransfer","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"transfer","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/transfer"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Update a transfer","description":"Updates the specified transfer by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
\n\nThis request accepts only metadata as an argument.
","operationId":"PostTransfersTransfer","parameters":[{"name":"transfer","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"description":{"maxLength":5000,"type":"string","description":"An arbitrary string attached to the object. Often useful for displaying to users."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]}},"additionalProperties":false,"x-stripeMostCommon":["description","metadata"]},"encoding":{"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/transfer"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/transfers/{transfer}/reversals/{id}":{"get":{"summary":"Retrieve a reversal","description":"By default, you can see the 10 most recent reversals stored directly on the transfer object, but you can also retrieve details about a specific reversal stored on the transfer.
","operationId":"GetTransfersTransferReversalsId","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"id","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"transfer","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/transfer_reversal"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Update a reversal","description":"Updates the specified reversal by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
\n\nThis request only accepts metadata and description as arguments.
","operationId":"PostTransfersTransferReversalsId","parameters":[{"name":"id","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"transfer","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"metadata":{"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.","anyOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"string","enum":[""]}]}},"additionalProperties":false,"x-stripeMostCommon":["metadata"]},"encoding":{"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/transfer_reversal"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/treasury/credit_reversals":{"get":{"summary":"List all CreditReversals","description":"Returns a list of CreditReversals.
","operationId":"GetTreasuryCreditReversals","parameters":[{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"financial_account","in":"query","description":"Returns objects associated with this FinancialAccount.","required":true,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"received_credit","in":"query","description":"Only return CreditReversals for the ReceivedCredit ID.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"status","in":"query","description":"Only return CreditReversals for a given status.","required":false,"style":"form","explode":true,"schema":{"type":"string","enum":["canceled","posted","processing"]}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"TreasuryReceivedCreditsResourceCreditReversalList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","description":"Details about each object.","items":{"$ref":"#/components/schemas/treasury.credit_reversal"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create a CreditReversal","description":"Reverses a ReceivedCredit and creates a CreditReversal object.
","operationId":"PostTreasuryCreditReversals","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["received_credit"],"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"received_credit":{"maxLength":5000,"type":"string","description":"The ReceivedCredit to reverse."}},"additionalProperties":false,"x-stripeMostCommon":["metadata","received_credit"]},"encoding":{"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/treasury.credit_reversal"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/treasury/credit_reversals/{credit_reversal}":{"get":{"summary":"Retrieve a CreditReversal","description":"Retrieves the details of an existing CreditReversal by passing the unique CreditReversal ID from either the CreditReversal creation request or CreditReversal list
","operationId":"GetTreasuryCreditReversalsCreditReversal","parameters":[{"name":"credit_reversal","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/treasury.credit_reversal"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/treasury/debit_reversals":{"get":{"summary":"List all DebitReversals","description":"Returns a list of DebitReversals.
","operationId":"GetTreasuryDebitReversals","parameters":[{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"financial_account","in":"query","description":"Returns objects associated with this FinancialAccount.","required":true,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"received_debit","in":"query","description":"Only return DebitReversals for the ReceivedDebit ID.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"resolution","in":"query","description":"Only return DebitReversals for a given resolution.","required":false,"style":"form","explode":true,"schema":{"type":"string","enum":["lost","won"]}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"status","in":"query","description":"Only return DebitReversals for a given status.","required":false,"style":"form","explode":true,"schema":{"type":"string","enum":["canceled","completed","processing"]}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"TreasuryReceivedDebitsResourceDebitReversalList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","description":"Details about each object.","items":{"$ref":"#/components/schemas/treasury.debit_reversal"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create a DebitReversal","description":"Reverses a ReceivedDebit and creates a DebitReversal object.
","operationId":"PostTreasuryDebitReversals","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["received_debit"],"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"received_debit":{"maxLength":5000,"type":"string","description":"The ReceivedDebit to reverse."}},"additionalProperties":false,"x-stripeMostCommon":["metadata","received_debit"]},"encoding":{"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/treasury.debit_reversal"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/treasury/debit_reversals/{debit_reversal}":{"get":{"summary":"Retrieve a DebitReversal","description":"Retrieves a DebitReversal object.
","operationId":"GetTreasuryDebitReversalsDebitReversal","parameters":[{"name":"debit_reversal","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/treasury.debit_reversal"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/treasury/financial_accounts":{"get":{"summary":"List all FinancialAccounts","description":"Returns a list of FinancialAccounts.
","operationId":"GetTreasuryFinancialAccounts","parameters":[{"name":"created","in":"query","description":"Only return FinancialAccounts that were created during the given date interval.","required":false,"style":"deepObject","explode":true,"schema":{"anyOf":[{"title":"range_query_specs","type":"object","properties":{"gt":{"type":"integer","description":"Minimum value to filter by (exclusive)"},"gte":{"type":"integer","description":"Minimum value to filter by (inclusive)"},"lt":{"type":"integer","description":"Maximum value to filter by (exclusive)"},"lte":{"type":"integer","description":"Maximum value to filter by (inclusive)"}},"x-stripeMostCommon":["gt","gte","lt","lte"]},{"type":"integer"}]}},{"name":"ending_before","in":"query","description":"An object ID cursor for use in pagination.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit ranging from 1 to 100 (defaults to 10).","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"An object ID cursor for use in pagination.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"status","in":"query","description":"Only return FinancialAccounts that have the given status: `open` or `closed`","required":false,"style":"form","explode":true,"schema":{"type":"string","enum":["closed","open"],"x-stripeBypassValidation":true}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"TreasuryFinancialAccountsResourceFinancialAccountList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/treasury.financial_account"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/treasury/financial_accounts","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create a FinancialAccount","description":"Creates a new FinancialAccount. Each connected account can have up to three FinancialAccounts by default.
","operationId":"PostTreasuryFinancialAccounts","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["supported_currencies"],"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"features":{"title":"feature_access","type":"object","properties":{"card_issuing":{"title":"access","required":["requested"],"type":"object","properties":{"requested":{"type":"boolean","description":"Whether the FinancialAccount should have the Feature."}},"description":"Encodes the FinancialAccount's ability to be used with the Issuing product, including attaching cards to and drawing funds from the FinancialAccount.","x-stripeMostCommon":["requested"]},"deposit_insurance":{"title":"access","required":["requested"],"type":"object","properties":{"requested":{"type":"boolean","description":"Whether the FinancialAccount should have the Feature."}},"description":"Represents whether this FinancialAccount is eligible for deposit insurance. Various factors determine the insurance amount.","x-stripeMostCommon":["requested"]},"financial_addresses":{"title":"financial_addresses","type":"object","properties":{"aba":{"title":"aba_access","required":["requested"],"type":"object","properties":{"requested":{"type":"boolean","description":"Whether the FinancialAccount should have the Feature."}},"description":"Adds an ABA FinancialAddress to the FinancialAccount.","x-stripeMostCommon":["bank","forwarding","requested"]}},"description":"Contains Features that add FinancialAddresses to the FinancialAccount.","x-stripeMostCommon":["aba"]},"inbound_transfers":{"title":"inbound_transfers","type":"object","properties":{"ach":{"title":"access_with_ach_details_inbound","required":["requested"],"type":"object","properties":{"requested":{"type":"boolean","description":"Whether the FinancialAccount should have the Feature."}},"description":"Enables ACH Debits via the InboundTransfers API.","x-stripeMostCommon":["platform_review","requested","same_day"]}},"description":"Contains settings related to adding funds to a FinancialAccount from another Account with the same owner.","x-stripeMostCommon":["ach","us_check"]},"intra_stripe_flows":{"title":"access","required":["requested"],"type":"object","properties":{"requested":{"type":"boolean","description":"Whether the FinancialAccount should have the Feature."}},"description":"Represents the ability for the FinancialAccount to send money to, or receive money from other FinancialAccounts (for example, via OutboundPayment).","x-stripeMostCommon":["requested"]},"outbound_payments":{"title":"outbound_payments","type":"object","properties":{"ach":{"title":"access_with_ach_details_outbound","required":["requested"],"type":"object","properties":{"requested":{"type":"boolean","description":"Whether the FinancialAccount should have the Feature."}},"description":"Enables ACH transfers via the OutboundPayments API.","x-stripeMostCommon":["requested","same_day"]},"us_domestic_wire":{"title":"access","required":["requested"],"type":"object","properties":{"requested":{"type":"boolean","description":"Whether the FinancialAccount should have the Feature."}},"description":"Enables US domestic wire transfers via the OutboundPayments API.","x-stripeMostCommon":["requested"]}},"description":"Includes Features related to initiating money movement out of the FinancialAccount to someone else's bucket of money.","x-stripeMostCommon":["ach","us_check","us_domestic_wire"]},"outbound_transfers":{"title":"outbound_transfers","type":"object","properties":{"ach":{"title":"access_with_ach_details_outbound","required":["requested"],"type":"object","properties":{"requested":{"type":"boolean","description":"Whether the FinancialAccount should have the Feature."}},"description":"Enables ACH transfers via the OutboundTransfers API.","x-stripeMostCommon":["requested","same_day"]},"us_domestic_wire":{"title":"access","required":["requested"],"type":"object","properties":{"requested":{"type":"boolean","description":"Whether the FinancialAccount should have the Feature."}},"description":"Enables US domestic wire transfers via the OutboundTransfers API.","x-stripeMostCommon":["requested"]}},"description":"Contains a Feature and settings related to moving money out of the FinancialAccount into another Account with the same owner.","x-stripeMostCommon":["ach","us_domestic_wire"]}},"description":"Encodes whether a FinancialAccount has access to a particular feature. Stripe or the platform can control features via the requested field.","x-stripeMostCommon":["card_issuing","deposit_insurance","financial_addresses","inbound_transfers","intra_stripe_flows","outbound_payments","outbound_transfers"]},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"nickname":{"description":"The nickname for the FinancialAccount.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]},"platform_restrictions":{"title":"platform_restrictions","type":"object","properties":{"inbound_flows":{"type":"string","description":"Restricts all inbound money movement.","enum":["restricted","unrestricted"]},"outbound_flows":{"type":"string","description":"Restricts all outbound money movement.","enum":["restricted","unrestricted"]}},"description":"The set of functionalities that the platform can restrict on the FinancialAccount.","x-stripeMostCommon":["inbound_flows","outbound_flows","received_credits","received_debits"]},"supported_currencies":{"type":"array","description":"The currencies the FinancialAccount can hold a balance in.","items":{"maxLength":5000,"type":"string"}}},"additionalProperties":false,"x-stripeMostCommon":["features","metadata","nickname","platform_restrictions","supported_currencies"]},"encoding":{"expand":{"style":"deepObject","explode":true},"features":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true},"nickname":{"style":"deepObject","explode":true},"platform_restrictions":{"style":"deepObject","explode":true},"supported_currencies":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/treasury.financial_account"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/treasury/financial_accounts/{financial_account}":{"get":{"summary":"Retrieve a FinancialAccount","description":"Retrieves the details of a FinancialAccount.
","operationId":"GetTreasuryFinancialAccountsFinancialAccount","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"financial_account","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/treasury.financial_account"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Update a FinancialAccount","description":"Updates the details of a FinancialAccount.
","operationId":"PostTreasuryFinancialAccountsFinancialAccount","parameters":[{"name":"financial_account","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"features":{"title":"feature_access","type":"object","properties":{"card_issuing":{"title":"access","required":["requested"],"type":"object","properties":{"requested":{"type":"boolean","description":"Whether the FinancialAccount should have the Feature."}},"description":"Encodes the FinancialAccount's ability to be used with the Issuing product, including attaching cards to and drawing funds from the FinancialAccount.","x-stripeMostCommon":["requested"]},"deposit_insurance":{"title":"access","required":["requested"],"type":"object","properties":{"requested":{"type":"boolean","description":"Whether the FinancialAccount should have the Feature."}},"description":"Represents whether this FinancialAccount is eligible for deposit insurance. Various factors determine the insurance amount.","x-stripeMostCommon":["requested"]},"financial_addresses":{"title":"financial_addresses","type":"object","properties":{"aba":{"title":"aba_access","required":["requested"],"type":"object","properties":{"requested":{"type":"boolean","description":"Whether the FinancialAccount should have the Feature."}},"description":"Adds an ABA FinancialAddress to the FinancialAccount.","x-stripeMostCommon":["bank","forwarding","requested"]}},"description":"Contains Features that add FinancialAddresses to the FinancialAccount.","x-stripeMostCommon":["aba"]},"inbound_transfers":{"title":"inbound_transfers","type":"object","properties":{"ach":{"title":"access_with_ach_details_inbound","required":["requested"],"type":"object","properties":{"requested":{"type":"boolean","description":"Whether the FinancialAccount should have the Feature."}},"description":"Enables ACH Debits via the InboundTransfers API.","x-stripeMostCommon":["platform_review","requested","same_day"]}},"description":"Contains settings related to adding funds to a FinancialAccount from another Account with the same owner.","x-stripeMostCommon":["ach","us_check"]},"intra_stripe_flows":{"title":"access","required":["requested"],"type":"object","properties":{"requested":{"type":"boolean","description":"Whether the FinancialAccount should have the Feature."}},"description":"Represents the ability for the FinancialAccount to send money to, or receive money from other FinancialAccounts (for example, via OutboundPayment).","x-stripeMostCommon":["requested"]},"outbound_payments":{"title":"outbound_payments","type":"object","properties":{"ach":{"title":"access_with_ach_details_outbound","required":["requested"],"type":"object","properties":{"requested":{"type":"boolean","description":"Whether the FinancialAccount should have the Feature."}},"description":"Enables ACH transfers via the OutboundPayments API.","x-stripeMostCommon":["requested","same_day"]},"us_domestic_wire":{"title":"access","required":["requested"],"type":"object","properties":{"requested":{"type":"boolean","description":"Whether the FinancialAccount should have the Feature."}},"description":"Enables US domestic wire transfers via the OutboundPayments API.","x-stripeMostCommon":["requested"]}},"description":"Includes Features related to initiating money movement out of the FinancialAccount to someone else's bucket of money.","x-stripeMostCommon":["ach","us_check","us_domestic_wire"]},"outbound_transfers":{"title":"outbound_transfers","type":"object","properties":{"ach":{"title":"access_with_ach_details_outbound","required":["requested"],"type":"object","properties":{"requested":{"type":"boolean","description":"Whether the FinancialAccount should have the Feature."}},"description":"Enables ACH transfers via the OutboundTransfers API.","x-stripeMostCommon":["requested","same_day"]},"us_domestic_wire":{"title":"access","required":["requested"],"type":"object","properties":{"requested":{"type":"boolean","description":"Whether the FinancialAccount should have the Feature."}},"description":"Enables US domestic wire transfers via the OutboundTransfers API.","x-stripeMostCommon":["requested"]}},"description":"Contains a Feature and settings related to moving money out of the FinancialAccount into another Account with the same owner.","x-stripeMostCommon":["ach","us_domestic_wire"]}},"description":"Encodes whether a FinancialAccount has access to a particular feature, with a status enum and associated `status_details`. Stripe or the platform may control features via the requested field.","x-stripeMostCommon":["card_issuing","deposit_insurance","financial_addresses","inbound_transfers","intra_stripe_flows","outbound_payments","outbound_transfers"]},"forwarding_settings":{"title":"forwarding_settings","required":["type"],"type":"object","properties":{"financial_account":{"type":"string","description":"The financial_account id"},"payment_method":{"maxLength":5000,"type":"string","description":"The payment_method or bank account id. This needs to be a verified bank account."},"type":{"type":"string","description":"The type of the bank account provided. This can be either \"financial_account\" or \"payment_method\"","enum":["financial_account","payment_method"]}},"description":"A different bank account where funds can be deposited/debited in order to get the closing FA's balance to $0","x-stripeMostCommon":["financial_account","payment_method","type"]},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"nickname":{"description":"The nickname for the FinancialAccount.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]},"platform_restrictions":{"title":"platform_restrictions","type":"object","properties":{"inbound_flows":{"type":"string","description":"Restricts all inbound money movement.","enum":["restricted","unrestricted"]},"outbound_flows":{"type":"string","description":"Restricts all outbound money movement.","enum":["restricted","unrestricted"]}},"description":"The set of functionalities that the platform can restrict on the FinancialAccount.","x-stripeMostCommon":["inbound_flows","outbound_flows","received_credits","received_debits"]}},"additionalProperties":false,"x-stripeMostCommon":["features","forwarding_settings","metadata","nickname","platform_restrictions"]},"encoding":{"expand":{"style":"deepObject","explode":true},"features":{"style":"deepObject","explode":true},"forwarding_settings":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true},"nickname":{"style":"deepObject","explode":true},"platform_restrictions":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/treasury.financial_account"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/treasury/financial_accounts/{financial_account}/close":{"post":{"summary":"Close a FinancialAccount","description":"Closes a FinancialAccount. A FinancialAccount can only be closed if it has a zero balance, has no pending InboundTransfers, and has canceled all attached Issuing cards.
","operationId":"PostTreasuryFinancialAccountsFinancialAccountClose","parameters":[{"name":"financial_account","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"forwarding_settings":{"title":"forwarding_settings","required":["type"],"type":"object","properties":{"financial_account":{"type":"string","description":"The financial_account id"},"payment_method":{"maxLength":5000,"type":"string","description":"The payment_method or bank account id. This needs to be a verified bank account."},"type":{"type":"string","description":"The type of the bank account provided. This can be either \"financial_account\" or \"payment_method\"","enum":["financial_account","payment_method"]}},"description":"A different bank account where funds can be deposited/debited in order to get the closing FA's balance to $0","x-stripeMostCommon":["financial_account","payment_method","type"]}},"additionalProperties":false,"x-stripeMostCommon":["forwarding_settings"]},"encoding":{"expand":{"style":"deepObject","explode":true},"forwarding_settings":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/treasury.financial_account"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/treasury/financial_accounts/{financial_account}/features":{"get":{"summary":"Retrieve FinancialAccount Features","description":"Retrieves Features information associated with the FinancialAccount.
","operationId":"GetTreasuryFinancialAccountsFinancialAccountFeatures","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"financial_account","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/treasury.financial_account_features"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Update FinancialAccount Features","description":"Updates the Features associated with a FinancialAccount.
","operationId":"PostTreasuryFinancialAccountsFinancialAccountFeatures","parameters":[{"name":"financial_account","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"card_issuing":{"title":"access","required":["requested"],"type":"object","properties":{"requested":{"type":"boolean","description":"Whether the FinancialAccount should have the Feature."}},"description":"Encodes the FinancialAccount's ability to be used with the Issuing product, including attaching cards to and drawing funds from the FinancialAccount.","x-stripeMostCommon":["requested"]},"deposit_insurance":{"title":"access","required":["requested"],"type":"object","properties":{"requested":{"type":"boolean","description":"Whether the FinancialAccount should have the Feature."}},"description":"Represents whether this FinancialAccount is eligible for deposit insurance. Various factors determine the insurance amount.","x-stripeMostCommon":["requested"]},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"financial_addresses":{"title":"financial_addresses","type":"object","properties":{"aba":{"title":"aba_access","required":["requested"],"type":"object","properties":{"requested":{"type":"boolean","description":"Whether the FinancialAccount should have the Feature."}},"description":"Adds an ABA FinancialAddress to the FinancialAccount.","x-stripeMostCommon":["bank","forwarding","requested"]}},"description":"Contains Features that add FinancialAddresses to the FinancialAccount.","x-stripeMostCommon":["aba"]},"inbound_transfers":{"title":"inbound_transfers","type":"object","properties":{"ach":{"title":"access_with_ach_details_inbound","required":["requested"],"type":"object","properties":{"requested":{"type":"boolean","description":"Whether the FinancialAccount should have the Feature."}},"description":"Enables ACH Debits via the InboundTransfers API.","x-stripeMostCommon":["platform_review","requested","same_day"]}},"description":"Contains settings related to adding funds to a FinancialAccount from another Account with the same owner.","x-stripeMostCommon":["ach","us_check"]},"intra_stripe_flows":{"title":"access","required":["requested"],"type":"object","properties":{"requested":{"type":"boolean","description":"Whether the FinancialAccount should have the Feature."}},"description":"Represents the ability for the FinancialAccount to send money to, or receive money from other FinancialAccounts (for example, via OutboundPayment).","x-stripeMostCommon":["requested"]},"outbound_payments":{"title":"outbound_payments","type":"object","properties":{"ach":{"title":"access_with_ach_details_outbound","required":["requested"],"type":"object","properties":{"requested":{"type":"boolean","description":"Whether the FinancialAccount should have the Feature."}},"description":"Enables ACH transfers via the OutboundPayments API.","x-stripeMostCommon":["requested","same_day"]},"us_domestic_wire":{"title":"access","required":["requested"],"type":"object","properties":{"requested":{"type":"boolean","description":"Whether the FinancialAccount should have the Feature."}},"description":"Enables US domestic wire transfers via the OutboundPayments API.","x-stripeMostCommon":["requested"]}},"description":"Includes Features related to initiating money movement out of the FinancialAccount to someone else's bucket of money.","x-stripeMostCommon":["ach","us_check","us_domestic_wire"]},"outbound_transfers":{"title":"outbound_transfers","type":"object","properties":{"ach":{"title":"access_with_ach_details_outbound","required":["requested"],"type":"object","properties":{"requested":{"type":"boolean","description":"Whether the FinancialAccount should have the Feature."}},"description":"Enables ACH transfers via the OutboundTransfers API.","x-stripeMostCommon":["requested","same_day"]},"us_domestic_wire":{"title":"access","required":["requested"],"type":"object","properties":{"requested":{"type":"boolean","description":"Whether the FinancialAccount should have the Feature."}},"description":"Enables US domestic wire transfers via the OutboundTransfers API.","x-stripeMostCommon":["requested"]}},"description":"Contains a Feature and settings related to moving money out of the FinancialAccount into another Account with the same owner.","x-stripeMostCommon":["ach","us_domestic_wire"]}},"additionalProperties":false,"x-stripeMostCommon":["card_issuing","deposit_insurance","financial_addresses","inbound_transfers","intra_stripe_flows","outbound_payments","outbound_transfers"]},"encoding":{"card_issuing":{"style":"deepObject","explode":true},"deposit_insurance":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"financial_addresses":{"style":"deepObject","explode":true},"inbound_transfers":{"style":"deepObject","explode":true},"intra_stripe_flows":{"style":"deepObject","explode":true},"outbound_payments":{"style":"deepObject","explode":true},"outbound_transfers":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/treasury.financial_account_features"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/treasury/inbound_transfers":{"get":{"summary":"List all InboundTransfers","description":"Returns a list of InboundTransfers sent from the specified FinancialAccount.
","operationId":"GetTreasuryInboundTransfers","parameters":[{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"financial_account","in":"query","description":"Returns objects associated with this FinancialAccount.","required":true,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"status","in":"query","description":"Only return InboundTransfers that have the given status: `processing`, `succeeded`, `failed` or `canceled`.","required":false,"style":"form","explode":true,"schema":{"type":"string","enum":["canceled","failed","processing","succeeded"],"x-stripeBypassValidation":true}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"TreasuryInboundTransfersResourceInboundTransferList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","description":"Details about each object.","items":{"$ref":"#/components/schemas/treasury.inbound_transfer"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create an InboundTransfer","description":"Creates an InboundTransfer.
","operationId":"PostTreasuryInboundTransfers","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["amount","currency","financial_account","origin_payment_method"],"type":"object","properties":{"amount":{"type":"integer","description":"Amount (in cents) to be transferred."},"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"description":{"maxLength":5000,"type":"string","description":"An arbitrary string attached to the object. Often useful for displaying to users."},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"financial_account":{"type":"string","description":"The FinancialAccount to send funds to."},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"origin_payment_method":{"maxLength":5000,"type":"string","description":"The origin payment method to be debited for the InboundTransfer."},"statement_descriptor":{"maxLength":10,"type":"string","description":"The complete description that appears on your customers' statements. Maximum 10 characters. Can only include -#.$&*, spaces, and alphanumeric characters."}},"additionalProperties":false,"x-stripeMostCommon":["amount","currency","description","financial_account","metadata","origin_payment_method","statement_descriptor"]},"encoding":{"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/treasury.inbound_transfer"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/treasury/inbound_transfers/{id}":{"get":{"summary":"Retrieve an InboundTransfer","description":"Retrieves the details of an existing InboundTransfer.
","operationId":"GetTreasuryInboundTransfersId","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"id","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/treasury.inbound_transfer"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/treasury/inbound_transfers/{inbound_transfer}/cancel":{"post":{"summary":"Cancel an InboundTransfer","description":"Cancels an InboundTransfer.
","operationId":"PostTreasuryInboundTransfersInboundTransferCancel","parameters":[{"name":"inbound_transfer","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}}},"additionalProperties":false},"encoding":{"expand":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/treasury.inbound_transfer"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/treasury/outbound_payments":{"get":{"summary":"List all OutboundPayments","description":"Returns a list of OutboundPayments sent from the specified FinancialAccount.
","operationId":"GetTreasuryOutboundPayments","parameters":[{"name":"created","in":"query","description":"Only return OutboundPayments that were created during the given date interval.","required":false,"style":"deepObject","explode":true,"schema":{"anyOf":[{"title":"range_query_specs","type":"object","properties":{"gt":{"type":"integer","description":"Minimum value to filter by (exclusive)"},"gte":{"type":"integer","description":"Minimum value to filter by (inclusive)"},"lt":{"type":"integer","description":"Maximum value to filter by (exclusive)"},"lte":{"type":"integer","description":"Maximum value to filter by (inclusive)"}},"x-stripeMostCommon":["gt","gte","lt","lte"]},{"type":"integer"}]}},{"name":"customer","in":"query","description":"Only return OutboundPayments sent to this customer.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"financial_account","in":"query","description":"Returns objects associated with this FinancialAccount.","required":true,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"status","in":"query","description":"Only return OutboundPayments that have the given status: `processing`, `failed`, `posted`, `returned`, or `canceled`.","required":false,"style":"form","explode":true,"schema":{"type":"string","enum":["canceled","failed","posted","processing","returned"]}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"TreasuryOutboundPaymentsResourceOutboundPaymentList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","description":"Details about each object.","items":{"$ref":"#/components/schemas/treasury.outbound_payment"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/treasury/outbound_payments","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create an OutboundPayment","description":"Creates an OutboundPayment.
","operationId":"PostTreasuryOutboundPayments","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["amount","currency","financial_account"],"type":"object","properties":{"amount":{"type":"integer","description":"Amount (in cents) to be transferred."},"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"customer":{"maxLength":5000,"type":"string","description":"ID of the customer to whom the OutboundPayment is sent. Must match the Customer attached to the `destination_payment_method` passed in."},"description":{"maxLength":5000,"type":"string","description":"An arbitrary string attached to the object. Often useful for displaying to users."},"destination_payment_method":{"maxLength":5000,"type":"string","description":"The PaymentMethod to use as the payment instrument for the OutboundPayment. Exclusive with `destination_payment_method_data`."},"destination_payment_method_data":{"title":"payment_method_data","required":["type"],"type":"object","properties":{"billing_details":{"title":"billing_details_inner_params","type":"object","properties":{"address":{"description":"Billing address.","anyOf":[{"title":"billing_details_address","type":"object","properties":{"city":{"maxLength":5000,"type":"string","description":"City, district, suburb, town, or village."},"country":{"maxLength":5000,"type":"string","description":"Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."},"line1":{"maxLength":5000,"type":"string","description":"Address line 1, such as the street, PO Box, or company name."},"line2":{"maxLength":5000,"type":"string","description":"Address line 2, such as the apartment, suite, unit, or building."},"postal_code":{"maxLength":5000,"type":"string","description":"ZIP or postal code."},"state":{"maxLength":5000,"type":"string","description":"State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))."}},"x-stripeMostCommon":["city","country","line1","line2","postal_code","state"]},{"type":"string","enum":[""]}]},"email":{"description":"Email address.","anyOf":[{"type":"string"},{"type":"string","enum":[""]}]},"name":{"description":"Full name.","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]},"phone":{"description":"Billing phone number (including extension).","anyOf":[{"maxLength":5000,"type":"string"},{"type":"string","enum":[""]}]}},"description":"Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.","x-stripeMostCommon":["address","email","name","phone"]},"financial_account":{"type":"string","description":"Required if type is set to `financial_account`. The FinancialAccount ID to send funds to."},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"type":{"type":"string","description":"The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.","enum":["financial_account","us_bank_account"],"x-stripeBypassValidation":true},"us_bank_account":{"title":"payment_method_param","type":"object","properties":{"account_holder_type":{"type":"string","description":"Account holder type: individual or company.","enum":["company","individual"]},"account_number":{"maxLength":5000,"type":"string","description":"Account number of the bank account."},"account_type":{"type":"string","description":"Account type: checkings or savings. Defaults to checking if omitted.","enum":["checking","savings"]},"financial_connections_account":{"maxLength":5000,"type":"string","description":"The ID of a Financial Connections Account to use as a payment method."},"routing_number":{"maxLength":5000,"type":"string","description":"Routing number of the bank account."}},"description":"Required hash if type is set to `us_bank_account`.","x-stripeMostCommon":["account_holder_type","account_number","account_type","financial_connections_account","routing_number","token"]}},"description":"Hash used to generate the PaymentMethod to be used for this OutboundPayment. Exclusive with `destination_payment_method`.","x-stripeMostCommon":["billing_details","metadata","type"]},"destination_payment_method_options":{"title":"payment_method_options","type":"object","properties":{"us_bank_account":{"description":"Optional fields for `us_bank_account`.","anyOf":[{"title":"payment_method_options_param","type":"object","properties":{"network":{"type":"string","description":"Specifies the network rails to be used. If not set, will default to the PaymentMethod's preferred network. See the [docs](https://docs.stripe.com/treasury/money-movement/timelines) to learn more about money movement timelines for each network type.","enum":["ach","us_domestic_wire"]}},"x-stripeMostCommon":["ach","network"]},{"type":"string","enum":[""]}]}},"description":"Payment method-specific configuration for this OutboundPayment.","x-stripeMostCommon":["us_bank_account"]},"end_user_details":{"title":"end_user_details_params","required":["present"],"type":"object","properties":{"ip_address":{"type":"string","description":"IP address of the user initiating the OutboundPayment. Must be supplied if `present` is set to `true`."},"present":{"type":"boolean","description":"`True` if the OutboundPayment creation request is being made on behalf of an end user by a platform. Otherwise, `false`."}},"description":"End user details.","x-stripeMostCommon":["ip_address","present"]},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"financial_account":{"type":"string","description":"The FinancialAccount to pull funds from."},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"statement_descriptor":{"maxLength":5000,"type":"string","description":"The description that appears on the receiving end for this OutboundPayment (for example, bank statement for external bank transfer). Maximum 10 characters for `ach` payments, 140 characters for `us_domestic_wire` payments, or 500 characters for `stripe` network transfers. Can only include -#.$&*, spaces, and alphanumeric characters. The default value is \"payment\"."}},"additionalProperties":false,"x-stripeMostCommon":["amount","currency","customer","description","destination_payment_method","destination_payment_method_data","destination_payment_method_options","end_user_details","financial_account","metadata","statement_descriptor"]},"encoding":{"destination_payment_method_data":{"style":"deepObject","explode":true},"destination_payment_method_options":{"style":"deepObject","explode":true},"end_user_details":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/treasury.outbound_payment"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/treasury/outbound_payments/{id}":{"get":{"summary":"Retrieve an OutboundPayment","description":"Retrieves the details of an existing OutboundPayment by passing the unique OutboundPayment ID from either the OutboundPayment creation request or OutboundPayment list.
","operationId":"GetTreasuryOutboundPaymentsId","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"id","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/treasury.outbound_payment"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/treasury/outbound_payments/{id}/cancel":{"post":{"summary":"Cancel an OutboundPayment","description":"Cancel an OutboundPayment.
","operationId":"PostTreasuryOutboundPaymentsIdCancel","parameters":[{"name":"id","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}}},"additionalProperties":false},"encoding":{"expand":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/treasury.outbound_payment"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/treasury/outbound_transfers":{"get":{"summary":"List all OutboundTransfers","description":"Returns a list of OutboundTransfers sent from the specified FinancialAccount.
","operationId":"GetTreasuryOutboundTransfers","parameters":[{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"financial_account","in":"query","description":"Returns objects associated with this FinancialAccount.","required":true,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"status","in":"query","description":"Only return OutboundTransfers that have the given status: `processing`, `canceled`, `failed`, `posted`, or `returned`.","required":false,"style":"form","explode":true,"schema":{"type":"string","enum":["canceled","failed","posted","processing","returned"]}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"TreasuryOutboundTransfersResourceOutboundTransferList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","description":"Details about each object.","items":{"$ref":"#/components/schemas/treasury.outbound_transfer"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create an OutboundTransfer","description":"Creates an OutboundTransfer.
","operationId":"PostTreasuryOutboundTransfers","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["amount","currency","financial_account"],"type":"object","properties":{"amount":{"type":"integer","description":"Amount (in cents) to be transferred."},"currency":{"type":"string","description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","format":"currency"},"description":{"maxLength":5000,"type":"string","description":"An arbitrary string attached to the object. Often useful for displaying to users."},"destination_payment_method":{"maxLength":5000,"type":"string","description":"The PaymentMethod to use as the payment instrument for the OutboundTransfer."},"destination_payment_method_data":{"title":"payment_method_data","required":["type"],"type":"object","properties":{"financial_account":{"type":"string","description":"Required if type is set to `financial_account`. The FinancialAccount ID to send funds to."},"type":{"type":"string","description":"The type of the destination.","enum":["financial_account"]}},"description":"Hash used to generate the PaymentMethod to be used for this OutboundTransfer. Exclusive with `destination_payment_method`.","x-stripeMostCommon":["type"]},"destination_payment_method_options":{"title":"payment_method_options","type":"object","properties":{"us_bank_account":{"description":"Optional fields for `us_bank_account`.","anyOf":[{"title":"payment_method_options_param","type":"object","properties":{"network":{"type":"string","description":"Specifies the network rails to be used. If not set, will default to the PaymentMethod's preferred network. See the [docs](https://docs.stripe.com/treasury/money-movement/timelines) to learn more about money movement timelines for each network type.","enum":["ach","us_domestic_wire"]}},"x-stripeMostCommon":["ach","network"]},{"type":"string","enum":[""]}]}},"description":"Hash describing payment method configuration details.","x-stripeMostCommon":["us_bank_account"]},"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}},"financial_account":{"type":"string","description":"The FinancialAccount to pull funds from."},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."},"statement_descriptor":{"maxLength":5000,"type":"string","description":"Statement descriptor to be shown on the receiving end of an OutboundTransfer. Maximum 10 characters for `ach` transfers or 140 characters for `us_domestic_wire` transfers. The default value is \"transfer\". Can only include -#.$&*, spaces, and alphanumeric characters."}},"additionalProperties":false,"x-stripeMostCommon":["amount","currency","description","destination_payment_method","destination_payment_method_data","destination_payment_method_options","financial_account","metadata","statement_descriptor"]},"encoding":{"destination_payment_method_data":{"style":"deepObject","explode":true},"destination_payment_method_options":{"style":"deepObject","explode":true},"expand":{"style":"deepObject","explode":true},"metadata":{"style":"deepObject","explode":true}}}},"required":true},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/treasury.outbound_transfer"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/treasury/outbound_transfers/{outbound_transfer}":{"get":{"summary":"Retrieve an OutboundTransfer","description":"Retrieves the details of an existing OutboundTransfer by passing the unique OutboundTransfer ID from either the OutboundTransfer creation request or OutboundTransfer list.
","operationId":"GetTreasuryOutboundTransfersOutboundTransfer","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"outbound_transfer","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/treasury.outbound_transfer"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/treasury/outbound_transfers/{outbound_transfer}/cancel":{"post":{"summary":"Cancel an OutboundTransfer","description":"An OutboundTransfer can be canceled if the funds have not yet been paid out.
","operationId":"PostTreasuryOutboundTransfersOutboundTransferCancel","parameters":[{"name":"outbound_transfer","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"expand":{"type":"array","description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"}}},"additionalProperties":false},"encoding":{"expand":{"style":"deepObject","explode":true}}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/treasury.outbound_transfer"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/treasury/received_credits":{"get":{"summary":"List all ReceivedCredits","description":"Returns a list of ReceivedCredits.
","operationId":"GetTreasuryReceivedCredits","parameters":[{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"financial_account","in":"query","description":"The FinancialAccount that received the funds.","required":true,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"linked_flows","in":"query","description":"Only return ReceivedCredits described by the flow.","required":false,"style":"deepObject","explode":true,"schema":{"title":"linked_flows_param","required":["source_flow_type"],"type":"object","properties":{"source_flow_type":{"type":"string","description":"The source flow type.","enum":["credit_reversal","other","outbound_payment","outbound_transfer","payout"]}},"x-stripeMostCommon":["source_flow_type"]}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"status","in":"query","description":"Only return ReceivedCredits that have the given status: `succeeded` or `failed`.","required":false,"style":"form","explode":true,"schema":{"type":"string","enum":["failed","succeeded"],"x-stripeBypassValidation":true}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"TreasuryReceivedCreditsResourceReceivedCreditList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","description":"Details about each object.","items":{"$ref":"#/components/schemas/treasury.received_credit"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/treasury/received_credits/{id}":{"get":{"summary":"Retrieve a ReceivedCredit","description":"Retrieves the details of an existing ReceivedCredit by passing the unique ReceivedCredit ID from the ReceivedCredit list.
","operationId":"GetTreasuryReceivedCreditsId","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"id","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/treasury.received_credit"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/treasury/received_debits":{"get":{"summary":"List all ReceivedDebits","description":"Returns a list of ReceivedDebits.
","operationId":"GetTreasuryReceivedDebits","parameters":[{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"financial_account","in":"query","description":"The FinancialAccount that funds were pulled from.","required":true,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"status","in":"query","description":"Only return ReceivedDebits that have the given status: `succeeded` or `failed`.","required":false,"style":"form","explode":true,"schema":{"type":"string","enum":["failed","succeeded"],"x-stripeBypassValidation":true}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"TreasuryReceivedDebitsResourceReceivedDebitList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","description":"Details about each object.","items":{"$ref":"#/components/schemas/treasury.received_debit"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/treasury/received_debits/{id}":{"get":{"summary":"Retrieve a ReceivedDebit","description":"Retrieves the details of an existing ReceivedDebit by passing the unique ReceivedDebit ID from the ReceivedDebit list
","operationId":"GetTreasuryReceivedDebitsId","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"id","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/treasury.received_debit"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/treasury/transaction_entries":{"get":{"summary":"List all TransactionEntries","description":"Retrieves a list of TransactionEntry objects.
","operationId":"GetTreasuryTransactionEntries","parameters":[{"name":"created","in":"query","description":"Only return TransactionEntries that were created during the given date interval.","required":false,"style":"deepObject","explode":true,"schema":{"anyOf":[{"title":"range_query_specs","type":"object","properties":{"gt":{"type":"integer","description":"Minimum value to filter by (exclusive)"},"gte":{"type":"integer","description":"Minimum value to filter by (inclusive)"},"lt":{"type":"integer","description":"Maximum value to filter by (exclusive)"},"lte":{"type":"integer","description":"Maximum value to filter by (inclusive)"}},"x-stripeMostCommon":["gt","gte","lt","lte"]},{"type":"integer"}]}},{"name":"effective_at","in":"query","required":false,"style":"deepObject","explode":true,"schema":{"anyOf":[{"title":"range_query_specs","type":"object","properties":{"gt":{"type":"integer","description":"Minimum value to filter by (exclusive)"},"gte":{"type":"integer","description":"Minimum value to filter by (inclusive)"},"lt":{"type":"integer","description":"Maximum value to filter by (exclusive)"},"lte":{"type":"integer","description":"Maximum value to filter by (inclusive)"}},"x-stripeMostCommon":["gt","gte","lt","lte"]},{"type":"integer"}]}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"financial_account","in":"query","description":"Returns objects associated with this FinancialAccount.","required":true,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"order_by","in":"query","description":"The results are in reverse chronological order by `created` or `effective_at`. The default is `created`.","required":false,"style":"form","explode":true,"schema":{"type":"string","enum":["created","effective_at"]}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"transaction","in":"query","description":"Only return TransactionEntries associated with this Transaction.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"TreasuryTransactionsResourceTransactionEntryList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","description":"Details about each object.","items":{"$ref":"#/components/schemas/treasury.transaction_entry"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/treasury/transaction_entries","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/treasury/transaction_entries/{id}":{"get":{"summary":"Retrieve a TransactionEntry","description":"Retrieves a TransactionEntry object.
","operationId":"GetTreasuryTransactionEntriesId","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"id","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/treasury.transaction_entry"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/treasury/transactions":{"get":{"summary":"List all Transactions","description":"Retrieves a list of Transaction objects.
","operationId":"GetTreasuryTransactions","parameters":[{"name":"created","in":"query","description":"Only return Transactions that were created during the given date interval.","required":false,"style":"deepObject","explode":true,"schema":{"anyOf":[{"title":"range_query_specs","type":"object","properties":{"gt":{"type":"integer","description":"Minimum value to filter by (exclusive)"},"gte":{"type":"integer","description":"Minimum value to filter by (inclusive)"},"lt":{"type":"integer","description":"Maximum value to filter by (exclusive)"},"lte":{"type":"integer","description":"Maximum value to filter by (inclusive)"}},"x-stripeMostCommon":["gt","gte","lt","lte"]},{"type":"integer"}]}},{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"financial_account","in":"query","description":"Returns objects associated with this FinancialAccount.","required":true,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"order_by","in":"query","description":"The results are in reverse chronological order by `created` or `posted_at`. The default is `created`.","required":false,"style":"form","explode":true,"schema":{"type":"string","enum":["created","posted_at"],"x-stripeBypassValidation":true}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"status","in":"query","description":"Only return Transactions that have the given status: `open`, `posted`, or `void`.","required":false,"style":"form","explode":true,"schema":{"type":"string","enum":["open","posted","void"]}},{"name":"status_transitions","in":"query","description":"A filter for the `status_transitions.posted_at` timestamp. When using this filter, `status=posted` and `order_by=posted_at` must also be specified.","required":false,"style":"deepObject","explode":true,"schema":{"title":"status_transition_timestamp_specs","type":"object","properties":{"posted_at":{"description":"Returns Transactions with `posted_at` within the specified range.","anyOf":[{"title":"range_query_specs","type":"object","properties":{"gt":{"type":"integer","description":"Minimum value to filter by (exclusive)"},"gte":{"type":"integer","description":"Minimum value to filter by (inclusive)"},"lt":{"type":"integer","description":"Maximum value to filter by (exclusive)"},"lte":{"type":"integer","description":"Maximum value to filter by (inclusive)"}},"x-stripeMostCommon":["gt","gte","lt","lte"]},{"type":"integer"}]}},"x-stripeMostCommon":["posted_at"]}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"TreasuryTransactionsResourceTransactionList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","description":"Details about each object.","items":{"$ref":"#/components/schemas/treasury.transaction"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/treasury/transactions/{id}":{"get":{"summary":"Retrieve a Transaction","description":"Retrieves the details of an existing Transaction.
","operationId":"GetTreasuryTransactionsId","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"id","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/treasury.transaction"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v1/webhook_endpoints":{"get":{"summary":"List all webhook endpoints","description":"Returns a list of your webhook endpoints.
","operationId":"GetWebhookEndpoints","parameters":[{"name":"ending_before","in":"query","description":"A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}},{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"limit","in":"query","description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"starting_after","in":"query","description":"A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.","required":false,"style":"form","explode":true,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"title":"NotificationWebhookEndpointList","required":["data","has_more","object","url"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/webhook_endpoint"}},"has_more":{"type":"boolean","description":"True if this list has another page of items after this one that can be fetched."},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"]},"url":{"maxLength":5000,"pattern":"^/v1/webhook_endpoints","type":"string","description":"The URL where this list can be accessed."}},"description":"","x-expandableFields":["data"],"x-stripeMostCommon":["data","has_more","object","url"]}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Create a webhook endpoint","description":"A webhook endpoint must have a url and a list of enabled_events. You may optionally specify the Boolean connect parameter. If set to true, then a Connect webhook endpoint that notifies the specified url about events from all connected accounts is created; otherwise an account webhook endpoint that notifies the specified url only about events from your account is created. You can also create webhook endpoints in the webhooks settings section of the Dashboard.
Retrieves the webhook endpoint with the given ID.
","operationId":"GetWebhookEndpointsWebhookEndpoint","parameters":[{"name":"expand","in":"query","description":"Specifies which fields in the response should be expanded.","required":false,"style":"deepObject","explode":true,"schema":{"type":"array","items":{"maxLength":5000,"type":"string"}}},{"name":"webhook_endpoint","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/webhook_endpoint"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}},"post":{"summary":"Update a webhook endpoint","description":"Updates the webhook endpoint. You may edit the url, the list of enabled_events, and the status of your endpoint.
You can also delete webhook endpoints via the webhook endpoint management page of the Stripe dashboard.
","operationId":"DeleteWebhookEndpointsWebhookEndpoint","parameters":[{"name":"webhook_endpoint","in":"path","required":true,"style":"simple","explode":false,"schema":{"maxLength":5000,"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{},"additionalProperties":false},"encoding":{}}},"required":false},"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/deleted_webhook_endpoint"}}}},"default":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/v2/billing/meter_event_adjustments":{"post":{"summary":"Create a Meter Event Adjustment","description":"Creates a meter event adjustment to cancel a previously sent meter event.","operationId":"PostV2BillingMeterEventAdjustments","requestBody":{"content":{"application/json":{"schema":{"required":["cancel","event_name","type"],"type":"object","properties":{"cancel":{"required":["identifier"],"type":"object","properties":{"identifier":{"type":"string","description":"Unique identifier for the event. You can only cancel events within 24 hours of Stripe receiving them."}},"description":"Specifies which event to cancel."},"event_name":{"type":"string","description":"The name of the meter event. Corresponds with the `event_name` field on a meter."},"type":{"type":"string","description":"Specifies whether to cancel a single event or a range of events for a time period. Time period cancellation is not supported yet.","enum":["cancel"],"x-stripeEnum":[{"description":"Cancel a single meter event by identifier.","value":"cancel"}]}}}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/v2.billing.meter_event_adjustment"}}}},"default":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/v2.error.invalid_cancel_configuration"},{"$ref":"#/components/schemas/v2.error"}]}}}}},"x-stableId":"v2_method_create_usage_adjustment_v2_synchronous","x-stripeDocsSamples":[{"request":{"pathParams":{},"requestBody":{"event_name":"ai_search_api","type":"cancel","cancel":{"identifier":"idmp_12345678"}}},"response":{"object":"v2.billing.meter_event_adjustment","id":"mtr_event_adj_12345678","livemode":false,"created":"2024-06-01T12:00:00.000Z","status":"pending","event_name":"ai_search_api","type":"cancel","cancel":{"identifier":"idmp_12345678"}}}],"x-stripeErrors":[{"code":"invalid_cancel_configuration","description":"The adjustment configuration is invalid for the adjustment type.","httpStatusCode":400}]}},"/v2/billing/meter_event_session":{"post":{"summary":"Create a Meter Event Stream Authentication Session","description":"Creates a meter event session to send usage on the high-throughput meter event stream. Authentication tokens are only valid for 15 minutes, so you will need to create a new meter event session when your token expires.","operationId":"PostV2BillingMeterEventSession","responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/v2.billing.meter_event_session"}}}},"default":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/v2.error"}]}}}}},"x-stableId":"v2_method_create_auth_session","x-stripeDocsSamples":[{"request":{"pathParams":{},"requestBody":{}},"response":{"id":"