New answers tagged

0

/V1/customers/me This endpoint is available only for customer and with ajax.


1

I think you should use rest/all/V1/orders https://example.com/rest/all/V1/orders?searchCriteria[filterGroups][0][filters][0][field]=created_at&searchCriteria[filterGroups][0][filters][0][value]=2020-06-28 00:00:00&searchCriteria[filterGroups][0][filters][0][conditionType]=eq;


0

I would try with between both dates the day your seek and the next that you can calculate: $date = $params['date']; $timestamp = strtotime($date); $day = date('d', $timestamp); $month = date('m', $timestamp); $year = date('Y', $timestamp); $nextDay = sprintf('%s-%s-%s', $year, $month, $day + 1); either like the one line style you use: searchCriteria[...


0

change the value of $api_request $api_request = 'https://domain.com/rest/V1/orders?searchCriteria[filterGroups][0][filters][0][field]=created_at&searchCriteria[filterGroups][0][filters][0][value]=2020-06-28 00:00:00&searchCriteria[filterGroups][0][filters][0][conditionType]=eq; Pass value of created_at like this - 2020-06-28 00:00:00, Instead of ...


1

try this one, the response will have only these fields. entity_id, billing_address,customer_firstname, and customer_lastname only http://www.domain.com/rest/V1/orders? searchCriteria[filter_groups][0][filters][0][field]=entity_id& searchCriteria[filter_groups][0][filters][0][value]=1& searchCriteria[filter_groups][0][filters][0][condition_type]=gteq&...


0

This was fixed in 2.2.x, see: REST API: Cannot delete custom attribute from product #10807 for issue thread, and Support null value for custom attributes. for the fix


0

It's actually really easy, I just used the /rest/V1/orders/{orderId}/comments { "statusHistory": { "is_customer_notified": 1, "parent_id": your order Id, "status": "Your order status", "comment": "Your message", ...


Top 50 recent answers are included