Re: RESTAPI Question to Retrieve Customer Address
Hello,
We want to retrieve customer/use address details from single User module and also from order related customers...
Using customer id.. says id=88;
We are trying to get hid address details. using follow request.
$addressDetails = $customerDetails['addresses'];
We are getting the array called is_billing=1 and is_shipping=1
Form that id we are trying to fetch the bolling address and shipping address of particular customer...
E.g address_id is 345;
billingaddressID=$addressDetails[$j]['address_id'];
When we ftech the records all the indexes are different for every customer.
How can we get correct information like first name,last name. street,city,country from that index.??
[addressFields] => Array ( [0] => Array ( [id] => 989 [value] => TG ) [1] => Array ( [id] => 990 [value] => ashish ) [2] => Array ( [id] => 991 [value] => user ) [3] => Array ( [id] => 992 [value] => 101 S Main St ) [4] => Array ( [id] => 993 [value] => Los Angeles ) [5] => Array ( [id] => 994 [value] => 562 ) [6] => Array ( [id] => 995 [value] => California ) [7] => Array ( [id] => 996 [value] => 90012-3701 ) [8] => Array ( [id] => 997 [value] => ) )
Above Index changes its value for every customer. How can we fix this issue?
__________________
ashish
Xcart version :-X-Cart
Business 5.3.2.8
|