I'm running the following request to search products by SKU using the Magento 2 REST API:
curl -X GET "http://localhost/rest/V1/products?searchCriteria[filterGroups][0][filters][0][field]=sku&searchCriteria[filterGroups][0][filters][0][value]=%24-MB01%&searchCriteria[filterGroups][0][filters][0][conditionType]=like"
Summary: look for products with sku that contain the string "24-MB01"
Disregarding auth and content params, the issue is that the value %24-MB01% is misinterpreted as $-MB01% by the API as you can see:
{
"total_count" : 0,
"search_criteria" : {
"filter_groups" : [
{
"filters" : [
{
"condition_type" : "like",
"value" : "$-MB01%",
"field" : "sku"
}
]
}
]
},
"items" : []
}
How can I escape it?