Открыть главное меню

Изменения

API Orders

5242 байта добавлено, 02:01, 16 января 2020
Нет описания правки
]
}
===Orders Status Change Response==={| class="wikitable"! style="font-weight:bold;" | Name! style="font-weight:bold;" | Description! style="font-weight:bold;" | Schema! style="font-weight:bold;" | Example|-| style="font-weight:bold;" | id| Уникальный идентификатор заказа| integer($int32)| null|-| style="font-weight:bold;" | store_user_id| Идентификатор пользователя торговой точки| integer($int32)| ИП "Чип и Дейл" | маг. "Рокфор"|-| style="font-weight:bold;" | store_company_id| Идентификатор торговой точки| integer($int32)| 0|-| style="font-weight:bold;" | supplier_company_id| Идентификатор поставщика| integer($int32)| shop@me.kz|-| style="font-weight:bold;" | supplierCompanyName| Идентификатор названия поставщика| integer($int32)| Магазин для тестирования\r\n|-| style="font-weight:bold;" | status| Статус заказа| integer($int32)| Алматы, Байзакова, 125/185|-| style="font-weight:bold;" | created_at| Время создания заказа| integer($int32)| Телефон: +78000000001, Вн.: 123, Контактное лицо: Гайка|-| style="font-weight:bold;" | updated_at| Время обновления заказа| integer($int32)| store|-| style="font-weight:bold;" | with_documents| Доставка заказа с документами| integer($int32)| 0123456789|-| style="font-weight:bold;" | sum| Сумма заказа| integer($int32)| +78000000001|-| style="font-weight:bold;" | comments| Массив| < comments > array| |-| style="font-weight:bold;" | replacement_id| | integer| null|-| style="font-weight:bold;" | replacement_status| | integer| null|}'''Comments'''{| class="wikitable"! style="font-weight:bold;" | Name! style="font-weight:bold;" | Description! style="font-weight:bold;" | Schema! style="font-weight:bold;" | Example|-| style="font-weight:bold;" | id| Идентификатор комментария| integer| 75875|-| style="font-weight:bold;" | company_id| Идентификатор поставщика| integer| 84|-| style="font-weight:bold;" | message| Текст комментария| string| Вот такой комментарий|-| style="font-weight:bold;" | type| Статус заказа| string| 4|-| style="font-weight:bold;" | order_id| Уникальный идентификатор заказа| integer| 153390|-| style="font-weight:bold;" | created_at| Время создания| string| 1540376988|-| style="font-weight:bold;" | companyName| Идентификатор названия поставщика| string| ТОО "Поставщиk-"|-| style="font-weight:bold;" | is_system| Системное сообщение| string| null|}Пример ответа: { "id": 153390, "store_user_id": 656, "store_company_id": 80, "supplier_company_id": 84, "supplierCompanyName": "ТОО \"Поставщиk-\"", "status": 2, "created_at": 1497429666, "updated_at": 1497431046, "with_documents": 1, "sum": 8663, "comments": [ { "id": 75875, "company_id": 84, "message": "Вот такой комментарий", "type": 4, "order_id": 153390, "created_at": 1540376988, "companyName": "ТОО \"Поставщиk-\"", "is_system": "Null" } ], "replacement_id": null, "replacement_status": null }===401==={| class="wikitable"! style="font-weight:bold;" | Name! style="font-weight:bold;" | Description! style="font-weight:bold;" | Schema! style="font-weight:bold;" | Example|-| style="font-weight:bold;" | name| Название поставщика| string| Unauthorized|-| style="font-weight:bold;" | message| Сообщение| string| Your request was made with invalid credentials|-| style="font-weight:bold;" | code| Код| integer($int32)| 0|-| style="font-weight:bold;" | status| Статус| integer($int32)| 401|-| style="font-weight:bold;" | type| Тип| string| "yii\\web\\UnauthorizedHttpException"|}Пример ответа: { "name": "Unauthorized", "message": "Your request was made with invalid credentials.", "code": 0, "status": 401, "type": "yii\\web\\UnauthorizedHttpException" }===403==={| class="wikitable"! style="font-weight:bold;" | Name! style="font-weight:bold;" | Description! style="font-weight:bold;" | Schema! style="font-weight:bold;" | Example|-| style="font-weight:bold;" | name| Название поставщика| string| Forbidden|-| style="font-weight:bold;" | message| Сообщение| string| You're not allowed to delete this item|-| style="font-weight:bold;" | code| Код| integer($int32)| 0|-| style="font-weight:bold;" | status| Статус| integer($int32)| 403|-| style="font-weight:bold;" | type| Тип| string| "yii\\web\\HttpException"|}Пример ответа: { "name": "Forbidden", "message": "You're not allowed to delete this item.", "code": 0, "status": 403, "type": "yii\\\\web\\\\HttpException" }