NAME
Net::API::Stripe::Payout - A Stripe Payout Object
SYNOPSIS
my $payout = $stripe->payout({
amount => 2000,
arrival_date => '2020-04-12',
automatic => $stripe->true,
currency => 'jpy',
description => 'Customer payout',
destination => $connect_account_object,
livemode => $stripe->false,
metadata => { transaction_id => 123, customer_id => 456 },
method => 'standard',
statement_descriptor => 'Fund raised payout',
status => 'pending',
type => 'bank_account',
});
See documentation in Net::API::Stripe for example to make api calls to Stripe to create those objects.
VERSION
v0.100.0
DESCRIPTION
A 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 (https://stripe.com/docs/connect/payouts). You can retrieve individual payouts, as well as list all payouts. Payouts are made on varying schedules, depending on your country and industry.
CONSTRUCTOR
new( %ARG )
Creates a new Net::API::Stripe::Payout object. It may also take an hash like arguments, that also are method of the same name.
METHODS
id string
Unique identifier for the object.
object string, value is "payout"
String representing the object’s type. Objects of the same type share the same value.
amount integer
Amount (in JPY) to be transferred to your bank account or debit card.
arrival_date timestamp
Date the payout is expected to arrive in the bank. This factors in delays like weekends or bank holidays.
automatic boolean
Returns true if the payout was created by an automated payout schedule (https://stripe.com/docs/payouts#payout-schedule), and false if it was requested manually (https://stripe.com/docs/payouts#manual-payouts).
balance_transaction string (expandable)
ID of the balance transaction that describes the impact of this payout on your account balance. This is a string or a Net::API::Stripe::Balance::Transaction object.
created timestamp
Time at which the object was created. Measured in seconds since the Unix epoch.
currency currency
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 string
An arbitrary string attached to the object. Often useful for displaying to users.
destination string expandable card or bank account
ID of the bank account or card the payout was sent to. This is a string or a Net::API::Stripe::Connect::Account object.
failure_balance_transaction string (expandable)
If the payout failed or was canceled, this will be the ID of the balance transaction that reversed the initial balance transaction, and puts the funds from the failed payout back in your balance. Alternatively it can also be the Net::API::Stripe::Balance::Transaction object if it was expanded.
failure_code string
Error code explaining reason for payout failure if available. See Types of payout failures (https://stripe.com/docs/api#payout_failures) for a list of failure codes.
failure_message string
Message to user further explaining reason for payout failure if available.
livemode boolean
Has the value true if the object exists in live mode or the value false if the object exists in test mode.
metadata hash
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.
method string
The method used to send this payout, which can be standard or instant. instant is only supported for payouts to debit cards. (See Instant payouts for marketplaces for more information: https://stripe.com/blog/instant-payouts-for-marketplaces)
original_payout expandable
If the payout reverses another, this is the ID of the original payout.
When expanded this is an Net::API::Stripe::Payout object.
reversed_by expandable
If the payout was reversed, this is the ID of the payout that reverses this payout.
When expanded this is an Net::API::Stripe::Payout object.
source_type string
The source balance this payout came from. One of card or bank_account.
statement_descriptor string
Extra information about a payout to be displayed on the user’s bank statement.
status string
Current status of the payout (paid, pending, in_transit, canceled or failed). A payout will be pending until it is submitted to the bank, at which point it becomes in_transit. It will then change to paid if the transaction goes through. If it does not go through successfully, its status will change to failed or canceled.
type string
Can be bank_account or card.
API SAMPLE
{
"id": "po_fake123456789",
"object": "payout",
"amount": 7712,
"arrival_date": 1568851200,
"automatic": true,
"balance_transaction": "txn_fake123456789",
"created": 1568682616,
"currency": "jpy",
"description": "STRIPE PAYOUT",
"destination": "ba_fake123456789",
"failure_balance_transaction": null,
"failure_code": null,
"failure_message": null,
"livemode": false,
"metadata": {},
"method": "standard",
"source_type": "card",
"statement_descriptor": null,
"status": "paid",
"type": "bank_account"
}
HISTORY
v0.100.0
Initial version
STRIPE HISTORY
2017-04-06
Splits the Transfer object into Payout and Transfer. The Payout object represents money moving from a Stripe account to an external account (bank or debit card). The Transfer object now only represents money moving between Stripe accounts on a Connect platform. For more details, see https://stripe.com/docs/transfer-payout-split.
AUTHOR
Jacques Deguest <jack@deguest.jp>
SEE ALSO
Stripe API documentation:
https://stripe.com/docs/api/payouts, https://stripe.com/docs/payouts
COPYRIGHT & LICENSE
Copyright (c) 2019-2020 DEGUEST Pte. Ltd.
You can use, copy, modify and redistribute this package and associated files under the same terms as Perl itself.