AgentSkillsCN

billing-taxation

在全球范围内销售的软件产品中,识别税务、计费与收入确认义务时使用。涵盖服务类型分类与计费代码、增值税/GST/销售税、开票要求、收入确认(ASC 606/IFRS 15)、云积分与储值模式,以及预付费系统的资金转移风险。 适用场景:销售税、增值税、GST、计费代码、服务分类、开票要求、收入确认、ASC 606、IFRS 15、云积分、储值、预付费积分、税务关联、数字服务税、电子发票、预扣税、转让定价。 不适用场景:支付处理合规(应使用金融监管相关工具)、消费者退款政策(应使用消费者保护相关工具)、合同定价条款(应使用合同相关工具)、报税准备(应咨询税务顾问)。

SKILL.md
--- frontmatter
name: billing-taxation
description: |
    Use when identifying tax, billing, and revenue recognition obligations for software products sold globally. Covers service type classification and billing codes, VAT/GST/sales tax, invoicing requirements, revenue recognition (ASC 606/IFRS 15), cloud credits and stored-value models, and money transmission risks for prepaid systems.
    USE FOR: sales tax, VAT, GST, billing codes, service classification, invoicing requirements, revenue recognition, ASC 606, IFRS 15, cloud credits, stored value, prepaid credits, tax nexus, digital services tax, e-invoicing, withholding tax, transfer pricing
    DO NOT USE FOR: payment processing compliance (use financial-regulation), consumer refund policies (use consumer-protection), contract pricing terms (use contracts), tax return preparation (consult a tax advisor)
license: MIT
metadata:
  displayName: "Billing & Taxation"
  author: "Tyler-R-Kendrick"
compatibility: claude, copilot, cursor

Billing & Taxation

Disclaimer: This skill provides general educational information about legal topics relevant to software development. It is not legal advice and is not tax advice. Tax laws are complex, vary by jurisdiction, and change frequently. Always consult a qualified tax advisor and legal counsel licensed in the relevant jurisdiction before making tax or billing decisions for your organization.

Overview

Every software company that charges customers faces a web of tax and billing obligations that vary by what you sell, how you sell it, who you sell it to, and where both parties are located. Misclassifying your service type, failing to collect applicable taxes, or improperly recognizing revenue can result in back-tax liabilities, penalties, and audit exposure. Additionally, billing models that use "credits," "tokens," or "units" instead of currency can inadvertently trigger money transmission, stored-value, or consumer protection regulations.

Service Type Classification

How your product is classified determines which tax rates, billing codes, and regulations apply. The same software can be classified differently depending on the jurisdiction and delivery method.

Classification Categories

ClassificationDescriptionTax Treatment (General)Examples
SaaSSoftware accessed via internet, no downloadTaxable in many US states + most countries (digital service)Salesforce, Slack, GitHub
Licensed software (download)Software delivered electronically for local installationTaxable as tangible personal property in some states; digital good in othersAdobe Creative Suite (perpetual), desktop apps
Professional servicesConsulting, implementation, custom developmentOften exempt or lower rate than softwareIntegration services, custom dev, training
Information servicesData feeds, research, analyticsVaries widely — exempt in some states, taxable in othersBloomberg terminal, market data feeds
Infrastructure / IaaSCompute, storage, networking resourcesEmerging rules — taxable as digital service in many jurisdictionsAWS EC2, Azure VMs, GCP Compute
Platform / PaaSDevelopment platforms and toolsSimilar to IaaS — taxable as digital serviceHeroku, Vercel, Azure App Service
Digital goodsE-books, media, downloadable contentTaxable in most jurisdictionsApp Store purchases, digital media
TelecommunicationsVoice, messaging, video conferencingHeavily taxed with industry-specific surchargesTwilio, Zoom (voice/telephony components)

US State-by-State Complexity

US sales tax on software varies dramatically by state:

State ApproachExample StatesSaaS Taxable?Custom Software?
SaaS is taxableTX, NY, PA, CT, OH, WAYesOften yes
SaaS is not taxableCA, CO, FL, IL, MO, VANo (currently)Varies
SaaS taxability depends on factorsGA, IN, UTDepends on customization, access methodVaries

This landscape changes annually. States are increasingly moving to tax SaaS. Always verify current rules with a tax advisor.

Billing Codes and Tax Codes

Proper billing line items are critical for tax compliance and audit defense. Each line item should map to a tax classification:

