Hello everyone, I have the code below... but it's not giving me the newsletter subscription status. Please assist.
$api = "rest/V1/customers/search";
$json = '
{
"search_criteria": {
"filter_groups": [
{
"filters": [
],
"filters": [
{
"field": "created_at",
"value": "' . $start . '",
"condition_type": "gt"
}
]
},
{
"filters": [
],
"filters": [
{
"field": "created_at",
"value": "' . $end . '",
"condition_type": "lt"
}
]
}
]
}
}';
$ch = curl_init(urldecode("https://www.example.com/index.php/" . $api . "?" . http_build_query(json_decode($json))))
I can see it on my dashboard, but the returned results are not showing this field!
https://imgur.com/a/3cIRBZQ