Create an invoice
1. Identify the customer
bash
curl https://api.cedius.app/v1/customers -H "Authorization: Bearer $CEDIUS_API_KEY"2. Create the invoice
bash
curl -X POST https://api.cedius.app/v1/invoices -H "Authorization: Bearer $CEDIUS_API_KEY" -H "Content-Type: application/json" -d '{
"customer_id": "cus_4d7c21",
"due_date": "2026-09-20",
"tax": 11250,
"items": [
{
"description": "Website maintenance",
"quantity": 1,
"unit_price": 150000
}
]
}'3. Inspect the invoice
bash
curl https://api.cedius.app/v1/invoices/inv_91ac20 -H "Authorization: Bearer $CEDIUS_API_KEY"4. Respect invoice state
Draft and pending invoices can be updated. Paid invoices cannot be freely edited.