Class Payout
- All Implemented Interfaces:
BalanceTransactionSource
,HasId
,MetadataStore<Payout>
,StripeActiveObject
,StripeObjectInterface
Payout
object is created when you receive funds from Stripe, or when you initiate a
payout to either a bank account or debit card of a connected Stripe account. You
can retrieve individual payouts, and list all payouts. Payouts are made on varying schedules, depending on
your country and industry.
Related guide: Receiving payouts
-
Nested Class Summary
Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod
-
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON, INTERNAL_GSON
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncancel()
You can cancel a previously created payout if its status ispending
.cancel
(RequestOptions options) You can cancel a previously created payout if its status ispending
.cancel
(PayoutCancelParams params) You can cancel a previously created payout if its status ispending
.cancel
(PayoutCancelParams params, RequestOptions options) You can cancel a previously created payout if its status ispending
.You can cancel a previously created payout if its status ispending
.cancel
(Map<String, Object> params, RequestOptions options) You can cancel a previously created payout if its status ispending
.protected boolean
static Payout
create
(PayoutCreateParams params) To send funds to your own bank account, create a new payout object.static Payout
create
(PayoutCreateParams params, RequestOptions options) To send funds to your own bank account, create a new payout object.static Payout
To send funds to your own bank account, create a new payout object.static Payout
create
(Map<String, Object> params, RequestOptions options) To send funds to your own bank account, create a new payout object.boolean
The amount (in cents (or local equivalent)) that transfers to your bank account or debit card.Get ID of expandableapplicationFee
object.The amount of the application fee (if any) requested for the payout.Get expandedapplicationFee
.Date that you can expect the payout to arrive in the bank.Returnstrue
if the payout is created by an automated payout schedule andfalse
if it's requested manually.Get ID of expandablebalanceTransaction
object.Get expandedbalanceTransaction
.Time at which the object was created.Three-letter ISO currency code, in lowercase.An arbitrary string attached to the object.Get ID of expandabledestination
object.Get expandeddestination
.Get ID of expandablefailureBalanceTransaction
object.Get expandedfailureBalanceTransaction
.Error code that provides a reason for a payout failure, if available.Message that provides the reason for a payout failure, if available.getId()
Unique identifier for the object.Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.Set of key-value pairs that you can attach to an object.The method used to send this payout, which can bestandard
orinstant
.String representing the object's type.Get ID of expandableoriginalPayout
object.Get expandedoriginalPayout
.Ifcompleted
, you can use the Balance Transactions API to list all balance transactions that are paid out in this payout.Get ID of expandablereversedBy
object.Get expandedreversedBy
.The source balance this payout came from, which can be one of the following:card
,fpx
, orbank_account
.Extra information about a payout that displays on the user's bank statement.Current status of the payout:paid
,pending
,in_transit
,canceled
orfailed
.getType()
Can bebank_account
orcard
.int
hashCode()
static PayoutCollection
list
(PayoutListParams params) Returns a list of existing payouts sent to third-party bank accounts or payouts that Stripe sent to you.static PayoutCollection
list
(PayoutListParams params, RequestOptions options) Returns a list of existing payouts sent to third-party bank accounts or payouts that Stripe sent to you.static PayoutCollection
Returns a list of existing payouts sent to third-party bank accounts or payouts that Stripe sent to you.static PayoutCollection
list
(Map<String, Object> params, RequestOptions options) Returns a list of existing payouts sent to third-party bank accounts or payouts that Stripe sent to you.static Payout
Retrieves the details of an existing payout.static Payout
retrieve
(String payout, RequestOptions options) Retrieves the details of an existing payout.static Payout
retrieve
(String payout, PayoutRetrieveParams params, RequestOptions options) Retrieves the details of an existing payout.static Payout
Retrieves the details of an existing payout.reverse()
Reverses a payout by debiting the destination bank account.reverse
(RequestOptions options) Reverses a payout by debiting the destination bank account.reverse
(PayoutReverseParams params) Reverses a payout by debiting the destination bank account.reverse
(PayoutReverseParams params, RequestOptions options) Reverses a payout by debiting the destination bank account.Reverses a payout by debiting the destination bank account.reverse
(Map<String, Object> params, RequestOptions options) Reverses a payout by debiting the destination bank account.void
The amount (in cents (or local equivalent)) that transfers to your bank account or debit card.void
void
setApplicationFeeAmount
(Long applicationFeeAmount) The amount of the application fee (if any) requested for the payout.void
setApplicationFeeObject
(ApplicationFee expandableObject) void
setArrivalDate
(Long arrivalDate) Date that you can expect the payout to arrive in the bank.void
setAutomatic
(Boolean automatic) Returnstrue
if the payout is created by an automated payout schedule andfalse
if it's requested manually.void
void
setBalanceTransactionObject
(BalanceTransaction expandableObject) void
setCreated
(Long created) Time at which the object was created.void
setCurrency
(String currency) Three-letter ISO currency code, in lowercase.void
setDescription
(String description) An arbitrary string attached to the object.void
setDestination
(String id) void
setDestinationObject
(ExternalAccount expandableObject) void
void
setFailureBalanceTransactionObject
(BalanceTransaction expandableObject) void
setFailureCode
(String failureCode) Error code that provides a reason for a payout failure, if available.void
setFailureMessage
(String failureMessage) Message that provides the reason for a payout failure, if available.void
Unique identifier for the object.void
setLivemode
(Boolean livemode) Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
setMetadata
(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.void
The method used to send this payout, which can bestandard
orinstant
.void
String representing the object's type.void
void
setOriginalPayoutObject
(Payout expandableObject) void
setReconciliationStatus
(String reconciliationStatus) Ifcompleted
, you can use the Balance Transactions API to list all balance transactions that are paid out in this payout.void
setResponseGetter
(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.void
setReversedBy
(String id) void
setReversedByObject
(Payout expandableObject) void
setSourceType
(String sourceType) The source balance this payout came from, which can be one of the following:card
,fpx
, orbank_account
.void
setStatementDescriptor
(String statementDescriptor) Extra information about a payout that displays on the user's bank statement.void
Current status of the payout:paid
,pending
,in_transit
,canceled
orfailed
.void
Can bebank_account
orcard
.update
(PayoutUpdateParams params) Updates the specified payout by setting the values of the parameters you pass.update
(PayoutUpdateParams params, RequestOptions options) Updates the specified payout by setting the values of the parameters you pass.Updates the specified payout by setting the values of the parameters you pass.update
(Map<String, Object> params, RequestOptions options) Updates the specified payout by setting the values of the parameters you pass.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setStripeResponseGetter, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
Methods inherited from interface com.stripe.model.StripeObjectInterface
getLastResponse, setLastResponse
-
Constructor Details
-
Payout
public Payout()
-
-
Method Details
-
getApplicationFee
Get ID of expandableapplicationFee
object. -
setApplicationFee
-
getApplicationFeeObject
Get expandedapplicationFee
. -
setApplicationFeeObject
-
getBalanceTransaction
Get ID of expandablebalanceTransaction
object. -
setBalanceTransaction
-
getBalanceTransactionObject
Get expandedbalanceTransaction
. -
setBalanceTransactionObject
-
getDestination
Get ID of expandabledestination
object. -
setDestination
-
getDestinationObject
Get expandeddestination
. -
setDestinationObject
-
getFailureBalanceTransaction
Get ID of expandablefailureBalanceTransaction
object. -
setFailureBalanceTransaction
-
getFailureBalanceTransactionObject
Get expandedfailureBalanceTransaction
. -
setFailureBalanceTransactionObject
-
getOriginalPayout
Get ID of expandableoriginalPayout
object. -
setOriginalPayout
-
getOriginalPayoutObject
Get expandedoriginalPayout
. -
setOriginalPayoutObject
-
getReversedBy
Get ID of expandablereversedBy
object. -
setReversedBy
-
getReversedByObject
Get expandedreversedBy
. -
setReversedByObject
-
cancel
You can cancel a previously created payout if its status ispending
. Stripe refunds the funds to your available balance. You can’t cancel automatic Stripe payouts.- Throws:
StripeException
-
cancel
You can cancel a previously created payout if its status ispending
. Stripe refunds the funds to your available balance. You can’t cancel automatic Stripe payouts.- Throws:
StripeException
-
cancel
You can cancel a previously created payout if its status ispending
. Stripe refunds the funds to your available balance. You can’t cancel automatic Stripe payouts.- Throws:
StripeException
-
cancel
You can cancel a previously created payout if its status ispending
. Stripe refunds the funds to your available balance. You can’t cancel automatic Stripe payouts.- Throws:
StripeException
-
cancel
You can cancel a previously created payout if its status ispending
. Stripe refunds the funds to your available balance. You can’t cancel automatic Stripe payouts.- Throws:
StripeException
-
cancel
You can cancel a previously created payout if its status ispending
. Stripe refunds the funds to your available balance. You can’t cancel automatic Stripe payouts.- Throws:
StripeException
-
create
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.
- Throws:
StripeException
-
create
public static Payout create(Map<String, Object> params, RequestOptions options) throws StripeExceptionTo 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.
- Throws:
StripeException
-
create
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.
- Throws:
StripeException
-
create
public static Payout create(PayoutCreateParams params, RequestOptions options) throws StripeException 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.
- Throws:
StripeException
-
list
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.- Throws:
StripeException
-
list
public static PayoutCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns 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.- Throws:
StripeException
-
list
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.- Throws:
StripeException
-
list
public static PayoutCollection list(PayoutListParams params, RequestOptions options) throws StripeException 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.- Throws:
StripeException
-
retrieve
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.- Throws:
StripeException
-
retrieve
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.- Throws:
StripeException
-
retrieve
public static Payout retrieve(String payout, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves 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.- Throws:
StripeException
-
retrieve
public static Payout retrieve(String payout, PayoutRetrieveParams params, RequestOptions options) throws StripeException 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.- Throws:
StripeException
-
reverse
Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US bank accounts. If the payout is manual and in thepending
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.- Throws:
StripeException
-
reverse
Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US bank accounts. If the payout is manual and in thepending
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.- Throws:
StripeException
-
reverse
Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US bank accounts. If the payout is manual and in thepending
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.- Throws:
StripeException
-
reverse
Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US bank accounts. If the payout is manual and in thepending
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.- Throws:
StripeException
-
reverse
Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US bank accounts. If the payout is manual and in thepending
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.- Throws:
StripeException
-
reverse
Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US bank accounts. If the payout is manual and in thepending
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.- Throws:
StripeException
-
update
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.- Specified by:
update
in interfaceMetadataStore<Payout>
- Throws:
StripeException
-
update
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.- Specified by:
update
in interfaceMetadataStore<Payout>
- Throws:
StripeException
-
update
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.- Throws:
StripeException
-
update
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.- Throws:
StripeException
-
setResponseGetter
Description copied from interface:StripeActiveObject
Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.- Specified by:
setResponseGetter
in interfaceStripeActiveObject
- Overrides:
setResponseGetter
in classApiResource
- Parameters:
responseGetter
- theStripeResponseGetter
instance to use for making further requests.
-
getAmount
The amount (in cents (or local equivalent)) that transfers to your bank account or debit card. -
getApplicationFeeAmount
The amount of the application fee (if any) requested for the payout. See the Connect documentation for details. -
getArrivalDate
Date that you can expect the payout to arrive in the bank. This factors in delays to account for weekends or bank holidays. -
getAutomatic
Returnstrue
if the payout is created by an automated payout schedule andfalse
if it's requested manually. -
getCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
getCurrency
Three-letter ISO currency code, in lowercase. Must be a supported currency. -
getDescription
An arbitrary string attached to the object. Often useful for displaying to users. -
getFailureCode
Error code that provides a reason for a payout failure, if available. View our list of failure codes. -
getFailureMessage
Message that provides the reason for a payout failure, if available. -
getLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
getMethod
The method used to send this payout, which can bestandard
orinstant
.instant
is supported for payouts to debit cards and bank accounts in certain countries. Learn more about bank support for Instant Payouts. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
payout
. -
getReconciliationStatus
Ifcompleted
, you can use the Balance Transactions API to list all balance transactions that are paid out in this payout.One of
completed
,in_progress
, ornot_applicable
. -
getSourceType
The source balance this payout came from, which can be one of the following:card
,fpx
, orbank_account
. -
getStatementDescriptor
Extra information about a payout that displays on the user's bank statement. -
getStatus
Current status of the payout:paid
,pending
,in_transit
,canceled
orfailed
. A payout ispending
until it's submitted to the bank, when it becomesin_transit
. The status changes topaid
if the transaction succeeds, or tofailed
orcanceled
(within 5 business days). Some payouts that fail might initially show aspaid
, then change tofailed
. -
getType
Can bebank_account
orcard
. -
setAmount
The amount (in cents (or local equivalent)) that transfers to your bank account or debit card. -
setApplicationFeeAmount
The amount of the application fee (if any) requested for the payout. See the Connect documentation for details. -
setArrivalDate
Date that you can expect the payout to arrive in the bank. This factors in delays to account for weekends or bank holidays. -
setAutomatic
Returnstrue
if the payout is created by an automated payout schedule andfalse
if it's requested manually. -
setCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
setCurrency
Three-letter ISO currency code, in lowercase. Must be a supported currency. -
setDescription
An arbitrary string attached to the object. Often useful for displaying to users. -
setFailureCode
Error code that provides a reason for a payout failure, if available. View our list of failure codes. -
setFailureMessage
Message that provides the reason for a payout failure, if available. -
setId
Unique identifier for the object. -
setLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
setMetadata
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. -
setMethod
The method used to send this payout, which can bestandard
orinstant
.instant
is supported for payouts to debit cards and bank accounts in certain countries. Learn more about bank support for Instant Payouts. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
payout
. -
setReconciliationStatus
Ifcompleted
, you can use the Balance Transactions API to list all balance transactions that are paid out in this payout.One of
completed
,in_progress
, ornot_applicable
. -
setSourceType
The source balance this payout came from, which can be one of the following:card
,fpx
, orbank_account
. -
setStatementDescriptor
Extra information about a payout that displays on the user's bank statement. -
setStatus
Current status of the payout:paid
,pending
,in_transit
,canceled
orfailed
. A payout ispending
until it's submitted to the bank, when it becomesin_transit
. The status changes topaid
if the transaction succeeds, or tofailed
orcanceled
(within 5 business days). Some payouts that fail might initially show aspaid
, then change tofailed
. -
setType
Can bebank_account
orcard
. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object. -
getMetadata
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.- Specified by:
getMetadata
in interfaceMetadataStore<Payout>
-