Documentacion de la API
Integrate InvoiceKits into your applications
Inicio Rapido
URL Base
https://invoicekits.com/api/v1/
Autenticacion
All API requests require authentication using an API key. Include your key in the X-API-Key header.
curl -H "X-API-Key: your_api_key_here" \
https://invoicekits.com/api/v1/invoices/
Getting Your API Key
API keys are available on the Business plan. Once subscribed, you can generate your API key from Company Settings.
Endpoints
Facturas
/api/v1/invoices/
List all invoices for your account.
/api/v1/invoices/
Create a new invoice.
View request body
{
"client_name": "Acme Corp",
"client_email": "billing@acme.com",
"client_address": "123 Main St",
"invoice_date": "2024-01-15",
"payment_terms": "net_30",
"currency": "USD",
"template_style": "clean_slate",
"tax_rate": 8.5,
"notes": "Thank you for your business!",
"line_items": [
{
"description": "Web Development",
"quantity": 10,
"rate": 150.00
}
]
}
/api/v1/invoices/{id}/
Get details of a specific invoice.
/api/v1/invoices/{id}/
Update an existing invoice.
/api/v1/invoices/{id}/
Delete an invoice.
/api/v1/invoices/{id}/pdf/
Download invoice as PDF.
/api/v1/invoices/{id}/send/
Mark invoice as sent.
/api/v1/invoices/{id}/paid/
Mark invoice as paid.
Plantillas
/api/v1/templates/
List all available invoice templates and their availability for your plan.
Usage
/api/v1/usage/
Get your current API usage statistics, limits, and available features.
Response Codes
| Code | Descripcion |
|---|---|
| 200 | Success |
| 201 | Created successfully |
| 400 | Bad request - Invalid parameters |
| 401 | Unauthorized - Invalid or missing API key |
| 403 | Forbidden - Invoice limit reached or API access not enabled |
| 404 | Not found - Resource doesn't exist |
| 429 | Rate limited - Too many requests |
Rate Limits
The Business plan includes 1,000 API calls per month. Usage resets on the first of each month.
Check your current usage with the /api/v1/usage/ endpoint.
Need Help?
Having trouble with the API? Our support team is here to help.
Contact SupportEmail us at support@invoicekits.com