Применение документа
POST
/v1/wp/applyDocument
Создание или калькуляция чека
Чтобы закрыть чек необходимо передать
close=1
через
GET
параметр
Содержимое запроса:
MakeDocumentDto
- document
- number
- uuid
- type
- sell
- refund
- date
- member_auth
- card
- phone
- email
- raw_id
- member_id
- company
- common_member_id
- terminal_id
- positions
- items
- code
- vendorCode
- quantity
- amount
- changes
- items
- bonus_change
- member_id
- change
- start
- end
- comments
- description
- discount_change
- change
- display_message
- text
- print_message
- text
- tag_update
- add
- items
- delete
- items
- member_id
- max_bonus_pay
- max_pay
- promoId
- meta
- 0
- 1
- meta
- 0
- 1
- payments
- items
- amount
- type
- cash
- credit_card
- other
- meta
- 0
- 1
- changes
- items
- bonus_change
- member_id
- change
- start
- end
- comments
- description
- discount_change
- change
- display_message
- text
- print_message
- text
- tag_update
- add
- items
- delete
- items
- member_id
- max_bonus_pay
- max_pay
- promoId
- meta
- 0
- 1
- display_messages
- items
- text
- promo_id
- print_messages
- items
- text
- promo_id
- refund_uid
- device
- web
- tradeline_client
- frontol_api
- evotor
- meta
- 0
- 1
- debug
Ответ сервера:
OrderSnapshot
- document
- number
- uuid
- type
- sell
- refund
- date
- member_auth
- card
- phone
- email
- raw_id
- member_id
- company
- common_member_id
- terminal_id
- positions
- items
- code
- vendorCode
- quantity
- amount
- changes
- items
- bonus_change
- member_id
- change
- start
- end
- comments
- description
- discount_change
- change
- display_message
- text
- print_message
- text
- tag_update
- add
- items
- delete
- items
- member_id
- max_bonus_pay
- max_pay
- promoId
- meta
- 0
- 1
- meta
- 0
- 1
- payments
- items
- amount
- type
- cash
- credit_card
- other
- meta
- 0
- 1
- changes
- items
- bonus_change
- member_id
- change
- start
- end
- comments
- description
- discount_change
- change
- display_message
- text
- print_message
- text
- tag_update
- add
- items
- delete
- items
- member_id
- max_bonus_pay
- max_pay
- promoId
- meta
- 0
- 1
- display_messages
- items
- text
- promo_id
- print_messages
- items
- text
- promo_id
- refund_uid
- device
- web
- tradeline_client
- frontol_api
- evotor
- meta
- 0
- 1
- promotions
- items
- type
- BONUS_BY_PAYED_AND_DOC_PAY_WITH_LEVELS
- DISCOUNT_BY_PAYED_AND_DOC_PAY_WITH_LEVELS
- DISCOUNT_BY_TAGS
- SET_MAX_DISCOUNT
- DISCOUNT_EXTERNAL
- MAX_PAY_EXTERNAL
- BONUS_APPLY_EXTERNAL
- TAG_SETTER
- ADD_BONUS
- id
- params
- title
- owner_user_id
- status
- DISABLED
- ACTIVE
- DRAFT
- DEBUG
- create_date
- start_date
- end_date
- discards
- items
- promotion
- type
- BONUS_BY_PAYED_AND_DOC_PAY_WITH_LEVELS
- DISCOUNT_BY_PAYED_AND_DOC_PAY_WITH_LEVELS
- DISCOUNT_BY_TAGS
- SET_MAX_DISCOUNT
- DISCOUNT_EXTERNAL
- MAX_PAY_EXTERNAL
- BONUS_APPLY_EXTERNAL
- TAG_SETTER
- ADD_BONUS
- id
- params
- title
- owner_user_id
- status
- DISABLED
- ACTIVE
- DRAFT
- DEBUG
- create_date
- start_date
- end_date
- text