Fetch Invoice

Retrieve details for a specific invoice by its ID.

Endpoint

GET /api/invoices/{invoice_id}

Path Parameters

ParameterTypeRequiredDescription
invoice_idstringYesThe unique identifier for the invoice

Response

Returns the invoice object.
{
  "id": "inv_123456789",
  "customer_id": "cust_123456789",
  "amount": 250.00,
  "currency": "USD",
  "description": "Service invoice",
  "status": "sent",
  "due_date": "2023-02-01T00:00:00Z",
  "created_at": "2023-01-01T00:00:00Z"
}