API REFERENCE

Invoices API

Invoices come out of AlgaPSA billing runs, or you write them by hand. Use this API to read invoices, generate them from recurring templates, record payments and credits, and move each one through approve, finalize, and send.

The lifecycle

An invoice goes from draft to approved to finalized, then out to the client. Each step is its own call: POST /invoices/{id}/approve, then /finalize, then /send. Gate any of them behind your own checks. Once an invoice is finalized, record money against it with /payment and /credit.

Recurring and manual

Most invoices come from recurring templates. Manage those under /invoices/recurring, check the next run with POST /invoices/preview, then commit it with POST /invoices/generate. For a one-off, POST /invoices/manual writes a single invoice directly.

Read and export

GET /invoices lists and filters; /invoices/search runs a text query; /invoices/analytics and /invoices/export feed reporting. Line items and ledger entries sit under {id}/items and {id}/transactions, and {id}/pdf returns the rendered document.

Endpoints

Every endpoint links through to its full parameters, request and response schemas, and code samples.

GET/api/v1/invoicesAlgaPSAList invoicesPOST/api/v1/invoicesAlgaPSACreate invoiceGET/api/v1/invoices/{id}AlgaPSAGet invoice by idPUT/api/v1/invoices/{id}AlgaPSAUpdate invoiceDELETE/api/v1/invoices/{id}AlgaPSADelete invoicePOST/api/v1/invoices/{id}/approveAlgaPSAApprove invoicePOST/api/v1/invoices/{id}/creditAlgaPSAApply credit to invoicePOST/api/v1/invoices/{id}/duplicateAlgaPSADuplicate invoicePOST/api/v1/invoices/{id}/finalizeAlgaPSAFinalize invoiceGET/api/v1/invoices/{id}/itemsAlgaPSAList invoice itemsPOST/api/v1/invoices/{id}/paymentAlgaPSARecord invoice paymentGET/api/v1/invoices/{id}/pdfAlgaPSARedirect to invoice PDF downloadPOST/api/v1/invoices/{id}/pdfAlgaPSAGenerate invoice PDF assetPOST/api/v1/invoices/{id}/rejectAlgaPSAReject invoicePOST/api/v1/invoices/{id}/sendAlgaPSASend invoicePOST/api/v1/invoices/{id}/taxAlgaPSACalculate invoice taxGET/api/v1/invoices/{id}/transactionsAlgaPSAList invoice transactionsGET/api/v1/invoices/analyticsAlgaPSAGet invoice analyticsPOST/api/v1/invoices/bulkAlgaPSABulk update invoice statusPOST/api/v1/invoices/bulk/creditAlgaPSABulk apply invoice creditsPOST/api/v1/invoices/bulk/deleteAlgaPSABulk delete invoicesPOST/api/v1/invoices/bulk/sendAlgaPSABulk send invoicesGET/api/v1/invoices/exportAlgaPSAExport invoicesPOST/api/v1/invoices/generateAlgaPSAGenerate recurring invoicePOST/api/v1/invoices/manualAlgaPSACreate manual invoicePOST/api/v1/invoices/previewAlgaPSAPreview recurring invoiceGET/api/v1/invoices/recurringAlgaPSAList recurring invoice templatesPOST/api/v1/invoices/recurringAlgaPSACreate recurring invoice templatePUT/api/v1/invoices/recurring/{id}AlgaPSAUpdate recurring invoice templateDELETE/api/v1/invoices/recurring/{id}AlgaPSADelete recurring invoice templateGET/api/v1/invoices/searchAlgaPSASearch invoices