{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://api13.arm20.com/v1/schemas/print_templates.read_receipt.json","title":"print_templates.read_receipt","description":"Повертає шаблон друку касового чека.","type":"object","required":["request","response"],"additionalProperties":false,"properties":{"request":{"oneOf":[{"type":"object","required":["method","params"],"additionalProperties":false,"properties":{"method":{"const":"print_templates.read_receipt"},"params":{"type":"object","additionalProperties":false,"properties":{"kind":{"type":"string","enum":["dprinter","prro","android","android_prro"],"minLength":1,"title":"Тип запису","example":"dprinter","description":"Варіант «Тип запису». Використовуйте лише одне зі значень, розшифрованих нижче.","x-api13-group":"Додаткові","x-enumDescriptions":["принтер документів","ПРРО","Android-каса","Android-каса з ПРРО"],"x-api13-enum-labels":{"dprinter":"принтер документів","prro":"ПРРО","android":"Android-каса","android_prro":"Android-каса з ПРРО"}}},"required":["kind"]},"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":"print_templates.read_receipt"},"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":["part","text"],"additionalProperties":false,"properties":{"part":{"type":"string","title":"Part","description":"Повернене значення «Part» відповідного запису, документа або підсумку ARM20.","example":"Приклад"},"text":{"type":"string","title":"Text","description":"Повернене значення «Text» відповідного запису, документа або підсумку ARM20.","example":"Приклад"}}}}}},"id":{"type":["string","integer","null"]}}},"request_id":{"type":"string"}}}]}},"x-api13-operation":{"description":"Повертає шаблон друку касового чека.","scope":"settings.read","params":{"kind":{"type":"enum","values":["dprinter","prro","android","android_prro"],"required":true,"title":"Тип запису","description":"Варіант «Тип запису». Використовуйте лише одне зі значень, розшифрованих нижче.","group":"Додаткові","example":"dprinter","enum_labels":{"dprinter":"принтер документів","prro":"ПРРО","android":"Android-каса","android_prro":"Android-каса з ПРРО"}}},"result":{"mode":"rows","columns":["part","text"],"field_specs":{"part":{"title":"Part","description":"Повернене значення «Part» відповідного запису, документа або підсумку ARM20.","type":"string","example":"Приклад"},"text":{"title":"Text","description":"Повернене значення «Text» відповідного запису, документа або підсумку ARM20.","type":"string","example":"Приклад"}}},"mutating":false,"idempotency_required":false,"since":"0.4.0","stability":"stable","deprecated":false,"aliases":["print_templates","read receipt","Повертає шаблон друку касового чека."],"errors":[{"code":"INVALID_PARAMETER","http":422,"description":"Один із параметрів має неправильний тип, формат або значення.","retry":"Виправити запит; автоматично не повторювати."},{"code":"UPSTREAM_FAILURE","http":502,"description":"Сервер бізнес-операції недоступний або відхилив безпечний контракт.","retry":"Дозволений повтор із backoff."}],"related_methods":["print_templates.read_single"]}}