Taxes
Paygent supports percentage and fixed-amount taxes applied automatically when invoices are generated. Define tax rules once under Settings, attach them to orders, and every billing run calculates tax lines on the invoice subtotal.
Create a tax
Settings → Taxes → Create Tax
Percentage tax
Applied to the invoice subtotal (all line items before tax):
Example: 18% GST on 180 tax → $1,180 total.
Fixed tax
A flat amount added once per invoice:
Example: $5 processing fee on every invoice.
Attach taxes to an order
Taxes are selected when creating or editing an order:
- Orders → Create Order → Step 2 Order details
- Under Taxes, select one or more active tax rules
- Save and activate the order
You can also set customer tax defaults on the customer record — applicable taxes may pre-fill when the customer is selected.
Multiple taxes on one order are supported. Each tax generates a separate line on the invoice with name, type, rate, and computed amount.
How taxes appear on invoices
When the billing job generates an invoice:
- Line items are summed → subtotal
- Each attached tax is fetched and calculated
- Tax lines are appended with
taxName,taxType,taxValue, and amount - Total = subtotal + sum of tax amounts
Tax lines appear on the PDF and in the invoice editor. Unknown or inactive tax IDs on an order are skipped with a logged warning — the invoice still generates without that tax.
Edit taxes on unpaid invoices
Open an invoice → Edit Invoice:
- Adjust tax lines manually if needed
- Update customer GSTIN / tax ID, billing address, or place of supply
- Modify line items — subtotal changes recalculate tax on regeneration
Paid invoices are locked. Verify tax lines before marking an invoice as paid. Paid invoices cannot be edited.
Taxes with credits and wallets
Taxes apply to the USD invoice subtotal, including:
- Platform fees and seat fees
- Activity/outcome usage charges
- External cost line items
- Postpaid wallet accruals (converted via conversion rate)
Credit wallet debits happen at usage time; taxes apply when the invoice is generated for monetary line items.
Example: Indian GST setup
- Settings → Taxes → create “GST 18%” — type percentage, value
18 - Customer record: billing address in India, GSTIN filled
- Order: select GST 18% on Step 2
- Invoice generates: subtotal + 18% GST line
- Send PDF to customer or mark paid to release prepaid credits
API and orders
When creating orders via API, pass taxIds as an array of tax document IDs. The billing service validates tax IDs belong to your organization.
See Orders API for order creation fields.
Checklist
- ✓ Tax rules created and marked active
- ✓ Taxes attached to order (or customer defaults configured)
- ✓ Customer billing address and tax IDs complete
- ✓ Order activated
- ✓ Invoice shows expected tax lines before sending to customer
Related: Orders & Invoicing · Orders API
