Show / Hide Table of Contents

    Create

    Command, Introduced in version 2.30

    POST https://localhost:8001/sv/001.1/api/v1/Accounting/AccrualAccountings/Create
    

    Creates an accrual accounting.

    Returns EntityCommandResponse

    The root entity id of the response is the business key identifier of the created accrual accountng. References AccrualAccountings

    The entity id of the response is the same as the root entity id.

    Required permission

    Create accrual
    

    Properties

    Name Type Summary Introduced in
    AccountsPayableId Int64 The business key identifier of the accounts payable for the accrual accounting.

    Used when creating an accrual accounting of the type .

    References Suppliers

    • Mandatory
    AccrualAccountingType Int32 The type to set for the accrual accounting.

    • AccountsPayableBookingRow: 1
    • VoucherRow: 2
    • ReverseVoucher: 3
    • FreeBooking: 4
    • SalesAgreement: 5

    • Mandatory
    VoucherRowId Int64? The business key identifier of the voucher row to set for the accrual accounting.

    References VoucherRows

    • Mandatory
    BookingRowId Int64? The business key identifier of booking row to set for the accrual accounting.

    Used instead of when creating an accrual accounting of the type
    if the accounts payable does not yet have an associated voucher.

    References BookingRows

    • Mandatory
    StartDate DateTime The start date of the accrual accounting.

    • Mandatory
    Periods AddAccrualAccountingRow[] Specifies the accrual accounting periods which will be added to the accrual accounting.

    The total sum of must be balanced with the total booking amount of the accrual accounting.

    • Mandatory
    BookingRows AddBookingRow[] The booking rows to set for the accrual accounting.

    • Mandatory

    Example

    {
      "AccountsPayableId": 0,
      "AccrualAccountingType": 0,
      "VoucherRowId": null,
      "BookingRowId": null,
      "StartDate": "0001-01-01T00:00:00",
      "Periods": null,
      "BookingRows": null
    }
    
    Back to top Copyright © 2023 Monitor ERP System AB