Line Item CategoryCommon Tax Code/CategoryWhy It Matters
Software subscriptionSaaS / Electronic services / Digital serviceDetermines VAT/sales tax rate
Implementation / setupProfessional services / ConsultingOften a different (or zero) tax rate
Support / maintenanceMaintenance agreement / ServiceMay be taxed differently than the subscription
TrainingEducational servicesExempt in many jurisdictions
Data storageIaaS / Cloud computingEmerging tax classification
API usage / computeIaaS or TelecommunicationsMay trigger telecom-specific taxes
HardwareTangible personal propertyStandard sales tax applies
Managed servicesProfessional services or SaaSClassification depends on what predominates

Bundled vs Unbundled Invoicing

ApproachDescriptionTax Impact
BundledSingle line item "Platform Fee: $10,000"Taxed at the rate of the predominant component (or the highest applicable rate in some jurisdictions)
UnbundledSeparate lines: "Subscription: $7,000" + "Implementation: $2,000" + "Training: $1,000"Each line taxed at its own rate — can reduce total tax

Best practice: Unbundle invoices wherever possible. Bundling can cause the entire invoice to be taxed at the highest applicable rate. Work with your tax advisor to determine the correct unbundling for each jurisdiction.

VAT / GST / Sales Tax

Global Tax Obligations

Tax TypeJurisdictionsRegistration TriggerRate RangeKey Requirements
VATEU (27 countries), UK, Norway, SwitzerlandSelling to customers in the jurisdiction (no minimum threshold for B2C digital in EU)17-27% (varies by country)VAT registration, periodic returns, reverse charge for B2B
GSTAustralia, New Zealand, Canada, India, Singapore, MalaysiaRevenue thresholds vary by country5-18% (varies)GST registration, BAS/returns, input tax credits
Sales taxUS (45 states + DC + territories)Economic nexus thresholds (typically $100K revenue or 200 transactions)0-10.25% (state + local)Nexus analysis, registration, collection, remittance, returns
Digital services tax (DST)France, UK, Italy, Spain, Turkey, India, othersRevenue thresholds (typically €750M global + local threshold)1.5-7.5%Separate from VAT; applies to large digital companies
Withholding taxMany countries (India, Brazil, etc.)Cross-border service payments10-30%Deducted at source by customer; may be reduced by tax treaty

EU VAT for Digital Services (B2C)

The EU One-Stop Shop (OSS) simplifies VAT for digital services sold to EU consumers:

ElementRequirement
RegistrationRegister in one EU member state via OSS; covers all 27 countries
RateApply the VAT rate of the customer's country (not seller's)
Evidence of locationTwo pieces of non-contradictory evidence (IP address, billing address, bank country, SIM country)
ReturnsQuarterly OSS return covering all EU sales
B2B reverse chargeIf customer provides valid VAT ID, no VAT charged (customer self-assesses)
ThresholdNo minimum — applies from the first euro of B2C digital sales

Tax Automation Tools

ToolCapabilityBest For
Stripe TaxAutomated tax calculation, collection, and reportingCompanies already using Stripe
AvalaraMulti-jurisdiction tax compliance (sales tax, VAT, GST)Enterprise, complex nexus
TaxJarUS sales tax automation (now part of Stripe)US-focused SaaS companies
VertexEnterprise tax technology (direct + indirect)Large enterprise, ERP integration
Paddle / FastSpringMerchant of Record (handles all tax obligations for you)Smaller companies wanting to offload tax entirely
ChargebeeSubscription billing with tax integrationSubscription-first businesses

Invoicing Requirements

Many jurisdictions have specific legal requirements for invoice content:

Mandatory Invoice Elements (Most Jurisdictions)

ElementRequired ByNotes
Seller name and addressVirtually allLegal entity name, not just trade name
Buyer name and addressEU, most countriesFor B2B; B2C may require less
Tax ID / VAT numberEU, UK, India, Brazil, many othersBoth seller and buyer (B2B)
Invoice numberVirtually allSequential, unique, tamper-evident
Invoice dateVirtually allDate of issue
Supply dateEU, UK, many countriesDate the service was provided (if different from invoice date)
Line item descriptionVirtually allClear description of each service/product
Tax rate and amount per lineEU, UK, many countriesSeparate tax line per rate
Total amountVirtually allNet + tax + gross
CurrencyVirtually allMust be clear; some jurisdictions require local currency equivalent
Payment termsCommercial best practiceDue date, accepted payment methods

E-Invoicing Mandates

Electronic invoicing is becoming mandatory in many jurisdictions:

