Create a payout

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.

If 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.

If 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.

Parameters

  • amountintegerRequired

    A positive integer in cents representing how much to payout.

  • currencyenumRequired

    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.

  • statement_descriptorstring

    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.

More parameters

  • destinationstring

  • methodstring

  • source_typestring

Returns

Returns a payout object if no initial errors are present during the payout creation (invalid routing number, insufficient funds, and so on). We initially mark the status of the payout object as pending.

POST /v1/payouts
curl https://api.stripe.com/v1/payouts \
-u "sk_test_4eC39Hq...arjtT1zdp7dcsk_test_4eC39HqLyjWDarjtT1zdp7dc:" \
-d amount=1100 \
-d currency=usd
Response
{
"id": "po_1OaFDbEcg9tTZuTgNYmX0PKB",
"object": "payout",
"amount": 1100,
"arrival_date": 1680652800,
"automatic": false,
"balance_transaction": "txn_1OaFDcEcg9tTZuTgYMR25tSe",
"created": 1680648691,
"currency": "usd",
"description": null,
"destination": "ba_1MtIhL2eZvKYlo2CAElKwKu2",
"failure_balance_transaction": null,
"failure_code": null,
"failure_message": null,
"livemode": false,
"metadata": {},
"method": "standard",
"original_payout": null,
"reconciliation_status": "not_applicable",
"reversed_by": null,
"source_type": "card",
"statement_descriptor": null,
"status": "pending",
"type": "bank_account"
}

Update a payout

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.

Parameters

  • 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.

Returns

Returns the payout object if the update succeeds. This call raises an error if update parameters are invalid.

POST /v1/payouts/:id
curl https://api.stripe.com/v1/payouts/po_1OaFDbEcg9tTZuTgNYmX0PKB \
-u "sk_test_4eC39Hq...arjtT1zdp7dcsk_test_4eC39HqLyjWDarjtT1zdp7dc:" \
-d "metadata[order_id]"=6735
Response
{
"id": "po_1OaFDbEcg9tTZuTgNYmX0PKB",
"object": "payout",
"amount": 1100,
"arrival_date": 1680652800,
"automatic": false,
"balance_transaction": "txn_1OaFDcEcg9tTZuTgYMR25tSe",
"created": 1680648691,
"currency": "usd",
"description": null,
"destination": "ba_1MtIhL2eZvKYlo2CAElKwKu2",
"failure_balance_transaction": null,
"failure_code": null,
"failure_message": null,
"livemode": false,
"metadata": {
"order_id": "6735"
},
"method": "standard",
"original_payout": null,
"reconciliation_status": "not_applicable",
"reversed_by": null,
"source_type": "card",
"statement_descriptor": null,
"status": "pending",
"type": "bank_account"
}

Retrieve a payout

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.

Parameters

No parameters.

Returns

Returns a payout object if a you provide a valid identifier. raises An error occurs otherwise.

GET /v1/payouts/:id
curl https://api.stripe.com/v1/payouts/po_1OaFDbEcg9tTZuTgNYmX0PKB \
-u "sk_test_4eC39Hq...arjtT1zdp7dcsk_test_4eC39HqLyjWDarjtT1zdp7dc:"
Response
{
"id": "po_1OaFDbEcg9tTZuTgNYmX0PKB",
"object": "payout",
"amount": 1100,
"arrival_date": 1680652800,
"automatic": false,
"balance_transaction": "txn_1OaFDcEcg9tTZuTgYMR25tSe",
"created": 1680648691,
"currency": "usd",
"description": null,
"destination": "ba_1MtIhL2eZvKYlo2CAElKwKu2",
"failure_balance_transaction": null,
"failure_code": null,
"failure_message": null,
"livemode": false,
"metadata": {},
"method": "standard",
"original_payout": null,
"reconciliation_status": "not_applicable",
"reversed_by": null,
"source_type": "card",
"statement_descriptor": null,
"status": "pending",
"type": "bank_account"
}

List all payouts

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.

Parameters

  • statusstring

    Only return payouts that have the given status: pending, paid, failed, or canceled.

More parameters

  • arrival_dateobject

  • createdobject

  • destinationstring

  • ending_beforestring

  • limitinteger

  • starting_afterstring

Returns

A dictionary with a data property that contains an array of up to limit payouts, starting after payout starting_after. Each entry in the array is a separate payout object. If no other payouts are available, the resulting array is empty.

GET /v1/payouts
curl -G https://api.stripe.com/v1/payouts \
-u "sk_test_4eC39Hq...arjtT1zdp7dcsk_test_4eC39HqLyjWDarjtT1zdp7dc:" \
-d limit=3
Response
{
"object": "list",
"url": "/v1/payouts",
"has_more": false,
"data": [
{
"id": "po_1OaFDbEcg9tTZuTgNYmX0PKB",
"object": "payout",
"amount": 1100,
"arrival_date": 1680652800,
"automatic": false,
"balance_transaction": "txn_1OaFDcEcg9tTZuTgYMR25tSe",
"created": 1680648691,
"currency": "usd",
"description": null,
"destination": "ba_1MtIhL2eZvKYlo2CAElKwKu2",
"failure_balance_transaction": null,
"failure_code": null,
"failure_message": null,
"livemode": false,
"metadata": {},
"method": "standard",
"original_payout": null,
"reconciliation_status": "not_applicable",
"reversed_by": null,
"source_type": "card",
"statement_descriptor": null,
"status": "pending",
"type": "bank_account"
}
{...}
{...}
],
}

Cancel a payout

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.

Parameters

No parameters.

Returns

Returns the payout object if the cancellation succeeds. Returns an error if the payout is already canceled or can’t be canceled.

POST /v1/payouts/:id/cancel
curl -X POST https://api.stripe.com/v1/payouts/po_1OaFDbEcg9tTZuTgNYmX0PKB/cancel \
-u "sk_test_4eC39Hq...arjtT1zdp7dcsk_test_4eC39HqLyjWDarjtT1zdp7dc:"
Response
{
"id": "po_1OaFDbEcg9tTZuTgNYmX0PKB",
"object": "payout",
"amount": 1100,
"arrival_date": 1680652800,
"automatic": false,
"balance_transaction": "txn_1OaFDcEcg9tTZuTgYMR25tSe",
"created": 1680648691,
"currency": "usd",
"description": null,
"destination": "ba_1MtIhL2eZvKYlo2CAElKwKu2",
"failure_balance_transaction": "txn_1OaFJKEcg9tTZuTg2RdsWQhi",
"failure_code": null,
"failure_message": null,
"livemode": false,
"metadata": {},
"method": "standard",
"original_payout": null,
"reconciliation_status": "not_applicable",
"reversed_by": null,
"source_type": "card",
"statement_descriptor": null,
"status": "canceled",
"type": "bank_account"
}
Stripe Shell
Test mode
Welcome to the Stripe Shell! Stripe Shell is a browser-based shell with the Stripe CLI pre-installed. Log in to your Stripe account and press Control + Backtick (`) on your keyboard to start managing your Stripe resources in test mode. - View supported Stripe commands: - Find webhook events: - Listen for webhook events: - Call Stripe APIs: stripe [api resource] [operation] (e.g., )
The Stripe Shell is best experienced on desktop.
$