How to get the list of registered customers via API?

URL: http://www.namedoseusite.com.br/api_customers.php?cid=&amp ;Search=&amp ;date_from=&amp ;date_to=&amp ;status=&am; = Customers








Parameter format description
Search get

Search by Customer Name, Last Name or Email Address
Only Text is Required

date_from get Date from for Filter Orders
Example: dd/mm/yyyy
date_to get Date to for Filter Orders
Example: DD/mm/yyyy
Status get Status for Filter Orders
1 = Active Or 0 = Inactive
Only Number is Required
Customers_Groups_id get Customers Groups for Filter Orders
Check the Api to Get the Customers Groups Id
Only Number Is Required
Customers_Language get English, Spanish, Japanese or Portuguese

Php Sample:

 // sample customers list

$ add_Query_order = ' ' ;;
$ SEARCH = ' ' ;;
if ($ search! = ' ') {
$ add_Query_order. = ' & amp; search = ' $ search;
}
$ date_from = ' ' ;;
if ($ date_from! = ' ') {
$ add_Query_order. = ' & amp; date_from = ' $ date_from;
}
$ date_to = ' ' ;;
if ($ date_to! = ' ') {
$ add_Query_order. = ' & amp; date_to = ' $ date_to;
}
$ status = ' ' ;;
if ($ status! = ' ') {
$ add_Query_order. = ' & amp; status = ' $ status;
}
$ customs_groups_id = ' ' ;;
if ($ customs_groups_id! = ' ') {
$ add_Query_order. = ' & amp; customs_groups_id = '
}
$ customs_language = ' ' ;;
if ($ customs_language! = ' ') {
$ add_Query_order. = ' & amp; customs_language = '
}

$ URL = $ tabain_url. ' /api_customers.php? Action = customs '. $ Add_Query_order;

$ CH = curl_init ($ URL);
Curl_Setopt ($ CH, Curlopt_Returntransfer, True);
curl_setopt ($ CH, curlopt_ssl_verifypeer, false);
Curl_Setopt ($ CH, Curlopt_httpheader, Array (
' CONTENT-TYPE: Application/JSON ',
"Cache-Control: No-Cache",
' Usuario1: ' . base64_encode ($ Usuario1),
' password1: ' . base64_encode ($ password1)))
);

$ result = curl_exec ($ CH);
Curl_Close ($ CH);

print_r ($ result);

// sample Customers list eof

return:

Note: Limit of 1000 Customers per Consult

Customers_id
Customers_lastName
Customers_FIRSTNAME
Date_account_created
Referral
Customers_status

Leave a Reply 0