To 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
Attributes
- idstring
Unique identifier for the object.
- amountinteger
Amount transferred.
- currencystring
Three-letter ISO currency code, in lowercase. Must be a supported currency.
- descriptionnullable string
An arbitrary string attached to the object. Often useful for displaying to users.
- metadataobject
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.
- statusenum
The status of the top-up is either
canceled,failed,pending,reversed, orsucceeded.Possible enum valuescanceledfailedpendingreversedsucceeded
More attributes
- objectstring
- balance_
transactionnullable stringExpandable - createdtimestamp
- expected_
availability_ datenullable integer - failure_
codenullable string - failure_
messagenullable string - livemodeboolean
- sourcenullable objectDeprecated
- statement_
descriptornullable string - transfer_
groupnullable string
{ "id": "tu_1NG6yj2eZvKYlo2C1FOBiHya", "object": "topup", "amount": 2000, "balance_transaction": null, "created": 123456789, "currency": "usd", "description": "Top-up for Jenny Rosen", "expected_availability_date": 123456789, "failure_code": null, "failure_message": null, "livemode": false, "source": null, "statement_descriptor": "Top-up", "status": "pending", "transfer_group": null}Top up the balance of an account
Parameters
- amountintegerRequired
A positive integer representing how much to transfer.
- currencystringRequired
Three-letter ISO currency code, in lowercase. Must be a supported currency.
- descriptionstring
An arbitrary string attached to the object. Often useful for displaying to users.
- metadataobject
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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to
metadata.
More parameters
- sourcestring
- statement_
descriptorstring - transfer_
groupstring
Returns
Returns the top-up object.
{ "id": "tu_1NG6yj2eZvKYlo2C1FOBiHya", "object": "topup", "amount": 2000, "balance_transaction": null, "created": 123456789, "currency": "usd", "description": "Top-up for Jenny Rosen", "expected_availability_date": 123456789, "failure_code": null, "failure_message": null, "livemode": false, "source": null, "statement_descriptor": "Top-up", "status": "pending", "transfer_group": null}