Build powerful integrations with the OINvoices API. RESTful endpoints, webhooks, and comprehensive documentation.
The OINvoices API is a RESTful API that allows you to create, manage, and track invoices programmatically. All API requests should be made over HTTPS to https://api.oinvoices.com/v1/
.
https://api.oinvoices.com/v1/
All responses are returned in JSON format with appropriate HTTP status codes.
The OINvoices API uses API keys for authentication. You can find your API key in your account dashboard under Settings > API Keys.
Include your API key in the Authorization header of each request:
curl -H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
https://api.oinvoices.com/v1/invoices
Create, retrieve, update, and manage invoices through the API.
/invoices
Create a new invoice
{
"client_id": "client_123",
"due_date": "2024-02-15",
"currency": "USD",
"line_items": [
{
"description": "Web Development",
"quantity": 1,
"rate": 1500.00
}
],
"notes": "Thank you for your business!"
}
{
"id": "inv_abc123",
"number": "INV-001",
"status": "draft",
"total": 1500.00,
"created_at": "2024-01-15T10:30:00Z",
"due_date": "2024-02-15",
"client": {
"id": "client_123",
"name": "Acme Corporation"
}
}
/invoices/{id}
Retrieve a specific invoice by ID
/invoices
List all invoices with optional filtering
Query Parameters:
status
- Filter by status (draft, sent, paid, overdue)client_id
- Filter by client IDlimit
- Number of results to return (default: 50)offset
- Pagination offsetManage your client database through the API.
/clients
Create a new client
{
"name": "Acme Corporation",
"email": "billing@acme.com",
"address": {
"street": "123 Business St",
"city": "New York",
"state": "NY",
"zip": "10001",
"country": "US"
}
}
Receive real-time notifications when events occur in your OINvoices account.
invoice.created
- Invoice was createdinvoice.sent
- Invoice was sent to clientinvoice.paid
- Invoice was marked as paidpayment.received
- Payment was received{
"event": "invoice.paid",
"timestamp": "2024-01-15T10:30:00Z",
"data": {
"invoice": {
"id": "inv_abc123",
"number": "INV-001",
"status": "paid",
"total": 1500.00
}
}
}
The OINvoices API uses standard HTTP response codes to indicate success or failure.
Code | Status | Description |
---|---|---|
200 | OK | Request successful |
201 | Created | Resource created successfully |
400 | Bad Request | Invalid request parameters |
401 | Unauthorized | Invalid or missing API key |
404 | Not Found | Resource not found |
429 | Too Many Requests | Rate limit exceeded |
500 | Internal Server Error | Something went wrong on our end |
API requests are rate limited to ensure fair usage and system stability.
Plan | Requests per minute | Requests per hour |
---|---|---|
Starter | 60 | 1,000 |
Professional | 120 | 5,000 |
Enterprise | 300 | 15,000 |
Official SDKs and community libraries to help you integrate faster.
Official JavaScript SDK
npm install oinvoices
Official Python SDK
pip install oinvoices
Official PHP SDK
composer require oinvoices/php