惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

N
News | PayPal Newsroom
P
Proofpoint News Feed
Cyberwarzone
Cyberwarzone
C
Cisco Blogs
SecWiki News
SecWiki News
Know Your Adversary
Know Your Adversary
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Vercel News
Vercel News
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
罗磊的独立博客
NISL@THU
NISL@THU
WordPress大学
WordPress大学
Hacker News - Newest:
Hacker News - Newest: "LLM"
T
Threat Research - Cisco Blogs
AI
AI
Simon Willison's Weblog
Simon Willison's Weblog
Security Archives - TechRepublic
Security Archives - TechRepublic
有赞技术团队
有赞技术团队
L
LINUX DO - 热门话题
Hacker News: Ask HN
Hacker News: Ask HN
V
V2EX
G
GRAHAM CLULEY
TaoSecurity Blog
TaoSecurity Blog
Hugging Face - Blog
Hugging Face - Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
F
Fortinet All Blogs
博客园 - 叶小钗
博客园 - 三生石上(FineUI控件)
云风的 BLOG
云风的 BLOG
Recorded Future
Recorded Future
Latest news
Latest news
The Hacker News
The Hacker News
aimingoo的专栏
aimingoo的专栏
T
Troy Hunt's Blog
S
Schneier on Security
I
Intezer
Google DeepMind News
Google DeepMind News
A
Arctic Wolf
Apple Machine Learning Research
Apple Machine Learning Research
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
T
Threatpost
爱范儿
爱范儿
The Register - Security
The Register - Security
S
SegmentFault 最新的问题
Blog — PlanetScale
Blog — PlanetScale
博客园 - 聂微东
宝玉的分享
宝玉的分享
Recent Commits to openclaw:main
Recent Commits to openclaw:main
美团技术团队
B
Blog RSS Feed

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
QuickBooks API Is a Headache
Joseph Ndungi · 2026-06-02 · via DEV Community

There is a certain kind of frustration that only developers know. It is not the frustration of a hard problem. Hard problems are satisfying. It is the frustration of a problem that should be simple but has been made unnecessarily complicated by decisions that feel like they were made to protect a business model rather than serve the developer. Integrating with QuickBooks Online is that kind of frustration.

This is the story of building a QuickBooks integration for a .NET API, what we ran into, and what good API design should look like.

What We Were Trying to Do

The goal was straightforward. We have an internal licensing platform. QuickBooks is where the business manages its customers and invoices. We needed to pull customer data from QuickBooks and surface it through our own API. No user-facing OAuth dance, no multi-tenant complexity. Just one company, one QuickBooks account, background data sync. A task that should take an afternoon.

It did not take an afternoon.

The OAuth Problem

QuickBooks uses OAuth 2.0. That is fine. OAuth 2.0 is a well understood standard and using it makes sense for a platform that supports thousands of third party integrations. The problem is not OAuth itself. The problem is that Intuit has wrapped OAuth in layers of ceremony that make a simple internal integration feel like you are launching a product on the App Store.

To get an access token you need a developer account, an app registered on their developer portal, a redirect URI that Intuit approves, a sandbox company, and then you need to complete a browser based login flow just to get the initial tokens. For a single tenant internal integration where you own the QuickBooks account, this is absurd. There is no reason a developer should have to open a browser, log into a portal, and manually copy tokens out of a URL just to talk to an API they have full rights to access.

Compare this to something like Stripe. You go to your dashboard, copy your secret key, put it in your environment variables, and make API calls. That is it. QuickBooks could offer the same for single tenant use cases. A long lived API key or a simple client credentials flow would solve this entirely. They do not offer it.

The workaround we landed on was doing the OAuth flow once manually using Postman, storing the resulting access token and refresh token in environment variables, and having the application bootstrap those tokens at startup. The refresh token lasts 100 days and gets automatically rotated. It works, but it is a workaround for a problem that should not exist.

The Response Problem

Once you get past authentication the next frustration is the API responses themselves. QuickBooks returns deeply nested JSON that feels like it was designed for a SOAP era XML schema and then converted to JSON without rethinking the structure.

A simple customer query returns something like this:

