Skip to Content
DevelopersAPI ReferenceOverview

API Reference

Complete reference for all Rebased API endpoints.

Base URL

https://api.rebased.app/api/v1/external

Authentication

All requests require a Bearer token:

curl -H "Authorization: Bearer rb_live_YOUR_API_KEY" \ https://api.rebased.app/api/v1/external/clients

See Authentication for details.

Common Parameters

Pagination

List endpoints support pagination:

ParameterTypeDefaultDescription
pageinteger1Page number (1-indexed)
page_sizeinteger50Items per page (max 100)

Response Format

All list responses include:

{ "items": [...], "total": 150, "page": 1, "page_size": 50, "has_more": true }

Endpoints

Clients

MethodEndpointDescription
GET/clientsList all clients
GET/clients/{id}Get a single client
POST/clientsCreate a client

Suppliers

MethodEndpointDescription
GET/suppliersList all suppliers
GET/suppliers/{id}Get a single supplier
POST/suppliersCreate a supplier

Invoices

MethodEndpointDescription
GET/invoicesList all invoices
GET/invoices/{id}Get a single invoice with line items
POST/invoicesCreate an invoice with line items

Bills

MethodEndpointDescription
GET/billsList all bills
GET/bills/{id}Get a single bill with line items
POST/billsCreate a bill with line items

Items

MethodEndpointDescription
GET/itemsList all catalog items
GET/items/{id}Get a single item
POST/itemsCreate a catalog item

Quotes

MethodEndpointDescription
GET/quotesList all quotes
GET/quotes/{id}Get a single quote with line items

Accounts

MethodEndpointDescription
GET/accountsList chart of accounts
GET/accounts/{id}Get a single account

Tax Codes

MethodEndpointDescription
GET/tax-codesList tax codes for a region
GET/tax-codes/{id}Get a single tax code

Reports

MethodEndpointDescription
GET/reports/trial-balanceGet trial balance report
GET/reports/profit-lossGet profit and loss report
GET/reports/balance-sheetGet balance sheet report

Bank Transactions

MethodEndpointDescription
GET/bank-accountsList bank accounts
GET/bank-transactionsList bank transactions
GET/bank-transactions/{id}Get a single transaction

Error Responses

StatusDescription
400Bad Request — Invalid parameters
401Unauthorized — Invalid or missing API key
403Forbidden — Missing required scope
404Not Found — Resource doesn’t exist
409Conflict — Duplicate resource (e.g., item code already exists)
422Unprocessable Entity — Validation failed
429Too Many Requests — Rate limit exceeded
500Internal Server Error — Something went wrong

Error response format:

{ "detail": "Error message here" }
Last updated on