Tech Blog

Creating an invoice using APIs

The purpose of this blog is to describe in details the required steps for creating a new invoice in Alma using APIs.

In general, creating an invoice using APIs is parallel to creating an invoice manually in the Alma UI. The following steps are required:

  • Create an invoice
  • Add invoice lines
  • Process the invoice (in Alma UI this is the “Save and continue” action, for moving the invoice forward in the workflow)

Note that invoice must be processed (Step 3) in order to be editable in the Alma User Interface.

Following is a detailed description of each step:

1. Create an invoice:

POST /almaws/v1/acq/invoices

An invoice body payload is required. For example:


The response will include the invoice id (in “id” field). This id should be used in subsequent queries regarding the invoice. Note that “created from” is set to “API”.

2. Add invoice lines:

The following API adds a single invoice line. This means that you should submit it multiple times – according to the number of invoice lines.

POST /almaws/v1/acq/invoices/{invoice id}/lines

Payload of the invoice line body is required. For example:


3. Process invoice:

You should submit this API after creating the invoice and its lines. This API is parallel to the “Save and continue” action in the Alma UI, and will process the invoice: The invoice will move forward in the workflow, or, if there are issues – will be sent to “review” with the relevant alerts.

Note that this step is mandatory.

POST /almaws/v1/acq/invoices/{invoice id}?op=process_invoice

An empty invoice object should be sent as a payload: The response will include the invoice with an updated status, and alerts (if exist).

3 Replies to “Creating an invoice using APIs”

  1. Thank you!
    I went through the three steps and I was able to create an invoice with two invoice lines. I was able to search and see the invoice via API Console and API application. But I could not display on Alma interface. Any idea? What am I missing? Are there mandatory data fields to create? Thanks!

  2. Hi. I am using existing invoice number to create invoice lines, but they all appeared as “in-review”, even seems all necessary fields exist. I is not changing “In-review” status even if I update lines. I wander if somebody could give me an advice what is wrong or what parameter to pass?

Leave a Reply