In this article (6 sections)
The problem
Step: tax calculation on the invoice. The seller had one legal entity, customers inside and outside the EU, and an existing rate table to carry over into Revenue Cloud. Finance asked for one thing: be able to explain any rate on any invoice from the customer record alone.
The first setup took the address on the transaction, which is the obvious choice. It didn’t hold up. When finance asked “why does this invoice carry this rate?”, nobody could answer from the customer record, and the same customer could get different results from one order to the next.
The solution
An order address answers a delivery question: where the goods or the service go. VAT asks something else: who is invoiced, where, and under which tax identity. The same customer can be shipped to in one country and invoiced in another, so a rate taken from the order address moves with each delivery while the customer stays the same. Finance opens the customer record and finds nothing there that explains the rate.
The record that answers the VAT question is the billing profile. Resolving tax from it puts the explanation on the record finance actually looks at. The rate then resolves on the tax rate (TaxRate) by code × country, and the tax treatment carries the code. With a single legal entity, picking the treatment by legal entity (TaxPolicy.TreatmentSelection = LegalEntity) has nothing to tell apart, so the country distinction has to live in the rate rows.
Setting it up
- Give every account a billing profile with a country. Without a bill-to contact (
BillToContactId), payment terms on the order and a delivery address, the profile produces nothing at all. - Load the rates with the Revenue Cloud usage type, one row per code × country × period. Load zero-rate rows explicitly: a missing row and a zero row look the same on the invoice, but only the zero row is a decision someone made.
- Attach the tax policy to the product, not to the line. A reprice derives the treatment from the product again, so anything set only on the line is lost.
- Run the two-order test: two orders with different addresses and the same billing profile. They must return the same rate.
The choice and its cost
The transaction address was ruled out: it is only right when the invoice always follows the delivery, which wasn’t the case here.
The billing profile has a cost. A customer who needs two tax behaviors needs two billing profiles. In exchange, any rate can be explained from one record, and a change of billing country is a data change rather than a reconfiguration. The two-order test passed in production: different addresses, same billing profile, same rate.
In practice
- Resolve VAT from the billing profile, not from the order address.
- Load zero rates explicitly, one row per code × country × period.
- Attach the tax policy to the product, so a reprice doesn’t undo it.
- Keep the two-order test in the test plan: two addresses, one billing profile, the rate must not change.