{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://api13.arm20.com/v1/schemas/pos.discount_card_details.json","title":"pos.discount_card_details","description":"Повертає повні дані вибраної дисконтної картки.","type":"object","required":["request","response"],"additionalProperties":false,"properties":{"request":{"oneOf":[{"type":"object","required":["method"],"additionalProperties":false,"properties":{"method":{"const":"pos.discount_card_details"},"params":{"type":"object","additionalProperties":false,"properties":{"code":{"type":"string","maxLength":512,"default":"","title":"Номер дисконтної картки","example":"1001","description":"Публічний код товару, картки або іншого запису, як він відображається у програмі.","x-api13-group":"Основні"}}},"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":"pos.discount_card_details"},"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":["field","value"],"additionalProperties":false,"properties":{"field":{"type":"string","title":"Поле","description":"Повернене значення «Поле» відповідного запису, документа або підсумку ARM20.","example":"Приклад"},"value":{"type":"string","title":"Значення","description":"Повернене значення «Значення» відповідного запису, документа або підсумку ARM20.","example":"Приклад"}}}}}},"id":{"type":["string","integer","null"]}}},"request_id":{"type":"string"}}}]}},"x-api13-operation":{"description":"Повертає повні дані вибраної дисконтної картки.","scope":"pos.read","params":{"code":{"type":"string","max":512,"default":"","title":"Номер дисконтної картки","description":"Публічний код товару, картки або іншого запису, як він відображається у програмі.","group":"Основні","example":"1001"}},"result":{"mode":"rows","columns":["field","value"],"field_specs":{"field":{"title":"Поле","description":"Повернене значення «Поле» відповідного запису, документа або підсумку ARM20.","type":"string","example":"Приклад"},"value":{"title":"Значення","description":"Повернене значення «Значення» відповідного запису, документа або підсумку ARM20.","type":"string","example":"Приклад"}}},"mutating":false,"idempotency_required":false,"since":"0.4.0","stability":"stable","deprecated":false,"aliases":["pos","discount card details","Повертає повні дані вибраної дисконтної картки.","дисконтна картка","знижка","Windows Каса"],"errors":[{"code":"INVALID_PARAMETER","http":422,"description":"Один із параметрів має неправильний тип, формат або значення.","retry":"Виправити запит; автоматично не повторювати."},{"code":"UPSTREAM_FAILURE","http":502,"description":"Сервер бізнес-операції недоступний або відхилив безпечний контракт.","retry":"Дозволений повтор із backoff."}],"related_methods":["pos.discount_card_add","pos.discount_cards","pos.discount_extra_names"]}}