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, createTaxService } from '@oaknetwork/payments-sdk'; const client = createOakClient({ ... }); const taxes = createTaxService(client);
calculate(request)
const result = await taxes.calculate({ amount: 10000, currency: 'usd', customer_id: 'cus_abc123', }); if (result.ok) { const tax = result.value.data; console.log('Tax amount:', tax.tax_amount); console.log('Total with tax:', tax.total_amount); console.log('Tax rate:', tax.tax_rate); }
amount
number
currency
string
customer_id
tax_amount
total_amount
tax_rate
jurisdiction
breakdown
array