Tax rules
Which tax applies to what, and at what rate — what invoice issuing consults.
| Command | HTTP | Description |
|---|---|---|
tax-rules list | GET /v1/tax_rules | List tax rules |
tax-rules create | POST /v1/tax_rules | Create a tax rule |
tax-rules get | GET /v1/tax_rules/{id} | Get a tax rule |
tax-rules update | PATCH /v1/tax_rules/{id} | Update a tax rule |
tax-rules delete | DELETE /v1/tax_rules/{id} | Delete a tax rule |
Examples
--params carries query and path parameters (id, page, filters); --json carries the request body; --fields limits which fields come back — worth using on every list/get to save context. See Global flags for the full reference.
# List tax rules
kobana billing tax-rules list \
--fields "id,public_id,external_id,scope,priority"
# Get a tax rule
kobana billing tax-rules get --params '{"id": "TAX_RULE_ID"}'
# Create a tax rule
kobana billing tax-rules create \
--json '{"name": "NAME", "scope": "global", "items": []}'
# Update a tax rule
kobana billing tax-rules update \
--params '{"id": "TAX_RULE_ID"}' \
--json '{"name": "NAME", "description": "DESCRIPTION", "priority": 0}'
# Delete a tax rule
kobana billing tax-rules delete --params '{"id": "TAX_RULE_ID"}' --dry-run
Next steps
- Tax periods
- Schema introspection — every parameter this resource accepts.