Invoices API
Invoices linked to subscriptions and organizations. A free mock REST endpoint from DevSeed API for building and testing frontend applications without a real backend.
Base URL
https://www.devseedapi.com/api/v1/startup
Endpoints
GET /startup/invoices
Invoices linked to subscriptions and organizations.
GET /startup/invoices/:id
Returns a single record as { success, data }, or a 404 if the id doesn't exist. Supports include and the simulation parameters below.
Write endpoints (simulated)
POST /startup/invoices
PUT /startup/invoices/:id
PATCH /startup/invoices/:id
DELETE /startup/invoices/:id
- Writes behave like a real API but nothing is saved: the response shows the record the write would produce, and later reads are unchanged.
- Send JSON (
Content-Type: application/json) with the same fields as a record.idandcreatedAtare set by the server and ignored if you send them. POSTreturns201.PUTneeds a full record,PATCHonly the fields to change (nested objects are merged), andDELETEreturns the deleted record.- Invalid bodies return
422with anerrorslist (missing or unknown fields, wrong types, ids that point at missing records). An unknown id returns404. The simulation parameters work on writes too.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
| page | number | Page number for pagination |
| limit | number | Number of results per page |
| search | string | Search across fields. Supports nested fields (e.g., searches name.first, name.last, email). |
| filter | string | Filter by any field using query params. Supports nested fields using dot notation (e.g., address.city=Toronto, name.first=John). |
| sort | string | Sort by a field. Supports nested fields using dot notation (e.g., sortBy=name.first&order=asc). |
| delay | number (ms) | Simulates network latency |
| error | number (HTTP code) | Force a specific HTTP error |
| errorRate | number (0–100) | Random API failures by percentage |
| include | string | Include related data: organization, subscription |
Example Requests
Get all invoices
GET /startup/invoicesGet one by ID
GET /startup/invoices/inv1Pagination
GET /startup/invoices?page=2&limit=10Search invoices
GET /startup/invoices?search=johnFilter invoices
GET /startup/invoices?filter=valueSort invoices
GET /startup/invoices?sortBy=field&order=ascInclude Related Data
GET /startup/invoices?include=organization,subscriptionGET /startup/invoices/inv1?include=organization,subscriptionCreate (simulated)
POST /startup/invoices
Content-Type: application/json
{ ...fields of a invoices record }Update fields (simulated)
PATCH /startup/invoices/inv1
Content-Type: application/json
{ ...only the fields to change }Delete (simulated)
DELETE /startup/invoices/inv1Simulate slow API
GET /startup/invoices?delay=2000Force an error
GET /startup/invoices?error=500Random API failures (20%)
GET /startup/invoices?errorRate=20Try the API
Live API Console
/startup/invoices
Missing a field, filter or endpoint? Was this page helpful?
Request an endpoint / give feedback