v2

latestSwagger 2.02026-08-01139174369.1 KB
Suppliers

Processes a batch of Suppliers.

put/v1/suppliers/batch

Request body

opCode1 | 2 | 3

1 - Create 2 - Update 3 - Delete

Example request

[
  {
    "opCode": 1,
    "item": {
      "postponedAccounting": false,
      "purchaseImporterSetting": {
        "nominal": 1,
        "analysisCategory": 1,
        "vatCategory": "PFRS"
      },
      "id": 10589,
      "ownerTypeId": 3,
      "code": "S001",
      "accountName": "Supplier Bank Acc",
      "accountNumber": "12345678",
      "authCode": "VATEXCODE222",
      "contact": "John Smith",
      "eFTReference": "Reference",
      "email": "supplier@email.com",
      "fax": "1234567890",
      "mobile": "1234567890",
      "name": "Supplier Name",
      "ourCode": "OURCODE111",
      "phone": "1234596970",
      "vatReg": "VATCODE0001",
      "timestamp": "Ab9M5vbv3gg=",
      "address": [
        "Address Line 1",
        "Address Line 2"
      ],
      "additionalEmails": [
        "email2@example.com",
        "email3@example.com"
      ],
      "bank": {
        "id": 1,
        "name": "bank Name",
        "branch": "Bank",
        "sortCode": "B01"
      },
      "vatAnalysisTypeId": 1,
      "vatType": 2
    }
  }
]

Response

OK

object required