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_xxxxxxxxxxxxxxxxxxxx
2

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/v1

API Endpoints

MethodEndpointDescription
GET/invoicesList all invoices
POST/invoicesCreate a new invoice
GET/invoices/:idGet invoice details
PUT/invoices/:idUpdate an invoice
DELETE/invoices/:idDelete an invoice
POST/invoices/:id/sendSend invoice to client
GET/clientsList all clients
POST/clientsCreate a new client
GET/paymentsList all payments
GET/predictionsGet payment predictions

Full documentation with request/response examples coming soon.

Official SDKs

Node.js

npm install @subpaid/sdk

Python

pip install subpaid

Ruby

gem install subpaid

Ready to integrate?

API access is available on Business and Enterprise plans.