JurisdictionMandateFormatStatus
ItalyB2B and B2G e-invoicing mandatoryFatturaPA (XML) via SDIIn force since 2019
IndiaE-invoicing mandatory above ₹5 crore turnoverJSON via IRPIn force, thresholds lowering
BrazilNF-e mandatory for all businessesXML via SEFAZIn force
EU (ViDA)VAT in the Digital Age — EU-wide e-invoicingEN 16931 (structured XML)Proposed; phased from 2028
FranceB2B e-invoicing mandateFactur-X / EN 16931Phased from September 2026
GermanyB2B e-invoicing mandateEN 16931 / XRechnungIn force for B2G; B2B from 2025
Saudi ArabiaZATCA e-invoicing (Fatoorah)XML/JSON via ZATCA platformIn force
PolandKSeF mandatory e-invoicingStructured XMLPhased from 2026

Revenue Recognition (ASC 606 / IFRS 15)

Software companies must recognize revenue according to accounting standards, not just when cash is received.

Five-Step Model

StepDescriptionSoftware Example
1. Identify the contractAgreement with enforceable rights and obligationsSaaS subscription agreement, SOW
2. Identify performance obligationsDistinct promises to the customerSoftware access, implementation, support, training
3. Determine transaction priceTotal consideration expected$120,000/year subscription + $30,000 implementation
4. Allocate to performance obligationsAllocate price based on standalone selling prices$120K to subscription, $30K to implementation
5. Recognize when obligation is satisfiedOver time or at a point in timeSubscription: ratably over term; Implementation: on completion or milestone

Common Software Revenue Scenarios

ScenarioRecognition PatternKey Consideration
Monthly SaaS subscriptionRatably each monthStraightforward — recognize as service is delivered
Annual prepaid subscriptionRatably over 12 monthsCash received upfront; revenue recognized monthly
Multi-year deal with discountRatably over full term at effective rateDiscount allocated across all periods
Implementation + subscriptionImplementation: on completion; Subscription: ratablyMust determine if implementation is distinct
Usage-based pricingAs usage occursEstimate variable consideration if minimum commitments exist
Perpetual license + maintenanceLicense: upfront; Maintenance: ratablyMust allocate transaction price between components
Free trial → paid conversionRevenue starts at conversionNo revenue during trial period
Credits / prepaid usageAs credits are consumed (or expire)See Cloud Credits section below

Cloud Credits and Prepaid Models

Cloud credits, tokens, units, and prepaid balances are common in compute, hosting, and API billing. These models create several legal and regulatory risks that traditional subscription billing does not.

Common Credit Models

ModelHow It WorksExamples
Prepaid usage creditsCustomer buys credits; credits consumed by resource usageAWS credits, Azure credits, GCP credits, Vercel credits
Token-based API billingCustomer buys tokens; each API call consumes tokensOpenAI tokens, Anthropic tokens
Unit-based billingCustomer buys units (abstraction over compute)Salesforce compute credits, Snowflake credits
Platform credits (non-monetary)Credits earned through promotions, loyalty, or incentivesStartup program credits, promotional credits
Gift cards / vouchersRedeemable for services at face valueDigital gift cards for platform services

Legal and Regulatory Risks

Money Transmission

RiskDescriptionTrigger
Stored valueIf credits can be purchased, held, and redeemed for services, they may be classified as "stored value" under state money transmitter lawsCredits purchasable with money and redeemable for services
Money transmissionIf credits can be transferred between users or redeemed for cash, you may be operating as a money transmitterTransferability or cash-out capability
E-moneyUnder EU PSD2/EMD2, if credits function like electronic money, you may need an e-money licenseCredits redeemable at par value for services or cash

Key question: Can a customer transfer credits to another party, or convert credits back to cash? If yes, money transmission/e-money analysis is required.

FeatureLow RiskHigh Risk
Purchased with currencyModerate
Non-transferable between usersLow
Non-refundable / no cash-outLow
Transferable between usersMoney transmission risk
Redeemable for cashStrong money transmission indicator
Expire after a periodReduces risk
Earn interestMay trigger banking/investment regulation

Consumer Protection

ConcernRequirementJurisdictions
Expiration disclosureMust clearly disclose if/when credits expire at time of purchaseUS (state gift card laws), EU (Unfair Terms Directive), UK, Australia
Gift card laws (if applicable)Many US states prohibit expiration of gift cards or require minimum 5-year validity; residual value laws may applyUS (CARD Act for gift cards, state laws vary), EU, Australia
Refund rightsSome jurisdictions require refund of unused prepaid balances on account terminationEU (Consumer Rights Directive), California, Australia
Balance disclosureCustomer must be able to check credit balanceUS (state laws), EU, Australia
Dormancy feesRestrictions on charging fees on dormant/unused creditsUS (many states prohibit), EU
Currency vs credit valueIf credits are denominated in currency equivalents, stronger consumer protections applyMost jurisdictions

