iRetail PRO store node 1.0.0-m1: pharmacy

2 операции

← Вся документация · Источник: контракты, openapi/store-v1.yaml на коммите 8000474.

Справочники на английском — на языке контрактов, из которых они созданы.

← iRetail PRO store node 1.0.0-m1

Операции

GET /v1/pse/log The pseudoephedrine logbook, newest first (spec/PHARMACY.md).

operationId listPseLog · Право pse.read

Параметры

Имя Где Тип Описание
IRetail-App header string Which app sends the request, at which version: <app>/<version>, optionally a space and (<platform>), as cashier/1.2.0 (windows-x64) or manager/1.2.0 (web). The register (cashier), the back office and the console (manager) and the device gateway (gateway) send it on every request; a request without it is not one of the apps and is served as the current API, and a device token of an app's kind without it is an app of an unknown version; a header that does not parse counts as absent. The node may refuse an app 426 app_update_required by it, except on the operations marked x-app-update-exempt. Not a security boundary (spec/API.md, Transport; spec/RELEASES.md, Who is asking).
from обязательный query string (date) First business date, inclusive.
to обязательный query string (date) Last business date, inclusive.
limit query integer Page size, 1–200.
after query string Cursor from the previous page.

Ответы

GET /v1/pse/log/export The pseudoephedrine logbook of a period as CSV.

operationId exportPseLog · Право pse.read

Параметры

Имя Где Тип Описание
IRetail-App header string Which app sends the request, at which version: <app>/<version>, optionally a space and (<platform>), as cashier/1.2.0 (windows-x64) or manager/1.2.0 (web). The register (cashier), the back office and the console (manager) and the device gateway (gateway) send it on every request; a request without it is not one of the apps and is served as the current API, and a device token of an app's kind without it is an app of an unknown version; a header that does not parse counts as absent. The node may refuse an app 426 app_update_required by it, except on the operations marked x-app-update-exempt. Not a security boundary (spec/API.md, Transport; spec/RELEASES.md, Who is asking).
from обязательный query string (date) First business date, inclusive.
to обязательный query string (date) Last business date, inclusive.

Ответы

  • 200 The file. string
  • 400 Error (spec/API.md). Error
  • 401 Error (spec/API.md). Error
  • 403 Error (spec/API.md). Error

Схемы

Error object

Every error response.

error обязательный string Stable code, see spec/API.md.
message обязательный string English text for logs.
details object

PsePurchaser object

The purchaser of a PSE product as the scanned ID gives it (spec/PHARMACY.md, "The purchaser").

name обязательный string
address обязательный string
date_of_birth обязательный string (date)
id_type обязательный "driver_license" | "state_id" | "passport" | "military_id" | "other"
id_state обязательный string The issuing state or country, as printed.
id_number обязательный string
signed обязательный boolean The purchaser signed the logbook entry.

PseLogEntry object

id обязательный string (uuid)
receipt_id обязательный string (uuid)
receipt_number обязательный integer (int64)
business_date обязательный string (date)
created_at обязательный string (date-time)
employee_id обязательный string (uuid)
lines обязательный array of object
base_mg обязательный integer The entry's milligrams of base, negative for a refund.
purchaser обязательный PsePurchaser

PseLogPage object

items обязательный array of PseLogEntry
next обязательный string | null