What Is REST API?
Also known as: RESTful API, REST web service
Definition
A REST API is a web interface that exposes application data as addressable resources over HTTP, using standard verbs such as GET, POST, PUT, PATCH, and DELETE, stateless requests, and conventional status codes, typically exchanging JSON.
REST API Explained
REST - Representational State Transfer - was described by Roy Fielding in his 2000 dissertation as an architectural style rather than a protocol. Its constraints include client-server separation, statelessness, cacheability, a uniform interface, a layered system, and optional code on demand. Most APIs called RESTful satisfy some of these constraints and not others, particularly the hypermedia constraint. In practice the industry uses REST to mean resource-oriented HTTP APIs with JSON payloads, and that pragmatic definition is what integration work deals with.
The design centers on resources identified by URIs and manipulated with HTTP verbs. A collection such as /api/salesorders is retrieved with GET, created with POST, and an individual resource at /api/salesorders/12345 is retrieved with GET, fully replaced with PUT, partially updated with PATCH, and removed with DELETE. Status codes carry meaning: 200 for success, 201 for created, 400 for a malformed request, 401 and 403 for authentication and authorization failures, 404 for a missing resource, 409 for a conflict, and 429 for rate limiting.
Statelessness is the constraint with the most operational consequence. Each request must carry everything needed to process it, including credentials, so no server-side session ties consecutive calls together. This makes horizontal scaling and load balancing straightforward, but it means multi-step business processes must be modeled explicitly - either as a resource that represents the in-progress process, or through client-managed state. Idempotency becomes important because a client that times out and retries must not create a duplicate order; idempotency keys solve this.
REST dominates new ERP and SaaS integration because of tooling and cost. Payloads are smaller than XML equivalents, browsers and mobile clients consume JSON natively, OpenAPI specifications generate clients and documentation automatically, and every language has mature HTTP libraries. Infor OS API Gateway, Salesforce, and modern ServiceMax interfaces all expose REST endpoints, and integration platforms treat REST connectors as the default.
The trade-offs matter in enterprise contexts. REST has no built-in standard for distributed transactions, message-level security, or guaranteed delivery, all of which the WS-* stack around SOAP addressed. Where a business process must span systems atomically, REST integrations implement compensating transactions or rely on a message broker. Where message-level signing or encryption is required for a regulated exchange, REST relies on transport security plus application-level signing rather than a standardized envelope.
Why It Matters
- REST is the default for modern ERP and SaaS integration, so most connectors, tooling, and developer skills assume it.
- Statelessness simplifies scaling but forces explicit design for multi-step business processes and retry safety.
- Proper use of status codes and idempotency keys is what prevents duplicate orders and shipments during network failures.
- REST lacks native distributed transaction and message-level security standards, which must be designed for in regulated integrations.
In Practice
Retry logic causes duplicate transactions more often than any other integration defect. A POST to create a sales order succeeds on the server but the response is lost to a timeout; the client retries and creates a second order. Send a client-generated idempotency key on every create request and have the receiving service return the original resource when it sees a repeated key. Without it, the safest fallback is a natural-key duplicate check on the customer PO number before insert.
Frequently Asked Questions
What makes an API RESTful?
Strictly, an API is RESTful when it satisfies the REST architectural constraints: client-server separation, statelessness, cacheability, a uniform interface including resource identification and self-descriptive messages, and a layered system. In common usage the term describes any resource-oriented HTTP API using standard verbs, conventional status codes, and JSON payloads, whether or not it implements hypermedia controls.
When should PUT be used instead of PATCH?
Use PUT when the client sends a complete representation that replaces the existing resource, which makes the operation idempotent - sending it repeatedly yields the same state. Use PATCH when sending only the fields that change. PATCH is smaller and safer against concurrent edits to unrelated fields, but implementations vary, so the API documentation should state exactly how partial updates are interpreted.
Related Terms
API (Application Programming Interface)
An API (Application Programming Interface) is a defined contract that lets one software system request data or trigger functions in another, specifying the available operations, the structure of requests and responses, and the rules for authentication and error handling.
SOAP
SOAP is an XML-based messaging protocol for exchanging structured information between systems, in which each message is an envelope containing an optional header and a body, and the available operations are formally described by a WSDL contract.
Webhook
A webhook is an HTTP callback in which a source system automatically sends an HTTP request to a subscriber-provided URL when a defined event occurs, pushing notification to the consumer instead of requiring the consumer to poll for changes.
Go Deeper
ITAR Compliance Checklist for Manufacturers
A 32-point checklist covering DDTC registration, technical data controls, foreign person access, IT security, and recordkeeping for ITAR-regulated manufacturers.
CMMC-Compliant AI Deployment: What Level 2 Contractors Must Know
CMMC-compliant AI deployment explained: how Level 2 defense contractors can run AI on CUI without expanding assessment scope. Controls, enclaves, and costs.
AI Governance for Export-Controlled Data (ITAR/EAR)
ITAR compliant AI governance for export-controlled data: acceptable use policy, access controls and audit trails that keep ITAR and EAR data out of public LLMs.
Working with REST API in a live environment? Our engineers do this every day - and our AI agents automate most of it.
Try it here, free
NetSuite Script and REST Error Codes Reference
Common NetSuite error names and HTTP status codes with the usual cause and the first thing to check.
Keep exploring
Free tools
- NetSuite Script and REST Error Codes ReferenceCommon NetSuite error names and HTTP status codes with the usual cause and the first thing to check.
- NetSuite SuiteTalk SOAP to REST Migration ChecklistA step-by-step checklist for replacing SOAP calls with REST record and SuiteQL calls, from inventory to cutover and rollback.
- HTTP Status Codes for ERP API Agents ReferenceLook up an HTTP status code and see what it usually means on an ERP API and whether an agent should retry, fix the request or escalate.
ERP fixes and how-tos
- Sage X3 API Documentation: REST (Syracuse), SOAP Web Services and Where to Find DocsSage X3 API options explained: Syracuse REST (SData), SOAP web services and where official documentation lives, plus guidance on choosing and securing access.
- Working with NetSuite's SuiteTalk REST Web Services APICall NetSuite's SuiteTalk REST record and SuiteQL endpoints correctly: base URLs, pagination with limit/offset/hasMore, expandSubResources, the Prefer: transient header, and common 404 and permission errors.
- Oracle ERP API Documentation: Where It Is and How to StartWhere the Oracle ERP API documentation lives: Fusion Cloud REST and SOAP, FBDI, BI reports, NetSuite SuiteTalk, plus auth methods and an example call.
Guides
- SyteLine REST API Error Codes and Troubleshooting ReferenceComplete SyteLine REST API error code reference. Diagnose HTTP status codes, IDO error responses, and ION API Gateway errors in CloudSuite Industrial integrations.
- Infor LN API Development: REST, SOAP, and BOD Integration GuideBuild integrations with Infor LN APIs using BODs, web services, and the LN Integration Framework. Developer guide for LN REST and SOAP endpoint programming.
- SyteLine Web Service Creation and Integration GuideCreate and consume web services in SyteLine. IDO-based REST APIs, SOAP endpoints, authentication, and integration patterns for CloudSuite Industrial.
Integrations
- How to add a mobile app to Epicor KineticBuild or choose a mobile app for Epicor Kinetic: barcode scanning, labor reporting, inventory moves and approvals over the REST API, with offline handling.
- How to build an MCP server for Oracle Fusion Cloud ERPHow to build a Model Context Protocol server for Oracle Fusion Cloud ERP: read-only tools, OAuth to Fusion REST, HTTP transport, scoping and audit for any MCP client.