A Payout represents a processor deposit that moves funds from a payment processor, such as Stripe, to one of your business customers’ bank accounts. Payouts are used to reconcile bank transactions that represent processor deposits with the underlying processor activity they contain, such as invoice payments and refunds. Matching bank transactions to payouts prevents revenue from being double-counted: first from the invoice payment, and second from categorizing the bank transaction as revenue.Documentation Index
Fetch the complete documentation index at: https://docs.layerfi.com/llms.txt
Use this file to discover all available pages before exploring further.
Importing payouts
Create payouts with the Create Payout endpoint. Ifprocessor is set (e.g. STRIPE), every linked payment and refund must also use this processor value. Use the Update Payout endpoint to modify a payout after it has been created.
external_id is your idempotency key. Re-posting the same external_id returns the existing payout unchanged.
Linking payments and refunds
Attach existing invoice payments and refunds by Layer ID or your external ID:Other transactions
Useother_transactions for line items that are not represented as invoice payments or refunds (e.g. Merchant Cash Advance fees, tax withholding, or other fees).
Stripe Instant Payouts
Instant payouts from Stripe should be imported as two Payout objects in Layer: one payout for the instant cash movement, and one following payout that reconciles the itemized payment activity when Stripe includes it in a later payout. Normal Stripe payouts are itemized around the specific transactions included in the payout. Instant payouts are amount-based, so Layer represents the instant transfer separately from the later itemized payout that contains the payment.Process Steps
The expected process steps are:- Import the invoice and payment.
- Create the instant payout with no payments or refunds, plus one
CREDITtransaction toSTRIPE_CLEARING. - Create the following payout with the original payment attached, plus one
DEBITtransaction fromSTRIPE_CLEARING.
STRIPE_CLEARING entries will offset each other.
1. Import the payment
First, import the sale and its Stripe payment. In the example payout below, there is an invoice for12500 cents, with one credit card payment for the same amount and no fee.
2. Create the instant payout
Create a payout for the instant transfer itself. Note the example payout below has the amount that Stripe deposited, but does not yet attach the invoice payment.3. Create the following payout
When Stripe later reports the itemized payout that includes the payment, create a second payout. In the example payout below, thepaid_out_amount of 0, references the invoice payment created earlier and includes the opposite STRIPE_CLEARING transaction.
STRIPE_CLEARING account will net to zero after the CREDIT and DEBIT transactions are applied.