v2

latestSwagger 2.02026-08-01139174369.1 KB
Quote

Processes a batch of Quote.

put/v1/quotes/batch

Request body

opCode1 | 2 | 3

1 - Create 2 - Update 3 - Delete

Example request

[
  {
    "opCode": 1,
    "item": {
      "id": 1,
      "companyId": 40449,
      "customerOwnerId": 70583,
      "vatTypeId": 1,
      "saleRepId": 75783,
      "saleInvoiceId": 30044,
      "entryDate": "2017-01-01T00:00:00",
      "procDate": "2017-01-05T00:00:00",
      "reference": "000032",
      "poNumber": "Sample",
      "ddNumber": "Sample",
      "customerOwnerName": "Customer 1",
      "comments": "Sample",
      "layoutType": 1,
      "total": 110,
      "totalVat": 10,
      "totalNet": 100,
      "productTrans": [
        {
          "id": 40277,
          "companyId": 40449,
          "percentage": 0,
          "vatRateId": 30657,
          "productId": 20107,
          "productCode": "PRO1",
          "quantity": 1,
          "unitPrice": 100,
          "amount": 10,
          "vatAmount": 10,
          "tranNotes": [
            "Product"
          ],
          "acEntries": [
            {
              "id": 1,
              "companyId": 40449,
              "accountCode": "sample",
              "analysisCategoryId": 40888,
              "quoteProductTranId": 40277,
              "value": 100
            }
          ],
          "vatAnalysisTypeId": 0
        }
      ],
      "timeStamp": "UPpH5vbv3gg="
    }
  }
]

Response

OK

object required