hno2005 Posted May 24, 2017 Share Posted May 24, 2017 0down votefavorite I want to retrieve my customer addresses. This is the code I have for returning the customer data: $webService = new PrestaShopWebservice(PS_SHOP_PATH, PS_WS_AUTH_KEY, DEBUG); $xml = $webService->get(array('url' => 'http://example.com/api/customers/104')); $resources = $xml->children()->children(); Link to comment Share on other sites More sharing options...
pedepot Posted August 21, 2017 Share Posted August 21, 2017 Hello, Curiously the association between the customers and the addresses is not bi-directional. Look through http://example.com/api/addresses and look for the record that has the property <id_customer xlink:href="http://example.com/api/customers/104">104</id_customer>. You may find many by the way! I hope it helps! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now