{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://api13.arm20.com/v1/schemas/pos.checkout_bonus_totals.json","title":"pos.checkout_bonus_totals","description":"Розраховує підсумок бонусів для поточного продажу.","type":"object","required":["request","response"],"additionalProperties":false,"properties":{"request":{"oneOf":[{"type":"object","required":["method"],"additionalProperties":false,"properties":{"method":{"const":"pos.checkout_bonus_totals"},"params":{"type":"object","additionalProperties":false,"properties":{"card":{"type":"string","maxLength":512,"default":"","title":"Номер дисконтної картки","example":"990000001","description":"Поле «Номер дисконтної картки» відповідного документа або довідника ARM20. Передавайте значення так, як воно зберігається у Windows.","x-api13-group":"Додаткові"},"ndoc":{"type":"string","maxLength":4096,"default":"","title":"Номер документа","example":"","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.checkout_bonus_totals"},"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":["accrued","spent"],"additionalProperties":false,"properties":{"accrued":{"type":"string","title":"Accrued","description":"Точне повернене значення «Accrued» як десятковий рядок із крапкою.","format":"decimal-string","example":"100.00","x-api13-unit":"currency-of-operation"},"spent":{"type":"string","title":"Spent","description":"Точне повернене значення «Spent» як десятковий рядок із крапкою.","format":"decimal-string","example":"100.00","x-api13-unit":"currency-of-operation"}}}}}},"id":{"type":["string","integer","null"]}}},"request_id":{"type":"string"}}}]}},"x-api13-operation":{"description":"Розраховує підсумок бонусів для поточного продажу.","scope":"pos.read","params":{"card":{"type":"string","max":512,"default":"","title":"Номер дисконтної картки","description":"Поле «Номер дисконтної картки» відповідного документа або довідника ARM20. Передавайте значення так, як воно зберігається у Windows.","group":"Додаткові","example":"990000001"},"ndoc":{"type":"string","max":4096,"default":"","title":"Номер документа","description":"Номер службового, касового або фіскального документа у відповідному журналі.","group":"Додаткові","example":""}},"result":{"mode":"rows","columns":["accrued","spent"],"field_specs":{"accrued":{"title":"Accrued","description":"Точне повернене значення «Accrued» як десятковий рядок із крапкою.","type":"string","format":"decimal-string","unit":"currency-of-operation","example":"100.00"},"spent":{"title":"Spent","description":"Точне повернене значення «Spent» як десятковий рядок із крапкою.","type":"string","format":"decimal-string","unit":"currency-of-operation","example":"100.00"}}},"mutating":false,"idempotency_required":false,"since":"0.4.0","stability":"stable","deprecated":false,"aliases":["pos","checkout bonus totals","Розраховує підсумок бонусів для поточного продажу.","Windows Каса"],"errors":[{"code":"INVALID_PARAMETER","http":422,"description":"Один із параметрів має неправильний тип, формат або значення.","retry":"Виправити запит; автоматично не повторювати."},{"code":"UPSTREAM_FAILURE","http":502,"description":"Сервер бізнес-операції недоступний або відхилив безпечний контракт.","retry":"Дозволений повтор із backoff."}],"related_methods":["pos.checkout_apply_sale_line","pos.checkout_bonus_multiplier","pos.checkout_cancel_position","pos.checkout_check_client_card"]}}