Микросервис order
Микросервис order предоставляет функциональность для управления заказами.
Доступ к сервису предоставляется по запросу.
Логика работы
В работе микросервиса участвуют следующие сущности:
- Заказ (Order) - содержит данные о конкретном заказе (id и номер заказа, id клиента, список товаров в заказе, стоимость заказа и др.)
- Покупатель (User) - содержит данные о клиенте (id, имя и фамилия, телефон, email и др.)
- Товар в заказе (OrderEntry) - содержит данные о товаре в заказе (артикул, название, количество, цена, скидка и др.)
- Адрес (Address) - содержит данные о адресе доставки заказа (страна, город, улица и др.)
- Получатель (ShippingRecipient) - содержит данные о получателе заказа (имя, фамилия, телефон)
- Информация о доставке (ShippingInfo) - содержит данные о стоимости и сроках доставки заказа
Аутентификация
При обращении к микросервису через API в запросах на отображение страницы с
заказами, а также создание и/или редактирование заказа необходимо в заголовке
Authorization указать токен: Authorization: Bearer
<токен>
.
Service context path
/api/order/
Настройки и параметры конфигурации
Параметры конфигурации указываются в Vault.
Vault используется на нашей платформе в качестве хранилища всех конфигураций развертывания. Инструмент может быть выбран другой.
{
"env": {
"JAVA_XMS": "ХХm",
"JAVA_XMX": "YYYm",
"SPRING_DATA_MONGODB_DATABASE": "название_бд",
"SPRING_DATA_MONGODB_PORT": "порт_бд",
"SPRING_DATA_MONGODB_USERNAME": "юзернэйм_для_бд"
}
}
// пример взят с тестового стенда
{
"env": {
"OAUTH_ECOM_CLIENT_ID": "токен_приложения_ECOM_OAuth",
"OAUTH_ZITADEL_CLIENT_ID": "токен_приложения_Zitadel",
"OAUTH_ZITADEL_ISSUER_URI": "url_Zitadel",
"SPRING_DATA_MONGODB_HOST": "хост_бд",
"SPRING_DATA_MONGODB_PASSWORD": "пароль_для_бд"
}
}
Методы микросервиса
- Cоздание заказа - POST запрос, /v1/orders
{
"customerId":
"202277231504942610",
"createTime":
"2024-01-18T14:37:08",
"entries": [
{
"articleId":
"1001429DC",
"productId": "1001428DC",
"articleName": "Перчатки
мужские",
"asset": {
"id":
"648b47ade86ef60f5bf00361",
"media": {
"url":
"develop/catalog/images/1686849449671-1222327520.png",
"name": "1685470909921-1222327520.png",
"type": "PHOTO",
"size": 68939,
"resolution": "427x427 px",
"createdDate":
"2023-06-15T20:17:33.501"
},
"title": "434311",
"altAttr":
"3443",
"description": "",
"sign": "",
"tags": [
""
]
},
"availability": {
"id": "54e4f421-9d08-415d-85a9-576ae6a010a2",
"articleId": "1001429DC",
"quantity": 111,
"replenishmentTime": 0,
"locationCode": "Строительный двор - Павловопосадский
склад"
},
"quantity": 1,
"unitPrice": 11,
"discountUnitPrice": 11,
"price": 11,
"discountPrice": 11,
"discountSum": 0
}
],
"shippingAddress": {
"id": null,
"company":
null,
"address":
null,
"city":
null,
"zipCode":
null,
"poBox":
null,
"country":
null
},
"shippingRecipient": {
"firstName": null,
"lastName": null,
"phone": null
},
"billingAddress": {
"id": "15",
"firstName": "Admin",
"lastName": "Test",
"company": "22",
"address": "34, Uborevicha Street",
"city": "Minsk",
"zipCode": "220066",
"poBox": "220066",
"country": "Беларусь"
},
"charges": [
{
"type": "shipping",
"amount": 0
}
],
"cartPrice": 11,
"totalPrice": 11,
"discountPrice": 11,
"discountSum": 0,
"currencyId":
"02d3eb94-8d0c-4e21-a952-db8684a1534d",
"cartId": "1-18012024000002",
"orderStatus":
"PENDING",
"user": {
"id": "202277231504942610",
"firstName": "Admin",
"lastName": "Test",
"phone": "+375 (44) 779-41-88",
"email":
"admin@test-ecom.digitalchief.tech",
"registrationTime": "2023-04-10T09:18:09.117",
"registrationCompleted":
true,
"addressDto":
{
"id": "15",
"firstName": "Admin",
"lastName": "Test",
"company": "22",
"address": "34, Uborevicha Street",
"city": "Minsk",
"zipCode": "220066",
"poBox": "220066",
"country": "Беларусь"
}
}
}
{
"id":
"c1794ebf-f901-4269-ba74-f6802b921db1",
"customerId": "202277231504942610",
"orderNum": "2-18012024000003",
"createTime":
"2024-01-18T14:37:08",
"entries": [
{
"articleId":
"1001429DC",
"productId": "1001428DC",
"articleName": "Перчатки
мужские",
"asset": {
"id":
"648b47ade86ef60f5bf00361",
"media": {
"url":
"develop/catalog/images/1686849449671-1222327520.png",
"name": "1685470909921-1222327520.png",
"type": "PHOTO",
"size": 68939,
"resolution": "427x427 px",
"createdDate":
"2023-06-15T20:17:33.501"
},
"title": "434311",
"altAttr":
"3443",
"description": "",
"sign": "",
"tags": [
""
]
},
"availability": {
"id": "54e4f421-9d08-415d-85a9-576ae6a010a2",
"articleId": "1001429DC",
"quantity": 111,
"replenishmentTime": 0,
"locationCode": "Строительный двор - Павловопосадский
склад"
},
"quantity": 1,
"unitPrice": 11,
"discountUnitPrice": 11,
"price": 11,
"discountPrice": 11,
"discountSum": 0
}
],
"shippingAddress": {
"id": null,
"company":
null,
"address":
null,
"city":
null,
"zipCode":
null,
"poBox":
null,
"country":
null
},
"shippingRecipient": {
"firstName": null,
"lastName": null,
"phone": null
},
"billingAddress": {
"id": "15",
"firstName": "Admin",
"lastName": "Test",
"company": "22",
"address": "34, Uborevicha Street",
"city": "Minsk",
"zipCode": "220066",
"poBox": "220066",
"country": "Беларусь"
},
"charges": [
{
"type": "shipping",
"amount": 0
}
],
"cartPrice": 11,
"totalPrice": 11,
"discountPrice": 11,
"discountSum": 0,
"currencyId":
"02d3eb94-8d0c-4e21-a952-db8684a1534d",
"cartId": "1-18012024000002",
"orderStatus":
"PENDING",
"user": {
"id": "202277231504942610",
"firstName": "Admin",
"lastName": "Test",
"phone": "+375 (44)
779-41-88",
"email":
"admin@test-ecom.digitalchief.tech",
"registrationTime": "2023-04-10T09:18:09.117",
"registrationCompleted":
true,
"addressDto":
{
"id": "15",
"firstName": "Admin",
"lastName": "Test",
"company": "22",
"address": "34, Uborevicha Street",
"city": "Minsk",
"zipCode": "220066",
"poBox": "220066",
"country": "Беларусь"
}
}
}
- 201 - операция успешна, создан заказ
- 422 - ошибка, невалидные
данные, передаваемые в запросе
- Отображение заказа по его id - GET запрос, /v1/orders/{id}
id - path-параметр, обязательный: уникальный идентификатор
заказа
{
"id":
"c1794ebf-f901-4269-ba74-f6802b921db1",
"customerId": "202277231504942610",
"orderNum": "2-18012024000003",
"createTime":
"2024-01-18T14:37:08",
"entries": [
{
"articleId":
"1001429DC",
"productId": "1001428DC",
"articleName": "Перчатки
мужские",
"asset": {
"id":
"648b47ade86ef60f5bf00361",
"media": {
"url":
"develop/catalog/images/1686849449671-1222327520.png",
"name": "1685470909921-1222327520.png",
"type": "PHOTO",
"size": 68939,
"resolution": "427x427 px",
"createdDate":
"2023-06-15T20:17:33.501"
},
"title": "434311",
"altAttr":
"3443",
"description": "",
"sign": "",
"tags": [
""
]
},
"availability": {
"id": "54e4f421-9d08-415d-85a9-576ae6a010a2",
"articleId": "1001429DC",
"quantity": 111,
"replenishmentTime": 0,
"locationCode": "Строительный двор - Павловопосадский
склад"
},
"quantity": 1,
"unitPrice": 11,
"discountUnitPrice": 11,
"price": 11,
"discountPrice": 11,
"discountSum": 0
}
],
"shippingAddress": {
"id": null,
"company":
null,
"address":
null,
"city":
null,
"zipCode":
null,
"poBox":
null,
"country":
null
},
"shippingRecipient": {
"firstName": null,
"lastName": null,
"phone": null
},
"billingAddress": {
"id": "15",
"firstName": "Admin",
"lastName": "Test",
"company": "22",
"address": "34, Uborevicha Street",
"city": "Minsk",
"zipCode": "220066",
"poBox": "220066",
"country": "Беларусь"
},
"charges": [
{
"type": "shipping",
"amount": 0
}
],
"cartPrice": 11,
"totalPrice": 11,
"discountPrice": 11,
"discountSum": 0,
"currencyId":
"02d3eb94-8d0c-4e21-a952-db8684a1534d",
"cartId": "1-18012024000002",
"orderStatus":
"PENDING",
"user": {
"id": "202277231504942610",
"firstName": "Admin",
"lastName": "Test",
"phone": "+375 (44)
779-41-88",
"email":
"admin@test-ecom.digitalchief.tech",
"registrationTime": "2023-04-10T09:18:09.117",
"registrationCompleted":
true,
"addressDto":
{
"id": "15",
"firstName": "Admin",
"lastName": "Test",
"company": "22",
"address": "34, Uborevicha Street",
"city": "Minsk",
"zipCode": "220066",
"poBox": "220066",
"country": "Беларусь"
}
}
}
- 200 - операция успешна, заказ найден
- 304 - заказ не изменился со времени последнего запроса
- 404 - ошибка, заказ не найден
- Отображение заказов - GET запрос, /v1/orders
customerId - query-параметр: id покупателя, чьи заказы нужно
отобразить
page - query-параметр: номер страницы для
отображения
size - query-параметр: количество элементов для
отображения на странице
sort - query-параметр: сортировка элементов на странице
statusFilter - query-параметр: статус, по которому нужно отфильтровать
заказы
orderStatusesToExclude - query-параметр: статус заказов,
который нужно исключить из отображения
{
"content": [
{
"id":
"c1794ebf-f901-4269-ba74-f6802b921db1",
"customerId":
"202277231504942610",
"orderNum": "2-18012024000003",
"createTime":
"2024-01-18T14:37:08",
"entries": [
{
"articleId": "1001429DC",
"productId": "1001428DC",
"articleName": "Перчатки мужские",
"asset": {
"id": "648b47ade86ef60f5bf00361",
"media": {
"url":
"develop/catalog/images/1686849449671-1222327520.png",
"name":
"1685470909921-1222327520.png",
"type": "PHOTO",
"size": 68939,
"resolution": "427x427 px",
"createdDate": "2023-06-15T20:17:33.501"
},
"title": "434311",
"altAttr":
"3443",
"description": "",
"sign": "",
"tags": [
""
]
},
"availability": {
"id":
"54e4f421-9d08-415d-85a9-576ae6a010a2",
"articleId": "1001429DC",
"quantity":
111,
"replenishmentTime": 0,
"locationCode": "Строительный двор - Павловопосадский склад"
},
"quantity": 1,
"unitPrice": 11,
"discountUnitPrice": 11,
"price": 11,
"discountPrice":
11,
"discountSum": 0
}
],
"shippingAddress": {
"id": null,
"company": null,
"address": null,
"city": null,
"zipCode": null,
"poBox":
null,
"country": null
},
"shippingRecipient": {
"firstName": null,
"lastName": null,
"phone":
null
},
"billingAddress": {
"id":
"15",
"firstName": "Admin",
"lastName": "Test",
"company": "22",
"address": "34, Uborevicha Street",
"city": "Minsk",
"zipCode":
"220066",
"poBox": "220066",
"country": "Беларусь"
},
"charges": [
{
"type": "shipping",
"amount": 0
}
],
"cartPrice": 11,
"totalPrice": 11,
"discountPrice":
11,
"discountSum": 0,
"currencyId":
"02d3eb94-8d0c-4e21-a952-db8684a1534d",
"cartId":
"1-18012024000002",
"orderStatus": "CONFIRMED",
"user": {
"id": "202277231504942610",
"firstName": "Admin",
"lastName": "Test",
"phone": "+375 (44) 779-41-88",
"email": "admin@test-ecom.digitalchief.tech",
"registrationTime": "2023-04-10T09:18:09.117",
"registrationCompleted": true,
"addressDto": {
"id": "15",
"firstName": "Admin",
"lastName": "Test",
"company": "22",
"address":
"34, Uborevicha Street",
"city": "Minsk",
"zipCode":
"220066",
"poBox":
"220066",
"country":
"Беларусь"
}
}
},
{
"id":
"a5f36f15-5aea-4976-abd9-b51006bf13d5",
"customerId":
"202277231504942610",
"orderNum": "2-18012024000002",
"createTime":
"2024-01-18T14:34:38",
"entries": [
{
"articleId": "1001429DC",
"productId": "1001428DC",
"articleName": "Перчатки мужские",
"asset": {
"id": "648b47ade86ef60f5bf00361",
"media": {
"url":
"develop/catalog/images/1686849449671-1222327520.png",
"name":
"1685470909921-1222327520.png",
"type": "PHOTO",
"size": 68939,
"resolution": "427x427 px",
"createdDate": "2023-06-15T20:17:33.501"
},
"title": "434311",
"altAttr":
"3443",
"description": "",
"sign": "",
"tags": [
""
]
},
"availability": {
"id":
"54e4f421-9d08-415d-85a9-576ae6a010a2",
"articleId": "1001429DC",
"quantity":
111,
"replenishmentTime": 0,
"locationCode": "Строительный двор - Павловопосадский склад"
},
"quantity": 1,
"unitPrice": 11,
"discountUnitPrice": 11,
"price": 11,
"discountPrice":
11,
"discountSum": 0
}
],
"shippingAddress": {
"id": null,
"company": null,
"address": null,
"city": null,
"zipCode": null,
"poBox":
null,
"country": null
},
"shippingRecipient": {
"firstName": null,
"lastName": null,
"phone":
null
},
"billingAddress": {
"id":
"15",
"firstName": "Admin",
"lastName": "Test",
"company": "22",
"address": "34, Uborevicha Street",
"city": "Minsk",
"zipCode":
"220066",
"poBox": "220066",
"country": "Беларусь"
},
"charges": [
{
"type": "shipping",
"amount": 0
}
],
"cartPrice": 11,
"totalPrice": 11,
"discountPrice":
11,
"discountSum": 0,
"currencyId":
"02d3eb94-8d0c-4e21-a952-db8684a1534d",
"cartId":
"1-18012024000001",
"orderStatus": "CONFIRMED",
"user": {
"id": "202277231504942610",
"firstName": "Admin",
"lastName": "Test",
"phone": "+375 (44) 779-41-88",
"email": "admin@test-ecom.digitalchief.tech",
"registrationTime": "2023-04-10T09:18:09.117",
"registrationCompleted": true,
"addressDto": {
"id": "15",
"firstName": "Admin",
"lastName": "Test",
"company": "22",
"address":
"34, Uborevicha Street",
"city": "Minsk",
"zipCode":
"220066",
"poBox":
"220066",
"country":
"Беларусь"
}
}
},
{
"id":
"ff81b91d-464a-4f40-a63b-8ffab7d68757",
"customerId":
"202277231504942610",
"orderNum": "2-18012024000001",
"createTime":
"2024-01-18T14:34:26",
"entries": [
{
"articleId": "1001429DC",
"productId": "1001428DC",
"articleName": "Перчатки мужские",
"asset": {
"id": "648b47ade86ef60f5bf00361",
"media": {
"url":
"develop/catalog/images/1686849449671-1222327520.png",
"name":
"1685470909921-1222327520.png",
"type": "PHOTO",
"size": 68939,
"resolution": "427x427 px",
"createdDate": "2023-06-15T20:17:33.501"
},
"title": "434311",
"altAttr":
"3443",
"description": "",
"sign": "",
"tags": [
""
]
},
"availability": {
"id":
"54e4f421-9d08-415d-85a9-576ae6a010a2",
"articleId": "1001429DC",
"quantity":
111,
"replenishmentTime": 0,
"locationCode": "Строительный двор - Павловопосадский склад"
},
"quantity": 1,
"unitPrice": 11,
"discountUnitPrice": 11,
"price": 11,
"discountPrice":
11,
"discountSum": 0
}
],
"shippingAddress": {
"id": null,
"company": null,
"address": null,
"city": null,
"zipCode": null,
"poBox":
null,
"country": null
},
"shippingRecipient": {
"firstName": null,
"lastName": null,
"phone":
null
},
"billingAddress": {
"id":
"15",
"firstName": "Admin",
"lastName": "Test",
"company": "22",
"address": "34, Uborevicha Street",
"city": "Minsk",
"zipCode":
"220066",
"poBox": "220066",
"country": "Беларусь"
},
"charges": [
{
"type": "shipping",
"amount": 0
}
],
"cartPrice": 11,
"totalPrice": 11,
"discountPrice":
11,
"discountSum": 0,
"currencyId":
"02d3eb94-8d0c-4e21-a952-db8684a1534d",
"cartId":
"1-18012024000001",
"orderStatus": "PENDING",
"user": {
"id": "202277231504942610",
"firstName": "Admin",
"lastName": "Test",
"phone": "+375 (44) 779-41-88",
"email": "admin@test-ecom.digitalchief.tech",
"registrationTime": "2023-04-10T09:18:09.117",
"registrationCompleted": true,
"addressDto": {
"id": "15",
"firstName": "Admin",
"lastName": "Test",
"company": "22",
"address":
"34, Uborevicha Street",
"city": "Minsk",
"zipCode":
"220066",
"poBox":
"220066",
"country":
"Беларусь"
}
}
}
],
"number": 0,
"size": 3,
"totalElements": 4322,
"pageable": "INSTANCE",
"last":
false,
"totalPages": 433,
"sort": {
"unsorted": true,
"sorted": false,
"empty": true
},
"first": true,
"numberOfElements": 10,
"empty": false
}
200 - операция успешна, заказы отображены
- Отображение списка заказов - GET запрос, /v1/orders/orderList
customerId - query-параметр: уникальный идентификатор
покупателя
statusFilter - query-параметр: статус, по которому нужно
отфильтровать заказы
orderStatusesToExclude - query-параметр:
статус заказов, который нужно исключить из отображения
[
{
"id": "c1794ebf-f901-4269-ba74-f6802b921db1",
"customerId":
"202277231504942610",
"orderNum": "2-18012024000003",
"createTime": "2024-01-18T14:37:08",
"entries": [
{
"articleId":
"1001429DC",
"productId": "1001428DC",
"articleName": "Перчатки мужские",
"asset": {
"id":
"648b47ade86ef60f5bf00361",
"media": {
"url": "develop/catalog/images/1686849449671-1222327520.png",
"name":
"1685470909921-1222327520.png",
"type": "PHOTO",
"size": 68939,
"resolution": "427x427 px",
"createdDate": "2023-06-15T20:17:33.501"
},
"title":
"434311",
"altAttr":
"3443",
"description":
"",
"sign": "",
"tags": [
""
]
},
"availability": {
"id":
"54e4f421-9d08-415d-85a9-576ae6a010a2",
"articleId": "1001429DC",
"quantity": 111,
"replenishmentTime": 0,
"locationCode": "Строительный двор - Павловопосадский склад"
},
"quantity": 1,
"unitPrice": 11,
"discountUnitPrice": 11,
"price": 11,
"discountPrice": 11,
"discountSum": 0
}
],
"shippingAddress":
{
"id": null,
"company": null,
"address": null,
"city": null,
"zipCode": null,
"poBox": null,
"country": null
},
"shippingRecipient": {
"firstName":
null,
"lastName": null,
"phone": null
},
"billingAddress": {
"id": "15",
"firstName":
"Admin",
"lastName": "Test",
"company": "22",
"address": "34,
Uborevicha Street",
"city": "Minsk",
"zipCode": "220066",
"poBox": "220066",
"country": "Беларусь"
},
"charges": [
{
"type": "shipping",
"amount": 0
}
],
"cartPrice": 11,
"totalPrice": 11,
"discountPrice": 11,
"discountSum": 0,
"currencyId": "02d3eb94-8d0c-4e21-a952-db8684a1534d",
"cartId": "1-18012024000002",
"orderStatus":
"CONFIRMED",
"user":
{
"id": "202277231504942610",
"firstName": "Admin",
"lastName":
"Test",
"phone": "+375 (44) 779-41-88",
"email":
"admin@test-ecom.digitalchief.tech",
"registrationTime":
"2023-04-10T09:18:09.117",
"registrationCompleted": true,
"addressDto": {
"id": "15",
"firstName": "Admin",
"lastName": "Test",
"company": "22",
"address":
"34, Uborevicha Street",
"city": "Minsk",
"zipCode": "220066",
"poBox":
"220066",
"country": "Беларусь"
}
}
},
{
"id": "a5f36f15-5aea-4976-abd9-b51006bf13d5",
"customerId": "202277231504942610",
"orderNum":
"2-18012024000002",
"createTime": "2024-01-18T14:34:38",
"entries": [
{
"articleId":
"1001429DC",
"productId": "1001428DC",
"articleName": "Перчатки мужские",
"asset": {
"id":
"648b47ade86ef60f5bf00361",
"media": {
"url": "develop/catalog/images/1686849449671-1222327520.png",
"name":
"1685470909921-1222327520.png",
"type": "PHOTO",
"size": 68939,
"resolution": "427x427 px",
"createdDate": "2023-06-15T20:17:33.501"
},
"title":
"434311",
"altAttr":
"3443",
"description":
"",
"sign": "",
"tags": [
""
]
},
"availability": {
"id":
"54e4f421-9d08-415d-85a9-576ae6a010a2",
"articleId": "1001429DC",
"quantity": 111,
"replenishmentTime": 0,
"locationCode": "Строительный двор - Павловопосадский склад"
},
"quantity": 1,
"unitPrice": 11,
"discountUnitPrice": 11,
"price": 11,
"discountPrice": 11,
"discountSum": 0
}
],
"shippingAddress":
{
"id": null,
"company": null,
"address": null,
"city": null,
"zipCode": null,
"poBox": null,
"country": null
},
"shippingRecipient": {
"firstName":
null,
"lastName": null,
"phone": null
},
"billingAddress": {
"id": "15",
"firstName":
"Admin",
"lastName": "Test",
"company": "22",
"address": "34,
Uborevicha Street",
"city": "Minsk",
"zipCode": "220066",
"poBox": "220066",
"country": "Беларусь"
},
"charges": [
{
"type": "shipping",
"amount": 0
}
],
"cartPrice": 11,
"totalPrice": 11,
"discountPrice": 11,
"discountSum": 0,
"currencyId": "02d3eb94-8d0c-4e21-a952-db8684a1534d",
"cartId": "1-18012024000001",
"orderStatus":
"CONFIRMED",
"user":
{
"id": "202277231504942610",
"firstName": "Admin",
"lastName":
"Test",
"phone": "+375 (44) 779-41-88",
"email":
"admin@test-ecom.digitalchief.tech",
"registrationTime":
"2023-04-10T09:18:09.117",
"registrationCompleted": true,
"addressDto": {
"id": "15",
"firstName": "Admin",
"lastName": "Test",
"company": "22",
"address":
"34, Uborevicha Street",
"city": "Minsk",
"zipCode": "220066",
"poBox":
"220066",
"country": "Беларусь"
}
}
},
{
"id": "ff81b91d-464a-4f40-a63b-8ffab7d68757",
"customerId": "202277231504942610",
"orderNum":
"2-18012024000001",
"createTime": "2024-01-18T14:34:26",
"entries": [
{
"articleId":
"1001429DC",
"productId": "1001428DC",
"articleName": "Перчатки мужские",
"asset": {
"id":
"648b47ade86ef60f5bf00361",
"media": {
"url": "develop/catalog/images/1686849449671-1222327520.png",
"name":
"1685470909921-1222327520.png",
"type": "PHOTO",
"size": 68939,
"resolution": "427x427 px",
"createdDate": "2023-06-15T20:17:33.501"
},
"title":
"434311",
"altAttr":
"3443",
"description":
"",
"sign": "",
"tags": [
""
]
},
"availability": {
"id":
"54e4f421-9d08-415d-85a9-576ae6a010a2",
"articleId": "1001429DC",
"quantity": 111,
"replenishmentTime": 0,
"locationCode": "Строительный двор - Павловопосадский склад"
},
"quantity": 1,
"unitPrice": 11,
"discountUnitPrice": 11,
"price": 11,
"discountPrice": 11,
"discountSum": 0
}
],
"shippingAddress":
{
"id": null,
"company": null,
"address": null,
"city": null,
"zipCode": null,
"poBox": null,
"country": null
},
"shippingRecipient": {
"firstName":
null,
"lastName": null,
"phone": null
},
"billingAddress": {
"id": "15",
"firstName":
"Admin",
"lastName": "Test",
"company": "22",
"address": "34,
Uborevicha Street",
"city": "Minsk",
"zipCode": "220066",
"poBox": "220066",
"country": "Беларусь"
},
"charges": [
{
"type": "shipping",
"amount": 0
}
],
"cartPrice": 11,
"totalPrice": 11,
"discountPrice": 11,
"discountSum": 0,
"currencyId": "02d3eb94-8d0c-4e21-a952-db8684a1534d",
"cartId": "1-18012024000001",
"orderStatus":
"PENDING",
"user":
{
"id": "202277231504942610",
"firstName": "Admin",
"lastName":
"Test",
"phone": "+375 (44) 779-41-88",
"email":
"admin@test-ecom.digitalchief.tech",
"registrationTime":
"2023-04-10T09:18:09.117",
"registrationCompleted": true,
"addressDto": {
"id": "15",
"firstName": "Admin",
"lastName": "Test",
"company": "22",
"address":
"34, Uborevicha Street",
"city": "Minsk",
"zipCode": "220066",
"poBox":
"220066",
"country": "Беларусь"
}
}
}
]
200 - операция успешна, заказы отображены
- Редактирование заказа - PATCH запрос, /v1/orders/{id}
id - path-параметр, обязательный: id заказа
{
"id":
"ff81b91d-464a-4f40-a63b-8ffab7d68757",
"customerId": "202277231504942610",
"orderNum": "2-18012024000001",
"createTime":
"2024-01-18T14:34:26",
"entries": [
{
"articleId":
"1001429DC",
"productId": "1001428DC",
"articleName": "Перчатки
мужские",
"asset": {
"id":
"648b47ade86ef60f5bf00361",
"media": {
"url":
"develop/catalog/images/1686849449671-1222327520.png",
"name": "1685470909921-1222327520.png",
"type": "PHOTO",
"size": 68939,
"resolution": "427x427 px",
"createdDate":
"2023-06-15T20:17:33.501"
},
"title": "434311",
"altAttr":
"3443",
"description": "",
"sign": "",
"tags": [
""
]
},
"availability": {
"id": "54e4f421-9d08-415d-85a9-576ae6a010a2",
"articleId": "1001429DC",
"quantity": 111,
"replenishmentTime": 0,
"locationCode": "Строительный двор - Павловопосадский
склад"
},
"quantity": 1,
"unitPrice": 11,
"discountUnitPrice": 11,
"price": 11,
"discountPrice": 11,
"discountSum": 0
}
],
"shippingAddress": {
"id": null,
"company":
null,
"address":
null,
"city":
null,
"zipCode":
null,
"poBox":
null,
"country":
null
},
"shippingRecipient": {
"firstName": null,
"lastName": null,
"phone": null
},
"billingAddress": {
"id": "15",
"firstName": "Admin",
"lastName": "Test",
"company": "22",
"address": "34, Uborevicha Street",
"city": "Minsk",
"zipCode": "220066",
"poBox": "220066",
"country": "Беларусь"
},
"charges": [
{
"type": "shipping",
"amount": 0
}
],
"cartPrice": 11,
"totalPrice": 11,
"discountPrice": 11,
"discountSum": 0,
"currencyId":
"02d3eb94-8d0c-4e21-a952-db8684a1534d",
"cartId": "1-18012024000001",
"orderStatus":
"CONFIRMED",
"user": {
"id": "202277231504942610",
"firstName": "Admin",
"lastName": "Test",
"phone": "+375 (44)
779-41-88",
"email":
"admin@test-ecom.digitalchief.tech",
"registrationTime": "2023-04-10T09:18:09.117",
"registrationCompleted":
true,
"addressDto":
{
"id": "15",
"firstName": "Admin",
"lastName": "Test",
"company": "22",
"address": "34, Uborevicha Street",
"city": "Minsk",
"zipCode": "220066",
"poBox": "220066",
"country": "Беларусь"
}
}
}
{
"id":
"ff81b91d-464a-4f40-a63b-8ffab7d68757",
"customerId": "202277231504942610",
"orderNum": "2-18012024000001",
"createTime":
"2024-01-18T14:34:26",
"entries": [
{
"articleId":
"1001429DC",
"productId": "1001428DC",
"articleName": "Перчатки
мужские",
"asset": {
"id":
"648b47ade86ef60f5bf00361",
"media": {
"url":
"develop/catalog/images/1686849449671-1222327520.png",
"name": "1685470909921-1222327520.png",
"type": "PHOTO",
"size": 68939,
"resolution": "427x427 px",
"createdDate":
"2023-06-15T20:17:33.501"
},
"title": "434311",
"altAttr":
"3443",
"description": "",
"sign": "",
"tags": [
""
]
},
"availability": {
"id": "54e4f421-9d08-415d-85a9-576ae6a010a2",
"articleId": "1001429DC",
"quantity": 111,
"replenishmentTime": 0,
"locationCode": "Строительный двор - Павловопосадский
склад"
},
"quantity": 1,
"unitPrice": 11,
"discountUnitPrice": 11,
"price": 11,
"discountPrice": 11,
"discountSum": 0
}
],
"shippingAddress": {
"id": null,
"company":
null,
"address":
null,
"city":
null,
"zipCode":
null,
"poBox":
null,
"country":
null
},
"shippingRecipient": {
"firstName": null,
"lastName": null,
"phone": null
},
"billingAddress": {
"id": "15",
"firstName": "Admin",
"lastName": "Test",
"company": "22",
"address": "34, Uborevicha Street",
"city": "Minsk",
"zipCode": "220066",
"poBox": "220066",
"country": "Беларусь"
},
"charges": [
{
"type": "shipping",
"amount": 0
}
],
"cartPrice": 11,
"totalPrice": 11,
"discountPrice": 11,
"discountSum": 0,
"currencyId":
"02d3eb94-8d0c-4e21-a952-db8684a1534d",
"cartId": "1-18012024000001",
"orderStatus":
"CONFIRMED",
"user": {
"id": "202277231504942610",
"firstName": "Admin",
"lastName": "Test",
"phone": "+375 (44)
779-41-88",
"email":
"admin@test-ecom.digitalchief.tech",
"registrationTime": "2023-04-10T09:18:09.117",
"registrationCompleted":
true,
"addressDto":
{
"id": "15",
"firstName": "Admin",
"lastName": "Test",
"company": "22",
"address": "34, Uborevicha Street",
"city": "Minsk",
"zipCode": "220066",
"poBox": "220066",
"country": "Беларусь"
}
}
}
- 200 - операция успешна, заказ обновлен
- 404 - ошибка, заказ не найден
- 412 - ошибка, заказ был изменен со времени последнего запроса, версия не валидна
- 417 - ошибка, изменения не выполнены
- 422 - ошибка, невалидные данные, передаваемые в запросе
- 428 - ошибка, If-Match header is empty. If-Match header must contain your cached Order ETag value
- Отображение статистики заказов по id покупателей - GET запрос, /v1/orders/statistics/aggregate-by-customers
customerIds - query-параметр: массив id покупателей
statusFilter- query-параметр: фильтр по статусу заказа
{
"customerStatistics": [
{
"customerId":
"111",
"ordersCount": 12
},
{
"customerId": "112",
"ordersCount": 3
}
]
}
200 - операция успешна, статистика посчитана и отображена
- Получение страницы с заказами (с возможностью фильтрации) - GET запрос, /v1/orders/page
page - query-параметр: номер страницы
size -
query-параметр: количество элементов на странице
sort -
query-параметр: сортировка элементов на странице
searchTerm -
query-параметр: поисковый запрос пользователя
customerId -
query-параметр: id покупателя
orderNum - query-параметр: id
заказа
createTimeFrom - query-параметр: дата, использующаяся в
фильтре "Дата с"
createTimeTo - query-параметр: дата,
использующаяся в фильтре "Дата до"
orderStatuses - query-параметр:
статус заказа
userFirstName - query-параметр: имя покупателя
userLastName - query-параметр: фамилия покупателя
discountPriceFirstValue - query-параметр: первый числовой параметр
фильтра "Стоимость"
discountPriceFirstOperator - query-параметр:
первый числовой оператор фильтра "Стоимость"
discountPriceFilterConnectiveType - query-параметр: тип соединения
числовых параметров фильтра "Стоимость" (например, "AND" или "OR")
discountPriceSecondValue - query-параметр: второй числовой параметр
фильтра "Стоимость"
discountPriceSecondOperator - query-параметр:
второй числовой оператор фильтра "Стоимость" (например, "больше")
orderStatutesToExclude - query-параметр: статусы заказов, которые не
должны отображаться на странице
{
"content": [
{
"id":
"1294888b-97a3-4679-ad15-f664d6f6fe88",
"customerId":
"227485734292973074",
"orderNum": "2-12042024000004",
"createTime":
"2024-04-12T10:51:04",
"entries": [
{
"articleId": "1001626DC",
"productId": "1001624DC",
"articleName": "Ботинки мужские демисезон",
"asset": {
"id":
"886b5712-8d65-4056-a6b5-8297181e7697",
"media": {
"url":
"master/catalog/images/1706265245789-1882559365.png",
"absoluteUrl":
"https://test-ecom-media.digitalchief.tech/master/catalog/images/1706265245789-1882559365.png",
"name": "adelinacasas_2024-01-24.png",
"type":
"PHOTO",
"size": 262377,
"resolution": "900x1200
px",
"createdDate": "2024-01-26T13:34:26.01"
},
"title":
"adelinacasas_2024-01-24",
"altAttr": "adelinacasas_2024-01-24",
"description": "описание",
"sign": "подпись",
"tags": [
"теги"
]
},
"availability": {
"id":
"3bbbac39-4460-446d-89f6-73a3e2876aa2",
"articleId": "1001626DC",
"quantity":
20.0,
"replenishmentTime": 0,
"locationId": null,
"locationCode": "A003-01",
"locationName": null
},
"quantity": 2.0,
"unitPrice": 1200.0,
"discountUnitPrice": 1200.0,
"price": 2400.00,
"discountPrice": 2400.00,
"discountSum": 0.00
}
],
"shippingAddress":
{
"id": null,
"firstName": "",
"lastName": "",
"company":
"ООО «КурьерСервис»",
"address":
"Центральная",
"city": "Минск",
"zipCode": "220120",
"poBox":
"31",
"country": "Беларусь "
},
"shippingRecipient": {
"firstName": "",
"lastName": "",
"phone":
""
},
"billingAddress": {
"id":
"409",
"firstName": "Ольга",
"lastName": "Иванова",
"company": "Крайнет",
"address": "Центральная",
"city": "Москва",
"zipCode": "231123",
"poBox": "223232",
"country":
"Россия"
},
"charges": [
{
"type": "shipping",
"amount": 0.0
}
],
"cartPrice": 2400.00,
"totalPrice": 2400.00,
"discountPrice": 2400.00,
"discountSum": 0.00,
"currencyId":
"90e5fed1-1eaa-4e45-8574-b687605817fd",
"cartId":
"1-12042024000003",
"orderStatus": "PENDING",
"user": {
"id": "227485734292973074",
"firstName": "Ольга",
"lastName": "Иванова",
"phone": null,
"email":
"ivanova@pochta.ru",
"gender": null,
"registrationTime": "2023-08-30T12:12:17.834",
"registrationCompleted": true,
"addressDto": {
"id":
"409",
"firstName":
"Ольга",
"lastName":
"Иванова",
"company":
"Крайнет",
"address":
"Центральная",
"city":
"Москва",
"zipCode":
"231123",
"poBox":
"223232",
"country":
"Россия"
}
},
"shippingInfo": {
"deliveryDate": "12.04.2024 10:51",
"deliveryPrice": 0.0
},
"currency": {
"id": "90e5fed1-1eaa-4e45-8574-b687605817fd",
"isoCode": "RUB",
"name":
"Российский рубль",
"symbol": "₽"
}
},
{
"id":
"0f43b894-ee3f-4c92-805c-bc9dcc46aa34",
"customerId":
"227485734292973074",
"orderNum": "2-12042024000003",
"createTime":
"2024-04-12T10:50:24",
"entries": [
{
"articleId": "1001626DC",
"productId": "1001624DC",
"articleName": "Ботинки мужские демисезон",
"asset": {
"id":
"886b5712-8d65-4056-a6b5-8297181e7697",
"media": {
"url":
"master/catalog/images/1706265245789-1882559365.png",
"absoluteUrl":
"https://test-ecom-media.digitalchief.tech/master/catalog/images/1706265245789-1882559365.png",
"name": "adelinacasas_2024-01-24.png",
"type":
"PHOTO",
"size": 262377,
"resolution": "900x1200
px",
"createdDate": "2024-01-26T13:34:26.01"
},
"title":
"adelinacasas_2024-01-24",
"altAttr": "adelinacasas_2024-01-24",
"description": "описание",
"sign": "подпись",
"tags": [
"теги"
]
},
"availability": {
"id":
"3bbbac39-4460-446d-89f6-73a3e2876aa2",
"articleId": "1001626DC",
"quantity":
20.0,
"replenishmentTime": 0,
"locationId": null,
"locationCode": "A003-01",
"locationName": null
},
"quantity": 2.0,
"unitPrice": 1200.0,
"discountUnitPrice": 1200.0,
"price": 2400.00,
"discountPrice": 2400.00,
"discountSum": 0.00
}
],
"shippingAddress":
{
"id": null,
"company": null,
"address": null,
"city":
null,
"zipCode": null,
"poBox": null,
"country": null
},
"shippingRecipient": {
"firstName":
null,
"lastName": null,
"phone": null
},
"billingAddress": {
"id": "409",
"firstName": "Ольга",
"lastName": "Иванова",
"company": "Крайнет",
"address": "Центральная",
"city": "Москва",
"zipCode": "231123",
"poBox": "223232",
"country":
"Россия"
},
"charges": [
{
"type": "shipping",
"amount": 0.0
}
],
"cartPrice": 2400.00,
"totalPrice": 2400.00,
"discountPrice": 2400.00,
"discountSum": 0.00,
"currencyId":
"90e5fed1-1eaa-4e45-8574-b687605817fd",
"cartId":
"1-12042024000003",
"orderStatus": "PENDING",
"user": {
"id": "227485734292973074",
"firstName": "Ольга",
"lastName": "Иванова",
"phone": null,
"email":
"ivanova@pochta.ru",
"gender": null,
"registrationTime": "2023-08-30T12:12:17.834",
"registrationCompleted": true,
"addressDto": {
"id":
"409",
"firstName":
"Ольга",
"lastName":
"Иванова",
"company":
"Крайнет",
"address":
"Центральная",
"city":
"Москва",
"zipCode":
"231123",
"poBox":
"223232",
"country":
"Россия"
}
},
"shippingInfo": {
"deliveryDate": "12.04.2024 10:50",
"deliveryPrice": 0.0
},
"currency": {
"id": "90e5fed1-1eaa-4e45-8574-b687605817fd",
"isoCode": "RUB",
"name":
"Российский рубль",
"symbol": "₽"
}
},
{
"id":
"e67ddca5-2771-4425-ae1f-bf8fa6f5fabb",
"customerId":
"227485734292973074",
"orderNum": "2-12042024000002",
"createTime":
"2024-04-12T10:49:21",
"entries": [
{
"articleId": "1001626DC",
"productId": "1001624DC",
"articleName": "Ботинки мужские демисезон",
"asset": {
"id":
"886b5712-8d65-4056-a6b5-8297181e7697",
"media": {
"url":
"master/catalog/images/1706265245789-1882559365.png",
"absoluteUrl":
"https://test-ecom-media.digitalchief.tech/master/catalog/images/1706265245789-1882559365.png",
"name": "adelinacasas_2024-01-24.png",
"type":
"PHOTO",
"size": 262377,
"resolution": "900x1200
px",
"createdDate": "2024-01-26T13:34:26.01"
},
"title":
"adelinacasas_2024-01-24",
"altAttr": "adelinacasas_2024-01-24",
"description": "описание",
"sign": "подпись",
"tags": [
"теги"
]
},
"availability": {
"id":
"3bbbac39-4460-446d-89f6-73a3e2876aa2",
"articleId": "1001626DC",
"quantity":
20.0,
"replenishmentTime": 0,
"locationId": null,
"locationCode": "A003-01",
"locationName": null
},
"quantity": 2.0,
"unitPrice": 1200.0,
"discountUnitPrice": 1200.0,
"price": 2400.00,
"discountPrice": 2400.00,
"discountSum": 0.00
}
],
"shippingAddress":
{
"id": null,
"company": null,
"address": null,
"city":
null,
"zipCode": null,
"poBox": null,
"country": null
},
"shippingRecipient": {
"firstName":
null,
"lastName": null,
"phone": null
},
"billingAddress": {
"id": "409",
"firstName": "Ольга",
"lastName": "Иванова",
"company": "Крайнет",
"address": "Центральная",
"city": "Москва",
"zipCode": "231123",
"poBox": "223232",
"country":
"Россия"
},
"charges": [
{
"type": "shipping",
"amount": 0.0
}
],
"cartPrice": 2400.00,
"totalPrice": 2400.00,
"discountPrice": 2400.00,
"discountSum": 0.00,
"currencyId":
"90e5fed1-1eaa-4e45-8574-b687605817fd",
"cartId":
"1-12042024000003",
"orderStatus": "PENDING",
"user": {
"id": "227485734292973074",
"firstName": "Ольга",
"lastName": "Иванова",
"phone": null,
"email":
"ivanova@pochta.ru",
"gender": null,
"registrationTime": "2023-08-30T12:12:17.834",
"registrationCompleted": true,
"addressDto": {
"id":
"409",
"firstName":
"Ольга",
"lastName":
"Иванова",
"company":
"Крайнет",
"address":
"Центральная",
"city":
"Москва",
"zipCode":
"231123",
"poBox":
"223232",
"country":
"Россия"
}
},
"shippingInfo": {
"deliveryDate": "12.04.2024 10:49",
"deliveryPrice": 0.0
},
"currency": {
"id": "90e5fed1-1eaa-4e45-8574-b687605817fd",
"isoCode": "RUB",
"name":
"Российский рубль",
"symbol": "₽"
}
},
{
"id":
"6f97ad47-2d96-4948-a8e2-c7e3ddf28f47",
"customerId":
"227485734292973074",
"orderNum": "2-12042024000001",
"createTime":
"2024-04-12T10:47:47",
"entries": [
{
"articleId": "1001626DC",
"productId": "1001624DC",
"articleName": "Ботинки мужские демисезон",
"asset": {
"id":
"886b5712-8d65-4056-a6b5-8297181e7697",
"media": {
"url":
"master/catalog/images/1706265245789-1882559365.png",
"absoluteUrl":
"https://test-ecom-media.digitalchief.tech/master/catalog/images/1706265245789-1882559365.png",
"name": "adelinacasas_2024-01-24.png",
"type":
"PHOTO",
"size": 262377,
"resolution": "900x1200
px",
"createdDate": "2024-01-26T13:34:26.01"
},
"title":
"adelinacasas_2024-01-24",
"altAttr": "adelinacasas_2024-01-24",
"description": "описание",
"sign": "подпись",
"tags": [
"теги"
]
},
"availability": {
"id":
"3bbbac39-4460-446d-89f6-73a3e2876aa2",
"articleId": "1001626DC",
"quantity":
20.0,
"replenishmentTime": 0,
"locationId": null,
"locationCode": "A003-01",
"locationName": null
},
"quantity": 2.0,
"unitPrice": 1200.0,
"discountUnitPrice": 1200.0,
"price": 2400.00,
"discountPrice": 2400.00,
"discountSum": 0.00
}
],
"shippingAddress":
{
"id": null,
"company": null,
"address": null,
"city":
null,
"zipCode": null,
"poBox": null,
"country": null
},
"shippingRecipient": {
"firstName":
null,
"lastName": null,
"phone": null
},
"billingAddress": {
"id": "409",
"firstName": "Ольга",
"lastName": "Иванова",
"company": "Крайнет",
"address": "Центральная",
"city": "Москва",
"zipCode": "231123",
"poBox": "223232",
"country":
"Россия"
},
"charges": [
{
"type": "shipping",
"amount": 0.0
}
],
"cartPrice": 2400.00,
"totalPrice": 2400.00,
"discountPrice": 2400.00,
"discountSum": 0.00,
"currencyId":
"90e5fed1-1eaa-4e45-8574-b687605817fd",
"cartId":
"1-12042024000003",
"orderStatus": "PENDING",
"user": {
"id": "227485734292973074",
"firstName": "Ольга",
"lastName": "Иванова",
"phone": null,
"email":
"ivanova@pochta.ru",
"gender": null,
"registrationTime": "2023-08-30T12:12:17.834",
"registrationCompleted": true,
"addressDto": {
"id":
"409",
"firstName":
"Ольга",
"lastName":
"Иванова",
"company":
"Крайнет",
"address":
"Центральная",
"city":
"Москва",
"zipCode":
"231123",
"poBox":
"223232",
"country":
"Россия"
}
},
"shippingInfo": {
"deliveryDate": "12.04.2024 10:47",
"deliveryPrice": 0.0
},
"currency": {
"id": "90e5fed1-1eaa-4e45-8574-b687605817fd",
"isoCode": "RUB",
"name":
"Российский рубль",
"symbol": "₽"
}
}
],
"number": 0,
"size": 4,
"totalElements": 4,
"pageable":
"INSTANCE",
"last": true,
"totalPages": 1,
"sort": {
"sorted":
false,
"unsorted":
true,
"empty":
true
},
"first": true,
"numberOfElements": 4,
"empty": false
}
200 - операция выполнена успешно, получена страница с заказами
- Получение отфильтрованного списка заказов - GET запрос, /v1/orders/list
searchTerm - query-параметр: поисковый запрос пользователя
customerId - query-параметр: id покупателя
orderNum -
query-параметр: id заказа
createTimeFrom - query-параметр: дата,
использующаяся в фильтре "Дата с"
createTimeTo - query-параметр:
дата, использующаяся в фильтре "Дата до"
orderStatuses -
query-параметр: статус заказа
userFirstName - query-параметр: имя
покупателя
userLastName - query-параметр: фамилия покупателя
discountPriceFirstValue - query-параметр: первый числовой параметр
фильтра "Стоимость"
discountPriceFirstOperator - query-параметр:
первый числовой оператор фильтра "Стоимость"
discountPriceFilterConnectiveType - query-параметр: тип соединения
числовых параметров фильтра "Стоимость" (например, "AND" или "OR")
discountPriceSecondValue - query-параметр: второй числовой параметр
фильтра "Стоимость"
discountPriceSecondOperator - query-параметр:
второй числовой оператор фильтра "Стоимость" (например, "больше")
orderStatutesToExclude - query-параметр: статусы заказов, которые не
должны отображаться в списке
[
{
"id": "1294888b-97a3-4679-ad15-f664d6f6fe88",
"customerId": "227485734292973074",
"orderNum": "2-12042024000004",
"createTime": "2024-04-12T10:51:04",
"entries": [
{
"articleId":
"1001626DC",
"productId": "1001624DC",
"articleName": "Ботинки мужские демисезон",
"asset": {
"id":
"886b5712-8d65-4056-a6b5-8297181e7697",
"media": {
"url":
"master/catalog/images/1706265245789-1882559365.png",
"absoluteUrl":
"https://test-ecom-media.digitalchief.tech/master/catalog/images/1706265245789-1882559365.png",
"name":
"adelinacasas_2024-01-24.png",
"type": "PHOTO",
"size": 262377,
"resolution": "900x1200 px",
"createdDate": "2024-01-26T13:34:26.01"
},
"title":
"adelinacasas_2024-01-24",
"altAttr": "adelinacasas_2024-01-24",
"description":
"описание",
"sign": "подпись",
"tags": [
"теги"
]
},
"availability":
{
"id":
"3bbbac39-4460-446d-89f6-73a3e2876aa2",
"articleId": "1001626DC",
"quantity":
20,
"replenishmentTime": 0,
"locationCode": "A003-01"
},
"quantity": 2,
"unitPrice": 1200,
"discountUnitPrice": 1200,
"price": 2400,
"discountPrice": 2400,
"discountSum": 0
}
],
"shippingAddress": {
"id": null,
"firstName": "",
"lastName": "",
"company": "ООО
«КурьерСервис»",
"address": "Центральная",
"city": "Минск",
"zipCode": "220120",
"poBox":
"31",
"country": "Беларусь "
},
"shippingRecipient": {
"firstName": "",
"lastName":
"",
"phone": ""
},
"billingAddress": {
"id":
"409",
"firstName": "Ольга",
"lastName": "Иванова",
"company": "Крайнет",
"address": "Центральная",
"city": "Москва",
"zipCode": "231123",
"poBox": "223232",
"country": "Россия"
},
"charges": [
{
"type": "shipping",
"amount": 0
}
],
"cartPrice": 2400,
"totalPrice": 2400,
"discountPrice": 2400,
"discountSum":
0,
"currencyId":
"90e5fed1-1eaa-4e45-8574-b687605817fd",
"cartId": "1-12042024000003",
"orderStatus":
"PENDING",
"user": {
"id": "227485734292973074",
"firstName": "Ольга",
"lastName": "Иванова",
"email": "ivanova@pochta.ru",
"registrationTime": "2023-08-30T12:12:17.834",
"registrationCompleted": true,
"addressDto": {
"id": "409",
"firstName": "Ольга",
"lastName": "Иванова",
"company": "Крайнет",
"address": "Центральная",
"city": "Москва",
"zipCode": "231123",
"poBox": "223232",
"country": "Россия"
}
},
"shippingInfo": {
"deliveryDate": "12.04.2024 10:51",
"deliveryPrice": 0
}
},
{
"id": "0f43b894-ee3f-4c92-805c-bc9dcc46aa34",
"customerId": "227485734292973074",
"orderNum": "2-12042024000003",
"createTime":
"2024-04-12T10:50:24",
"entries": [
{
"articleId": "1001626DC",
"productId": "1001624DC",
"articleName": "Ботинки
мужские демисезон",
"asset": {
"id": "886b5712-8d65-4056-a6b5-8297181e7697",
"media": {
"url":
"master/catalog/images/1706265245789-1882559365.png",
"absoluteUrl":
"https://test-ecom-media.digitalchief.tech/master/catalog/images/1706265245789-1882559365.png",
"name":
"adelinacasas_2024-01-24.png",
"type": "PHOTO",
"size": 262377,
"resolution": "900x1200 px",
"createdDate": "2024-01-26T13:34:26.01"
},
"title":
"adelinacasas_2024-01-24",
"altAttr": "adelinacasas_2024-01-24",
"description":
"описание",
"sign": "подпись",
"tags": [
"теги"
]
},
"availability":
{
"id":
"3bbbac39-4460-446d-89f6-73a3e2876aa2",
"articleId": "1001626DC",
"quantity":
20,
"replenishmentTime": 0,
"locationCode": "A003-01"
},
"quantity": 2,
"unitPrice": 1200,
"discountUnitPrice": 1200,
"price": 2400,
"discountPrice": 2400,
"discountSum": 0
}
],
"shippingAddress": {
"id": null,
"company": null,
"address": null,
"city": null,
"zipCode": null,
"poBox": null,
"country":
null
},
"shippingRecipient": {
"firstName": null,
"lastName":
null,
"phone": null
},
"billingAddress": {
"id":
"409",
"firstName": "Ольга",
"lastName": "Иванова",
"company": "Крайнет",
"address": "Центральная",
"city": "Москва",
"zipCode": "231123",
"poBox": "223232",
"country": "Россия"
},
"charges": [
{
"type": "shipping",
"amount": 0
}
],
"cartPrice": 2400,
"totalPrice": 2400,
"discountPrice": 2400,
"discountSum":
0,
"currencyId":
"90e5fed1-1eaa-4e45-8574-b687605817fd",
"cartId": "1-12042024000003",
"orderStatus":
"PENDING",
"user": {
"id": "227485734292973074",
"firstName": "Ольга",
"lastName": "Иванова",
"email": "ivanova@pochta.ru",
"registrationTime": "2023-08-30T12:12:17.834",
"registrationCompleted": true,
"addressDto": {
"id": "409",
"firstName": "Ольга",
"lastName": "Иванова",
"company": "Крайнет",
"address": "Центральная",
"city": "Москва",
"zipCode": "231123",
"poBox": "223232",
"country": "Россия"
}
},
"shippingInfo": {
"deliveryDate": "12.04.2024 10:50",
"deliveryPrice": 0
}
},
{
"id": "e67ddca5-2771-4425-ae1f-bf8fa6f5fabb",
"customerId": "227485734292973074",
"orderNum": "2-12042024000002",
"createTime":
"2024-04-12T10:49:21",
"entries": [
{
"articleId": "1001626DC",
"productId": "1001624DC",
"articleName": "Ботинки
мужские демисезон",
"asset": {
"id": "886b5712-8d65-4056-a6b5-8297181e7697",
"media": {
"url":
"master/catalog/images/1706265245789-1882559365.png",
"absoluteUrl":
"https://test-ecom-media.digitalchief.tech/master/catalog/images/1706265245789-1882559365.png",
"name":
"adelinacasas_2024-01-24.png",
"type": "PHOTO",
"size": 262377,
"resolution": "900x1200 px",
"createdDate": "2024-01-26T13:34:26.01"
},
"title":
"adelinacasas_2024-01-24",
"altAttr": "adelinacasas_2024-01-24",
"description":
"описание",
"sign": "подпись",
"tags": [
"теги"
]
},
"availability":
{
"id":
"3bbbac39-4460-446d-89f6-73a3e2876aa2",
"articleId": "1001626DC",
"quantity":
20,
"replenishmentTime": 0,
"locationCode": "A003-01"
},
"quantity": 2,
"unitPrice": 1200,
"discountUnitPrice": 1200,
"price": 2400,
"discountPrice": 2400,
"discountSum": 0
}
],
"shippingAddress": {
"id": null,
"company": null,
"address": null,
"city": null,
"zipCode": null,
"poBox": null,
"country":
null
},
"shippingRecipient": {
"firstName": null,
"lastName":
null,
"phone": null
},
"billingAddress": {
"id":
"409",
"firstName": "Ольга",
"lastName": "Иванова",
"company": "Крайнет",
"address": "Центральная",
"city": "Москва",
"zipCode": "231123",
"poBox": "223232",
"country": "Россия"
},
"charges": [
{
"type": "shipping",
"amount": 0
}
],
"cartPrice": 2400,
"totalPrice": 2400,
"discountPrice": 2400,
"discountSum":
0,
"currencyId":
"90e5fed1-1eaa-4e45-8574-b687605817fd",
"cartId": "1-12042024000003",
"orderStatus":
"PENDING",
"user": {
"id": "227485734292973074",
"firstName": "Ольга",
"lastName": "Иванова",
"email": "ivanova@pochta.ru",
"registrationTime": "2023-08-30T12:12:17.834",
"registrationCompleted": true,
"addressDto": {
"id": "409",
"firstName": "Ольга",
"lastName": "Иванова",
"company": "Крайнет",
"address": "Центральная",
"city": "Москва",
"zipCode": "231123",
"poBox": "223232",
"country": "Россия"
}
},
"shippingInfo": {
"deliveryDate": "12.04.2024 10:49",
"deliveryPrice": 0
}
},
{
"id": "6f97ad47-2d96-4948-a8e2-c7e3ddf28f47",
"customerId": "227485734292973074",
"orderNum": "2-12042024000001",
"createTime":
"2024-04-12T10:47:47",
"entries": [
{
"articleId": "1001626DC",
"productId": "1001624DC",
"articleName": "Ботинки
мужские демисезон",
"asset": {
"id": "886b5712-8d65-4056-a6b5-8297181e7697",
"media": {
"url":
"master/catalog/images/1706265245789-1882559365.png",
"absoluteUrl":
"https://test-ecom-media.digitalchief.tech/master/catalog/images/1706265245789-1882559365.png",
"name":
"adelinacasas_2024-01-24.png",
"type": "PHOTO",
"size": 262377,
"resolution": "900x1200 px",
"createdDate": "2024-01-26T13:34:26.01"
},
"title":
"adelinacasas_2024-01-24",
"altAttr": "adelinacasas_2024-01-24",
"description":
"описание",
"sign": "подпись",
"tags": [
"теги"
]
},
"availability":
{
"id":
"3bbbac39-4460-446d-89f6-73a3e2876aa2",
"articleId": "1001626DC",
"quantity":
20,
"replenishmentTime": 0,
"locationCode": "A003-01"
},
"quantity": 2,
"unitPrice": 1200,
"discountUnitPrice": 1200,
"price": 2400,
"discountPrice": 2400,
"discountSum": 0
}
],
"shippingAddress": {
"id": null,
"company": null,
"address": null,
"city": null,
"zipCode": null,
"poBox": null,
"country":
null
},
"shippingRecipient": {
"firstName": null,
"lastName":
null,
"phone": null
},
"billingAddress": {
"id":
"409",
"firstName": "Ольга",
"lastName": "Иванова",
"company": "Крайнет",
"address": "Центральная",
"city": "Москва",
"zipCode": "231123",
"poBox": "223232",
"country": "Россия"
},
"charges": [
{
"type": "shipping",
"amount": 0
}
],
"cartPrice": 2400,
"totalPrice": 2400,
"discountPrice": 2400,
"discountSum":
0,
"currencyId":
"90e5fed1-1eaa-4e45-8574-b687605817fd",
"cartId": "1-12042024000003",
"orderStatus":
"PENDING",
"user": {
"id": "227485734292973074",
"firstName": "Ольга",
"lastName": "Иванова",
"email": "ivanova@pochta.ru",
"registrationTime": "2023-08-30T12:12:17.834",
"registrationCompleted": true,
"addressDto": {
"id": "409",
"firstName": "Ольга",
"lastName": "Иванова",
"company": "Крайнет",
"address": "Центральная",
"city": "Москва",
"zipCode": "231123",
"poBox": "223232",
"country": "Россия"
}
},
"shippingInfo": {
"deliveryDate": "12.04.2024 10:47",
"deliveryPrice": 0
}
}
]
200 - операция выполнена успешно, получен список заказов