Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
import { createOakClient, createPayoutService } from '@oaknetwork/payments-sdk'; const client = createOakClient({ ... }); const payouts = createPayoutService(client);
create(request)
const result = await payouts.create({ amount: 50000, currency: 'usd', destination: { customer_id: 'cus_abc123', payment_method_id: 'pm_bank_xyz', }, metadata: { reference: 'payout_march_2026', }, }); if (result.ok) { console.log('Payout ID:', result.value.data.id); console.log('Status:', result.value.data.status); }
amount
number
currency
string
destination
object
destination.customer_id
destination.payment_method_id
metadata
Record<string, any>
id
status
created_at
updated_at