ApiPayOuts class provides methods to create and manage payout transactions, which represent funds being withdrawn from a wallet to a bank account.
Methods
Create
Create a new payout.The PayOut object to create
Optional idempotency key for safe retries
\MangoPay\PayOut - The created PayOut object
Example:
Get
Get a payout object by ID.The unique identifier of the payout
\MangoPay\PayOut - The PayOut object
Example:
GetBankwire
Get a bank wire payout object.The unique identifier of the payout
\MangoPay\PayOut - The PayOut object
Example:
GetRefunds
Retrieve a list of refunds for a payout.The ID of the payout
Pagination object (passed by reference)
Filtering options
Sorting options
\MangoPay\Refund[] - Array of Refund objects
Example:
CheckInstantPayoutEligibility
Check if a destination bank account is eligible for instant payout.The eligibility check request object
Optional idempotency key
\MangoPay\PayOutEligibilityResponse - The eligibility response
Example:
PayOut Entity
ThePayOut entity represents a payout transaction.
Properties
The unique identifier of the payout
Unix timestamp of when the payout was created
Custom data for your use
The user ID of the payout author
The user ID being credited (usually same as AuthorId for payouts)
The ID of the wallet being debited
The amount debited from the wallet
The amount credited to the bank account (DebitedFunds - Fees)
The fees taken from the transaction
The status of the transaction:
CREATED, SUCCEEDED, FAILEDThe result code of the transaction
The result message explaining the result code
Unix timestamp of when the transaction was executed
The transaction type:
PAYOUTThe transaction nature:
REGULAR, REFUND, REPUDIATIONThe payment type:
BANK_WIRE, MERCHANT_EXPENSE, AMAZON_GIFTCARDPayment-specific details object (type depends on PaymentType)