POST api/invoice/makeallocation

Request Information

URI Parameters

None.

Body Parameters

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": "2018-11-16T09:53:13.4529801Z",
  "AccountId": 3,
  "InvoiceItemAllocations": [
    {
      "Amount": 1.0,
      "InvoiceItemId": 2
    },
    {
      "Amount": 1.0,
      "InvoiceItemId": 2
    }
  ]
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'MakeInvoiceAllocationDataContract'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.