---
title: "Detention and lumper claims checked, approved and booked in QuickBooks | FlowRunner flow"
description: "Carriers email lumper receipts and detention claims. AI checks the receipt supports the amount, your AP lead decides in Slack, and the charge is booked and billed in QuickBooks."
url: https://flowrunner.ai/flows/quickbooks-online-detention-and-lumper-claims
date_published: 2026-11-18
date_modified: 2026-11-18T16:18:59-08:00
---

# Detention and lumper claims checked, approved and booked in QuickBooks

Carriers email lumper receipts and detention claims. AI checks the receipt supports the amount, your AP lead decides in Slack, and the charge is booked and billed in QuickBooks.

## The prompt

When a carrier emails a lumper receipt or a detention claim to our AP inbox in Gmail, read it and pull out the carrier, load number, claim number and amount, and check that the receipt or the in and out times support that amount. Find the carrier in QuickBooks Online, find the customer invoice for the same load, and skip the claim if it's already a bill. Ask the AP lead in Slack with what the receipt shows and three buttons: Book and bill the customer, Book only, and Reject. On approval, create the carrier bill with the receipt attached. If it's billable and the customer's invoice for the load has no payment on it yet, add the charge to that invoice with the receipt attached. Otherwise tell billing to bill it separately.

FlowRunner Prompt to Flow built this flow from that request. Here it is as it opens in the editor.

## The flow

[Import this flow](https://flowrunner.ai/downloads/prompt-to-flow/quickbooks-online-detention-and-lumper-claims.json)

-   [QuickBooks Online](https://flowrunner.ai/integrations/quickbooks-online)
-   [Gmail](https://flowrunner.ai/integrations/gmail-service)
-   [Slack](https://flowrunner.ai/integrations/slack)

Download the file, then in FlowRunner click + beside Flows, pick it under Import a Flow Version and click Create. [How importing works](https://docs.flowrunner.ai/manage/flows#importing-a-flow)

## What each step does

1.  New detention or lumper email Checks the AP inbox in Gmail every 5 minutes for an email with an attachment and detention or lumper in the subject.
2.  Read the claim An AI agent reads the receipt or claim for the carrier, load number, claim number and amount, and works out what the document itself supports: the lumper receipt total, or the time on site past free time at the stated rate.
3.  Find the load's invoice Finds the carrier in QuickBooks Online and the customer invoice for the same load, by invoice number or the Load # custom field, and checks whether it has a payment on it yet.
4.  Check for a duplicate bill Looks for a bill with the same claim number. A claim that is already entered is skipped and AP is told in Slack.
5.  Ask the AP lead The AP lead gets the amount, what the document shows, whether it supports the amount and where the customer invoice stands, with three buttons: Book and bill the customer, Book only, and Reject.
6.  Wait for the AP lead's answer The run waits for the click. Reject enters nothing and says so in the Slack thread.
7.  Create the bill Book only and Book and bill the customer both create the carrier bill for the claimed amount, with the receipt attached.
8.  Add the charge to the invoice For Book and bill the customer, the charge goes onto the customer's invoice for the load with the receipt attached, so the receipt goes out with the invoice. If that invoice already has a payment or isn't in QuickBooks, billing is told in Slack to bill the charge separately.

## Need a custom accessorial claims automation? Our team can build it for you.

Tell us the process. Our implementation team at Midnight Flow builds it around how you work, tests it on your real data, and keeps it running, in your own FlowRunner workspace.

[Have us build it](https://midnightflow.ai/packages/custom?utm_source=flowrunner.ai&utm_medium=referral&utm_campaign=general&utm_content=flows.aside&utm_term=quickbooks-online-detention-and-lumper-claims)

## Before you turn it on

-   Connect your Gmail, QuickBooks Online and Slack accounts.
-   Add your Anthropic key in the flow setting Anthropic key, and set Accessorial item name to the QuickBooks product or service you buy and bill detention and lumper under. It needs both sales and purchasing information.
-   Copy the URL of the block Wait for the AP lead's answer into the flow setting Answer link. The Slack buttons open it.
-   Pick your Slack channel in the six Slack steps, and narrow the Gmail search to your AP inbox if it shares a mailbox.

[Everything FlowRunner does with QuickBooks Online](https://flowrunner.ai/integrations/quickbooks-online)

---
Markdown version of https://flowrunner.ai/flows/quickbooks-online-detention-and-lumper-claims. Site index: https://flowrunner.ai/llms.txt
