Prepaid balance, order limits and refunds for roof reports ordered through the API

API report orders are paid from a prepaid balance. How charges, top-ups, order limits and credits work, and which webhooks let your software watch the balance.

3 min read

Roof reports ordered through the RoofStruct API are paid from a prepaid balance. Each order is charged when it's placed, at the price agreed with you, and only if the balance covers it. If a report can't be completed, the full price goes back to the balance. Everything is visible under Settings › Integrations › Report Ordering.

The balance

The Report Ordering tab shows your Balance, about how many reports it covers, your Price per Report and your Order Limits. Recent Activity lists every charge, credit and top-up, with your project reference linking to the order, and Download Statement exports it.

Every order response also carries balance_cents, your balance after that order, so your software always knows where it stands.

API orders don't appear in Purchase history in the app. The balance activity is their record.

Topping up

  • By card: click Top Up, pick an amount and pay. The money is available for new orders as soon as the payment goes through. Card payments are in USD, and sales tax is added at checkout where it applies.
  • By invoice: click Request a Top-Up or contact us, and we add the amount once we receive your payment.

When the balance runs out

An order the balance can't cover is refused, and nothing is charged. Three webhooks let your software act before that happens:

Event When it fires
balance.low The balance drops below the low line
balance.empty The balance can no longer pay for a report
balance.topped_up Money was added

A common setup: alert the office on balance.low, pause new orders on balance.empty, and resume on balance.topped_up.

Daily and monthly order limits

Each account has a daily and a monthly limit on API orders, shown under Order Limits with how much of each you've used. They protect you from a runaway script ordering the same roofs all night. Past a limit, orders are refused with 429 order_limit_reached until the next day or month (UTC). Contact us to raise them.

The 120 requests per minute per API key is a separate limit on calls, not on orders.

When a report can't be done

Sometimes a roof can't be measured: no usable aerial imagery, the roof hidden by trees, or a problem with the address. Then:

  • the order's status becomes rejected, with a reject_reason and a readable reject_message;
  • the full price goes back to your balance, shown as a Credit in Recent Activity;
  • the report.rejected webhook fires, so your software can tell your customer or try another address.

An order cancelled before delivery (contact us) is credited back the same way.

Never pay twice for one order

Send an Idempotency-Key header with every order, such as your job ID. If a request times out and your software retries with the same key, RoofStruct returns the first order as it is now instead of placing and charging a second one. Use a new key for a new order.

A second order for the same address within 30 days is also refused with 409 duplicate_address, unless you send "allow_duplicate": true.

FAQ

When is an order charged?

When it's placed and accepted. An order refused for an address problem, a duplicate or a limit is never charged.

Can I get a refund to my card?

Credits for reports that couldn't be done go back to your balance. For anything else, contact us.

Do test orders use the balance?

No. Test orders are free and never touch the balance.

Developer docs: Order a report, report.rejected, balance.low, balance.empty and balance.topped_up in the RoofStruct API reference.

Keep reading