Profitability Reporting
Overview
A Business's overall Profit and Loss tells its owner whether the Business made money. It doesn't tell them where. A remodeler wants to know which jobs are profitable. A restaurant group wants to know which location is carrying the others. An agency wants to know which customers are worth keeping.
Asset answers these questions by filtering the Profit and Loss to one slice of the Business: one job, one location, one customer, one vendor, or any other dimension you define. This guide uses job costing as the example, then shows how the same approach covers everything else.
You have two tools:
| Tool | Use it for |
|---|---|
| Tags | Any dimension you define: job, project, location, department, region, sales rep. You decide the dimension and its values. |
customer_id and vendor_id | Customers and vendors, which Asset already knows about. No tagging is needed. |
Both are filters on the same report, Retrieve the Profit and Loss Report.
Job costing with tags
Job costing means tracking the revenue and the costs of each job separately, so the Business knows what each one earned. With tags, a job is a value of a tag field called Job.
1. Create a Job tag field
Create the field once. Make it a global tag field if every Business under your tenant uses jobs, or a Business tag field if only one does. See Tagging.
You can also create each job as a tag value, such as Maple Street Remodel, to keep a controlled list. Otherwise, a value is created the first time you tag something with it.
2. Tag the money coming in and going out
Tag every Invoice, Bill and Transaction that belongs to a job with the tags field. For example, an Invoice for the job:
curl --request POST \
--url https://api.sandbox.getasset.com/v0/business/biz_GA6EG2qFxA97NZHtxeLPUy/invoice \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '[
{
"number": "INV-101",
"description": "Kitchen remodel, 14 Maple Street",
"sent_at": "2026-03-01T00:00:00Z",
"due_at": "2026-03-31T00:00:00Z",
"customer_external_id": "customer_8841",
"lines": [{ "description": "Remodel", "amount": 12000.00, "ledger_id": "ldg_ErisumsAc7qgmbTctM7zKK" }],
"tags": { "Job": "Maple Street Remodel" }
}
]'Tag the costs the same way:
| What | How to tag it |
|---|---|
| Revenue | The tags on the Invoice. |
| Materials and subcontractors | The tags on the Bill. |
| Card and bank spending | The tags on the Transaction, when there is no Bill. |
| One cost shared by several jobs | A list of values with amounts. An $800 hardware store purchase can be [{"value": "Maple Street Remodel", "amount": "500.00"}, {"value": "Downtown Office Rewire", "amount": "300.00"}]. |
Asset can also tag Transactions on its own, using the Business' classification rules. See Automatic tagging.
3. Run the Profit and Loss for one job
Pass the job in the tags parameter, as field:value. Remember to encode the spaces in the URL.
curl --request GET \
--url "https://api.sandbox.getasset.com/v0/business/biz_GA6EG2qFxA97NZHtxeLPUy/reports/profit-and-loss?start_datetime=2026-01-01T00:00:00Z&end_datetime=2027-01-01T00:00:00Z&tags=Job:Maple%20Street%20Remodel" \
--header 'Authorization: Bearer <token>'The response has the same structure as the ordinary Profit and Loss, but it only includes the amounts tagged with that job. For the Invoice above, the $500 share of the hardware purchase and a $4,500 Bill for materials, once they are paid or when you pass basis=accrual, it looks like this:
| Line | Amount |
|---|---|
| Total Income | 12,000.00 |
| Cost of Sales | 5,000.00 |
| Gross Profit | 7,000.00 |
| Total Operating Profit | 7,000.00 |
That is the job's profit. Use the same call, with a different value, for each job. Use period=month to see how a long job's profit builds up month by month.
A tag that doesn't exist, whether the field or the value, returns an error instead of an empty report.
What the filtered report includes
- Only tagged amounts. Anything without the tag is left out, so the report is the profit of the tagged work, not of the Business. To see what hasn't been assigned to any job, compare the job reports with the Business' full Profit and Loss.
- Revenue and expense Ledgers. A tag spreads an amount across the Ledgers of the entry that make up profit. Balance sheet Ledgers aren't included. If a tagged amount should be attributed to a particular Ledger, such as a $500 purchase that is partly materials and partly fuel, pin the value to a Ledger.
- A tag follows the money. A Bill or Invoice's tags are carried onto its Journal Entries, and onto the entries of each payment in proportion to what was paid. If a payment is tagged itself, the Transaction's tags win over the same tag on the document, so a job isn't counted twice.
- Timing depends on the basis. On the default
modified_cashbasis, a job's revenue and costs appear when the Invoice or Bill is paid, in proportion to the payment. To see them when they are issued, passbasis=accrual.
Beyond jobs
The same report works for any way of cutting the Business.
| You want profit by | How |
|---|---|
| Job or project | A Job or Project tag field, as above. |
| Location | A Location tag field. Tag everything a branch earns and spends. |
| Department or team | A Department tag field. |
| Region, class or sales rep | A tag field with any name you choose. |
| Customer | customer_id. It covers the customer's Invoices, payments, Credit Memos and Refunds, with no tagging. |
| Vendor | vendor_id. It covers the vendor's Bills, payments and Vendor Credits. |
| Customer and job, or any other pair | Tag fields for both. Use a Customer tag field in place of customer_id. |
For example, to see what a customer is worth, add customer_id=cus_WQMDNUHpBThYSNh4AprDBo to the same request, and leave out tags.
Rules for combining filters
tags,customer_idandvendor_idcan't be used together. Send only one in a request, or the call is rejected. To filter by a customer and something else, tag with aCustomerfield.- Several values in one field are OR.
tags=Job:Maple Street Remodel,Job:Downtown Office Rewirecovers either job, and the amounts are added together. Use it to roll several jobs up into a program or a customer. - Different fields are AND.
tags=Job:Maple Street Remodel,Location:NYCcovers entries tagged with both the job and the location. - List the field you want measured first. When you filter by two fields, the amounts come from the first field's tags, and the second field only decides which entries count. If an entry splits its amount differently across the two fields, you get the first field's split.
Getting good results
- Tag at the source. Tag the Invoice or Bill, not each payment. The payment inherits the tags in proportion to what was paid.
- Be consistent with names.
Maple Street RemodelandMaple St Remodelare two different values. Create the values first, or use classification rules, to avoid typos. - Tag costs as well as revenue. A job with only revenue tagged will look more profitable than it is.
- Split shared costs. Overhead, equipment and vehicles are shared between jobs. Split them with amounts, so each job carries its share.
- Reconcile to the whole. The jobs' revenue and costs should add up to the Business' Profit and Loss, apart from what you haven't assigned. A gap points to untagged work.
- One call for each value. The report is filtered to one value at a time, or to a set of values added together. To compare jobs side by side, make a call for each one in your app.
Questions? Reach out via our Contact form.