POST api/deposit/allocate

Request Information

URI Parameters

None.

Body Parameters

MoveWithinAccountDataContract
NameDescriptionTypeAdditional information
AccountId

integer

None.

Amount

decimal number

None.

DateTime

date

None.

UseExistingFunds

boolean

None.

DepositRelatedId

string

None.

TenantRoleId

integer

None.

Receipt

SetReceiptFundsDataContract

None.

Request Formats

application/json, text/json

Sample:
{
  "AccountId": 1,
  "Amount": 2.0,
  "DateTime": "2018-11-16T21:00:59.930343Z",
  "UseExistingFunds": true,
  "DepositRelatedId": "sample string 4",
  "TenantRoleId": 5,
  "Receipt": {
    "DateTime": "2018-11-16T21:00:59.930343Z",
    "GroupId": 1,
    "AccountId": 1,
    "IsSuspense": true,
    "Amount": 2.0,
    "IsUncleared": true,
    "SystemBankAccountId": 1,
    "PaymentType": 0,
    "Description": "sample string 3",
    "Allocations": [
      {
        "InvoiceId": 1,
        "Amount": 2.0,
        "DateTime": "2018-11-16T21:00:59.930343Z",
        "AccountId": 3,
        "InvoiceItemAllocations": [
          {
            "Amount": 1.0,
            "InvoiceItemId": 2
          },
          {
            "Amount": 1.0,
            "InvoiceItemId": 2
          }
        ]
      },
      {
        "InvoiceId": 1,
        "Amount": 2.0,
        "DateTime": "2018-11-16T21:00:59.930343Z",
        "AccountId": 3,
        "InvoiceItemAllocations": [
          {
            "Amount": 1.0,
            "InvoiceItemId": 2
          },
          {
            "Amount": 1.0,
            "InvoiceItemId": 2
          }
        ]
      }
    ],
    "Id": 4
  }
}

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 'MoveWithinAccountDataContract'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.