Search Results for

    Show / Hide Table of Contents

    Method UpdateGlAccounts

    UpdateGlAccounts(String, RequestSettingsContract, List<GlAccountUpdateContract>)

    Update general ledger accounts

    Declaration
    RequestResultContract UpdateGlAccounts(string connectionId, RequestSettingsContract requestSettings, List<GlAccountUpdateContract> glAccounts)
    Parameters
    Type Name Description
    System.String connectionId

    The connection id to identify your connection. See also ConnectionId

    RequestSettingsContract requestSettings

    Request settings, e.g. Language

    System.Collections.Generic.List<GlAccountUpdateContract> glAccounts

    Ledger accounts to be edited or added or deleted

    Returns
    Type Description
    RequestResultContract

    Returns the result of the query

    Examples

    PUT http://YourServerName/InfoShare/Json/Invoice/UpdateGlAccounts

    Example for update general ledger accounts.

    {
       "connectionId": "635f1e50-2a02-4b21-b0b1-6bad36228131",
       "requestSettings":
       {
           "Language": "de"
       },
       "glAccounts": [
           {
               "CompanyNumber": "100",
               "CompanyNumberSpecified": true,
               "FiscalYear": "2020",
               "FiscalYearSpecified": true,
               "GLAccountNumber": "1681691",
               "GLAccountNumberSpecified": true,
               "Blocked": "Yes",
               "BlockedSpecified": true,
               "Update": "Update"
           }
       ]
    }

    Response:

    {
        "Error": null,
        "Messages": null,
        "Result": "Valid"
    }
    Exceptions
    Type Condition
    ServiceException

    The connection id {connectionId} isn't valid or has expired (10008)

    ServiceException

    Verification code is needed: Verification code not yet verified (10152)

    Back to top Copyright © Kendox