API Documentation
Integrate InvoiceCraft with your own applications.
Introduction
Welcome to the InvoiceCraft API! You can use our API to access InvoiceCraft features programmatically. The API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.
Authentication
The InvoiceCraft API uses API keys to authenticate requests. You can view and manage your API keys in the InvoiceCraft Dashboard.
Authorization: Bearer YOUR_API_KEY
Invoices Endpoint
Allows you to create, retrieve, update, and delete invoices.
GET
/v1/invoices
- List all invoicesPOST
/v1/invoices
- Create an invoiceExample Response:
{ "id": "inv_123", "number": "INV-001", "client": { "name": "Acme Inc." }, "total": 1500, "status": "paid" }
Error Codes
The API uses standard HTTP status codes to indicate the success or failure of a request.
200 OK
- The request was successful.400 Bad Request
- The request was malformed.401 Unauthorized
- Authentication failed.404 Not Found
- The requested resource does not exist.500 Internal Server Error
- We had a problem with our server. Try again later.