{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://api13.arm20.com/v1/schemas/goods.fifo_sk_rows.json","title":"goods.fifo_sk_rows","description":"Повертає партії та залишки товару за FIFO для вибраної філії.","type":"object","required":["request","response"],"additionalProperties":false,"properties":{"request":{"oneOf":[{"type":"object","required":["method","params"],"additionalProperties":false,"properties":{"method":{"const":"goods.fifo_sk_rows"},"params":{"type":"object","additionalProperties":false,"properties":{"code":{"type":"string","maxLength":128,"minLength":1,"title":"Код товару","example":"1001","description":"Публічний код товару, картки або іншого запису, як він відображається у програмі.","x-api13-group":"Основні"},"sk":{"type":"integer","minimum":1,"maximum":2,"title":"Номер складу або філії","example":1,"description":"Номер складу/філії відповідно до налаштувань бази; 0 зазвичай означає основний склад.","x-api13-group":"Додаткові"}},"required":["code","sk"]},"id":{"type":["string","integer","null"]}}}]},"response":{"oneOf":[{"type":"object","required":["ok","data","request_id"],"additionalProperties":false,"properties":{"ok":{"const":true},"data":{"type":"object","required":["method","result","id"],"additionalProperties":false,"properties":{"method":{"const":"goods.fifo_sk_rows"},"result":{"type":"object","required":["upstream","status","rows"],"additionalProperties":false,"properties":{"upstream":{"type":"object","required":["name","version","resource"],"additionalProperties":false,"properties":{"name":{"const":"UPMAPI"},"version":{"type":"string"},"resource":{"type":"string"}}},"status":{"type":"object","required":["code","operation","value"],"additionalProperties":false,"properties":{"code":{"const":"OK"},"operation":{"type":"string"},"value":{"type":"string"}}},"rows":{"type":"array","items":{"type":"object","required":["document_number","cost","quantity","date","fiscal"],"additionalProperties":false,"properties":{"document_number":{"type":"string","title":"Номер документа","description":"Номер документа у базі поточного клієнта.","example":"ПН-1001"},"cost":{"type":"string","title":"Собівартість","description":"Точне повернене значення «Собівартість» як десятковий рядок із крапкою.","format":"decimal-string","example":"100.00","x-api13-unit":"currency-of-operation"},"quantity":{"type":"string","title":"Кількість","description":"Точне повернене значення «Кількість» як десятковий рядок із крапкою.","format":"decimal-string","example":"1.000","x-api13-unit":"product-unit"},"date":{"type":"string","title":"Дата","description":"Повернена дата «Дата» у форматі YYYY-MM-DD.","format":"date","example":"2026-07-23"},"fiscal":{"type":"string","title":"Фіскальна ознака","description":"Повернене значення «Фіскальна ознака» відповідного запису, документа або підсумку ARM20.","example":"Приклад"}}}}}},"id":{"type":["string","integer","null"]}}},"request_id":{"type":"string"}}}]}},"x-api13-operation":{"description":"Повертає партії та залишки товару за FIFO для вибраної філії.","scope":"inventory.cost.read","params":{"code":{"type":"string","required":true,"max":128,"title":"Код товару","description":"Публічний код товару, картки або іншого запису, як він відображається у програмі.","group":"Основні","example":"1001"},"sk":{"type":"int","required":true,"min":1,"max":2,"title":"Номер складу або філії","description":"Номер складу/філії відповідно до налаштувань бази; 0 зазвичай означає основний склад.","group":"Додаткові","example":1}},"result":{"mode":"rows","columns":["document_number","cost","quantity","date","fiscal"],"field_specs":{"document_number":{"title":"Номер документа","description":"Номер документа у базі поточного клієнта.","type":"string","example":"ПН-1001"},"cost":{"title":"Собівартість","description":"Точне повернене значення «Собівартість» як десятковий рядок із крапкою.","type":"string","format":"decimal-string","unit":"currency-of-operation","example":"100.00"},"quantity":{"title":"Кількість","description":"Точне повернене значення «Кількість» як десятковий рядок із крапкою.","type":"string","format":"decimal-string","unit":"product-unit","example":"1.000"},"date":{"title":"Дата","description":"Повернена дата «Дата» у форматі YYYY-MM-DD.","type":"string","format":"date","example":"2026-07-23"},"fiscal":{"title":"Фіскальна ознака","description":"Повернене значення «Фіскальна ознака» відповідного запису, документа або підсумку ARM20.","type":"string","example":"Приклад"}}},"mutating":false,"idempotency_required":false,"since":"0.4.0","stability":"stable","deprecated":false,"aliases":["goods","fifo sk rows","Повертає партії та залишки товару за FIFO для вибраної філії."],"errors":[{"code":"INVALID_PARAMETER","http":422,"description":"Один із параметрів має неправильний тип, формат або значення.","retry":"Виправити запит; автоматично не повторювати."},{"code":"UPSTREAM_FAILURE","http":502,"description":"Сервер бізнес-операції недоступний або відхилив безпечний контракт.","retry":"Дозволений повтор із backoff."}],"related_methods":["goods.fifo_rows"]}}