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.MakeInvoiceAllocationDataContractName | Description | Type | Additional 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-04T18:16:58.2531007Z", "AccountId": 3, "InvoiceItemAllocations": [ { "Amount": 1.0, "InvoiceItemId": 2 }, { "Amount": 1.0, "InvoiceItemId": 2 } ] }
Response Information
Resource Description
System.Web.Http.IHttpActionResultNone.
Response Formats
application/json, text/json
Sample:
Sample not available.