SubPaid API
Integrate SubPaid's powerful invoicing features into your applications. Create invoices, manage clients, and access payment predictions programmatically.
curl -X POST https://api.subpaid.com/v1/invoices \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"client_id": "cli_123",
"items": [{
"description": "Electrical work",
"quantity": 8,
"rate": 75.00
}],
"due_date": "2026-02-28"
}'RESTful API
Simple, predictable REST endpoints for all SubPaid features.
Secure Authentication
API key authentication with optional OAuth 2.0 support.
JSON Responses
All responses in clean, well-documented JSON format.
Webhooks
Real-time notifications for invoice and payment events.
Getting Started
1
Get Your API Key
Generate an API key from your SubPaid dashboard. Go to Settings β API β Generate New Key.
sk_live_xxxxxxxxxxxxxxxxxxxx2
Make Your First Request
Include your API key in the Authorization header of every request.
curl https://api.subpaid.com/v1/invoices \ -H "Authorization: Bearer YOUR_API_KEY"
3
Base URL
All API requests should be made to:
https://api.subpaid.com/v1API Endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET | /invoices | List all invoices |
| POST | /invoices | Create a new invoice |
| GET | /invoices/:id | Get invoice details |
| PUT | /invoices/:id | Update an invoice |
| DELETE | /invoices/:id | Delete an invoice |
| POST | /invoices/:id/send | Send invoice to client |
| GET | /clients | List all clients |
| POST | /clients | Create a new client |
| GET | /payments | List all payments |
| GET | /predictions | Get payment predictions |
Full documentation with request/response examples coming soon.
Official SDKs
Node.js
npm install @subpaid/sdkPython
pip install subpaidRuby
gem install subpaidReady to integrate?
API access is available on Business and Enterprise plans.