Revenue Cloud project notebook, written by two Meir IT consultants who implement it.

What is Revenue Cloud?

Admin · Building block 8 of 8

Revenue Cloud Billing

How an activated order turns into billing schedules and then invoices, and the settings without which no invoice comes out.

Checked on against the Salesforce documentation (release 264)

On this page (7 sections)
  1. What it does
  2. What to turn on
  3. Key objects
  4. Where to set it up
  5. What goes wrong on projects
  6. Articles on this product
  7. Official documentation

What it does

Revenue Cloud Billing takes over once an order is activated. Each order line gets a billing schedule that says what to invoice, on which date and for which period. A billing run then reads those schedules and produces invoices, first as drafts, then posted.

An example. A ₪12,000 annual subscription, billed monthly, starts on January 1, and the billing day is the 15th. Billed in advance, the first billing date is December 15. Billed in arrears, it's January 15. Each invoice carries ₪1,000.

The app also covers tax, credit memos, payments, collections and journal entries, with legal entities and accounting periods.

Upstream, it depends on the order and the asset that Transaction Management produces. Downstream, it feeds accounting. The business view of this step is covered in Billing and Tax: How It Works.

Turning on Billing is documented for both the Revenue Cloud Advanced and the Revenue Cloud Billing licenses. Some features, such as milestone billing, usage-based invoicing and the collections permission sets, require the Billing license.

What to turn on

  1. Make sure Subscription Management is off. Billing can't be turned on while it's enabled.
  2. In Setup, open Billing Settings and turn on Billing. This takes the System Administrator profile with the Customize Application permission.
  3. Assign the Billing Admin and Billing Operations User permission sets to your admins right away, or the setup pages stay out of reach.
  4. Create the legal entity, the billing policy, its treatment and treatment item, then the tax policy and tax treatment. Activation follows a fixed order: treatment item, then treatment, then policy.
  5. In Billing Settings, under Billing Defaults, pick the default billing treatment, tax treatment and legal entity.
  6. In Billing Settings, under Context Service Mapping, pick the extended BillingContext context definition and its mapping. Before cloning that definition, set field-level security on the order's Bill To Contact field by hand.
  7. Save a version of the Order to Billing Schedule flow and activate it. Only one active flow should create billing schedules.
  8. Create a scheduler from Billing Batch Schedulers, and check Post invoices if invoices should come out posted.

Key objects

InterfaceAPIWhat you set there
Billing PolicyBillingPolicyHow the treatment is picked (Default, Manual, Legal Entity) and the default treatment. Products point to it. BillingPolicy
Billing TreatmentBillingTreatmentThe legal entity, and Exclude From Billing, which holds one line back without blocking the rest of the order. BillingTreatment
Billing Treatment ItemBillingTreatmentItemWhen to bill: Advance, Arrears, or None for milestones. One item per treatment.
Billing ScheduleBillingScheduleNothing to enter: the flow or the API creates it. You read its category (Original, Amendment, Renewal…), status and per-period amount. BillingSchedule
Billing Schedule GroupBillingScheduleGroupBilling day of month, next billing date override, addresses, tax treatment and payment term. BillingScheduleGroup
Billing ProfileBillingAccountAn account's billing contact, address and preferences. An account can have several, one of them the default. BillingAccount
InvoiceInvoiceStatus (Draft, Posted, Voided…). Invoices come out of a billing run, not out of manual entry. Invoice
Billing Batch SchedulerBillingBatchSchedulerFrequency, target date, automatic posting and PDF generation.

Table sources:. Invoice and BillingSchedule weren't createable through the API on the projects observed.

Where to set it up

Setup > Billing Settings holds three things: the on switch, the defaults (Billing Defaults) and the context service mapping (Context Service Mapping). Defaults save as soon as you pick them. Billing Guided Setup walks through the same steps in order.

Policies, treatments and treatment items are created from the App Launcher, as drafts first.

There are two ways to bill. In batch, with a scheduler created from Billing Batch Schedulers: frequency, target date (no more than 12 months out), automatic posting, PDF generation. Generating PDFs also takes the DocGen User permission set. One at a time, with the Generate Invoices quick action on the account. For orders, you add that action to the order page layout yourself.

You monitor runs on the Invoice Batch Runs record: the status subtype (add it to the page layout) and the Revenue Transaction Error Logs related list.

What goes wrong on projects

  • Orders activate, but no billing schedule shows up. The Order to Billing Schedule flow ships as a template. Until you save and activate a version of it, nothing happens. On one project, a flow was also filtering on the English status value in an org running in French. And the billing schedule group mapping had to be declared on top of the order mapping. Check in this order: active flow, Context Service Mapping, then Revenue Transaction Error Logs. Articles: From Order to Invoice in Revenue Cloud, Flow Criteria That Fail Silently on a Localized Org
  • Every line gets two billing schedules. Two active flows are creating schedules for the same order. To check, go to Setup > Flows and list every active flow that fires on order activation.
  • Order activation started failing once Billing was on. The order needs a Bill To Contact, a billing address and a shipping address. I've seen the opposite on a data migration: the orders import and activate, but nothing bills because the period and frequency fields on the order lines are empty. Test the whole chain on one order, all the way to the invoice, before loading the rest. Article: From Order to Invoice in Revenue Cloud
  • The invoice comes out with no tax, or the wrong rate. On one project, the rate followed the country on the billing profile, not the order's address. Two orders with different addresses and the same profile got the same rate. To check, run that two-order test in your own org. Articles: Calculating Tax from the Billing Profile, Country-Driven Tax Code, Without Apex, The Apex Tax Engine Adapter
  • GL routing can't find the data it needs. On the invoice, BillingAccountId points to the customer account (Account), not to the billing profile. And the line's tax code is only filled on InvoiceLineTax. The Winter '27 docs list two different BillingAccountId fields on Invoice. Article: Routing Invoice Lines to the Ledger

Articles on this product

All 15 Revenue Cloud Billing articles in the list

Official documentation

Every source on this page (9)
  1. Manage Billing Schedules and Billing Schedule Groups
  2. Create Billing Policies, Treatments, and Treatment Items
  3. Select Default Billing Treatment, Tax Treatment, and Legal Entity
  4. Select Context Definition and Mapping for Create Billing Schedules for Orders API
  5. Generate Billing Schedules from Orders
  6. Understand Billing Treatment Resolution
  7. Set Up Billing
  8. Invoice Batch Run Process
  9. Generate Invoices for Accounts or Orders

A question about an article or a project?

Nathan Altmann and Ilan Malka answer every message themselves.

Contact

Type at least two letters.