Forum - Unable to change price and quantity from Create Invoice Line API

Tagged: ,

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #53052
    Dan Michael Heggø

    We’re trying to create a script that creates invoices and invoice lines using the API. We’re following the recipe in Everything works, except that the price and quantity in the invoice lines are not changed, but defaults to the PO Line value. Here’s an example XML we use with the Create Invoice Line API:


    When POST-ing it, we get the following response:

    <?xml version=”1.0″ encoding=”UTF-8″ standalone=”yes”?>
    <type desc=”Regular”>REGULAR</type>
    <status desc=”In-Review”>INREVIEW</status>
    <vat_note>Approximately 0.00 included in line Total Price.</vat_note>
    <reporting_code desc=”Printed Book”>PRINTBOOK</reporting_code>
    <fund_code desc=”Antropologi”>uhs-antr</fund_code>

    The invoice line is created and there is no error message, but the price and quantity are not set to the values from the XML, but rather to the default values from the PO Line. Changing the reporting_code or price_note works, however. 😕

    Tami Fuches

    This issue will be fixed as part of the Alma September release. The behavior will be as following:
    1. If po_line field was supplied, the following fields will be taken by default from the POL:
    • price
    • quantity
    • reporting codes
    • funding

    2. However, if they were supplied as part of the payload – the values from the payload should be used.

    3. This is similar to the behavior in UI for manually creating invoice line: after selecting a pol this fields are automatically populated. However they can be changed by the user.


    Dan Michael Heggø

    Thanks, that would be exactly what we would expect from the API.

    Dan Michael Heggø

    Couldn’t find any info about this in the September release notes. Was it postponed for October?

    Tami Fuches

    Hi Dan,
    The fix is part of the September release.
    It was not included in the list of resolved defects by a mistake. We will add it.


Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.