REST API fees not working + question about report endpoints
Alfredo Ruiz Perez
Dear ISN Support,
I'm having trouble with your REST API and could use some help.
Main problem: No matter what I do with the fees parameter when creating orders, the total always comes back as $0.00. I've tried different fee IDs, different amounts, string vs numbers - nothing works. The orders get created but with zero fees.
Here's what my request looks like:
{
"office": "8a7b9c2d-1e3f-4g5h-6i7j-8k9l0m1n2o3p",
"fees": [
{
"id": "1a2b3c4d-5e6f-7890-1234-56789abcdef0",
"amount": 405,
"outsourceamount": 0,
"name": "Inspection Fee"
},
{
"id": "9c8d7e6f-5a4b-3210-9876-543210fedcba",
"amount": 275,
"outsourceamount": 0,
"name": "Sewer Scope SFR"
}
],
"totalfee": "680.00"
// ... rest of the order data
}
Am I missing something obvious? Do I need to use specific fee IDs for my office? Is there a step I'm missing? I will attach more in a file with some dummy data to exemplify the steps I'm making.
Second question: Do you guys have any API endpoints for sending reports or payment requests directly to clients? I'd like to automate sending inspection reports and invoices instead of doing it manually through the web interface.
If you have any updated API docs that cover this stuff, that would be great too. The ones I have access to ( https://json.inspectionsupport.net/ and https://api.inspectionsupport.net/ ) don't seem to cover fee handling very well.
Thanks in advance for your assistance
Alfredo Ruiz Perez
Hi! Anyone? Still unable to add fees using the API
L
Lindsay G - ISN Product
Alfredo Ruiz Perez: Can you tell us whether this order was already marked as PAID?
Alfredo Ruiz Perez
Lindsay G - ISN Product I was able to add fees to orders by POSTing them to the
json
endpoint as opposed to the rest
one. However, I still have two outstanding issues:
- Report Access: When I try to access inspection reports via the web delivery URL (obtained from /rest/order/webdelivery/{id}, notice how now I'm usingrestand notjson), I get an error saying "We require your email address so you can view your reports." The URL format I'm accessing looks like:
```
https://inspectionsupport.com/[company-key]/report-delivery/[order-id]?pq=[encoded-params]
```
How should I pass the email parameter to access reports programmatically? Is there a query parameter I should add?
- Payment/Invoice Automation: Do you have API endpoints for:
- Sending inspection reports directly to clients via email
- Sending payment requests/invoices to clients
I'd like to automate these processes instead of doing them manually through the web interface. If there are additional API endpoints or documentation that covers these workflows, that would be very helpful.
Thanks for your assistance!
L
Lindsay G - ISN Product
Alfredo Ruiz Perez: This isn't the best place for this discussion because it's not a managed support channel. Could you please provide me with your company key so we can route this to the right support channels?
Alfredo Ruiz Perez
Lindsay G - ISN Product certainly. It is
elite
Alfredo Ruiz Perez
Hello, ISN team, can I please get an update on this matter? I appreciate your support