The Mocha QuickBill API lets your application create invoices, manage the products and customers behind them, and email a finished invoice to your customer. Two headers to authenticate, JSON in and JSON out, over plain REST.
Authentication, the REST model, client libraries, ready-to-run code samples and the OpenAPI specification.
Read the guide →Every endpoint with its request fields, example bodies, response payloads and status codes.
Open the reference →Authentication methods, security guidelines, the API changelog and the full API catalog in one place.
Visit the hub →Create the products and services your invoices bill against, list them a page at a time, or read any single one back by its id.
Create the customer records your invoices are issued against, with their billing and shipping addresses, then read them back to reuse on an invoice.
Raise invoices from your own application, read them back with their line items and addresses, and record the payments that settle them — in full or in part.
Send an invoice out to your customer over email straight from your backend, with your own recipient list.
Every endpoint in the reference lists its request fields, a runnable sample in your language, and the exact response your integration will get back.
/v1/product-unitsAdd a new billable product-unit to your account. Once created, it can be referenced by SKU on any invoice line item.
Body parameters
Light package.curl -X POST \
https://api.mocha.co/v1/product-units \
-H "Authorization: Bearer sk_live_..." \
-H "Content-Type: application/json" \
-d '{
"name": "Light package",
"sku": "pkg_light",
"unit_price": 4900,
"currency": "USD",
"description": "Starter tier — 5 seats"
}'{
"id": "pu_light_pkg",
"name": "Light package",
"sku": "pkg_light",
"unit_price": 4900,
"currency": "USD",
"description": "Starter tier — 5 seats",
"created_at": "2026-08-06T14:32:11Z"
}Send us the endpoint you are calling, the request body and the response you received — our team will take it from there.