Оглавление
Оглавление:
Оглавление:
docs (GET)
Тип метода
GET
Назначение
- Получение массива объектов документов с сервера
Где используется
- АРМ.Диспетчера / Документы - кнопка "Обновить"
Запрос
http://dmd.data-mobile.ru/api/erp/docs
Content-Type: application/json
Authorization: Bearer <TOKEN>
Ответ
Тело
Наименование | Тип | Описание |
---|---|---|
out_id | string | Идентификатор документа в системе учета |
type | int | Тип документа: 0 - Заказ, 1 - Возврат |
number | string | Номер документа в системе учета |
date | timestamp | Дата создания в формате Unix timestamp |
barcode | string | Штрихкод документа |
comment | string | Комментарий документа |
priority | int | Приоритет документа |
client_name | string | Наименование клиента |
recipient | object | Объект информации о получателе |
manager | object | Объект информации о менеджере |
address | string | Адрес доставки |
address_location | string | Координаты доставки в формате "широта,долгота" |
date_from | timestamp | Время начала действия документа |
date_to | timestamp | Время окончания действия документа |
user_id | string | Идентификатор пользователя в системе учета |
fiscal_tags | string | Фискальные теги в формате json |
inn | string | ИНН |
payment_preferred_type_id | int | Предпочтительный тип оплаты для Заказов: 0 - наличный, 1 - безналичный, 2 - смешанный |
client_notification | object | Объект настроек уведомления для клиента |
receipts | object array | Массив объектов с данными по пробитым чекам |
started_at | timestamp | Время начала обработки документа в Unix timestamp |
updated_at | timestamp | Время последнего обновления документа в Unix timestamp |
created_at | timestamp | Время создания документа в Unix timestamp |
canceled_at | timestamp | Время отмены документа в Unix timestamp |
finished_at | timestamp | Время завершения документа в Unix timestamp |
payments | object array | Массив объектов с данными по оплатам |
details | object array | Массив объектов с данными по строкам документа |
cancel_reason | object | Объект причины отмены |
Пример тела ответа #1
Получение массива объектов документов с сервера
[
{
"out_id": "983f8f99-982b-11ef-a33f-d04c4ac51d43",
"type_id": 0,
"number": "ТД00-000014",
"date": 1730322000,
"barcode": "202372682614970883697143642379547647299",
"comment": "",
"priority": 5,
"client_name": "Розничный покупатель",
"recipient": {
"name": ""
},
"manager": {
"name": "Орлов Александр Владимирович"
},
"address": "Город Москва, Нахимовский проспект, д. 2, стр. а, этаж 8",
"address_location": "",
"date_from": 1730322000,
"date_to": 1730322000,
"user_id": "6f87e844-722c-11df-b336-0011955cba6b",
"fiscal_tags": "{}",
"inn": "9999115007",
"payment_preferred_type_id": 2,
"client_notification": {
"type_id": 0,
"email": "example@scanport.ru",
"phone": "+79001005200"
},
"receipts": [],
"started_at": 1734087000,
"updated_at": 1734087006,
"created_at": 1734086978,
"finished_at": 1734087006,
"payments": [
{
"operation_type_id": 0,
"type_id": 0,
"variant_id": 0,
"value": 859.0,
"status_id": 2
}
],
"details": [
{
"out_id": "8U-1fc7d4ef-32bf-11ef-ae47-0c9d9260744600000000-0000-0000-0000-000000000000",
"source_qty": 5.0,
"actual_qty": 5.0,
"price": 120.0,
"nds_type_id": 6,
"fiscal_tags": "{}",
"article": {
"out_id": "8U-1fc7d4ef-32bf-11ef-ae47-0c9d9260744600000000-0000-0000-0000-000000000000",
"name": "Грабли ",
"short_name": "Грабли ",
"attr_1": "",
"attr_2": "00-00000315",
"attr_3": "",
"attr_4": "",
"attr_5": "",
"attr_6": "",
"attr_7": "",
"attr_8": "",
"attr_9": "",
"attr_10": "",
"measure_type_id": 0,
"mark_type_id": 0,
"subject_type_id": 0,
"barcodes": [
{
"barcode": "2000000058405",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "2000000058405",
"unit_coef": 1.0,
"unit_name": "шт"
}
]
},
"marking_codes": []
},
{
"out_id": "8U-947c5c8e-5661-11ef-a33d-f365c883963500000000-0000-0000-0000-000000000000",
"source_qty": 2.0,
"actual_qty": 2.0,
"price": 73.5,
"nds_type_id": 6,
"fiscal_tags": "{}",
"article": {
"out_id": "8U-947c5c8e-5661-11ef-a33d-f365c883963500000000-0000-0000-0000-000000000000",
"name": "Балтика #3 ",
"short_name": "Пиво \"Балтика #3\" ",
"attr_1": "",
"attr_2": "00-00000317",
"attr_3": "",
"attr_4": "",
"attr_5": "",
"attr_6": "",
"attr_7": "",
"attr_8": "",
"attr_9": "",
"attr_10": "",
"measure_type_id": 0,
"mark_type_id": 10,
"subject_type_id": 0,
"barcodes": [
{
"barcode": "2000050001113",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4600721055592",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4602124003033",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4602220006549",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4603988001678",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4607026554508",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4610136280571",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4629308877044",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4650055721854",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4670540176099",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4813445003293",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "2000050001113",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4600721055592",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4602124003033",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4602220006549",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4603988001678",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4607026554508",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4610136280571",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4629308877044",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4650055721854",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4670540176099",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4813445003293",
"unit_coef": 1.0,
"unit_name": "шт"
}
]
},
"marking_codes": [
{
"barcode_full": "0104600721055592215ARA01/93bzU7",
"barcode_raw": "MDEwNDYwMDcyMTA1NTU5MjIxNUFSQTAxLx05M2J6VTc=",
"barcode_gtin": "4600721055592",
"barcode_kiz": "0104600721055592215ARA01/"
},
{
"barcode_full": "0104600721055592215ARA02/93bzU7",
"barcode_raw": "MDEwNDYwMDcyMTA1NTU5MjIxNUFSQTAyLx05M2J6VTc=",
"barcode_gtin": "4600721055592",
"barcode_kiz": "0104600721055592215ARA02/"
}
]
},
{
"out_id": "8U-c34ba7ca-71b0-11ef-a33f-d04c4ac51d4300000000-0000-0000-0000-000000000000",
"source_qty": 1.0,
"actual_qty": 1.0,
"price": 112.0,
"nds_type_id": 6,
"fiscal_tags": "{}",
"article": {
"out_id": "8U-c34ba7ca-71b0-11ef-a33f-d04c4ac51d4300000000-0000-0000-0000-000000000000",
"name": "Молоко сгущенное Рогачевъ ",
"short_name": "Сгущенка Рогачевъ ",
"attr_1": "",
"attr_2": "00-00000320",
"attr_3": "",
"attr_4": "",
"attr_5": "",
"attr_6": "",
"attr_7": "",
"attr_8": "",
"attr_9": "",
"attr_10": "",
"measure_type_id": 0,
"mark_type_id": 5,
"subject_type_id": 0,
"barcodes": [
{
"barcode": "4600000000005",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4602014010929",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4810065006079",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4600000000005",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4602014010929",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4810065006079",
"unit_coef": 1.0,
"unit_name": "шт"
}
]
},
"marking_codes": [
{
"barcode_full": "0104810065006079212pzbxMbm93/(it",
"barcode_raw": "MDEwNDgxMDA2NTAwNjA3OTIxMnB6YnhNYm0dOTMvKGl0",
"barcode_gtin": "4810065006079",
"barcode_kiz": "0104810065006079212pzbxMbm"
}
]
}
]
},
{
"out_id": "5518af0c-a5a2-11ef-a33f-d04c4ac51d43",
"type_id": 0,
"number": "ТД00-000031",
"date": 1731930213,
"barcode": "113112545190002231577469472371481320771",
"comment": "Смешанный с маркировкой заказ",
"priority": 5,
"client_name": "Розничный покупатель",
"recipient": {
"name": ""
},
"manager": {
"name": "Орлов Александр Владимирович"
},
"address": "Город Москва, Нахимовский проспект, д. 2, стр. а, этаж 8",
"address_location": "",
"date_from": 1731931200,
"date_to": 1731938400,
"fiscal_tags": "{}",
"inn": "9999115007",
"payment_preferred_type_id": 2,
"client_notification": {
"type_id": 0,
"email": "example@scanport.ru",
"phone": "+79001005200"
},
"receipts": [],
"created_at": 1734087424,
"payments": [],
"details": [
{
"out_id": "8U-947c5c8e-5661-11ef-a33d-f365c883963500000000-0000-0000-0000-000000000000",
"source_qty": 2.0,
"actual_qty": 2.0,
"price": 73.5,
"nds_type_id": 6,
"fiscal_tags": "{}",
"article": {
"out_id": "8U-947c5c8e-5661-11ef-a33d-f365c883963500000000-0000-0000-0000-000000000000",
"name": "Балтика #3 ",
"short_name": "Пиво \"Балтика #3\" ",
"attr_1": "",
"attr_2": "00-00000317",
"attr_3": "",
"attr_4": "",
"attr_5": "",
"attr_6": "",
"attr_7": "",
"attr_8": "",
"attr_9": "",
"attr_10": "",
"measure_type_id": 0,
"mark_type_id": 10,
"subject_type_id": 0,
"barcodes": [
{
"barcode": "2000050001113",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4600721055592",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4602124003033",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4602220006549",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4603988001678",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4607026554508",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4610136280571",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4629308877044",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4650055721854",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4670540176099",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4813445003293",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "2000050001113",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4600721055592",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4602124003033",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4602220006549",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4603988001678",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4607026554508",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4610136280571",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4629308877044",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4650055721854",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4670540176099",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4813445003293",
"unit_coef": 1.0,
"unit_name": "шт"
}
]
},
"marking_codes": []
},
{
"out_id": "8U-1fc7d4ef-32bf-11ef-ae47-0c9d9260744600000000-0000-0000-0000-000000000000",
"source_qty": 2.0,
"actual_qty": 2.0,
"price": 120.0,
"nds_type_id": 6,
"fiscal_tags": "{}",
"article": {
"out_id": "8U-1fc7d4ef-32bf-11ef-ae47-0c9d9260744600000000-0000-0000-0000-000000000000",
"name": "Грабли ",
"short_name": "Грабли ",
"attr_1": "",
"attr_2": "00-00000315",
"attr_3": "",
"attr_4": "",
"attr_5": "",
"attr_6": "",
"attr_7": "",
"attr_8": "",
"attr_9": "",
"attr_10": "",
"measure_type_id": 0,
"mark_type_id": 0,
"subject_type_id": 0,
"barcodes": [
{
"barcode": "2000000058405",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "2000000058405",
"unit_coef": 1.0,
"unit_name": "шт"
}
]
},
"marking_codes": []
},
{
"out_id": "8U-c34ba7ca-71b0-11ef-a33f-d04c4ac51d4300000000-0000-0000-0000-000000000000",
"source_qty": 1.0,
"actual_qty": 1.0,
"price": 112.0,
"nds_type_id": 6,
"fiscal_tags": "{}",
"article": {
"out_id": "8U-c34ba7ca-71b0-11ef-a33f-d04c4ac51d4300000000-0000-0000-0000-000000000000",
"name": "Молоко сгущенное Рогачевъ ",
"short_name": "Сгущенка Рогачевъ ",
"attr_1": "",
"attr_2": "00-00000320",
"attr_3": "",
"attr_4": "",
"attr_5": "",
"attr_6": "",
"attr_7": "",
"attr_8": "",
"attr_9": "",
"attr_10": "",
"measure_type_id": 0,
"mark_type_id": 5,
"subject_type_id": 0,
"barcodes": [
{
"barcode": "4600000000005",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4602014010929",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4810065006079",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4600000000005",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4602014010929",
"unit_coef": 1.0,
"unit_name": "шт"
},
{
"barcode": "4810065006079",
"unit_coef": 1.0,
"unit_name": "шт"
}
]
},
"marking_codes": []
}
]
}
]