v2

latestSwagger 2.02026-08-01139174369.1 KB
CashPayments

Processes a batch of Cash Payments.

put/v1/cashPayments/batch

Request body

opCode1 | 2 | 3

1 - Create 2 - Update 3 - Delete

Example request

[
  {
    "opCode": 1,
    "item": {
      "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