Skip to main content

Оновити позиції протоколу PUT /api/des-pscan/protocols/{protocolId}/items

REQUEST

URL

https://des-pscan.stage.akcyz.edin.ua/

Метод запиту

PUT

URL запиту

/api/des-pscan/protocols/{protocolId}/items

PATH параметри

protocolId (string) обов'язково - ідентифікатор протокола

URL параметри

tenant (string) обов'язково - Tenant ідентифікатор

Headers

 

Authorization

Bearer

Content-Type

application/json

REQUEST


JSON Body

масив об'єктів CreateScanningProtocolItem

 

JSON приклад запиту:

 

[
  {
    "exciseCode": "string",
    "barcode": "string",
    "ssccCode": "string",
    "readableCode": "string",
    "legacyExciseCode": "string",
    "scannedAt": "2026-11-16T17:44:48.249Z",
    "quantity": 0
  }
]
RESPONSE
  • Статус 200.

Об'єкт FillScanningProtocolResponse.

JSON приклад відповіді

 

{
  "businessUnitId": "string",
  "items": [
    {
      "itemId": "string",
      "scannedBy": "string",
      "scannedAt": "2026-11-16T17:57:30.132Z",
      "exciseCode": "string",
      "barcode": "string",
      "ssccCode": "string",
      "readableCode": "string",
      "legacyExciseCode": "string",
      "quantity": 0,
      "itemSource": "string",
      "itemType": "string",
      "articleId": "string",
      "validationStatus": "string",
      "validationMessage": "string",
      "documentId": "string",
      "validations": {
        "additionalProp1": {
          "options": {
            "propertyNameCaseInsensitive": true
          },
          "parent": "string",
          "root": "string"
        },
        "additionalProp2": {
          "options": {
            "propertyNameCaseInsensitive": true
          },
          "parent": "string",
          "root": "string"
        },
        "additionalProp3": {
          "options": {
            "propertyNameCaseInsensitive": true
          },
          "parent": "string",
          "root": "string"
        }
      }
    }
  ],
  "documentIds": [
    "string"
  ]
}

 

  •  Статус 404 - Not Found
  • Статус 422 - Unprocessable Content

Некоректне тіло запиту.