OneBooks Developer Platform
The accounting API for your product
OAuth 2.0 APIs, HMAC-signed webhooks, and disposable sandboxes — everything you need to ship a production accounting integration.
$ curl -X POST https://api.getonebooks.com/journal \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"date": "2026-08-12",
"description": "Owner investment",
"lines": [
{ "accountCode": "1200", "debit": 5000 },
{ "accountCode": "3000", "credit": 5000 }
]
}'
HTTP/2 201
{
"journalNumber": "JE-00042",
"lines": [
{ "accountCode": "1200", "debit": 5000, "credit": 0 },
{ "accountCode": "3000", "debit": 0, "credit": 5000 }
]
}Two calls to your first invoice
Exchange your authorization code for a token, then call the API. No SDK required.
curl -X POST https://api.getonebooks.com/oauth/token \
-H "Content-Type: application/x-www-form-urlencoded" \
-d grant_type=authorization_code \
-d code=AUTH_CODE \
-d client_id=YOUR_CLIENT_ID \
-d client_secret=YOUR_CLIENT_SECRET \
-d redirect_uri=https://yourapp.example.com/callback \
-d code_verifier=PKCE_VERIFIERcurl https://api.getonebooks.com/invoices \
-H "Authorization: Bearer ACCESS_TOKEN"