iInvoice API
v1.0.0

API Documentation

Welcome to the iInvoice API documentation. This API allows you to manage clients, invoices, settings, and subscriptions programmatically. All responses are in JSON format.

Base URL: https://ezyinvoiceapi/benorinetechnologies.com/api


Authentication

The API uses Laravel Sanctum for authentication. Protected endpoints require an API token in the Authorization header.

POST /login
Public

Authenticate a user and retrieve an API token.

{
    "email": "user@example.com",
    "password": "password"
}
POST /register
Public

Register a new user account.

{
    "name": "John Doe",
    "email": "john@example.com",
    "password": "password",
    "password_confirmation": "password"
}

Clients

GET /clients
Protected

Retrieve a paginated list of clients.

POST /clients
Protected

Create a new client.


Invoices

GET /invoices
Protected

Retrieve a paginated list of invoices.

POST /invoices/{id}/send
Protected (Verified Email)

Send an invoice via email.


Settings

PUT /settings
Protected

Update application settings.


Subscriptions

POST /checkout/{plan}
Protected

Initiate a checkout session for a subscription plan.

GET /subscription/status
Protected

Check the current subscription status.