POST api/invoice/makeallocation

Make an allocation against an existing invoice

Request Information

URI Parameters

None.

Body Parameters

Details of Allocation

MakeInvoiceAllocationDataContract
NameDescriptionTypeAdditional information
InvoiceId

integer

None.

Amount

decimal number

None.

DateTime

date

None.

AccountId

integer

None.

InvoiceItemAllocations

Collection of InvoiceItemAllocationDataContract

None.

Request Formats

application/json, text/json

Sample:
{
  "InvoiceId": 1,
  "Amount": 2.0,
  "DateTime": "2020-07-03T19:53:28.5429265Z",
  "AccountId": 3,
  "InvoiceItemAllocations": [
    {
      "Amount": 1.0,
      "InvoiceItemId": 2
    },
    {
      "Amount": 1.0,
      "InvoiceItemId": 2
    }
  ]
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.