{
"secret_token": "your SECRET token",
"test_mode": true,
"order": {
"delivery_method_code": "boxberry_pvz",
"id": "test_order_1",
"delivery_price": 173,
"delivery_from_shop": false
},
"products": [{
"id": "1000",
"name": "Гантели",
"price_insurance": 5000,
"price_to_pay": 5000,
"weight": 10000
}],
"recipient": {
"city_id": "b2601b18-6da2-4789-9fbe-800dde06a2bb",
"full_name": "Валентин Петухов",
"phone": "79009999999",
"email": "hi@salesbeat.pro",
"courier": {
"street": "Вересаева",
"house": 4,
"flat": 121,
"date": "2018-10-17"
},
"pvz": {
"id": "71501"
}
},
"sender": {
"city_id": "0c5b2444-70a0-4932-980c-b4dc0d3f02b5",
"full_name": "Никита",
"phone": "74959999999",
"courier": {
"street": "Одесская",
"house": 2,
"house_block": "C",
"date": "2018-10-16"
},
"pvz": {
"id": "99401"
}
}
}
{
"success": true,
"track_code": "LUH1457199",
"order_id": "test_new_api_2",
"salesbeat_order_id": "10189"
}
{
"success": false,
"error_message": "Переданы неккоректные данные",
"error_code": "validation",
"error_list": [
{
"field": "order.delivery_price",
"message": "Поле \"order.delivery_price\" обязательно для заполнения"
},
{
"field": "recipient.city_id",
"message": "Поле \"recipient.city_id\" обязательно для заполнения"
}
]
}
{
"secret_token": "your SECRET token",
"test_mode": true,
"items": [{
"order": {
"delivery_method_code": "boxberry_pvz",
"id": "test_bulk_order_1",
"delivery_price": 173,
"delivery_from_shop": false
},
"products": [{
"id": "1000",
"name": "Гантели",
"price_insurance": 5000,
"price_to_pay": 5000,
"weight": 10000
}],
"recipient": {
"city_id": "b2601b18-6da2-4789-9fbe-800dde06a2bb",
"full_name": "Валентин Петухов",
"phone": "79009999999",
"email": "hi@salesbeat.pro",
"pvz": {
"id": "71501"
}
}
}, ...]
"sender": {
"city_id": "0c5b2444-70a0-4932-980c-b4dc0d3f02b5",
"pvz": {
"id": "99401"
}
}
}
{
"success": true,
"info_message": "Передано заказов в службы доставки: СДЭК – 2, Boxberry – 1."
"items": [
{
"success": true,
"order_id": "test_bulk_1",
"salesbeat_order_id": 54,
"status": "is_sending"
},
{
"success": false,
"error_message": "Переданы неккоректные данные",
"error_code": "validation",
"error_list": [
{
"field": "recipient.phone",
"message": "Поле \"recipient.phone\" обязательно для заполнения"
}
],
"order_id": "test_bulk_invalid_2"
}
]
}
{
"secret_token": "your SECRET token",
"test_mode": true,
"orders": [{
"delivery_method_code": "boxberry_pvz",
"track_code": "LUH1457223"
}, {
"salesbeat_order_id": "145"
}, {
"salesbeat_order_id": "166"
}],
"sender": {
"city_id": "0c5b2444-70a0-4932-980c-b4dc0d3f02b5",
"full_name": "Никита",
"phone": "74959999999",
"courier": {
"street": "Одесская",
"house": 2,
"house_block": "C",
"date": "2018-10-16"
}
}
}
{
"success": false,
"info_message": "Вызвали курьеров из служб доставки: Boxberry (2 заказа), СДЭК (1 заказ)",
"pick_ups": [
{
"salesbeat_order_id_list": [
3,
7,
8
],
"pick_up_number": "boxberry:7735"
}
],
"pick_ups_with_error": [
{
"salesbeat_order_id_list": [
5
],
"message": "API службы доставки СДЭК недоступно:( Попробуйте позже или выберите другую службу доставки."
}
]
}
{
"secret_token": "Your SECRET token",
"test_mode": true,
"order": {
"track_code": "LUH1457258",
"delivery_method_code": "boxberry_pvz",
"salesbeat_order_id": "199"
}
}
{
"success": true
}
{
"success": false,
"error_message": "Переданы неккоректные данные",
"error_code": "validation",
"error_list": [
{
"field": "salesbeat_order_id",
"message": "Заказ не найден в личном кабинете Boxberry"
}
]
}
{
"type": "delivery_order.status_changed",
"secret_token": "your SECRET token",
"data": {
"items": [{
"order_id": "1239",
"salesbeat_order_id": "sb12683",
"status":"sent",
"success": true,
"track_code": "LUH1459014"
}, {
"error_code": "delivery_service_error",
"error_list": [{
"field": null,
"message": "Ошибка входящих данных. \"order_id\" содержит недопустимые символы \"&\" (Код символа 38 )"
}],
"error_message": "Служба доставки ответила ошибкой",
"order_id": "1240",
"salesbeat_order_id": "sb12684",
"status": "sending_error",
"success":false
}]
}
}