v2

latestSwagger 2.02026-08-01139174369.1 KB
CashPayments

Creates a new Cash Payment.

post/v1/cashPayments

Request body

discountnumber double
bankAccountCodestring
bankAccountIdinteger
supplierIdinteger
lodgementnumber double
ledgernumber double
detailCollectionstring[]
plaidTransactionIdstring
idinteger
bookTranTypeIdinteger
acCodestring
notestring
entryDatestring date-time
procDatestring date-time
totalnumber double
timestampstring byte

Example request

{
  "discount": 0,
  "bankAccountCode": "BAK2",
  "bankAccountId": 11111,
  "supplierId": 70599,
  "lodgement": 0,
  "ledger": 100,
  "detailCollection": [
    "test"
  ],
  "acEntries": [
    {
      "id": 62741,
      "accountCode": "CP01",
      "analysisCategoryId": 10433,
      "description": "Cash Pay 01",
      "value": 200
    }
  ],
  "id": 12345,
  "bookTranTypeId": 2,
  "note": "Supplier 1",
  "entryDate": "2017-07-01T00:00:00",
  "procDate": "2017-07-26T00:00:00",
  "total": 100,
  "timestamp": "WTVD5vbv3gg=",
  "customFields": []
}

Response

OK

object required