Solved! Go to Solution.
Hi @lorigergely,
I've made a test with a vanilla installation.
As you can see my customer doesn't have the TaxVat.
I've made a SOAP request and this was the response.
Customer without TaxVat.
Then I've edited my customer and I've added some TaxVat value.
The new response was:
Then I've checked addresses.
For example, the default billing address of that customer.
As you can see, the response came without taxvat (and that was right).
Then I've edited the address and I've added some value on the TaxVat attribute.
And the new api response was correct.
Finally, this is my current Customer configuration. Is default.
And the code was:
<?php ini_set('max_execution_time','1000'); set_time_limit(0); $client = new SoapClient("http://www.yourdomain.com/index.php/api/?wsdl"); try { //Login $session = $client->login("username", "password"); //Listado de países //1 is the customer address ID $result = $client->call($session, 'customer_address.info', '1'); echo "<pre>"; print_r($result); echo "</pre>"; } catch (SoapFault $exception) { echo "There were an error on your request\n\n"; echo "Code: " . $exception->faultcode . "\n"; echo "Message: " . $exception->faultstring . "\n"; } //Logout $client->endSession($session);
(Of course, this is dummy code just for test)
Thank you for your reply.
How we can check if the taxvat field is enabled? or how we can enable?
Here's a screenshot about the field we can't find.
Hi @lorigergely,
I've made a test with a vanilla installation.
As you can see my customer doesn't have the TaxVat.
I've made a SOAP request and this was the response.
Customer without TaxVat.
Then I've edited my customer and I've added some TaxVat value.
The new response was:
Then I've checked addresses.
For example, the default billing address of that customer.
As you can see, the response came without taxvat (and that was right).
Then I've edited the address and I've added some value on the TaxVat attribute.
And the new api response was correct.
Finally, this is my current Customer configuration. Is default.
And the code was:
<?php ini_set('max_execution_time','1000'); set_time_limit(0); $client = new SoapClient("http://www.yourdomain.com/index.php/api/?wsdl"); try { //Login $session = $client->login("username", "password"); //Listado de países //1 is the customer address ID $result = $client->call($session, 'customer_address.info', '1'); echo "<pre>"; print_r($result); echo "</pre>"; } catch (SoapFault $exception) { echo "There were an error on your request\n\n"; echo "Code: " . $exception->faultcode . "\n"; echo "Message: " . $exception->faultstring . "\n"; } //Logout $client->endSession($session);
(Of course, this is dummy code just for test)
Thank you very much for your reply! It helped a lot.