- 8 min read
Api Development Best Practices
REST API design, security, versioning and documentation best practices for integrating Xero, Shopify and custom systems.
Quick answer: API development best practices cover REST design, early versioning, authentication and OpenAPI documentation; platform engineering is the broader practice APIs sit within.
- Platform Engineering
- API Development
- System Integration
- Application Modernisation
Jump to section
Quick answer
What are the best practices for API development?
Additional Context
Sources
- OAIC Notifiable Data Breaches Report January-June 2025
Malicious or criminal attacks caused the majority of notified Australian data breaches in early 2025.
- ASD Annual Cyber Threat Report 2024-25
Average self-reported cybercrime costs rose sharply for medium and large Australian businesses in FY2024-25.
API Fundamentals
What Good API Development Looks Like
API development is the work of designing, building, securing and maintaining the interfaces that let separate applications, services and data stores exchange information reliably. For a business running Xero for finance, a customer platform for orders and a warehouse system for stock, the API layer is what lets a sale in one system trigger an update in the others without someone re-keying data. Done well, an API is a stable, documented contract that other teams and systems can build against with confidence, even as the code behind it changes.
REST API Design Best Practices
Most business integration work still runs on REST, and the fundamentals haven't changed much: model endpoints around business resources rather than internal database tables, use HTTP status codes consistently, and keep responses predictable so consuming systems don't need special-case logic. Rate limiting and authentication belong on every endpoint from the outset, not retrofitted once something breaks. Versioning matters too: a breaking change to an endpoint that three internal systems and a partner integration depend on is a production incident waiting to happen, which is why API-led integration approaches favour additive changes and clearly deprecated old versions over silent replacement.
API Documentation and Versioning
OpenAPI specifications (formerly Swagger) matter because they turn an API from something only its original developer understands into something a new team member, an external partner or an automated testing tool can work with directly. For businesses carrying older, poorly documented integrations, this is often where staged legacy modernisation starts: documenting what exists, then improving it in place rather than replacing it outright.
Fixing API Development Before It Becomes a Liability
Problem
Many growing businesses build APIs ad hoc, one integration at a time, with no shared standards for authentication, versioning or documentation. Each new connection to Xero, Shopify or a custom order system adds another undocumented dependency, so a single schema change can break three downstream systems at once and nobody can say which ones without checking manually.
Business Impact:
Time Wasted:Recurring hours spent manually reconciling data after integrations quietly breakCost Implication:Costs compound as each new ad hoc integration needs its own rework laterOpportunity Cost:Engineering time spent firefighting instead of building new capabilitySolution
A staged approach: audit existing APIs and integrations, establish shared standards for authentication, versioning and documentation, then modernise the highest-risk connections first while keeping existing systems running.
Our Approach:
- Audit and map
Catalogue every existing API and integration point across finance, sales and operations systems, noting which are documented and which aren't.
- Standardise
Agree authentication, versioning and error-handling conventions that new and existing APIs will follow.
- Modernise in sequence
Rebuild or document the highest-risk integrations first, in production, without a big-bang cutover.
Key Takeaways
What to Get Right in API Development
- Design APIs around business resources, not database tablesImportant
Endpoints that mirror how the business actually operates stay stable even when the underlying database schema changes, reducing breakage.
- Version every API from the first releaseCritical
Introducing versioning after three systems already depend on an endpoint turns routine changes into coordinated, risky migrations.
- Document with OpenAPI so the contract is explicitImportant
A written specification lets new developers, partners and automated tests work against the API without needing to read the source code.
- Treat integration as ongoing, not a one-off projectImportant
APIs need monitoring, authentication reviews and version retirement over time, the same as any other production system.
Strong API development rests on consistent design, early versioning, real documentation and ongoing maintenance rather than one-off integration projects that are never revisited.
Why API Security and Design Discipline Matter
APIs are a growing attack surface and a growing share of business infrastructure runs on cloud platforms they connect to, which raises the stakes on getting authentication and design right.
Malicious attacks share of breaches
Significance: highMalicious or criminal attacks caused well over half of notified Australian data breaches in the first half of 2025, the largest single source in the OAIC figures.
Average cost per medium business cybercrime report
Significance: highMedium businesses reporting cybercrime to ASD saw the average self-reported cost per report rise 55% year-on-year in FY2024-25.
Business use of ICTs
Significance: mediumAustralian businesses reported using information and communication technologies in the year to 30 June 2022, up from 69% of businesses two years earlier.
Methodology
Context and Fit
API Development vs Platform Engineering: Where the Work Sits
Platform engineering, in its recognised sense, is about building the internal developer platform and self-service infrastructure that lets a team ship and run software without hand-cranking servers and pipelines each time. API development is one of the disciplines that sits inside that wider practice, but it isn't the whole of it. Where platform engineering asks how systems run, scale and stay observable, API development asks how systems talk to each other reliably. The two overlap constantly: an internal platform needs well-designed APIs to expose its services, and API performance problems are often actually infrastructure or database problems wearing an API's name. That's a symptom worth investigating with database query optimisation and application performance tuning before assuming the API contract itself needs a rewrite.
Where National Digital Fits
National Digital works on the integration and API layer that connects the platforms a business already runs, Xero, MYOB, Shopify, HubSpot and the systems built around them, rather than replacing them wholesale. That typically means auditing what exists, designing or hardening the APIs that move data between systems, and sequencing changes so the business keeps trading throughout. For a broader view of how this fits into performance and reliability work generally, see application performance optimisation.
