v2

latestSwagger 2.02026-08-01139174369.1 KB
CashReceipts

Processes a batch of Cash Receipts.

put/v1/cashReceipts/batch

Request body

opCode1 | 2 | 3

1 - Create 2 - Update 3 - Delete

Example request

[
  {
    "opCode": 1,
    "item": {
      "discount": 0,
      "unallocated": 0,
      "detailCollection": [
        "det_1",
        "det_2",
        "det_3"
      ],
      "acEntries": [
        {
          "id": 1,
          "accountCode": "000",
          "analysisCategoryId": 1,
          "description": "AnCat1",
          "value": 30
        }
      ],
      "vatEntries": [
        {
          "id": 1,
          "vatRateId": 1,
          "percentage": 15,
          "amount": 50
        }
      ],
      "ledger": 0,
      "id": 1,
      "bookTranTypeId": 1,
      "note": "note1",
      "entryDate": "2011-01-01T00:00:00",
      "procDate": "2011-01-05T00:00:00",
      "total": 50,
      "timestamp": "WTVD5vbv3gg=",
      "customFields": [
        {
          "id": 1,
          "userDefinedFieldId": 1,
          "description": "acudf_1",
          "value": "acudfv_1"
        }
      ]
    }
  }
]

Response

OK

object required