Invoices API Guide


Use these endpoints to view invoices. You cannot create, update, or delete invoices via this API; it only supports GET requests. Every request needs a valid JWT token.

yoursite.com/wp-json/eac/v1/

Get all invoices

Retrieve a list of invoices.

Request

Method: GET
URL: yoursite.com/wp-json/eac/v1/invoices/
Headers:
  Authorization: Bearer <JWT Token>

What it returns

Everything about that invoice: items, quantities, prices, subtotal, tax, total, customer reference, status, due date and timestamps.

Response example

[
  {
    "id": 25,
    "invoice_number": "INV-2025-001",
    "customer_id": 16,
    "status": "unpaid",
    "total": 350.00,
    "currency": "USD",
    "due_date": "2025-02-15",
    "date_created": "2025-01-10T09:30:00"
  },
  {
    "id": 26,
    "invoice_number": "INV-2025-002",
    "customer_id": 15,
    "status": "paid",
    "total": 200.00,
    "currency": "EUR",
    "due_date": "2025-02-20",
    "date_created": "2025-01-11T10:45:00"
  }
]

Get a single invoice by ID

Retrieve full details for one invoice.

Request

Method: GET
URL: yoursite.com/wp-json/eac/v1/invoices/:id
Path parameter:
  id  โ€” Invoice ID (required)
Headers:
  Authorization: Bearer <JWT Token>

What it returns

Everything about that invoice: items, quantities, prices, subtotal, tax, total, customer reference, status, due date and timestamps.

Response example

{
  "id": 25,
  "invoice_number": "INV-2025-001",
  "customer_id": 16,
  "status": "unpaid",
  "items": [
    { "item_id": 5, "description": "Product A", "quantity": 2, "unit_price": 100, "total": 200 },
    { "item_id": 7, "description": "Product B", "quantity": 1, "unit_price": 150, "total": 150 }
  ],
  "subtotal": 350.00,
  "tax": 0,
  "total": 350.00,
  "currency": "USD",
  "due_date": "2025-02-15",
  "date_created": "2025-01-10T09:30:00"
}

โ† Previous
Next โ†’