Revenue Recognition

Credit ScenarioRevenue TreatmentBreakage
Credits consumedRecognize as credits are used (ASC 606 step 5)N/A
Credits expire unusedRecognize breakage revenue proportionally or at expirationMust estimate expected breakage based on historical data
Unused credits, no expirationMay need to estimate breakage; cannot recognize until consumed or forfeitedAnalyze historical consumption patterns
Promotional/free creditsGenerally no revenue (contra-revenue or marketing expense)No breakage revenue
Refundable creditsDefer until consumed; refund liability until thenRefund liability reduces recognized revenue

Tax Treatment

ScenarioTax Implications
Credit purchaseGenerally NOT a taxable event (no service yet delivered). Tax due when credits are consumed.
Credit consumptionTaxable event — the service is being delivered. Apply tax based on service classification and customer location.
Cross-border creditsCustomer buys credits in one jurisdiction, consumes in another — tax may apply where consumption occurs
Expiration / breakageSome jurisdictions tax breakage as income; consumer protection laws may limit breakage
Promotional creditsGenerally not taxable (no consideration received)

Structuring Credits to Minimize Regulatory Risk

Design DecisionLower Risk ChoiceWhy
TransferabilityNon-transferable (tied to purchasing account)Avoids money transmission classification
RefundabilityNon-refundable (with clear disclosure)Avoids stored-value / e-money classification; but check consumer protection law by jurisdiction
ExpirationInclude reasonable expiration (12+ months with disclosure)Reduces balance sheet liability; enables breakage recognition
DenominationDenominate in abstract units, not currencyReduces argument that credits are "money equivalents"
Cash-outNo cash-out optionCritical for avoiding money transmission
InterestCredits do not earn interestAvoids banking/investment regulation
Promotional creditsSeparate bucket from purchased creditsDifferent revenue and tax treatment
Minimum purchaseNo minimum (or low minimum)Avoids appearance of investment product

Withholding Tax on Cross-Border Payments

ConcernDescription
What it isWhen a customer in Country A pays a vendor in Country B, Country A may require the customer to withhold a percentage and remit it to their tax authority
Common rates10-30% depending on countries involved
MitigationTax treaties between countries can reduce or eliminate withholding; require customers to provide tax treaty certificates
Gross-up clausesContracts should specify whether payments are net of withholding tax or whether the customer must gross up
Classification matters"Royalty" payments (software licenses) often have higher withholding rates than "service" payments (SaaS) in many jurisdictions

Transfer Pricing

If your company has entities in multiple countries, inter-company transactions must be priced at arm's length (as if between unrelated parties). This affects:

  • Licensing IP from a parent to a subsidiary
  • Charging for shared services (engineering, support)
  • Allocating costs of cloud infrastructure
  • Cost-sharing arrangements for R&D

Transfer pricing audits are a top priority for tax authorities globally. Documentation (typically a transfer pricing study) is mandatory in most jurisdictions above certain revenue thresholds.

Best Practices

  • Always consult a qualified tax advisor for each jurisdiction in which you sell — tax classification of software varies dramatically.
  • Unbundle invoices by service type — separate software, professional services, training, and support to apply correct tax treatment to each.
  • Automate tax calculation and collection using tools like Stripe Tax, Avalara, or a Merchant of Record — manual processes do not scale.
  • Classify credits carefully — design prepaid/credit systems to minimize money transmission, stored-value, and e-money regulatory risk by making credits non-transferable, non-refundable, and denominated in abstract units rather than currency.
  • Disclose credit terms clearly at the point of purchase — expiration dates, refund policies, and balance access are required by consumer protection laws in most jurisdictions.
  • Recognize revenue per ASC 606 / IFRS 15 — do not recognize credit purchases as revenue; recognize when credits are consumed or expire (breakage).
  • Monitor nexus and registration thresholds — US economic nexus rules, EU VAT OSS, and expanding DST regimes create new obligations as your business grows.
  • Prepare for e-invoicing mandates — Italy, India, Brazil, and France already require structured electronic invoices; the EU-wide ViDA mandate is coming.
  • Address withholding tax in contracts — specify whether payments are net or gross of withholding and include tax treaty cooperation clauses.
  • Keep billing codes consistent between your invoicing system, tax engine, and general ledger — mismatches create audit exposure.