{
  "QueryResponse": {
    "Customer": [
      {
        "Id": "1",
        "DisplayName": "John Doe",
        "PrimaryEmailAddr": {
          "Address": "john@example.com"
        },
        "PrimaryPhone": {
          "FreeFormNumber": "0700 000 000"
        },
        "BillAddr": {
          "Line1": "123 Main St",
          "City": "Nairobi"
        },
        "MetaData": {
          "CreateTime": "2023-01-01T00:00:00",
          "LastUpdatedTime": "2024-01-01T00:00:00"
        }
      }
    ],
    "startPosition": 1,
    "maxResults": 100,
    "totalCount": 1
  },
  "time": "2024-01-01T00:00:00"
}

Enter fullscreen mode Exit fullscreen mode

You asked for customers. You got customers wrapped in a QueryResponse wrapper, with email nested inside a PrimaryEmailAddr object with an Address field, and phone inside a PrimaryPhone object with a FreeFormNumber field. Every field name is PascalCase. The structure is inconsistent across entity types. And if there are no customers matching your query, the Customer array is simply absent from the response entirely rather than returning an empty array.

That last point is particularly annoying. It means every consumer of this API has to defensively check whether the property exists before trying to read it:

var customers = root.TryGetProperty("Customer", out var ca)
    ? JsonSerializer.Deserialize<List<CustomerDTO>>(ca.GetRawText(), JsonOptions)!
    : new List<CustomerDTO>();

Enter fullscreen mode Exit fullscreen mode

This is not difficult code to write but it is code that exists entirely because of a poor design decision. A well designed API returns an empty array, not a missing field.

What Good API Design Looks Like

The contrast with well designed APIs is stark. When you call a modern API you get back a flat, predictable response. Fields are always present even if empty. Naming is consistent. Pagination is standard. Errors are structured and meaningful.

A customer endpoint on a well designed API returns something like:

{
  "data": [
    {
      "id": "1",
      "name": "John Doe",
      "email": "john@example.com",
      "phone": "0700 000 000",
      "address": {
        "line1": "123 Main St",
        "city": "Nairobi"
      },
      "createdAt": "2023-01-01T00:00:00Z",
      "updatedAt": "2024-01-01T00:00:00Z"
    }
  ],
  "pagination": {
    "total": 1,
    "page": 1,
    "perPage": 100
  }
}

Enter fullscreen mode Exit fullscreen mode

Flat where it can be flat. Nested only where nesting adds genuine meaning. Empty arrays instead of missing fields. ISO 8601 timestamps. Lowercase snake case or camelCase, pick one and stick to it. Authentication that does not require a browser and a Postman collection just to get started.

This is not a high bar. Most well resourced API teams clear it easily. QuickBooks is a product used by millions of businesses and thousands of developers. The developer experience should be a first class concern, not an afterthought.

The Integration We Built

In the end we built a clean abstraction over the QuickBooks API that shields the rest of our application from its quirks. The QuickBooksService owns the token management, the company ID, and the response mapping. Controllers just call GetCustomersAsync() and get back clean DTOs. Nobody else in the codebase has to know that somewhere underneath there is a QueryResponse wrapper with conditionally present arrays and FreeFormNumber fields.

This is the right approach when you are stuck with a third party API you cannot change. You build a clean seam, you absorb the ugliness in one place, and you expose something simple to the rest of your system.

But you should not have to. An API that requires this much defensive wrapping is an API that has externalised its own design debt onto every developer who integrates with it. The time we spent figuring out OAuth workarounds and defensive JSON parsing is time we could have spent building actual features.

The Broader Point

QuickBooks is not unique in this. There is a whole category of enterprise and legacy adjacent APIs that treat developer experience as optional. They were built when APIs were primarily consumed by big system integrators who had teams to absorb the complexity, and they have never been rethought for a world where a two person startup might need to integrate in a weekend.

The standard has moved. Developers now expect authentication that takes minutes not days. They expect responses that are clean and predictable. They expect documentation that shows real examples and acknowledges real edge cases. They expect SDKs that actually work.

If you are building an API today, make it boring to integrate with. Boring means it works the first time. Boring means the response shape is obvious. Boring means authentication is a key in an environment variable, not a Postman collection and a blog post.

Your users will not write about you. That is the highest compliment an API can receive.

Happy Coding!