v2

latestSwagger 2.02026-08-01139174369.1 KB
Purchases

Processes a batch of Purchases.

put/v1/purchases/batch

Request body

opCode1 | 2 | 3

1 - Create 2 - Update 3 - Delete

Example request

[
  {
    "opCode": 1,
    "item": {
      "reference": "000001",
      "supplierId": 10173,
      "unallocated": 100,
      "unpaid": 100,
      "detailCollection": [],
      "acEntries": [
        {
          "id": 12518,
          "accountCode": "PU03",
          "analysisCategoryId": 10441,
          "description": "PUR 3",
          "value": 90.91
        }
      ],
      "vatEntries": [
        {
          "id": 12267,
          "vatRateId": 10317,
          "percentage": 10,
          "amount": 90.91
        }
      ],
      "netGoods": 0,
      "netServices": 0,
      "vatTypeId": 1,
      "totalNet": 90.91,
      "totalVAT": 9.09,
      "id": 13380,
      "bookTranTypeId": 4,
      "acCode": "SUP3",
      "note": "Supplier 3",
      "entryDate": "2016-06-01T00:00:00",
      "procDate": "2016-06-24T00:00:00",
      "total": 100,
      "timestamp": "UPpH5vbv3gg=",
      "customFields": []
    }
  }
]

Response

OK

object required