0

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!

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.