/api/client/v1/cart/order Оформить заказы в корзине
Parameters
Name | Description |
test boolean (query) | Default value : false |
Request body
{
"codes_order": "471999441;471999442;471999443",
"code_region": 1,
"email": "[email protected]",
"client_name": "Иван",
"name_first": "Иван",
"name_last": "Иванов",
"name_second": "Иванович",
"phone": "+79451234567",
"notify_sms": false,
"comment": ""
}
Responses
Сurl
curl -X 'POST' \
'https://b52-api.zzap.pro/api/client/v1/cart/order?test=false' \
-H 'accept: */*' \
-H 'Content-Type: application/json' \
-d '{
"codes_order": "471999441;471999442;471999443",
"code_region": 1,
"email": "[email protected]",
"client_name": "Иван",
"name_first": "Иван",
"name_last": "Иванов",
"name_second": "Иванович",
"phone": "+79451234567",
"notify_sms": false,
"comment": ""
}'
Request URL
https://b52-api.zzap.pro/api/client/v1/cart/order?test=false
Server response
Code | Details |
401Undocumented | Error: response status is 401Response bodyDownload{ "result": {}, "result_info": {}, "success": false, "code": 401, "errors": { "error": "zzap-api-key не прошел проверку, в доступе отказано!" } } Response headers cf-cache-status: DYNAMIC cf-ray: 92e215faab699311-CPH content-type: application/json; charset=utf-8 date: Thu,10 Apr 2025 12:00:47 GMT server: cloudflare strict-transport-security: max-age=2592000 x-powered-by: ASP.NET |
Responses
Code | Description | Links |
200 | OK | No links |
/api/client/v1/cart Новый заказ в корзине
Parameters
Name | Description |
test boolean (query) | Default value : false |
Request body
{
"qty_order": 5,
"comment": "string",
"code_doc_b": 0,
"code_cur": 5,
"code_region": 5
}
Responses
Curl
curl -X 'POST' \
'https://b52-api.zzap.pro/api/client/v1/cart?test=false' \
-H 'accept: */*' \
-H 'Content-Type: application/json' \
-d '{
"qty_order": 5,
"comment": "string",
"code_doc_b": 0,
"code_cur": 5,
"code_region": 5
}'
Request URL
https://b52-api.zzap.pro/api/client/v1/cart?test=false
Server response
Code | Details |
401Undocumented | Error: response status is 401 |
Response body
{
"result": {},
"result_info": {},
"success": false,
"code": 401,
"errors": {
"error": "zzap-api-key не прошел проверку, в доступе отказано!"
}
}
Response headers
cf-cache-status: DYNAMIC cf-ray: 92faea7a092a8dab-HEL content-type: application/json; charset=utf-8 date: Sun,13 Apr 2025 12:20:10 GMT server: cloudflare strict-transport-security: max-age=2592000 x-powered-by: ASP.NET
Responses
Code | Description | Links |
200 | OK | No links |
/api/client/v1/cart Список заказов из корзины
Parameters
Name | Description |
---|---|
page integer($int32) (query) | номер страницы с данными, где page >= 1 и page * pageSize <= 1000 Default value : 1 |
page_size integer($int32) (query) | размер страницы с данными, где pageSize <= 1000 Default value : 1000 |
refresh boolean (query) | Default value : false |
Responses
Code | Description | Links |
200 | OK | No links |
Media type
application/json
Example Value
{
"success": true,
"code": 0,
"errors": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"result": {
"data": [
{
"code_order": 0,
"code_doc_b": "string",
"create_date": "2025-04-13T12:26:31.831Z",
"client_name": "string",
"qty_order": 0,
"qty": 0,
"descr_qty": "string",
"qty_max": 0,
"delivery_days": 0,
"descr_delivery": "string",
"partnumber": "string",
"comment": "string",
"class_man": "string",
"logopath": "string",
"class_cat": "string",
"imagepath": "string",
"seller_name": "string",
"user_key": "string",
"seller_rating_count": "string",
"seller_rating": 0,
"used": true,
"apply": "string",
"min_sum_order": 0,
"descr_min_sum_order": "string",
"shipment": "string",
"price": 0,
"descr_price": "string",
"price_orig": 0,
"descr_price_orig": "string",
"type_price": "string",
"descr_type_price": "string",
"type_user": "string",
"type_user2": "string",
"imagepath_v2": [
"string"
],
"pack": 0,
"descr_pack": "string",
"code_man": 0,
"location": "string"
}
]
},
"result_info": {
"page": 1,
"page_size": 50,
"count": 50,
"total_count": 1000
}
}
Schema
CartItemDtoInfoApiResponse{
description: | Данные ответа апи |
success | [...] |
code | [...] |
errors | {...} nullable: true |
result | CartItemDtoResponseResult{...} |
result_info | Info{...} |
}
/api/client/v1/cart/order Оформить заказы в корзине (вариант 2)
Parameters
Name | Description |
test boolean (query) | Default value : false |
Request body
{
"codes_order": "471999441;471999442;471999443",
"code_region": 1,
"email": "[email protected]",
"client_name": "Иван",
"name_first": "Иван",
"name_last": "Иванов",
"name_second": "Иванович",
"phone": "+79451234567",
"notify_sms": false,
"comment": ""
}
https://b52-api.zzap.pro/api/client/v1/cart/order?test=false
Входные параметры (для JSON API передаются в GET или POST параметрах запроса):
Параметр | Тип | Обязательный | Описание |
login | string | да | e-mail, указанный при регистрации на сайте ZZap |
password | string | да | ваш пароль от аккаунта на сайте ZZap |
codes_order | string | да | перечисление через точку с запятой уникальных кодов оформленных заказов |
client_name | string | да | ФИО заказчика (может отличаться от имени, указанного в аккаунте при регистрации) |
client_email | string | да | e-mail заказчика (может отличаться от e-mail, указанного в аккаунте при регистрации) |
client_phone | string | да | телефон заказчика (может отличаться от телефона, указанного в аккаунте при регистрации) |
notify_sms | string | да | false - не оповещать по смс, true - оповещать по смс |
client_code_region | string | да | код региона покупателя (определите с помощью метода GetRegions) |
name_first | string | да | имя |
name_second | string | нет | отчество |
name_last | string | да | фамилия |
api_key | string | да | нужно попросить у нас |
test | string | да | true (режим теста): новый пользователь зарегистрирован не будет, заказ не будет сформирован. остальные значения - false (обычный рабочий режим): новый пользователь будет зарегистрирован, заказ будет сформирован и отправлен продавцу |
Выходные параметры:
Параметр | Тип | Обязательный | Описание |
error | string | да | если пусто, ошибок нет |
codes_order | string | да | перечисление через точку с запятой уникальных кодов заказов в корзине |
/api/client/v1/cart Новый заказ в корзине (вариант 2)
Parameters
Name | Description |
test boolean (query) | Default value : false |
Request body
{
"qty_order": 5,
"comment": "string",
"code_doc_b": 0,
"code_cur": 5,
"code_region": 5
}
https://b52-api.zzap.pro/api/client/v1/cart?test=false
/api/client/v1/catalog/disks Каталог Disks (с помощью ИИ)
Название метода: Каталог Disks
HTTP-метод: POST
URL: /api/client/v1/catalog/disks
Ссылка на Swagger: https://b52-api.zzap.pro/swagger/index.html?urls.primaryName=ZZap+API+v1#/Catalogs/post_api_client_v1_catalog_disks
Входные параметры
Параметры запроса
Параметр | Тип | Обязательный | Описание |
---|---|---|---|
code_region | Integer (SInt32) | Нет | Код региона (по умолчанию: -1) |
page | Integer (SInt32) | Нет | Номер страницы с данными, где page >= 1 (по умолчанию: 1) |
pageSize | Integer (SInt32) | Нет | Размер страницы с данными, где pageSize <= 1000 (по умолчанию: 1000) |
Выходные параметры
Параметр | Тип | Описание |
---|---|---|
success | Boolean | Успешность выполнения запроса |
code | Integer (SInt32) | Код ответа |
errors | Object | Объект ошибок |
nullable: true | ||
result | CatalogDisksItemDtoResponseResult | Результат выполнения запроса |
result.data | Array of CatalogDisksItemDto | Список дисков |
result.data[].id | String | |
result.data[].logopath | String | nullable: true |
result.data[].partner | String | nullable: true |
result.data[].class_cat | String | nullable: true |
result.data[].code_cat | String | nullable: true |
result.data[].ingepart | String | nullable: true |
result.data[].code_man | String | nullable: true |
result.data[].comment | String | nullable: true |
result.data[].price_min | Number | nullable: true |
result.data[].price_med | Number | nullable: true |
result.data[].price_max | Number | nullable: true |
result.data[].price_count | Integer (SInt32) | nullable: true |
result.data[].tag_r | String | nullable: true |
result.data[].tag_i | String | nullable: true |
result.data[].tag_e | String | nullable: true |
result.data[].tag_p | String | nullable: true |
result.data[].tag_b | String | nullable: true |
result.data[].tag_d | String | nullable: true |
result.data[].tag_c | String | nullable: true |
result.info | InfoCatalogDisks | Информация о пагинации |
result.info.page | Integer (SInt32) | Номер текущей страницы |
result.info.page_size | Integer (SInt32) | Размер страницы |
result.info.count | Integer (SInt32) | Количество записей на текущей странице |
result.info.total_count | Integer (SInt32) | Общее количество записей |
result.info.class_man_enum | Array of String | nullable: true |
result.info.tag_r_enum | Array of String | nullable: true |
result.info.tag_i_enum | Array of String | nullable: true |
result.info.tag_e_enum | Array of String | nullable: true |
result.info.tag_p_enum | Array of String | nullable: true |
result.info.tag_b_enum | Array of String | nullable: true |
result.info.tag_d_enum | Array of String | nullable: true |
result.info.tag_c_enum | Array of String | nullable: true |
Возможные ошибки
Код | Описание |
---|---|
400 | Неверный формат запроса |
401 | Отсутствует/неверный токен |
429 | Превышен лимит запросов |
500 | Внутренняя ошибка сервера |