POST api/invoice/makeallocation

Make an allocation against an existing invoice

Request Information

URI Parameters

None.

Body Parameters

Details of Allocation

Dezrez.Core.DataContracts.Accounts.Invoices.Command.MakeInvoiceAllocationDataContract
NameDescriptionTypeAdditional information
InvoiceId

integer

None.

Amount

decimal number

None.

DateTime

date

None.

AccountId

integer

None.

InvoiceItemAllocations

Collection of Dezrez.Core.DataContracts.Accounts.Invoices.Command.InvoiceItemAllocationDataContract

None.

Request Formats

application/x-www-form-urlencoded

Sample:

Sample not available.

application/json, text/json

Sample:
{
  "InvoiceId": 1,
  "Amount": 2.0,
  "DateTime": "2024-11-21T09:45:10.4592048Z",
  "AccountId": 3,
  "InvoiceItemAllocations": [
    {
      "Amount": 1.0,
      "InvoiceItemId": 2
    },
    {
      "Amount": 1.0,
      "InvoiceItemId": 2
    }
  ]
}

Response Information

Resource Description

System.Web.Http.IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.