POST api/receipt/addfunds

Request Information

URI Parameters

None.

Body Parameters

SetReceiptFundsDataContract
NameDescriptionTypeAdditional information
DateTime

date

None.

GroupId

integer

None.

AccountId

integer

None.

IsSuspense

boolean

None.

Amount

decimal number

None.

IsUncleared

boolean

None.

SystemBankAccountId

integer

None.

PaymentType

PaymentType

None.

Description

string

None.

Allocations

Collection of MakeInvoiceAllocationDataContract

None.

Id

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "DateTime": "2018-11-16T21:58:20.4839199Z",
  "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:58:20.4839199Z",
      "AccountId": 3,
      "InvoiceItemAllocations": [
        {
          "Amount": 1.0,
          "InvoiceItemId": 2
        },
        {
          "Amount": 1.0,
          "InvoiceItemId": 2
        }
      ]
    },
    {
      "InvoiceId": 1,
      "Amount": 2.0,
      "DateTime": "2018-11-16T21:58:20.4839199Z",
      "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 'SetReceiptFundsDataContract'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.