Примеры для сайта site.ru с ключом доступа 1234562f5a3cc1a97f164df9df55d826
Получение списка статусов заказов
http://site.ru/api/v1/order_statuses/get_list POST Data: secret_key=1234562f5a3cc1a97f164df9df55d826
Пример ответа от сервера:
Array ( [status] => ok [data] => Array ( [0] => Array ( [order_status_id] => Array ( [type] => int_unsigned_not_null [edit] => [value] => 1 ) [order_status_name] => Array ( [type] => str [edit] => [value] => Новый ) [order_status_desc] => Array ( [type] => str [edit] => [value] => Новый заказ ) ) [1] => Array ( [order_status_id] => Array ( [type] => int_unsigned_not_null [edit] => [value] => 2 ) [order_status_name] => Array ( [type] => str [edit] => [value] => В обработке ) [order_status_desc] => Array ( [type] => str [edit] => [value] => Заказ обрабатывается ) ) [2] => Array ( [order_status_id] => Array ( [type] => int_unsigned_not_null [edit] => [value] => 3 ) [order_status_name] => Array ( [type] => str [edit] => [value] => Согласован ) [order_status_desc] => Array ( [type] => str [edit] => [value] => Заказ согласован ) ) [3] => Array ( [order_status_id] => Array ( [type] => int_unsigned_not_null [edit] => [value] => 10 ) [order_status_name] => Array ( [type] => str [edit] => [value] => Ожидает оплаты ) [order_status_desc] => Array ( [type] => str [edit] => [value] => Заказ ожидает оплаты ) ) [4] => Array ( [order_status_id] => Array ( [type] => int_unsigned_not_null [edit] => [value] => 13 ) [order_status_name] => Array ( [type] => str [edit] => [value] => Ожидает товара ) [order_status_desc] => Array ( [type] => str [edit] => [value] => Заказ в ожидании товара ) ) [5] => Array ( [order_status_id] => Array ( [type] => int_unsigned_not_null [edit] => [value] => 8 ) [order_status_name] => Array ( [type] => str [edit] => [value] => Собран ) [order_status_desc] => Array ( [type] => str [edit] => [value] => Заказ собран ) ) [6] => Array ( [order_status_id] => Array ( [type] => int_unsigned_not_null [edit] => [value] => 4 ) [order_status_name] => Array ( [type] => str [edit] => [value] => Отгружен ) [order_status_desc] => Array ( [type] => str [edit] => [value] => Заказ отгружен ) ) [7] => Array ( [order_status_id] => Array ( [type] => int_unsigned_not_null [edit] => [value] => 9 ) [order_status_name] => Array ( [type] => str [edit] => [value] => Отправлен ) [order_status_desc] => Array ( [type] => str [edit] => [value] => Заказ отправлен ) ) [8] => Array ( [order_status_id] => Array ( [type] => int_unsigned_not_null [edit] => [value] => 12 ) [order_status_name] => Array ( [type] => str [edit] => [value] => Прибыл ) [order_status_desc] => Array ( [type] => str [edit] => [value] => Заказ прибыл ) ) [9] => Array ( [order_status_id] => Array ( [type] => int_unsigned_not_null [edit] => [value] => 5 ) [order_status_name] => Array ( [type] => str [edit] => [value] => Доставлен ) [order_status_desc] => Array ( [type] => str [edit] => [value] => Заказ доставлен ) ) [10] => Array ( [order_status_id] => Array ( [type] => int_unsigned_not_null [edit] => [value] => 6 ) [order_status_name] => Array ( [type] => str [edit] => [value] => Отменен ) [order_status_desc] => Array ( [type] => str [edit] => [value] => Заказ отменен ) ) [11] => Array ( [order_status_id] => Array ( [type] => int_unsigned_not_null [edit] => [value] => 11 ) [order_status_name] => Array ( [type] => str [edit] => [value] => Возврат ) [order_status_desc] => Array ( [type] => str [edit] => [value] => Заказ возвращён ) ) [12] => Array ( [order_status_id] => Array ( [type] => int_unsigned_not_null [edit] => [value] => 7 ) [order_status_name] => Array ( [type] => str [edit] => [value] => В ожидании ) [order_status_desc] => Array ( [type] => str [edit] => [value] => Заказ в режиме ожидания ) ) ) ) )
Получение информации о статусе заказа с номером 1
http://site.ru/api/v1/order_statuses/get/1 POST Data: secret_key=1234562f5a3cc1a97f164df9df55d826
Пример ответа от сервера:
Array ( [status] => ok [data] => Array ( [order_status_id] => Array ( [type] => int_unsigned_not_null [edit] => [value] => 1 ) [order_status_name] => Array ( [type] => str [edit] => [value] => Новый ) [order_status_desc] => Array ( [type] => str [edit] => [value] => Новый заказ ) ) )