Create a New Registered Invoice Imaging Document
    • 15 Dec 2025
    • 3 Minutes to read
    • Dark
      Light

    Create a New Registered Invoice Imaging Document

    • Dark
      Light

    Article summary

    Post
    /ecm-rest-api/jersey/v1/UploadData/uploadApRegInvoice

    Overview

    This endpoint provides the ability to upload a document along with flysheet data to create an AP Miscellaneous Invoice with detail lines (department (G), job (J), and equipment (E) type lines).

    Notes

    · srcUuid and docTypeUuid identify the corresponding source and document type to which the document will be uploaded

    · payload also contains a header section (headerFlysheet, headerData) and a detail section (detailFlysheet, detailData) to support the different flysheet data components to be inserted

    UI Navigation

    Enterprise Content Management > Imaging > Flysheet > APREGINV

    Reference Article

    Imaging – Imaging Control

    Accounts Payable – Approve Registered Invoices

    Commonly Used Body Parameters

    CMiC UI FieldnameObjectNameDescriptionTypeData LengthExample
    CompanyheaderDataApri_Comp_CodeThis is the company code associated with the AP miscellaneous invoice. Must be a valid CMiC Company Code.string8001
    VendorheaderDataApri_Ven_CodeThis is the vendor code associated with the AP miscellaneous invoice. Must be a valid vendor code in CMiC.string10MICR01
    Invoice Job CodeheaderDataApri_Job_CodeThis is the (optional) job code associated with the AP miscellaneous invoice. Must be a valid job code in CMiC.string10017401
    Invoice Registry Group CodeheaderDataApri_Group_CodeInvoice registration groups are used to group the access, entry and approval of invoices entered through the Register Invoices screen. Must be a valid Invoice Registry Group Code in CMiC.string10CMIC
    Invoice NumberheaderDataApri_Inv_CodeThis is the invoice number associated with this invoice. This number appears on the vendors’ invoice and it is not the same as the voucher number.string20TESTINV988
    Invoice Header DateheaderDataApri_Inv_DateThis is the date the invoice was issued/created.datetimeYYYY/MM/DD2025/03/31
    DescriptionheaderDataApri_DescThis is a short description for the invoice.string30Purchases from Home Depot.
    Original AmountheaderDataApri_Orig_AmtOriginal invoice amount is the pre-tax invoice amount – this is used in the validation workflow.number181825.00
    AmountheaderDataApri_Inv_AmtThis invoice amount can be the same as the Original Invoice Amount if no taxes are applied. Otherwise, this is the post-tax invoice amount (net amount).number181825.00
    Invoice Detail Line NumberdetailDataAprdist_Line_NumThis is the line number assigned to the detail line - unique to the invoice details.number31
    Detail Line TypedetailDataAprdist_Type_CodeThis is the line type assigned to the detail line – G for department type, J for job type, E for equipment typestring2G
    Detail Line Company CodedetailDataAprdist_Comp_CodeThis is the company code assigned to the detail line.string8ZZ
    Job/Dept./Eqp.detailDataAprdist_User_Field2This field identifies the department code (for G types), job code (for J types) or the equipment code (for E types).string1000
    Phase/Account/CategorydetailDataAprdist_User_Field3This field identifies the account code (for G types), phase code (for J types) or the equipment category code (for E types).string161000
    Category/Tran CodedetailDataAprdist_User_Field4This field identifies the category code (for J types) or the tran code (for E types) - not applicable for G types.string4
    Weight Measure CodedetailDataAprdist_Wm_CodeThis is the weight measure code associated with the detail line item.string2NA
    Line AmountdetailDataAprdist_Debit_AmtThis is the amount tied to the line item on the invoice.number (with decimals)18, 2100.00
    Security
    HTTP
    Type basic

    Basic authentication

    Body parameters
    object
    fileDetails
    string
    Example{ "srcUuid": "0AC3DE23133C61F0E063AF811DAC5CAD", "docTypeUuid": "ADC78973BD841170E053508010AC2DB4", "headerFlysheet": "AP Registered Invoice Header", "headerData": { "Apri_Comp_Code": "ZZ", "Apri_Ven_Code": "ZZ-WMT", "Apri_Group_Code": "CMIC", "Apri_Inv_Code": "TESTINV501", "Apri_Inv_Date": "2025-03-21", "Apri_Desc": "RS TEST WEBSERVICE", "Apri_Orig_Amt": "5" }, "detailFlysheet": "AP Registered Invoice Details", "detailData": [ { "Aprdist_Line_Num": "1", "Aprdist_Type_Code": "G", "Aprdist_Comp_Code": "ZZ", "Aprdist_User_Field2": "00", "Aprdist_User_Field3": "1000.100", "Aprdist_Wm_Code": "NA", "Aprdist_Debit_Amt": "1" } ] }
    document-content-file
    string (binary)
    Responses
    200

    OK

    Headers
    Content-Type
    string
    Exampleapplication/json
    example-0

    Successful Response

    {
      "message": " Successfully Uploaded : Capture.PNG with UUID - 0282C4A9CC9F5B4EE06316821FAC4F7D"
    }
    example-1

    Successful Response

    {
      "message": " Successfully Uploaded : LCPTracker(7).xlsx with UUID - 04557AB709153556E06316821FACCA98"
    }
    object