{
  "info": {
    "_postman_id": "4f52f998-1413-4b81-a13a-api13arm20",
    "name": "ARM20 API13",
    "description": "Публічний policy-gateway ARM20. Значення apiKey задайте локально у collection variables; не експортуйте реальний ключ.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api13.arm20.com",
      "type": "string"
    },
    {
      "key": "apiKey",
      "value": "",
      "type": "secret"
    },
    {
      "key": "idempotencyKey",
      "value": "replace-with-a-new-uuid-for-each-write",
      "type": "string"
    }
  ],
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{apiKey}}",
        "type": "string"
      }
    ]
  },
  "item": [
    {
      "name": "Доступні методи",
      "request": {
        "method": "POST",
        "header": [],
        "url": "{{baseUrl}}/v1/operations"
      }
    },
    {
      "name": "Перевірити запит без виконання",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"method\": \"products.find_code\",\n  \"params\": {\n    \"code\": \"1001\"\n  },\n  \"id\": \"postman-validate-1\"\n}"
        },
        "url": "{{baseUrl}}/v1/rpc/validate"
      }
    },
    {
      "name": "Знайти товар",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"method\": \"products.find_code\",\n  \"params\": {\n    \"code\": \"1001\"\n  },\n  \"id\": \"postman-read-1\"\n}"
        },
        "url": "{{baseUrl}}/v1/rpc"
      }
    },
    {
      "name": "Шаблон операції запису",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Idempotency-Key",
            "value": "{{idempotencyKey}}"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"method\": \"nakl.add_lines\",\n  \"params\": {\n    \"nn\": \"ПН-1001\",\n    \"codes\": [\"1001\"]\n  },\n  \"id\": \"postman-write-1\"\n}"
        },
        "url": "{{baseUrl}}/v1/rpc"
      }
    }
  ]
}
