# invoice-as-a-service

> Invoice as a service is a self-hosted, open-source REST API that generates professional PDF invoices from JSON payloads with S3, FTP, webhook, and Zapier delivery.

- **Category:** Billing
- **Licence:** MIT
- **Latest version:** v2026-10-23
- **Open source:** oss
- **Languages:** PHP
- **Platforms:** Docker, Composer
- **Tags:** API, REST API, Saas, Pdf Generation, JSON, Nocode, PDF, Stripe, Paypal, Ftp, Php, Laravel, S3, Self Hosted, Webhook, Invoice, Zapier, Rest, Hosted, Braintree, Paymentwall, JSON To PDF

## Description

Invoice as a service is a Laravel-based REST API that creates professional PDF invoices from JSON data sent via POST. It takes invoice details like line items, customer and company information, tax rates, currency, and optional payment links, then renders a PDF using Dompdf with a Bootstrap-styled template. The resulting PDF can be sent back in the response or pushed to AWS S3, FTP servers, webhooks, or Zapier. A hosted API endpoint is available at invoice-as-a-service.cleverapps.io, and self-hosted deployment is documented using Composer with PHP's built-in server or via Docker running PHP 8.0-fpm on port 8000. The stack requires PHP 7.3 or newer and Laravel 6.x, with dompdf for PDF generation and Guzzle for outbound HTTP. The API validates all input fields and supports English and Spanish. There is no user authentication — the service is a stateless API endpoint.

## Links

- [Homepage](https://github.com/samber/invoice-as-a-service)
- [Docker](docker.io/samber/invoice-as-a-service)
- [Hosted Demo Endpoint](https://invoice-as-a-service.cleverapps.io/api/invoice/generate)
- [Community UI Form](https://crocomo2744.github.io/Invoicing-form/)
- [GitHub Repository](https://github.com/samber/invoice-as-a-service)

---
Source: https://selfhost.directory/project/invoice-as-a-service