МойСклад
Интеграция с МойСклад.
Создать товар или услугу в МойСклад
В: header
Тело запроса
application/json
TypeScript-определения
Используйте тип request body в TypeScript.
Тело ответа
application/json
application/problem+json
curl -X POST "https://loading/api/v1/integrations/moysklad/assortment" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "type": "product" }'{
"property1": null,
"property2": null
}{
"code": "string",
"detail": "string",
"errors": [
{
"name": "string",
"pointer": "string",
"reason": "string",
"rule": "string"
}
],
"instance": "string",
"request_id": "string",
"status": 0,
"title": "string",
"trace_id": "string",
"type": "http://example.com",
"property1": null,
"property2": null
}Подключить МойСклад по токену
В: header
Тело запроса
application/json
TypeScript-определения
Используйте тип request body в TypeScript.
Тело ответа
application/json
application/problem+json
curl -X POST "https://loading/api/v1/integrations/moysklad/connect" \ -H "Content-Type: application/json" \ -d '{ "token": "string" }'{
"organizationName": "string",
"success": true
}{
"code": "string",
"detail": "string",
"errors": [
{
"name": "string",
"pointer": "string",
"reason": "string",
"rule": "string"
}
],
"instance": "string",
"request_id": "string",
"status": 0,
"title": "string",
"trace_id": "string",
"type": "http://example.com",
"property1": null,
"property2": null
}Создать контрагента в МойСклад
В: header
Тело запроса
application/json
TypeScript-определения
Используйте тип request body в TypeScript.
Тело ответа
application/json
application/problem+json
curl -X POST "https://loading/api/v1/integrations/moysklad/counterparties" \ -H "Content-Type: application/json" \ -d '{ "name": "string" }'{
"property1": null,
"property2": null
}{
"code": "string",
"detail": "string",
"errors": [
{
"name": "string",
"pointer": "string",
"reason": "string",
"rule": "string"
}
],
"instance": "string",
"request_id": "string",
"status": 0,
"title": "string",
"trace_id": "string",
"type": "http://example.com",
"property1": null,
"property2": null
}Список записей справочника МойСклад
В: header
Параметры пути
Параметры запроса
Тело ответа
application/json
application/problem+json
curl -X GET "https://loading/api/v1/integrations/moysklad/dictionaries/string"{
"property1": null,
"property2": null
}{
"code": "string",
"detail": "string",
"errors": [
{
"name": "string",
"pointer": "string",
"reason": "string",
"rule": "string"
}
],
"instance": "string",
"request_id": "string",
"status": 0,
"title": "string",
"trace_id": "string",
"type": "http://example.com",
"property1": null,
"property2": null
}Получить запись справочника МойСклад
В: header
Параметры пути
Тело ответа
application/json
application/problem+json
curl -X GET "https://loading/api/v1/integrations/moysklad/dictionaries/string/string"{
"property1": null,
"property2": null
}{
"code": "string",
"detail": "string",
"errors": [
{
"name": "string",
"pointer": "string",
"reason": "string",
"rule": "string"
}
],
"instance": "string",
"request_id": "string",
"status": 0,
"title": "string",
"trace_id": "string",
"type": "http://example.com",
"property1": null,
"property2": null
}curl -X POST "https://loading/api/v1/integrations/moysklad/disconnect"{
"success": true
}Создать счёт покупателю в МойСклад
В: header
Тело запроса
application/json
TypeScript-определения
Используйте тип request body в TypeScript.
Тело ответа
application/json
application/problem+json
curl -X POST "https://loading/api/v1/integrations/moysklad/documents/invoiceout" \ -H "Content-Type: application/json" \ -d '{ "counterpartyId": "string", "name": "string", "organizationId": "string", "positions": [ { "assortmentId": "string", "assortmentType": "product", "priceKopecks": 0, "quantity": 1 } ] }'{
"property1": null,
"property2": null
}{
"code": "string",
"detail": "string",
"errors": [
{
"name": "string",
"pointer": "string",
"reason": "string",
"rule": "string"
}
],
"instance": "string",
"request_id": "string",
"status": 0,
"title": "string",
"trace_id": "string",
"type": "http://example.com",
"property1": null,
"property2": null
}Список документов МойСклад
В: header
Параметры пути
Параметры запроса
Тело ответа
application/json
application/problem+json
curl -X GET "https://loading/api/v1/integrations/moysklad/documents/string"{
"property1": null,
"property2": null
}{
"code": "string",
"detail": "string",
"errors": [
{
"name": "string",
"pointer": "string",
"reason": "string",
"rule": "string"
}
],
"instance": "string",
"request_id": "string",
"status": 0,
"title": "string",
"trace_id": "string",
"type": "http://example.com",
"property1": null,
"property2": null
}Документ МойСклад по ID с позициями
В: header
Параметры пути
Тело ответа
application/json
application/problem+json
curl -X GET "https://loading/api/v1/integrations/moysklad/documents/string/string"{
"property1": null,
"property2": null
}{
"code": "string",
"detail": "string",
"errors": [
{
"name": "string",
"pointer": "string",
"reason": "string",
"rule": "string"
}
],
"instance": "string",
"request_id": "string",
"status": 0,
"title": "string",
"trace_id": "string",
"type": "http://example.com",
"property1": null,
"property2": null
}Печатная форма документа МойСклад (файл в ответе)
В: header
Параметры пути
Параметры запроса
"pdf" | "xls" | "ods" | "html"Тело ответа
application/octet-stream
application/problem+json
application/problem+json
curl -X GET "https://loading/api/v1/integrations/moysklad/documents/string/string/print"{
"property1": null,
"property2": null
}{
"code": "string",
"detail": "string",
"errors": [
{
"name": "string",
"pointer": "string",
"reason": "string",
"rule": "string"
}
],
"instance": "string",
"request_id": "string",
"status": 0,
"title": "string",
"trace_id": "string",
"type": "http://example.com",
"property1": null,
"property2": null
}{
"code": "string",
"detail": "string",
"errors": [
{
"name": "string",
"pointer": "string",
"reason": "string",
"rule": "string"
}
],
"instance": "string",
"request_id": "string",
"status": 0,
"title": "string",
"trace_id": "string",
"type": "http://example.com",
"property1": null,
"property2": null
}Список сущностей справочника МойСклад (расширенный набор типов)
В: header
Параметры пути
Параметры запроса
Тело ответа
application/json
application/problem+json
curl -X GET "https://loading/api/v1/integrations/moysklad/entities/string"{
"property1": null,
"property2": null
}{
"code": "string",
"detail": "string",
"errors": [
{
"name": "string",
"pointer": "string",
"reason": "string",
"rule": "string"
}
],
"instance": "string",
"request_id": "string",
"status": 0,
"title": "string",
"trace_id": "string",
"type": "http://example.com",
"property1": null,
"property2": null
}Сущность справочника МойСклад по ID (расширенный набор типов)
В: header
Параметры пути
Тело ответа
application/json
application/problem+json
curl -X GET "https://loading/api/v1/integrations/moysklad/entities/string/string"{
"property1": null,
"property2": null
}{
"code": "string",
"detail": "string",
"errors": [
{
"name": "string",
"pointer": "string",
"reason": "string",
"rule": "string"
}
],
"instance": "string",
"request_id": "string",
"status": 0,
"title": "string",
"trace_id": "string",
"type": "http://example.com",
"property1": null,
"property2": null
}Разрешить сущность МойСклад в каноническую форму
В: header
Параметры пути
Тело ответа
application/json
application/problem+json
curl -X GET "https://loading/api/v1/integrations/moysklad/resolve/string/string"{
"property1": null,
"property2": null
}{
"code": "string",
"detail": "string",
"errors": [
{
"name": "string",
"pointer": "string",
"reason": "string",
"rule": "string"
}
],
"instance": "string",
"request_id": "string",
"status": 0,
"title": "string",
"trace_id": "string",
"type": "http://example.com",
"property1": null,
"property2": null
}Поиск сущностей в МойСклад
В: header
Параметры пути
Параметры запроса
Тело ответа
application/json
application/problem+json
curl -X GET "https://loading/api/v1/integrations/moysklad/search/string"{
"property1": null,
"property2": null
}{
"code": "string",
"detail": "string",
"errors": [
{
"name": "string",
"pointer": "string",
"reason": "string",
"rule": "string"
}
],
"instance": "string",
"request_id": "string",
"status": 0,
"title": "string",
"trace_id": "string",
"type": "http://example.com",
"property1": null,
"property2": null
}curl -X GET "https://loading/api/v1/integrations/moysklad/status"{
"connected": true,
"status": "connected"
}