Skip to content

Stripe: Topups schemas

4 Stripe schemas with complete fields and constraints.

← Topups operations · All schemas

Cancel a top-up — response body

FieldTypePresenceDescription and constraints
$objectRootTo top up your Stripe balance, you create a top-up object. You can retrieve
individual top-ups, as well as list all top-ups. Top-ups are identified by a
unique, random ID.

Related guide: [Topping up your platform account](https://docs.stripe.com/connect/top-ups)
amountJSONRequired within parent
amount (anyOf 1)integerAlternativeAmount transferred.
amount (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
balance_transactionJSONOptional
balance_transaction (anyOf 1)JSONAlternativeID of the balance transaction that describes the impact of this top-up on your account balance. May not be specified depending on status of top-up.
balance_transaction (anyOf 1) (anyOf 1)stringAlternativeMaximum length: 5000
balance_transaction (anyOf 1) (anyOf 2)ModelAlternativeExpand Retrieve a balance transaction — balance get Balance History Id — response body
balance_transaction (anyOf 2)nullAlternative
createdJSONRequired within parent
created (anyOf 1)integerAlternativeTime at which the object was created. Measured in seconds since the Unix epoch.
Format: unix-time
created (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
currencystringRequired within parentThree-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).
Maximum length: 5000
descriptionJSONOptional
description (anyOf 1)stringAlternativeAn arbitrary string attached to the object. Often useful for displaying to users.
Maximum length: 5000
description (anyOf 2)nullAlternative
expected_availability_dateJSONOptional
expected_availability_date (anyOf 1)JSONAlternative
expected_availability_date (anyOf 1) (anyOf 1)integerAlternativeDate the funds are expected to arrive in your Stripe account for payouts. This factors in delays like weekends or bank holidays. May not be specified depending on status of top-up.
expected_availability_date (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
expected_availability_date (anyOf 2)nullAlternative
failure_codeJSONOptional
failure_code (anyOf 1)stringAlternativeError code explaining reason for top-up failure if available (see [the errors section](/api/errors) for a list of codes).
Maximum length: 5000
failure_code (anyOf 2)nullAlternative
failure_messageJSONOptional
failure_message (anyOf 1)stringAlternativeMessage to user further explaining reason for top-up failure if available.
Maximum length: 5000
failure_message (anyOf 2)nullAlternative
idstringRequired within parentUnique identifier for the object.
Maximum length: 5000
initiated_byJSONOptional
initiated_by (anyOf 1)stringAlternativeIndicates whether the top-up was initiated by Stripe or by the user.
Known values: stripe, user
initiated_by (anyOf 2)nullAlternative
livemodebooleanRequired within parentIf the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
metadataobjectRequired within parentSet 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.
Additional keys: see wildcard field
metadata.*stringAdditional keysMaximum length: 500
objectstringRequired within parentString representing the object's type. Objects of the same type share the same value.
Known values: topup
payment_methodJSONOptional
payment_method (anyOf 1)JSONAlternativeThe ID of a PaymentMethod representing the payment method used for the top-up. A PaymentMethod of type `us_bank_account` can be used.
payment_method (anyOf 1) (anyOf 1)stringAlternativeMaximum length: 5000
payment_method (anyOf 1) (anyOf 2)ModelAlternativeExpand Create a Payment Method — response body
payment_method (anyOf 2)nullAlternative
payment_method_optionsJSONOptional
payment_method_options (anyOf 1)JSONAlternativePayment-method-specific configuration for this top-up.
payment_method_options (anyOf 1) (anyOf 1)ModelAlternativeExpand Cancel a top-up — response body — payment method options value us bank account
payment_method_options (anyOf 2)nullAlternative
sourceJSONOptional
source (anyOf 1)JSONAlternativeThe source field is deprecated. It might not always be present in the API response.
source (anyOf 1) (anyOf 1)ModelAlternativeExpand Create a source — response body
source (anyOf 2)nullAlternative
statement_descriptorJSONOptional
statement_descriptor (anyOf 1)stringAlternativeExtra information about a top-up. This will appear on your source's bank statement. It must contain at least one letter.
Maximum length: 5000
statement_descriptor (anyOf 2)nullAlternative
statusstringRequired within parentThe status of the top-up is either `canceled`, `failed`, `pending`, `reversed`, or `succeeded`.
Known values: canceled, failed, pending, reversed, succeeded
transfer_groupJSONOptional
transfer_group (anyOf 1)stringAlternativeA string that identifies this top-up as part of a group.
Maximum length: 5000
transfer_group (anyOf 2)nullAlternative

Referenced models: Retrieve a balance transaction — balance get Balance History Id — response body, Create a Payment Method — response body, Create a source — response body, Cancel a top-up — response body — payment method options value us bank account

Cancel a top-up — response body — payment method options value us bank account

FieldTypePresenceDescription and constraints
$objectRoot
us_bank_accountJSONOptional
us_bank_account (anyOf 1)JSONAlternativeIf this top-up is to be used with a `us_bank_account` payment method, this sub-hash contains configuration for it.
us_bank_account (anyOf 1) (anyOf 1)ModelAlternativeExpand Cancel a top-up — response body — payment_method_options / value / us_bank_account / us_bank_account / value / network: ach
us_bank_account (anyOf 2)nullAlternative

Referenced models: Cancel a top-up — response body — payment_method_options / value / us_bank_account / us_bank_account / value / network: ach

Cancel a top-up — response body — payment_method_options / value / us_bank_account / us_bank_account / value / network: ach

FieldTypePresenceDescription and constraints
$objectRoot
networkstringRequired within parentThe US bank transfer network used for this top-up. The default is `ach`.
Known values: ach

Update a top-up — request body — body

FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
descriptionstringOptionalAn arbitrary string attached to the object. Often useful for displaying to users.
Maximum length: 5000
expandarrayOptionalSpecifies which fields in the response should be expanded.
expand[]stringEach itemMaximum length: 5000
metadataJSONOptionalSet 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 (anyOf 1)objectAlternativeAdditional keys: see wildcard field
metadata (anyOf 1).*stringAdditional keys
metadata (anyOf 2)stringAlternativeOne of:

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.