RespireSoft Invoicing API
Make invoices, take payments and tell your other software when an invoice is paid or a receipt is issued.
What you can do
- Make customers, products, prices, quotes, offers, invoices, credit notes and recurring plans.
- Record and refund payments, create checkout sessions and pay links, and read receipts.
- Get a webhook the moment an invoice is paid or a receipt is issued, signed so you know it came from us.
Your first request
Make a key under Settings, Developers in the app. Keys that start with sk_test_ work in test mode and never touch real money or real customers.
curl https://api.invoicing.respiresoft.com/v1/customers?limit=3 \
-H "Authorization: Bearer $RESPIRESOFT_KEY"const res = await fetch("https://api.invoicing.respiresoft.com/v1/customers?limit=3", {
headers: { Authorization: `Bearer ${process.env.RESPIRESOFT_KEY}` },
})
console.log(await res.json())$ch = curl_init("https://api.invoicing.respiresoft.com/v1/customers?limit=3");
curl_setopt_array($ch, [CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("RESPIRESOFT_KEY")]]);
print_r(json_decode(curl_exec($ch), true));import os, requests
r = requests.get("https://api.invoicing.respiresoft.com/v1/customers", params={"limit": 3},
headers={"Authorization": "Bearer " + os.environ["RESPIRESOFT_KEY"]})
print(r.json())The guides
- Authentication: keys, scopes, test mode and rate limits.
- Errors: every problem has a stable code.
- Pagination: cursors,
limitandexpand[]. - Idempotency: retry a POST without doing it twice.
- Webhooks: get told when something happens, and verify it is us.
- Event reference: the name and shape of every event.
- Checkout.js: put a pay button on your own website.
The reference
Money is always an integer in minor units (1250 is 12.50) with an ISO 4217 currency code. Ids look like inv_4f8Kq2…. Dates are YYYY-MM-DD, moments are ISO 8601. Machine readers can use openapi.json.
CustomersThe people and companies you invoice.ProductsWhat you sell.PricesWhat a product costs, in one currency.Price listsSpecial prices for groups of customers.CouponsDiscounts you can apply to documents and plans.Promotion codesCodes your customers type to get a coupon.Tax ratesVAT and other taxes.QuotesOffers in document form that the customer can accept.InvoicesCreate a draft, issue it (it gets its number), send it, take payment.Credit notesReduce or cancel an invoice.ReceiptsProof of payment, made when a payment is recorded or received. Read only.PaymentsMoney received. Record a cash or bank payment, or refund one.Payment requestsAsk for an amount without an invoice and get a pay link.Checkout sessionsA hosted payment page for an invoice or an amount. The `url` is shown once, in the answer of create.Checkout linksA reusable pay page at /l/<slug>.OffersA page the customer opens to accept and pay. Send it, or withdraw it.PlansRecurring invoices or pay links on a schedule.EventsEverything that happened in the account, the same documents webhooks send. Poll with ?after=.Webhook endpointsWhere we send events. The signing secret is shown once, when the endpoint is made or its secret is rotated.