Magento 2: Примеры запросов API через CLI
Пример получения данных заказа (ордера)
curl -X GET "http://mystore.loc/rest/all/V1/orders/255" \ -H "accept: application/json" \ -H "Authorization: Bearer z5gv2s1ce9zmhgaxpz2002jcn050ln7a"Пример получения списка заказов (ордеров)
curl -X GET "http://mystore.loc/rest/all/V1/orders?searchCriteria%5BpageSize%5D=2&searchCriteria%5BcurrentPage%5D=1" \ -H "accept: application/json" \ -H "Authorization: Bearer z5gv2s1ce9zmhgaxpz2002jcn050ln7a"