Test roof report ordering through the API for free, before your first real order

Test Mode lets every RoofStruct account send free test orders, with or without code, and get back exactly what a real order returns. What you get and what it skips.

4 min read

Before you pay for a single roof report through the API, you can see exactly what your software will get back. Test Mode sends free test orders that are checked like real ones but never measured or charged. Each comes back as delivered within seconds with a sample PDF report, sample measurements and, if you have a webhook, a signed report.delivered message.

Test orders work on every plan, from the Settings page or from your own software with an API key. On Free, keys and webhooks work with test orders only; real orders need the Enterprise plan.

Send a test order without code

  1. Go to Settings › Integrations › Report Ordering. You need to be an account owner or admin.
  2. The first time, click Enable Test Mode.
  3. Under Send a Test Order, type a Property address and, if you like, Your reference. Pick Residential or Commercial.
  4. Click Send Test Order.
The Send a Test Order form in RoofStruct Settings › Integrations › Report Ordering: property address, your reference, report type and the Send Test Order button.

The order shows Received · Test once the address is checked and placed on the map, then Delivered · Test a few seconds later. Under Your sample files you can download the sample report as a PDF and the measurements as JSON. What your software receives shows the exact API response and webhook body, with a Copy button for your developer.

Send the same order from your software

Create a key under Settings › Integrations › API & Webhooks (on any plan; how), then send the order with "test": true:

curl https://roofstruct.com/api/v1/reports \
  -H "Authorization: Bearer rs_live_..." \
  -H "Idempotency-Key: TEST-001" \
  -H "Content-Type: application/json" \
  -d '{
    "address": "88 Rideau St, Ottawa ON",
    "report_type": "roof_residential",
    "reference": "TEST-001",
    "test": true
  }'

It's the same call as a real order. When you go live, remove "test": true and nothing else changes.

What a test order gives you

A delivered RoofStruct test order: received and delivered in the same minute, the webhook sent, and the sample report PDF and measurements JSON ready to download.
You get Details
The order Its ID, reference and status, exactly as a real order returns them, with "test": true
A sample PDF report A finished report under a sample brand, so you can see the layout your customers will get
Sample measurements The same JSON a real report carries: areas, squares, pitch and every length
A webhook A signed report.delivered message to every endpoint listening for it, usually within about a minute

Test orders show in the Test Orders list for 7 days, whether they came from the Settings page or from your software.

What a test order doesn't do

  • It isn't measured. Every test order returns the same sample report and measurements, whatever the address. A real order is measured from imagery of that property.
  • It isn't charged and sends no email.
  • It doesn't send report.status_changed. Test orders go straight to delivered, so only report.delivered fires.
  • It isn't listed by GET /v1/reports. That list holds real reports only.
  • There's a daily cap. Up to 25 free test orders a day per account.

Use it to build the whole integration

A good test run covers every step your software will need with real orders:

  1. Send an order and store the RoofStruct ID against your job.
  2. Retry the same request with the same Idempotency-Key and check you get the first order back, not a second one.
  3. Receive the report.delivered webhook, verify its signature, and answer quickly.
  4. Download the PDF from pdf_url and attach it to the job. The link is signed and expires, so download it when the message arrives instead of storing the link.
  5. Write the measurements into your job record.

Once all five work, real orders will too. How real orders are paid, limited and refunded is the last thing to wire up.

FAQ

Do I need the Enterprise plan to test?

No. Test orders are free on every plan, from the Settings page or from your own code with an API key. Real orders need Enterprise.

Why does every test return the same roof?

So your integration can rely on known numbers while you build it. Real orders are measured from imagery of the address you send.

Can my test webhook reach a local machine?

Only through a public https:// address. A tunnelling tool that gives your local server a public URL works for testing.

Developer docs: Order a report, report.delivered and Verify signatures in the RoofStruct API reference.

Keep reading