calculate_gst_tax
Calculates CGST, SGST, and IGST amounts by analyzing transaction amount, GST rate, seller GSTIN, and buyer state to determine inter-state or intra-state routing.
Instructions
Calculates GST (CGST, SGST, IGST) breakdown based on transaction amount, GST rate, seller's GSTIN and buyer's location/state. Determines inter-state vs intra-state routing automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rate | Yes | The GST tax rate percentage (e.g. 5, 12, 18, 28). | |
| amount | Yes | The transaction amount (price of goods/services). | |
| inclusive | No | Whether the provided amount is inclusive of GST. Defaults to false (exclusive). | |
| sellerGstin | Yes | The 15-character GSTIN of the seller. | |
| buyerStateCodeOrName | Yes | The state name or 2-digit state code of the buyer (e.g., 'Delhi' or '07'). |