stripe.cancelPayout to return funds from a pending manual payout to the available balance. Automatic payouts cannot be canceled.
automations/stripe-cancel-payout.automation.ts
Inputs
payoutId is required. idempotencyKey is optional.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Cancel a pending manual Stripe payout.
stripe.cancelPayout to return funds from a pending manual payout to the available balance. Automatic payouts cannot be canceled.
import { automation, onDashboardRun } from "automate.ax"
import { stripe } from "automate.ax/stripe"
export default automation("Cancel payout", () => {
onDashboardRun({ title: "Cancel payout" })
stripe.cancelPayout({ payoutId: "po_123" })
})
payoutId is required. idempotencyKey is optional.