Expense Service · v0.2.4
Welcome
Select a document from the sidebar to read it.
Getting Started with Expense API
Welcome to the Expense API documentation! This guide will help you get started with managing expenses through our RESTful API.
Overview
The Expense API allows you to:
- Create and manage expense records
- Track spending across different categories
- Generate expense reports
- Manage user accounts and permissions
Quick Start
Authentication
All API requests require authentication using an API key:
curl -H "Authorization: Bearer YOUR_API_KEY" \
https://api.example.com/expense/v1/expenses
Creating Your First Expense
curl -X POST \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"amount": 25.50,
"description": "Coffee and pastry",
"category": "food",
"date": "2025-01-01"
}' \
https://api.example.com/expense/v1/expenses
Response
{
"id": "exp_123456",
"amount": 25.50,
"description": "Coffee and pastry",
"category": "food",
"date": "2025-01-01",
"created_at": "2025-01-01T10:30:00Z",
"updated_at": "2025-01-01T10:30:00Z"
}
Next Steps
- API Reference - Complete API documentation
- Categories - Learn about expense categories
- Reports - Generate expense reports
- Authentication - Detailed auth guide
Support
If you need help, please:
- Check our FAQ
- Contact support at support@example.com
- Visit our GitHub repository